Abstract
One key component when analyzing actigraphy data for sleep studies is sleep-wake cycle detection. Most detection algorithms rely on accurate sleep diary labels to generate supervised classifiers, with parameters optimized for a particular dataset. However, once the actigraphy trackers are deployed in the field, labels for training models and validating detection accuracy are often not available. In this paper, we propose a generic, training-free algorithm to detect sleep-wake cycles from minute-by-minute actigraphy. Leveraging a robust nonlinear parametric model, our proposed method refines the detection region by searching for a single change point within bounded regions defined by the parametric model. Challenged by the absence of ground truth labels, we also propose an evaluation metric dedicated to this problem. Tested on week-long actigraphy from 112 children, the results show that the proposed algorithm improves on the baseline model consistently and significantly (p < 3e-15). Moreover, focusing on the commonality in human circadian rhythm captured by actigraphy, the proposed method is generic to data collected by various actigraphy trackers, circumventing the laborious label collection step in developing customized classifiers for sleep detection.
Introduction
Actigraphy, which utilizes wearable accelerometers to monitor long-term movement, is a cornerstone of sleep research. However, the field faces a significant bottleneck: most existing algorithms are supervised, requiring "ground truth" labels from participant sleep diaries. These diaries are often inaccurate or missing, particularly in studies involving children. Furthermore, models trained on one device often fail to generalize to others due to proprietary data processing. There is a clear need for an unsupervised, hardware-agnostic approach that can accurately identify sleep-wake transitions without manual tuning or labeled data.
Methodology
The researchers developed a two-stage, unsupervised pipeline to address these challenges. The first stage involves Global Circadian Modeling, where a Sigmoidally-Transformed Cosine (STC) model is fitted to raw activity counts. This model accounts for asymmetric awake and asleep durations, providing a rough estimate of transitions.
The second stage is Local Refinement. Using the STC model's estimates as boundaries, the algorithm applies the Pruned Exact Linear Time (PELT) algorithm to find the precise "change point" where the statistical distribution of movement shifts. This "top-down" approach prevents the detector from being misled by daytime sedentary periods or nighttime movements.
To evaluate performance without ground truth, the authors introduced the $R$ metric, defined as the ratio of the variance of diurnal (daytime) activity to nocturnal (nighttime) activity. A higher $R$ indicates a clearer separation between states. The algorithm was validated on a dataset of 112 children (average age 7.8) from the Newborn Epigenetic Study (NEST), using week-long minute-by-minute actigraphy data.
Key Results and Insights
The proposed method demonstrated a significant improvement over the baseline STC model ($p < 3e-15$). By modeling actigraphy data using a Gamma distribution—which better captures the "bursty" nature of physical activity—the algorithm effectively refined transitions that the baseline model previously underestimated.
Beyond accuracy, the algorithm is computationally efficient, processing a week of data in 10–30 seconds. Because it relies on universal human circadian rhythms rather than device-specific features, it is inherently "hardware agnostic." Additionally, the $R$ metric serves as an automated screening tool to flag low-quality data for manual review.
Conclusion
While the $R$ metric assumes a clear variance difference between sleep and wake states—which may be challenged by certain sleep disorders—this unsupervised approach offers a robust solution for large-scale actigraphy studies. Future work will focus on validating the algorithm against clinical gold standards like polysomnography (PSG) and extending the model to detect more granular states, such as naps or specific sleep stages.
Summary updated