Skip to main content
QUICK REVIEW

[Paper Review] Automated Classification of Sleep Stages and EEG Artifacts in Mice with Deep Learning

Justus T. C. Schwabedal, Daniel Sippel|arXiv (Cornell University)|Sep 22, 2018
Sleep and Wakefulness ResearchNeuroscience13 references9 citations
TL;DR

This paper presents a deep learning model that automates sleep stage classification (Wake, Non-REM, REM) and EEG artifact detection in mice using end-to-end training on 4-second EEG and EMG epochs. The model outperforms traditional feature-engineered methods by learning discriminative features automatically, achieving high F1 scores on artifact-free data and improved robustness with multiple recording channels.

ABSTRACT

Sleep scoring is a necessary and time-consuming task in sleep studies. In animal models (such as mice) or in humans, automating this tedious process promises to facilitate long-term studies and to promote sleep biology as a data-driven field. We introduce a deep neural network model that is able to predict different states of consciousness (Wake, Non-REM, REM) in mice from EEG and EMG recordings with excellent scoring results for out-of-sample data. Predictions are made on epochs of 4 seconds length, and epochs are classified as artifact-free or not. The model architecture draws on recent advances in deep learning and in convolutional neural networks research. In contrast to previous approaches towards automated sleep scoring, our model does not rely on manually defined features of the data but learns predictive features automatically. We expect deep learning models like ours to become widely applied in different fields, automating many repetitive cognitive tasks that were previously difficult to tackle.

Motivation & Objective

  • To automate the time-consuming manual sleep scoring process in mouse EEG/EMG studies.
  • To eliminate reliance on hand-crafted features by learning predictive representations end-to-end.
  • To enable high temporal resolution sleep staging (4-second epochs) for capturing brief sleep transitions in mice.
  • To improve robustness to EEG artifacts by leveraging multiple recording channels.
  • To support long-term sleep research by enabling scalable, data-driven analysis of large-scale recordings.

Proposed method

  • A deep convolutional neural network is trained end-to-end on 4-second epochs of EEG and EMG signals from mice.
  • The model takes up to three input channels (EEG1, EEG2, EMG) and predicts probabilities for each sleep stage and artifact presence.
  • Feature learning is performed automatically without prior engineering of frequency bands or spectral features.
  • The architecture leverages recent advances in CNNs for sequential time-series data, similar to those used in audio and NLP.
  • Model training uses class-balanced sampling with replacement to address imbalanced data (more artifact-free than artifact-contaminated epochs).
  • A TensorFlow.js implementation is provided for online inference and broader accessibility.

Experimental results

Research questions

  • RQ1Can a deep learning model achieve high-accuracy automated sleep staging in mice without relying on manually engineered features?
  • RQ2How does model performance vary with the number of input recording channels under artifact-contaminated conditions?
  • RQ3Can a 4-second epoch resolution effectively capture transient sleep states such as brief arousals in mice?
  • RQ4To what extent does data imbalance between artifact-free and artifact-contaminated epochs affect model generalization?
  • RQ5Can transfer learning enable adaptation of the model to new mouse strains or electrode placements with minimal retraining?

Key findings

  • The model achieved high F1 scores on out-of-sample, artifact-free data, indicating strong generalization performance.
  • When using a single input channel, 27.5% of REM epochs were misclassified as Wake, highlighting vulnerability to limited input.
  • Increasing the number of input channels significantly improved prediction robustness on artifact-contaminated data, reducing misclassification.
  • The model maintained high performance on artifact-free data even with fewer channels, suggesting strong feature learning from minimal input.
  • Performance on artifact-contaminated data was lower than on clean data, likely due to class imbalance in the training set.
  • The authors expect that larger, more balanced datasets would further improve performance on artifact-laden recordings.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.