Your new experience awaits. Try the new design now and help us make it even better

BRIEF RESEARCH REPORT article

Front. Artif. Intell., 21 October 2025

Sec. Medicine and Public Health

Volume 8 - 2025 | https://doi.org/10.3389/frai.2025.1660801

Classification of patients with early-stage multiple sclerosis and healthy controls using kinematic analysis during a dual-task

Jos Eduardo Rosseto GarottiJosé Eduardo Rosseto Garotti1Danielli Souza SpecialiDanielli Souza Speciali1Raymundo Machado de Azevedo NetoRaymundo Machado de Azevedo Neto1Patricia Maria de Carvalho AguiarPatricia Maria de Carvalho Aguiar1Rodrigo Barbosa ThomazRodrigo Barbosa Thomaz1Tiago Abro Setrak SowmyTiago Abrão Setrak Sowmy1Guilherme Carlos BrechGuilherme Carlos Brech2Paulo Rodrigo Bazn&#x;Paulo Rodrigo Bazán1Elisa Harumi Kozasa
&#x;Elisa Harumi Kozasa1*
  • 1Hospital Israelita Albert Einstein, São Paulo, Brazil,
  • 2Graduate Program in Aging Sciences at Universidade São Judas Tadeu, São Paulo, Brazil

Multiple sclerosis (MS) is the disabling neurological disease that currently most affects young people. Changes in gait significantly impact the functionality and independence of these individuals. This study aimed to differentiate between patients in the early stages of MS and healthy controls using machine learning in angular gait variables. This cross-sectional observational study included 38 participants, 19 with MS and 19 in the healthy control group (without neurological or orthopedic diseases). For movement analysis, a three-dimensional gait examination was conducted on patients with EDSS (Expanded Disability Status Scale) scores below 3.5 and healthy volunteers during normal gait and while performing a dual task (walking and performing a working memory task). An elastic net regression model was utilized to classify patients and healthy controls based on the kinematic variables. Our model achieved an AUC (area under the curve) of the ROC plot = 0.77 ± 0.21 using the average, an AUC of 0.94 ± 0.09 using the average and standard deviation, and AUC = 0.95 ± 0.09 when incorporating only the standard deviation of kinematic variables. The study suggests that utilizing angular gait analysis with machine learning methods is an effective approach to categorizing individuals with early-stage multiple sclerosis and healthy controls.

Introduction

Multiple sclerosis (MS) is a long-lasting, immune-mediated and progressive disease, which affects the central nervous system in different ways (Moreira et al., 2022; Kuhlmann et al., 2002). Global estimates indicate around 2.8 million cases worldwide (Lakin et al., 2021; Harris, 2013) and generally present as periods of crisis followed by remissions (Rommer et al., 2020; Goodin et al., 2016). The majority of affected individuals are generally between 20 and 40 years of age (Moreira et al., 2022). This diagnosis during a professional peak results in increased unemployment and often requires specialized care, leading to significant social expenses (Ransohoff et al., 2015; Rotstein et al., 2006).

The main way to assess the severity and progression of multiple sclerosis is the Expanded Disability Status Scale (EDSS). This scale varies from 0 to 10 with increments of 0.5 points. A score of 0 means a normal neurological exam, while a score of 10 means death due to complications related to MS (Kurtzke, 1983).

Although the EDSS is clinically important, it has some limitations, as this scale is based on subjective assessments that lack sensitivity to small changes. This highlights the need to use more advanced methods to accurately evaluate gait characteristics in individuals with MS (van and Uitdehaag, 2017; Hobart et al., 2000). More sensitive methods could be used for early detection of gait deviations, leading to more efficient preventive measures, through physical therapy and other relevant treatments (van and Uitdehaag, 2017; Hobart et al., 2000). Furthermore, recent advancements in machine learning have significantly expanded the capabilities of gait analysis for pattern recognition and classification across various clinical and sport contexts, demonstrating its potential for identifying subtle functional differences (Ramírez and Gutiérrez, 2021; Özgür et al., 2024; Friedman et al., 2010; Xu et al., 2024; Xu et al., 2022). These developments often leverage statistical features, such as means and standard deviations of kinematic variables, for robust data representation and pattern discrimination (Pan et al., 2017).

Human gait is composed of two main phases: support and swing. The support stage covers about 60% of the walking cycle, starting with the initial heel strike and ending with toe off. The remaining, 40% of the cycle, begins with toe off and ends with foot strike (Socie et al., 2013).

Studies during walking tasks that cover short and long distances have shown that walking control involves multiple neural processes and coordination (Socie et al., 2013). The challenge becomes more pronounced in the early stages of the disease, as highlighted in a study by Morel et al. (2017). Individuals with MS, when compared to healthy individuals, present a reduction in speed, stride length, cadence and joint disability, indicating that angular details could also offer deeper insights into gait abnormalities in MS (Martin et al., 2006; Cameron and Lord, 2010).

A frequent result is cognitive impairment, observed in 43 to 70% of people with MS (Rao et al., 1991; Benedict et al., 2006). Although there is no direct link between cognitive differences and underlying problems, key areas such as processing speed and memory can draw on mental resources similar to those of gait (Chiaravalloti and DeLuca, 2008; Woollacott and Shumway-Cook, 2002; Demnitz et al., 2016).

Evaluating how these individuals walk while completing a second task adds more relevance to research in the real world (Lakin et al., 2021; Chiaravalloti and DeLuca, 2008; Woollacott and Shumway-Cook, 2002; Demnitz et al., 2016; Wajda et al., 2013). Research on walking associated with a cognitive task in people with minor functional limitations has not shown a significant decline in walking during dual-task situations, however, results may differ based on the complexity of the additional task (Woollacott and Shumway-Cook, 2002; Leone et al., 2015; Huxham et al., 2001; Hamilton et al., 2009; Liparoti et al., 2019).

The angular impacts of major joints during walking have not been extensively studied, especially in double-phase scenarios (Kurtzke, 1983; Woollacott and Shumway-Cook, 2002; Demnitz et al., 2016; Wajda et al., 2013; Leone et al., 2015; Huxham et al., 2001; Hamilton et al., 2009; Liparoti et al., 2019). However, we did not find a comprehensive joint assessment of these factors used for categorization in the existing literature (Martin et al., 2006; Woollacott and Shumway-Cook, 2002; Corradini et al., 1997).

While kinematic gait analysis and dual-task paradigms (Socie et al., 2013) have been increasingly utilized to investigate motor impairments in MS, a significant gap remains in studies specifically targeting early-stage MS patients and their subtle gait deviations (Morel et al., 2017; Martin et al., 2006). Moreover, although mean kinematic values are commonly analyzed (Martin et al., 2006; Cameron and Lord, 2010), the potential of variability metrics, such as standard deviation (SD), and their combination with mean values in classifying early MS based on gait patterns using machine learning has been largely overlooked. This study addresses these specific gaps by incorporating both mean and standard deviation of angular gait variables, offering a possible more nuanced and accurate approach to differentiate early-stage MS patients from healthy controls, which is often challenging in routine clinical assessment.

The aim of this study was to verify whether it is possible to classify patients in the early stages of multiple sclerosis and healthy controls into different groups, using angular gait data, both during normal gait and during dual-task; we also checked the most relevant variables for this classification and their relationship with the expanded scale of disability status.

Methods

The study was performed at the Movement Study Laboratory of Hospital Israelita Albert Einstein (HIAE), with approval granted by the Ethics Committee of the HIAE (number 57428416.2.0000.0071).

Participants

The sample of this study consisted of 38 participants, with 19 individuals diagnosed with multiple sclerosis (MS group) and 19 healthy controls (control group). The average age± s.d. in the MS group was 35.95 years (± 5.79), while in the control group it was 33.22 years (± 6.76), with no statistically significant difference between the groups (p = 0.264; Mann–Whitney test). Regarding body mass index (BMI), the MS group had an average of 25.22 kg/m2 (± 3.99), and the control group averaged 24.42 kg/m2 (± 8.40), also showing no significant difference (p = 0.889; Mann–Whitney test). The average years of education were 17.5 (± 3.26) in the MS group and 20.0 (± 3.76) in the control group, with no statistical difference between the groups (p = 0.083; Mann–Whitney test). Both groups showed a predominance of females (84% in the MS group and 79% in the control group), with a similar distribution between the groups (p = 1.000; Fisher’s exact test). The demographic characteristics demonstrate a relatively homogeneous sample, enhancing the comparability of the groups in subsequent analyses.

This cross-sectional observational study included 38 individuals, with 19 diagnosed with MS and EDSS scores between 0 and 3.5, and 19 forming the healthy control group (without neurological or orthopedic diagnosis). During the entire period, treatments had to be continued and no evidence of active disease was found. All participants were previously diagnosed MS according to McDonald’s diagnostic criteria (Polman et al., 2011) and recruited from the MS Center of the Integrated Neurology Program at HIAE.

As inclusion criteria we considered being aged 18 to 60 years old. In the specific case of the MS group, the disease was stabled for at least 6 months. The exclusion criteria were having cognitive limitations that make it difficult to understand the informed consent form.

Gait data from 75 volunteers were collected over a 2-year interval, 38 of which were matched into the control groups and the MS group according to age (with a variation of plus or minus 3 years), gender and education. This rigorous matching was crucial to ensure the highest possible comparability between the groups, thus enhancing the reliability of our analysis despite the limited sample size inherent to this specific patient cohort.

Experimental task

Gait data were collected using the Vicon® system composed of 10 infrared cameras, generating three-dimensional data on the movement of the lower limbs from reflectors attached to the individuals’ skin. Figure 1 provides an illustrative overview of the data collection setup, detailing the polystyrene spherical reflective markers (A), the infrared camera system (B), and the schematic representation of anatomical regions demarcated by reflective markers adhered to the volunteers’ skin, selected based on the plug-in gait protocol (C). One hundred and fifty angular kinematic data were collected. All gait acquisitions were performed at the Einstein Movement Study Laboratory at HIAE. This high-precision optoelectronic system was specifically chosen for its capacity to accurately capture subtle kinematic variations, which are critical for identifying early gait impairments often not detectable by conventional clinical assessments in individuals with early-stage MS (Morel et al., 2017; Martin et al., 2006). For comprehensive details regarding specific equipment models, calibration procedures, and the exact data collection protocols, please refer to the Supplementary material.

Figure 1
Nine ROC curve graphs display threshold-averaged cross-validated performance of elastic net models across different conditions: All Conditions, Free walk, Click-walk, 0-back, and 2-back. Each condition has three graphs showing means, means plus standard deviations, and standard deviations alone. The area under the curve (AUC) values range from 0.71 to 0.953, indicating model performance, with the diagonal red dashed line representing random chance. The blue shaded areas indicate variability.

Figure 1. Average ROC curves generated through threshold averaging across 25 cross-validation folds (5-fold × 5 repeats) for each of the models. The blue line represents the mean true positive rate at each false positive rate threshold, while the light blue band indicates the variability (±1 SD) in model performance across different data splits. The dashed red line represents random classification performance. On the left side the models using only the mean metrics; in the middle, the models using both mean and SD variables; on the right the ROC curve for models which only used the SD variables.

Cognitive performance was assessed using the n-back task (Hastie et al., 2009), which evaluates working memory (Friedman et al., 2010; Rooney et al., 2020; Shanahan et al., 2018) by asking participants to remember the number presented in audio form 2 positions ago. This task was chosen due to the high prevalence of working memory deficits in individuals with Multiple Sclerosis, even in early stages of the disease, which significantly impact their daily functioning (Rao et al., 1991; Benedict et al., 2006; Chiaravalloti and DeLuca, 2008). The inclusion of two n-back conditions (0-back and 2-back) allowed for a graded assessment of cognitive load during gait. The 0-back task served as a low-demand condition, primarily assessing sustained attention and basic auditory processing. Conversely, the 2-back task presented a higher cognitive load, requiring continuous updating, monitoring, and inhibition of irrelevant information within working memory. Additionally, the ‘Click-Walk’ task was incorporated to serve as a motor-attentional control, isolating the effect of auditory stimulus processing during walking with minimal working memory engagement. This comprehensive selection of tasks enables a nuanced investigation into the interplay between cognitive demands and motor control, which is critical for identifying subtle gait impairments in MS patients under real-world conditions (Woollacott and Shumway-Cook, 2002; Wajda et al., 2013; Rooney et al., 2020). The experimental design of the paradigm was in blocks adopting the following instructions:

1. Free walk: carried out to collect baseline gait parameters. The participant was instructed to walk at a comfortable speed for at least 1 min.

2. Dual task: While walking at a comfortable speed, the participant had to perform n-back tasks. The dual task condition consisted of three distinct blocks lasting 20 s and interspersed with pauses (15 s) to collect the baseline:

a. 0-back block: upon listening to a sequence from 0 to 9, the participant should have pressed a response button whenever they heard the number 0.

b. 2-back block: upon listening to a sequence from 1 to 9, the participant should press a response button whenever the current number was the same as the one mentioned 2 previous positions.

c. Click-Walk block: the participant had to press a response button whenever they listened to the ‘click’ command.

Participants walked at a comfortable speed. The average time for data collection at the Einstein Movement Study Laboratory was 1 h and 40 min.

Statistical methods

Descriptive statistics were used to identify the absolute and relative angular frequencies obtained, in addition to reporting average, medians and standard deviations (Rooney et al., 2020). The variables involved, in each body segment, were average (AVG) and range of motion (Range). These data were applied to a classification model, seeking to evaluate the ability to classify between controls and patients. Elastic Net regression models were used (Friedman et al., 2010; Shanahan et al., 2018). Elastic Net (Ramírez and Gutiérrez, 2021) is a regularization technique widely used in linear regression models within the field of Machine Learning, especially in contexts with many variables and high multicollinearity between them (Rooney et al., 2020). This method was specifically chosen for its ability to perform automatic feature selection and handle correlated variables. It also provides a more interpretable outcome, which was crucial for identifying the most discriminating gait parameters from our high-dimensional kinematic dataset, aligning with our study’s primary objective. The model parameters were optimized using Machine Learning methodology (Ramírez and Gutiérrez, 2021; Hamilton et al., 2009). As implemented in the glmnet package, version 4.1–8 (Friedman et al., 2010), two main parameters are optimized: alpha, a value from 0 to 1 which defines the balance between Ridge (when alpha is 0) and Lasso (when alpha is 1) regression; and lambda, a positive number which is the weight of the penalty correction. The models were trained using a 5-fold cross validation with 5 repetitions and parameter tuning was performed with alpha ranging from 0 to 1 (in 0.01 intervals) and lambda ranging from 0 to 50 (in 0.05 intervals). A fixed seed was defined for reproducibility (see the analysis code in the Supplementary material). The performance metric is the cross-validated area under the curve (AUC) of the ROC plot. Because the sample size is small, we did not create a separate test set, only validation sets for the cross-validation procedure. The gait variables were standardized by subtracting the mean and dividing by the standard deviation to allow using the relation between the weights of the different gait variables in the model as indicator of the relative importance of the variables for the classification. The classification models were generated using 5 subsets of the variables: one with all the data in all phases of the experiment, and another with data from each experimental condition separately (Click-Walk, 0-back, 2-back and the Free walk condition). Additionally, models were estimated using only average gait metric values, only standard deviation gait metric values, and including both average and standard deviation of the metrics.

Results

Classification using the average

Using the average the best model achieved AUC = 0.77 ± 0.21 (average ± SD). These results indicate that when using 600 gait kinematic variables (150 variables, 75 on the right side of the body and 75 on the left side of the body, for each of the 4 conditions), it was possible to classify above chance which participants are patients with MS and which are controls. The AUC for each of the models of the separate conditions was: “Free walk” = 0.71 ± 0.17;” Click-Walk” = 0.71 ± 0.14; “0-back” = 0.76 ± 0.15; “2-back” = 0.76 ± 0.14. Figure 1 shows the ROC curves of these models.

The 15 most relevant variables are presented in a relative importance table (Table 1).

Table 1
www.frontiersin.org

Table 1. Values of the 15 most relevant variables for distinguishing groups of patients with multiple sclerosis (EDSS 0 to 3.5) and controls without the diagnosis using the average.

Classification using average and standard deviation

Using the average and standard deviation variables the best model achieved AUC = 0.94 ± 0.09 (average ± SD). This means that using 1,200 gait kinematic variables (300 in each of the 4 conditions) we were able to classify above chance who is a patient with Multiple Sclerosis and who is a control participant.

The AUC for each of the models of the separate conditions was: “Free walk” = 0.94 ± 0.09;” Click-Walk” = 0.89 ± 0.11; “0-back” = 0.83 ± 0.14; “2-back” = 0.81 ± 0.15. Table 2 shows the relative importance of the 20 most relevant variables.

Table 2
www.frontiersin.org

Table 2. Values of the 15 most relevant variables for distinguishing groups of patients with multiple sclerosis (EDSS 0 to 3.5) and controls without the diagnosis using the mean and standard deviation.

Classification using standard deviation

Using the standard deviation variables the best model achieved AUC = 0.95 ± 0.09 (average ± SD). This means that using 600 gait kinematic variables in each of the 4 conditions we were able to classify above chance who is a patient with Multiple Sclerosis and who is a control participant.

The AUC for each of the models of the separate conditions was: “Free walk” = 0.95 ± 0.09;” Click-Walk” = 0.89 ± 0.11; “0-back” = 0.83 ± 0.12; “2-back” = 0.78 ± 0.14. Table 3 the relative importance of the 20 most relevant variables.

Table 3
www.frontiersin.org

Table 3. Values of the 20 most relevant variables for distinguishing groups of patients with multiple sclerosis (EDSS 0 to 3.5) and controls without the diagnosis using the standard deviation.

As summarized in Figure 1, the Elastic Net model demonstrates notable improvements when incorporating standard deviation of kinematic variables, either alone or in combination with average values. This visual representation underscores the superior performance achieved with variability measures compared to using only average values across all task conditions (Overall, Free Walk, Click-Walk, 0-Back, and 2-Back). The visualization shows that models incorporating standard deviation, either alone or in combination with mean values, generally achieve significantly higher classification using AUC compared to those relying solely on average kinematic variables. This highlights the importance of variability in gait parameters for distinguishing between individuals with early-stage Multiple Sclerosis and healthy controls.

Discussion

The aim of this study was to verify whether it is possible to classify patients in the early stages of multiple sclerosis and healthy controls into different groups, using angular gait data, both during normal gait (free walk) and during dual-task (click-walk, 0-back and 2-back).

When considering only the average gait data for classification analysis, the best model achieved AUC = 0.77 ± 0.21 in cross-validation, suggesting an ability to differentiate between groups above the level of chance.

When the average and standard deviation of kinematic variables were considered, there was a notable improvement in the model’s performance, reaching an AUC of 0.94 ± 0.09. These results indicate that the incorporation of gait data measured by standard deviation improves the model, enhancing its ability to distinguish between patients with MS multiple sclerosis and healthy individuals. We even carried out an analysis using only the standard deviation data, but the results were very similar to those of standard deviation with average.

Recent research indicates that variables related to walking, especially in dual-task conditions, may reveal early motor impairments in patients with MS. The study highlights the importance of using kinematic analysis to identify specific walking problems (Shanahan et al., 2018). Our study suggests that machine-learning algorithms can detect changes in walking patterns, even in the early stages of multiple sclerosis, during walking.

The specific kinematic variables identified as most relevant for classification in our models offer valuable insights into the subtle yet distinct gait alterations in early-stage MS. For instance, the increased variability (standard deviation) observed across numerous parameters—including foot progression, pelvic rotation, stride time, and cadence (Tables 2, 3)—is a critical indicator of compromised motor control and reduced gait stability in neurological conditions (Socie et al., 2013; Demnitz et al., 2016). This heightened variability suggests a less automatic and more cognitively effortful walking pattern, even in individuals with low EDSS scores, as their central nervous system struggles to maintain consistent movement patterns (Woollacott and Shumway-Cook, 2002). The automaticity of the impaired free walking may be masked by more self controlled movements during dual task which probably requires cognitive control for both the task and the walking. Furthermore, changes in average angular ranges such as altered knee angles at foot off or in terminal stance, and increased trunk and pelvic rotation ranges (Table 1), likely represent compensatory strategies for underlying weakness or spasticity, common in MS, affecting shock absorption, propulsion, and overall gait efficiency (Martin et al., 2006; Cameron and Lord, 2010). These findings underscore that while overt disability may be minimal, quantifiable kinematic deviations are present, serving as early markers of the disease’s impact on mobility and potentially contributing to an increased risk of falls and reduced functional independence over time (Shanahan et al., 2018). The ability of machine learning to discern these specific and often subtle patterns reinforces its potential as a sensitive tool for early detection and objective assessment in clinical settings.

The efficacy of machine learning in discerning subtle gait patterns, as suggested in our study, is further supported by recent advancements in the field. For instance, new methodologies in human gait pattern recognition, particularly those with applications in clinical settings, underscore the power of computational approaches in identifying nuanced differences not readily apparent through conventional assessments (Xu et al., 2024). Similarly, studies employing machine learning to differentiate gait patterns even in high-performance contexts, such as between runners with varying mileage, reinforce the robustness and sensitivity of these techniques in capturing subtle biomechanical distinctions (Xu et al., 2022). While the general approach of utilizing and combining statistical features like average and standard deviation for gait analysis is present in the broader field of human movement analysis, as exemplified by works such as Pan et al. (2017) on gait recognition using sensor data, our specific contribution lies in systematically demonstrating its efficacy and, more importantly, highlighting the superior discriminatory power of variability metrics (standard deviation) over average values in the challenging context of early-stage Multiple Sclerosis (MS) with low disability (EDSS scores 0–3.5). This insight, suggesting that machine learning models using gait variability may detect subtle gait impairments in early MS, was not applied in previous studies within this specific clinical population. The Elastic Net model, chosen for its robust feature selection capabilities in high-dimensional datasets, allowed us to identify these relevant kinematic variability parameters that contribute most effectively to the classification. These external validations highlight the potential of our Elastic Net model not only for classifying early-stage MS but also for contributing to a broader understanding of pathological gait characteristics, thereby offering more comprehensive and effective insights into neurological conditions.

The study by Özgür et al. (2024) emphasizes that gait changes in patients with MS may involve a reduction in speed, cadence and step length factors associated with an increased risk of falls and decreased independence. The study indicates that the comparison between patients and controls shows an AUC of 0.84 ± 0.12. This suggests that this method is useful in detecting minor motor problems, which aligns with the belief that movement pattern analysis can help detect early signs of changes in walking patterns.

A study by Ramírez and Gutiérrez (2021) emphasize how supervised learning methods such as Elastic Net improve the accuracy of analysis and provide important information about the progression of MS. This helps with early detection and interventions.

In previous research, the results indicate similarities and noticeable differences. Research conducted by Rooney et al. (2020) points to the worsening of dual-task gait impairment in people with MS due to the increase in cognitive demands that exacerbate motor deficits.

Furthermore, the effectiveness of the model is improved by incorporating regularization methods such as Elastic Net, which present practical benefits for clinical environments. Recent research indicates that Elastic Net stands out in the selection of variables in scenarios with many dimensions and variable correlations, surpassing the conventional dimension reduction technique, such as Principal Component Analysis (Hastie et al., 2009).

To improve the understanding of gait changes related to MS, future research should adopt a multidimensional approach that integrates kinematic data with clinical assessments. Detecting changes in motor skills, such as difficulty walking quickly, is vital to improving treatments and slowing down the progression of disabilities (Shanahan et al., 2018).

While our study provides valuable insights into the classification of early-stage MS patients using gait kinematics and machine learning, it is important to acknowledge some limitations. Firstly, the relatively small sample size (19 participants per group) represents a convenience sample. Despite rigorous matching for demographic variables, this size precluded a formal power analysis to ascertain definitive statistical power, meaning our promising findings should be considered preliminary and exploratory. Furthermore, our study specifically focused on individuals with early-stage MS and mild disability (EDSS scores between 0 and 3.5). While this specific focus allowed us to detect subtle gait deviations in a population where clinical assessment is often challenging, the generalizability of these findings to patients with more advanced stages of MS or higher levels of disability requires further investigation. Secondly, the cross-sectional nature of the study prevents the assessment of longitudinal changes in gait patterns or the long-term predictive power of our model. A further consideration is that while we meticulously controlled for disease activity by including only patients with stable MS for at least 6 months, we did not explicitly account for disease duration or the specific types and regimens of treatments used by the MS participants. These factors are known to influence disease progression and symptomatology, including gait; however, their direct inclusion as covariates was challenging due to their exclusive presence in the MS group and the inherent heterogeneity of medication types within our sample. Lastly, although the Elastic Net model proved highly effective for our specific objective of classification and feature identification in this high-dimensional dataset, a direct comparative analysis with other machine learning algorithms (e.g., Support Vector Machines, Random Forests) was beyond the scope of this preliminary report. Addressing these points, future research is crucial. This includes conducting larger, multi-center, and longitudinal studies to enhance generalizability and validate findings across a broader spectrum of early MS presentations, including those with varying levels of disability. Such studies should also investigate the specific impact of disease duration and different pharmacological interventions on kinematic gait variables, and comprehensively compare the performance of various machine learning models to further optimize classification accuracy and generalize findings.

In conclusion, this study suggests that using angular gait analysis with machine learning methods is a successful way to categorize individuals with early-stage multiple sclerosis and those who are otherwise healthy. The research also provides a substantial contribution to the existing literature by introducing a viable method for detecting early signs of motor changes related to multiple sclerosis.

Data availability statement

The raw data supporting the conclusions of this article will be made available by the authors, without undue reservation.

Ethics statement

The studies involving humans were approved by Ethics Committee of Hospital Israelita Albert Einstein. 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

JG: Writing – review & editing, Writing – original draft, Formal analysis, Investigation, Methodology. DS: Writing – review & editing, Data curation, Writing – original draft. RN: Writing – original draft, Writing – review & editing, Formal analysis, Data curation. PA: Writing – original draft, Methodology, Writing – review & editing, Conceptualization. RT: Methodology, Conceptualization, Writing – review & editing, Writing – original draft. TS: Formal analysis, Writing – review & editing, Writing – original draft, Methodology, Investigation. GB: Methodology, Writing – review & editing, Writing – original draft, Formal analysis. PB: Supervision, Data curation, Methodology, Writing – original draft, Writing – review & editing, Formal analysis. EK: Supervision, Conceptualization, Investigation, Validation, Funding acquisition, Methodology, Writing – original draft, Formal analysis, Project administration, Writing – review & editing, Data curation.

Funding

The author(s) declare that financial support was received for the research and/or publication of this article. The authors would like to thank FAPESP (2016/13104-7) for their financial support, Bayer for providing gadolinium for patients exams, and Instituto Israelita de Ensino e Pesquisa Albert Einstein for providing the infrastructure.

Acknowledgments

We would like to thank Amigos Múltiplos da Esclerose (AME) and Associação Brasileira de Esclerose Múltipla (ABEM) for assisting with patient recruitment.

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.

The author(s) declared that they were an editorial board member of Frontiers, at the time of submission. This had no impact on the peer review process and the final decision.

Generative AI statement

The author(s) declare that Gen AI was used in the creation of this manuscript. Generative AI was used to translate parts of the manuscript and response to the reviewers.

Any alternative text (alt text) provided alongside figures in this article has been generated by Frontiers with the support of artificial intelligence and reasonable efforts have been made to ensure accuracy, including review by the authors wherever possible. If you identify any issues, please contact us.

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.

Supplementary material

The Supplementary material for this article can be found online at: https://www.frontiersin.org/articles/10.3389/frai.2025.1660801/full#supplementary-material

References

Benedict, R. H., Cookfair, D., Gavett, R., Gunther, M., Munschauer, F., Garg, N., et al. (2006). Validity of the minimal assessment of cognitive function in multiple sclerosis (MACFIMS). J. Int. Neuropsychol. Soc. 12, 549–558. doi: 10.1017/S1355617706060723

PubMed Abstract | Crossref Full Text | Google Scholar

Cameron, M. H., and Lord, S. (2010). Postural control in multiple sclerosis: implications for fall prevention. Curr. Neurol. Neurosci. Rep. 10, 407–412. doi: 10.1007/s11910-010-0128-0

PubMed Abstract | Crossref Full Text | Google Scholar

Chiaravalloti, N. D., and DeLuca, J. (2008). Cognitive impairment in multiple sclerosis. Lancet Neurol. 7, 1139–1151. doi: 10.1016/S1474-4422(08)70259-X

PubMed Abstract | Crossref Full Text | Google Scholar

Corradini, M. L., Fioretti, S., Leo, T., and Piperno, R. (1997). Early recognition of postural disorders in multiple sclerosis through movement analysis: a modeling study. I.E.E.E. Trans. Biomed. Eng. 44, 1029–1038. doi: 10.1109/10.641330

PubMed Abstract | Crossref Full Text | Google Scholar

Demnitz, N., Esser, P., Dawes, H., Valkanova, V., Johansen-Berg, H., Ebmeier, K. P., et al. (2016). A systematic review and meta-analysis of cross-sectional studies examining the relationship between mobility and cognition in healthy older adults. Gait Posture 50, 164–174. doi: 10.1016/j.gaitpost.2016.08.028

PubMed Abstract | Crossref Full Text | Google Scholar

Friedman, J., Hastie, T., and Tibshirani, R. (2010). Applications of the lasso and grouped lasso to the estimation of sparse graphical models. Redwood City: Stanford University.

Google Scholar

Goodin, D. S., Reder, A. T., Bermel, R. A., Cutter, G. R., Fox, R. J., John, G. R., et al. (2016). Relapses in multiple sclerosis: relationship to disability. Mult. Scler. Relat. Disord. 6, 10–20. doi: 10.1016/j.msard.2015.09.002

PubMed Abstract | Crossref Full Text | Google Scholar

Hamilton, F., Rochester, L., Paul, L., Rafferty, D., O’Leary, C. P., and Evans, J. J. (2009). Walking and talking: an investigation of cognitive-motor dual tasking in multiple sclerosis. Mult. Scler. 15, 1215–1227. doi: 10.1177/1352458509106712

PubMed Abstract | Crossref Full Text | Google Scholar

Harris, R. E. (2013). Epidemiology of chronic disease: Global perspectives. Burlington: Jones & Bartlett Publishers.

Google Scholar

Hastie, T., Tibshirani, R., and Friedman, J. (2009). The elements of statistical learning: Data mining, inference, and prediction. 2nd Edn. Stanford: Springer.

Google Scholar

Hobart, J., Freeman, J., and Thompson, A. (2000). Kurtzke scales revisited: the application of psychometric methods to clinical intuition. Brain 123, 1027–1040. doi: 10.1093/brain/123.5.1027

Crossref Full Text | Google Scholar

Huxham, F. E., Goldie, P. A., and Patla, A. E. (2001). Theoretical considerations in balance assessment. Aust. J. Physiother. 47, 89–100. doi: 10.1016/S0004-9514(14)60300-7

PubMed Abstract | Crossref Full Text | Google Scholar

Kuhlmann, T., Lingfeld, G., Bitsch, A., Schuchardt, J., and Brück, W. (2002). Acute axonal damage in multiple sclerosis is most extensive in early disease stages and decreases over time. Brain 125, 2202–2212. doi: 10.1093/brain/awf235

PubMed Abstract | Crossref Full Text | Google Scholar

Kurtzke, J. F. (1983). Rating neurologic impairment in multiple sclerosis: an expanded disability status scale (EDSS). Neurology 33, 1444–1452. doi: 10.1212/wnl.33.11.1444

PubMed Abstract | Crossref Full Text | Google Scholar

Lakin, L., Davis, B. E., Binns, C. C., Currie, K. M., and Rensel, M. R. (2021). Comprehensive approach to management of multiple sclerosis: addressing invisible symptoms—a narrative review. Neurol. Ther. 10, 75–98. doi: 10.1007/s40120-021-00239-2

PubMed Abstract | Crossref Full Text | Google Scholar

Leone, C., Patti, F., and Feys, P. (2015). Measuring the cost of cognitive-motor dual tasking during walking in multiple sclerosis. Mult. Scler. 21, 123–131. doi: 10.1177/1352458514547408

PubMed Abstract | Crossref Full Text | Google Scholar

Liparoti, M., Della Corte, M., Rucco, R., Sorrentino, P., Sparaco, M., Capuano, R., et al. (2019). Gait abnormalities in minimally disabled people with multiple sclerosis: a 3D-motion analysis study. Mult. Scler. Relat. Disord. 29, 100–107. doi: 10.1016/j.msard.2019.01.028

PubMed Abstract | Crossref Full Text | Google Scholar

Martin, C. L., Phillips, B. A., Kilpatrick, T. J., Butzkueven, H., Tubridy, N., McDonald, E., et al. (2006). Gait and balance impairment in early multiple sclerosis in the absence of clinical disability. Mult. Scler. 12, 620–628. doi: 10.1177/1352458506070658

PubMed Abstract | Crossref Full Text | Google Scholar

Moreira, C. E., Telles, I. R., and Barone Junior, C. (2022). Análise das características da esclerose múltipla: revisão de literatura. REA Med. 20:e11194. doi: 10.25248/reamed.e11194.2022

Crossref Full Text | Google Scholar

Morel, E., Allali, G., Laidet, M., Assal, F., Lalive, P. H., and Armand, S. (2017). Gait profile score in multiple sclerosis patients with low disability. Gait Posture 51, 169–173. doi: 10.1016/j.gaitpost.2016.10.013

PubMed Abstract | Crossref Full Text | Google Scholar

Özgür, S., Koçaslan Toran, M., Toygar, İ., Yalçın, G. Y., and Eraksoy, M. (2024). A machine learning approach to determine the risk factors for fall in multiple sclerosis. BMC Med. Inform. Decis. Mak. 24:215. doi: 10.1186/s12911-024-02621-0

PubMed Abstract | Crossref Full Text | Google Scholar

Pan, Z., Zhang, Y., Hu, M., Li, G., and Zhang, L. (2017). Robust gait recognition based on Kinect sensor. In Proceedings of the 2017 3rd international conference on Universal Village (UV2017) (pp. 1–6). Association for Computing Machinery

Google Scholar

Polman, C. H., Reingold, S. C., Banwell, B., Clanet, M., Cohen, J. A., Filippi, M., et al. (2011). Diagnostic criteria for multiple sclerosis: 2010 revisions to the McDonald criteria. Ann. Neurol. 69, 292–302. doi: 10.1002/ana.22366

PubMed Abstract | Crossref Full Text | Google Scholar

Ramírez, F., and Gutiérrez, M. (2021). Dual-Task Gait as a Predictive Tool for Cognitive Impairment in Older Adults: A Systematic Review. Front Aging Neurosci. 13:769462. doi: 10.3389/fnagi.2021.769462

Crossref Full Text | Google Scholar

Ransohoff, R. M., Hafler, D. A., and Lucchinetti, C. F. (2015). Multiple sclerosis—a quiet revolution. Nat. Rev. Neurol. 11, 134–142. doi: 10.1038/nrneurol.2015.14

PubMed Abstract | Crossref Full Text | Google Scholar

Rao, S. M., Leo, G. J., Bernardin, L., and Unverzagt, F. (1991). Cognitive dysfunction in multiple sclerosis. I. Frequency, patterns, and prediction. Neurology 41, 685–691. doi: 10.1212/wnl.41.5.685

PubMed Abstract | Crossref Full Text | Google Scholar

Rommer, P. S., Weber, M. S., Illes, Z., and Zettl, U. K. (2020). Multiple sclerosis – From bench to bedside: Current insights into pathophysiological concepts and their potential impact on patients. Lausanne: Frontiers Media SA.

Google Scholar

Rooney, S., Ozkul, C., and Paul, L. (2020). Correlates of dual-task performance in people with multiple sclerosis: A systematic review. Gait Posture. 81, 172–182. doi: 10.1016/j.gaitpost.2020.07.069

Crossref Full Text | Google Scholar

Rotstein, Z., Hazan, R., Barak, Y., and Achiron, A. (2006). Perspectives in multiple sclerosis health care: special focus on the costs of multiple sclerosis. Autoimmun. Rev. 5, 511–516. doi: 10.1016/j.autrev.2006.02.001

PubMed Abstract | Crossref Full Text | Google Scholar

Shanahan, C. J., Boonstra, F. M., Cofré Lizama, L. E., Strik, M., Moffat, B. A., Khan, F., et al. (2018). Technologies for advanced gait and balance assessments in people with multiple sclerosis. Front. Neurol. 8:708. doi: 10.3389/fneur.2017.00708

PubMed Abstract | Crossref Full Text | Google Scholar

Socie, M. J., Motl, R. W., Pula, J. H., Sandroff, B. M., and Sosnoff, J. J. (2013). Gait variability and disability in multiple sclerosis. Gait Posture 38, 51–55. doi: 10.1016/j.gaitpost.2012.10.012

PubMed Abstract | Crossref Full Text | Google Scholar

van, C., and Uitdehaag, B. M. (2017). Outcome measures in clinical trials for multiple sclerosis. CNS Drugs 31, 217–236. doi: 10.1007/s40263-017-0412-5

Crossref Full Text | Google Scholar

Wajda, D. A., Motl, R. W., and Sosnoff, J. J. (2013). Dual task cost of walking is related to fall risk in persons with multiple sclerosis. J. Neurol. Sci. 335, 160–163. doi: 10.1016/j.jns.2013.09.021

PubMed Abstract | Crossref Full Text | Google Scholar

Woollacott, M., and Shumway-Cook, A. (2002). Attention and the control of posture and gait: a review of an emerging area of research. Gait Posture 16, 1–14. doi: 10.1016/S0966-6362(01)00156-4

PubMed Abstract | Crossref Full Text | Google Scholar

Xu, D., Quan, W., Zhou, H., Sun, D., Baker, J. S., and Gu, Y. (2022). Explaining the differences of gait patterns between high and low-mileage runners with machine learning. Sci. Rep. 12:2981. doi: 10.1038/s41598-022-07054-1

PubMed Abstract | Crossref Full Text | Google Scholar

Xu, D., Zhou, H., Quan, W., Jiang, X., Liang, M., Li, S., et al. (2024). A new method proposed for realizing human gait pattern recognition: inspirations for the application of sports and clinical gait analysis. Gait Posture 107, 293–305. doi: 10.1016/j.gaitpost.2023.10.019

PubMed Abstract | Crossref Full Text | Google Scholar

Keywords: multiple sclerosis, gait analysis, machine learning, cognition, dual task, working memory

Citation: Garotti JER, Speciali DS, de Azevedo Neto RM, Aguiar PMC, Thomaz RB, Sowmy TAS, Brech GC, Bazán PR and Kozasa EH (2025) Classification of patients with early-stage multiple sclerosis and healthy controls using kinematic analysis during a dual-task. Front. Artif. Intell. 8:1660801. doi: 10.3389/frai.2025.1660801

Received: 06 July 2025; Accepted: 30 September 2025;
Published: 21 October 2025.

Edited by:

Jize Zhang, Hong Kong University of Science and Technology, Hong Kong SAR, China

Reviewed by:

Datao Xu, Ningbo University, China
Zihao Song, The Hong Kong University of Science and Technology, Hong Kong SAR, China

Copyright © 2025 Garotti, Speciali, de Azevedo Neto, Aguiar, Thomaz, Sowmy, Brech, Bazán and Kozasa. 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: Elisa Harumi Kozasa, ZWhrb3phc2FAZ21haWwuY29t

These authors share last authorship

Disclaimer: 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.