Enhanced Detection and Segmentation of Sit Phases in Patients with Parkinson’s Disease Using a Single SmartWatch and Random Forest Algorithms
Etienne Goubault, Camille Martin, Christian Duval, Jean-François Daneault, Patrick Boissy, Karina Lebel

TL;DR
This study shows that a single SmartWatch worn on the ankle can accurately detect sitting phases in Parkinson's patients, enabling home-based mobility monitoring.
Contribution
The novel use of a single SmartWatch and random forest algorithms for Sit phase detection in Parkinson’s disease patients is demonstrated.
Findings
Random forest algorithms achieved up to 78.8% sensitivity and 85.5% specificity for Sit phase detection.
Median time difference between automatic and manual segmentation was under 1 second across trials.
The method enables efficient home-based monitoring of mobility in Parkinson’s disease patients.
Abstract
Background. Automatic detection of Sit phases in people with Parkinson’s disease (PD) using a single body-worn sensor is crucial for enhancing long-term, home-based monitoring of mobility. Aim. The aim of this study was to enhance the accuracy of detecting and segmenting Sit phases in people with PD using a single SmartWatch worn at the ankle. Method. Twenty-two patients living with PD performed activities of daily living that incorporate repeated transitions to a seated position in a simulated free-living environment during 3 min, 4 min, and 5 min trials. Tri-axial accelerations and angular velocities of the right or left ankle were recorded at 50 Hz using a SmartWatch. Random forest algorithms were trained using raw and filtered data to automatically detect and segment Sit phases. Sensibility, specificity, and F-scores were calculated based on manual segmentation using the OptiTrack…
Genes, proteins, chemicals, diseases, species, mutations and cell lines named across the full text — each resolved to its canonical identifier and authoritative record.
Click any figure to enlarge with its caption.
Figure 1
Figure 2
Figure 3
Figure 4
Figure 5- —the Canadian Institutes for Health Research
- —The Quebec Parkinson Network (QPN), Parkinson Quebec, and Canada Research Chair in Biomechanical Movement Signature to Better Understand and Reduce Disability
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsParkinson's Disease Mechanisms and Treatments · Balance, Gait, and Falls Prevention · Muscle activation and electromyography studies
1. Introduction
People with Parkinson’s disease (PD) often experience limited mobility in their activities of daily living (ADLs), which can lead to loss of independence and a decrease in their quality of life. In recent years, increasing attention has been directed toward the use of commercially available body-worn sensors to assess patients’ mobility [1], with the aim of improving the management of PD symptoms through long-term, home-based monitoring [2].
Lower-back inertial sensors have been used to classify walking phases in patients with neurological conditions resulting from cerebral lesions, as well as in individuals who have undergone or are preparing for orthopaedic surgery, to support rehabilitation assessment [3]. They have also been used to detect gait events and extract mobility parameters in people with PD, providing insights into motor symptoms and functional status [2].
While lower-back sensors have demonstrated strong performance in capturing mobility-related signals, they are frequently reported as less comfortable compared to wrist- or ankle-worn devices, raising concerns about their acceptability for continuous, long-term monitoring in daily life. This limitation has driven growing interest in the use of inertial sensors that are embedded in SmartWatches, which offer a more user-friendly and socially acceptable alternative. When worn at the wrist or ankle, these devices can capture a range of gross motor activities that are central to evaluating mobility, including walking, turning, sitting down, and standing up. In healthy populations, motor activity detection with wrist-worn SmartWatches has often relied on arm swing recognition patterns or empirical thresholding techniques to differentiate between activity states [4]. These methods, however, may not generalize effectively to people with PD. Arm swing amplitude is typically reduced or asymmetric in people with PD, making algorithms that are designed for healthy controls less robust in this context [5]. Furthermore, PD-related motor complications such as tremor and dyskinesia—often localized in distal limb segments and fluctuating in intensity—introduce additional variability in wrist-based sensor signals [6,7]. These artifacts can obscure meaningful mobility patterns, complicating the reliable detection of gross motor activities.
To improve the likelihood of success in implementing wearable technologies for mobility and symptom monitoring in people with PD, tailored approaches that account for disease-specific motor characteristics are required. Building on this premise, we recently introduced algorithms designed for the automatic detection and segmentation of gross motor activities that are commonly performed during ADLs in people with PD [8]. These algorithms leverage data from a single SmartWatch worn at the ankle, a placement that offers several advantages over the more conventional wrist location. The ankle provides a more direct proxy of lower-limb movement, reducing the confounding effects of reduced arm swing, tremor, or dyskinesia that often compromise wrist-based measurements in people with PD. By focusing on activities such as walking, turning, sitting down, and standing up—movements that are both fundamental to daily life and highly sensitive to PD-related impairments—this approach aims to capture ecologically valid markers of mobility in naturalistic settings. Automated segmentation of these activities not only facilitates more accurate monitoring of motor fluctuations and functional capacity but also provides a foundation for integrating wearable-based assessments into clinical decision-making and personalized disease management strategies. Ultimately, this line of work underscores the potential of strategically positioned, single-device solutions to balance patient acceptability with the clinical precision that is needed for real-world deployment of digital health technologies in people with PD.
The proposed algorithms demonstrated strong performance in detecting and segmenting mobility-related activities in a simulated free-living environment. Specifically, Walking and Turning were recognized with high precision, achieving F1-scores of 96% and 92%, respectively. This robust performance can be explained by the use of ankle-mounted inertial data, which is largely unaffected by PD-related motor impairments such as reduced arm swing [5], tremor, and dyskinesia—factors that typically compromise wrist-based detection approaches. In contrast, the classification of transitional activities such as sitting down and standing up proved more challenging. The detection accuracy for these sit-to-stand phases was substantially lower, with a mean sensitivity and specificity of 58% and 72%, respectively [8]. Given that sit-to-stand transitions are key markers of functional mobility, fall risk, and disease progression, improving their reliable detection in real-world contexts is essential for enabling long-term, home-based monitoring of PD symptoms. Crucially, the proper segmentation of tasks within recorded signals is essential for developing robust algorithms that assess both the quantity and quality of mobility. Such tools are required for continuous, objective tracking of motor impairments, facilitating personalized disease management through timely adjustments in medication or rehabilitation. Ultimately, integrating multiple gross motor activities into a unified framework would enhance the potential for digital health solutions to improve symptom follow-up, mobility assessment, and treatment efficacy in everyday care of people with PD.
Accordingly, the present study revisits the previously collected dataset [8] with the goal of enhancing the detection and segmentation of Sit phases using a single SmartWatch worn at the ankle. Unlike the initial rule-based approach, we adopt a machine learning strategy based on random forest classification [9,10]. Random forests are particularly well-suited for this task, as they can capture complex, nonlinear relationships in sensor-derived features and have consistently demonstrated high accuracy for ADL detection using ankle-mounted sensors [11]. By leveraging this approach, we aim to advance the reliability of wearable monitoring systems and strengthen their applicability for long-term management of PD in free-living environments.
2. Materials and Methods
2.1. Participants
Twenty individuals with idiopathic PD, diagnosed according to the UK Parkinson’s Disease Society Brain Bank criteria [12], were recruited through the Quebec Parkinson Network and movement disorder specialists. Exclusion criteria included orthopaedic conditions or mild cognitive impairment (MOCA score < 18) that could interfere with task performance. One participant used a personal cane during testing. Data were collected at the Research Centre on Aging, CIUSSS Estrie–CHUS. The study was approved by the CIUSSS de l’Estrie–CHUS Institutional Review Board (MP-31-2022-4265), and all participants provided written informed consent. Patient characteristics are summarized in Table 1.
2.2. Experimental Procedures
The segmentation algorithm is based on the signals coming from the ankle-worn SmartWatch to minimize the impact of symptoms on ADL detection. Further details on the full protocol and the additional tests performed are available in [8], from which the dataset used here originates.
Participants performed ADLs in a simulated free-living environment during 3, 4, and 5 min trials. Color-coded objects were placed at different locations and heights, and participants collected and deposited them into matching baskets (Figure 1). Three armless chairs were available for sit-to-stand transitions. Each trial began with participants seated, after which they walked at a self-selected pace and sat in each chair at least once. Tasks were performed voluntarily to mimic natural movement, with general guidelines allowing for variability in transitions (e.g., discrete stand-to-walk vs. direct sit-to-walk). A 3 min rest was provided between trials. During testing, participants wore two commercial SmartWatches (Apple Watch Series 5, Apple Inc., Cupertino, CA, USA): one on the most affected arm and one on the contralateral ankle. Each device recorded tri-axial accelerometer and gyroscope data at 50 Hz. Note that only the SmartWatch worn at the ankle was used in the present study to develop algorithms related to the mobility of people with PD, while the SmartWatch worn at the wrist will be used in subsequent analyses to assess symptoms of patients. For reference kinematics, 39 reflective markers were tracked using 17 cameras (Optitrack, Natural Point Inc., Corvallis, OR, USA). All the measurements were collected in an On-medication state.
2.3. Manual Segmentation
An independent examiner (CM) manually segmented sit-to-stand and stand-to-sit transitions during the 3, 4, and 5 min trials using a full-body avatar reconstructed from OptiTrack motion capture data [8]. The examiner received standardized training and followed predefined criteria to ensure consistency. Transitions were reliably identified by marking the onset and offset of trunk and hip displacements corresponding to rising from or lowering into a seated position.
2.4. Data Processing and Feature Calculations
The schematic of the data processing, variable extraction, and normalization process of the extracted variables is shown in Figure 2A,B. All signals were processed using second-order, zero-lag Butterworth filters. Acceleration and angular velocity magnitudes were first computed from the raw data. Low-frequency components were extracted from the tri-axial acceleration signals using a 0.5 Hz low-pass filter, and their overall magnitude was then calculated. To isolate voluntary movement, angular velocity was filtered using a 4 Hz low-pass filter, from which the filtered angular velocity magnitude was computed.
The raw and filtered acceleration and angular velocity signals were segmented in 1 s windows with 90% overlap. For each window, the mean and standard deviation of the signal were computed in the x, y, and z axes, as well as for the resulting magnitude of the signals. This yielded 16 features per window on the raw signal and 16 features per window on the filtered signal (Table 2). Note that the mean and standard deviation features were chosen based on the hypothesis that both amplitude and variability information of signals should discriminate between Walking and Sit phases [4]. More variables in the model would increase the complexity of the model and the risk of overfitting.
To improve the generalizability of the model, each calculated variable was normalized for each patient between the 5th and 95th percentiles, calculated on the sample of patients across all the 3 min, 4 min, and 5 min trials using Equation (1).
Here, P5 and P95 correspond to the 5th and 95th percentiles, respectively. The 5th and 95th percentiles were chosen to exclude extreme low and high values that could be the result of outliers.
2.5. Random Forest Algorithms
Figure 2C presents the schematic of the training and validation process for Sit phase classification. Thirty-two features extracted from the ankle-mounted sensor were used as input to two random forest classifiers, implemented with the TreeBagger function in MATLAB R2023a (The MathWorks Inc., Natick, MA, USA). The first model, the Transition algorithm, was trained to detect stand-to-sit and sit-to-stand transitions, while the second, the Sit algorithm, was trained to classify the sitting state. For both models, the number of decision trees in the ensemble was optimized to balance accuracy and computational efficiency, since adding trees increases the training cost without necessarily improving performance [13]. Each algorithm was run 10 times, and mean ± SD misclassification probabilities for out-of-bag samples were calculated. Out-of-bag error curves (Figure 3) were then inspected to select an efficient ensemble size. Based on this analysis, the number of trees was set to 35 for the Transition algorithm and 25 for the Sit algorithm, which reduced training time without compromising classification performance.
After setting these parameters, the algorithms were trained and tested on the 3 min, 4 min, and 5 min trials separately with a 10-fold cross-validation, dividing each dataset into 90% training and 10% testing segments. For each fold iteration, the algorithms were trained 5 times, and the model giving the smallest out-of-bag classification error was used for testing.
In a subsequent step, a custom algorithm (Figure 2D) was implemented to merge Transition and Sit detections to classify the Sit phases. For this, all Transition or Sit detections separated by less than 1.5 s were concatenated based empirically on the dataset. Sit detections that were not associated with a Transition detection in the same no-Walking segment were discarded. Note that Walking and no-Walking segments were automatically detected using a previously validated algorithm [8]. Also, Transition detections outside a no-Walking segment were discarded. Sit segments detected in the same no-Walking segment were concatenated. Figure 4 shows examples of 3 min, 4 min, and 5 min segmentation for one participant.
2.6. Statistical Analyses
Sensitivity, specificity, and F-score were calculated to evaluate Sit phase detection performance across the 3, 4, and 5 min trials. Segmentation accuracy was assessed by comparing the manually annotated start and end times of each Sit segment with those identified by the algorithm. Temporal precision was quantified as the absolute difference between manually and algorithm-detected time points (ΔT = |T_manual − T_algo|). The boxplot of the ΔT was generated for all the 3 min, 4 min, and 5 min trials to show the predictive reliability of using the algorithm to segment Sit phases.
3. Results
3.1. Sit Phase Detection
The datasets were composed of 60 events, 66 events, and 65 events of Sit phases for the 3 min, 4 min, and 5 min trial, respectively. Table 3 summarize the Sit phase detection results of the proposed algorithm for the 3 min, 4 min, and 5 min trials.
3.2. Activity Segmentation
Figure 5 shows the absolute time difference (ΔT) between manual and automatic segmentations. For the 3 min trial, the median ΔT between the manual and automatic segmentation of Sit phase events (N = 47) was 0.95 s, with five outliers (%n_o_ = 2.1).
For the 4 min trial, the median ΔT between the manual and automatic segmentation of Sit phase events (N = 52) was 0.89 s, with four outliers (%n_o_ = 1.9).
For the 5 min trial, the median ΔT between the manual and automatic segmentation of Sit phase events (N = 48) was 0.84 s, with seven outliers (%n_o_ = 2.1).
4. Discussion
This study examined the detection and segmentation of Sit phases in people with PD using a single ankle-worn SmartWatch. Random forest classifiers were employed, achieving high sensitivity and specificity for event detection and segmentation during simulated free-living tasks.
In a previous study [8] on detecting and segmenting gross motor activities during ADLs in people with PD, Sitting down and Standing up were identified with only moderate precision (F-scores of 52.3% and 54.1%). These results underscore the need for improved methods that are capable of achieving higher detection accuracy for these tasks in PD.
Sun et al. [4] reported 94% precision for Sit phase detection using a custom wrist-based algorithm that relied on the mean and variance of acceleration signals. However, their recordings were task-specific rather than continuous, preventing interference from other activities as in the present study, where participants performed multiple ADLs freely during 3, 4, and 5 min trials. Moreover, Sun et al. [4] did not report participants’ demographic characteristics, limiting the generalizability of their findings to populations with PD, where reduced arm swing significantly affects wrist-based detection [5].
Other ankle-based studies have shown more modest performance. Tang et al. [14] achieved an F-score of 81% for Sitting detection using a support vector machine classifier with data from young healthy adults, but no validation was conducted in people with PD. Davoudi et al. [15] applied a random forest algorithm with ankle-worn accelerometers (Actigraph GT3X) and reported 65% accuracy for sedentary activity detection in healthy older adults.
In contrast, the present study applied random forest classifiers to first detect sit-to-stand and stand-to-sit Transitions, followed by Sit segments. The combined algorithm achieved high precision for Sit phase detection during simulated free-living tasks, with F-scores of 84.7%, 80.6%, and 75.6% for the 3, 4, and 5 min trials, respectively. Furthermore, the median time difference between manual and automatic segmentations averaged 0.89 s, confirming that Sit phases in people with PD can be detected and segmented with high temporal precision using a single ankle-worn SmartWatch.
Previous studies have explored various approaches to detect sit-to-stand and stand-to-sit Transitions and Sit phases in both healthy individuals and people with PD, using wrist-worn SmartWatches [16], waist- or lower-back-mounted inertial sensors [17,18], smart insoles [19], and even video-based systems [20]. To the best of our knowledge, the present study is the first to demonstrate high accuracy in detecting and segmenting Sit phases in people with PD using only a single ankle-worn SmartWatch. This finding expands the possibilities for practical, wearable-based monitoring of functional mobility in PD.
Importantly, by leveraging random forest classification algorithms [9,10], our method offers greater generalizability and reduces the risk of misclassification compared with simpler approaches, such as decision trees or threshold-based rules [4,8]. This robustness is particularly relevant for long-term monitoring of mobility and symptoms in real-life contexts [21,22]. Nonetheless, further validation in true free-living environments and across new patient cohorts is required to confirm the reliability and scalability of these algorithms under real-world conditions.
A limitation of this study comes from the developed algorithm. Since we chose to segment the raw and filtered acceleration and angular velocity signals in 1s windows before calculating the mean and standard deviation that were used as input variables of the random forest algorithms, it is possible that Sit events lasting less than 1s could be undetectable. However, we believe that missing Sit events lasting less than 1s could be considered clinically acceptable for the purpose of mobility assessment, since such short Sit phases would not affect the estimation of the sedentary and active phases. Another limitation is that participants had relatively mild disease, with a mean Hoehn and Yahr score of 1.4 and a maximum of 2. Future work should validate the algorithm in patients at more advanced stages of PD. Nonetheless, when combined with our previously validated Walking and Turning algorithms [8], the present findings represent a substantial advancement in detecting and segmenting gross motor activities during ADLs using a single ankle-worn SmartWatch—an important step toward reliable home-based monitoring in PD. Future experiments should now be conducted in real home and real living environments instead of a simulated free-living environment to better reflect the randomness of varied activities and environments, as well as to validate these algorithms in ecological settings.
5. Conclusions
Taken together with our previous findings [8], the present results demonstrate that relatively simple algorithms, when combined with random forest classifiers applied to inertial data from a single ankle-worn SmartWatch, can accurately detect and segment core gross motor ADLs in people with PD, including walking, turning, and sit phases. By capturing these fundamental movements with high temporal precision, the approach provides an ecologically valid means of evaluating patients’ mobility quality in their natural living environments using only one unobtrusive sensor. This advancement carries important clinical implications. It enables continuous, objective monitoring of mobility impairments with a simple single-sensor setup, enhancing feasibility for long-term home use. It also supports more personalized disease management, where motor fluctuations can guide timely medication or rehabilitation adjustments. Moreover, integrating multiple gross motor activities into one framework moves toward scalable digital health solutions for everyday PD management.
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1Jung S. Michaud M. Oudre L. Dorveaux E. Gorintin L. Vayatis N. Ricard D. The Use of Inertial Measurement Units for the Study of Free Living Environment Activity Assessment: A Literature Review Sensors 202020562510.3390/s 2019562533019633 PMC 7583905 · doi ↗ · pubmed ↗
- 2Adams J.L. Kangarloo T. Tracey B. O’Donnell P. Volfson D. Latzman R.D. Zach N. Alexander R. Bergethon P. Cosman J. Using a Smartwatch and Smartphone to Assess Early Parkinson’s Disease in the WATCH-PD Study NPJ Park. Dis.202396410.1038/s 41531-023-00497-x 37069193 PMC 10108794 · doi ↗ · pubmed ↗
- 3Jung S. de l’Escalopier N. Oudre L. Truong C. Dorveaux E. Gorintin L. Ricard D. A Machine Learning Pipeline for Gait Analysis in a Semi Free-Living Environment Sensors 202323400010.3390/s 2308400037112339 PMC 10145775 · doi ↗ · pubmed ↗
- 4Sun X. Qiu L. Wu Y. Cao G. Act Detector: Detecting Daily Activities Using Smartwatches Proceedings of the 2017 IEEE 14th International Conference on Mobile Ad Hoc and Sensor Systems (MASS)Orlando, FL, USA 22–25 October 201719
- 5Navarro-López V. Fernández-Vázquez D. Molina-Rueda F. Cuesta-Gómez A. García-Prados P. del-Valle-Gratacós M. Carratalá-Tejada M. Arm-Swing Kinematics in Parkinson’s Disease: A Systematic Review and Meta-Analysis Gait Posture 202298859510.1016/j.gaitpost.2022.08.01736088898 · doi ↗ · pubmed ↗
- 6Goubault E. Nguyen H.P. Bogard S. Blanchet P.J. Bézard E. Vincent C. Langlois M. Duval C. Cardinal Motor Features of Parkinson’s Disease Coexist with Peak-Dose Choreic-Type Drug-Induced Dyskinesia: Parkinson’s Symptoms Coexist with Dyskinesia J. Park. Dis.2018832333110.3233/JPD-181312 PMC 602794129843253 · doi ↗ · pubmed ↗
- 7Goubault E. Nguyen H.P. Bogard S. Blanchet P.J. Bézard E. Vincent C. Sarna J. Monchi O. Duval C. Remnants of Cardinal Symptoms of Parkinson’s Disease, Not Dyskinesia, Are Problematic for Dyskinetic Patients Performing Activities of Daily Living Front. Neurol.20191025610.3389/fneur.2019.0025630967832 PMC 6440171 · doi ↗ · pubmed ↗
- 8Goubault E. Duval C. Martin C. Lebel K. Innovative Detection and Segmentation of Mobility Activities in Patients Living with Parkinson’s Disease Using a Single Ankle-Positioned Smartwatch Sensors 202424548610.3390/s 2417548639275396 PMC 11398008 · doi ↗ · pubmed ↗
