Shaikh, UQShahzaib, MShakil, SBhatti, FAAamir Saeed, M2023-12-102023-12-102023-11-01Heliyon, ISSN: 2405-8440 (Print), Elsevier BV, 9(11), e21720-e21720. doi: 10.1016/j.heliyon.2023.e217202405-8440http://hdl.handle.net/10292/17048Real-time gait event detection (GED) system can be utilized for gait analysis and tracking fitness activities. GED for various types of terrains (e.g., stair-walk, uneven surfaces, etc.) is still an open research problem. This study presents an inertial sensor-based approach for real-time GED system that works for diverse terrains in an uncontrolled environment. The GED system classifies three types of terrains, i.e., flat-walk, stair-ascend and stair-descend, with an average classification accuracy of 99%. It also accurately detects various gait events, including, toe-strike, heel-rise, toe-off, and heel-strike. It is computationally efficient, implemented on a low-cost microcontroller, works in real-time and can be used in portable rehabilitation devices for use in dynamic environments.© 2023 The Author(s). Published by Elsevier Ltd. This is an open access article under the CC BY-NC-ND license (http://creativecommons.org/licenses/by-nc-nd/4.0/).http://creativecommons.org/licenses/by-nc-nd/4.0/4605 Data Management and Data Science46 Information and Computing Sciences42 Health Sciences4207 Sports Science and ExercisePreventionRobust and Adaptive Terrain Classification and Gait Event Detection SystemJournal ArticleOpenAccess10.1016/j.heliyon.2023.e21720