AddBiomechanics: Automating model scaling, inverse kinematics, and inverse dynamics from human motion data through sequential optimization

Keenon Werling, Nicholas A. Bianco, Michael Raitor, Jon P. Stingel, Jennifer L. Hicks, Steven H. Collins, Scott L. Delp, C. Karen Liu

Abstract

Creating large-scale public datasets of human motion biomechanics could unlock data-driven breakthroughs in our understanding of human motion, neuromuscular diseases, and assistive devices. However, the manual effort currently required to process motion capture data and quantify the kinematics and dynamics of movement is costly and limits the collection and sharing of large-scale biomechanical datasets. We present a method, called AddBiomechanics, to automate and standardize the quantification of human movement dynamics from motion capture data. We use linear methods followed by a non-convex bilevel optimization to scale the body segments of a musculoskeletal model, register the locations of optical markers placed on an experimental subject to the markers on a musculoskeletal model, and compute body segment kinematics given trajectories of experimental markers during a motion. We then apply a linear method followed by another non-convex optimization to find body segment masses and fine tune kinematics to minimize residual forces given corresponding trajectories of ground reaction forces. The optimization approach requires approximately 3-5 minutes to determine a subject’s skeleton dimensions and motion kinematics, and less than 30 minutes of computation to also determine dynamically consistent skeleton inertia properties and fine-tuned kinematics and kinetics, compared with about one day of manual work for a human expert. We used AddBiomechanics to automatically reconstruct joint angle and torque trajectories from previously published multi-activity datasets, achieving close correspondence to expert-calculated values, marker root-mean-square errors less than 2 cm, and residual force magnitudes smaller than 2% of peak external force. Finally, we confirmed that AddBiomechanics accurately reproduced joint kinematics and kinetics from synthetic walking data with low marker error and residual loads. We have published the algorithm as an open source cloud service at AddBiomechanics.org, which is available at no cost and asks that users agree to share processed and de-identified data with the community. As of this writing, hundreds of researchers have used the prototype tool to process and share about ten thousand motion files from about one thousand experimental subjects. Reducing the barriers to processing and sharing high-quality human motion biomechanics data will enable more people to use state-of-the-art biomechanical analysis, do so at lower cost, and share larger and more accurate datasets.

Introduction

To study how humans move—whether for designing exoskeletons, treating neuromuscular diseases, or animating characters—researchers use optical motion capture (MoCap). However, raw MoCap data is essentially a cloud of moving dots. Converting these dots into a "digital twin" requires three difficult steps: scaling a generic skeletal model to match the subject’s unique dimensions, registering marker locations on the bones, and calculating joint angles and internal torques. Traditionally, this is a manual, iterative "expert-in-the-loop" process that makes large-scale biomechanical studies prohibitively expensive and difficult to reproduce.

Methodology

AddBiomechanics replaces the tedious manual work of processing motion capture data with a robust sequential optimization pipeline. The authors propose an approach that moves from simple geometric guesses to complex physical refinements.

Overview of the AddBiomechanics automated pipeline, showing the sequential optimization steps from data upload to final kinetic results.
  • Initialization: The system uses linear methods and geometric invariants (like functional joint centers) to create a high-quality initial guess for the subject's skeleton.
  • Bilevel Kinematic Optimization: Instead of solving for scaling and motion separately, the framework uses a non-convex bilevel optimization. It finds the best skeletal dimensions while simultaneously ensuring those dimensions allow for the most plausible motion.
  • Dynamic Consistency: To calculate joint torques, the model must obey physical laws. The system fits the center-of-mass trajectory to ground reaction forces and performs a final optimization to fine-tune segment masses and kinematics, minimizing "residual forces" (the mathematical corrections usually needed to make the physics work).

Validation and Results

The researchers validated AddBiomechanics against multiple sources, including running and multi-activity datasets, as well as synthetic walking data where "ground truth" joint angles and torques were known exactly.

  • Massive Speedup: Processing that traditionally took a human expert one day now takes 3-5 minutes for kinematics and under 30 minutes for full dynamics.
  • High Accuracy: The system achieved marker errors of less than 2 cm and residual force magnitudes smaller than 2% of peak external force, meeting or exceeding the gold standard thresholds used in the field.
  • Proven Utility: The open-source cloud service (AddBiomechanics.org) has already been used by hundreds of researchers to process over 10,000 motion files, demonstrating its potential to standardize data across different laboratories.

Discussion and Future Work

By removing the subjective expert from the loop, AddBiomechanics ensures that data processed in different labs can be directly compared, paving the way for "Big Data" in biomechanics. However, some limitations remain. The system assumes the body is a collection of rigid bones and does not currently account for soft tissue artifacts. Furthermore, the statistical priors used (ANSUR II) are based on military personnel; future work is needed to ensure the model performs equally well for diverse populations, such as children or those with significant physical deformities. Reducing the barriers to processing and sharing high-quality data will enable more researchers to use state-of-the-art biomechanical analysis at a lower cost.

Summary updated

BibTeX
@inproceedings{werling2023addbiomechanics,
  author = {Keenon Werling and Nicholas A. Bianco and Michael Raitor and Jon P. Stingel and Jennifer L. Hicks and Steven H. Collins and Scott L. Delp and C. Karen Liu},
  title = {{AddBiomechanics: Automating model scaling, inverse kinematics, and inverse dynamics from human motion data through sequential optimization}},
  booktitle = {PLoS},
  year = {2023},
  doi = {10.1371/journal.pone.0295152},
}
Figure