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 allows natural language interaction with raw biomechanics, and works with data collected from different sources.

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 recent advances in markerless motion capture have made it easier to record biomechanics in accessible 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 build motion tokenizers that convert motion into discrete tokens for a language model to process, and we extend the motion-language model framework to clinical motion analysis, a domain with diverse, well-defined questions that have precise ground truth and direct clinical meaning.

We use 71 hours of biomechanical data from 750 participants, many with movement impairments from causes such as stroke or lower-limb prosthesis use, performing tasks commonly used in clinical mobility assessment. To expand our training data, we designed a cross-format tokenizer that encodes motion from SMPL body models into a single shared representation. This let us pool our clinical dataset with the public HumanML3D dataset and share annotations between them. 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 handled ten clinical tasks at once, spanning both classification (activity, impairment, diagnosis, and assistive-device use) and regression (walking speed, cadence, and timed test scores). It worked well on data from both multi-camera systems and a single smartphone, showing the approach doesn't depend on how the movement was recorded. Performance rose steadily as we scaled up both model size and training data, including data pooled across different clinical recording setups and the general-purpose HumanML3D dataset. We report per-task performance and adidtionally, provided analysis on the effect of tokenization method.

These findings show that motion-language models can serve as a flexible, natural-language interface to biomechanical data, and that clinical motion understanding is a precise, measurement-grounded way to evaluate such models. We see this as a promising direction for rehabilitation and movement science. To support further research and clinical translation, we 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 each format into a shared motion codebook, and format-specific decoders reconstruct motion in 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: 4B model as training data expands from multi-camera, to multi- plus single-camera, to also adding HumanML3D (one-way ANOVA, p=0.007, **); evaluated on the multi-camera test set only, while all other panels use the combined test set.

Model scaling

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.