Interpreting Sleep Activity Through Neural Contrastive Learning
Zhongtao CheniD, Hui ZhengiD, Jianyang ZhouiD, Lin ZhengiD, Peiyang Lin, Haiteng WangiD, Marc Aurel BuscheiD, Timothy E.J. BehrensiD, Raymond J. DolaniD, Yunzhe LiuiD
Abstract
Memories are spontaneously replayed during sleep, a process thought to support memory consolidation. However, capturing this replay in humans has been challenging because unlike wakefulness, sleep EEG is dominated by slow, rhythmic background activity. Moreover, each sleep stage (e.g., NREM, REM) has distinct rhythms, hindering generalisation of models trained on wake-state data. To overcome these challenges, we developed the Sleep Interpreter (SI), a neural network model that decodes memory replay from sleep EEG. In a large dataset comprising 135 participants ([~]1,000 h of overnight sleep; [~]400 h of wake), we employed a TMR-like paradigm with 15 semantically congruent cue-image pairs to tag specific memories. SI was trained separately for NREM and REM using contrastive learning to align neural patterns across wake and sleep, filtering out stage-specific background rhythms. We also examined how slow oscillations and spindle coupling influence decoding in NREM sleep. In a 15-way classification, SI achieved up to 40.02% Top-1 accuracy on unseen subjects. To test generalisability, we followed up with two independent nap experiments in separate samples and applied the trained SI model off-the-shelf. The first probed spontaneous reactivation without auditory cues, while the second used semantic-free sounds with new images. In both, SI successfully decoded reactivation during sleep that correlated with post-nap memory performance. By openly sharing our dataset and SI system, we provide a unique resource for advancing research on memory and learning during sleep, and related disorders.
02 /Specification & Classification
Click any tag to browse matching papers- Citations
- 5
- Organism
- Assay
- Research Focus
- Approach
Reproducibility ledger
Nobody has reported trying to reproduce this paper yet. Did you replicate an experiment or run the code? Your report saves the next lab a week.
Sign in to file a reproducibility report.
Related papers
- Targeted memory reactivation during sleep elicits neural signals related to learning content
Boyu Wang, James W. Antony, … Kenneth A. Norman·Journal of NeurosciencePeer-reviewed·Jun 24, 2019
- Identification of Memory Reactivation during Sleep by EEG Classification
Suliman Yousef Belal, James Nicholas Cousins, … Penelope A. Lewis·NeuroImagePeer-reviewed·Apr 17, 2018
- Reading specific memories from human neurons before and after sleep
Yuanyi Ding, Soraya L. S. Dunn, … Itzhak Fried·bioRxiv·Jul 1, 2025
- Endogenous memory reactivation during sleep in humans is clocked by slow oscillation spindle complexes.
Thomas Schreiner, Marit Petzka, … Bernhard P. Staresina·Nature CommunicationsPeer-reviewed·May 25, 2021
- Sleep resolves competition between explicit exemplar memory and implicit memory generalization
Katja Kleespies, Philipp C. Paulus, … Monika Schönauer·bioRxiv·Feb 21, 2025
- Your Emotions, My Brain: Generalizable Neural Signatures of Emotional Memory Reactivation During Sleep
Mahmoud E. A. Abdellahi, Tia Tsimpanouli, Penelope A. Lewis·bioRxiv·Aug 11, 2025