TL;DR
This paper comprehensively evaluates self-supervised learning (SSL) techniques for sleep stage classification (SSC) in low-data regimes. They demonstrate that pre-training existing SSC models with SSL and then fine-tuning with just 5% of labeled data can achieve performance comparable to full supervised training, significantly reducing the need for expensive manual labeling.
What Problem Does This Paper Address?
Accurately classifying sleep stages from EEG signals is crucial for diagnosing sleep disorders. While deep learning models have shown great promise, their success hinges on vast amounts of meticulously labeled data. Obtaining this labeled data is a major bottleneck in real-world applications due to the time-consuming and expert-intensive nature of sleep scoring. This paper tackles the challenge of making deep learning-based SSC practical in scenarios where labeled data is scarce, a common situation in clinical settings.
Methods
The authors investigate the effectiveness of self-supervised learning (SSL) for improving sleep stage classification (SSC) when labeled data is limited. They focus on fine-tuning existing, well-established SSC architectures (DeepSleepNet, AttnSleep, and 1D-CNN) after they have been pre-trained using various SSL algorithms.
The SSL algorithms explored fall into two main categories:
- Auxiliary Tasks: These involve defining a new, artificial task with automatically generated "pseudo-labels" to train the model on unlabeled data. The paper specifically examines ClsTran, which uses data augmentations (noise, time shift, negation, permutation) and trains the model to classify these transformations.
- Contrastive Learning: This paradigm learns representations by maximizing the similarity between different "views" of the same data sample (positive pairs) while minimizing similarity with other samples (negative pairs). The paper evaluates SimCLR, CPC (Contrastive Predictive Coding), and TS-TCC (Time-Series representation learning via Temporal and Contextual Contrasting). CPC and TS-TCC are highlighted for their ability to learn temporal features by predicting future states.
The core idea is to leverage SSL to learn rich, generalizable representations from abundant unlabeled EEG data, which can then be efficiently adapted to the downstream SSC task with minimal labeled data.
Datasets
The study utilizes three publicly available sleep stage classification datasets:
- Sleep-EDF: A dataset of 20 healthy subjects, using a single EEG channel (Fpz-Cz) sampled at 100 Hz.
- SHHS (Sleep Heart Health Study): A multi-center cohort study, using a single EEG channel (C4-A1) sampled at 125 Hz.
- ISRUC: A dataset containing PSG recordings from adults with various health conditions, using a single EEG channel (C4-A1) sampled at 200 Hz.
All experiments were conducted using a single EEG channel per dataset, following previous work.
Key Insights and Ideas
- SSL as a Data-Efficient Booster: The most significant finding is that SSL pre-training dramatically reduces the reliance on labeled data. Fine-tuning with just 5% of labels can match the performance of full supervised training, making deep learning models far more accessible for real-world SSC.
- Contrastive Learning Dominance: Contrastive SSL methods (SimCLR, CPC, TS-TCC) consistently outperform auxiliary task methods (ClsTran) and even supervised training in low-data regimes. This suggests that learning invariant representations through contrast is particularly effective for sleep data.
- Temporal Feature Learning is Key: SSL methods that incorporate temporal prediction (CPC, TS-TCC) show increased robustness to the presence and type of temporal encoders within the SSC architecture. This implies they learn more intrinsic temporal dynamics of EEG signals.
- Robustness to Imbalance and Domain Shift: SSL pre-training makes SSC models more resilient to imbalanced sleep stage distributions and improves their ability to generalize to new, unseen subjects (domain shift). This is a critical advantage for real-world deployment.
- Pre-training vs. Specialized Architectures: The paper demonstrates that pre-training existing, simpler SSC models with SSL can outperform more complex, specialized state-of-the-art SSL methods designed specifically for sleep, especially when using limited data.
Key Results
- Fine-tuning pre-trained SSC models with 5% of labeled data achieved performance comparable to supervised training with 100% of labeled data across all three datasets.
- For example, CPC-pretrained DeepSleepNet with 5% labels achieved an F1-score only 2.1% lower than full supervised training.
- Contrastive SSL algorithms showed minor performance gaps (less than 1%) when trained on imbalanced data versus balanced data, indicating strong robustness.
- SSL pre-training improved out-of-domain transferability, with some SSL algorithms outperforming supervised transfer learning in cross-subject scenarios.
- While SSL improved overall performance, it showed limited improvement for minority sleep stages (N1 and N3), suggesting this remains an area for future research.
Limitations and Future Work
- Minority Class Performance: The paper acknowledges that SSL algorithms did not significantly improve performance on minority sleep stages (N1, N3). Future work could focus on developing SSL techniques that better capture the characteristics of these less frequent stages.
- False Negative Reduction in Contrastive Learning: The authors suggest that reducing the number of false negative samples in contrastive learning could further enhance performance.
- Data Augmentation Design: Designing more effective data augmentations tailored for sleep EEG data is identified as a promising research direction.
- Auxiliary Task Design: The auxiliary task (ClsTran) performed poorly. Future research could explore novel, SSC-specific auxiliary tasks that are more beneficial.
- Transferability Improvement: While SSL improved domain shift robustness, the overall improvement in transferability was marginal for some models. Further investigation into maximizing this is suggested.
Summary updated