Back

GaitEncoder: A Foundation Model of Gait Kinematics for Diverse Clinical Applications and Pathologies

Magruder, R. D.; Gilon, S.; Falisse, A.; Uhlrich, S. D.

2026-07-09 rehabilitation medicine and physical therapy
10.64898/2026.07.07.26357479 medRxiv
Show abstract

Quantitative gait analysis could enhance personalized treatment for many movement-related conditions; however, it is not routinely integrated into clinical care. Advances in mobile sensing, such as smartphone-based motion capture, enable rapid clinical gait assessment, but extracting actionable insights remains challenging. Although machine learning models can support clinical decisions from gait data, they typically require costly task- and condition-specific datasets, which limits progress across various gait-related conditions. Here we present a generative foundation model of walking kinematics that enables various downstream clinical tasks across diverse patient populations using clinically accessible smartphone video-based gait analysis. We aggregated eight gait datasets comprising 657 individuals across seven unique pathologies. Using weakly-supervised learning, we trained a variational autoencoder to distill high-dimensional gait kinematics into a 16-dimensional learned latent representation. We demonstrate generalizability across four downstream clinical tasks spanning pathologies both seen and unseen during training, with and without model fine-tuning, including: 1) classification of neuromuscular disorders unseen during training, 2) predicting clinical severity scores for individuals with Parkinson's disease, 3) tracking of subacute recovery post-stroke, and 4) generating patient-specific kinematic changes following total hip arthroplasty. Our model also computes a deviation from mean unimpaired (DMU) score, an interpretable scalar metric that captures an individual's deviation from typical unimpaired gait, providing rapid, holistic quantification of impairment. This generalizable model provides a foundation for clinically actionable tools that translate mobile sensing-derived gait data into precise biomechanical insights for clinical research and decision-making. The open-source model is deployed in the cloud for automated smartphone video-based gait analysis on our freely available OpenCap platform.

Matching journals

The top 3 journals account for 50% of the predicted probability mass.

50% of probability mass above

"Similar papers" are the closest papers from that journal in the model's embedding space. They show what the match is built on, but the ranking comes mostly from a classifier over the whole training set, not from these examples alone.