Beck Asad I, Caldart Carlos S, Ben-Hamo Miriam, Weil Tenley A, Perez Jazmine G, Kalume Franck, Brunton Bingni W, de la Iglesia Horacio O, Sanchez Raymond E A
Department of Biology, University of Washington, Seattle, Washington.
Graduate Program in Neuroscience, University of Washington, Seattle, Washington.
J Biol Rhythms. 2025 Aug;40(4):330-346. doi: 10.1177/07487304251336649. Epub 2025 Jun 6.
Accurately capturing the temporal distribution of polysomnographic sleep stages is critical for the study of sleep function, regulation, and disorders in higher vertebrates. In laboratory rodents, scoring of electrocorticography (ECoG) and electromyography (EMG) recordings is usually performed manually by categorizing 5- to 10-sec epochs as 1 of 3 specific stages: wakefulness, rapid-eye-movement (REM) sleep, and non-REM (NREM) sleep. This process is laborious, time-consuming, and particularly impractical for large experimental cohorts with recordings lasting longer than 24 h, which are critical for the study of the circadian regulation of sleep. To circumvent this problem, we developed an open-source Python toolkit, Sleep Identification Enabled by Supervised Training Algorithms (SIESTA), that automates the detection of these 3 main behavioral stages in mice. We used a supervised machine learning algorithm that extracts features from the ECoG and EMG signals and autonomously scores recordings with a hierarchical classifier based on using logistic regression. We evaluated this approach on data collected from wild-type mice housed under both normal and different lighting conditions, as well as from mutant mouse lines with abnormal sleep phenotypes and from rats. We obtained mean F scores 0.94 for wakefulness, 0.94 for NREM, and 0.74 for REM, and followed up by validating SIESTA with manually scored data from 3 other laboratories. SIESTA has a user-friendly interface that can be used without coding expertise. To our knowledge, this is the first time that such a strategy has been developed using all open-source and freely available resources. Our aim is that SIESTA becomes a useful tool that facilitates further research in sleep on rodent models.
准确捕捉多导睡眠图睡眠阶段的时间分布对于研究高等脊椎动物的睡眠功能、调节和障碍至关重要。在实验室啮齿动物中,通常通过将5至10秒的时段分类为3个特定阶段之一来手动对脑电图(ECoG)和肌电图(EMG)记录进行评分:清醒、快速眼动(REM)睡眠和非快速眼动(NREM)睡眠。这个过程既费力又耗时,对于记录时长超过24小时的大型实验队列来说尤其不切实际,而这种长时记录对于睡眠昼夜节律调节的研究至关重要。为了解决这个问题,我们开发了一个开源的Python工具包,即通过监督训练算法实现的睡眠识别(SIESTA),它可以自动检测小鼠的这3个主要行为阶段。我们使用了一种监督机器学习算法,该算法从ECoG和EMG信号中提取特征,并基于逻辑回归使用分层分类器对记录进行自动评分。我们在从正常和不同光照条件下饲养的野生型小鼠、具有异常睡眠表型的突变小鼠品系以及大鼠收集的数据上评估了这种方法。我们获得的平均F分数为:清醒时0.94,NREM时0.94,REM时0.74,并通过使用来自其他3个实验室的手动评分数据对SIESTA进行验证作为后续工作。SIESTA具有用户友好的界面,无需编码专业知识即可使用。据我们所知,这是首次使用所有开源且免费可用的资源开发这样一种策略。我们旨在使SIESTA成为一个有用的工具,促进对啮齿动物模型睡眠的进一步研究。