Introduction
The proliferation of markerless motion capture technology has simplified the recording of human movement data. However, the analysis of this data remains a significant bottleneck in clinical settings, often requiring custom scripts for every specific metric or task. While multimodal Large Language Models (LLMs) have begun to integrate motion data, they frequently rely on graphics-oriented models like SMPL, which lack the biomechanical precision necessary for clinical applications. BiomechGPT addresses this gap by fine-tuning an LLM to be fluent in clinical biomechanics, enabling it to answer complex, clinically relevant questions about human motion.
Methodology
BiomechGPT treats human motion as a distinct modality that an LLM can process alongside text. The framework involves three primary stages:
- Biomechanical Reconstruction: Joint-angle trajectories are extracted using a clinically accurate model derived from OpenSim, capturing 34-dimensional movement data.
- Motion Tokenization: A 1D-convolutional Vector Quantized Variational Autoencoder (VQ-VAE) compresses continuous trajectories into discrete motion tokens.
- Multimodal Fine-Tuning: Using QLoRA, instruction-tuned LLMs (Gemma 1B and 4B) are fine-tuned on a vocabulary expanded with these motion tokens. This allows the model to process prompts containing both text and motion sequences to generate clinical insights.
Dataset and Clinical Tasks
The model was trained on a curated dataset comprising 34 hours of biomechanical data from 467 participants, including both able-bodied individuals and patients with impairments such as stroke, spinal cord injury, and lower-limb amputations. The dataset includes standard clinical assessments like overground walking and the Timed Up and Go (TUG) test. Approximately 27,000 prompt-answer pairs were generated, covering classification tasks (e.g., diagnosis, impairment detection) and regression tasks (e.g., walking speed, cadence).
Key Results and Insights
BiomechGPT demonstrates superior performance compared to traditional machine learning baselines. The 4B parameter model achieved high F1 scores across several classification tasks, including activity recognition (0.95) and impairment detection (0.88). Notably, the model also excelled at regression, showing strong correlations ($r \approx 0.90$) for continuous metrics like walking speed and cadence, despite being trained with a cross-entropy loss function typically used for discrete tokens.
A key insight from the study is the benefit of positive transfer learning: training on a diverse set of clinical tasks improved performance on individual tasks. This suggests that a unified foundation model can learn shared underlying features of human movement more effectively than narrow, task-specific models.
Limitations and Future Directions
While promising, BiomechGPT currently has limitations, including a lack of upper-body and hand biomechanics data. Additionally, like other LLMs, it is susceptible to hallucinations when encountering out-of-distribution movements and cannot yet express uncertainty. Future work will focus on expanding the dataset to include upper-limb tracking, improving the model's ability to provide differential diagnoses with confidence scores, and enabling multi-turn clinical chat interactions.
Summary updated