Next Article in Journal
One-Port Coaxial Line Sample Holder Characterisation Method of Dielectric Spectra
Next Article in Special Issue
The Effect of Dimple Insole Design on the Plantar Temperature and Pressure in People with Diabetes and in Healthy Individuals
Previous Article in Journal
A Novel Shunt Zigzag Double-Tap Low-Harmonic Multi-Pulse Rectifier Based on a Three-Stage Power Electronic Phase-Shifting Transformer
Previous Article in Special Issue
The Cumulative Impacts of Fatigue during Overload Training Can Be Tracked Using Field-Based Monitoring of Running Stride Interval Correlations
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Machine Learning Based Abnormal Gait Classification with IMU Considering Joint Impairment

1
Bionics Research Center, Biomedical Research Division, Korea Institute of Science and Technology (KIST), Seoul 02792, Republic of Korea
2
School of Biomedical Engineering, Korea University, Seoul 02841, Republic of Korea
3
Department of Neurology, Korea University Anam Hospital, Korea University College of Medicine, Seoul 02841, Republic of Korea
4
Division of Bio-Medical Science & Technology, KIST School, Korea University of Science and Technology, Seoul 02792, Republic of Korea
5
KHU-KIST Department of Converging Science and Technology, Kyung Hee University, Seoul 02447, Republic of Korea
*
Authors to whom correspondence should be addressed.
Sensors 2024, 24(17), 5571; https://doi.org/10.3390/s24175571
Submission received: 15 July 2024 / Revised: 23 August 2024 / Accepted: 27 August 2024 / Published: 28 August 2024
(This article belongs to the Special Issue Sensors and Wearable Technologies in Sport Biomechanics)

Abstract

:
Gait analysis systems are critical for assessing motor function in rehabilitation and elderly care. This study aimed to develop and optimize an abnormal gait classification algorithm considering joint impairments using inertial measurement units (IMUs) and walkway systems. Ten healthy male participants simulated normal walking, walking with knee impairment, and walking with ankle impairment under three conditions: without joint braces, with a knee brace, and with an ankle brace. Based on these simulated gaits, we developed classification models: distinguishing abnormal gait due to joint impairments, identifying specific joint disorders, and a combined model for both tasks. Recursive Feature Elimination with Cross-Validation (RFECV) was used for feature extraction, and models were fine-tuned using support vector machine (SVM), random forest (RF), and extreme gradient boosting (XGB). The IMU-based system achieved over 91% accuracy in classifying the three types of gait. In contrast, the walkway system achieved less than 77% accuracy in classifying the three types of gait, primarily due to high misclassification rates between knee and ankle joint impairments. The IMU-based system shows promise for accurate gait assessment in patients with joint impairments, suggesting future research for clinical application improvements in rehabilitation and patient management.

1. Introduction

Walking is the most fundamental movement for maintaining a healthy daily life and is essential for performing a variety of purposeful activities. Normal walking requires the coordinated action of the central and peripheral nervous systems, as well as the musculoskeletal system. However, numerous abnormal gait patterns can arise because of various factors, including the weakening of the musculoskeletal and nervous systems due to aging, diseases, accidents, and post-surgical complications [1]. Stroke patients often exhibit joint stiffness and hemiparetic gait due to lesions in the cerebral hemisphere or ataxic gait and impaired balance due to cerebellar lesions [2]. Patients with Parkinson’s disease may experience difficulty initiating walking and problems with turning, avoiding obstacles, and stopping due to bradykinesia, rigidity, and postural instability associated with extrapyramidal system dysfunction [3]. Additionally, patients with cerebral palsy suffered diplegic gait and crouch gait due to the loss of neuromuscular control, making it difficult to maintain posture [4]. These abnormal gait patterns lead to issues of balance and stability, pain and discomfort, limited mobility, complex daily management, and significant psychological effects, all of which collectively deteriorate the overall quality of life.
For these reasons, many researchers have been studying the causes of abnormal gait and simultaneously evaluating the types and severity of diseases, as well as the effectiveness of rehabilitation training, through gait analysis [5]. In particular, with the increase in joint surgery patients due to advancements in artificial joint technology [6], the importance of monitoring the prognosis and analyzing the effects of rehabilitation exercises in patients who are unable to walk normally due to joint surgery or paralysis has grown. Consequently, there has been active research on analyzing lower limb joint kinematics, determining abnormal gait, and classifying walking conditions [7]. To detect and classify abnormal gait, conventional methods frequently use marker-based motion capture systems. These systems are known for their high accuracy but come with significant drawbacks: they are expensive, require complex setups, and depend on skilled evaluators [8]. As a result, their use is often limited to large institutions, making them impractical for routine clinical use and leading to delays in diagnosis and treatment.
In response to these limitations, more accessible and portable gait measurement devices, such as the walkway system, have been developed. The walkway system, which uses pressure sensors, is commonly employed in clinical and research settings due to its ability to accurately measure forces and pressures exerted on the feet during walking [9]. Webster et al. conducted a gait analysis study on elderly patients who underwent knee arthroplasty using both the electronic walkway system (GAITRite®, GAITRite Gold, CIR Systems, Havertown, PA, USA) and the 3D motion analysis system (Vicon-512®, Oxford Metrics, Oxford, UK) by calculating gait parameters [10]. The results demonstrated that the walkway system showed high intra-class correlation coefficients (0.92 to 0.99) and excellent repeatability coefficients (1.0% to 5.9%) compared to the 3D motion analysis system, thus validating the effectiveness of the walkway for gait analysis. Similarly, Stokic et al. evaluated spatio-temporal gait parameters in healthy individuals and chronic stroke patients using the walkway and the 3D motion analysis system (EVaRT) [11]. They reported that the walkway system performed as well as the 3D motion analysis system. However, it requires ample space for installation and can measure foot forces only, which can make it difficult to capture joint angle deviations observed in asymmetric gait [12]. Moreover, the cost of acquiring and maintaining force plates can be prohibitive.
To overcome these issues, numerous studies utilizing wearable sensors have been proposed, among which research employing inertial measurement unit (IMU) has reported high usability and excellent performance [13,14]. These compact and portable sensors are suitable for use in real-world environments and can measure a wide range of movements and postures. While they may offer lower accuracy compared to force plates, precise sensor placement and calibration can mitigate these discrepancies. IMUs can directly measure joint angles and extract general gait parameters, making them useful for analyzing asymmetric gait. Wang et al. used IMUs attached to the left and right shanks to analyze the gait of healthy adults and patients with neuropathy-induced abnormal gait, and they reported that IMUs, as well as 3D motion analysis systems (Vicon-T40S), are suitable for gait analysis in both healthy individuals and patients [15]. In another study, IMUs and a deep neural network algorithm were used to detect abnormal gait and classify four gait patterns in stroke patients [16]. Numerous studies have validated the accuracy of IMU measurements, demonstrating their reliability in capturing general gait parameters and joint angles [17]. Based on these research findings, IMU-based healthcare platforms, which utilize IMU systems integrated with smartphones and network servers to record and analyze movements in real-time, were recently proposed for the assessment of users’ motor functions and digital healthcare (Figure 1).
This study aims to investigate whether an IMU-based system can effectively classify abnormal gait patterns caused by knee and ankle joint impairments. While previous research has compared the accuracy of specific gait parameters between the IMU-based and walkway systems, this study focuses on evaluating the capability of IMUs to detect and classify gait abnormalities specifically related to joint impairments. Walking measurements were conducted using both systems on the same participants to assess the performance of IMUs in a clinical setting. Through this comparison, this study aims to determine the effectiveness of IMUs in providing accurate and reliable gait assessments for patients with joint impairments.

2. Materials and Methods

2.1. Participant Recruitment

Prior to participation, written consent was obtained from all subjects, following the guidelines set by the Institutional Review Board of the Korea Institute of Science and Technology (IRB No. 2022-002). This study involved ten healthy male participants. The participants had an average age of 39.4 ± 10.3 years, an average height of 175.6 ± 6.1 cm, and an average weight of 79.0 ± 12.6 kg (Table 1). All subjects were required to have had no special neurological or orthopedic abnormal findings within the last 5 years.

2.2. Experimental Instrumentation and Procedure

Braces can constrain knee and ankle kinematics and reduce load and force on the affected compartments. Participants simulated joint impairments by wearing a knee brace (ACL, Medicalnine Inc., Seoul, Korea) on the right leg or an ankle brace (Nice stretch 90, Brownmed Inc., Boston, MA, USA) on the right leg to restrict joint movement. While walking, kinematics data were acquired using both an IMU-based system (eCEN care, eCEN Inc., Seoul, Korea) and a walkway system (GAITRite®, CIR Systems Inc., Franklin, NJ, USA), simultaneously. The IMU sensor includes 3-axis accelerometers, 3-axis gyroscopes, and a Bluetooth 4.0 module. Each IMU measured 43 mm × 41.86 mm × 18.65 mm and weighed 12 g, including the power source. Data were collected at a sampling frequency of 50 Hz and transmitted up to 10 m. The IMU sensor was attached to both lateral thighs and shanks parallel to the sagittal plane (Figure 2). The data collected from the four IMU sensors were processed internally to include Euler rotation angles and exported in .csv file format.
The walkway system featured a matrix of pressure-activated sensors for detecting timing and relative distances between activations. With dimensions of 5 m in length and an active measurement range of 3 m, the walkway offered a spatial resolution of 1.27 cm (determined by the length/width of sensors) and operated at a temporal resolution of 120 Hz. The data collected from the walkway system were processed internally to include gait parameters and exported in .csv file format.
All participants walked a straight 5 m path under three conditions: without wearing any joint braces, with a knee joint brace, and with an ankle joint brace. These conditions were designed to simulate three types of gaits: normal walking, walking with knee joint impairment, and walking with ankle joint impairment. They completed 10 trials at self-selected speeds under each condition.

2.3. Data Preprocessing

2.3.1. Gait Event Detection

The detection of gait events, such as heel-strikes (HS) and toe-offs (TO), was performed to extract gait parameters by gait cycle. HS and TO events were detected on the sagittal plane angular velocity of the shank IMU using the ‘find_peaks’ function from the SciPy library with prominence of 20 degrees per second and distance of 20 samples. The automated event detection results were verified through a final inspection process to ensure accuracy and minimize errors. The period between HS and the next TO was defined as the stance phase, while the period between TO and the next HS was defined as the swing phase. Each period from one HS to the next constituted a complete gait cycle. Gait cycles from both legs were paired based on overlapping time frames (Figure 3).

2.3.2. Gait Parameter Extraction

Gait parameters encompassed angular, spatio-temporal, and symmetry parameters. The angular parameters, such as shank angle (deg), thigh angle (deg), and the range of knee joint angle (deg) in the sagittal plane, were calculated as the difference between maximum and minimum values. The spatio-temporal parameters, such as cycle time (s), cadence (steps/min), swing time (s), stance time (s), swing phase, and stance phase, were derived from the intervals between gait events. Cycle time is the duration between the first and the second HS. Cadence is calculated as the number of steps per minute derived from cycle time. Stance time is the duration between the first HS and TO, and swing time is the duration between the second HS and TO. Swing phase is the ratio of swing time to cycle time, and stance phase is the ratio of stance time to cycle time.
The symmetry parameters, such as the temporal symmetry ratio (TSR), the spatial symmetry ratio 1 (SSR 1), and the spatial symmetry ratio 2 (SSR 2), were calculated as the ratio of corresponding gait parameters between both legs. TSR compares the ratio of swing time to stance time between the right and left legs (Equation (1)). SSR 1 compares the ratio of the shank angle to the thigh angle between the right and left legs (Equation (2)), and SSR 2 compares the ratio of the knee joint angle between the right and left legs (Equation (3)). Excluding the symmetry parameters, the left and right parameters were calculated separately, resulting in a total of 21 parameters being extracted (Table 2).
T S R = S w i n g   t i m e   R / S t a n c e   t i m e R S w i n g   t i m e L / S t a n c e   t i m e L
S S R   1 = S h a n k   a n g l e R / T h i g h   a n g l e R S h a n k   a n g l e L / T h i g h   a n g l e L
S S R   2 = K n e e   j o i n t   a n g l e R K n e e   j o i n t   a n g l e L
The walkway system provides a comprehensive set of spatio-temporal gait parameters, including step length (cm), stride length (cm), base of support (cm), step time (s), stride time (s), swing time (s), stance time (s), single support time (s), double support time (s), stride velocity (cm/s), swing phase, and stance phase. In this study, these parameters were used as calculated and provided by the system. TSR were calculated according to Equation (1). Excluding the symmetry parameters, the left and right parameters were calculated separately, resulting in a total of 25 parameters being extracted (Table 2).

2.4. Feature Selection and Classification

2.4.1. Feature Selection

Feature selection plays a crucial role in classification tasks by eliminating irrelevant information from models, thereby enhancing efficiency and accuracy. In this study, we systematically evaluated feature importance and identified the optimal subsets using Recursive Feature Elimination with Cross-Validation (RFECV). We divided the gait data into five subject-based subsets using group five-fold cross-validation, designating one subset as the test set and utilizing the remaining four for training. The models were trained sequentially, iteratively eliminating the least significant features. In this study, three different methods, support vector machine (SVM), random forest (RF), and extreme gradient boosting (XGB), were used, and the optimal feature set was selected based on the average accuracy across all folds (Figure 4).

2.4.2. Classification

The primary objective of this study is to evaluate whether IMU-based systems can effectively detect and classify abnormal gait caused by knee and ankle joint impairments. To achieve this, different types of gait, such as normal, knee joint brace, and ankle joint brace gaits, were classified using three types of classifiers. SVM handles both linear and nonlinear tasks, identifying the optimal hyperplane that effectively separates data points. The SVM configuration used a ‘linear’ kernel, with gamma set to ‘scale’ and the decision function shape set to ‘ovr’. RF combines decision trees to provide accurate predictions and utilizes parallel processing for faster computation. The RF configuration used the ‘gini’ criterion with a minimum sample split of 2. XGB constructs decision trees sequentially to correct errors, ensuring efficient processing even with large datasets. For XGB, the booster was set to ‘gbtree’, eta to 0.3, maximum depth to 6, and sampling method to ‘uniform’; the objective to minimize regression error. All analyses were performed using Python version 3.10.9.
To develop the models, we trained and evaluated them using the optimal features selected through RFECV. The gait data were divided into five subject-based subsets using group five-fold cross-validation. Each subset was alternately designated as the test set while the remaining four subsets were used for training. After performing hyperparameter tuning to optimize the model parameters for better performance, we used the optimized model to make predictions on the test set and evaluated its performance using metrics such as accuracy, precision, recall, and F1 score (Figure 4). These metrics were computed using Equation (4) through (7), where TP, TN, FP, and FN represent True Positive, True Negative, False Positive, and False Negative, respectively.
A c c u r a c y = T P + T N T P + F P + T N + F N
P r e c i s i o n = T P T P + F P
R e c a l l   ( S e n s i t i v i t y ) = T P T P + F N
F 1   s c o r e = 2 × P r e c i s i o n × R e c a l l P r e c i s i o n + R e c a l l

2.4.3. Post-Analysis

In the post-analysis stage, we examined the differences in selected features across three different gait types using the Friedman test. Subsequently, pair-wise comparisons were conducted using the paired Wilcoxon signed-rank test to investigate differences in selected features between pairs of gait types. The significance levels were set to 0.05* and 0.01**. Bonferroni correction was applied to control the family-wise error rate, and the significance levels were divided by the number of comparisons to adjust for multiple comparisons.

3. Results

This section presents performance metrics for classification models based on optimal features. Table 3 shows the results of learning and evaluation with selected features based on the RFECV method.
In the IMU-based system, the optimal number of selected features ranged from 1 to 18 out of a total of 21 parameters, depending on the specific machine learning model employed. For the normal and abnormal classification, the RF classifier achieved 99% in all performance metrics using 12 optimal features. For the normal and knee joint impairment classification, the SVM and RF classifier achieved 100% in all performance metrics using one optimal feature. In the case of the normal and ankle joint impairment classification, the RF classifier achieved 98% precision and 97% in all other performance metrics using two optimal features. For the knee joint impairment and ankle joint impairment classification, the RF classifier and XGB classifier achieved 98% in all performance metrics using 18 and 3 optimal features, respectively. For the normal, knee joint impairment, and ankle joint impairment classification, the RF classifier achieved 91% in all performance metrics using 11 optimal features. The three-class classification used more optimal features than the two-class classification models yet achieved lower accuracy.
In the walkway system, the optimal selection of features ranged from 1 to 21 out of a total of 25 parameters, depending on the specific machine learning model employed.
For the normal and abnormal classification, the SVM classifier achieved 90% accuracy and recall, 92% precision, and 91% F1 score using one optimal feature. For the normal and knee joint impairment classification, the RF classifier achieved 93% F1 score and 94% in all other performance metrics using three optimal features. In the case of the normal and ankle joint impairment classification, the SVM classifier achieved 91% in all performance metrics using 12 optimal features. For the knee joint impairment and ankle joint impairment classification, the SVM classifier achieved 76% in all performance metrics using nine optimal features. For the normal, knee joint impairment, and ankle joint impairment classification, the XGB classifier achieved 77% in all performance metrics using 21 optimal features.
Table 4 shows the common optimal features of all classifiers in gait classification. Key features of the IMU-based system include TSR, the knee sagittal angle of the right leg, and shank sagittal angle of the right leg. Meanwhile, key features of the walkway system include TSR, swing time of the right leg, stance time of both legs, swing phase of both legs, and double support time of both legs.
Figure 5 shows the confusion matrix for classification of the normal, knee joint impairment, and ankle joint impairment. In the IMU-based system, the RF classifier achieved the highest recall for the normal at 100%, whereas the SVM classifier achieved the lowest at 88%. For the knee joint impairment, the SVM classifier achieved the highest recall at 98%, while the XGB classifier achieved the lowest at 79%. In the ankle joint impairment, the RF classifier achieved the highest recall at 92%, whereas the SVM classifier achieved the lowest at 84%.
In the walkway system, the recall performance for the normal was notably high, ranging from 84% to 90% across all classifiers. However, the highest recall performance for the knee joint impairment, achieved using the RF and XGB classifiers, was 65%, which was significantly lower compared to the normal. The misclassification rates into the ankle joint impairment for knee joint impairment were 24% for the RF classifier and 27% for the XGB classifier, in contrast to misclassification rates into the normal of less than 5%.
Furthermore, the highest recall performance for the ankle joint impairment, achieved with the XGB classifier at 77%, was also notably lower compared to the normal. The misclassification rate into the knee joint impairment for the ankle joint impairment was 18%, higher than the 8% misclassification rate into the normal.
It appears that the parameters provided by the walkway system do not effectively capture the distinguishing features between knee joint impairment walking and ankle joint impairment walking, resulting in a higher misclassification rate. This insight helps to explain why the highest performance in the three-class classification reached only 77%.
Table 5 presents the performance metrics from the 5-fold cross-validation of the highest-performing classifiers in the IMU-based system and the walkway system, respectively. The RF classifier in the IMU-based system exhibited high performance in Fold 2 and lower performance in Fold 3, and it maintained excellent performance overall. In contrast, within the walkway system, the XGB classifier performed well in Fold 1 but showed lower performance in Fold 3, demonstrating relatively lower performance compared to the IMU-based system. These 5-fold cross-validation results, which were used to evaluate model performance and minimize the risk of overfitting, indicate that the IMU-based system with the RF classifier not only outperforms but also exhibits lower performance variability compared to the walkway system with the XGB classifier.
We further analyzed the optimal features selected for walking parameters to identify characteristic differences among three different types of gait. Table 6 presents the mean and standard deviation of each parameter for each condition, along with the results of the Friedman test to determine differences in each parameter under different gait conditions. The results showed no significant differences among groups for the thigh sagittal angle, swing time of the left leg, and single support time of the right leg, with p-values being above 0.05. However, all other parameters exhibited significant differences.
To identify which groups had significant differences among the parameters with detected differences, we performed a post hoc analysis using the paired Wilcoxon signed-rank test to compare the two conditions within the same subjects (Figure 6).
The analysis revealed several noteworthy observations. In the IMU-based system, knee joint impairment exhibited significant differences between legs for the shank sagittal angle, thigh sagittal angle, knee sagittal angle, swing time, stance time, swing phase, and stance phase within each condition. Specifically, the parameters of the unrestricted leg, such as the shank sagittal angle and knee sagittal angle, showed a slight decrease, while those of the restricted leg significantly decreased. Our findings are consistent with previous studies indicating that wearing a knee brace reduces maximum internal knee rotation and increases external rotation [18]. Moreover, swing phase tended to decrease in the unrestricted leg and increase in the restricted leg. With ankle joint impairment, although the differences were less pronounced compared to knee joint impairment, significant differences were observed between legs in the shank sagittal angle, knee sagittal angle, swing time, stance time, swing phase, and stance phase within each condition. Similar to knee joint impairment, the shank sagittal angle and knee sagittal angle significantly decreased in both legs compared to the normal condition. Also, the swing phase tended to decrease in the unrestricted leg and increase in the restricted leg. SSR 1 and TSR indicated increased asymmetry in abnormal walking. SSR 1 and SSR 2 showed greater asymmetry in knee joint impairment compared to ankle impairment, while TSR did not show any differences between knee and ankle joint impairment (Figure 6a).
In the walkway system, several differences were observed between normal and abnormal walking. In abnormal walking, both legs showed decreases in step length, stride length, and stride velocity, and increases in base of support and stride time. Single support time increased on the unrestricted side, while swing time increased on the restricted side. In knee joint impairment, the swing phase decreased on the unrestricted side and increased on the restricted side. Double support time significantly increased only during ankle joint impairment walking. The TSR showed increased asymmetry in abnormal walking, but no significant differences were found between knee and ankle joint impairments (Figure 6b).

4. Discussion

In this study, we developed and optimized an abnormal gait classification algorithm that considers joint impairment using IMU-based and walkway systems. The results demonstrated that the IMU-based system outperformed the walkway system in all classification tasks. Particularly noteworthy was the significant difference observed in the two-class classification tasks between knee joint impairment and ankle joint impairment (accuracy: IMU-based system 91% vs. walkway system 76%). This performance exceeds the accuracy reported in previous studies using IMU-based gait assessment for two-class patient classification (accuracy ranging from 76.3% to 89.3%) [19,20]. These findings indicate that our IMU-based system could be effective for classifying gait patterns with joint impairments.
For decades, various studies have been conducted to distinguish between pathological and normal gait, and more recently, machine learning-based gait pattern classification research has been reported for this purpose [21,22,23,24,25]. Alaqtash et al. used GRF (ground reaction force) signals to classify patients with cerebral palsy, multiple sclerosis, and healthy individuals, achieving an accuracy of 85% with a KNN (k-nearest neighbors) model [21]. Pogorelc et al. applied a motion capture system to extract 13 features from joint angles and spatio-temporal parameters, classifying individuals as normal, with hemiplegia, with Parkinson’s disease, with back pain, and with leg pain. They reported accuracy rates of 97.9%, 90.1%, 100%, 97.2%, and 100% using SVM, decision trees (DTs), k-nearest neighbors (KNN), naive Bayes (NB), and artificial neural networks (ANNs), respectively [23]. However, these studies have significant spatial limitations compared to wearable sensors like IMUs or footswitches, making them less practical. Conversely, Daliri used temporal gait parameters obtained from footswitches and an SVM to classify Parkinson’s disease, Huntington’s disease, multiple sclerosis, and healthy individuals, achieving accuracies of 89.3%, 90.3%, and 96.8%. However, this study did not perform intra-disease classification [25]. Consequently, our study demonstrates that IMU-based systems can be highly effective in classifying gait patterns with joint impairments across various contexts, potentially offering more practical and accurate assessments compared to traditional methods.
The superior classification performance of the IMU system compared to the walkway system can also be inferred from the optimal number of features presented in Table 3. In the IMU-based system, fewer features were used to achieve higher accuracy compared to the walkway system, excluding the cases of two-class classification for normal-ankle using XGB and three-class using RF classifiers. Particularly noteworthy is that distinguishing between normal and knee joint impairment was possible with just one feature: the knee sagittal angle. This ability stems from the fixed nature of the knee joint, making it a distinct and effective feature for classification.
Moreover, our study highlighted the importance of specific features in improving classification performance. Key features of the IMU-based system included the knee sagittal angle of the right leg, shank sagittal angle of the right leg, and TSR, providing the highly discriminative results. Angular parameters were particularly effective in distinguishing between knee and ankle joint impairments, as they capture subtle variations in joint movement that are not as easily detected with spatio-temporal parameters alone.
On the other hand, the walkway system relied more on spatio-temporal parameters such as stance time, swing phase, and double support time in both legs, swing time in the right leg, and TSR. While these features are useful for general gait analysis, they proved less effective in distinguishing specific joint impairments, as evidenced by lower classification accuracy in tasks such as knee joint impairment walking versus ankle joint impairment walking and in the three-class classification of gait types. These classification results are related to the previous study of Begg et al., which reported that basic spatial-temporal and kinetic gait features are not enough to classify the gait of young subjects and the elderly [24]. In a previous study, an SVM model using only kinematic data achieved a high classification accuracy of 91.7%, emphasizing the importance of kinematic features in gait classification. These results suggest that more specific features, such as kinematic data, are critical for classifying joint impairments rather than relying solely on spatio-temporal parameters.
Our statistical analysis further supported these findings. The detailed examination of walking parameters revealed significant differences in several key metrics under different joint impairment conditions. Particularly noteworthy was the heightened asymmetry observed in angular parameters during constrained walking, particularly evident in IMU-based systems. This underscores the sensitivity of angular measurements in identifying gait abnormalities.
However, this study has several limitations. The first limitation is the small sample size of participants because this study was performed as exploratory research focused on the evaluation of the validity and possibility of the proposed methodology at an early stage. Despite the small sample size, this study provides preliminary insights into the effectiveness of the IMU-based method for detecting gait abnormalities. Second, only male subjects participated in this experiment, making it difficult to generalize the study results to all genders. Moreover, this study focused solely on healthy participants, which did not fully capture the complexities of gait abnormalities experienced by actual patients. Additionally, this study was conducted in a controlled laboratory environment, limiting the applicability of the results to real-world settings. Therefore, in future research, we plan to recruit a larger number of participants from an expanded pool that considers factors such as gender, age, and medical conditions to enhance the reliability and generalizability of the results. Furthermore, the experimental protocol will be designed to consider real-world walking surfaces, speeds, and individual gait characteristics. Comprehensive data will be collected from patients with various types and severities of abnormal gait. Finally, by monitoring changes in gait patterns over time-related to rehabilitation and disease progression, we aim to develop abnormal gait classification algorithms optimized for diverse environmental conditions and patient types.

5. Conclusions

This study utilized various classification models to differentiate walking characteristics under different walking conditions, focusing on knee and ankle joint impairments. By employing the IMU-based system and walkway, we evaluated the performance of these models in analyzing walking data collected from the same subjects. Statistical analyses were conducted to scrutinize kinematic data, and experiments were designed to induce changes in walking conditions among the participants.
The results indicate that the IMU-based system outperformed the walkway in all classification tasks, particularly demonstrating significant disparities in two-class classification tasks between knee and ankle joint impairments. Features such as the knee sagittal angle, shank sagittal angle, swing/stance time, swing phase, double support time, and TSR were identified as important in distinguishing between ankle and knee impairments, highlighting the superiority of an IMU-based system in capturing relevant walking characteristics.
This study provides valuable insights into how various impairments impact walking behavior, offering implications for diagnosing and managing a range of conditions, from orthopedic ailments to neurological disorders. By discerning subtle changes in walking patterns, early indicators of skeletal or neurological issues can potentially be identified, leading to tailored interventions and improved patient outcomes.
In conclusion, our study demonstrates the superior performance of the IMU-based system in classifying abnormal gait patterns with joint impairments. The precise measurement of angular parameters enables more accurate detection of specific joint impairments, surpassing the capabilities of spatio-temporal parameters alone. Future research could investigate the potential for real-time gait assessment and intervention using IMU sensors and advanced machine learning techniques.

Author Contributions

Conceptualization, S.H. (Soree Hwang) and S.H. (Sungmin Han); methodology, S.H. (Soree Hwang); software, S.H. (Soree Hwang); validation, S.H. (Soree Hwang); formal analysis, S.H. (Soree Hwang); investigation, S.H. (Sungmin Han) and J.K.; resources, K.-H.C.; data curation, S.H. (Soree Hwang); writing—original draft preparation, S.H. (Soree Hwang); writing—review and editing, S.H. (Sungmin Han), J.-K.S., H.-J.M., I.Y. and J.K.; visualization, S.H. (Soree Hwang) and S.Y.; supervision, I.Y. and S.H. (Sungmin Han); project administration, S.H. (Sungmin Han); funding acquisition, S.H. (Sungmin Han) All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by the Korea Innovation Foundation (INNOPOLIS) grant funded by the Korean government (Ministry of Science and ICT) (2024-TB-RD-0001-01-101), the Smart HealthCare Program (www.kipot.or.kr) (240222M0303, Development and commercialization of police officer’s life-log acquisition and stress/health management system through artificial intelligence based on big data analysis) funded by the Korean National Police Agency (KNPA, Korea), and KIST Intramural Grants (2E33141).

Institutional Review Board Statement

This study was conducted in accordance with the Declaration of Helsinki and approved by the Institutional Review Board of Korea Institute of Science and Technology (IRB No. 2022-002, March 2022).

Informed Consent Statement

Informed consent was obtained from all subjects involved in this study.

Data Availability Statement

The data used in this study are available on request from the corresponding author. The data are not publicly available because of participant confidentiality.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Lim, M.R.; Huang, R.C.; Wu, A.; Girardi, F.P.; Cammisa, F.P. Evaluation of the elderly patient with an abnormal gait. JAAOS-J. Am. Acad. Orthop. Surg. 2007, 15, 107–117. [Google Scholar] [CrossRef]
  2. Balaban, B.; Tok, F. Gait disturbances in patients with stroke. PM&R 2014, 6, 635–642. [Google Scholar]
  3. Morris, M.E.; Huxham, F.; McGinley, J.; Dodd, K.; Iansek, R. The biomechanics and motor control of gait in Parkinson disease. Clin. Biomech. 2001, 16, 459–470. [Google Scholar] [CrossRef]
  4. Morgan, P.; McGinley, J. Gait function and decline in adults with cerebral palsy: A systematic review. Disabil. Rehabil. 2014, 36, 1–9. [Google Scholar] [CrossRef]
  5. Jahn, K.; Zwergal, A.; Schniepp, R. Gait disturbances in old age: Classification, diagnosis, and treatment from a neurological perspective. Dtsch. Ärzteblatt Int. 2010, 107, 306. [Google Scholar]
  6. Shichman, I.; Roof, M.; Askew, N.; Nherera, L.; Rozell, J.C.; Seyler, T.M.; Schwarzkopf, R. Projections and epidemiology of primary hip and knee arthroplasty in medicare patients to 2040–2060. JBJS Open Access 2023, 8, e22. [Google Scholar] [CrossRef]
  7. Cicirelli, G.; Impedovo, D.; Dentamaro, V.; Marani, R.; Pirlo, G.; D’Orazio, T.R. Human gait analysis in neurodegenerative diseases: A review. IEEE J. Biomed. Health Inform. 2021, 26, 229–242. [Google Scholar] [CrossRef] [PubMed]
  8. Menolotto, M.; Komaris, D.S.; Tedesco, S.; O’Flynn, B.; Walsh, M. Motion capture technology in industrial applications: A systematic review. Sensors 2020, 20, 5687. [Google Scholar] [CrossRef] [PubMed]
  9. Parati, M.; Ambrosini, E.; De Maria, B.; Gallotta, M.; Dalla Vecchia, L.A.; Ferriero, G.; Ferrante, S. The reliability of gait parameters captured via instrumented walkways: A systematic review and meta-analysis. Eur. J. Phys. Rehabil. Med. 2022, 58, 363. [Google Scholar] [CrossRef]
  10. Webster, K.E.; Wittwer, J.E.; Feller, J.A. Validity of the GAITRite® walkway system for the measurement of averaged and individual step parameters of gait. Gait Posture 2005, 22, 317–321. [Google Scholar] [CrossRef]
  11. Stokic, D.S.; Horn, T.S.; Ramshur, J.M.; Chow, J.W. Agreement between temporospatial gait parameters of an electronic walkway and a motion capture system in healthy and chronic stroke populations. Am. J. Phys. Med. Rehabil. 2009, 88, 437–444. [Google Scholar] [CrossRef] [PubMed]
  12. Ross, S.A.; Rice, C.; Von Behren, K.; Meyer, A.; Alexander, R.; Murfin, S. Reliability of sagittal plane hip, knee, and ankle joint angles from a single frame of video data using the GAITRite camera system. Physiother. Theory Pract. 2015, 31, 53–60. [Google Scholar] [CrossRef]
  13. Hutabarat, Y.; Owaki, D.; Hayashibe, M. Recent advances in quantitative gait analysis using wearable sensors: A review. IEEE Sens. J. 2021, 21, 26470–26487. [Google Scholar] [CrossRef]
  14. Prasanth, H.; Caban, M.; Keller, U.; Courtine, G.; Ijspeert, A.; Vallery, H.; Von Zitzewitz, J. Wearable sensor-based real-time gait detection: A systematic review. Sensors 2021, 21, 2727. [Google Scholar] [CrossRef]
  15. Wang, L.; Sun, Y.; Li, Q.; Liu, T.; Yi, J. IMU-based gait normalcy index calculation for clinical evaluation of impaired gait. IEEE J. Biomed. Health Inform. 2020, 25, 3–12. [Google Scholar] [CrossRef]
  16. Wang, F.C.; Chen, S.F.; Lin, C.H.; Shih, C.J.; Lin, A.C.; Yuan, W.; Kuo, T.Y. Detection and classification of stroke gaits by deep neural networks employing inertial measurement units. Sensors 2021, 21, 1864. [Google Scholar] [CrossRef] [PubMed]
  17. Sung, J.; Han, S.; Park, H.; Cho, H.M.; Hwang, S.; Park, J.W.; Youn, I. Prediction of lower extremity multi-joint angles during overground walking by using a single IMU with a low frequency based on an LSTM recurrent neural network. Sensors 2021, 22, 53. [Google Scholar] [CrossRef] [PubMed]
  18. Caramia, C.; Torricelli, D.; Schmid, M.; Munoz-Gonzalez, A.; Gonzalez-Vargas, J.; Grandas, F.; Pons, J.L. IMU-Based Classification of Parkinson’s Disease from Gait: A Sensitivity Analysis on Sensor Location and Feature Selection. IEEE J. Biomed. Health Inform. 2018, 22, 1765–1774. [Google Scholar] [CrossRef]
  19. Hsu, W.C.; Sugiarto, T.; Lin, Y.J.; Yang, F.C.; Lin, Z.Y.; Sun, C.T.; Hsu, C.L.; Chou, K.N. Multiple-Wearable-Sensor-Based Gait Classification and Analysis in Patients with Neurological Disorders. Sensors 2018, 18, 3397. [Google Scholar] [CrossRef]
  20. Siebers, H.L.; Eschweiler, J.; Pinz, J.; Tingart, M.; Rath, B. The effect of a knee brace in dynamic motion—An instrumented gait analysis. PLoS ONE 2020, 15, e0238722. [Google Scholar] [CrossRef]
  21. Figueiredo, J.; Santos, C.P.; Moreno, J.C. Automatic recognition of gait patterns in human motor disorders using machine learning: A review. Med. Eng. Phys. 2018, 53, 1–12. [Google Scholar] [CrossRef] [PubMed]
  22. Alaqtash, M.; Sarkodie-Gyan, T.; Yu, H.; Fuentes, O.; Brower, R.; Abdelgawad, A. Automatic classification of pathological gait patterns using ground reaction forces and machine learning algorithms. In Proceedings of the 2011 Annual International Conference of the IEEE Engineering in Medicine and Biology Society, Boston, MA, USA, 30 August–3 September 2011; pp. 453–457. [Google Scholar]
  23. Pogorelc, B.; Bosnić, Z.; Gams, M. Automatic recognition of gait-related health problems in the elderly using machine learning. Multimed. Tools Appl. 2012, 58, 333–354. [Google Scholar] [CrossRef]
  24. Begg, R.K.; Palaniswami, M.; Owen, B. Support vector machines for automated gait classification. IEEE Trans. Biomed. Eng. 2005, 52, 828–838. [Google Scholar] [CrossRef] [PubMed]
  25. Daliri, M.R. Automatic diagnosis of neuro-degenerative diseases using gait dynamics. Measurement 2012, 45, 1729–1734. [Google Scholar] [CrossRef]
Figure 1. An example of an IMU-based healthcare platform.
Figure 1. An example of an IMU-based healthcare platform.
Sensors 24 05571 g001
Figure 2. Experimental setup for collecting gait data from joint impairment walking. (a) IMU-based system with wearable braces: knee brace (left) and ankle brace (right) equipped with IMUs. (b) Five-meter walkway system for gait analysis.
Figure 2. Experimental setup for collecting gait data from joint impairment walking. (a) IMU-based system with wearable braces: knee brace (left) and ankle brace (right) equipped with IMUs. (b) Five-meter walkway system for gait analysis.
Sensors 24 05571 g002
Figure 3. Gait events detected from shank angular rate during walking: the red dots represent HS points, and the blue triangles indicate TO points. Left and right steps are paired together. (a) The signals from IMUs attached to the left leg; (b) the signals from IMUs attached to the right leg.
Figure 3. Gait events detected from shank angular rate during walking: the red dots represent HS points, and the blue triangles indicate TO points. Left and right steps are paired together. (a) The signals from IMUs attached to the left leg; (b) the signals from IMUs attached to the right leg.
Sensors 24 05571 g003
Figure 4. ML modeling framework for abnormal gait classification.
Figure 4. ML modeling framework for abnormal gait classification.
Sensors 24 05571 g004
Figure 5. Confusion matrix in validation dataset of normal vs. knee joint impairment vs. ankle joint impairment: (ac) Classification results of IMU-based system, (df) Classification results of walkway system. (a,d) SVM, (b,e) RF, (c,f) XGB models. Darker shades indicate a greater number of correctly classified instances for each category.
Figure 5. Confusion matrix in validation dataset of normal vs. knee joint impairment vs. ankle joint impairment: (ac) Classification results of IMU-based system, (df) Classification results of walkway system. (a,d) SVM, (b,e) RF, (c,f) XGB models. Darker shades indicate a greater number of correctly classified instances for each category.
Sensors 24 05571 g005
Figure 6. Box plot and Wilcoxon signed-rank test results of gait parameters measured by (a) the IMU-based system and (b) the walkway system in normal walking, walking with knee joint impairment, and walking with ankle joint impairment. Significance levels are set at * p < 0.05 (indicated by *), ** p < 0.01 (indicated by **), and ns (not significant).
Figure 6. Box plot and Wilcoxon signed-rank test results of gait parameters measured by (a) the IMU-based system and (b) the walkway system in normal walking, walking with knee joint impairment, and walking with ankle joint impairment. Significance levels are set at * p < 0.05 (indicated by *), ** p < 0.01 (indicated by **), and ns (not significant).
Sensors 24 05571 g006
Table 1. Participant characteristics.
Table 1. Participant characteristics.
ParticipantAge (Years)Height (cm)Weight (kg)
13017693
25916872
33318882
44317765
53517873
65316565
74617665
82717495
928181100
104017380
Table 2. Extracted gait parameters.
Table 2. Extracted gait parameters.
SystemCategoriesParameters
IMU-basedAngularshank sagittal angle (deg), thigh sagittal angle (deg),
knee sagittal angle (deg)
Spatio-temporalcycle time (s), swing time (s), stance time (s),
swing phase, stance phase, cadence (steps/min)
SymmetrySSR 1, SSR 2, TSR
WalkwaySpatio-temporalstep length (cm), stride length (cm), base of support (cm),
step time (s), stride time (s), swing time (s), stance time (s),
single support time (s), double support time (s),
stride velocity (cm/s), swing phase, stance phase
SymmetryTSR
Table 3. The average results of the cross-validation for each model.
Table 3. The average results of the cross-validation for each model.
SystemTypesClassifierOptimal Number of FeaturesAccuracyPrecisionRecallF1 Score
IMU-basednormal
-abnormal
SVM10.880.900.880.88
RF120.990.990.990.99
XGB50.960.970.960.96
normal
-knee
SVM11.001.001.001.00
RF11.001.001.001.00
XGB10.991.000.990.99
normal
-ankle
SVM10.870.900.870.87
RF20.970.980.970.97
XGB70.930.940.930.93
knee
-ankle
SVM50.970.970.970.97
RF180.980.980.980.98
XGB30.980.980.980.98
normal
-knee
-ankle
SVM60.900.900.900.90
RF110.910.910.910.91
XGB50.890.900.890.89
Walkwaynormal
-abnormal
SVM10.900.920.900.91
RF150.900.900.900.90
XGB120.900.900.900.90
normal
-knee
SVM10.920.930.920.92
RF30.940.940.940.93
XGB20.930.930.930.93
normal
-ankle
SVM120.910.910.910.91
RF40.910.910.910.90
XGB40.900.900.900.90
knee
-ankle
SVM90.760.760.760.76
RF190.750.750.750.74
XGB100.750.750.750.75
normal
-knee
-ankle
SVM90.730.730.730.73
RF100.750.750.750.75
XGB210.770.770.770.77
Table 4. Optimal features across models.
Table 4. Optimal features across models.
TypesIMU-Based System FeaturesWalkway System Features
normal-abnormalTSRTSR
normal-kneeKnee sagittal angle (R)TSR
normal-ankle Swing time (R)
knee-ankleShank sagittal angle (R)Stance time (L), stance time (R), swing phase (L),
swing phase (R), double support time (L),
double support time (R)
normal-knee-ankleKnee sagittal angle (R)TSR, swing phase (R),
double support time (R)
Table 5. Five-fold cross-validation performance metrics on the highest-performing classifiers.
Table 5. Five-fold cross-validation performance metrics on the highest-performing classifiers.
SystemClassifierFoldAccuracyPrecisionRecallF1 Score
IMU-basedRF10.930.940.930.94
20.970.970.970.97
30.830.880.830.86
40.950.960.950.95
50.850.900.850.87
WalkwayXGB10.850.880.850.86
20.800.800.800.80
30.680.810.680.74
40.750.810.750.78
50.750.750.750.75
Table 6. Descriptive statistics and Friedman test results for gait in the knee and ankle joint impairment classification.
Table 6. Descriptive statistics and Friedman test results for gait in the knee and ankle joint impairment classification.
SystemFeatureSideNormalKneeAnkleFriedman
Statisticp-Value
IMU-basedShank sagittal angle (deg)L68.51 ± 5.0663.98 ± 5.3659.51 ± 5.5816.80.0002
R66.99 ± 5.047.66 ± 5.3351.14 ± 12.312.60.0018
Thigh sagittal angle (deg)L35.27 ± 4.3134.24 ± 3.2534.3 ± 3.90.20.9048
R36.26 ± 4.7238.96 ± 4.2237.18 ± 5.72.40.3012
Knee sagittal angle (deg)L57.57 ± 5.8753.74 ± 5.9549.77 ± 6.616.80.0002
R55.63 ± 6.9712.81 ± 4.8836.68 ± 14.5818.20.0001
Cycle time (s)L1.12 ± 0.041.25 ± 0.121.33 ± 0.1211.40.0033
R1.12 ± 0.051.25 ± 0.121.33 ± 0.1312.80.0017
Cadence (steps/min)L53.83 ± 2.1348.53 ± 4.6145.4 ± 4.3311.40.0033
R53.71 ± 2.3548.57 ± 4.6745.41 ± 4.4512.80.0017
Swing time (s)L0.49 ± 0.030.49 ± 0.030.48 ± 0.040.60.7408
R0.49 ± 0.020.61 ± 0.070.59 ± 0.0615.20.0005
Stance time (s)L0.63 ± 0.030.76 ± 0.110.86 ± 0.114.60.0007
R0.63 ± 0.040.64 ± 0.060.74 ± 0.0815.00.0006
Swing phaseL0.44 ± 0.020.4 ± 0.030.36 ± 0.0316.80.0002
R0.44 ± 0.010.49 ± 0.030.44 ± 0.0315.80.0004
Stance phaseL0.56 ± 0.020.6 ± 0.030.64 ± 0.0316.80.0002
R0.56 ± 0.010.51 ± 0.030.56 ± 0.0315.80.0004
SSR 1 0.96 ± 0.10.66 ± 0.070.79 ± 0.1414.60.0007
SSR 2 0.98 ± 0.150.24 ± 0.080.75 ± 0.3418.20.0001
TSR 1.0 ± 0.081.49 ± 0.291.45 ± 0.2815.20.0005
WalkwayStep length (cm)L63.89 ± 4.2656.56 ± 5.1649.28 ± 8.4918.20.0001
R63.67 ± 4.5557.63 ± 4.7255.48 ± 5.659.80.0074
Stride length (cm)L128.04 ± 8.89114.89 ± 8.48105.4 ± 12.3716.80.0002
R128.05 ± 8.72114.3 ± 8.54104.7 ± 12.2716.80.0002
Base of support (cm)L11.59 ± 3.1417.59 ± 4.2818.83 ± 3.3215.20.0005
R11.63 ± 3.1117.44 ± 4.4318.68 ± 3.2315.20.0005
Step time (s)L0.57 ± 0.030.59 ± 0.040.63 ± 0.079.80.0074
R0.57 ± 0.030.67 ± 0.080.72 ± 0.0816.80.0002
Stride time (s)L1.13 ± 0.051.25 ± 0.121.35 ± 0.1312.80.0017
R1.13 ± 0.051.26 ± 0.121.35 ± 0.1312.80.0017
Stride velocity (cm/s)L113.75 ± 9.9892.89 ± 14.2779.11 ± 13.0716.80.0002
R113.95 ± 10.0192.09 ± 14.478.56 ± 13.1216.80.0002
Double support time (s)L0.26 ± 0.020.29 ± 0.050.38 ± 0.0616.80.0002
R0.26 ± 0.030.29 ± 0.050.38 ± 0.0616.80.0002
Single support time (s)L0.43 ± 0.020.54 ± 0.070.54 ± 0.0615.20.0005
R0.43 ± 0.020.43 ± 0.030.43 ± 0.050.60.7408
Swing time (s)L0.43 ± 0.020.43 ± 0.030.43 ± 0.050.60.7408
R0.43 ± 0.020.54 ± 0.070.54 ± 0.0615.20.0005
Stance time (s)L0.7 ± 0.040.82 ± 0.110.92 ± 0.112.80.0017
R0.7 ± 0.040.72 ± 0.060.8 ± 0.0913.40.0012
Swing phaseL0.38 ± 0.010.35 ± 0.030.32 ± 0.0316.80.0002
R0.38 ± 0.010.42 ± 0.020.4 ± 0.0311.40.0033
Stance phaseL0.62 ± 0.010.65 ± 0.030.68 ± 0.0316.80.0002
R0.62 ± 0.010.58 ± 0.020.6 ± 0.0311.40.0033
TSR 1.0 ± 0.061.41 ± 0.231.5 ± 0.3315.80.0004
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Hwang, S.; Kim, J.; Yang, S.; Moon, H.-J.; Cho, K.-H.; Youn, I.; Sung, J.-K.; Han, S. Machine Learning Based Abnormal Gait Classification with IMU Considering Joint Impairment. Sensors 2024, 24, 5571. https://doi.org/10.3390/s24175571

AMA Style

Hwang S, Kim J, Yang S, Moon H-J, Cho K-H, Youn I, Sung J-K, Han S. Machine Learning Based Abnormal Gait Classification with IMU Considering Joint Impairment. Sensors. 2024; 24(17):5571. https://doi.org/10.3390/s24175571

Chicago/Turabian Style

Hwang, Soree, Jongman Kim, Sumin Yang, Hyuk-June Moon, Kyung-Hee Cho, Inchan Youn, Joon-Kyung Sung, and Sungmin Han. 2024. "Machine Learning Based Abnormal Gait Classification with IMU Considering Joint Impairment" Sensors 24, no. 17: 5571. https://doi.org/10.3390/s24175571

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Article metric data becomes available approximately 24 hours after publication online.
Back to TopTop