A new study shows that the cerebral cortex acts as a "memory machine," constantly detecting novel stimuli to refine its predictions of the future.