One-minute overview
A differentiable MuJoCo model maps estimated joint parameters to 3D virtual markers. The system projects those markers back into each camera and fits the trajectory and subject-specific body parameters using the 2D markerless detections. Camera rotations and translations can also be refined during fitting.
The study connects video measurements directly to a biomechanical skeleton. It reports how closely the skeleton's reprojections match image detections and how estimates of gait compare with an independent instrumented walkway.
Problem, inputs and outputs
A conventional markerless pipeline often estimates a 3D keypoint trajectory before fitting a biomechanical model. Errors in the intermediate trajectory can then carry into the inverse-kinematics step. Optimizing reprojection through the biomechanical model lets the original image evidence constrain the motion and body parameters together.
Inputs
- Synchronized RGB videos with camera intrinsics and extrinsics
- 2D body keypoint detections and estimated confidence across views
- An initial biomechanical model with joint limits and body-attached virtual markers
Outputs
- A time-varying 3D biomechanical pose and virtual marker trajectory
- Estimated segment scales and subject-specific marker offsets
- Refined camera extrinsics when bundle adjustment is enabled
Author figure

Figure 1 · Figure 1 visualizes the method's reprojection residual. Each crop is a camera view. Red dots are detected image keypoints and blue dots are virtual model markers projected from the fitted 3D skeleton. The distance between each corresponding red and blue point is the residual used by the optimizer. This method visualization illustrates that residual. The full optimization is described in the Methods section.
Figure credit · R. James Cotton
Method pipeline
Detect the person and keypoints across calibrated views
Select the person of interest and estimate 2D keypoints on each frame with MeTRAbs-ACAE. Use detection stability across augmented versions of the image to estimate a confidence weight for each keypoint.
Represent motion as a function of time
Encode time with sinusoidal features and learn a multilayer perceptron that predicts pose parameters. Apply joint-range limits and run differentiable forward kinematics to obtain the corresponding world-space locations of virtual markers.
Fit motion and subject parameters to the images
Project model markers into the cameras and minimize a confidence-weighted Huber loss on their separation from the detected 2D points. Adjust subject scale and marker offsets across the trial fits. Optionally refine extrinsic camera rotation and translation through bundle adjustment.
Refine base marker positions across participants
A further optimization stage shares base marker locations across subjects, while preserving each participant's distinct scales and trial trajectories. Heel markers on the base model stay fixed during this step.
Key design choices
Fit directly against image observations
Joint trajectories bend within the model's kinematic constraints while the optimizer sees detection errors in every camera. Compared with fitting a skeleton to an already reconstructed marker trajectory, the image-space evidence stays available throughout optimization.
Share anatomy across repeated trials
Motion parameters vary over time, while segment scales and virtual marker offsets are shared for an individual. The study also tests whether shared base marker adjustments can improve the initialization for different individuals.
Reading the experiments
- Datasets and splits
- The study uses a custom synchronized multi-camera gait collection with controls and participants from several clinical populations. An instrumented GaitRite walkway provides independent footfall measurements for evaluating spatial gait parameters. Reprojection comparisons with the previous pipeline use the 851 trials for which those reconstructions exist.
- Baselines
- The previous pipeline estimates virtual marker trajectories and then fits a biomechanical model in nimblephysics. The new fitting approach is evaluated with LocoMujoco and MyoSkeleton, both with and without bundle adjustment.
- Metrics and units
- GC5 measures the fraction of sufficiently confident detected keypoints whose model reprojections lie within five pixels. Step length, stride length, and step width use a normalized interquartile range of the error against walkway measurements, in millimeters. That statistic measures the spread of errors.
- Key results
- In Table II, LocoMujoco's GC5 increases from 0.70 to 0.72 with bundle adjustment. Its normalized interquartile range for step-length error changes from 13.00 to 12.57 mm. Table I reports a stride-length error spread of 8.1 mm in controls and 10.2 mm in the neurologic group.
- Trade-offs
- Refining extrinsics can improve fit to the image detections, while those detections remain an imperfect reference. The walkway results provide a separate check for spatial gait parameters. The paper aligns the two recording systems before comparing their footfall measurements.
Limitations and applicability
Author-reported limitation
The author reports that GPU memory limited base-marker optimization to 31 participants with two trials each. The fitted elbow marker could move forward of its expected location and bias the corresponding joint angles. The author also notes that the modeled heel point differs anatomically from the pressure location estimated by the walkway.
Editorial assessment
Editorial reading. A low 2D residual shows agreement with the detector and fitted cameras. It does not establish 3D joint-angle accuracy. The walkway measures selected footfall outcomes, so the two evaluations do not independently validate the whole-body motion trajectory.
Sources and reading guide
The experiments are author-reported. The analysis labels editorial observations separately.