BiomechGPT: Extending Motion-Language Models to Clinical Motion Understanding

Ruize Yang1,2, Ann Kennedy3, R. James Cotton1,4

1Shirley Ryan AbilityLab
2Interdepartmental Neuroscience, Northwestern University 3Department of Neuroscience, The Scripps Research Institute 4Physical Medicine and Rehabilitation, Northwestern University Feinberg School of Medicine

BiomechGPT lets you ask clinically meaningful questions in natural-language over raw biomechanical motion data.

Summary

We present BiomechGPT, the first motion-language model built to answer detailed, clinically meaningful questions about how a person moves.

How someone moves carries rich information about their health, and accessible markerless motion capture now makes it easier to record biomechanics in clinical settings. But each clinical question, from measuring a gait parameter to suggesting a diagnosis, usually needs its own custom pipeline. Multi-modal language models offer a natural way to unify these tasks. We show that recent advances in motion-language modeling can be effectively translated to clinical movement analysis using accessible biomechanical data, and that clinical motion understanding in turn provides a precise, measurement-grounded benchmark for evaluating these models.

We trained BiomechGPT on 71 hours of clinical data from 750 participants, many with movement impairments from causes such as stroke or lower-limb prosthesis use, performing tasks common in clinical mobility assessment. As a second dataset, we used HumanML3D, a public general-purpose motion dataset. We built a cross-format tokenizer that embeds motion from heterogeneous body models into a shared latent space without requiring paired samples across formats, converting both biomechanical and SMPL-format motion into the same vocabulary for a language model to process. This let us pool training data from different sources and share annotations across them, directly addressing the scarcity of labeled clinical motion data and letting us study scaling effects.

On top of this, we built a large set of motion question–answer pairs to fine-tune the Gemma 3 language model. A single BiomechGPT model handles ten clinical tasks at once, spanning classification (activity, impairment, diagnosis, assistive-device use, and fall history) and regression (walking speed, cadence, and timed test scores). It performs competitively with non-language models, with clear advantages on activity recognition, walking cadence and speed prediction. It holds up strongly across biomechanics data from different clinical recording setups and follows instructions reliably. More importantly, performance improves steadily as we scale up both the base model and the training data, including data pooled from different sources. We characterize per-task performance and additionally, provide analysis on the effect of tokenization method.

BiomechGPT gives clinicians and researchers a natural-language interface to raw biomechanical data and offers evidence for a scalable path toward AI-supported movement analysis in rehabilitation and beyond. To support further research and clinical translation, we will release our full code and trained model checkpoints.

Model Overview

Stage 1: Cross-format tokenizer training. We trained a VQ-VAE-based tokenizer jointly on the Clinical dataset (in biomechanical model (Biom) format) and the HumanML3D dataset (in SMPL format). Format-specific encoders embed motion from one format into a shared motion codebook, and format-specific decoders reconstruct motion into both formats from the quantized tokens. A site-similarity loss compares site locations between the input motion and the cross-format decoded output (obtained via forward kinematics), enforcing the shared latent space. Stage 2: BiomechGPT training. We froze the tokenizer and used it to convert each motion trajectory into a sequence of discrete tokens. We then concatenated the motion tokens with a natural-language question prompt, and passed this to a Gemma 3 language model to fine-tune with QLoRA, producing a single model (BiomechGPT) trained to answer diverse clinical questions. (Snowflake and flame icons indicate frozen and trainable components, respectively.)

Model overview
 

Model Scaling

BiomechGPT performance improves with larger model and dataset sizes. Left: Sum of ten clinical task performances as model size increases, trained with (orange, dashed) and without (blue, solid) added HumanML3D data; lines are means over repeats, markers are repeats. Two-way ANOVA: significant effects of model size (p=0.003, **) and added HumanML3D data (p=0.011, *). Right: Sum of ten clinical task performances from a 4B model, as training data expands from multi-camera, to multi- plus single-camera, to also adding HumanML3D. One-way ANOVA: significant effects of training data size (p=0.007, **); evaluated on the multi-camera test set only, while other panels use the combined test set.

Model scaling

Supplementary Videos

Related Links

This builds off of a large body of work our lab has been doing in multiview markerless motion capture.

PosePipeline is an open-source package implementing state of the art computer vision models in a nicely organized database. You can find it on GitHub here.

Markerless Motion Capture and Biomechanical Analysis Pipeline describes our multi-camera data collection system and some early biomechanical analysis results.

Differentiable Biomechanics Unlocks Opportunities for Markerless Motion Capture uses the same end-to-end optimization strategy for multi-view RGB video.

Portable Biomechanics Laboratory is a secure platform for fitting biomechanical models to video collected with a handheld, moving, smartphone.