Abstract
Background: Adapting physical activity monitors to detect gait events (ie, at initial and final contact) has the potential to build a more personalized approach to gait rehabilitation after stroke. Meeting laboratory standards for detecting these events in impaired populations is challenging, without resorting to a multisensor solution. The Teager-Kaiser energy operator (TKEO) estimates the instantaneous energy of a signal; its enhanced sensitivity has successfully detected gait events from the acceleration signals of individuals with impaired mobility, but has not been applied to stroke.
Objective: This study aimed to test the criterion validity of TKEO gait event detection (and derived spatiotemporal metrics) using data from thigh mounted physical activity monitors compared with concurrent 3D motion capture in chronic survivors of stroke.
Methods: Participants with a history of stroke(n=13, mean age 59, SD 14 years), time since stroke (mean 1.5, SD 0.5 years), walking speed (mean 0.93ms−1 , SD 0.38 m/s) performed two 10m walks at their comfortable speed, while wearing two ActivPAL 4+ (AP4) sensors (anterior of both thighs) and LED cluster markers on the pelvis and ankles which were tracked by a motion capture system. The TKEO signal processing technique was then used to extract gait events (initial and final contact) and calculate stance durations which were compared with motion capture data.
Results: There was very good agreement between the AP4 and motion capture data for stance duration (AP4 0.85s, motion capture system 0.88s, 95% CI of difference −0.07 to 0.13, intraclass correlation coefficient [3,1]=0.79).
Conclusions: The TKEO method for gait event detection using AP4 data provides stance time durations that are comparable with laboratory-based systems in a population with chronic stroke. Providing accurate stance time durations from wearable sensors could extend gait training out of clinical environments. Limitations include ecological and external validity. Future work should confirm findings with a larger sample of participants with a history of stroke.
Trial Registration: ClinicalTrials.gov NCT06787768; https://clinicaltrials.gov/study/NCT06787768
doi:10.2196/80308
Keywords
Introduction
Rehabilitation improves recovery after stroke, with better outcomes when applied intensively and tailored to individual needs [-]. Wearable technology has the potential to support increased self-managed rehabilitation by providing performance feedback during everyday activities such as walking in the community but needs to be accurate [].
As an important feature of independent living, the recovery of walking ability is a major rehabilitation goal []. Reduced walking ability is common after stroke, particularly in hemiplegic stroke, which causes specific gait impairments such as reduced stance time duration on the hemiplegic side [,]. Speed is the most widely reported and clinically accessible metric in stroke rehabilitation, used as a global measure of mobility recovery [,]. Speed alone, however, does not provide meaningful information on the underlying impairments needed to inform effective rehabilitation interventions []. One metric that could provide this insight and is clinically relevant and sensitive to change, is stance duration symmetry [-]. Measuring this metric during everyday rehabilitation is problematic but achievable with wearable sensors; however, such an approach should consider measurement burden and potential Hawthorne effects []. Integrating these metrics into existing systems, for example physical activity monitors, may be a more acceptable approach.
One well-established wearable device, designed for measuring free-living physical activity, is the ActivPAL4+ (AP4) activity monitor (PAL technologies), which is a uniaxial accelerometer attached to the anterior thigh, using proprietary algorithms to measure physical activity and posture of a healthy and impaired populations within free-living environments []. This includes standing, sitting, walking (durations and transitions) and measurements of stepping cadence, step counts and energy expenditure []. The AP4 has good validity for measuring walking bouts at normal walking speeds, intraclass correlation coefficient [ICC (2,1)=0.78] when compared to direct observation [,-].
Many algorithms and analysis techniques have been developed to measure gait parameters from wearable sensors, from frequency domain metrics to more complex approaches that calculate joint angular displacements [,]. To detect gait events specifically, most approaches have used peak detection algorithms and zero crossing techniques, but these have not been found to be robust [-]. Gait event detection using the Teager Kaiser Energy Operator (TKEO) with AP4 data has been attempted before with Huntington’s disease, to determine initial (IC) and final contact (FC) events, with the resulting stance phase calculation consistently underestimated (0.08 s), compared to video analysis [,]. While this technique appears promising from tests in healthy and impaired participants populations data, there is a need to test with a hemiplegic population post stroke who stand to benefit from the enhanced gait rehabilitation, that could be enabled by the feedback from this approach.
The aim of this study, therefore, was to test the concurrent validity of a thigh-mounted physical activity sensor (AP4) for measuring the stance phase duration of hemiplegic gait, with a 3D motion capture system details acting as the gold standard measure. The hypothesis was that the AP4 would have acceptable levels of concurrent validity through an ICC (3,1) greater than 0.75, and a low (<0.1 s) absolute difference between the two systems experience.
Methods
Recruitment
The data were collected as part of a larger rehabilitation trial.
Study Design
Concurrent validation of an accelerometer-based system (AP4, PAL technologies, Glasgow, UK) was performed against 3D motion capture (Vicon) for measuring stance phase duration in participants of hemiplegic stroke.
Data Capture
Data from the AP4 and motion capture system were captured concurrently from participants with hemiplegic chronic stroke during two 10m walks in a gait laboratory. An AP4 (43 mmx26 mmx5 mm) was attached to the anterior surface of each thigh (ie, hemiplegic and nonhemiplegic side) with the acceleration data sampled at 50Hz. Marker clusters (Pulsars, Vicon) were attached to participants at three locations (posterior pelvis, lateral malleoli) using Velcro straps and tracked with 37 cameras (Viper, Vicon) sampling at 120 HZ. The 3D trajectory data for the clusters was captured using commercial software (Evoke, Vicon) and processed with a customized Python script (version 3.13.2, Python Software Foundation).
Stance Time Duration Calculation
Stance time durations were calculated from the motion capture data using a coordinate-based algorithm, modified to use ankle-placed cluster markers []. For the acceleration data, Teager and Kaiser [] developed an algorithm that used the amplitude and frequency of a signal to discern its energy. This algorithm is defined as:
(1)
with equating the energy of the signal, x, at time, t. and denoting the first and second derivative of the signal, x, respectively. The discrete time variant is required for determining specific gait events. To obtain this, a 3-sample symmetric difference is calculated, approximating the first and second derivatives. For a discrete one-dimensional accelerometer signal, , the TKEO signal, , is obtained through equation (1):
(2)
Flood et al [] used equation (2) to amplify accelerometer signal transient features for gait event detection. The TKEO, a nonlinear energy-tracking operator, is considered effective in amplifying sudden changes in signal energy. This allows for identifying gait-related events, such as IC and FC, as seen in .

An initial high-pass filter, at 0.5Hz via a 4th-order Butterworth filter is used on the anterior-posterior (AP) acceleration signal of the thigh-mounted sensor. Equation (2) is then applied to obtain . Once was obtained, the processing of the signal was conducted in the same fashion as Lozano-García et al [], but distinguished by using the constraints and calibration discussed by Flood et al [].
Applying the TKEO technique meant that the AP4 could remain in its recommended location on the anterior thigh, enabling collection of physical activity parameters using the AP4’s proprietary algorithms [], as well as collection of stance duration data.
Data Analysis
A Kolmogorov-Smirnov test was conducted to determine the normality of the difference between the AP4 and Evoke cluster marker system (ECMS). A two-sample t test was then used to determine whether the AP4 was statistically different from that of the ECMS when measuring stance times. A Bland-Altman plot and 95% CI of the limits of agreement (LOA) were used to compare the AP4 to the ECMS. A two-way mixed-effect, absolute agreement, single-measures ICC (3,1) was calculated to determine absolute agreement between the AP4 and ECMS.
Ethical Considerations
This study received ethical approval from Strathclyde University Ethics Committee (UEC25/23: Kerr) and is a registered clinical trial (NCT06787768) [,]. All participants of the main trial were invited to take part in this substudy. All participants provided informed consent before their involvement in the study. Participants did not receive compensation, and all data were anonymized.
Results
The Montreal cognitive assessment (MoCA) is a screening instrument that evaluates general mental capabilities, such as visuospatial abilities, executive functions, and orientation to time and space. The MoCA is rated between 1 and 30, with increasing score dictating better cognitive ability []. The functional ambulation category (FAC) evaluates walking ability in 6 levels, with a score of 0 defining no ability to walk, or requiring the help of 2 physiotherapist, and a score of 5 defining full capability to walk independently, including stairs []. The Rivermead mobility index (RMI) is an outcome measure used to assess mobility after stroke, rated between 0 and 15, with increasing score indicating better mobility [] ().
The AP4 (mean stance time=0.85) saw consistent underestimation in comparison to the ECMS (mean stance time=0.88). Despite this, both methods had a high agreement for stance time measurement (T=0.61, P=.54, 95% CI for difference=−0.07s, 0.13s, ICC [3,1]=0.79). The differences between the AP4 and ECMS were shown to be within a standard distribution (D=0.11, P=.10).
The Bland-Altman plot () displays a consistent spread between the techniques during the performed stroke gait which ranged between 0.49 and 1.90. This shows close agreement between the AP4 and ECMS, irrespective of the value. A bias of 0.03 seconds is reported, suggesting excellent accuracy of the AP4 in comparison to ECMS. The LOA were 0.28s and −0.22s, which contain the 95% of the recorded datapoints. This indicates good agreement between the AP4 and ECMS.
| Characteristics | Participants (N=13) | 
| Age (years) | 30‐78 | 
| Aphasia, n | 5 | 
| Years since stroke, range | 1‐13 | 
| MoCA (1-30), range | 16‐30 | 
| FAC (0‐5), range | 1‐5 | 
| Walking speed, range (m/s) | 0.06‐1.39 | 
| RMI | 9‐15 | 
aMoCA: Montreal cognitive assessment.
bFAC: functional ambulation category.
cRMI: Rivermead mobility index.

Discussion
This study aimed to test the concurrent validity of detecting gait events (ie, initial and final foot contact) and the derived metric—stance phase duration—from thigh acceleration data analyzed with the TKEO, compared with a gold standard 3D motion capture (Vicon) in chronic survivors of stroke. The excellent accuracy (bias=0.03 s) were similar to Flood et al (IC error=0.01s, FC error=0.02 s) []and Lozano-García et al (bias=0.08 s) [] . In the context of a typical stance duration (nonparetic =1.01 s), the reported difference of 0.03 s (2 sampling frames) represents a 2.97% difference, with performance comparable to other commonly used methods of wearable sensor gait parameter measurement, collected by Pacini Panebianco [] et al. The reported bias of 0.03 seconds could be considered clinically unimportant. A study by Wang [] et al denoted stance time averages and variability from survivors of stroke at different gait speeds. They noted 0.90 (SD 0.34) seconds and 1.01 (SD 0.41) seconds for the paretic and nonparetic sides, respectively. The magnitude of the bias, therefore, will have little effect on the readings that the AP4 will make by using the TKEO technique. These findings should be confirmed with a larger sample that preserves the diverse nature of the current sample (speed ranged between 0.06‐1.39ms−1 ).
This positive outcome opens opportunity to expand the output of wearable sensors currently used as physical activity monitors, to provide feedback on gait parameters (stance duration, symmetry and weight transference) during the rehabilitation of patients with hemiplegic stroke, without increasing measurement burden.
The results should be interpreted in light of the study’s limitations. The testing took place in a laboratory setting, reducing the generalizability of results. This controlled environment may not reflect everyday gait [,]. To obtain ecologically valid gait data, there is a need to capture in free-living environments. The sample of participants with a history of chronic stroke means that only a specific subset (chronic) of the population with stroke has been validated for this technique. Future studies are encouraged to include subacute populations who may have more variable gait parameters. The study had a small sample size, limiting the statistical power and potentially not representing the whole population, although the range of walking ability (walking speed 0.06‐1.39ms−1 , FAC 1‐5; ) is reassuringly wide.
In conclusion, the AP4 sensor, in conjunction with the TKEO technique, has been validated against a gold standard 3D Motion Capture system, for stance duration measurement in participants with chronic stroke. However, this positive finding is limited by the study’s setting and small sample. Future work should consider a bigger sample and collect gait data in free-living environments. The outcomes of this study could be exploited to enhance the function of wearable sensors, in order to provide the gait parameters valuable for self-rehabilitation after stroke, such as symmetry.
Acknowledgments
The research was supported through a PhD studentship from the University of Strathclyde. We are thankful for the support of the Sir Jules Thorn Center for the Co-creation of Rehabilitation Technology.
The ActivPAL 4+ sensors were provided gratis by PAL technologies.
Data Availability
The datasets generated or analyzed during this study are available in the University of Strathclyde, Glasgow repository [].
Conflicts of Interest
PAL technologies part-funded the PhD studentship, whilst providing ActivPAL 4+ sensors during the study. The PhD studentship has also been part-funded by the University of Strathclyde.
References
- Sivertsen M, De Jaegher H, Arntzen EC, Alstadhaug KB, Normann B. Embodiment, tailoring, and trust are important for co‐construction of meaning in physiotherapy after stroke: a qualitative study. Physiotherapy Res Intl. Jul 2022;27(3):e1948. [CrossRef]
 - Rincé G, Couturier C, Berrut G, Dylis A, Montero-Odasso M, Deschamps T. Impact of an individual personalised rehabilitation program on mobility performance in older-old people. Aging Clin Exp Res. Oct 2021;33(10):2821-2830. [CrossRef] [Medline]
 - Langhorne P, Bernhardt J, Kwakkel G. Stroke rehabilitation. The Lancet. May 2011;377(9778):1693-1702. [CrossRef]
 - Mawson S, Nasr N, Parker J, Zheng H, Davies R, Mountain G. Developing a personalised self-management system for post stroke rehabilitation; utilising a user-centred design methodology. Disability and Rehabilitation: Assistive Technology. Nov 2014;9(6):521-528. [CrossRef]
 - Harris NR, Sthapit D. Towards a personalised rehabilitation system for post stroke treatment. Presented at: 2016 IEEE Sensors Applications Symposium (SAS); Apr 20-22, 2016; Catania, Italy. [CrossRef]
 - Taylor-Piliae RE, Latt LD, Hepworth JT, Coull BM. Predictors of gait velocity among community-dwelling stroke survivors. Gait Posture. Mar 2012;35(3):395-399. [CrossRef] [Medline]
 - Chang MC, Lee BJ, Joo NY, Park D. The parameters of gait analysis related to ambulatory and balance functions in hemiplegic stroke patients: a gait analysis study. BMC Neurol. Jan 27, 2021;21(1):38. [CrossRef] [Medline]
 - Hsu AL, Tang PF, Jan MH. Analysis of impairments influencing gait velocity and asymmetry of hemiplegic patients after mild to moderate stroke. Arch Phys Med Rehabil. Aug 2003;84(8):1185-1193. [CrossRef] [Medline]
 - Grau-Pellicer M, Chamarro-Lusar A, Medina-Casanovas J, Serdà Ferrer BC. Walking speed as a predictor of community mobility and quality of life after stroke. Top Stroke Rehabil. Jul 2019;26(5):349-358. [CrossRef] [Medline]
 - Tasseel-Ponche S, Delafontaine A, Godefroy O, et al. Walking speed at the acute and subacute stroke stage: a descriptive meta-analysis. Front Neurol. 2022;13:989622. [CrossRef] [Medline]
 - Dewar ME, Judge G. Temporal asymmetry as a gait quality indicator. Med Biol Eng Comput. Sep 1980;18(5):689-693. [CrossRef] [Medline]
 - Patterson KK, Gage WH, Brooks D, Black SE, McIlroy WE. Changes in gait symmetry and velocity after stroke: a cross-sectional study from weeks to years after stroke. Neurorehabil Neural Repair. 2010;24(9):783-790. [CrossRef] [Medline]
 - Wonsetler EC, Bowden MG. A systematic review of mechanisms of gait speed change post-stroke. Part 1: spatiotemporal parameters and asymmetry ratios. Top Stroke Rehabil. Sep 2017;24(6):435-446. [CrossRef] [Medline]
 - Zhou L, Rackoll T, Ekrod L, et al. Monitoring and visualizing stroke rehabilitation progress using wearable sensors. Presented at: 2024 46th Annual International Conference of the IEEE Engineering in Medicine and Biology Society (EMBC); Jul 15-19, 2024; Orlando, FL, USA. [CrossRef]
 - Wu Y, Petterson JL, Bray NW, Kimmerly DS, O’Brien MW. Validity of the activPAL monitor to measure stepping activity and activity intensity: a systematic review. Gait & Posture. Sep 2022;97:165-173. [CrossRef]
 - Edwardson CL, Winkler EAH, Bodicoat DH, et al. Considerations when using the activPAL monitor in field-based research with adult populations. J Sport Health Sci. Jun 2017;6(2):162-178. [CrossRef] [Medline]
 - Yaqoob I, Gusso S, Simpson M, Meiring RM. Agreement between the activPAL accelerometer and direct observation during a series of gait and sit-to-stand tasks in people living with cervical dystonia. Front Neurol. 2024;15:1286447. [CrossRef] [Medline]
 - Kirk AG, Kimmel LA, Behm KJ, Peiris CL, Ekegren CL. Validity of the activPAL and ActiGraph for measuring sitting time and steps in hospitalised orthopaedic patients with altered weight bearing. Disabil Rehabil. Jan 2024;46(2):378-386. [CrossRef] [Medline]
 - Treacy D, Hassett L, Schurr K, Chagpar S, Paul SS, Sherrington C. Validity of different activity monitors to count steps in an inpatient rehabilitation setting. Phys Ther. May 1, 2017;97(5):581-588. [CrossRef] [Medline]
 - Gurchiek RD, Garabed CP, McGinnis RS. Gait event detection using a thigh-worn accelerometer. Gait & Posture. Jul 2020;80:214-216. [CrossRef]
 - Strick JA, Farris RJ, Sawicki JT. A novel gait event detection algorithm using a thigh-worn inertial measurement unit and joint angle information. J Biomech Eng. Apr 1, 2024;146(4):044502. [CrossRef] [Medline]
 - Selles RW, Formanoy MAG, Bussmann JBJ, Janssens PJ, Stam HJ. Automated estimation of initial and terminal contact timing using accelerometers; development and validation in transtibial amputees and controls. IEEE Trans Neural Syst Rehabil Eng. Mar 2005;13(1):81-88. [CrossRef] [Medline]
 - Köse A, Cereatti A, Della Croce U. Bilateral step length estimation using a single inertial measurement unit attached to the pelvis. J Neuroeng Rehabil. Feb 8, 2012;9(1):9. [CrossRef] [Medline]
 - Lee HK, Hwang SJ, Cho SP, Lee DR, You SH, Lee KJ. Novel algorithm for the hemiplegic gait evaluation using a single 3-axis accelerometer. Presented at: 2009 Annual International Conference of the IEEE Engineering in Medicine and Biology Society; Sep 3-6, 2009; Minneapolis, MN. [CrossRef]
 - Lozano-Garcia M, Doheny EP, Mann E, et al. Estimation of gait parameters in Huntington’s disease using wearable sensors in the clinic and free-living conditions. IEEE Trans Neural Syst Rehabil Eng. 2024;32:2239-2249. [CrossRef] [Medline]
 - Flood MW, O’Callaghan BPF, Lowery MM. Gait event detection from accelerometry using the Teager–Kaiser Energy Operator. IEEE Trans Biomed Eng. 2020;67(3):658-666. [CrossRef]
 - Zeni JA, Richards JG, Higginson JS. Two simple methods for determining gait events during treadmill and overground walking using kinematic data. Gait & Posture. May 2008;27(4):710-714. [CrossRef]
 - Kaiser DA, Kaiser JF. Estimation of power systems amplitudes, frequencies, and phase characteristics using energy operators. Presented at: 2012 IEEE Energy Conversion Congress and Exposition (ECCE); Sep 15-20, 2012; Raleigh, NC, USA. [CrossRef]
 - Kerr A, Grealy M, Slachetka M, et al. A participatory model for cocreating accessible rehabilitation technology for stroke survivors: user-centered design approach. JMIR Rehabil Assist Technol. 2024;11:e57227-e57227. [CrossRef]
 - Kerr A, Keogh M, Slachetka M, Grealy M, Rowe P. An intensive exercise program using a technology-enriched rehabilitation gym for the recovery of function in people with chronic stroke: usability study. JMIR Rehabil Assist Technol. 2023;10:e46619. [CrossRef]
 - Chiti G, Pantoni L. Use of Montreal Cognitive Assessment in patients with stroke. Stroke. Oct 2014;45(10):3135-3140. [CrossRef] [Medline]
 - Mehrholz J, Wagner K, Rutte K, Meiβner D, Pohl M. Predictive validity and responsiveness of the functional ambulation category in hemiparetic patients after stroke. Arch Phys Med Rehabil. Oct 2007;88(10):1314-1319. [CrossRef]
 - Roorda LD, Green JR, Houwink A, et al. The Rivermead mobility index allows valid comparisons between subgroups of patients undergoing rehabilitation after stroke who differ with respect to age, sex, or side of lesion. Arch Phys Med Rehabil. Jun 2012;93(6):1086-1090. [CrossRef]
 - Pacini Panebianco G, Bisi MC, Stagni R, Fantozzi S. Analysis of the performance of 17 algorithms from a systematic review: Influence of sensor position, analysed variable and computational approach in gait timing estimation from IMU measurements. Gait & Posture. Oct 2018;66:76-82. [CrossRef]
 - Wang Y, Mukaino M, Ohtsuka K, et al. Gait characteristics of post-stroke hemiparetic patients with different walking speeds. Int J Rehabil Res. Mar 2020;43(1):69-75. [CrossRef] [Medline]
 - Bock O, Beurskens R. Changes of locomotion in old age depend on task setting. Gait & Posture. Oct 2010;32(4):645-649. [CrossRef]
 - Atrsaei A, Corrà MF, Dadashi F, et al. Gait speed in clinical and daily living assessments in Parkinson’s disease patients: performance versus capacity. NPJ Parkinsons Dis. Mar 5, 2021;7(1):24. [CrossRef] [Medline]
 - Johnson T, Kerr A. Data for "thigh-worn sensor for measuring initial and final contact during gait in a mobility impaired population: a validation study". University of Strathclyde, Glasgow. URL: https://pureportal.strath.ac.uk/en/datasets/data-for-thigh-worn-sensor-for-measuring-initial-and-final-contac/
 
Abbreviations
| AP4: ActivPAL4+ | 
| ECMS: Evoke cluster marker system | 
| FAC: functional ambulation category | 
| FC: final contact | 
| IC: initial contact | 
| ICC: intraclass correlation coefficient | 
| LOA: limits of agreement | 
| MoCA: Montreal cognitive assessment | 
| RMI: Rivermead mobility index | 
| TKEO: Teager-Kaiser energy operator | 
Edited by Javad Sarvestan; submitted 08.Jul.2025; peer-reviewed by Ahmed Torad, jinyu guo; final revised version received 01.Oct.2025; accepted 02.Oct.2025; published 30.Oct.2025.
Copyright© Thomas Johnson, Janeesata Kuntapun, Craig Childs, Andrew Kerr. Originally published in JMIR Biomedical Engineering (http://biomsedeng.jmir.org), 30.Oct.2025.
This is an open-access article distributed under the terms of the Creative Commons Attribution License (https://creativecommons.org/licenses/by/4.0/), which permits unrestricted use, distribution, and reproduction in any medium, provided the original work, first published in JMIR Biomedical Engineering, is properly cited. The complete bibliographic information, a link to the original publication on https://biomedeng.jmir.org/, as well as this copyright and license information must be included.

