Next Article in Journal
WATCH-PR: Comparison of the Pulse Rate of a WATCH-Type Blood Pressure Monitor with the Pulse Rate of a Conventional Ambulatory Blood Pressure Monitor
Next Article in Special Issue
Investigations on the Effects of a Passive Standing-from-Squatting and Gait Assistive Exoskeleton on Human Motion
Previous Article in Journal
Simulation-Based Design and Machine Learning Optimization of a Novel Liquid Cooling System for Radio Frequency Coils in Magnetic Hyperthermia
Previous Article in Special Issue
Investigating Eye Movement and Postural Stability Relationships Using Mobile Eye-Tracking and Posturography: A Cross-Sectional Study
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

The Detection of Gait Events Based on Smartphones and Deep Learning

1
College of Mechanical Engineering, Shandong Huayu University of Technology, Dezhou 253034, China
2
College of Information Engineering, Dalian University, Dalian 116622, China
3
School of Physical Science and Technology, Southwest Jiaotong University, Chengdu 610031, China
*
Authors to whom correspondence should be addressed.
Bioengineering 2025, 12(5), 491; https://doi.org/10.3390/bioengineering12050491
Submission received: 11 April 2025 / Revised: 28 April 2025 / Accepted: 29 April 2025 / Published: 4 May 2025

Abstract

This study aims to detect gait events using a smartphone combined with deep learning and evaluate the remote effects and clinical significance of this method in different elderly populations and patients with cerebral small vessel disease (CSVD). In total, 150 healthy individuals aged 20–70 years were asked to attach a smartphone to their thighs and walk six gait cycles at self-selected low, normal, and high speeds, using an insole pressure sensor as the reference standard for gait events. A deep learning model was then established using BiTCN-BiGRU-CrossAttention, and two models (TCN-GRU and BiTCN-BiGRU) were compared. In total, 48 elderly (25 healthy, 12 with mild cognitive impairment, 11 with Parkinson’s disease) participated in an online home assessment, completing single-task and cognitive dual-task walking. Overall, 35 CSVD patients participated in an offline clinical assessment, completing single-task, cognitive dual-task, and physical dual-task walking. The BiTCN-BiGRU-CrossAttention model had the lowest MAE for detecting gait events compared to the other models. All models had lower MAEs for detecting heel strikes than toe-offs, and the MAE for low and high walking was higher than for normal speed walking. There were significant differences (p < 0.05) in gait parameters (Cadence, Stride time, Stance phase, Swing phase, Stance time, Swing time, Stride length, and walking speed) between single-task and cognitive dual-task walking for all online elderly participants. CSVD patients showed significant differences (p < 0.05) in gait parameters (Cadence, Stride time, Stance phase, Swing phase, Stance time, Stride length, and walking speed) between single-task and cognitive dual-task and between single-task and physical dual-task walking.

1. Introduction

Gait analysis relies on accurately determining events occurring during walking, such as heel strike and toe-off. Identifying these events allows for examining parameters such as Stance phase, Swing phase, Stride time, and Stride length [1]. Traditional methods, such as optical motion capture systems, force plates, and electromyography [2], can provide professional results but typically require substantial costs and support personnel [3], making them inaccessible to many users.
Furthermore, with the rapid development of smartphones, their application in the health field is becoming increasingly widespread, particularly in motion monitoring. Research has shown that built-in smartphone sensors can measure and quantify human movement [4]. Additionally, several studies have demonstrated the effective application of smartphone built-in accelerometers, gyroscopes, and other sensors in gait analysis, covering various populations such as the elderly [5] and Parkinson’s disease patients [6]. Smartphones provide a portable and inexpensive method that can be applied anywhere, not limited to specific settings. Many studies have validated the smartphone against standard equipment [4,7,8,9,10,11,12], but some studies have only included a small number of young, healthy individuals [4,7,8,9,10] analyzed a relatively limited range of gait parameters [8,9,10], did not mention the impact of different walking speeds on the results [4,8,10,11,12], and did not evaluate the application of the method in daily home environments [4,7,8,9,11,12]. Moreover, these studies only reported consistency compared to standard equipment and did not mention the time error in detecting gait events [4,7,8,9,10,11,12]. Therefore, this study aims to explore a method using a smartphone and deep learning to detect gait events at different walking speeds, with the main highlights as follows:
Gait signals represent a macroscopic manifestation of neuronal network activity involving the coordinated regulation of central pattern generators (CPGs). The mechanisms of information transmission and processing within neuronal networks can be simulated using mathematical models. Studies have shown that periodic spiking activity in unidirectionally coupled Hindmarsh–Rose neuronal chains can induce novel slow rhythms, transitioning from chaotic to regular dynamics along the chain [13]. This phenomenon bears similarity to the gait rhythms driven by CPGs, providing theoretical support for understanding the generation mechanisms of complex gait signals and for employing deep learning methods to identify gait events. Consequently, this study focuses on leveraging built-in smartphone sensors combined with deep learning to detect gait events from smartphone signals in a controlled environment, aiming to provide a portable, low-cost solution for human behavior monitoring.
(1)
This study is the first to employ built-in smartphone sensors combined with deep learning to detect gait events, providing a novel approach for portable gait analysis.
(2)
The proposed model in this study applies to different walking speeds, and the detection time errors of different deep learning models are compared.
(3)
The external application effects of this method are remotely assessed in different elderly populations in daily home environments.
(4)
The clinical significance of this method is evaluated in a population with cerebral small vessel disease.

2. Materials and Methods

2.1. Software Platform

Given the widespread user base of the WeChat platform, WeChat mini programs offer a convenient and lightweight user experience without the need for downloading and installation. Moreover, WeChat mini programs support cross-platform operations, making them easy to promote [14]. Therefore, this study developed a WeChat mini program as a software tool for gait analysis and successfully published it on the WeChat platform.

2.2. Participants

The participants in this study were divided into offline and online participants. Table 1 summarizes the demographic details of the participants.
Health: This study recruited 150 healthy individuals offline. The inclusion criteria are as follows: (1) age greater than 20 years; (2) ability to walk continuously for at least 10 m without assistance from others or walking aids. The exclusion criteria are as follows: the presence of mental, neurological, or physical impairments and uncorrectable visual impairments.
Elderly: This study screened 48 older adults from WeChat mini program users as online participants. Among them, 25 older adults were in good physical condition, 12 had mild cognitive impairment, and 11 had Parkinson’s disease.
CSVD: This study recruited 34 patients with cerebral small vessel disease (CSVD) from the Department of Neurology at the Affiliated Zhongshan Hospital of Dalian University offline. All patients underwent head magnetic resonance imaging (MRI) examinations. The Fazekas scoring system was used to grade the burden of white matter lesions [15]. The inclusion criteria are as follows: Fazekas score 1; confirming the presence of CSVD. The exclusion criteria are as follows: severe brain diseases; mental disorders; cognitive impairments; and physical disabilities that affect the examination.
The Research Project Ethics Review Committee of the Affiliated Zhongshan Hospital of Dalian University approved this study. All offline participants provided written informed consent, and all online participants read the user guide and agreed to collect personal information in advance within the WeChat mini program.

2.3. Experimental Design

Health: Previous studies have shown that sensors that are in closer proximity to the foot-ground contact point are facilitated in gait event detection [16]. Considering the weight of smartphones, this study prioritized the thigh position for data collection. As shown in Figure 1, a smartphone (iPhone 13) was attached to the thigh of the participants using a belt-like Velcro strap, while an insole pressure sensor (M3232L, Roxifsr, China; Sampling rate: 50 Hz) was used as the reference standard for gait events. Each participant was asked to walk in a straight line for 6 gait cycles at self-selected [17] normal, low, and high speeds in a horizontal corridor.
Elderly: Online participants completed 2 rounds of home-based gait assessment trials. The first round was a single-task walking (STW) trial, i.e., normal walking. The second round was a cognitive dual-task walking (Verbal Fluency Test, VFT) trial; participants were asked to name the fruits or animals they knew while walking.
CSVD: Patients completed three rounds of gait trials in a horizontal corridor. The first round was STW. The second round was a VFT. The third round was a physical dual-task walking (PTW) trial, which required patients to carry a tray with a water bottle with both hands to keep it from tipping over during walking.

3. Experiments and Results

3.1. Data Collection and Processing

The smartphone captures triaxial acceleration data ( A x , A y , A z ) and triaxial angular velocity data ( G x , G y , G z ) at a sampling rate of 50 Hz, as well as the smartphone’s rotation angles ( Y a w , P i t c h , R o l l ) around the ZXY axes in three-dimensional space, as depicted in Figure 2. During the smartphone data collection phase, the raw sensor data may be affected by noise due to factors such as body tremors and device deviations. Kalman filtering and low-pass filters are used to remove noise. When walking, the overall variation in acceleration A z , angular velocity G x , and rotation angle Pitch was relatively small; these three features were excluded.

3.2. Building Dataset

Input–output data pairs are constructed using a sliding window approach [18]. The input X represents the sensor data collected by the smartphone, and the output Y represents the corresponding reference gait events for X . The first input–output data pair is X 1 , X 2 , …, X ω and Y ω + 1 ; the t input–output data pair is X t , X t + 1 , …, X ω + 1 and Y ω + t + 1 ; and the last input–output data pair is X n ω , X n ω + 1 , …, X n 1 and Y n , where ω is the window length ( ω = 40). From the 150 healthy individuals aged 20–70 years across six age groups, the input–output data pairs from participants in each age group were divided into 60% for the training set, 20% for the validation set, and 20% for the test set.

3.3. Deep Learning Models

This study proposes a BiTCN-BiGRU-CrossAttention model that integrates the temporal convolutional properties of TCN, the bidirectional temporal modeling capabilities of BiGRU, and the key feature focusing ability of CrossAttention. Specifically, TCN extracts local features from time series data through multi-layer residual connections; BiGRU captures long-term dependencies via forward and backward gating mechanisms; and CrossAttention enhances the identification of critical gait events through attention weights (Figure 3). This study also compares two different models: TCN-GRU and BiTCN-BiGRU.
All the models use the Adam optimizer and Mean Absolute Error as the loss function. The best model is determined by minimizing the validation set error by training for 50 epochs.

3.4. Error Measurement

The time difference between the gait events detected by the model and the reference standard gait events, i.e., the Mean Absolute Error (MAE, unit: milliseconds), was used as an evaluation metric for model performance on the test set. A smaller time difference indicates a higher model accuracy in detecting gait events. Figure 4 shows an example of the output of the BiTCN-BiGRU-CrossAttention model and the truth label.

3.5. Calculation of Gait Parameters

For online elderly participants and CSVD patients, spatiotemporal gait parameters were calculated based on gait events detected by the best deep-learning model. To accurately estimate walking distance at different walking speeds, this study adopted a linear regression model based on walking speed to achieve an adaptive estimation of walking distance [19]. Figure 5 is a schematic diagram of a gait cycle.

3.6. Result

Table 2 shows the MAE (Mean ± SD) of heel strike and toe-off detection using all models at different walking speeds for healthy participants. The results indicate that the BiTCN-BiGRU-CrossAttention model has lower MAEs when detecting heel strike and toe-off at all three walking speeds compared to the other models. Furthermore, all models have a lower MAE when detecting heel strike compared to toe-off; the MAE at normal speed is lower than at low and high speeds Figure 6.
Table 3 shows significant differences (p < 0.05) in gait parameters (Cadence, Stride time, Stance phase, Swing phase, Stance time, Swing time, Stride length, and walking speed) between the STW and VFT conditions for online elderly participants. For CSVD patients, significant differences (p < 0.05) in gait parameters (Cadence, Stride time, Stance phase, Swing phase, Stance time, Stride length, and walking speed) existed between the STW and VFT conditions, as well as between the STW and PTW conditions.

4. Discussion

This study addresses gait discovery from smartphone signals in the context of intelligent detection and the control of human behavior. The experimental results demonstrate that the proposed method exhibits good reliability and validity, particularly at normal walking speeds. Additionally, the method effectively detects changes in gait parameters under dual-task conditions in different groups of older adults and CSVD patients. This study addresses how to achieve gait event detection using low-cost devices combined with deep learning.
Similar studies have used a single commercial IMU or smartphone to detect gait events and report the time error. Fadillioglu et al. proposed a gait events detection method using a gyroscope attached to the right shank with a rule-based algorithm, reporting an MAE of 11 ± 3 ms and 29 ± 11 ms for heel strike and toe-off [20]. Gonzalez et al. presented a gait events detection method using an IMU attached at the waist; the lowest MAE for heel strike and toe-off events using a rule-based method was 15 ms and 9 ms [21]. McCamley et al. proposed a gait events estimation method based on Gaussian CWT using an accelerometer on the waist, with an MAE of 19 ms and 32 ms for heel strike and toe-off [22], respectively. Arshad et al. used a single waist-worn sensor with a CNN-BiGRU-SelfAttention deep learning model, achieving an MAE of 6.239 ms and 5.24 ms for heel strike and toe-off event predictions, respectively. To our knowledge, one study used a smartphone attached at the lower back and hip, employing three different heel strike event detection methods using acceleration data, with errors for heel strike recorded at 0.012 ± 0.056 s, 0.005 ± 0.051 s, and 0.005 ± 0.050 s; however, these results were limited to a small sample of 11 young, healthy individuals and did not mention toe-off moment errors or the influence of different walking speeds on gait event detection [23]. Although the MAE obtained by the model proposed in this paper are not as low as those in previous studies, they are still within an acceptable range. The data quality acquired by built-in smartphone sensors is difficult to compare with commercial IMUs. Built-in smartphone sensors are prone to accumulating more noise at low speeds. At high speeds, there are higher requirements for the sampling rate. The WeChat mini program platform limits the maximum sampling rate of sensors, such as accelerometers and gyroscopes, to 50 Hz, but high-sampling-rate smartphone sensors can record data more frequently and capture rapidly changing motions more accurately, which may introduce more noise [24].
In online elderly participants and offline CSVD patients, gait parameters were negatively affected by the addition of dual tasks, which may have implications for assessing older adults, as the addition of dual tasks may expose deficits not observed in single-task assessments [25]. The finding that individuals with cognitive decline exhibit gait impairments, particularly under dual-task conditions, may be explained by the neuropathological changes in specific brain regions involved in motor planning and execution, which occur in the early stages of dementia [26]. Patients with Parkinson’s disease are affected by dual-task walking as spatiotemporal gait parameters deteriorate when walking is combined with a secondary task [27]; patients may experience symptoms such as freezing [28] and falling [29]. CSVD is associated with cognitive [30] and motor impairments [31,32], and patients may not have overt clinical symptoms [33,34]. However, CSVD patients have lower gait speed [35] and are likelier to exhibit abnormal gait characteristics [36] under dual-task activities. Therefore, quantitative gait analysis using a smartphone can detect changes in gait parameters in the early stages of cognitive decline and patients with neurodegenerative diseases, serving as a non-invasive biomarker for disease detection and enabling the timely implementation of targeted interventions.
Compared to existing studies, this research is the first to propose a method for detecting gait events using built-in smartphone sensors combined with deep learning, validating the model’s adaptability across different walking speeds, and achieving remote gait assessment in home environments through a software application without incurring additional hardware costs, thereby addressing a gap in the field’s practical applications. Notably, the BiTCN-BiGRU-CrossAttention model employed in this study represents a novel deep learning approach, distinguished by its integration of TCN, BiGRU, and CrossAttention. This model effectively extracts both local and global temporal features from gait signals, demonstrating good adaptability in multi-speed gait detection compared to traditional methods, such as rule-based algorithms or single neural network architectures. Future improvements should focus on optimizing the weight distribution of the attention mechanism to enhance model performance further.
The present study has several limitations. This study constructed a dataset for detecting gait events using deep learning, encompassing participants aged 20 to 70 years across different age groups. However, the dataset primarily included healthy individuals, which may not fully capture the gait characteristics of populations with neurological or motor function impairments. Furthermore, although the gender distribution within the healthy cohort’s age groups was relatively balanced, the age distribution may not entirely represent older populations susceptible to gait-related disorders, such as Parkinson’s disease or cerebral small vessel disease. This could lead to class imbalance issues in the dataset, potentially affecting the model’s performance and generalizability. Class imbalance is a common challenge in machine learning and deep learning research, and non-representative datasets or overly complex model configurations may introduce bias in the results [37]. The study’s gait trial environment was limited to level straight-line walking, which can mostly meet gait analysis needs. However, walking environments in daily life have uncertainties, such as uneven surfaces, turns, and avoidance. Future research should further expand the types of participants, covering more types of patients with neurological diseases or motor impairments.

5. Conclusions

This study combines smartphone built-in sensors and deep learning to detect gait events. The experimental results show that the BiTCN-BiGRU-CrossAttention model demonstrates higher accuracy in detecting heel strike and toe-off, especially at normal walking speeds. Furthermore, this method can effectively differentiate gait differences between healthy older adults, individuals with mild cognitive impairment, Parkinson’s disease, and cerebral small vessel disease patients during single-task and dual-task walking. The smartphone-based gait analysis method proposed in this study is easy to operate, has a low cost, and promotes detection, showing promise for applications in remote rehabilitation management, clinical assessment, and other fields.

Author Contributions

Conceptualization, K.X. and H.Z.; methodology, K.X. and H.Z.; validation, W.Y. and S.Y.; resources, H.Z.; data curation, K.X., W.Y. and H.Z.; writing—original draft preparation, K.X. and W.Y.; writing—review and editing, S.Y., H.Z. and M.Z.; visualization, W.Y. All authors have read and agreed to the published version of the manuscript.

Funding

This work was supported by the Provincial and Ministerial-level Platform Intelligent Manufacturing Engineering Laboratory (No. PT2025KJS002) of Shandong Huayu University of Technology.

Institutional Review Board Statement

This study was approved by the Ethics Review Committee for Scientific Research Projects of Affiliated Zhongshan Hospital of Dalian University (REC number: KY2023-103-1).

Informed Consent Statement

Informed consent was obtained from all subjects before the experiments.

Data Availability Statement

Due to the nature of this research, the participants of this study did not agree for their data to be shared publicly, so supporting data are not available.

Acknowledgments

The author would like to express their gratitude to all volunteers and doctors involved in data collection and to Dalian University for providing a collaborative platform.

Conflicts of Interest

The authors declare no competing interests.

References

  1. Hansen, A.H.; Childress, D.S.; Meier, M.R. A simple method for determination of gait events. J. Biomech. 2002, 35, 135–138. [Google Scholar] [CrossRef] [PubMed]
  2. Borzelli, D.; Marchis, C.D.; Quercia, A. Muscle Synergy Analysis as a Tool for Assessing the Effectiveness of Gait Rehabilitation Therapies: A Methodological Review and Perspective. Bioengineering 2024, 11, 793. [Google Scholar] [CrossRef]
  3. Bonanno, M.; Nunzio, A.M.D.; Quartarone, A. Gait Analysis in Neurorehabilitation: From Research to Clinical Practice. Bioengineering 2023, 10, 785. [Google Scholar] [CrossRef]
  4. Grouios, G.; Ziagkas, E.; Loukovitis, A.; Chatzinikolaou, K.; Koidou, E. Accelerometers in Our Pocket: Does Smartphone Accelerometer Technology Provide Accurate Data? Sensors 2022, 23, 192. [Google Scholar] [CrossRef]
  5. Zhong, R.; Rau, P.-L.P. A Mobile Phone–Based Gait Assessment App for the Elderly: Development and Evaluation. JMIR Mhealth Uhealth 2020, 8, e14453. [Google Scholar] [CrossRef]
  6. Tang, S.T.; Tai, C.H.; Yang, C.Y.; Lin, J.H. Feasibility of Smartphone-Based Gait Assessment for Parkinson’s Disease. J. Med. Biol. Eng. 2020, 40, 582–591. [Google Scholar] [CrossRef]
  7. Tao, S.; Zhang, H.; Kong, L.; Sun, Y.; Zhao, J. Validation of gait analysis using smartphones: Reliability and validity. Digit Health 2024, 10, 20552076241257054. [Google Scholar] [CrossRef] [PubMed]
  8. Furrer, M.; Bichsel, L.; Niederer, M.; Baur, H.; Schmid, S. Validation of a smartphone-based measurement tool for the quantification of level walking. Gait Posture 2015, 42, 289–294. [Google Scholar] [CrossRef] [PubMed]
  9. Silsupadol, P.; Teja, K.; Lugade, V. Reliability and validity of a smartphone-based assessment of gait parameters across walking speed and smartphone locations: Body, bag, belt, hand, and pocket. Gait Posture 2017, 58, 516–522. [Google Scholar] [CrossRef]
  10. Manor, B.; Yu, W.; Zhu, H. Smartphone App–Based Assessment of Gait During Normal and Dual-Task Walking: Demonstration of Validity and Reliability. JMIR Mhealth Uhealth 2018, 6, e36. [Google Scholar] [CrossRef]
  11. Shahar, R.T.; Agmon, M. Gait Analysis Using Accelerometry Data from a Single Smartphone: Agreement and Consistency between a Smartphone Application and Gold-Standard Gait Analysis System. Sensors 2021, 21, 7497. [Google Scholar] [CrossRef]
  12. Shema-Shiratzky, S.; Beer, Y.; Mor, A.; Elbaz, A. Smartphone-based inertial sensors technology—Validation of a new application to measure spatiotemporal gait metrics. Gait Posture 2022, 93, 102–106. [Google Scholar] [CrossRef]
  13. La, R.M.; Rabinovich, M.I.; Huerta, R.; Abarbanel, H.D.I.; Fortuna, L. Slow regularization through chaotic oscillation transfer in an unidirectional chain of Hindmarsh–Rose models. Phys. Lett. A 2000, 266, 88–93. [Google Scholar]
  14. Zhao, Q.; Qiu, X.; Liu, W.; Nian, Z.; Chen, T. Application of a WeChat Mini Program to provide pharmaceutical care for cancer pain patients: A randomized controlled trial. Digit Health 2024, 10, 20552076241255654. [Google Scholar] [CrossRef]
  15. Fazekas, F.; Chawluk, J.B.; Alavi, A.; Hurtig, H.I.; Zimmerman, R.A. MR signal abnormalities at 1.5 T in Alzheimer’s dementia and normal aging. Am. J. Roentgenol. 1987, 149, 351–356. [Google Scholar] [CrossRef] [PubMed]
  16. Trojaniello, D.; Cereatti, A.; Pelosin, E. Estimation of step-by-step spatio-temporal parameters of normal and impaired gait using shank-mounted magneto-inertial sensors: Application to elderly, hemiparetic, parkinsonian and choreic gait. J. Neuroeng. Rehabil. 2014, 11, 152. [Google Scholar] [CrossRef] [PubMed]
  17. Warmerdam, E.; Orth, M.; Pohlemann, T.; Ganse, B. Gait Analysis to Monitor Fracture Healing of the Lower Leg. Bioengineering 2023, 10, 255. [Google Scholar] [CrossRef]
  18. Arshad, M.Z.; Jamsrandorj, A.; Kim, J.; Mun, K.-R. Gait Events Prediction Using Hybrid CNN-RNN-Based Deep Learning Models through a Single Waist-Worn Wearable Sensor. Sensors 2022, 22, 8226. [Google Scholar] [CrossRef]
  19. Ho, N.-H.; Truong, P.; Jeong, G.-M. Step-Detection and Adaptive Step-Length Estimation for Pedestrian Dead-Reckoning at Various Walking Speeds Using a Smartphone. Sensors 2016, 16, 1423. [Google Scholar] [CrossRef]
  20. Fadillioglu, C.; Stetter, B.J.; Ringhof, S. Automated gait event detection for a variety of locomotion tasks using a novel gyroscope-based algorithm. Gait Posture 2020, 81, 102–108. [Google Scholar] [CrossRef]
  21. González, R.C.; López, A.M.; Rodriguez-Uría, J.; Alvarez, D.; Alvarez, J.C. Real-time gait event detection for normal subjects from lower trunk accelerations. Gait Posture 2010, 31, 322–325. [Google Scholar] [CrossRef]
  22. Soaz, C.; Diepold, K. Step Detection and Parameterization for Gait Assessment Using a Single Waist-Worn Accelerometer. IEEE T Bio-Med. Eng. 2016, 63, 933–942. [Google Scholar] [CrossRef]
  23. Pepa, L.; Verdini, F.; Spalazzi, L. Gait parameter and event estimation using smartphones. Gait Posture 2017, 57, 217–223. [Google Scholar] [CrossRef]
  24. Hoang, T.; Nguyen, T.D.; Luong, C.; Do, S.; Deokjai, C. Adaptive Cross-Device Gait Recognition Using a Mobile Accelerometer. J. Inf. Process Syst. 2013, 9, 333–348. [Google Scholar] [CrossRef]
  25. Montero-Odasso, M.M.; Sarquis-Adamson, Y.; Speechley, M. Association of dual-task gait with incident dementia in mild cognitive impairment: Results from the gait and brain study. JAMA Neurol. 2017, 74, 857–865. [Google Scholar] [CrossRef] [PubMed]
  26. Montero-Odasso, M.; Oteng-Amoakoet, A.; Speechley, M. The motor signature of mild cognitive impairment: Results from the gait and brain study. J. Gerontol. A-Biol. 2014, 69, 1415–1421. [Google Scholar] [CrossRef] [PubMed]
  27. Kelly, V.E.; Eusterbrock, A.J.; Shumway-Cook, A. A Review of Dual-Task Walking Deficits in People with Parkinson′s Disease: Motor and Cognitive Contributions, Mechanisms, and Clinical Implications. Parkinsons Dis. 2012, 2012, 918719. [Google Scholar] [PubMed]
  28. Nonnekes, J.; Snijderset, A.H.; Nuttal, P.J.G. Freezing of gait: A practical approach to management. Lancet Neurol. 2015, 14, 768–778. [Google Scholar] [CrossRef]
  29. Creaby, M.W.; Cole, M.H. Gait characteristics and falls in Parkinson’s disease: A systematic review and meta-analysis. Parkinsonism Relat. D 2018, 57, 1–8. [Google Scholar] [CrossRef]
  30. Prins, N.D.; Scheltens, P. White matter hyperintensities, cognitive impairment and dementia: An update. Nat. Rev. Neurol. 2015, 11, 157–165. [Google Scholar] [CrossRef]
  31. Kim, Y.J.; Kwon, H.K.; Lee, J.M. Gray and white matter changes linking cerebral small vessel disease to gait disturbances. Neurology 2016, 86, 1199–1207. [Google Scholar] [CrossRef]
  32. Laat, K.F.; Norden, A.G.W.; Gons, R.A.R. Gait in elderly with cerebral small vessel disease. Stroke 2010, 41, 1652–1658. [Google Scholar] [CrossRef] [PubMed]
  33. Wardlaw, J.M.; Debette, S.; Jokinen, H. ESO Guideline on covert cerebral small vessel disease. Eur. Stroke J. 2021, 6, 111–162. [Google Scholar] [CrossRef] [PubMed]
  34. Wardlaw, J.M.; Smith, C.; Dichgans, M. Small vessel disease: Mechanisms and clinical implications. Lancet Neurol. 2019, 18, 684–696. [Google Scholar] [CrossRef] [PubMed]
  35. Ghanavati, T.; Smitt, M.S.; Lord, S.R. Deep white matter hyperintensities, microstructural integrity and dual task walking in older people. Brain Imaging Behav. 2018, 12, 1488–1496. [Google Scholar] [CrossRef]
  36. Ma, R.; Zhào, H.; Wei, W.; Liu, Y.; Huang, Y. Gait characteristics under single-/dual-task walking conditions in elderly patients with cerebral small vessel disease: Analysis of gait variability, gait asymmetry and bilateral coordination of gait. Gait Posture 2022, 92, 65–70. [Google Scholar] [CrossRef]
  37. Roccetti, M.; Delnevo, G.; Casini, L.; Cappiello, G. Is bigger always better? A controversial journey to the center of machine learning design, with uses and misuses of big data for predicting water meter failures. J. Big Data 2019, 6, 70. [Google Scholar] [CrossRef]
Figure 1. System architecture of the WeChat mini program.
Figure 1. System architecture of the WeChat mini program.
Bioengineering 12 00491 g001
Figure 2. The smartphone collects raw sensor data and the truth label (1 for the Stance phase; 0 for the Swing phase).
Figure 2. The smartphone collects raw sensor data and the truth label (1 for the Stance phase; 0 for the Swing phase).
Bioengineering 12 00491 g002
Figure 3. The structure of BiTCN-BiGRU-CrossAttention.
Figure 3. The structure of BiTCN-BiGRU-CrossAttention.
Bioengineering 12 00491 g003
Figure 4. The output of the BiTCN-BiGRU-CrossAttention model and the truth label.
Figure 4. The output of the BiTCN-BiGRU-CrossAttention model and the truth label.
Bioengineering 12 00491 g004
Figure 5. The phases of the gait cycle.
Figure 5. The phases of the gait cycle.
Bioengineering 12 00491 g005
Figure 6. Bland–Altman plots show the difference (model detection—truth label) between various walking speeds (low, normal, and high). The dashed gray line represents the overall mean difference across all conditions, while the dashed red lines provide the limits of agreement ( ± 1.96 SD) based on the pooled data.
Figure 6. Bland–Altman plots show the difference (model detection—truth label) between various walking speeds (low, normal, and high). The dashed gray line represents the overall mean difference across all conditions, while the dashed red lines provide the limits of agreement ( ± 1.96 SD) based on the pooled data.
Bioengineering 12 00491 g006
Table 1. Summary of participants.
Table 1. Summary of participants.
ParticipantFeatureAge Range
20~2930~3940~4950~5960~6970~79
Health
(N = 150)
Male111413161413
Female111112131210
Age (years)25.55 ± 2.6035.40 ± 2.6545.08 ± 2.5055.21 ± 2.6164.65 ± 2.7173.96 ± 2.33
Height (cm)171.55 ± 8.78169.00 ± 6.23169.40 ± 8.36169.38 ± 7.52167.85 ± 9.57166.37 ± 9.41
Weight (kg)63.80 ± 9.5064.96 ± 6.8164.86 ± 6.5763.50 ± 6.0364.65 ± 2.7162.96 ± 7.35
Elderly
(N = 48)
Male----620
Female----1012
Age (years)----64.25 ± 2.7975.31 ± 3.21
Height (cm)----163.75 ± 7.03165.25 ± 7.49
Weight (kg)----67.31 ± 12.8263.97 ± 9.37
CSVD
(N = 34)
Male---1716
Female---136
Age (years)---58.50 ± 0.7164.10 ± 2.6974.91 ± 2.69
Height (cm)---167.00 ± 7.07171.00 ± 7.90169.96 ± 8.22
Weight (kg)---70.00 ± 14.1469.95 ± 8.1968.64 ± 8.11
Table 2. MAE for the detection of gait events across models and walking speeds.
Table 2. MAE for the detection of gait events across models and walking speeds.
Gait EventsSpeedModel
TCN-GRUBiTCN-BiGRUBiTCN-BiGRU-CrossAttention
Heel strikeNormal47.87 ± 1.9945.47 ± 1.6442.53 ± 1.25
Low66.80 ± 3.1462.93 ± 1.8658.40 ± 1.07
High65.20 ± 1.9261.73 ± 1.9956.93 ± 1.22
Toe-offNormal49.60 ± 2.1547.73 ± 1.6245.47 ± 1.45
Low73.06 ± 2.2867.73 ± 1.7959.20 ± 1.13
High72.00 ± 2.1465.46 ± 1.9758.27 ± 1.09
Table 3. T-test comparison between single-task and dual-task walking.
Table 3. T-test comparison between single-task and dual-task walking.
ParticipantTask and pGait Parameters
Cadence
(Steps/min)
Stride
Time
(s)
Stance
Phase
(%)
Swing
Phase
(%)
Stance
Time
(s)
Swing
Time
(s)
Stride
Length
(m)
Walking
Speed
(m/s)
Elderly
(Health)
STW100.08 ± 3.791.18 ± 0.0764.19 ± 1.5235.81 ± 1.520.76 ± 0.060.42 ± 0.021.21 ± 0.171.04 ± 0.16
VFT84.27 ± 7.101.44 ± 0.1368.40 ± 1.4431.60 ± 1.440.98 ± 0.100.45 ± 0.041.02 ± 0.140.72 ± 0.12
STW/VFT0.000 *0.000 *0.000 *0.000 *0.000 *0.000 *0.000 *0.000 *
Elderly
(MCI)
STW96.47 ± 5.781.22 ± 0.0765.64 ± 2.2434.36 ± 2.240.80 ± 0.070.42 ± 0.021.15 ± 0.140.94 ± 0.14
VFT78.37 ± 8.401.55 ± 0.2169.47 ± 2.1630.53 ± 2.161.08 ± 0.150.47 ± 0.060.96 ± 0.160.63 ± 0.10
STW/VFT0.000 *0.002 *0.000 *0.000 *0.002 *0.003 *0.000 *0.000 *
Elderly
(PD)
STW96.23 ± 6.761.20 ± 0.1065.00 ± 1.9835.00 ± 1.980.78 ± 0.090.42 ± 0.021.00 ± 0.130.84 ± 0.15
VFT77.63 ± 13.881.57 ± 0.3969.63 ± 3.3230.37 ± 3.321.10 ± 0.340.47 ± 0.060.86 ± 0.150.58 ± 0.18
STW/VFT0.000 *0.003 *0.000 *0.000 *0.003 *0.015 *0.000 *0.000 *
CSVDSTW93.97 ± 8.981.29 ± 0.1267.72 ± 2.6532.28 ± 2.650.87 ± 0.100.42 ± 0.040.85 ± 0.170.67 ± 0.16
VFT80.18 ± 10.851.53 ± 0.2272.19 ± 3.25727.81 ± 3.261.11 ± 0.1910.42 ± 0.050.66 ± 0.170.44 ± 0.15
PTW85.87 ± 11.461.41 ± 0.1870.43 ± 3.4829.57 ± 3.481.00 ± 0.160.41 ± 0.050.72 ± 0.210.52 ± 0.18
STW/VFT0.000 *0.000 *0.000 *0.000 *0.000 *0.5320.000 *0.000 *
STW/PTW0.000 *0.000 *0.000 *0.000 *0.000 *0.7790.000 *0.000 *
* p < 0.05.
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

Xu, K.; Yu, W.; Yu, S.; Zheng, M.; Zhang, H. The Detection of Gait Events Based on Smartphones and Deep Learning. Bioengineering 2025, 12, 491. https://doi.org/10.3390/bioengineering12050491

AMA Style

Xu K, Yu W, Yu S, Zheng M, Zhang H. The Detection of Gait Events Based on Smartphones and Deep Learning. Bioengineering. 2025; 12(5):491. https://doi.org/10.3390/bioengineering12050491

Chicago/Turabian Style

Xu, Kaiyue, Wenqiang Yu, Shui Yu, Minghui Zheng, and Hao Zhang. 2025. "The Detection of Gait Events Based on Smartphones and Deep Learning" Bioengineering 12, no. 5: 491. https://doi.org/10.3390/bioengineering12050491

APA Style

Xu, K., Yu, W., Yu, S., Zheng, M., & Zhang, H. (2025). The Detection of Gait Events Based on Smartphones and Deep Learning. Bioengineering, 12(5), 491. https://doi.org/10.3390/bioengineering12050491

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

Article Metrics

Back to TopTop