Statistical Signal Processing, Wearable Sensing & Digital Health
Sleep and circadian metrics estimation from actigraphy data
CircaCP provides an unsupervised approach to detecting sleep–wake cycles in unlabeled actigraphy data. It combines a robust cosinor model with change point detection to estimate sleep and wake onset times.
Open Shiny app · R package on CRAN · R source code · MATLAB toolbox
For interactive exploration, launch CircaCP Shiny. For an analysis in R, install the package from CRAN:
install.packages("CircaCP")
library(CircaCP)
help(package = "CircaCP")
The CRAN package page provides the reference manual and vignettes. The actigraphy research page describes the methodological background and validation.
Chen, S. and Sun, X. (2024). Validating CircaCP: a generic sleep–wake cycle detection algorithm for unlabelled actigraphy data. Royal Society Open Science, 11, 231468. doi:10.1098/rsos.231468.
The algorithm was validated against event markers in the MESA Sleep study. For package-specific citation information, use citation("CircaCP") in R.