Data-efficient Deep Learning Approach for Single-Channel EEG-Based Sleep Stage Classification with Model Interpretability

Shivam Kumar Sharma, Suvadeep Maiti, S. Mythirayee, Srijithesh Rajendran, S. Bapi RajuarXiv 2023 · DOI

Introduction

Sleep staging is a critical diagnostic process in sleep medicine, traditionally requiring manual annotation of overnight electroencephalogram (EEG) recordings by experts. This manual process is time-intensive and prone to inter-scorer variability. While automated deep learning solutions have emerged, they often suffer from a lack of interpretability—the "black box" problem—and high computational demands when processing large-scale, high-frequency physiological data.

Proposed Multi-Stage Architecture

The researchers developed a hybrid model combining convolutional and recurrent neural networks to capture both local signal features and long-term temporal dependencies.

The overall model architecture, featuring an SE-ResNet feature extractor followed by a stacked Bi-LSTM temporal context encoder.

SE-ResNet Feature Extractor

At the core of the feature extraction stage is a modified Residual Network (ResNet) integrated with Squeeze-and-Excitation (SE) blocks. These blocks implement a channel-wise attention mechanism, allowing the network to adaptively recalibrate channel-wise feature responses by explicitly modeling interdependencies between channels. This enables the model to focus on the most relevant frequency components of the EEG signal while suppressing background noise.

Detailed view of the SE-ResNet block (left) and the internal Squeeze-and-Excitation mechanism (right).

Temporal Context Encoding

Because sleep stages progress in predictable sequences, the model utilizes a stacked Bidirectional Long Short-Term Memory (Bi-LSTM) network. By processing sequences of epochs (typically 9 epochs or 4.5 minutes of data), the model gains the necessary context to distinguish between stages that might look similar in isolation but differ in their temporal placement.

Interpretability via 1D-GradCAM

To address clinical skepticism, the study introduced 1D-GradCAM (Gradient-weighted Class Activation Mapping). This technique generates heatmaps over the raw EEG input, highlighting the specific signal oscillations that drove the model's classification. Validation showed that the model focuses on the same physiological markers used by human experts, such as alpha waves for wakefulness and K-complexes for the N2 stage.

Computational Efficiency and Results

A key contribution of this work is the optimization of training through "stride optimization." By increasing the stride of the sliding window used during training, the researchers reduced data redundancy. This resulted in an 8x speedup in training time with a negligible impact on accuracy (less than 2%).

The model was tested on three major datasets: SleepEDF-20, SleepEDF-78, and the Sleep Heart Health Study (SHHS).

  • Accuracy: 87.5% (SleepEDF-20), 83.8% (SleepEDF-78), and 87.8% (SHHS).
  • Macro-F1: High scores across all datasets (82.5, 78.9, and 81.9) demonstrate robust performance even on minority classes like the N1 stage.

Conclusion

This hybrid approach demonstrates that deep learning can achieve state-of-the-art performance in sleep staging while remaining interpretable and computationally efficient. By aligning AI decision-making with clinical biomarkers and optimizing for training speed, this model paves the way for more accessible and trustworthy automated sleep diagnostics. Future work will explore multi-modal inputs (e.g., EOG) to further improve the classification of transitional stages like N1.

Summary updated

BibTeX
@misc{sharma2023data,
  author = {Shivam Kumar Sharma and Suvadeep Maiti and S. Mythirayee and Srijithesh Rajendran and S. Bapi Raju},
  title = {{Data-efficient Deep Learning Approach for Single-Channel EEG-Based Sleep Stage Classification with Model Interpretability}},
  year = {2023},
  eprint = {2309.07156},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2309.07156},
}
Figure