Introduction
Accurate 3D tracking of animal movement is a cornerstone of modern ethology and neuroscience. While deep learning tools like DeepLabCut have transformed 2D tracking, extending these methods to 3D remains challenging due to occlusions, varying lighting, and the difficulty of obtaining ground-truth data. We present GIMBAL (GeometrIc Manifolds for Body Articulation and Localization), a hierarchical Bayesian model that integrates skeletal and temporal constraints to refine 3D pose estimation from noisy video data.
The Challenge of 3D Tracking
Standard 3D triangulation methods often treat anatomical keypoints as independent entities. In practice, this leads to "impossible" poses—such as anatomically incorrect joint angles or unrealistic limb lengths—when camera views are obstructed. Animals possess rigid skeletal structures and move in predictable patterns; ignoring these physical constraints results in significant tracking errors in complex environments.
The GIMBAL Framework
GIMBAL addresses these issues by modeling the animal’s body as a tree-structured manifold of "pose states." The core of the approach is a hierarchical von Mises-Fisher-Gaussian (vMFG) model.
The model hierarchy incorporates several key constraints:
- Spatial and Directional Priors: Each keypoint is defined relative to a "parent" in a skeletal tree. GIMBAL uses the von Mises-Fisher (vMF) distribution to model the likelihood of joint angles, ensuring that estimated poses remain anatomically plausible.
- Pose States: The model assumes the animal transitions through discrete behavioral states (e.g., walking, rearing). Each state provides a specific set of directional priors, allowing the model to "anticipate" limb configurations.
- Temporal Dynamics: A Markov model ensures smooth transitions over time, mitigating high-frequency jitter common in raw deep learning outputs.
- Robust Observation: The model explicitly identifies and discounts outliers in the 2D input data, such as mislabeled keypoints or tracking glitches.
A key technical innovation is the exploitation of conjugacy between vMF and Gaussian densities, which enables efficient Bayesian inference via a hybrid MCMC algorithm combining Hamiltonian Monte Carlo and Gibbs sampling.
Experimental Validation
The model was evaluated using a dataset of a freely-behaving rodent recorded by six calibrated cameras. Ground truth was established using 12 infrared motion capture (MOCAP) cameras and retroreflective markers, providing a high-fidelity benchmark for 20 anatomical keypoints.
Results and Discussion
GIMBAL significantly outperformed existing state-of-the-art methods. It achieved a Mean Position Error (MPE) of 7.16 mm, a notable improvement over DANNCE (9.25 mm) and DLC-3D (11.41 mm).
The improvement was most pronounced for frequently occluded joints. For instance, the error for the left knee keypoint was reduced by up to 50 mm compared to methods lacking directional priors. Furthermore, the model successfully recovered distinct behavioral states and heading directions directly from the pose dynamics.
While GIMBAL currently relies on a tree-structured skeleton and discrete pose states, it represents a major step forward in robust 3D tracking. Future iterations may explore continuous pose representations and "plug-and-play" skeletal parameters to broaden its applicability across species without requiring extensive MOCAP calibration.
Summary updated