[Paper Review] Self-supervised EEG Representation Learning for Automatic Sleep Staging
This paper proposes ContraWR, a self-supervised representation learning model for EEG signals that leverages global dataset statistics to contrast different sleep stages, enabling high-quality feature learning without extensive human annotations. It achieves state-of-the-art performance on automatic sleep staging, outperforming both self-supervised and supervised baselines—especially under low-label regimes, with a 4% accuracy gain at less than 2% labeled data.
Background: Deep learning models have shown great success in automating tasks in sleep medicine by learning from carefully annotated Electroencephalogram (EEG) data. However, effectively utilizing a large amount of raw EEG remains a challenge. Objective: In this paper, we aim to learn robust vector representations from massive unlabeled EEG signals, such that the learned vectorized features (1) are expressive enough to replace the raw signals in the sleep staging task; and (2) provide better predictive performance than supervised models in scenarios of fewer labels and noisy samples. Methods: We propose a self-supervised model, named Contrast with the World Representation (ContraWR), for EEG signal representation learning, which uses global statistics from the dataset to distinguish signals associated with different sleep stages. The ContraWR model is evaluated on three real-world EEG datasets that include both at-home and in-lab EEG recording settings. Results: ContraWR outperforms 4 recent self-supervised learning methods on the sleep staging task across 3 large EEG datasets. ContraWR also beats supervised learning when fewer training labels are available (e.g., 4% accuracy improvement when less than 2% data is labeled). Moreover, the model provides informative representative feature structures in 2D projection. Conclusions: We show that ContraWR is robust to noise and can provide high-quality EEG representations for downstream prediction tasks. The proposed model can be generalized to other unsupervised physiological signal learning tasks. Future directions include exploring task-specific data augmentations and combining self-supervised with supervised methods, building upon the initial success of self-supervised learning in this paper.
Motivation & Objective
- To learn expressive, generalizable representations from large-scale unlabeled EEG data for automatic sleep staging.
- To overcome the limitations of supervised learning in low-data and noisy-label scenarios.
- To develop a self-supervised method that captures meaningful sleep stage distinctions without human-annotated labels.
- To evaluate the model's robustness and transferability across diverse EEG recording environments (in-lab and at-home).
- To provide interpretable, low-dimensional feature projections for clinical and analytical insights.
Proposed method
- ContraWR employs a contrastive learning framework that uses global statistics (e.g., mean, variance) of the entire EEG dataset as positive samples for the same sleep stage.
- The model learns representations by contrasting embeddings from different sleep stages while pulling together samples from the same stage using global statistics as anchors.
- It applies data augmentation strategies such as time masking and frequency masking to generate positive views of the same EEG signal.
- A Siamese neural network architecture is used to encode EEG segments into latent vectors, with contrastive loss minimizing intra-class variance and maximizing inter-class separation.
- The final representation is derived from the averaged embedding of a full EEG epoch, enabling downstream classification with minimal fine-tuning.
Experimental results
Research questions
- RQ1Can self-supervised representation learning effectively extract discriminative features from raw, unlabeled EEG signals for sleep staging?
- RQ2How does the performance of self-supervised models compare to supervised baselines when only a small fraction of labels are available?
- RQ3Can global statistical patterns across the dataset serve as effective positive samples in contrastive learning for EEG?
- RQ4Does the learned representation generalize across diverse EEG recording settings (in-lab vs. at-home)?
- RQ5Can the model’s learned features be meaningfully visualized in low-dimensional space to reflect sleep stage structure?
Key findings
- ContraWR outperforms four recent self-supervised learning methods across three large-scale EEG datasets in automatic sleep staging.
- The model achieves a 4% accuracy improvement over supervised baselines when only 2% of the data is labeled, demonstrating strong data efficiency.
- The learned representations exhibit clear, interpretable clustering of sleep stages in 2D t-SNE projections, indicating meaningful feature structure.
- ContraWR shows robustness to noise and variability in EEG recordings, including data collected in at-home settings.
- The model generalizes well to downstream tasks, suggesting its potential for broader application in unsupervised physiological signal learning.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.