- 1Department of Mathematics, University of Tennessee, Knoxville, TN, United States
- 2Zucker School of Medicine at Hofstra/Northwell, Hempstead, NY, United States
- 3Center for Neurosciences, The Feinstein Institutes for Medical Research, Manhasset, NY, United States
- 4Department of Industrial and Systems Engineering, University of Tennessee, Knoxville, Knoxville, TN, United States
Introduction: Freezing of gait (FOG) is a paroxysmal motor phenomenon that increases in prevalence as Parkinson’s disease (PD) progresses. It is associated with a reduced quality of life and an increased risk of falls in this population. Precision-based detection and classification of freezers are critical to developing tailored treatments rooted in kinematic assessments.
Methods: This study analyzed instrumented stand-and-walk (SAW) trials from advanced PD patients with STN-DBS. Each patient performed two SAW trials in their OFF Medication—OFF DBS state. For each trial, gait summary statistics from wearable sensors were analyzed by machine learning classification algorithms. These algorithms include k-nearest neighbors, logistic regression, naïve Bayes, random forest, and support vector machines (SVM). Each of these models were selected for their high interpretability. Each algorithm was tasked with classifying patients whose SAW trials MDS-UPDRS FOG subscore was non-zero as assessed by a trained movement disorder specialist. These algorithms’ performance was evaluated using stratified five-fold cross-validation.
Results: A total of 21 PD subjects were evaluated (average age 64.24 years, 16 males, mean disease duration of 14 years). Fourteen subjects had freezing of gait in the OFF MED/OFF DBS. All machine learning models achieved statistically similar predictive performance (p < 0.05) with high accuracy. Analysis of random forests’ feature estimation revealed the top-ten spatiotemporal predictive features utilized in the model: foot strike angle, coronal range of motion [trunk and lumbar], stride length, gait speed, lateral step variability, and toe-off angle.
Conclusion: These results indicate that machine learning effectively classifies advanced PD patients as freezers or nonfreezers based on SAW trials in their non-medicated/non-stimulated condition. The machine learning models, specifically random forests, not only rely on but utilize salient spatial and temporal gait features for FOG classification.
Introduction
Gait impairment is seen early in Parkinson’s disease (PD), with studies showing evidence of subtle changes in the prodromal stages (Mirelman et al., 2011; McDade et al., 2013). Measurement of gait can be grouped into the following strata: (1) spatiotemporal characteristics such as stride length, stance time, swing time, single limb support, and stride time that are expressed as means from multiple continuous steps; (2) dynamic features of spatiotemporal characteristics (gait variability or stride-to-stride variation) reflected as standard deviations or coefficient of variation derived from the same with-in subject steps; (Lord et al., 2013) and (3) joint kinematics. Characteristic PD gait changes include reduced stride lengths (Morris et al., 1996, 1998), decreased velocity, lack of arm swing, and multistep turns (Hausdorff, 2009; Galna et al., 2015). It also consists of freezing of gait (FOG), which manifests in three ways: inability to start walking or an arrest of forward progression; trembling of the legs in place; and moving forward with very small steps (Nutt et al., 2011). These episodes can be triggered by activities such as approaching a chair, passing through narrow passages, or during turns (Nutt et al., 2011). The prevalence of FOG ranges from 7.1% (Giladi et al., 2001) in early disease to 92% at more advanced stages (Virmani et al., 2015).
Paroxysmal FOG significantly increases fall risk and dramatically reduces quality of life. This phenomenon is often determined retrospectively through questionnaires on non-motor symptoms and gross motor disturbances, which have been predictive of the conversion of non-freezers to freezers (Banks et al., 2019; D’Cruz et al., 2020). Current clinimetric-based phenotypes of this heterogeneous condition are not prognosticative and provide limited insight into treatment response. The majority of freezing of gait studies utilize machine learning to detect and predict FOG episodes using wearable sensors [refer to review (Pardoel et al., 2019)] rather than classifying freezers from non-freezers (Mancini et al., 2023; Virmani et al., 2023). The latter provides the potential to stratify and even phenotype patients with considerable motoric heterogeneity. Along these lines, classifying patients with FOG who have chronic deep brain stimulation of the subthalamic nucleus (STN-DBS) offers an opportunity to probe FOG kinematic features in a dual-treated (medication/stimulation) cohort. Therefore, this study evaluated various machine learning (ML) modeling approaches to classify freezers from non-freezers following stimulation and medication washout of an advanced PD cohort with chronic STN-DBS.
Materials and methods
Patient cohort and gait assessment
The study procedures have been previously reported (Ramdhani et al., 2023). Twenty-one subjects met the inclusion criteria of having idiopathic PD with bilateral STN-DBS (greater than three months) and an underlying gait disorder defined as a score of 2 or 3 on the gait sub-score of the Movement Disorders Society (MDS)-Unified Parkinson’s Rating Scale Part III (UPDRS). Each patient performed two stand-and-walk (SAW) trials in their OFF Medication—OFF DBS state. The OFF medication state was achieved following an overnight (12 h) withdrawal of PD medications prior to the assessment, while the OFF DBS state consisted of a 50-min stimulation washout in the laboratory. Each SAW consisted of a 30-s standing period, followed by a 7 m walk, a 180-degree turn, and a return walk. For each trial, gait summary statistics from full-body (wrists, feet, sternum, and lumbar spine) Opal wearable sensors (Mobility Lab, APDM, Portland, OR, USA) were analyzed by ML classification algorithms. The measurements of interest assessed during the SAW included spatiotemporal features of gait and circumduction along with lumbar and trunk dynamics (Ramdhani et al., 2023). Walking aides were permitted for the study, and their influence was reduced in the models by excluding upper limb and postural sway parameters from the analysis. The Institutional Review Boards of Northwell Health and the University of Tennessee (UTK-IRB-19-05559-XP) approved all data collection and analysis.
Machine learning
The algorithms evaluated in this study include k-nearest neighbors (KNN), logistic regression, naïve Bayes, random forest, and support vector machines (SVM). These models were selected due to their interpretability, robustness with input features, and success in binary classification tasks within the healthcare domain (Cortes and Vapnik, 1995; Breiman, 2001; Hand and Keming, 2007; Agresti, 2012; Tayeb et al., 2017). Each algorithm was tasked with identifying freezers, defined as patients whose SAW trials MDS-UPDRS FOG score was non-zero as assessed by a trained movement disorder specialist. Each algorithm’s performance was evaluated using stratified five-fold cross-validation, wherein the total cohort is separated into five portions such that iterative one portion is utilized as the testing set and the remaining four portions are used for training. Additionally, within each portion, samples are stratified such that the target variable is proportionally consistent with the population - thereby improving the generalizability of the models’ performance. Hyperparameter tuning was performed for each algorithm. Finally, feature ranking was conducted using the Gini index of node impurities to identify gait features prioritized by the random forest model (Tan et al., 2016). Each algorithm was implemented in Python using the Sklearn machine learning library (Pedregosa et al., 2011).
Predictive metrics, accuracy, sensitivity, specificity, positive predictive values (PPV), negative predictive values (NPV), F1 score, and the area under the receiver operating characteristic curve (ROC AUC) summarizing each ML algorithm’s performance were calculated following the analysis. Each algorithm’s performance metrics summarize the ratio of true positives (TP), true negatives (TF), false positives (FP), and false negatives (FN) as follows,
Additionally, each metric’s 95% confidence interval was determined to provide bounds to the predictive metrics.
Results
The study cohort consisted of twenty-one chronic STN-DBS patients (16 males/5 females, with a mean disease duration of 14 [range 3–40 years], with an average age of 64 [range 39–80 years]). Mean gait subscore of the MDS-UPDRS subscale III was 2.4 (SD 0.9). Fourteen subjects were classified as freezers based on a score > 1 on the freezing of gait subscore in the OFF MED/OFF DBS state.
The ML classification models’ performance metrics (mean and 95% confidence interval) are presented over stratified five-fold cross-validation in Table 1. Overall, the models perform statistically similarly as assessed via t-test (p < 0.05) across all metrics and models. These results suggest that each model is equally capable of discriminating between freezers and non-freezers.
Similar to the other algorithms assessed, random forest is capable of feature estimation, but accounts for nonlinear interactions between features. We therefore evaluated the specific weights or coefficients corresponding to the relative importance of each feature (gait summary statistic) to its classification prediction. Figure 1 presents the relative feature importance of the top-ten predictive features utilized in the random forest model. These features include both spatial (foot strike angle, coronal range of motion [trunk and lumbar], stride length, toe-off angle) and temporal (gait speed and lateral step variability) gait features.
Discussion
This study shows the performance of ML algorithms in classifying freezers from non-freezers in an advanced PD cohort following a washout of medication and stimulation. The five evaluated ML models—logistic regression, KNN, naïve Bayes, random forest, and SVM—performed statistically similarly.
FOG detection algorithms have been explored to accurately detect freezing episodes based on data streams from inertial sensors; the classifiers shown to be most robust in FOG detection are convolutional neural networks, support vector machines, and decision trees (Pardoel et al., 2019; Borzi et al., 2021). Among several of the PD freezer/non-freezer classification studies (Park et al., 2021; Virmani et al., 2023), logistic regression and random forests classifiers were utilized and demonstrated good accuracy. Our study adds to the growing compendium of ML based freezing of gait classification studies in PD using gait kinematics. Each classification algorithm performed statistically similar in this study– highlighting each model’s ability to effectively use inertial sensor data and clinimetrics to differentiate freezers from non-freezers. Compared to the others, random forest is an ensemble method that accounts for interactions between features and can aid in determining which ones are most pertinent for prediction.
The random forest algorithm from this study highlighted key gait predictive features: foot strike angle, trunk and lumbar range of motion, stride length, gait speed, step variability, and toe-off angle. Further examination of these extracted gait features show they were salient to the phenotypic nuances that have been reported in those with freezing of gait. In a recent longitudinal study (Glover et al., 2020), investigators assessed spatiotemporal gait parameters of 26 freezers and 31 non-freezers over 12-months in the medicated state. They showed that freezers had a faster decline in mean stride length, stride velocity, swing (%), single support (%), and variability of single support compared to non-freezers. Plotnik et al. (2005) reported that foot swing time was more asymmetric and uncoordinated among freezers, while poor control of rhythmicity (measured by an increase in stride-to-stride variability) in the interictal period with stride length and foot strike (Hausdorff et al., 2003; Pillai et al., 2022) serve as a marker in those who experience freezing of gait as well as those with a history of falling (Schaafsma et al., 2003). Park et al. (2021) utilized a stepwise regression analysis based on 360-degree turning characteristics to determine six features to classify freezers from non-freezers: outer step length, hip ROM, ankle ROM, total distance of center of mass (COM), maximum anti-phase, and outer contralateral temporal coordination. In their analysis, random forest yielded the greatest accuracy of classifying those with FOG. With respect to PD subjects treated with DBS, O’Day et al. (2020) used a novel gait paradigm to demonstrate that freezers’ non-freezing gait is more arrhythmic than controls and correlates with the percent time of freezing. Additional work is needed to identify whether the random forest’s features reported in this study are also relevant in specific or underrepresented populations (i.e., gender, race, disease severity, etc.).
Biomechanical features of PD gait also differ based on the presence or absence of freezing. Non-freezers have reduced range of motion (ROM) of the knee joint (Albani et al., 2014) while reduced acceleration of the pelvis in the vertical and anteroposterior planes were displayed among freezers and those individuals who fall (Latt et al., 2009). Our model’s prioritization of lumbar and trunk ROM aligns with reports that pelvic rotation is necessary to modulate stride length, and as the disease advances, the rise in truncal rigidity leads to the inability of the pelvis to move out of phase with thoracic rotation to increase stride length and stride velocity (Albani et al., 2014). This ultimately causes a compensatory shift to the lower limb joints whereby ROM at the hips, knees, and ankles adjust to limited rotations of the spine (Huang et al., 2010).
As evidenced by our findings, the gait feature set demonstrates salient spatiotemporal elements that have previously been associated with freezers—reinforcing the robustness of these ML approaches regardless of the underlying PD treatments applied to the cohort. This has potential clinical bearing on preoperative DBS assessments that rely on the Core Assessment Program for Surgical Intervention Therapies (CAPSIT) testing. During those assessments, FOG may not be observed despite the patient’s historical accounts. Identifying a gait feature set associated with patients who have freezing episodes in the unmedicated state leverages ML and inertial sensors as viable compliments to characterizing gait severity for those individuals under consideration for an advanced therapy. As highlighted in this study, stimulation and medication washout are necessary to investigate the underlying gait disorder based on the greater prevalence of freezing in the unmedicated state. However, conducting this kind of clinical evaluation in the office environment can be time-consuming and arduous, thus underscoring the efficiency of gait kinematics plus ML to decipher and stratify complex motor symptoms into clinically meaningful disease-related characteristics.
Conclusion
In summary, these results reveal statistically similar performances of machine learning algorithms in classifying advanced PD patients as freezers or non-freezers based on SAW trials in their medication and stimulation naïve state. Additional analysis on the random forest algorithm demonstrates its capability to extract salient spatial and temporal gait features in this classification.
Data availability statement
The datasets presented in this article are not readily available because further inquiries including requests for datasets and raw data can be directed to the corresponding author. Requests to access the datasets should be directed to RR, cnJhbWRoYW5pQG5vcnRod2VsbC5lZHU=.
Ethics statement
The studies involving humans were approved by the Institutional Review Boards of Northwell Health and the University of Tennessee. The studies were conducted in accordance with the local legislation and institutional requirements. The participants provided their written informed consent to participate in this study.
Author contributions
JW: Formal analysis, Writing – original draft, Writing – review & editing. MN: Project administration, Writing – review & editing. AK: Conceptualization, Formal analysis, Methodology, Supervision, Writing – review & editing. RR: Conceptualization, Investigation, Methodology, Project administration, Supervision, Writing – original draft, Writing – review & editing.
Funding
The authors declare that financial support was received for the research, authorship, and/or publication of this article. Research reported in this publication was supported by the National Institute of Neurological Disorders and Stroke of the National Institutes of Health under Award Number R21NS111301 and the Parkinson Alliance.
Acknowledgments
We are appreciative of the study coordination conducted by Toni Fitzpatrick, MA.
Conflict of interest
The authors declare that the research was conducted in the absence of any commercial or financial relationships that could be construed as a potential conflict of interest.
Publisher’s note
All claims expressed in this article are solely those of the authors and do not necessarily represent those of their affiliated organizations, or those of the publisher, the editors and the reviewers. Any product that may be evaluated in this article, or claim that may be made by its manufacturer, is not guaranteed or endorsed by the publisher.
References
Albani, G., Cimolin, V., Fasano, A., Trotti, C., Galli, M., and Mauro, A. (2014). “Masters and servants” in parkinsonian gait: A three-dimensional analysis of biomechanical changes sensitive to disease progression. Funct. Neurol. 29, 99–105.
Banks, S. J., Bayram, E., Shan, G., LaBelle, D. R., and Bluett, B. (2019). Non-motor predictors of freezing of gait in Parkinson’s disease. Gait Post. 68, 311–316. doi: 10.1016/j.gaitpost.2018.12.009
Borzi, L., Mazzetta, I., Zampogna, A., Suppa, A., Olmo, G., and Irrera, F. (2021). Prediction of freezing of gait in Parkinson’s disease using wearables and machine learning. Sensors (Basel) 21:614. doi: 10.3390/s21020614
Cortes, C., and Vapnik, V. (1995). Support-vector networks. Machine Learn. 20, 273–297. doi: 10.1007/BF00994018
D’Cruz, N., Vervoort, G., Fieuws, S., Moreau, C., Vandenberghe, W., and Nieuwboer, A. (2020). Repetitive motor control deficits most consistent predictors of conversion to freezing of gait in Parkinson’s disease: A prospective cohort study. J. Parkinsons Dis. 10, 559–571. doi: 10.3233/JPD-191759
Galna, B., Lord, S., Burn, D. J., and Rochester, L. (2015). Progression of gait dysfunction in incident Parkinson’s disease: Impact of medication and phenotype. Mov. Disord. 30, 359–367. doi: 10.1002/mds.26110
Giladi, N., McDermott, M. P., Fahn, S., Przedborski, S., Jankovic, J., Stern, M., et al. (2001). Freezing of gait in PD: Prospective assessment in the DATATOP cohort. Neurology 56, 1712–1721. doi: 10.1212/wnl.56.12.1712
Glover, A., Pillai, L., Doerhoff, S., and Virmani, T. (2020). Differential gait decline in Parkinson’s disease enhances discrimination of gait freezers from non-freezers. J. Parkinsons Dis. 10, 1657–1673. doi: 10.3233/JPD-201961
Hand, D. Y., and Keming, Y. (2007). Idiot’s bayes: Not so stupid after all? Int. Stat. Rev. 69, 385–398. doi: 10.1111/j.1751-5823.2001.tb00465.x
Hausdorff, J. M. (2009). Gait dynamics in Parkinson’s disease: Common and distinct behavior among stride length, gait variability, and fractal-like scaling. Chaos 19:026113. doi: 10.1063/1.3147408
Hausdorff, J. M., Schaafsma, J. D., Balash, Y., Bartels, A. L., Gurevich, T., and Giladi, N. (2003). Impaired regulation of stride variability in Parkinson’s disease subjects with freezing of gait. Exp. Brain Res. 149, 187–194. doi: 10.1007/s00221-002-1354-8
Huang, Y., Meijer, O. G., Lin, J., Bruijn, S. M., Wu, W., Lin, X., et al. (2010). The effects of stride length and stride frequency on trunk coordination in human walking. Gait Post. 31, 444–449. doi: 10.1016/j.gaitpost.2010.01.019
Latt, M. D., Menz, H. B., Fung, V. S., and Lord, S. R. (2009). Acceleration patterns of the head and pelvis during gait in older people with Parkinson’s disease: A comparison of fallers and nonfallers. J. Gerontol. A Biol. Sci. Med. Sci. 64, 700–706. doi: 10.1093/gerona/glp009
Lord, S., Galna, B., Verghese, J., Coleman, S., Burn, D., and Rochester, L. (2013). Independent domains of gait in older adults and associated motor and nonmotor attributes: Validation of a factor analysis approach. J. Gerontol. A Biol. Sci. Med. Sci. 68, 820–827. doi: 10.1093/gerona/gls255
Mancini, M., Hasegawa, N., Peterson, D. S., Horak, F. B., and Nutt, J. G. (2023). Digital measures of freezing of gait across the spectrum of normal, non-freezers, possible freezers and definite freezers. J. Neurol. 270, 4309–4317. doi: 10.1007/s00415-023-11773-4
McDade, E. M., Boot, B. P., Christianson, T. J., Pankratz, V. S., Boeve, B. F., Ferman, T. J., et al. (2013). Subtle gait changes in patients with REM sleep behavior disorder. Mov. Disord. 28, 1847–1853. doi: 10.1002/mds.25653
Mirelman, A., Gurevich, T., Giladi, N., Bar-Shira, A., Orr-Urtreger, A., and Hausdorff, J. M. (2011). Gait alterations in healthy carriers of the LRRK2 G2019S mutation. Ann. Neurol. 69, 193–197. doi: 10.1002/ana.22165
Morris, M. E., Iansek, R., Matyas, T. A., and Summers, J. J. (1996). Stride length regulation in Parkinson’s disease. Normalization strategies and underlying mechanisms. Brain 119, 551–568. doi: 10.1093/brain/119.2.551
Morris, M., Iansek, R., Matyas, T., and Summers, J. (1998). Abnormalities in the stride length-cadence relation in Parkinsonian gait. Mov. Disord. 13, 61–69. doi: 10.1002/mds.870130115
Nutt, J. G., Bloem, B. R., Giladi, N., Hallett, M., Horak, F. B., and Nieuwboer, A. (2011). Freezing of gait: Moving forward on a mysterious clinical phenomenon. Lancet Neurol. 10, 734–744. doi: 10.1016/S1474-4422(11)70143-0
O’Day, J., Syrkin-Nikolau, J., Anidi, C., Kidzinski, L., Delp, S., and Bronte-Stewart, H. (2020). The turning and barrier course reveals gait parameters for detecting freezing of gait and measuring the efficacy of deep brain stimulation. PLoS One 15:e0231984. doi: 10.1371/journal.pone.0231984
Pardoel, S., Kofman, J., Nantel, J., and Lemaire, E. D. (2019). Wearable-sensor-based detection and prediction of freezing of gait in Parkinson’s disease: A review. Sensors (Basel) 19:141. doi: 10.3390/s19235141
Park, H., Shin, S., Youm, C., Cheon, S. M., Lee, M., and Noh, B. (2021). Classification of Parkinson’s disease with freezing of gait based on 360° turning analysis using 36 kinematic features. J. Neuroeng. Rehabil. 18:177. doi: 10.1186/s12984-021-00975-4
Pedregosa, F., Varoquaux, G., Gramfort, A., Michel, V., Thirion, B., Grisel, O., et al. (2011). Scikit-learn: Machine learning in python. Machine Learn. Res. 12, 2825–2830.
Pillai, L., Shah, K., Glover, A., and Virmani, T. (2022). Increased foot strike variability during turning in Parkinson’s disease patients with freezing of gait. Gait Post. 92, 321–327. doi: 10.1016/j.gaitpost.2021.12.012
Plotnik, M., Giladi, N., Balash, Y., Peretz, C., and Hausdorff, J. M. (2005). Is freezing of gait in Parkinson’s disease related to asymmetric motor function? Ann. Neurol. 57, 656–663. doi: 10.1002/ana.20452
Ramdhani, R. A., Watts, J., Kline, M., Fitzpatrick, T., Niethammer, M., and Khojandi, A. (2023). Differential spatiotemporal gait effects with frequency and dopaminergic modulation in STN-DBS. Front. Aging Neurosci. 15:1206533. doi: 10.3389/fnagi.2023.1206533
Schaafsma, J. D., Giladi, N., Balash, Y., Bartels, A. L., Gurevich, T., and Hausdorff, J. M. (2003). Gait dynamics in Parkinson’s disease: Relationship to Parkinsonian features, falls and response to levodopa. J. Neurol. Sci. 212, 47–53. doi: 10.1016/s0022-510x(03)00104-7
Tan, P. N., Steinbach, M., and Kumar, V. (2016). Introduction to data mining. New Delhi: Pearson Education.
Tayeb, S., Matin, P., Johann, S., Hall, K., Chang, A., Li, J., et al. (2017). “Toward predicting medical conditions using k-nearest neighbors,” in Proceedings of the 2017 IEEE international conference on big data (big data), (Boston, MA).
Virmani, T., Landes, R. D., Pillai, L., Glover, A., Larson-Prior, L., Prior, F., et al. (2023). Gait declines differentially in, and improves prediction of, people with Parkinson’s disease converting to a freezing of gait phenotype. J. Parkinsons Dis. 13, 961–973. doi: 10.3233/JPD-230020
Keywords: deep brain stimulation, Parkinson’s disease, machine learning (ML), gait kinematics, freezing of gait (FOG)
Citation: Watts J, Niethammer M, Khojandi A and Ramdhani R (2024) Machine learning model comparison for freezing of gait prediction in advanced Parkinson’s disease. Front. Aging Neurosci. 16:1431280. doi: 10.3389/fnagi.2024.1431280
Received: 11 May 2024; Accepted: 10 June 2024;
Published: 25 June 2024.
Edited by:
Santiago Perez-Lloret, National Scientific and Technical Research Council (CONICET), ArgentinaReviewed by:
Matias Poullain, University of Buenos Aires, ArgentinaAlejandro Enet, Pontifical Catholic University of Argentina, Argentina
Copyright © 2024 Watts, Niethammer, Khojandi and Ramdhani. This is an open-access article distributed under the terms of the Creative Commons Attribution License (CC BY). The use, distribution or reproduction in other forums is permitted, provided the original author(s) and the copyright owner(s) are credited and that the original publication in this journal is cited, in accordance with accepted academic practice. No use, distribution or reproduction is permitted which does not comply with these terms.
*Correspondence: Ritesh Ramdhani, cnJhbWRoYW5pQG5vcnRod2VsbC5lZHU=