SingleChannelNet: A Model for Automatic Sleep Stage Classification with Raw Single-Channel EEG

Dongdong Zhou, Guoqiang Hu, Jiacheng Zhang, Jian Wang, Rui Yan, Fan Li, Qi Xu, Lauri Kettunen, Zheng Chang, Fengyu CongbioRxiv 2020

TL;DR

This paper introduces SingleChannelNet (SCNet), an end-to-end deep learning model that automatically classifies sleep stages using raw, single-channel EEG data. By leveraging multi-convolution blocks and a novel max-average pooling layer, SCNet achieves state-of-the-art performance without relying on hand-crafted features or complex multi-modal data, making sleep stage analysis more accessible and efficient.

What Problem Does This Paper Address?

Diagnosing sleep disorders is crucial for overall health, and a key component of this diagnosis is accurately classifying sleep stages. Traditionally, this classification relies on polysomnography (PSG), which involves multiple physiological signals and requires manual scoring by experts. This manual process is time-consuming, labor-intensive, and prone to subjective errors. Existing automated methods often depend on hand-crafted features, which require domain expertise and can limit generalizability across different datasets. Furthermore, many advanced approaches utilize multi-channel PSG data, increasing equipment costs and complexity. There's a clear need for a simpler, more automated, and robust method for sleep stage classification, particularly one that can work with readily available single-channel EEG data.

Methods

The core of this paper is the SingleChannelNet (SCNet), a deep convolutional neural network designed for end-to-end sleep stage classification. Key methodological contributions include:

  • Raw Single-Channel EEG Input: SCNet directly processes raw EEG signals, eliminating the need for manual feature extraction or preprocessing steps like filtering.
  • Contextual Input (90s Epochs): Instead of analyzing individual 30-second epochs, SCNet uses a 90-second window (comprising the current, previous, and next 30-second epochs) as input. This allows the model to capture temporal dependencies and context between adjacent sleep stages, which is crucial for accurate classification.
  • Multi-Convolution (MC) Blocks: SCNet employs MC blocks that incorporate convolutional filters of varying sizes (1, 3, 16, and 64). This design allows the network to learn features at different scales simultaneously, addressing limitations of models with fixed-size filters.
  • Max-Average Pooling (M-A Pooling): The paper introduces a novel M-A pooling layer that combines the strengths of both max-pooling (capturing salient features) and average-pooling (providing a smoother representation). This is used in place of traditional max-pooling to enhance feature representation.
  • Global Average Pooling (GAP): The use of GAP before the final classification layer helps to reduce the number of parameters and improve robustness to spatial translations of features.
  • Regularization Techniques: L2 regularization and dropout are employed to prevent overfitting and improve the model's generalization capabilities.

Datasets

The proposed SCNet model was evaluated on two publicly available datasets:

  • Cleveland Children's Sleep and Health Study (CCSHS): This dataset comprises overnight PSG recordings from 515 children aged 8-11 years. For this study, single-channel EEG (C4/A1) sampled at 128 Hz was used.
  • Sleep-EDF Database Expanded (Sleep-EDF): This dataset includes PSG recordings from healthy adults and patients undergoing temazepam treatment. The study utilized single-channel EEG (Fpz-Cz) sampled at 100 Hz. For fair comparison with previous works, the Sleep-EDF-v1 subset (first 20 subjects) was also used.

The paper notes that the hypnograms in these datasets were manually scored according to the Rechtschaffen and Kales (R&K) manual, not the more recent American Academy of Sleep Medicine (AASM) rule.

Key Insights and Ideas

  • Raw EEG is Sufficient: The study demonstrates that high-accuracy sleep stage classification can be achieved using only raw, single-channel EEG, challenging the necessity of multi-modal data or extensive preprocessing for many applications.
  • Context is King: Utilizing a 90-second epoch window (instead of 30-second epochs) significantly improves classification by allowing the model to learn from the temporal context of sleep stages.
  • Multi-Scale Feature Learning is Crucial: The MC blocks with varied filter sizes are key to capturing diverse feature representations, leading to better performance than models with uniform filter sizes.
  • Max-Average Pooling Enhances Representation: The novel M-A pooling layer offers a more comprehensive feature extraction by combining the benefits of both max and average pooling.
  • Generalizability Across Datasets: SCNet shows promising performance on different datasets with varying EEG channels and sampling rates without requiring architectural modifications, highlighting its robust generalization capabilities.

Key Results

The SCNet model achieved impressive results:

  • CCSHS Dataset: Achieved an overall accuracy (ACC) of 90.2% and a Cohen's kappa (K) of 86.5% using single-channel C4/A1 EEG.
  • Sleep-EDF Dataset: Achieved an overall accuracy (ACC) of 86.1% and a Cohen's kappa (K) of 80.5% using single-channel Fpz-Cz EEG.
  • Sleep-EDF-v1 Dataset: Achieved an overall accuracy (ACC) of 91.0% and a Cohen's kappa (K) of 87.8% using single-channel Fpz-Cz EEG.

These results are comparable to or better than state-of-the-art methods, especially considering the simpler input requirements. The model also demonstrated good performance in detecting the Wake (W) stage with a precision of 94.7% on the CCSHS dataset.

Limitations and Future Work

  • Dataset Imbalance: The paper acknowledges that the distribution of sleep stages within the datasets is imbalanced, with stages like N1 and N3 being significantly less frequent. While the model performs well, this imbalance can still pose a challenge.
  • Cross-Dataset Generalization: While SCNet shows good generalization, the authors note that training on one dataset and testing on another (without fine-tuning) still presents a challenge. They achieved 65.9% accuracy when training on CCSHS and testing on Sleep-EDF, and 70.2% vice versa.
  • Future Work: The authors suggest constructing more "brain-inspired" models incorporating cognitive neural dynamics to further enhance generalization. They also express interest in exploring clinical datasets that are less commonly used in research.

Summary updated

Abstract

Abstract In diagnosing sleep disorders, sleep stage classification is a very essential yet time-consuming process. Most of the existing state-of-the-art approaches rely on hand-crafted features and multi-modality polysomnography (PSG) data, where prior knowledge is compulsory and high computation cost can be expected. Besides, few studies are able to obtain high accuracy sleep staging using raw single-channel electroencephalogram (EEG). To overcome these shortcomings, this paper proposes an end-to-end framework with a deep neural network, namely SingleChannelNet, for automatic sleep stage classification based on raw single-channel EEG. The proposed model utilizes a 90s epoch as the textual input and employs two multi-convolution blocks and several max-average pooling layers to learn different scales of feature representations. To demonstrate the efficiency of the proposed model, we evaluate our model using different raw single-channel EEGs (C4/A1 and Fpz-Cz) on two different datasets (CC-SHS and Sleep-EDF datasets). Experimental results show that the proposed architecture can achieve better over-all accuracy and Cohen’s kappa (CCSHS: 90.2%-86.5%, Sleep-EDF: 86.1%-80.5%) compared with state-of-the-art approaches. Additionally, the proposed model can learn features automatically for sleep stage classification using different single-channel EEGs with distinct sampling rates from different datasets without using any hand-engineered features.
BibTeX
@misc{zhou2020singlechannelnet,
  author = {Dongdong Zhou and Guoqiang Hu and Jiacheng Zhang and Jian Wang and Rui Yan and Fan Li and Qi Xu and Lauri Kettunen and Zheng Chang and Fengyu Cong},
  title = {{SingleChannelNet: A Model for Automatic Sleep Stage Classification with Raw Single-Channel EEG}},
  year = {2020},
  doi = {10.1101/2020.09.21.306597},
  howpublished = {bioRxiv},
}
Figure