TL;DR
This paper systematically compares three popular neural network architectures (1D-CNN, 2D-CNN, and CNN+biLSTM) for automated sleep stage classification in rodents using EEG and EMG signals. They found that simpler 1D-CNN and the more complex CNN+biLSTM generally outperformed the 2D-CNN spectrogram-based approach, especially for REM sleep, and that raw input data often yielded better results than normalized data.
What Problem Does This Paper Address?
Accurate sleep stage classification is vital for understanding sleep's role in health and disease, particularly in animal models that allow for controlled experiments. However, manually scoring sleep data is time-consuming and prone to errors. While deep learning offers automation, existing models are often designed for human sleep, which has a different architecture (more consolidated) than rodent sleep (polyphasic and fragmented). Furthermore, there's a lack of standardized comparisons between different neural network architectures and preprocessing techniques specifically for rodent sleep data, hindering reproducible research. This paper aims to fill this gap by providing a direct, reproducible comparison of leading architectures and normalization methods on rodent sleep data.
Methods
The researchers evaluated three distinct neural network architectures:
- 1D-CNN: A standard architecture for time-series data, designed to capture local temporal dependencies and hierarchical features directly from raw EEG/EMG signals.
- 2D-CNN (AccuSleep): This model converts EEG/EMG signals into spectrograms (time-frequency representations) and then applies 2D convolutional layers. It also incorporates a specific normalization technique called "mixture z-scoring."
- CNN+biLSTM (DeepSleepNet): A hybrid model that combines convolutional layers for feature extraction with bidirectional Long Short-Term Memory (biLSTM) layers to capture temporal context. This was adapted from a human sleep model to use dual-channel EEG/EMG.
They compared these models under three input conditions: raw data, standard z-scoring, and mixture z-scoring. Performance was assessed using two validation frameworks: within-subject (training and testing on data from the same animal) and cross-subject (training on one animal and testing on others) to evaluate model stability and generalization.
Datasets
The study utilized the AccuSleep dataset, which comprises sleep EEG and EMG recordings from 10 mice. Each mouse had five recording sessions, with data sampled at 512 Hz and annotated into Wake, NREM, and REM sleep stages every 2.5 seconds. The dataset exhibits a class imbalance, with approximately 55% NREM, 35% Wake, and 10% REM. To address this imbalance during training, they employed Synthetic Minority Oversampling Technique (SMOTE).
Key Insights and Ideas
- Simpler CNNs can be sufficient for rodent sleep: The study suggests that for rodent sleep staging, which has a simpler three-class structure and fragmented sleep, a straightforward 1D-CNN can perform comparably to more complex architectures like CNN+biLSTM.
- Spectrograms might not be optimal for rodent sleep: The 2D-CNN (AccuSleep) model, which relies on spectrograms, consistently underperformed the other models, particularly in REM sleep. This could be due to the limited time-frequency variability in short rodent sleep epochs and the dataset's small scale, which may not provide enough diverse examples for spectrogram-based models to learn effectively.
- Raw data often wins: For the 1D-CNN and DeepSleepNet, using raw EEG/EMG signals without any normalization generally yielded the best results. This implies that these models are capable of extracting relevant features directly from the raw time-series data.
- Normalization's impact is model-dependent: While mixture z-scoring showed a slight improvement for AccuSleep in Wake detection, it tended to degrade performance for REM and NREM in both AccuSleep and the other models. This highlights that normalization is not a one-size-fits-all solution and its utility depends on the model architecture and data characteristics.
- Species and dataset size matter: The advantage of temporal modeling (biLSTM) seen in human sleep studies (especially for minority stages like NREM N1) was not as pronounced in this rodent dataset. This suggests that the benefits of temporal modeling are highly dependent on the species' sleep architecture and the dataset's scale and diversity.
Key Results
- Overall Performance: In both within-subject and cross-subject validation, 1D-CNN and DeepSleepNet consistently outperformed AccuSleep. For instance, in cross-subject validation with raw data, 1D-CNN achieved an accuracy of 92.2% and an F1-score of 91.8%.
- Class-wise Performance: NREM classification was robust across all models and preprocessing methods. However, REM classification was particularly challenging for AccuSleep, showing significantly lower F1-scores compared to 1D-CNN and DeepSleepNet.
- Normalization Impact: For 1D-CNN and DeepSleepNet, raw data led to significantly higher F1-scores in REM classification compared to normalized inputs. AccuSleep showed a modest improvement in Wake detection with mixture z-scoring, but REM performance deteriorated.
Limitations and Future Work
The authors acknowledge several limitations:
- Limited Architectures: The study focused on three representative architectures and did not include attention or transformer models, which are gaining traction in sleep research.
- Small Dataset Scale: The dataset of 10 mice might be too small for spectrogram-based models and LSTM components to fully leverage their potential, especially for minority classes.
- Class Imbalance: Despite SMOTE, REM sleep's low prevalence (~10%) remained a challenge.
- Cross-Species Differences: Direct comparisons between human and rodent sleep are complicated by differences in sleep architecture and class granularity.
Future work suggested includes:
- Exploring attention and transformer architectures.
- Investigating alternative strategies for class imbalance, such as cost-sensitive learning or curriculum learning.
- Expanding to larger, more diverse datasets.
- Conducting cross-species transfer learning studies.
- Further research into when and why normalization is beneficial for rodent sleep staging.
Summary updated