Neural Network Dynamics Models for Control of Under-actuated Legged Millirobots

Anusha Nagabandi, Guangzhao Yang, Thomas Asmar, Gregory Kahn, Sergey Levine, Ronald S. Fearing

Introduction

Millirobots—palm-sized, bio-inspired legged machines—offer significant advantages for search-and-rescue and exploration due to their agility and low production costs. However, their control remains a significant challenge. These robots are typically "under-actuated," meaning they possess fewer motors than degrees of freedom, and operate at high speeds where dynamics become highly non-linear and ground-contact physics are complex.

The Challenge of Under-actuated Control

Traditional control strategies often rely on hand-engineered models, such as the spring-loaded inverted pendulum. While useful for steady-state locomotion on flat surfaces, these simplified models frequently fail during high-speed maneuvers or when encountering irregular terrain. A controller optimized for a smooth floor often loses stability on gravel or turf. The central challenge lies in developing a control system that is expressive enough to capture these complex dynamics while remaining efficient enough to learn from minimal real-world data.

Methodology: Image-Conditioned Dynamics

To address these challenges, researchers at UC Berkeley proposed a model-based reinforcement learning approach that learns dynamics directly from experience. The system consists of two primary components: an image-conditioned dynamics model and a Model Predictive Control (MPC) framework.

Image-Conditioned Dynamics Model

Rather than relying on explicit physics equations, the system trains a neural network to predict the robot's next state ($\Delta s_t$) based on its current state ($s_t$), the action taken ($a_t$), and an image of the terrain ($I_t$).

Neural network architecture for the image-conditioned dynamics model.

To maintain sample efficiency, the vision system is not trained from scratch. Instead, it utilizes a pre-trained AlexNet (trained on ImageNet) to extract features from the robot's onboard camera. A critical technical detail is the fusion of these visual features with the state-action vector. By using an outer product rather than simple concatenation, the model is forced to learn higher-order interactions between the visual texture of the terrain and the robot's physical response. This allows the image to act as a latent context that shifts the dynamics model—learning, for instance, that specific visual patterns correspond to increased leg slippage.

Model Predictive Control (MPC)

At each time step, the robot employs the learned model to simulate the outcomes of hundreds of potential action sequences using a random-sampling shooting method. The sequence that minimizes the cost relative to a user-defined path is selected. The robot executes the first action in this sequence and then repeats the optimization process, allowing for continuous correction.

Experimental Setup and Data

The approach was validated using the VelociRoACH platform. Training data was collected across four distinct terrains: styrofoam, carpet, gravel, and turf. Remarkably, the system required only about 17 minutes (10,000 data points) of random trajectory data per terrain to achieve high performance. By leveraging ImageNet for pre-training, the robot can recognize visual textures without the need for massive, robot-specific visual datasets.

Key Results

The learned model-based controller demonstrated significant improvements over traditional methods. On carpeted surfaces, it outperformed standard differential drive controllers at high speeds, where roll oscillations typically make steering unpredictable.

The millirobot successfully following paths across diverse terrains including gravel, carpet, and turf.

A "naive" model trained across all terrains without visual conditioning performed poorly, as it attempted to find a single average physics model for disparate environments. In contrast, the image-conditioned model performed nearly as well as specialized models trained on single terrains, proving that it successfully utilized visual cues to adapt its movement strategy. The system successfully guided the VelociRoACH along complex "zigzag" and circular paths across all tested surfaces.

Discussion and Future Work

While successful, several avenues for improvement remain. Currently, computation is performed off-board via a radio link; future iterations will focus on optimizing these models for onboard microcontrollers to achieve true autonomy. Additionally, while the model is accurate for short-term predictions, it suffers from drift over longer horizons. Finally, moving from a static model to one that performs "online" adaptation would allow the robot to handle mechanical wear or entirely novel environments in real-time.

Summary updated

BibTeX
@misc{nagabandi2017neural,
  author = {Anusha Nagabandi and Guangzhao Yang and Thomas Asmar and Gregory Kahn and Sergey Levine and Ronald S. Fearing},
  title = {{Neural Network Dynamics Models for Control of Under-actuated Legged Millirobots}},
  year = {2017},
  eprint = {1711.05253},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1711.05253},
}
Figure