Chen Shanshan, Sun Xinxin
Department of Biostatistics, School of Population Health, Virginia Commonwealth University, Richmond, VA, USA.
R Soc Open Sci. 2024 May 29;11(5):231468. doi: 10.1098/rsos.231468. eCollection 2024 May.
Sleep-wake (SW) cycle detection is a key step for extracting temporal sleep metrics from actigraphy. Various supervised learning algorithms have been developed, yet their generalizability from sensor to sensor or study to study is questionable. In this paper, we detail and validate an unsupervised algorithm-CircaCP-for detecting SW cycles from actigraphy. It first uses a robust cosinor model to estimate circadian rhythm, then searches for a single change point (CP) within each circadian cycle. Using CircaCP, we estimated sleep/wake onset times (S/WOTs) from 2125 individuals' data in the MESA sleep study and compared the estimated S/WOTs against self-reported S/WOT event markers, using Bland-Altman analysis as well as variance component analysis. On average, SOTs estimated by CircaCP were 3.6 min behind those reported by event markers, and WOTs by CircaCP were less than 1 min behind those reported by markers. These differences accounted for less than 0.2% variability in S/WOTs, considering other sources of between-subject variations. Rooted in first principles of human circadian rhythms, our algorithm transferred seamlessly from children's hip-worn ActiGraph data to ageing adults' wrist-worn Actiwatch data. The generalizability of our algorithm suggests that it can be widely applied to actigraphy collected by other sensors and studies.
睡眠-清醒(SW)周期检测是从活动记录仪中提取睡眠相关时间指标的关键步骤。目前已经开发了各种监督学习算法,但其在不同传感器或不同研究之间的通用性仍值得怀疑。在本文中,我们详细介绍并验证了一种用于从活动记录仪中检测SW周期的无监督算法——CircaCP。该算法首先使用一种稳健的余弦节律模型来估计昼夜节律,然后在每个昼夜周期内寻找单个变化点(CP)。我们使用CircaCP从MESA睡眠研究中2125名个体的数据中估计睡眠/清醒开始时间(S/WOTs),并使用布兰德-奥特曼分析以及方差成分分析将估计的S/WOTs与自我报告的S/WOT事件标记进行比较。平均而言,CircaCP估计的睡眠开始时间比事件标记报告的时间晚3.6分钟,CircaCP估计的清醒开始时间比标记报告的时间晚不到1分钟。考虑到个体间差异的其他来源,这些差异在S/WOTs中的变异性不到0.2%。基于人类昼夜节律的基本原理,我们的算法能够无缝地从儿童佩戴在臀部的ActiGraph数据转换到老年人佩戴在手腕的Actiwatch数据。我们算法的通用性表明它可以广泛应用于其他传感器收集的活动记录仪数据以及其他研究。