Related Experiment Video
Updated: May 23, 2026

IntelliSleepScorer, a Software Package with a Graphic User Interface for Mice Automated Sleep Stage Scoring
Published on: November 8, 2024
REST-a deep learning tool for automated mouse sleep stage classification
Jun Wang1, Sue Osting1, Anna Goforth1
1Department of Neurology, University of Wisconsin-Madison School of Medicine and Public Health, Madison, Wisconsin, United States.
Study Objectives:
Sleep research in rodents often involves large-scale electroencephalography (EEG) recordings that are traditionally scored manually-a labor-intensive process prone to scorer bias and inconsistency. We developed the REST-Rodent EEG Sleep Transformer, a neural network trained for automated sleep stage classification based on EEG and electromyography (EMG).
Materials And Methods:
EEG and EMG signals were segmented into 4-second epochs, transformed via short-time Fourier transform to generate representations with five time frames and 130 frequency bins per epoch. We used a two-stage model: the first stage analyzes individual epochs to extract meaningful features, while the second stage captures sleep patterns over time by modeling the relationships between consecutive epochs. The model was trained based on 116 days of artifact-free, pre-labeled recordings from 94 male Fmr1 knockout mice (C57BL/6 background). It was then tested on 38 separate 24-hour recordings from the same mice and on three other mouse strains (C57, DBA, and CD-1). REST was also tested against a convolutional neural network (CNN)-based model (Accusleep).
Results:
REST achieved a Cohen's kappa of 0.873 ± 0.005 and F1-scores for Wake (0.936 ± 0.003) and non-rapid eye movement sleep (0.926 ± 0.003), with strong performance for rapid eye movement sleep (0.913 ± 0.005). REST showed robust cross-strain compatibility and generalized effectively to external datasets.
Conclusion:
REST is a fast, accurate, and accessible tool for automated sleep stage classification in mice. Its Transformer architecture provides long-range temporal awareness, enabling consistent and reliable analysis of rodent sleep in large-scale datasets.
Related Concept Videos
Stages of Sleep
Before sleep begins, in wakefulness, the brain exhibits primarily beta waves, which are high in frequency and low in amplitude, indicating alertness...
Sleep-Wake Cycles
NREM Sleep
NREM sleep comprises four progressive stages that seamlessly merge:

