The relationship between sleep and memory has been studied since at least the early 19th century. Memory, the cognitive process of storing and retrieving past experiences, learning and recognition,[1] is a product of brain plasticity, the structural changes within synapses that create associations between stimuli. Stimuli are encoded within milliseconds; however, the long-term maintenance of memories can take additional minutes, days, or even years to fully consolidate and become a stable memory that is accessible (more resistant to change or interference). Therefore, the formation of a specific memory occurs rapidly, but the evolution of a memory is often an ongoing process.
Memory processes have been shown to be stabilized and enhanced (sped up and/or integrated) and memories better consolidated by nocturnal sleep and daytime naps. Certain sleep stages have been demonstrated as improving an individual's memory, though this is task-specific. Generally, declarative memories are believed to be enhanced by slow-wave sleep, while non-declarative memories are enhanced by rapid eye movement (REM) sleep, although there are some inconsistencies among experimental results. The effect of sleep on memory, especially as it pertains to the human brain, is an active field of research in neurology, psychology, and related disciplines.