Machine Learning Models for Reliable Gait Phase Detection Using Lower-Limb Wearable Sensor Data
Source abstract
Abstract
Accurate gait-phase detection is essential for rehabilitation monitoring, prosthetic control, and human–robot interaction. Artificial intelligence supports continuous, personalized mobility assessment by extracting clinically meaningful patterns from wearable sensors. A richer view of gait dynamics can be achieved by integrating additional signals, including inertial, plantar flex, footswitch, and EMG data, leading to more accurate and informative gait analysis. Motivated by these needs, this study investigates discrete gait-phase recognition for the right leg using a multi-subject IMU dataset collected from lower-limb sensors. IMU recordings were segmented into 128-sample windows across 23 channels, and each window was flattened into a 2944-dimensional feature vector. To ensure reliable ground-truth labels, we developed an automatic relabeling pipeline incorporating heel-strike and toe-off detection, adaptive threshold tuning, and sensor fusion across sensor modalities. These windowed vectors were then used to train a comprehensive suite of machine learning models, including Random Forests, Extra Trees, k-Nearest Neighbors, XGBoost, and LightGBM. All models underwent systematic hyperparameter tuning, and their performance was assessed through k-fold cross-validation. The results demonstrate that tree-based ensemble models provide accurate and stable gait-phase classification with accuracy exceeding 97% across both test sets, underscoring their potential for future real-time gait analysis and lower-limb assistive technologies.
Source: crossref · Quality: baseline
Research context
OpenAlex topics: Prosthetics and Rehabilitation Robotics · Muscle activation and electromyography studies · Advanced Sensor and Energy Harvesting Materials
SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.
Affiliations
DeHealthLab, Department of Energy, Mechanical and Management Engineering, University of Calabria, 87036 Rende, Italy
References (43)
Show source-provided references
1. GAIT Analysis Methods: An overview of Wearable and Non-Wearable systems, highlighting clinical applications10.3390/s140203362 ↗
2. Human gait recognition: A systematic review10.1007/s11042-023-15079-5 ↗
3. Human Lower Limb Motion Intention Recognition for Exoskeletons: A Review10.1109/JSEN.2023.3328615 ↗
4. A Survey of Wearable Lower Extremity Neurorehabilitation Exoskeleton: Sensing, Gait Dynamics, and Human–Robot Collaboration10.1109/TSMC.2024.3369071 ↗
5. Wearable Gait Recognition Systems Based on MEMS Pressure and Inertial Sensors: A Review10.1109/JSEN.2021.3131582 ↗
6. Fusion of Multi-Sensor-Based Biomechanical Gait Analysis Using Vision and Wearable Sensor10.1109/JSEN.2021.3066473 ↗
7. GCA-Net: Gait Contour Automatic Segmentation Model for Video Gait Recognition10.1007/s11042-021-11248-6 ↗
8. View-Independent Gait Events Detection Using CNN-Transformer Hybrid Network10.1016/j.jbi.2023.104524 ↗
9. Assisted Gait Phase Estimation Through an Embedded Depth Camera Using Modified Random Forest Algorithm Classification10.1109/JSEN.2019.2957667 ↗
10. Effect of Lower Limb Exoskeleton on the Modulation of Neural Activity and Gait Classification10.1109/TNSRE.2023.3294435 ↗
11. The Influence of Gait Phase on Predicting Lower-Limb Joint Angles10.1109/TMRB.2023.3260261 ↗
12. Estimation of Gait Subphase Time Parameters Based on a Human Electrostatic Field Detection System10.1109/JSEN.2023.3262446 ↗
13. Benbakhti, A.S., Boukhenous, S., Zizoua, C., and Attari, M. (2014, January 3–5). An Instrumented Shoe for Ambulatory Prevention of Diabetic Foot Ulceration. Proceedings of the 4th International Conference on Wireless Mobile Communication and Healthcare—Transforming Healthcare Through Innovations in Mobile and Wireless Technologies (MOBIHEALTH), Athens, Greece.10.4108/icst.mobihealth.2014.257524 ↗
14. Aqueveque, P., Osorio, R., Pastene, F., Saavedra, F., and Pino, E. (2018). Capacitive Sensors Array for Plantar Pressure Measurement Insole Fabricated with Flexible PCB. Proceedings of the 2018 40th Annual International Conference of the IEEE Engineering in Medicine and Biology Society (EMBC), IEEE.10.1109/EMBC.2018.8513383 ↗
15. Gait Phase Detection Using Force Sensing Resistors10.1109/JSEN.2020.2975790 ↗
16. Huang, B., Chen, M., Shi, X., and Xu, Y. (2007, January 8–11). Gait Event Detection with Intelligent Shoes. Proceedings of the 2007 International Conference on Information Acquisition, Seogwipo, Republic of Korea.10.1109/ICIA.2007.4295799 ↗
17. Nagashima, M., Cho, S.-G., Ding, M., Garcia Ricardez, G.A., Takamatsu, J., and Ogasawara, T. (2019, January 23–27). Prediction of Plantar Forces During Gait Using Wearable Sensors and Deep Neural Networks. Proceedings of the 2019 41st Annual International Conference of the IEEE Engineering in Medicine and Biology Society (EMBC), Berlin, Germany.10.1109/EMBC.2019.8857752 ↗
18. Inertial Sensing for Gait Event Detection and Transfemoral Prosthesis Control Strategy10.1109/TBME.2018.2813999 ↗
19. Zhao, H., Wang, Z., Qiu, S., Shen, Y., and Wang, J. (2017). IMU-Based Gait Analysis for Rehabilitation Assessment of Patients with Gait Disorders. Proceedings of the 2017 4th International Conference on Systems and Informatics (ICSAI), IEEE.10.1109/ICSAI.2017.8248364 ↗
20. Huang, H., Zhou, P., Li, Y., and Sun, F. (2021). A Lightweight Attention-Based CNN Model for Efficient Gait Recognition with Wearable IMU Sensors. Sensors, 21.10.3390/s21082866 ↗
21. Methodology and Validation for Identifying Gait Type Using Machine Learning on IMU Data10.1080/03091902.2019.1599073 ↗
22. IMU sensors beneath walking surface for ground reaction force prediction in gait
23. Real-Time Gait Phase Recognition Based on Time Domain Features of Multi-MEMS Inertial Sensors
24. A Low-Cost Instrumented Shoe System for Gait Phase Detection Based on Foot Plantar Pressure Data10.1109/JTEHM.2023.3319576 ↗
25. Locomotion Mode Identification and Gait Phase Estimation for Exoskeletons During Continuous Multilocomotion Tasks10.1109/TCDS.2019.2933648 ↗
26. Automated Gait Event Detection for a Variety of Locomotion Tasks Using a Novel Gyroscope-Based Algorithm10.1016/j.gaitpost.2020.06.019 ↗
27. Farah, J.D., Baddour, N., and Lemaire, E.D. (2017). Gait Phase Detection from Thigh Kinematics Using Machine Learning Techniques. Proceedings of the 2017 IEEE International Symposium on Medical Measurements and Applications (MeMeA), IEEE.10.1109/MeMeA.2017.7985886 ↗
28. Alaqtash, M., Sarkodie-Gyan, T., Yu, H., Fuentes, O., Brower, R., and Abdelgawad, A. (September, January 30). Automatic classification of pathological gait patterns using ground reaction forces and machine learning algorithms. Proceedings of the 2011 Annual Interna tional Conference of the IEEE Engineering in Medicine and Biology Society, Boston, MA, USA.10.1109/IEMBS.2011.6090063 ↗
29. Pazar, A., Khalilbayli, F., Ozlem, K., Yilmaz, A.F., Atalay, A.T., Atalay, O., and Ince, G. (2022). Gait Phase Recognition Using Textile-Based Sensor. Proceedings of the 2022 7th International Conference on Computer Science and Engineering (UBMK), IEEE.10.1109/UBMK55850.2022.9919491 ↗
30. Nazari, F., Mohajer, N., Nahavandi, D., and Khosravi, A. (2022). Comparison of Gait Phase Detection Using Traditional Machine Learning and Deep Learning Techniques. Proceedings of the 2022 IEEE International Conference on Systems, Man, and Cybernetics (SMC), IEEE.10.1109/SMC53654.2022.9945397 ↗
31. Cognitive Driven Gait Freezing Phase Detection and Classification for Neuro-Rehabilitated Patients Using Machine Learning Algorithms10.1016/j.jneumeth.2024.110183 ↗
32. Liu, L., Wang, H., Li, H., Liu, J., Qiu, S., Zhao, H., and Guo, X. (2021). Ambulatory human GAIT phase detection using wearable inertial sensors and hidden Markov model. Sensors, 21.10.3390/s21041347 ↗
33. Development and Evaluation of a Low-Cost Data Acquisition System Using Heterogeneous Sensors10.1504/IJSNET.2022.125274 ↗
34. Preprocessing techniques for context recognition from accelerometer data10.1007/s00779-010-0293-9 ↗
35. Extremely Randomized Trees10.1007/s10994-006-6226-1 ↗
36. Faisal, A., Jhanjhi, N., Ashraf, H., Ray, S.K., and Ashfaq, F. (2025). A Comprehensive Review of Machine Learning Models: Principles, Applications, and Optimal Model Selection. TechRxiv.10.36227/techrxiv.174285687.71966152/v1 ↗
37. Hanif, I. (2019, January 2–3). Implementing Extreme Gradient Boosting (XGBoost) Classifier to Improve Customer Churn Prediction. Proceedings of the 1st International Conference on Statistics and Analytics, ICSA 2019, Bogor, Indonesia.
38. Machado, M.R., Karray, S., and De Sousa, I.T. (2019). LightGBM: An Effective Decision Tree Gradient Boosting Method to Predict Customer Loyalty in the Finance Industry. Proceedings of the 2019 14th International Conference on Computer Science & Education (ICCSE), IEEE.10.1109/ICCSE.2019.8845529 ↗
39. Machine Learning Model Optimization With Hyper Parameter Tuning Approach
40. A study of cross-validation and bootstrap for accuracy estimation and model selection
41. Human activity classification based on Micro-Doppler signatures using a support vector machine10.1109/TGRS.2009.2012849 ↗
42. Recognition of humans based on radar micro-Doppler shape spectrum features10.1049/iet-rsn.2014.0551 ↗
43. Gait-based human recognition based on millimetre wave multiple input multiple output radar point cloud constructed using velocity-depth-time10.1049/rsn2.12577 ↗