The Science of Sleep and Dreams: REM, Memory Consolidation, and Emotional Processing Explained
By Camila Figueroa, Head of Science & Innovation, and Santiago Niño, Director of Content & Marketing
Most dreams disappear within minutes of waking. Even vivid or emotionally charged ones are often dismissed as meaningless noise. But modern sleep research suggests otherwise.
Over the last several decades, neuroscience and sleep science have shown that sleep is deeply connected to memory consolidation and emotional processing, specifically while dreaming. This article explores current research on what happens to your brain while you sleep, and why dreams are worth paying attention to.
The Architecture of Sleep
Sleep unfolds in two main states: non-Rapid Eye Movement (non-REM) sleep, which makes up roughly 75–80% of total sleep time, and Rapid Eye Movement (REM) sleep, which accounts for the remaining 20–25% (Patel, Reddy, Shumway, & Araujo, 2024).
Non-REM progresses through increasingly deeper stages associated with memory consolidation, while REM is the phase most associated with emotional processing and vivid dreaming. REM periods also lengthen across the night, sometimes extending to 30 minutes or more by morning. This is why the most memorable dreams tend to occur just before waking: if you wake during or immediately after a REM cycle, the dream is briefly accessible before it fades (Institute of Medicine, 2006).
What the Sleeping Brain Does with Your Memories
For a long time, sleep was understood as passive rest. Contemporary research shows it is the opposite: sleep is when the brain actively sorts experience, processes emotion, and consolidates memory.
Memory consolidation, the process by which newly formed memories are strengthened and moved into longer-term storage, depends on interactions across multiple sleep stages (Dahat et al., 2023). Deep non-REM sleep is particularly associated with transferring recently learned information into stable memory, while REM sleep appears to play a complementary role in emotional processing and associative thinking (Stickgold, 2025).
The “Overnight Therapy” Idea
Sleep researcher Matthew Walker and Els van der Helm proposed that REM sleep functions as a form of emotional processing, a period in which emotionally significant experiences are revisited and their intensity gradually diminished. In several studies, participants who slept after viewing emotionally distressing images showed lower reactivity to those images the following day, particularly when their sleep included strong REM activity (Walker & van der Helm, 2009; van der Helm et al., 2011).
During REM sleep, limbic regions, including the amygdala, which is central to emotional memory, become highly active. Research also indicates that healthy sleep supports communication between the amygdala and the prefrontal cortex, a region involved in emotional regulation and decision-making. This may help explain why difficult experiences often feel more manageable after a full night's sleep and more overwhelming after deprivation (Scarpelli et al., 2019).
It's important to note that findings across studies are not always fully consistent, and emotional regulation during sleep likely depends on interactions across multiple sleep stages rather than REM alone. The broader picture, however, is increasingly clear: sleep plays a meaningful role in emotional processing, and dreaming appears closely connected to that process.
Why Pay Attention to Dreams?
One of the most established frameworks in dream research is the continuity hypothesis, which proposes that dreams reflect waking life: our daily concerns, relationships, unresolved tensions, and emotionally significant experiences (Malinowski & Horton, 2017).
Research consistently supports this connection. Dr. Michael Schredl (2024), for example, has shown that the more time people spend engaged in certain waking activities, the more likely those activities are to appear in dreams. Emotionally important experiences are especially likely to carry over, particularly during periods of stress or major life change (Schredl & Hofmann, 2003; Schredl, 2024).
Recurring dreams are considered particularly meaningful within this framework. Repeated themes suggest that certain emotional material continues to occupy the brain's attention across multiple nights, pointing to something unresolved or persistently significant in waking life.
What Nightmares Reveal
Some of the strongest evidence for the emotional significance of dreams comes from the study of nightmares. Recurring nightmares are more common during periods of high stress and especially frequent following traumatic experiences, their themes closely tracking unresolved fear or distress from waking life. From a neuroscientific perspective, this repetition may reflect the brain's ongoing attempt to process and integrate experiences that have not yet been resolved (Scarpelli et al., 2019).
In the late 1980s, researchers at the University of New Mexico School of Medicine developed a targeted intervention for nightmares called Imagery Rehearsal Therapy (IRT) to interrupt this cycle. In IRT, a person deliberately rewrites the narrative of a recurring nightmare while awake and rehearses the new version repeatedly. Clinical studies have found this approach can significantly reduce both the frequency of nightmares and their associated distress (Schwartz et al., 2022).
IRT matters beyond nightmare treatment as it demonstrates that dream content is meaningfully connected to emotional experience and that it can respond to deliberate cognitive engagement.
What This Means in Practice
Across the night, the brain moves through an intricate architecture of sleep designed to support memory and emotional processing. As it does, experiences are reorganized, memories are consolidated, and emotionally significant concerns are revisited. Over time, recurring themes and patterns become easier to recognize.
This is the foundation behind My Human Code. By creating space to record both waking thoughts and dreams over weeks or months, the goal is to help people notice what is difficult to see in isolated moments. Both dreams and waking thoughts offer different views into the same ongoing mental and emotional processes. A single entry may feel incomplete on its own. Across weeks and months, recurring themes and patterns become easier to see.
The science of dreaming continues to evolve, and many questions remain open. But one finding appears consistently across sleep and dream research: paying attention to dreams offers a window into the cognitive and emotional processes the brain returns to, night after night.
References
Dahat, P., Toriola, S., Satnarine, T., Zohara, Z., Adelekun, A., Seffah, K. D., Dardari, L., Salib, K., Taha, M., & Khan, S. (2023). Correlation of various sleep patterns on different types of memory retention: A systematic review. Cureus, 15(7), e42294. https://doi.org/10.7759/cureus.42294
Institute of Medicine (2006). Sleep disorders and sleep deprivation: An unmet public health problem (Chapter 2: Sleep physiology). National Academies Press. https://www.nationalacademies.org/read/11617/chapter/4
Malinowski, J. E., & Horton, C. L. (2017). The continuity hypothesis. In N. Zhukova (Ed.), Cognition (pp. 53–71). Rijeka: InTech. https://www.researchgate.net/publication/322108536_The_continuity_hypothesis
Patel, A. K., Reddy, V., Shumway, K. R., & Araujo, J. F. (2024). Physiology, sleep stages. In StatPearls [Internet]. StatPearls Publishing.
Scarpelli, S., Bartolacci, C., D'Atri, A., Gorgoni, M., & De Gennaro, L. (2019). The functional role of dreaming in emotional processes. Frontiers in Psychology, 10, Article 459. https://doi.org/10.3389/fpsyg.2019.00459
Schredl, M. (2024). Continuity between waking life and dreaming: A research note and study in adolescents. Dreaming, 34(2), 105–112. https://doi.org/10.1177/02762366241254818
Schredl, M., & Hofmann, F. (2003). Continuity between waking activities and dream activities. Consciousness and Cognition, 12(2), 298–308. https://doi.org/10.1016/S1053-8100(02)00072-7
Schwartz, S., Clerget, A., & Perogamvros, L. (2022). Enhancing imagery rehearsal therapy for nightmares with targeted memory reactivation. Current Biology, 32(22), 4808–4816.e4. https://doi.org/10.1016/j.cub.2022.09.032
Stickgold, R. (2025). Both slow wave and rapid eye movement sleep contribute to emotional memory consolidation. Communications Biology, 8, Article 485. https://doi.org/10.1038/s42003-025-07868-5
van der Helm, E., Yao, J., Dutt, S., Rao, V., Saletin, J. M., & Walker, M. P. (2011). REM sleep depotentiates amygdala activity to previous emotional experiences. Current Biology, 21(23), 2029–2032. https://doi.org/10.1016/j.cub.2011.10.052
Walker, M. P., & van der Helm, E. (2009). Overnight therapy? The role of sleep in emotional brain processing. Psychological Bulletin, 135(5), 731–748. https://doi.org/10.1037/a0016570
Ready to begin?
Download My Human Code and start applying what you have read.