TL;DR
The authors introduce OstrichRL, a highly realistic, 3D musculoskeletal simulation of an ostrich developed within the fast MuJoCo physics engine. By combining anatomical data from CT scans and dissections with deep reinforcement learning (RL), this work bridges the gap between biomechanics and robotics, providing a high-speed benchmark for studying complex, overactuated bipedal locomotion.
What Problem Does This Paper Address?
Understanding how complex biological systems use muscles to move is a long-standing challenge spanning biomechanics, robotics, and neuroscience. Historically, biomechanics researchers have relied on simulators like OpenSim. While highly accurate, OpenSim uses iterative algorithms for tendon routing, making it too computationally slow for modern deep RL methods that require millions or billions of samples. Conversely, the RL and robotics communities typically use simplistic, torque-controlled models (like standard humanoids or the Cassie robot) that lack biological realism, such as muscle-tendon dynamics and overactuation.
To address this, the authors developed a realistic animal model capable of fast simulation. They chose the ostrich (Struthio camelus) because it is the fastest terrestrial biped and a remarkably economical runner, making it the perfect biological blueprint for studying efficient bipedal locomotion.
Methods
The creation of OstrichRL followed an iterative workflow blending empirical biological data with physics simulation and deep RL:
- Anatomical Data Acquisition: The team performed CT scans on a 96.5 kg adult male ostrich to generate accurate 3D polygonal meshes of the skeleton and calculate body segment inertia. They also conducted physical dissections to map muscle properties (mass, pennation angles, tendon lengths, and fiber lengths) for the neck and rib cage.
- Biomechanical Modeling: An existing OpenSim leg model was converted into MuJoCo. The final full-body model features 50 hinge joints (7 per leg, 36 in the neck) actuated by 120 muscles (68 in the legs, 52 in the neck). The muscles are modeled using a Hill-type actuator model that accounts for non-linear force-length-velocity relationships.
- Motion Capture Denoising: To utilize real ostrich motion capture (mocap) data, which frequently suffered from marker occlusions due to feathers, the authors trained a bidirectional LSTM as a denoising autoencoder to predict missing marker coordinates. These coordinates were then mapped to joint angles using a custom differentiable kinematics function implemented in TensorFlow.
- Reinforcement Learning Control: To train the model, the authors utilized a TD4 agent (a hybrid of TD3 and D4PG) paired with Ornstein-Uhlenbeck exploration noise, which proved vital for handling the highly correlated nature of muscle excitations.
Datasets
- Ostrich Kinematics Dataset: Sourced originally from Jindrich et al. (2007), consisting of 82 clips recorded at 240 Hz capturing ostriches performing cutting maneuvers. After cleaning, 35 high-quality clips and one engineered cyclic running clip were released.
- Emu Electromyography (EMG) Data: Sourced from Cuff et al. (2019), containing experimental muscle activity data from emus (close relatives to the ostrich). This was used as a biological ground truth to validate the simulation's muscle activation patterns.
Key Insights and Ideas
- MuJoCo is a Game-Changer for Biomechanics: By utilizing MuJoCo's closed-form tendon routing instead of OpenSim's iterative solver, the simulation ran roughly 600 times faster, making deep RL viable for complex musculoskeletal systems.
- The Overactuation Trap: Muscles present an overactuated control problem (more actuators than degrees of freedom). When trained on a simple "run forward" reward without constraints, the agent found unnatural, suboptimal gaits (e.g., bending its toes backward).
- Imitation as Regularization: Tracking reference motion capture data acted as a powerful regularizer, forcing the RL agent to discover natural, biologically plausible movement strategies.
- Cross-Species Validation Works: Using emu EMG data to validate an ostrich model proved highly effective, confirming that ratite locomotion strategies are evolutionarily conserved.
Key Results
- Task Success: The OstrichRL agent successfully learned three distinct tasks: unconstrained forward running, precise tracking of the 35 motion capture clips (walking, turning, standing), and neck control (pointing the beak at random targets).
- Biological Accuracy: When comparing the simulated muscle excitations against real emu EMG data, the model demonstrated broadly similar stance and swing phase patterns. However, because unnecessary muscle excitations were not penalized in the reward function, the simulation exhibited extra "unnecessary" muscle bursts (e.g., in the gastrocnemius lateralis).
- Cassie Compatibility: The authors successfully mapped the ostrich mocap data onto the Cassie robot model. While Cassie struggled with strict tracking due to its rigid rod constraints, it successfully solved the "run forward" task, even achieving slightly faster speeds than the musculoskeletal ostrich model.
Limitations and Future Work
- MuJoCo's Muscle Compromise: To achieve its 600x speedup, MuJoCo omits a stateful elastic component in its muscle model, meaning tendon slack length is approximated via rigid length ranges rather than dynamic elasticity.
- Energy and Fatigue Regularization: Unconstrained tasks still yield unrealistic movements. The authors note that incorporating metabolic cost, energy efficiency, or muscle fatigue models (e.g., Potvin & Fuglevand) is a crucial next step to constrain muscle excitations naturally.
- Expanded Environment Complexity: Future work will focus on developing tasks for agile maneuvers, such as jumping or navigating rough, un-even terrain.
Summary updated