Skip to main page content
U.S. flag

An official website of the United States government

Dot gov

The .gov means it’s official.
Federal government websites often end in .gov or .mil. Before sharing sensitive information, make sure you’re on a federal government site.

Https

The site is secure.
The https:// ensures that you are connecting to the official website and that any information you provide is encrypted and transmitted securely.

Access keys NCBI Homepage MyNCBI Homepage Main Content Main Navigation
. 2025 Feb 11;25(4):1083.
doi: 10.3390/s25041083.

High-Knee-Flexion Posture Recognition Using Multi-Dimensional Dynamic Time Warping on Inertial Sensor Data

Affiliations

High-Knee-Flexion Posture Recognition Using Multi-Dimensional Dynamic Time Warping on Inertial Sensor Data

Annemarie F Laudanski et al. Sensors (Basel). .

Abstract

Relating continuously collected inertial data to the activities or postures performed by the sensor wearer requires pattern recognition or machine-learning-based algorithms, accounting for the temporal and scale variability present in human movements. The objective of this study was to develop a sensor-based framework for the detection and measurement of high-flexion postures frequently adopted in occupational settings. IMU-based joint angle estimates for the ankle, knee, and hip were time and scale normalized prior to being input to a multi-dimensional Dynamic Time Warping (mDTW) distance-based Nearest Neighbour algorithm for the identification of twelve postures. Data from 50 participants were divided to develop and evaluate the mDTW model. Overall accuracies of 82.3% and 55.6% were reached when classifying movements from the testing and validation datasets, respectively, which increased to 86% and 74.6% when adjusting for imbalances between classification groups. The highest misclassification rates occurred between flatfoot squatting, heels-up squatting, and stooping, while the model was incapable of identifying sequences of walking based on a single stride template. The developed mDTW model proved robust in identifying high-flexion postures performed by participants both included and precluded from algorithm development, indicating its strong potential for the quantitative measurement of postural adoption in real-world settings.

Keywords: accelerometer; dynamic time warping; gyroscope; high-knee flexion; inertial sensors; knee osteoarthritis; occupational ergonomics; posture classification.

PubMed Disclaimer

Conflict of interest statement

The authors declare no conflicts of interest. The funders had no role in the design of the study; in the collection, analyses, or interpretation of data; in the writing of the manuscript; or in the decision to publish the results.

Figures

Figure 1
Figure 1
Depiction of the 13 occupational-inspired motions performed in this study in their fully flexed position. Note that SS and SL are displayed to the left, however were additionally performed to the participant’s right.
Figure 2
Figure 2
Signal processing workflow for the mDTW kNN algorithm. The DTW distances for each joint were calculated between a single normalized trial (referred to as a movement sequence) and the normalized templates for the 12 movement classes included in the developed model. A smaller distance between the sequence and template would represent greater similarity between waveforms. Once each movement sequence had been compared to all templates for the corresponding joint and leg, the DTW distances were combined across joints using custom weighting factors such that the movement class would ultimately be determined based on the mDTW distance.
Figure 3
Figure 3
A representative unnormalized movement sequence SRKnee for the flexion angle of the right knee during a heels-up squatting (HS) motion trial (A) along with the corresponding heels-up squat template TRKnee generated from this sequence for the right knee (B).
Figure 4
Figure 4
Templates generated for heels-up squatting based on the right knee across all trials and participants, with mean and standard deviation curves overlayed in red.
Figure 5
Figure 5
Representative warping paths ix and iy derived during the calculation of DRKnee (C) based on only the right knee between the movement sequence SRKnee (A) and the template TRKnee (B) for a heels-up squatting motion trial. Each signal is warped such that the highest level of similarity between waveforms can be achieved. Note that in warping the signals, the length of the final sample may be longer than either original waveform. The dotted and solid lines represent the warped recreations of the movement sequence and template, respectively.

Similar articles

References

    1. Anderson J.J., Felson D.T. Factors associated with osteoarthritis of the knee in the first national health and nutrition examination survey (Hanes 1) Am. J. Epidemiol. 1988;128:179–189. doi: 10.1093/oxfordjournals.aje.a114939. - DOI - PubMed
    1. Felson D. Osteoarthritis as a disease of mechanics. Osteoarthr. Cartil. 2013;21:10–15. doi: 10.1016/j.joca.2012.09.012. - DOI - PMC - PubMed
    1. Yucesoy B., Charles L.E., Baker B., Burchfiel C.M. Occupational and genetic risk factors for osteoarthritis: A review. Work. 2015;50:261–273. doi: 10.3233/WOR-131739. - DOI - PMC - PubMed
    1. Andriacchi T.P., Mündermann A., Smith R.L., Alexander E.J., Dyrby C.O., Koo S. A framework for the in vivo pathomechanics of osteoarthritis at the knee. Ann. Biomed. Eng. 2004;32:447–457. doi: 10.1023/B:ABME.0000017541.82498.37. - DOI - PubMed
    1. Coggon D., Croft P., Kellingray S., Barrett D., McLaren M., Cooper C. Occupational physical activities and osteoarthritis of the knee. Arthritis Rheum. 2000;43:1443–1449. doi: 10.1002/1529-0131(200007)43:7<1443::AID-ANR5>3.0.CO;2-1. - DOI - PubMed

LinkOut - more resources