OstrichRL: A Musculoskeletal Ostrich Simulation to Study Bio-mechanical Locomotion

Vittorio La Barbera, Fabio Pardo, Yuval Tassa, Monica Daley, Christopher Richards, Petar Kormushev, John Hutchinson

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.

Figure 1: The proposed musculoskeletal model is based on data collected from real ostriches, while the Cassie robot provides a robotic approximation of the morphology of an ostrich.

Methods

The creation of OstrichRL followed an iterative workflow blending empirical biological data with physics simulation and deep RL:

Figure 2: The workflow used to build the ostrich model. Various sources of data were blended together for the modeling part, and tasks helped in fine-tuning muscle strength and joint limits.
  1. 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.
  2. 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.
  3. 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.
  4. 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.
Figure 3: The skeleton of the model follows a tree structure of bodies and joints. The muscle routing is defined using waypoints, shown in green on the left. The joints are shown in light blue in the middle. The wrapping geometries are shown in blue on the right (some wrapping geometries have been omitted for clarity).

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

Abstract

Muscle-actuated control is a research topic that spans multiple domains, including biomechanics, neuroscience, reinforcement learning, robotics, and graphics. This type of control is particularly challenging as bodies are often overactuated and dynamics are delayed and non-linear. It is however a very well tested and tuned actuation mechanism that has undergone millions of years of evolution with interesting properties exploiting passive forces and efficient energy storage of muscle-tendon units. To facilitate research on muscle-actuated simulation, we release a 3D musculoskeletal simulation of an ostrich based on the MuJoCo physics engine. The ostrich is one of the fastest bipeds on earth and therefore makes an excellent model for studying muscle-actuated bipedal locomotion. The model is based on CT scans and dissections used to collect actual muscle data, such as insertion sites, lengths, and pennation angles. Along with this model, we also provide a set of reinforcement learning tasks, including reference motion tracking, running, and neck control, used to infer muscle actuation patterns. The reference motion data is based on motion capture clips of various behaviors that we preprocessed and adapted to our model. This paper describes how the model was built and iteratively improved using the tasks. We also evaluate the accuracy of the muscle actuation patterns by comparing them to experimentally collected electromyographic data from locomoting birds. The results demonstrate the need for rich reward signals or regularization techniques to constrain muscle excitations and produce realistic movements. Overall, we believe that this work can provide a useful bridge between fields of research interested in muscle actuation.
BibTeX
@misc{barbera2021ostrichrl,
  author = {Vittorio La Barbera and Fabio Pardo and Yuval Tassa and Monica Daley and Christopher Richards and Petar Kormushev and John Hutchinson},
  title = {{OstrichRL: A Musculoskeletal Ostrich Simulation to Study Bio-mechanical Locomotion}},
  year = {2021},
  eprint = {2112.06061},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2112.06061},
}
Figure