REST-a deep learning tool for automated mouse sleep stage classification.

Jun Wang, Sue Osting, Anna Goforth, Mathew V Jones, Rama Maganti
{"title":"REST-a deep learning tool for automated mouse sleep stage classification.","authors":"Jun Wang, Sue Osting, Anna Goforth, Mathew V Jones, Rama Maganti","doi":"10.1093/sleepadvances/zpag044","DOIUrl":null,"url":null,"abstract":"<p><strong>Study objectives: </strong>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).</p><p><strong>Materials and methods: </strong>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).</p><p><strong>Results: </strong>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.</p><p><strong>Conclusion: </strong>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.</p>","PeriodicalId":74808,"journal":{"name":"Sleep advances : a journal of the Sleep Research Society","volume":"7 2","pages":"zpag044"},"PeriodicalIF":0.0000,"publicationDate":"2026-04-15","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"https://www.ncbi.nlm.nih.gov/pmc/articles/PMC13189165/pdf/","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Sleep advances : a journal of the Sleep Research Society","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1093/sleepadvances/zpag044","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"2026/1/1 0:00:00","PubModel":"eCollection","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0

Abstract

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.

rest—用于自动小鼠睡眠阶段分类的深度学习工具。
研究目标:啮齿类动物的睡眠研究通常涉及大规模脑电图(EEG)记录,传统上是手工评分的,这是一个劳动密集型的过程,容易出现评分者的偏差和不一致。我们开发了rest - EEG睡眠转换器,这是一个基于EEG和肌电图(EMG)的自动睡眠阶段分类的神经网络。材料与方法:将EEG和EMG信号分割成4秒的epoch,通过短时傅里叶变换生成5个时间帧、130个频箱/ epoch的表征。我们使用了一个两阶段的模型:第一阶段分析单个时期以提取有意义的特征,而第二阶段通过建模连续时期之间的关系来捕获随时间变化的睡眠模式。该模型基于94只雄性Fmr1敲除小鼠(C57BL/6背景)116天无伪影、预标记的录音进行训练。然后在同一小鼠和其他三种小鼠品系(C57, DBA和CD-1)的38个单独的24小时记录上进行测试。REST还针对基于卷积神经网络(CNN)的模型(acculeep)进行了测试。结果:REST的Cohen’s kappa评分为0.873±0.005,Wake(0.936±0.003)和非快速眼动睡眠的f1评分为0.926±0.003,其中快速眼动睡眠的表现较好(0.913±0.005)。REST具有强大的跨应变兼容性,并能有效地推广到外部数据集。结论:REST是一种快速、准确、方便的小鼠睡眠阶段自动分类工具。它的Transformer架构提供了远程时间感知,能够在大规模数据集中对啮齿动物的睡眠进行一致和可靠的分析。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
CiteScore
2.10
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:604180095
Book学术官方微信
小红书