Skip to main content
NPJ Digital Medicine logoLink to NPJ Digital Medicine
. 2026 Jun 13;9:647. doi: 10.1038/s41746-026-02738-8

ActiTect: a generalizable machine learning pipeline for REM sleep behavior disorder screening through standardized actigraphy

David Bertram 1,2,3,✉, Anja Ophey 4,5, Sinah Röttgen 5,6, Konstantin Kufer 7,8, Nele Merten 6, Gereon R Fink 5,6, Elke Kalbe 4, Clint Hansen 9, Walter Maetzler 9, Maximilian Kapsecker 10,11, Lara M Reimer 11, Stephan Jonas 11, Andreas T Damgaard 12,13, Natasha B Bertelsen 12, Casper Skjaerbaek 12, Per Borghammer 12,14, Karolien Groenewald 15, Pietro-Luca Ratti 15, Michele T Hu 15, Noémie Moreau 2,3, Michael Sommerauer 5,6,7,8,✉,#, Katarzyna Bozek 2,3,16,✉,#
PMCID: PMC13498587  PMID: 42286243

Abstract

Isolated rapid eye movement sleep behavior disorder (iRBD) is a major prodromal marker of α-synucleinopathies, often preceding the clinical onset of Parkinson’s disease, dementia with Lewy bodies, or multiple system atrophy. While wrist-worn actimeters hold significant potential for detecting RBD in large-scale screening efforts by capturing abnormal nocturnal movements, they require a reliable and efficient analysis pipeline. This study presents ActiTect, a fully automated, open-source machine learning tool to identify RBD from actigraphy recordings. To ensure generalizability across heterogeneous acquisition settings, our pipeline includes robust preprocessing and automated sleep-wake detection to harmonize multi-device data and extract physiologically interpretable motion features. Model development was conducted on a cohort of 78 individuals, yielding strong discrimination under nested cross-validation (AUROC = 0.95). Generalization was confirmed on a blinded local test set (n = 31, AUROC = 0.86) and two independent external cohorts (n = 113, AUROC = 0.84; n = 57, AUROC = 0.94). To assess robustness, leave-one-dataset-out cross-validation across cohorts demonstrated consistent performance (AUROC range = 0.84–0.89). Complementary stability analysis showed that predictive features remained reproducible across datasets, supporting the pooled multi-center pre-trained model for broader deployment. As an open-source, easy-to-use tool, ActiTect promotes adoption, independent validation, and collaborative improvements, thereby advancing generalizable wearable-based RBD detection.

Subject terms: Biomarkers, Computational biology and bioinformatics, Medical research, Neurology, Neuroscience

Introduction

Neurodegenerative disorders are a leading cause of illness and disability, affecting tens of millions of people worldwide with a significant increase in prevalence over the past three decades1,2. Early detection, particularly during prodromal stages when clinical burden is low, is crucial for understanding disease onset mechanisms and enabling timely interventions3. A major subset of neurodegenerative disorders is driven by α-synucleinopathies, which are characterized by abnormal accumulation of α-synuclein in the nervous system and underlie the pathophysiology of conditions such as Parkinson’s disease (PD), dementia with Lewy bodies (DLB), and multiple system atrophy (MSA)4–6. These conditions share a common clinical marker of the prodromal phase: rapid eye movement (REM) sleep behavior disorder (RBD), a parasomnia characterized by loss of muscle atonia, abnormal movements and dream enactment behaviors during REM sleep7–10. In the absence of a clinical diagnosis of PD, DLB or MSA, this condition is termed isolated or idiopathic RBD (iRBD), which often represents an early manifestation of an underlying α-synucleinopathy. In fact, longitudinal studies have demonstrated that iRBD can precede the clinical onset of motor or cognitive symptoms in α-synucleinopathies by up to 20 years, underlining its critical value as a predictive marker in both clinical and research settings3,11.

Currently, the gold standard for detecting RBD is video-polysomnography (vPSG), an accurate but resource-intensive diagnostic test, requiring costly equipment and expert manual analysis12,13, which in turn limits its practicality for large-scale application. Clinical questionnaires on RBD symptoms provide a simpler and more practical alternative but suffer from subjectivity and reduced diagnostic accuracy14–18.

Actigraphy, typically utilizing wrist-worn accelerometers in RBD studies, has been proposed as a cost-effective, minimally intrusive, and quantitative approach for assessing RBD, making it particularly suitable for large-scale pre-screening. Early studies demonstrated promising results but reported inconsistent performance19–21, likely due to the limited number of features assessed and the subjectivity of human raters.

To overcome these limitations, machine learning (ML) approaches have been applied to actigraphy data22–24, enabling multivariate feature analysis and capturing complex patterns that univariate approaches may overlook. While earlier investigations were largely conducted in single-center settings without independent test sets, more recent work has begun to address multi-center and multi-device validation25.

However, translating these advances into scalable clinical tools requires not only broader validation but also transparent and reproducible implementations, unified end-to-end pipelines that operate across heterogeneous acquisition settings, and methodological frameworks that are robust to cohort and device variability while leveraging the richness of calibrated full-resolution tri-axial actigraphy data. As multi-center efforts expand, progress will increasingly depend on moving beyond parallel model development toward integrative benchmarking and pooled learning across centers. Openly available, easy-to-use implementations and harmonized methodological frameworks will be essential to enable such convergence, supporting community-driven systematic comparison and cumulative refinement, and ultimately broader reproducible deployment.

In this work, we present ActiTect (Fig. 1), an open-source ML tool for predicting RBD status from wrist-worn actigraphy, designed to facilitate cross-device harmonization, pretrained for immediate use, and optimized for computational efficiency and adaptability. It consists of two components: a non-ML module for robust data handling and preprocessing, enabling data standardization across devices, and an ML-based model for classification.

Fig. 1. ActiTect pipeline overview.

Fig. 1

a Preprocessing: Raw actigraphy data from different devices is standardized through a dedicated preprocessing module, which mitigates systematic differences in signal distribution and enables generalizable motion feature extraction for downstream tasks. The pipeline further performs automated detection of sleep periods and non-wear episodes, reducing the need for manual annotations and enabling consistent analysis across large-scale datasets. b Feature extraction: From detected sleep bouts, we extract meaningful motion features that characterize nocturnal activity patterns relevant to RBD. Local features are computed for each activity bout, then aggregated to derive global descriptors representing the entire night. c Predictive model: Each night’s extracted global motion features are mapped to an RBD probability score using boosted decision trees (XGBoost). These nightly scores are then aggregated into a patient-level risk score via a custom function that combines mean-probability thresholding and majority voting. The final binary RBD prediction is obtained by thresholding each patient’s aggregated risk score.

The data processing module (Fig. 1a) is compatible with common wrist-actigraphy devices and applies a series of operations to mitigate systematic artifacts and ensure data consistency. To enhance practicality and usability, the system replaces manual patient diaries with automated non-wear episode detection and sleep segmentation, reducing reliance on potentially subjective reporting. Beyond RBD detection, this module can be used as a standalone tool for general-purpose actigraphy analysis.

The ML module comprises two sequential components. First, a feature-extraction stage distills each subject’s sleep-motion patterns into a set of interpretable numerical descriptors, developed in collaboration with a sleep expert (Fig. 1b). Next, a boosted decision-tree classifier maps these features onto nightly RBD probability scores (Fig. 1c). To mitigate night-to-night variability, nightly scores are aggregated into a single patient-level prediction.

Model development was based on a training cohort of 78 individuals, including 55 with iRBD and 23 healthy controls (HC), and was evaluated on an independent local test cohort of 31 participants (19 iRBD, 12 HC). To assess generalizability, the model was validated on two external cohorts: one of 103 individuals (70 iRBD, 8 PD+RBD, 25 HC) and another of 31 individuals (13 iRBD, 10 PD-RBD, 3 PD+RBD, and 3 HC), with some participants contributing multiple recordings. Here, PD+RBD and PD-RBD denote PD participants with and without PSG-confirmed RBD, respectively. To comprehensively assess robustness, we performed leave-one-dataset-out cross-validation across all cohorts. Moreover, we conducted a limited exploratory cross-device evaluation under lower prevalence conditions using a small, single-night publicly available cohort of 28 participants (3 RBD, 25 non-RBD).

Collectively, these analyses demonstrate consistent performance across diverse populations, supporting the potential of our approach as a broadly applicable framework for actigraphy-based RBD detection.

Results

Actigraphy cohorts overview

Four distinct datasets from three different countries were used in this study. Initial model development was conducted on training data from CogTrAiL-RBD, which comprised 78 individuals (55 iRBD, 23 HC) enrolled in the CogTrAiL-RBD randomized controlled trial26 in Germany, contributing a total of 524 recorded nights.

Our internal evaluation set (Local Test), included 31 prospectively recruited participants (19 iRBD, 12 HC) from an ongoing iRBD screening effort at the same site27.

External validation relied on two additional cohorts. One of these was the ’Oxford Discovery’ cohort from the Oxford Parkinson’s Disease Center (OPDC) project (hereafter referred to as OPDC for brevity). It comprised 103 individuals (70 iRBD, 8 PD+RBD, 25 HC) with several participants contributing multiple dominant-hand recordings from longitudinal follow-up, yielding a total of 113 actigraphy samples.

The other external validation cohort included 31 individuals (13 iRBD, 10 PD+RBD, 5 PD-RBD, 3 HC) recruited from ongoing cohorts at the Lundbeck Foundation Parkinson’s Disease Research Center (PACE), Denmark, with multiple recordings per participant, resulting in 57 samples. This cohort will hereafter be referred to as PACE. Across all cohorts, each recording typically spanned 6-7 consecutive nights, providing in total more than 1809 nights of actigraphy for model development and validation. All recordings were acquired using the Axivity AX6 device with standardized acquisition settings like sample rate (100 Hz) and dynamic range (± 8 g). Further details of the study design and data acquisition protocols are provided in section “Study design.”

An overview of demographic and recording characteristics across all cohorts is summarized in Table 1. Of the recorded variables, the RBD Screening Questionnaire (RBDSQ) and motor impairment (MDS-UPDRS-III) differed significantly between subgroups, consistent with the expected separation of RBD cases from healthy controls. In the OPDC cohort, additional group differences were observed for cognition (MoCA) and olfaction (Sniffin’ Sticks, SSI), reflecting the known decline of these domains in Parkinsonian and RBD populations. No significant cognitive or olfactory differences were found in the PACE cohort, and corresponding values were partly unavailable for the CogTrAiL-RBD and Local Test datasets. Medication prevalence across cohorts is summarized in Table S6, with potentially motor-influential medications present among the participants.

Table 1.

Dataset demographics and characteristics

CogTrAiL-RBD Local test OPDC PACE
iRBD HC iRBD HC iRBD PD+RBD HC iRBD PD+RBD PD-RBD HC
Samplesa value 55 23 19 12 80 8 25 23 19 9 6
Nights value 6.7 ± 0.6 6.7 ± 0.9 6.3 ± 1.2 6.6 ± 0.8 6.2 ± 1.4 6.2 ± 0.7 5.8 ± 2.0 7.4 ± 1.4 6.2 ± 1.2 6.3 ± 1.5 6.3 ± 1.9
(per sample) p i0.467 i0.333 ii0.689 ii0.055
Age value 69.6 ± 5.9 67.6 ± 4.0 68.4 ± 5.0 69.8 ± 6.6 70.6 ± 6.9 74.3 ± 5.6 69.8 ± 8.9 65.8 ± 5.9 68.4 ± 7.9 70.9 ± 7.0 51.4 ± 2.9
(years) p i0.098 i0.623 ii0.282 ii0.003
Sex value 47/8 21/2 14/5 12/2 75/5 7/1 10/15 19/4 14/5 7/2 4/2
(m/f) p iii0.714 iii0.670 iv1.2 × 10−7 iv0.841
RBDSQ value 8.8 ± 3.1 2.3 ± 2.0 9.8 ± 1.9 na 9.4 ± 2.3 10.8 ± 2.7 1.7 ± 1.9 10.1 ± 1.8 7.8 ± 4.0 3.2 ± 1.5 0.5 ± 0.6
p i2.7 × 10−9 na ii1.6 × 10−10 ii1.0 × 10−5
MDS- value 7.2 ± 4.3 4.3 ± 3.9 5.6 ± 3.6 na 12.4 ± 9.7 33.0 ± 14.7 5.4 ± 3.8 8.9 ± 7.5 25.1 ± 11.2 29.6 ± 16.8 0.0 ± 0.0
UPDRS-III p i0.001 na ii2.0 × 10−6 ii4.4 × 10−7
MoCA value 26.7 ± 2.5 27.2 ± 1.9 26.7 ± 1.6 na 25.7 ± 2.8 23.4 ± 5.6 27.2 ± 2.2 27.3 ± 2.3 27.7 ± 1.9 28.2 ± 1.7 29.0 ± 1.2
p i0.682 na ii0.039 ii0.473
SSI value 6.5 ± 2.6 na 7.3 ± 2.1 na 7.3 ± 3.3 5.0 ± 2.5 12.3 ± 0.6 7.1 ± 3.3 6.7 ± 2.7 7.8 ± 2.2 14.0 ± 0.1
p na na ii0.012 ii0.068

Values are given either as record-level average over each subgroup (mean ± SD) or as proportions. Clinical indicators capture prodromal features of α-synucleinopathies and include measures of sleep disturbance (RBDSQ), motor function (UPDRS-III), cognition (MoCA), and olfaction (SSI). Statistically significant differences p<0.05 between diagnosis groups are highlighted in bold.

RBDSQ: REM Sleep Behavior Disorder Screening Questionnaire (0–13 points; scores above 5–6 suggest probable RBD)55; MDS-UPDRS-III: Movement Disorder Society-Unified Parkinson’s Disease Rating Scale, Part III (0–132 points; below 32 is mild, above 59 is severe)56,57; MoCA: Montreal Cognitive Assessment (0–30 points; normal 26–30, mild impairment 18–25, moderate 10–17, severe 0–9)58; SSI: Sniffin’ Sticks Identification test (0–16 points; 12–16 normal olfaction), 9–11 hyposmia, 0–8 anosmia59. na: Data not available.

aNumber of actigraphy recordings: For CogTrAiL-RBD and Local Test, this equals the number of subjects. For OPDC, recordings from 103 individuals (70 iRBD, 8 PD+RBD, 25 HC), i.e., ten individuals contributed two records. For PACE, recordings from 31 individuals (13 iRBD, 10 PD+RBD, 3 PD-RBD, 3 HC) were included in the displayed test set, while an additional 32 recordings from 18 individuals (1 iRBD, 4 PD+RBD, 6 PD-RBD, 7 HC) were used for training only, as they contained an insufficient number of nights (1.2 ± 0.5). The demographics of these training-only cases did not differ significantly from those of the test set within each subgroup (all p > 0.05), except for marginal differences in sex distribution in PD+RBD (p = 0.05) and in RBDSQ/UPDRS-III scores in HC (p = 0.03 and p = 0.04, respectively). i-ivStatistical tests: itwo-sided Mann-Whitney U. iiKruskall–Wallis. iiiFisher-Irwin. ivFisher-Freeman-Halton.

Generalizable RBD Models through Robust Preprocessing

Developing generalizable ML models for RBD screening from actigraphy data requires a preprocessing pipeline that can reliably harmonize data across heterogeneous input sources. We designed a robust signal preprocessing framework aimed at standardizing raw accelerometer recordings from different devices and cohorts, ensuring compatibility for downstream feature extraction and model inference.

The pipeline consists of resampling, bandpass filtering, non-wear episode detection, auto-calibration, and sleep-wake segmentation (see section “Actigraphy standardization and segmentation” and Fig. 1). We focus on two key components of this process, demonstrating their impact on standardization and data quality. First, we assess the effectiveness of device auto-calibration by quantifying deviations from the expected unit sphere before and after correction, following the method proposed by van Hees et al.28. Second, we evaluate the performance of automated sleep segmentation by comparing algorithmically derived sleep windows to manually annotated sleep diaries.

Actimeters typically require individual calibration to correct for device-specific variations in gain and offset, especially when accurate axis-orientation relationships are critical. However, manual calibration is labor-intensive and thus rarely performed in practice. Therefore, we incorporate a post-hoc auto-calibration step into our pipeline, leveraging the observation that the magnitude of the acceleration vector approximates the standard gravitational acceleration during rest periods. This involves identifying low-activity segments, computing deviations from the unit sphere, and iteratively fitting gain and offset parameters via weighted least square regression to minimize discrepancies between observed data points and the theoretical unit sphere28.

Since calibration error can be directly quantified by the deviation from the unit sphere, we evaluated the effectiveness of our auto-calibration by comparing these deviations before and after correction (Fig. 2b), which illustrates the relationship between initial error and relative error reduction ratio across cohorts. Reflecting these trends, calibration errors were reduced from 50.89 ± 38.28 mg to 2.81 ± 0.81 mg across the CogTrAiL-RBD cohort and from 25.13 ± 7.65 mg to 3.09 ± 1.12 mg within the Local Test cohort. Within the OPDC cohort, we observed a reduction from 40.01 ± 16.72 mg to 2.83 ± 1.01 mg.

Fig. 2. Robust preprocessing for generalizable RBD detection.

Fig. 2

Overview of preprocessing steps and validation; cohort colors match the legend (bottom center). a Resampling: Cumulative clock drift over recording time. Raw actigraphy signals sampled at a nominal 100 Hz show substantial timing drift due to internal clock inaccuracies. Resampling corrects this drift to within numerical precision, as evidenced by near-identical post-resampling curves across cohorts. b Calibration: Initial calibration error ϵ0 vs. reduction efficiency 1 − ϵ/ϵ0, where ϵ is the post-calibration error. Calibration is highly effective across cohorts, with mean ± SD [95%CI] efficiencies of 0.93 ± 0.04 [0.92, 0.94] (CogTrAiL-RBD), 0.87 ± 0.04 [0.85, 0.89] (Local Test), and 0.91 ± 0.05 [0.91, 0.92] (OPDC). Higher initial errors yield greater correction gains. c Filtering: Amplitude spectral density (ASD) before (dotted line) and after (solid line) bandpass filtering, highlighting suppression of noise outside while preserving signal power within the 0.8–20 Hz passband. Cohort-averaged ASDs (Welch’s method) align closely outside the band but show greater variability (SD shown by shaded area) within it, supporting the choice of frequency cutoffs that isolate signal-dominated activity. Retention and suppression scores were 0.78 ± 0.01 [0.77, 0.78] / 0.89 ± 0.01 [0.89, 0.90] for CogTrAiL-RBD data, and 0.73 ± 0.09[0.70, 0.77] / 0.90 ± 0.01 [0.89, 0.90] for Local Test data. d Sleep-detection: Comparison of automatically detected sleep onset and wake-up times with reference values from sleep diaries (CogTrAiL-RBD, n = 756) and PSG (Local Test, n = 32). Subfigure (i) displays predicted and reference times in clock format; the closer the connecting lines are to perfectly radial, the stronger the temporal alignment. Subfigure (ii) shows a scatter plot of automated versus reference times. Strong agreement is evidenced by Pearson correlation coefficients of 0.994 ± 0.001 [0.994, 0.995] (CogTrAiL-RBD), 0.996 ± 0.001 [0.992, 0.998] (Local Test) and mean-absolute errors (in minutes) of 34.4 ± 40.9 [31.5, 37.3] min (CogTrAiL-RBD), 35.8 ± 45.5 [19.4, 52.3] (Local Test). The relatively large SDs compared to the means reflect some high-variance nights, while the narrow confidence intervals suggest that the mean error estimates remain robust at the group level.

In ambulatory studies targeting RBD detection from actigraphy, concurrent polysomnography (PSG) for sleep-window determination is typically unavailable. In those studies, sleep periods are approximated using participant-completed sleep diaries22, which are potentially limited by subjectivity, precision in reported times, or missing data due to participant burden, and light sensor data23, reflecting time in bed rather than actual sleep.

As part of our preprocessing pipeline, we employ the HDCZA algorithm introduced by van Hees et al.29 to identify candidate sleep periods from raw actigraphy, as the algorithm has been shown to generalize well across populations and to outperform both machine learning-based and other heuristic approaches30. To assess the performance of this algorithm within our specific setting, we conducted two validation analyses: one using annotated sleep diaries from the training cohort and another using PSG recordings from the test cohort, both available for a subset of individuals.

For the diary-based validation, we analyzed data from the CogTrAiL-RBD cohort, comprising 61 individuals 44iRBD,17HC with available sleep diary annotations spanning 7 nights each. We computed per-subject c-statistics (area under the ROC curve from binary sleep/wake labels, equivalent to the concordance index in the absence of probabilistic scores29) from binarized sleep/wake labels at 30-second resolution and averaged them across the cohort, achieving a mean c-statistic of 0.93−0.02+0.01. Sleep onset and wake-up timestamps pooled across all individuals yielded a mean absolute error (MAE) of 34.4−2.9+3.3 min and a Pearson correlation of 0.994−0.001+0.001 as displayed in Fig. 2d.

We further validated sleep detection performance using parallel PSG and actigraphy recordings from 16 participants 13,iRBD,3,HC of the Local Test cohort, where PSG was available for the first night of each seven-day recording and sleep intervals were scored by an expert (M.S.). The algorithm was applied to full seven-day recordings, with performance metrics derived from the first (PSG-recorded) night, yielding a mean c-statistic of 0.91−0.04+0.03, a mean absolute error of 35.8−16.4+16.4 min, and a Pearson correlation of 0.996−0.004+0.002. Taken together, these results validate the HDCZA algorithm as a reliable component of our preprocessing pipeline, demonstrating strong agreement with both diary-based annotations and expert-scored PSG intervals. Notably, the automated segmentation shows a slight tendency to underestimate sleep duration relative to PSG (Fig. 2d), which may be beneficial in our context by reducing the risk of calculating sleep features on the wake-period activity. Although direct comparisons between the diary- and PSG-based evaluations are limited by differences in sample size, previous studies indicate that sleep diaries often overestimate sleep intervals relative to PSG31–33, suggesting that actigraphy-based approaches like HDCZA may offer a more objective alternative to diaries.

Together with robust resampling to correct sampling drift (Fig. 2a) and effective noise reduction through bandpass filtering (Fig. 2c), these steps ensure standardized and physiologically meaningful input signals, crucial for learning generalizable features in downstream machine learning models.

Single-center model generalizability

Prior to developing our own model, we assessed a previously published actigraphy-based RBD detection approach23 on our multi-center data. Its evaluation indicated limited cross-cohort generalizability (Table S1), motivating the development of a dedicated, robust pipeline.

Leveraging the standardized, noise-reduced actigraphy signals generated by our preprocessing module (Fig. 2), we developed and prototyped a single-center machine-learning model on the CogTrAiL-RBD cohort to assess its transferability to cohorts originating from different centers.

After data preprocessing, we extract numerical features characterizing motor behavior during sleep. Engineered with the aim of differentiating between RBD and non-RBD individuals, these features leverage domain-specific knowledge and clinical experience, incorporating knowledge from a trained RBD expert (M.S.). Specifically, they capture distinct patterns within individuals’ movements during sleep, including intensity, periodicity, spectral properties distinguishing rapid from slow movements, complexity, fragmentation, overall activity levels, and clustering behavior, i.e., whether movement bursts are uniformly distributed throughout the night or occur in temporal clusters, for example, during REM periods. For a detailed description and physiological interpretation of each feature, see Table S2. The ML model was developed and trained exclusively on data from the CogTrAiL-RBD cohort (78 individuals, 524 nights), with feature selection and hyperparameter tuning performed within a nested cross-validation framework to prevent biased performance estimates, as detailed in section “Model development and validation.”

Classification performance, assessed on the outer folds of the nested cross-validation, achieved a mean area under the receiver operating characteristic curve (AUROC) of 0.87−0.03+0.03, a F1 score of 0.82−0.03+0.03 and balanced accuracy of 0.81−0.03+0.03 for the night-level prediction. On the patient level, after aggregating over all available nights of each patient (6.4 ± 0.9), the classification reaches a mean AUROC of 0.96−0.02+0.02, a F1 score of 0.92−0.03+0.03 and balanced accuracy of 0.92−0.04+0.04, demonstrating the benefit of collecting actigraphy data over multiple nights to mitigate night-to-night variability (see Fig. 3b). Calibration of non-thresholded probability predictions was assessed using the Brier score, yielding values of 0.14−0.01+0.02 at the night level and 0.12−0.03+0.01 at the patient level, suggesting that the predicted probabilities reasonably reflect the true RBD likelihood as displayed in Fig. 3c.

Fig. 3. Predictive RBD modeling results.

Fig. 3

a Violin plots of two selected features illustrating distributional shifts between individuals with RBD and healthy controls. p-values are computed using two-sided Mann–Whitney U-tests, and effect sizes δ are reported as Cliff’s delta. These features are discussed in more detail at the end of the results section. b ROC curves of the nested cross-validation results of the night-level prediction (left) and after aggregation to the patient level (right). The blue line indicates the mean over all folds, and the shaded area represents the 95% confidence interval. The improved performance after aggregation reflects the benefit of multi-night actigraphy and helps mitigate night-to-night variability in motor activity. c Calibration curve on the night level using predictions from nested cross-validation. Triangles indicate the observed positive rate per probability bin; the shaded region shows the 95% CI across folds. The predicted probabilities are well calibrated and closely reflect the true likelihood of RBD. d Radar plot summarizing classifier performance across multiple evaluation metrics for the external test sets. Results are shown separately for the Local Test cohort (cyan), the OPDC cohort (magenta) and the PACE cohort (dark-orange), where (iRBD) and (all-RBD) denote the respective classification tasks (see Table 2), indicating robust and balanced generalization with a subtle emphasis on recall.

While nested cross-validation offers a reliable assessment of internal performance, it does not fully capture the model’s ability to generalize to an independent, potentially out-of-distribution dataset. Hence, we trained a final model on the entire CogTrAiL-RBD cohort and evaluated it on three independent datasets: a blinded holdout set from a prospective screening effort (Local Test) and two external validation cohorts from different centers (OPDC and PACE), providing a stronger test of the generalizability of our approach. An overview of the model’s classification performance on the external test cohorts is shown in Fig. 3d, while detailed metrics with 95% confidence intervals derived by bootstrap resampling for single-model evaluations and from inter-fold variability for cross-validation are provided in Table 2.

Table 2.

Single-center model validation results

Cohort Records Model(s) AUROC F1 Bal. Acc.
CogTrAiL-RBD (iRBD) iRBD: 55 (370) HC: 23 (154) CV 0.96−0.02+0.02 0.92−0.03+0.03 0.92−0.04+0.04
Local Test (iRBD) iRBD: 19 (119) HC: 12 (79) Held-out 0.855−0.003+0.003 0.901−0.002+0.002 0.833−0.003+0.003
OPDC (iRBD) iRBD: 80 (496) HC: 25 (144) Held-out 0.838−0.002+0.002 0.890−0.001+0.001 0.810−0.002+0.002
OPDC (PD+RBD) PD+RBD: 8 (50) HC: 25 (144) Held-out 0.844−0.003+0.003 0.671−0.004+0.004 0.813−0.003+0.003
OPDC (all-RBD) iRBD: 80 (496) PD+RBD: 8 (50) HC: 25 (144) Held-out 0.839−0.002+0.002 0.894−0.001+0.001 0.810−0.002+0.002
PACE (iRBD) iRBD: 23 (171) HC: 6 (57) Held-out 0.973−0.002+0.002 0.957−0.002+0.002 0.961−0.002+0.002
PACE (PD+RBD) PD+RBD: 19 (117) PD-RBD: 9 (38) HC: 6 (57) Held-out 0.956−0.002+0.002 0.836−0.002+0.002 0.777−0.004+0.004
PACE (all-RBD) iRBD: 23 (171) PD+RBD: 19 (117) PD-RBD: 9 (38) HC: 6 (57) Held-out 0.938−0.002+0.002 0.900−0.002+0.002 0.759−0.004+0.004

Shown are the datasets used to validate the ML model, along with corresponding patient-level classification metrics as means with 95% confidence intervals. Cohorts labeled iRBD were evaluated on the task of distinguishing iRBD from healthy controls (HC), while PD+RBD cohorts were used to differentiate PD individuals with PSG-confirmed RBD from HCs. The records column reports the number of multi-day actigraphy recordings, with the number of nights per class shown in parentheses.

CV: Metrics reflect the mean across cross-validation folds, with 95% confidence intervals derived from inter-fold variability, capturing both data split and model training variation.

Held-out: A single pretrained model is evaluated once on a blinded dataset. Confidence intervals (95%) are estimated via bootstrap resampling (n = 2000, stratified by class) and quantify the uncertainty of the point estimate given the finite test set.

Evaluation of the final model on the blinded Local Test cohort (31 individuals, 198 nights) yielded patient-level metrics of AUROC 0.86, F1 0.90, and balanced accuracy 0.83, indicating a moderate generalization gap between training and unseen data, as the AUROC falls below the lower bound of the internal 95% confidence interval (0.94–0.98) from nested cross-validation. Nonetheless, overall generalization remains strong, with classification metrics well balanced and a notably high F1 score (0.90) reflecting strong sensitivity and slightly higher recall (0.99) than precision (0.83). This asymmetry suggests a favorable bias toward detecting true positives, a desirable property in clinical screening where false negatives carry greater cost than false positives. Results on the OPDC and PACE datasets (see Table 2) further support the model’s ability to generalize across clinical populations and recording conditions.

In the OPDC cohort, the model maintained strong generalization, achieving AUROC 0.84, F1 0.89, and balanced accuracy 0.81 for iRBD vs HC. Performance in PD+RBD vs HC was similar (AUROC 0.84) but with a lower F1 (0.67) due to the small number of positive cases and resulting class imbalance. Metrics for the combined iRBD and PD+RBD group (all-RBD) are predominantly influenced by the iRBD subset.

In the PACE cohort, the model achieved very strong iRBD detection with AUROC 0.97, F1 0.96, and balanced accuracy 0.96. When PD+RBD cases were evaluated against HC/PD-RBD, AUROC and F1 remained high (0.96 and 0.84), but balanced accuracy declined to 0.78, indicating that greater clinical heterogeneity and class imbalance shift the optimal decision threshold despite preserved overall separability.

To assess whether wrist dominance influences model performance, we evaluated 111 participants in the OPDC cohort with simultaneous dominant and non-dominant wrist recordings, where parallel bilateral recordings were available. Using a paired permutation test (50 000 permutations), we observed no statistically significant differences in performance between wrists (AUROC: dominant 0.85 vs. non-dominant 0.88, p = 0.28; Bal. Acc.: dominant 0.82 vs. non-dominant 0.81, p = 0.84; F1: dominant 0.91 vs. non-dominant 0.90, p = 0.62), indicating that ActiTect’s performance was not meaningfully affected by wrist placement in this cohort.

To contextualize both our handcrafted feature design and the sleep-detection component of the preprocessing pipeline, we additionally evaluated sleep detection, sleep staging, and RBD classification performance using a publicly available self-supervised sleep-staging framework (see section “Feature extraction and model design”) 34.

First, sleep-wake detection was evaluated under identical conditions as in the section “Generalizable RBD models through robust preprocessing.” The model achieved mean absolute errors of 51.5−4.8+4.6 min (diary) and 53.3−16.9+16.9 min (PSG), consistently exceeding the error observed with our preprocessing pipeline (~35,min). Sleep staging was further assessed on the PSG subset by comparing predicted 30-second epoch labels to expert annotations (M.S.). Balanced accuracy reached 0.58−0.06+0.06, with a REM sensitivity of 0.21−0.11+0.11. Most REM epochs were misclassified as nREM.

Second, RBD classification was evaluated by replacing ActiTect’s handcrafted features with the model’s 1024-dimensional latent representations. Under identical nested cross-validation within the CogTrAiL-RBD cohort, this approach achieved AUROC 0.93−0.03+0.03, F1 0.89−0.02+0.02, and balanced accuracy 0.79−0.03+0.03. On the independent Local Test cohort, performance reached AUROC 0.85−0.003+0.003, F1 0.81−0.003+0.003, and balanced accuracy 0.77−0.004+0.003. These findings confirm that the RBD-relevant signal is present in the high-dimensional self-supervised movement representations. However, performance remained consistently below that achieved with ActiTect’s handcrafted features (Table 2). While the self-supervised features might increase representational richness, they may lack task-specific inductive bias for RBD and might fail to capture movement patterns most relevant to the disorder, particularly since RBD was not present in the training data of the feature extractor.

Unified multi-center model

Having established that our single-center prototype retains predictive power across external sites, we next pooled data from multiple cohorts to train a unified multi-center model, intended as a generalizable, pre-trained solution for use in independent clinical settings. Training across sites aims to improve robustness by exposing the model to diverse populations and recording conditions. To re-evaluate its generalization performance under realistic deployment scenarios, we employed leave-one-dataset-out (LODO) cross-validation, simulating application to previously unseen centers. Demonstrating stability across these LODO models confirms that our model selection pipeline converges on consistent and meaningful solutions. This ensures that the final pooled model, released publicly as a pre-trained resource, closely reflects the behavior of the LODO models, and that LODO performance metrics provide realistic estimates of its expected performance on new cohorts.

The multi-center model demonstrated strong overall generalization, confirming the robustness of our pipeline across independent cohorts. Compared with the single-center model, it achieved similar discrimination (AUROC) but showed mixed F1-scores and slightly lower balanced accuracy (BA) on the same external datasets (see Tables 2 and 3). We noticed that including the Local Test cohort in pooled training consistently preserved AUROC but lowered BA and increased Brier scores, indicating poorer probability calibration (Table S4). While the performance difference is minor, we excluded Local Test from the final LODO training.

Table 3.

Multi-center model validation results

Cohort Records AUROC F1 Bal. Acc.
CogTrAiL-RBD (iRBD) iRBD: 55 (370) HC: 23 (154) 0.888−0.002+0.002 0.824−0.002+0.002 0.819−0.002+0.002
OPDC (all-RBD) iRBD: 80 (496) PD+RBD: 8 (50) HC: 25 (144) 0.823−0.003+0.003 0.915−0.001+0.001 0.731−0.003+0.003
PACE (all-RBD) iRBD: 23 (171) PD+RBD: 19 (117) PD-RBD: 9 (38) HC: 6 (57) 0.828−0.004+0.004 0.919−0.002+0.002 0.815−0.004+0.004
CogTrAiL-RBD (iRBD) iRBD: 55 (370) HC: 23 (154) 0.867−0.002+0.002 0.769−0.002+0.002 0.746−0.002+0.002
OPDC (iRBD) iRBD: 80 (496) HC: 25 (144) 0.853−0.002+0.002 0.910−0.001+0.001 0.769−0.003+0.003
PACE (iRBD) iRBD: 23 (171) HC: 6 (57) 0.973−0.002+0.002 0.957−0.002+0.002 0.961−0.002+0.002

Displayed are classification metrics of the multi-center model across LODO folds, i.e., independent datasets. The confidence intervals (95%) are estimated via bootstrap resampling (n = 2000, stratified by class). The LODO evaluation was performed twice, once on all RBD cases and once restricted to iRBD, yielding the upper and lower table blocks, respectively.

The performance differences among cohorts appear to stem mainly from calibration and regularization effects. This argument is supported by higher Brier scores (e.g., OPDC all-RBD 0.12 vs. 0.09, PACE all-RBD 0.14 vs. 0.09, OPDC iRBD 0.12 vs. 0.08, PACE iRBD 0.09 vs. 0.06) for the multi-center model across cohorts, signaling less well-calibrated probability scores, leading to modest BA and F1 reductions even when AUROC remains stable, as further elaborated in the Discussion. Both the single-center and multi-center models are available in our GitHub repository (https://github.com/bozeklab/actitect) so that users can explore different deployment scenarios and performance trade-offs.

Feature selection and hyperparameter stability

The model selection pipeline of ActiTect incorporates feature selection and hyperparameter optimization. To assess robustness, all engineered features were ranked by importance (see section “Model development and validation”), and their consistency was evaluated across the LODO folds. Spearman’s rank correlations were generally high (up to 0.94), confirming that the ranking procedure is internally stable under resampling. Correlations were somewhat lower when OPDC was used as the held-out test set (0.54–0.67), yet they still indicate moderately strong agreement, which is expected given that OPDC is the largest cohort and its omission induces the greatest distributional shift (Fig. 4b). When comparing rankings derived within individual datasets, correlations were lower (0.36–0.70; Fig. S1), reflecting cohort-specific feature preferences and underscoring the value of pooling data to derive the most generalizable feature set.

Fig. 4. Unified multi-center model: cross-cohort performance and model stability.

Fig. 4

a LODO performance: ROC curves of the leave-one-dataset-out (LODO) cross-validation. Each curve corresponds to one fold, with one dataset held out for testing while the others were used for training. The results show consistently high discrimination across datasets, indicating robust generalization. b Feature ranking stability: Spearman’s rank correlation of ActiTect’s inherent feature rankings across LODO folds, indicating consistently strong agreement (moderate-to-strong for OPDC holdout) and supporting the robustness of the final model. c Feature selection stability & ablation: Model performance as a function of features retained from a consensus ranking. Performance peaks around ~ 20 features (the stable “core''), while the mean selected count across 20 seeded runs is slightly higher 29.74−1.42+1.42 with a narrow band, indicating stable selection. Beyond this range, performance saturates and remains stable. d Hyperparameter stability: Stability scores from repeated LODO runs (n = 20) show that nearly all hyperparameters are highly stable, with only minor variability in a subset of hyperparameters. Overall, the training procedure converges to consistent configurations across cohorts, underscoring the robustness of the pipeline.

Next, we assessed feature selection stability. For each fold of the LODO cross-validation, the pipeline selects a set of top-ranked features, and we quantified their overlap using the Jaccard similarity index. We observed only a moderate overlap of 0.41−0.02+0.34 (95% CI). However, a stable core signal of ten features was consistently selected in all four CV folds, with seven of them also retained in the final pooled model. In addition, eleven supporting features appeared in two out of three folds, about half of which were also present in the final model. Thus, the modest Jaccard score largely reflects variability in these supporting features, while the stable core indicates reproducible structure across folds. This raised the question of whether the stable core set of features alone would suffice to build accurate classification models. To investigate this, we conducted an ablation study, re-training models while progressively increasing the number of retained features from a consensus ranking (Fig. 4c). Performance was already strong with the stable core features, and appeared to peak around 20–25 features, corresponding to the core plus a subset of supporting features. The automatically selected feature sets performed slightly above the stable core alone and close to this peak, with a mean selected count of about 30 features across repeated LODO runs, suggesting that while the core features are highly informative, adding a limited number of supporting features yields the most reliable performance. Based on these findings, we retained the pipeline’s automatic feature selection strategy for the final model, rather than restricting it to the core set of features alone.

Finally, we evaluated the stability of the hyperparameter optimization to assess whether tuning converged to similar configurations across folds. Convergence would indicate that the model class and its regularization are robust to dataset composition, whereas divergence would suggest fold-specific sensitivity that could undermine generalization. We rerun the LODO cross-validation 20 times under variation of the random seed and evaluated the population of hyperparameters in terms of a stability score (see section “Model development and validation”). We observed that roughly half of the hyperparameters, including the number of selected features, achieved high stability scores above 0.80, while the remainder were somewhat lower (0.54-0.64) yet still in a moderate-to-strong range (see Fig. 4d). This indicates that, overall, the optimization converged consistently across repetitions, with only limited variability in some parameters. Notably, the less stable ones often interact closely, such as the learning rate, number of trees (n_estimators), and minimum child weight (min_child_weight, a parameter controlling tree complexity by enforcing a minimum leaf size). These parameters form compensatory trade-offs—for instance, smaller learning rates typically require more trees, and stricter child weight constraints can be balanced by deeper or more numerous trees. As a result, different but functionally equivalent configurations can yield comparable performance, leading to apparent variability without undermining robustness.

Taken together, the stability of feature rankings, selected feature sets, and hyperparameter configurations demonstrates that ActiTect consistently converges on reproducible solutions across datasets.

Cross-device evaluation

Our multi-center experiments demonstrated the robustness of our models across sites and recording conditions. We additionally tested our model’s performance on a dataset recorded with a different wearable device35,36. This dataset was collected to evaluate accelerometer-based sleep classification against PSG in a clinical sleep-laboratory setting and comprises 55 single-night GENEActiv recordings from 28 sleep-clinic patients (17 male, 11 female; age range 21–72 years, mean 44.9 ± 14.9 years), with simultaneous bilateral wrist recordings (one device per wrist; one recording missing) and corresponding 30-second PSG sleep staging. Eight participants were healthy controls, and 20 had heterogeneous sleep disorders, including three cases of RBD. Of the three RBD cases, two were annotated as RBD and one as “mild RBD” in the metadata.

The cohort includes younger individuals compared to our other cohorts, recordings were limited to a single laboratory night, and actigraphy ended before PSG in 13/55 recordings, with 9/55 terminating during the PSG-defined sleep window (mean sleep coverage 76.3 ± 9.6% in those cases). Despite these constraints, the preprocessing pipeline generalized well to the different devices and recording conditions (GENEActiv, 85.7 Hz). Auto-calibration reduced the calibration error from ϵ0 = 13.93 ± 7.31 mg to ϵ = 1.81 ± 0.56 mg, corresponding to a mean efficiency of 1−ϵ/ϵ0=0.83−0.04+0.03.

Using PSG sleep staging as ground truth, automated sleep detection achieved an AUC of 0.81−0.05+0.05, a mean absolute error of 133.6−30.7+30.7 min for sleep onset and offset combined, and a Pearson correlation of 0.96−0.02+0.01. These estimates were obtained after excluding the 9 recordings in which actigraphy ended before the PSG-defined sleep window. A systematic tendency toward earlier sleep onset and prolonged sleep windows was observed, reflecting the conceptual difference between actigraphy-detecting behavioral inactivity and PSG, where sleep onset is defined by the first EEG-based N1 epoch.

For exploratory patient-level RBD classification (n = 3 RBD; prevalence ≈ 11%), participant-level predictions were obtained by averaging left and right wrist probabilities (when available) prior to thresholding. The multi-center model correctly identified 2 of 3 RBD cases (2 true positives, 1 false negative) and produced five false positives among 23 non-RBD subjects (18 true negatives), corresponding to a sensitivity of 67% and specificity of 78%. Notably, the occurrence of false positives should be interpreted alongside the marked prevalence shift relative to the development cohorts (11% vs. 61–79%). While the extremely small RBD sample precludes robust performance estimation, these findings demonstrate technical transferability to a non-AX6 device without major loss of accuracy.

Interpretable feature patterns in RBD detection

To understand the patterns learned by the model, we analyzed the combined set of features selected by the single-center and multi-center models. Their intersection corresponds to the stable core identified in the previous section, complemented by additional supporting features that together characterize RBD-related motor patterns. Within the selected features, we identified five semantically coherent groups:

i. Movement intensity and variability: Features capturing the intensity, power, and variability of movement amplitudes across the night. Notably, features derived from the longitudinal axis (y-axis, aligned with the forearm) and the magnitude vector were most prominent. An example is the skewness of activity bout power, which was significantly higher in individuals with RBD compared to healthy controls p<10−12,δ=−0.41. This indicates a positive skew driven by occasional high-intensity bursts, a pattern more characteristic of RBD and consistent with their known sleep motor symptoms.

ii. Temporal patterns and rhythmicity: This group includes features capturing short- and long-term variability using Poincaré-based descriptors, and movement periodicity based on autocorrelation. For example, the average location of the first minimum in the autocorrelation of acceleration magnitude reflects rhythmic consistency. This value was significantly lower in individuals with RBD p<10−12,δ=0.25, indicating less homogeneous movement patterns and more irregular rhythmicity throughout the night.

iii. Peak and event structure: This set of features captures the frequency and prominence of peaks within activity bouts. High peak frequency with strong prominence may reflect less controlled, jerky movements. A representative feature is the interquartile range of peaks per second across the night, which was significantly higher in individuals with RBD p=2.9×10−7,δ=−0.16, suggesting more irregular and fragmented movement.

iv. Activity bout durations: A smaller group of three features describes the average duration of movement bouts over one night and their range, expressed by the 25th and 75th percentiles. Notably, the median bout duration was significantly shorter in individuals with RBD p<10−12,δ=0.62, indicating more burst-like movement patterns (Fig. 3a).

v. Spectral domain and complexity: These features were extracted from the frequency domain of the signal and characterize the signal frequency and its complexity. For example, the standard deviation of spectral entropy across one night was significantly increased p<10−12,δ=−0.45 in the RBD group, indicating a broader range of movement frequencies-from slower, controlled actions to faster, jerky movements (Fig. 3a).

These five feature groups illustrate how the model distinguishes RBD from healthy controls based on actigraphy data. Statistical significance was assessed with the Mann–Whitney U-test across 1334 nights from individuals with RBD and 499 nights from healthy controls, pooled over all four cohorts. Effect sizes were estimated using Cliff’s delta. The observed effects were directionally consistent across all constituent cohorts (Table S5).

Discussion

Correct and scalable identification of iRBD is pivotal, as the condition can precede the motor manifestations of PD and other α − synucleinopathies by up to 20 years, affording a critical window for preventive interventions while enabling investigation of neurodegenerative processes during clinically prodromal stages3,11.

Wrist-worn actigraphy offers a scalable, non-invasive approach to screening these prodromal cases, but its utility depends on a robust, fully automated analysis pipeline that operates consistently across devices and recording conditions. Previous works have proposed machine-learning models for this task, evolving from single-center investigations22–24 to more recent multi-center validation efforts25. Yet, sustained progress requires unified end-to-end frameworks that operate consistently across acquisition settings, leverage the full informational potential of calibrated, full-resolution tri-axial actigraphy data, and facilitate transparent, comparable evaluation across cohorts.

Here, we present ActiTect, an open-source pipeline for RBD prediction from wrist-worn actigraphy, designed to enable cross-device harmonization, standardize preprocessing, and extract interpretable motion features, with validation across independent cohorts collected under heterogeneous real-world conditions. We demonstrated that our preprocessing module reliably harmonizes data from different sites and mitigates systematic artifacts such as clock drifts, calibration errors, and broadband low- or high-frequency noise. Such harmonization is a prerequisite for ensuring that downstream modeling reflects genuine physiological signal rather than device- or site-specific biases, thereby enabling the development of models that generalize across diverse clinical settings. Beyond technical harmonization, the pipeline also integrates an automated sleep-wake detection module based on an established algorithm29, which showed strong agreement with both diaries and PSG. This functionality is particularly important for large-scale or longitudinal studies, where subjective reporting is often incomplete or inconsistent, and ensures that nocturnal activity patterns are extracted in a standardized manner across diverse cohorts.

Building on this, we engineered a comprehensive set of motion features designed to capture complementary aspects of nocturnal activity, including intensity and variability, temporal rhythmicity, peak structure, bout duration, and spectral complexity. These features, developed in collaboration with a sleep expert, were explicitly chosen for interpretability and clinical relevance. Our analysis confirmed that several of them differ significantly between RBD and controls, underscoring that the model leverages physiologically meaningful patterns rather than spurious correlations.

Across both internal and external validation cohorts, ActiTect demonstrated consistently strong predictive performance. This robustness was further confirmed in the leave-one-dataset-out analysis, where the model generalized reliably to unseen cohorts, indicating that the learned representations capture cross-cohort disease-relevant patterns.

We also observed no meaningful performance differences between dominant and non-dominant wrist recordings within the OPDC cohort, indicating no detectable influence of wrist placement on model performance in this setting. Given that non-dominant wrist placement is commonly used in sleep research, this finding supports flexible deployment under standard actigraphy protocols.

Moreover, we benchmarked ActiTect against a pretrained self-supervised sleep-staging framework34 under an identical evaluation workflow. Although high-dimensional latent embeddings captured substantial RBD-relevant signal, they did not surpass the handcrafted feature representation. This indicates that representational richness alone is insufficient without task-aligned inductive bias reflecting REM-related motor disinhibition, and it comes at the cost of reduced physiological interpretability. These findings do not argue against self-supervised learning, but instead underscore task-specific adaptation as a promising and important direction for future RBD-focused representation learning. Stability analysis of both the feature selection and model hyperparameter optimization further demonstrated that the pipeline converges on consistent and reproducible configurations across folds and random seeds, implying that the observed performance reflects a genuine signal rather than dataset-specific idiosyncrasies.

At the same time, pooling heterogeneous cohorts likely encourages stronger regularization and yields a smoother, more ‘compromised’ decision surface. Such a surface may not be optimal for any single dataset but can yield superior average performance across many previously unseen cohorts, representing a form of the classical bias-variance trade-off 37,38.

In parallel to our work, a recent multi-center validation study has demonstrated that actigraphy-based machine learning models can retain discriminative performance across heterogeneous cohorts and devices25. While both approaches demonstrate that such models can generalize beyond single-center settings, they differ in methodological emphasis. Zhou et al.25 derive features primarily from activity counts aggregated into fixed epochs and complemented by circadian rhythm metrics, and address cross-device variability through auxiliary device-specific conversion models trained on limited parallel-recording datasets. In contrast, ActiTect operates directly on calibrated, full-resolution tri-axial data within a unified end-to-end preprocessing framework. It incorporates systematic cross-center retraining and stability analyses, with empirical validation across additional device types remaining limited. These complementary strategies represent distinct approaches to signal representation and harmonization, while collectively reinforcing the potential of actigraphy-based RBD screening.

Building on these results, we release the pipeline as open source to enable community-driven extensions that further increase reliability and support broader clinical translation. In addition, the pipeline is well-suited for other analyses involving longitudinal data. Consistent analysis across repeated recordings could help to track changes in nocturnal motor patterns over time, potentially providing insights into prodromal disease trajectories. Beyond the immediate task of RBD screening, the preprocessing module—including the engineered feature set—can be applied independently, given its modular design. It is therefore usable for the examination of other sleep- and movement-related disorders. In particular, the feature space captures movement periodicity, variability, and bout morphology, characteristics that differ between RBD and disorders such as periodic limb movement disorder, and future work should evaluate such multi-class differentiation across specific sleep disorders using appropriate datasets.

Although ActiTect was designed to be device-agnostic, the primary evaluation in this study was conducted on Axivity AX6 data, as all independent cohorts were recorded with this device. We therefore performed an additional exploratory cross-device evaluation on a publicly available dataset recorded with GENEActiv devices, which also contains a substantially lower RBD prevalence (~ 11%) than our development cohorts. In this setting, preprocessing-specifically calibration and sleep segmentation— yielded quantitatively consistent results. At the participant level, the multi-center model identified 1 of 3 RBD cases and produced no false positives among 23 non-RBD subjects, indicating preserved specificity despite substantial class imbalance. However, the very small number of RBD cases and the recordings limited to single-night preclude definitive conclusions regarding cross-device classification performance. Larger, multi-device cohorts with labeled RBD cases will therefore be required to fully establish the robustness of ActiTect across devices.

While ActiTect demonstrated strong research-grade performance, our cohorts had a markedly higher prevalence of RBD (~ two-thirds of participants) compared to the general population (~2%3).

Despite the consistently high AUROC indicating robust discrimination and the ability to adjust decision thresholds to emphasize specificity or sensitivity depending on the intended deployment context, evaluation of model behavior under prevalence shift remains important. As described above, this GENEActiv cohort also provides an initial evaluation under a substantially lower-prevalence setting (~ 11% RBD). As outlined earlier, the model maintained high specificity without false positives despite being trained on cohorts with substantially higher RBD prevalence (61–79%), indicating preserved specificity under altered class distribution, while sensitivity estimates remain uncertain given the very small number of RBD cases. In addition, the single-night recordings and incomplete sleep coverage further limit the reliability of performance estimates and warrant cautious interpretation. Hence, further validation in cohorts reflecting lower prevalence and real-world case-mix variability is required to fully determine robustness under combined prevalence and distributional shifts.

In practice, deployment scenarios may vary across settings; however, use within clinically enriched or referral-based contexts may represent a more appropriate initial application than unselected population-wide screening. A pragmatic workflow may therefore combine questionnaire-based prescreening to identify higher-risk individuals, followed by actigraphy-based assessment, in line with recently proposed two-stage screening approaches25. Another limitation concerns the reliability of the ground truth. RBD diagnosis in our cohorts was established by different expert raters on single-night PSG recordings, which may introduce variability across datasets. Although standardized protocols such as the SINBAR criteria provide guidance for PSG scoring12, inter-rater variability in RBD diagnosis has not been systematically quantified. In contrast, studies on sleep staging have demonstrated notable inter-scorer disagreement39, suggesting that diagnostic labels in RBD might carry potential inconsistencies.

Night-to-night fluctuations of RBD symptoms may further introduce non-differential label noise, most notably false-negative classifications if REM sleep without atonia (RSWA) or dream enactment behavior is not captured during the single recorded night40,41. While single-night PSG reflects standard clinical practice, multi-night recordings would provide a more robust reference standard. The use of multi-center datasets represents a step toward generalizability, yet comorbid sleep disorders such as sleep apnea or restless legs syndrome were not systematically analyzed in this study. In the PACE cohort, obstructive sleep apnea was present in a subset of participants, while comparable information was not evaluated for the remaining cohorts. Such comorbidities may affect the actigraphy signal-to-noise ratio. In addition, the potential influence of demographic and clinical factors such as age, sex, disease severity, or motor reserve on model performance was not systematically investigated, primarily due to limited power for stratified analyses and heterogeneous covariate availability across cohorts. Larger and more diverse datasets will therefore be required to establish robustness in broader clinical populations.

Another possible confounder that has not been systematically evaluated is the use of potentially motor-influential medications during the actigraphy recordings. The prevalence of such medication varied across cohorts (Table S6), with some participants taking drugs that have known effects on nocturnal motor behavior. Several commonly used drugs, such as clonazepam/benzodiazepines and melatonin, are expected to reduce nocturnal motor expression, whereas antidepressants have been associated with increased REM sleep without atonia in some individuals42–45. These heterogeneous influences might influence the actigraphy signal and make classification more challenging. Because medication is rarely discontinued during ambulatory actigraphy in real-world clinical practice, our cohorts reflect performance under conditions that are representative of routine screening or monitoring.

In conclusion, we developed and validated ActiTect, an open-source, cross-device pipeline for detecting RBD from wrist-worn actigraphy. The method integrates robust preprocessing, interpretable feature engineering, and multi-center validation, demonstrating consistent performance across heterogeneous cohorts. These results highlight the feasibility of generalizable actigraphy-based screening, provide a foundation for future clinical translation and longitudinal studies, and are supported by the public availability of the pipeline as a reproducible and modular resource.

Methods

Study design

The actigraphy data used to develop the model originates from the CogTrAiL-RBD study26, a randomized controlled trial designed to assess the impact of cognitive training and lifestyle interventions on individuals with iRBD. As part of the baseline assessment, iRBD and HC participants completed a 7-day actigraphy recording. Axivity AX646 devices were worn continuously on the dominant wrist, capturing accelerometer data at 100 Hz. Sleep and wake times of participants were documented by sleep diaries. Diagnostic labels for model training were derived from video-polysomnography (vPSG) in the iRBD cases and established according to ICSD-3 criteria by a trained sleep specialist (M.S.), with REM sleep without atonia (RSWA) quantified using standardized scoring procedures consistent with International RBD Study Group recommendations 12,14.

The independent test dataset (Local Test) comprised actigraphy recordings from participants in an ongoing structured screening program for iRBD27, which includes questionnaire-based pre-screening followed by vPSG confirmation in both patients and controls. Recordings were performed under the same conditions as for the training cohort, with diagnostic labels again determined from vPSG by the same sleep expert (M.S.).

Two external cohorts from independent research centers were used to validate our single-center model and to further train the multi-center model.

One dataset stems from the ’Oxford Discovery’ cohort from the Oxford Parkinson’s Disease Center (OPDC) project, established in 2010 as a longitudinal, observational study tracking over 1500 participants with PD, iRBD, and controls by annual clinical follow-up, wet biomarkers, imaging, and digital testing. Subjects included from this cohort underwent matched clinical testing with 7-day at-home actigraphy recordings between 2023 and 2024, using bilateral wrist AX6 accelerometers under the same device settings as the internal cohorts. For the present work, only the dominant-wrist recordings were analyzed. Ground-truth labels were derived from a single-night PSG scored by a separate team of sleep experts.

Further external test data came from the Lundbeck Foundation Parkinson’s Disease Research Center (PACE) in Aarhus, Denmark, also recorded with Axivity Ax6 devices bilaterally over 7 days at 100 Hz. All iRBD and PD patients underwent one or two nights of vPSG assessed by trained sleep specialists. RBD was diagnosed according to ICSD-3 criteria14. Obstructive sleep apnea was observed in 17 participants (7 mild, 9 moderate, 1 severe), 9 had no sleep apnea, and data were unavailable for 12.

A summary of cohort demographics and clinical markers is shown in the section “Results” (Table 1).

All datasets analyzed in this study originate from previously approved clinical research cohorts and were provided in de-identified form. The present work constitutes a secondary analysis of these data. All contributing studies were conducted in accordance with the Declaration of Helsinki and received approval from their respective institutional research ethics committees. Written informed consent was obtained from all participants in the original studies.

Actigraphy standardization and segmentation

Intended as an open-source tool, ActiTect integrates a data preprocessing pipeline compatible with binary files from widely used actigraphy manufacturers, including Axivity, GENEActiv, and ActiGraph. It applies a series of operations to raw actigraphy data to mitigate systematic artifacts and ensure consistent sleep detection and feature extraction across devices. The implementation is user-friendly and configurable, also making it useful as a standalone tool for general-purpose actigraphy analysis. We provide it at https://github.com/bozeklab/actitect.

The data is uniformly resampled using nearest-neighbor interpolation to eliminate sample rate jitter artifacts and ensure a robust assessment of spectral properties. Biases specific to individual devices are further mitigated by applying post hoc auto-calibration28 to the tri-axial sensor data. A 4th-order Butterworth bandpass filter is applied to remove low- and high-frequency noise components. The lower cutoff frequency is set at 0.8 Hz to eliminate slow baseline fluctuations caused by sensor drift, postural adjustments, and variations in the gravitational component. The upper cutoff frequency is set at 20 Hz to attenuate high-frequency noise from electrical interference and vibrational artifacts. Finally, non-wear episodes are flagged by grouping stationary segments, defined as periods where the standard deviation of each axis is below 15 mg within a 10-second rolling window. Segments lasting longer than 60 min are classified as non-wear episodes.

Automated sleep detection is performed using a heuristic algorithm that analyzes changes in the z-angle29 and has been validated against polysomnography-based sleep measurements. Only sleep windows longer than 4 h with at least 2 h of overlap within a defined typical sleep period of 10 pm to 9 am are further analyzed, ensuring coverage of time frames most representative of REM sleep. Activity bouts within each selected sleep window are identified by thresholding the Euclidean norm of the tri-axial acceleration signal23.

a⃗t2>maxmeana⃗2+stda⃗2,0.1g,∀t 1

Consecutive samples exceeding the movement threshold are grouped into activity bouts. Adjacent bouts are merged if separated by less than 1 second. To minimize the inclusion of transient noise or wake-phase motor activity, bouts with durations shorter than 0.5 seconds or longer than 50 seconds are discarded.

Feature extraction and model design

Numerical features characterizing motion patterns are computed within the identified activity bouts. These features have been designed, with sleep-expert feedback, to effectively capture changes in sleep-related movement patterns that are indicative of sleep disorders. The features can be divided into two categories: global features, which are calculated across the entire night, and local features, which are computed individually for each activity bout. The latter ones are aggregated to the night level by deriving descriptive metrics from their distributions (mean, std, skew, kurtosis, MAD, IQR, and 10th/90th percentiles). A detailed summary of all engineered motion features can be found in Table S2.

To benchmark our handcrafted feature set against a representation learning approach, we evaluated a publicly available self-supervised feature extractor34. The model, originally developed for actigraphy-based sleep staging, produces a 1024-dimensional latent embedding per 30-second epoch along with corresponding sleep stage predictions (wake / REM / nREM). We computed embeddings for all epochs and retained only those overlapping with detected movement bouts, consistent with the ActiTect processing scheme. The resulting movement-epoch embeddings were aggregated to the night level using the same statistical aggregation framework applied to our handcrafted features. All subsequent model training, nested cross-validation, and external validation procedures were performed identically to ActiTect, with the latent embeddings replacing the handcrafted feature set.

ActiTect employs gradient-boosted decision trees to map engineered nocturnal motion features to an RBD probability score for each night in a patient’s record. The model is implemented using XGBoost47. A final patient-level RBD probability score and binary prediction are derived by aggregating the model’s nightly outputs using two complementary methods: thresholding the mean nightly probability and majority voting across nights. The final prediction is obtained through an ensemble approach, where a patient is classified as RBD-positive if at least one of the two methods predicts a positive outcome, ensuring robustness against nightly variability.

Model development and validation

Model development and stability estimation were performed using nested cross-validation with 5-fold inner and outer loops, and five repetitions of the outer loop, on night-level training data. Both outer and inner folds used stratified group splits to ensure that no patient contributed data to both training and validation sets at any stage. Inner folds optimized model hyperparameters (e.g., number of estimators, learning rate) via Bayesian optimization48. A robust scaler and synthetic minority oversampling (SMOTE)49 were applied to each outer training set prior to feature ranking and model fitting. Feature selection was performed using an ensemble ranking approach that integrated results from multiple methods:minimum-redundancy maximum-relevance (MRMR)50, Boruta51, and correlation-based metrics, computed per outer fold. This ensemble strategy increases robustness by mitigating biases of individual methods. The resulting ranking was used to select features, with the number of retained features treated as a tunable hyperparameter. Thresholds for binary classification were derived from ROC training data curves, independently at night and patient levels. Early stopping was used during training to prevent overfitting. All reported performance metrics reflect evaluation on the outer validation folds only.

The tunable hyperparameters and their respective search space for the Bayesian optimization are listed in Table S3. To quantify the robustness of hyperparameter optimization across folds, we defined a composite stability score. This metric combines several normalized measures of variability, with values constrained to [0, 1] (0 = maximally unstable/random, 1 = perfectly stable). For each hyperparameter h, let v = {v1, …, vK} denote the values selected across K folds or repetitions. From these we compute four complementary measures of dispersion as

CVh:=σ(v)∣μ(v)∣ 2
MADmedh:=median∣v−median(v)∣∣median(v)∣ 3
IQRwidthh:=Q75(v)−Q25(v)rangeh 4
RangeRatioh:=max(v)−min(v)∣μ(v)∣ 5

where μv and σv denote mean and standard deviation, and range(h) is the predefined optimization range of hyperparameter h. Each metric is inverted and rescaled to [0, 1] such that 1 indicates maximal stability, and the final absolute stability score is defined as the unweighted average of all metrics.

Final model training followed the same procedure used during nested cross-validation, applying Bayesian hyperparameter optimization and ensemble-based feature selection, now on the full training cohort instead of individual outer folds. A 5-fold stratified group split was used to tune hyperparameters via Bayesian optimization, matching the configuration from nested cross-validation. Feature rankings were recomputed from the full training data using the same ensemble of methods. Unlike in nested cross-validation, calibrated probability estimates were used in the final model to support more reliable thresholding and post-hoc interpretation; calibration was performed using Platt scaling (sigmoid)52,53 with cross-validation on the training data. Thresholds for binary classification were estimated from the calibrated training probabilities using ROC-curve-based criteria. All reported test metrics reflect a single evaluation pass to preserve the integrity of the holdout set.

Statistical analysis and reproducibility

All statistical analyses were performed in Python 3.9 using scipy (v1.11.4)54. Group comparisons between two independent distributions were conducted using the two-sided Mann-Whitney U test, a non-parametric method chosen for its robustness to non-normal data. A significance threshold of α = 0.05 was applied to all statistical tests, and exact p-values are reported throughout. For comparisons involving more than two independent groups, the Kruskal-Wallis test was used as a non-parametric alternative to ANOVA to avoid assumptions of normality. Comparisons between categorical variables were performed using the Fisher-Irwin exact test, which is well-suited to small sample sizes and sparse contingency tables. All steps-including nested cross-validation, hyperparameter optimization, and final model evaluation-were fully seeded to ensure exact reproducibility.

Supplementary information

Supplementary information (669.5KB, pdf)

Acknowledgements

We thank the IT Center of the University of Cologne (ITCC) for providing support and computing time. We thank all CogTrAiL-RBD study participants for their participation. Special thanks are extended to Antonia Buchal, Amelie Conrad, Romina Handels, Philipp Johannes, Anastasia Kammerzell, Sandy Kollath, Nathalie Knopf, Julia Pauquet, Sophie Schalberger, Aline Seger, Philipp Sommer, Kim-Lara Weiß, and Chiara Wojcik for their valuable support in data collection and study set-up. We thank the authors of RBDAct for kindly providing access to the RBDAct codebase for validation on our datasets. D.B and K.B. were supported by the North Rhine-Westphalia return program (311-8.03.03.02-147635) and BMBF program for Female Junior Researchers in Artificial Intelligence (01IS20054). The funder played no role in study design, data collection, analysis and interpretation of data, or the writing of this manuscript. N. Moreau was supported by the KFO 329 “Disease pathways in podocyte injury” and by the Deutsche Forschungsgemeinschaft (DFG, German Research Foundation) - Project No. 386793560. D.B., N. Moreau, and K.B. were hosted by the Center for Molecular Medicine Cologne. M.S. received funding from the program "Netzwerke 2021", an initiative of the Ministry of Culture and Science of the State of Northrhine Westphalia, the Federal Ministry of Research, Technology and Space (BMFTR) under the funding code (FKZ) 01EO2107 and under the umbrella of the Partnership Fostering a European Research Area for Health (ERA4Health) (GA N° 101095426 of the EU Horizon Europe Research and Innovation Programme), and the European Research Council (ID 10116958).\\ The study providing the \cgntrain{} database for this analysis was supported by the Koeln Fortune Program, Faculty of Medicine, University of Cologne (grant no. 329/2021, A.O.), and by the “Novartis-Stiftung für therapeutische Forschung” (A.O.). A.O. additionally received funding from the Koeln Fortune Program (grant nos. 142/2023, 145/2024, 15/2025) and from the “Imhoff-Stiftung”. G.F. was supported by the Deutsche Forschungsgemeinschaft (DFG, German Research Foundation) – SFB 1451 (Project-ID 431549029). L.R. and S.J. were supported by the Federal Ministry of Research, Technology and Space (BMFTR), Germany, under Grant No. 01ZZ2022. The Oxford Discovery Cohort is funded by Parkinson’s UK (Project grant J-2101- ‘Understanding Parkinson’s Progression’) and supported by the National Institute for Health Research (NIHR) Oxford Biomedical Research Center, based at Oxford University Hospitals NHS Trust and University of Oxford, and the NIHR Clinical Research Network: Thames Valley and South Midlands.

Author contributions

D.B., K.B. and M.S. conceptualized the study. D.B. developed the software and analytical methods, carried out data analyses, and drafted and revised the manuscript. A.O., M.S., E.K. and G.F. designed the CogTrAiL-RBD study. G.F. additionally provided institutional funding. K.K. contributed to data acquisition, clinical data curation and input of the CogTrAiL-RBD and "Local Test" datasets. A.O., C.H. and W.M. set up the CogTrAiL-RBD accelerometry protocol. A.O. supervised data collection and curated data from the CogTrAiL-RBD study. S.R. recruited participants for the CogTrAiL-RBD study and organized and executed the actigraphy measurements. N. Merten conducted the PSG recordings used to establish RBD ground-truth labels for the "Local Test" dataset. M.K., L.R. and S.J. contributed to initial data exploration of the CogTrAiL-RBD dataset and early model prototyping. A.D. ran code on the PACE data, including troubleshooting and result interpretation. C.S. and N.B. contributed to data collection and data management for the PACE dataset. C.S. additionally conducted clinical investigations and assisted with analysis, including troubleshooting and result interpretation. P.B. conceptualized and supervised the PACE dataset work and provided resources and funding. K.G. facilitated data access for the "Oxford Discovery" cohort from the Oxford Parkinson’s Disease Center (OPDC) project and contributed to dataset curation and metadata organization. P.L.R. conceptualized the work on the Oxford Discovery cohort, supervised related analyses, and provided access to and guidance on the RBDAct codebase. M.H. conceptualized and provided resources for the Oxford Discovery cohort within the OPDC project. D.B., N. Moreau, M.S. and K.B. edited and revised the manuscript, while A.O., E.K., W.M., L.R., C.S., K.G. and M.H. critically reviewed and provided feedback on the near-final version. All authors read and approved the final manuscript.

Funding

Open Access funding enabled and organized by Projekt DEAL.

Data availability

The raw actigraphy recordings are considered personal health data under institutional ethics and data-protection regulations and therefore cannot be publicly shared. Access requires dedicated data-sharing agreements with the originating clinical centers. Fully anonymized, pre-computed feature tables can be shared on request and subject to appropriate agreements.

Code availability

The underlying code for this study is publicly available on GitHub at https://github.com/bozeklab/actitect. The repository hosts ActiTect, which provides both an easy-to-use command-line interface and a lightweight Python API. It consists of two modular components: a general-purpose preprocessing module for actigraphy analysis and a dedicated RBD-prediction module (RBDisco). Detailed installation and usage instructions are provided in the online documentation.

Competing interests

M.H. is an advisory founder and shareholder of NeuHealth Digital Ltd (company number: 14492037), a digital biomarker platform to remotely manage condition progression for Parkinson’s. All other authors declare no financial or non-financial competing interests.

Footnotes

Publisher’s note Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

These authors contributed equally: Michael Sommerauer, Katarzyna Bozek.

Contributor Information

David Bertram, Email: dbertram@uni-koeln.de.

Michael Sommerauer, Email: michael.sommerauer@ukbonn.de.

Katarzyna Bozek, Email: k.bozek@uni-koeln.de.

Supplementary information

The online version contains supplementary material available at 10.1038/s41746-026-02738-8.

References

  • 1.Feigin, V. L. et al. The global burden of neurological disorders: translating evidence into policy. Lancet Neurol.19, 255–265 (2020). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 2.Dorsey, E. R., Sherer, T., Okun, M. S. & Bloem, B. R. The emerging evidence of the Parkinson pandemic. J. Parkinson’s. Dis.8, S3–S8 (2018). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 3.Postuma, R. B. & Berg, D. Prodromal Parkinson’s disease: the decade past, the decade to come. Mov. Disord.34, 665–675 (2019). [DOI] [PubMed] [Google Scholar]
  • 4.Spillantini, M. G. et al. alpha-Synuclein in Lewy bodies. Nature388, 839–840 (1997). [DOI] [PubMed] [Google Scholar]
  • 5.Goedert, M., Spillantini, M. G., Del Tredici, K. & Braak, H. 100 years of Lewy pathology. Nat. Rev. Neurol.9, 13–24 (2013). [DOI] [PubMed] [Google Scholar]
  • 6.Brettschneider, J. et al. Progression of alpha-synuclein pathology in multiple system atrophy of the cerebellar type. Neuropathol. Appl. Neurobiol.43, 315–329 (2017). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 7.Berg, D. et al. MDS research criteria for prodromal Parkinson’s disease. Mov. Disord.30, 1600–1611 (2015). [DOI] [PubMed] [Google Scholar]
  • 8.Heinzel, S. et al. Update of the MDS research criteria for prodromal Parkinson’s disease. Mov. Disord.34, 1464–1470 (2019). [DOI] [PubMed] [Google Scholar]
  • 9.Boeve, B. F. et al. Pathophysiology of REM sleep behaviour disorder and relevance to neurodegenerative disease. Brain130, 2770–2788 (2007). [DOI] [PubMed] [Google Scholar]
  • 10.Dauvilliers, Y. et al. REM sleep behaviour disorder. Nat. Rev. Dis. Prim.4, 1–16 (2018). [DOI] [PubMed] [Google Scholar]
  • 11.Fereshtehnejad, S.-M. et al. Evolution of prodromal Parkinson’s disease and dementia with Lewy bodies: a prospective study. Brain142, 2051–2067 (2019). [DOI] [PubMed] [Google Scholar]
  • 12.Cesari, M. et al. Video-polysomnography procedures for diagnosis of rapid eye movement sleep behavior disorder (RBD) and the identification of its prodromal stages: guidelines from the International RBD Study Group. Sleep45, zsab257 (2022). [DOI] [PubMed] [Google Scholar]
  • 13.Gagnon, J.-F., Postuma, R. B., Mazza, S., Doyon, J. & Montplaisir, J. Rapid-eye-movement sleep behaviour disorder and neurodegenerative diseases. Lancet Neurol.5, 424–432 (2006). [DOI] [PubMed] [Google Scholar]
  • 14.Sateia, M. J. International classification of sleep disorders-third edition. Chest146, 1387–1394 (2014). [DOI] [PubMed] [Google Scholar]
  • 15.Halsband, C., Zapf, A., Sixel-Döring, F., Trenkwalder, C. & Mollenhauer, B. The REM sleep behavior disorder screening questionnaire is not valid in De Novo Parkinson’s disease. Mov. Disord. Clin. Pract.5, 171–176 (2018). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 16.Li, K., Li, S.-H., Su, W. & Chen, H.-B. Diagnostic accuracy of REM sleep behaviour disorder screening questionnaire: a meta-analysis. Neurol. Sci.38, 1039–1046 (2017). [DOI] [PubMed] [Google Scholar]
  • 17.Stiasny-Kolster, K. et al. Diagnostic value of the REM sleep behavior disorder screening questionnaire in Parkinson’s disease. Sleep. Med.16, 186–189 (2015). [DOI] [PubMed] [Google Scholar]
  • 18.Chahine, L. M. et al. Questionnaire-based diagnosis of REM sleep behavior disorder in Parkinson’s disease. Mov. Disord.28, 1146–1149 (2013). [DOI] [PubMed] [Google Scholar]
  • 19.Louter, M., Arends, J. B., Bloem, B. R. & Overeem, S. Actigraphy as a diagnostic aid for REM sleep behavior disorder in Parkinson’s disease. BMC Neurol.14, 76 (2014). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 20.Naismith, S. L., Rogers, N. L., Mackenzie, J., Hickie, I. B. & Lewis, S. J. G. The relationship between actigraphically defined sleep disturbance and REM sleep behaviour disorder in Parkinson’s Disease. Clin. Neurol. Neurosurg.112, 420–423 (2010). [DOI] [PubMed] [Google Scholar]
  • 21.Stefani, A. et al. Screening for idiopathic REM sleep behavior disorder: usefulness of actigraphy. Sleep41, zsy053 (2018). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 22.Brink-Kjaer, A. et al. Ambulatory detection of isolated rapid-eye-movement sleep behavior disorder combining actigraphy and questionnaire. Mov. Disord.38, 82–91 (2023). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 23.Raschellá, F., Scafa, S., Puiatti, A., Martin Moraud, E. & Ratti, P.-L. Actigraphy enables home screening of rapid eye movement behavior disorder in Parkinson’s disease. Ann. Neurol.93, 317–329 (2023). [DOI] [PubMed] [Google Scholar]
  • 24.Brink-Kjaer, A. et al. Fully automated detection of isolated rapid-eye-movement sleep behavior disorder using actigraphy. Annu. Int. Conf. IEEE Eng. Med. Biol. Soc. IEEE Eng. Med. Biol. Soc. Annu. Int. Conf.2023, 1–5 (2023). [DOI] [PubMed] [Google Scholar]
  • 25.Zhou, L. et al. Actigraphy-based detection of isolated REM sleep behavior disorder: multicenter validation across devices and populations. npj Digit. Med.8, 634 (2025). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 26.Ophey, A. et al. Cognitive training and promoting a healthy lifestyle for individuals with isolated REM sleep behavior disorder: study protocol of the delayed-start randomized controlled trial CogTrAiL-RBD. Trials25, 428 (2024). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 27.Seger, A. et al. Evaluation of a structured screening assessment to detect isolated rapid eye movement sleep behavior disorder. Mov. Disord.38, 990–999 (2023). [DOI] [PubMed] [Google Scholar]
  • 28.van Hees, V. T. et al. Autocalibration of accelerometer data for free-living physical activity assessment using local gravity and temperature: an evaluation on four continents. J. Appl. Physiol.117, 738–744 (2014). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 29.van Hees, V. T. et al. Estimating sleep parameters using an accelerometer without sleep diary. Sci. Rep.8, 12975 (2018). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 30.Patterson, M. R. et al. 40 years of actigraphy in sleep medicine and current state of the art algorithms. npj Digit. Med.6, 1–7 (2023). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 31.Matthews, K. A. et al. Similarities and differences in estimates of sleep duration by polysomnography, actigraphy, diary, and self-reported habitual sleep in a community sample. Sleep. Health4, 96–103 (2018). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 32.Chou, C. A. et al. Comparison of single-channel EEG, actigraphy, and sleep diary in cognitively normal and mildly impaired older adults. Sleep Adv.1, zpaa006 (2020). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 33.Lehrer, H. M. et al. Comparing polysomnography, actigraphy, and sleep diary in the home environment: The Study of Women’s Health Across the Nation (SWAN) Sleep Study. Sleep Adv.3, zpac001 (2022). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 34.Yuan, H. et al. Self-supervised learning of accelerometer data provides new insights for sleep and its association with mortality. npj Digit. Med.7, 86 (2024). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 35.Hees, V. T. V. et al. A novel, open access method to assess sleep duration using a wrist-worn accelerometer. PLoS ONE10, e0142533 (2015). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 36.Hees, V. V., Charman, S. & Anderson, K. Newcastle polysomnography and accelerometer data. https://zenodo.org/records/1160410 (2018).
  • 37.Bishop, C. M. in Pattern Recognition and Machine Learning, Information Science and Statistics, 1 edn, 147–152 (Springer New York, NY, 2006).
  • 38.Hastie, T., Tibshirani, R. & Friedman, J. in The Elements of Statistical Learning, Springer Series in Statistics, 37–39 (Springer New York, NY, 2009), 2nd edn. 10.1007/978-0-387-84858-7
  • 39.Lee, Y. J., Lee, J. Y., Cho, J. H. & Choi, J. H. Interrater reliability of sleep stage scoring: a meta-analysis. J. Clin. Sleep. Med.18, 193–202 (2022). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 40.Zhang, J. et al. Diagnosis of REM sleep behavior disorder by video-polysomnographic study: Is one night enough?. Sleep31, 1179–1185 (2008). [PMC free article] [PubMed] [Google Scholar]
  • 41.Newell, J., Mairesse, O., Verbanck, P. & Neu, D. Is a one-night stay in the lab really enough to conclude? First-night effect and night-to-night variability in polysomnographic recordings among different clinical population samples. Psychiatry Res.200, 795–801 (2012). [DOI] [PubMed] [Google Scholar]
  • 42.Standards of Practice Committee et al. Best practice guide for the treatment of REM sleep behavior disorder (RBD). J. Clin. Sleep. Med.6, 85–95 (2010). [PMC free article] [PubMed] [Google Scholar]
  • 43.McCarter, S. J. et al. Treatment outcomes in REM sleep behavior disorder. Sleep. Med.14, 237–242 (2013). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 44.Postuma, R. B. et al. Antidepressants and REM sleep behavior disorder: isolated side effect or neurodegenerative signal?. Sleep36, 1579–1585 (2013). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 45.McCarter, S. J. et al. Antidepressants increase REM sleep muscle tone in patients with and without REM sleep behavior disorder. Sleep38, 907–917 (2015). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 46.Axivity Ltd. Axivity AX6 Datasheet. (2025). https://axivity.com/files/resources/AX6_Datasheet.pdf. accessed 17 March 2025
  • 47.Chen, T. & Guestrin, C. XGBoost: a scalable tree boosting system. In Proceedings of the 22nd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, KDD ’16, 785–794 (Association for Computing Machinery, New York, NY, USA, 2016).
  • 48.Snoek, J., Larochelle, H. & Adams, R. P. Practical Bayesian optimization of machine learning algorithms. In Proceedings of the 26th International Conference on Neural Information Processing Systems, vol. 25, 2951–2959 (Curran Associates, Inc., 2012).
  • 49.Chawla, N. V., Bowyer, K. W., Hall, L. O. & Kegelmeyer, W. P. SMOTE: Synthetic minority over-sampling technique. J. Artif. Intell. Res.16, 321–357 (2002). [Google Scholar]
  • 50.Peng, H., Long, F. & Ding, C. Feature selection based on mutual information criteria of max-dependency, max-relevance, and min-redundancy. IEEE Trans. Pattern Anal. Mach. Intell.27, 1226–1238 (2005). [DOI] [PubMed] [Google Scholar]
  • 51.Kursa, M. B. & Rudnicki, W. R. Feature selection with the Boruta package. J. Stat. Softw.36, 1–13 (2010). [Google Scholar]
  • 52.Platt, J. C. Probabilities for SV machines. In Advances in Large Margin Classifiers, Neural Information Processing Series, (eds. Smola, A. J., Bartlett, P., Schölkopf, B. & Schuurmans, D. (eds.) 61–74 (The MIT Press, Cambridge, Massachusetts, USA, 2000).
  • 53.Niculescu-Mizil, A. & Caruana, R. Predicting good probabilities with supervised learning. In Proceedings of the 22nd International Conference on Machine Learning, ICML ’05, 625–632 (Association for Computing Machinery, New York, NY, USA, 2005).
  • 54.Virtanen, P. et al. SciPy 1.0: fundamental algorithms for scientific computing in Python. Nat. Methods17, 261–272 (2020). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 55.Stiasny-Kolster, K. et al. The REM sleep behavior disorder screening questionnaire-a new diagnostic instrument. Mov. Disord.22, 2386–2393 (2007). [DOI] [PubMed] [Google Scholar]
  • 56.Goetz, C. G. et al. Movement Disorder Society-sponsored revision of the Unified Parkinson’s Disease Rating Scale (MDS-UPDRS): scale presentation and clinimetric testing results. Mov. Disord.23, 2129–2170 (2008). [DOI] [PubMed] [Google Scholar]
  • 57.Skorvanek, M. et al. Differences in MDS-UPDRS scores based on Hoehn and Yahr Stage and disease duration. Mov. Disord. Clin. Pract.4, 536–544 (2017). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 58.Nasreddine, Z. S. et al. The Montreal Cognitive Assessment, MoCA: a brief screening tool for mild cognitive impairment. J. Am. Geriatric. Soc.53, 695–699 (2005). [DOI] [PubMed] [Google Scholar]
  • 59.Hummel, T., Sekinger, B., Wolf, S., Pauli, E. & Kobal, G. ‘Sniffin’ Sticks’: olfactory performance assessed by the combined testing of odor identification, odor discrimination and olfactory threshold. Chem. Senses22, 39–52 (1997). [DOI] [PubMed] [Google Scholar]

Associated Data

This section collects any data citations, data availability statements, or supplementary materials included in this article.

Supplementary Materials

Supplementary information (669.5KB, pdf)

Data Availability Statement

The raw actigraphy recordings are considered personal health data under institutional ethics and data-protection regulations and therefore cannot be publicly shared. Access requires dedicated data-sharing agreements with the originating clinical centers. Fully anonymized, pre-computed feature tables can be shared on request and subject to appropriate agreements.

The underlying code for this study is publicly available on GitHub at https://github.com/bozeklab/actitect. The repository hosts ActiTect, which provides both an easy-to-use command-line interface and a lightweight Python API. It consists of two modular components: a general-purpose preprocessing module for actigraphy analysis and a dedicated RBD-prediction module (RBDisco). Detailed installation and usage instructions are provided in the online documentation.


Articles from NPJ Digital Medicine are provided here courtesy of Nature Publishing Group

RESOURCES