Derivative-Free Online Learning of Inverse Dynamics Models

Diego Romeres, Mattia Zorzi, Raffaello Camoriano, Silvio Traversaro, Alessandro Chiuso

Abstract

This paper discusses online algorithms for inverse dynamics modeling in robotics. Several model classes, including rigid body dynamics models, data-driven models and semiparametric models, are placed in a common framework. While model classes used in the literature typically exploit joint velocities and accelerations, which needs to be approximated resorting to numerical differentiation schemes, in this paper, a new “derivative-free” (DF) framework is proposed, which does not require this preprocessing step. An extensive experimental study with real data from the right arm of the iCub robot is presented, comparing different model classes and estimation procedures, showing that the proposed DF methods outperform existing methodologies.

Introduction

In modern robotics, precise control depends on accurate inverse dynamics models. These models map the desired motion—defined by joint positions ($q$), velocities ($\dot{q}$), and accelerations ($\ddot{q}$)—to the necessary joint torques ($\tau$). While classical Rigid Body Dynamics (RBD) provides a physical foundation, it often fails to account for complex real-world effects like joint friction and cable flexibility.

Control architecture showing the inverse dynamics model $\mathcal{M}$ providing feedforward compensation within the robot control loop.

To bridge this gap, researchers have turned to data-driven methods. However, these typically require joint velocity and acceleration as inputs. Since most robots only provide raw position data, engineers must rely on numerical differentiation, which introduces significant noise and lag. This paper introduces a "derivative-free" (DF) framework that bypasses this limitation by learning directly from raw position histories.

Methodology: The Derivative-Free Framework

The core innovation lies in shifting from the standard state representation $[q, \dot{q}, \ddot{q}]$ to a window of past raw position measurements.

Semiparametric Modeling

The authors utilize a semiparametric approach that combines the "global" generalization of physics-based RBD models with the "local" precision of nonparametric Gaussian Processes (GPs). This hybrid structure ensures the model remains physically grounded while adapting to specific hardware idiosyncrasies.

Online Learning with Random Features

Standard GPs scale poorly with data size. To enable real-time, online learning, the authors employ Random Features (RF) to approximate the GP kernel. This transforms the problem into a linear model with a fixed number of parameters, allowing for efficient updates via Recursive Least Squares (RLS). This ensures that the computational cost remains constant regardless of how long the robot has been operating.

Derivative-Free Reduced Rank (DFR)

The DFR approach allows the model to "learn" its own internal representation of state from past positions. By optimizing the linear combination of these past measurements through Marginal Likelihood (ML) maximization, the system effectively develops its own optimal "differentiation" filters tailored to the specific noise characteristics of the sensors.

Experimental Validation

The proposed framework was validated using experimental data from the 4-degree-of-freedom (DOF) right arm of the iCub humanoid robot.

The right arm of the iCub humanoid robot used for experimental validation, highlighting the forearm, upper arm, and force-torque (FT) sensor.

Two primary datasets were used:

  1. XY-dataset: Horizontal circular tracking used for initial model training.
  2. XZ-dataset: Vertical circular tracking, introducing significant gravitational variations to test the model's online adaptation capabilities.

Key Results and Insights

The experimental results demonstrate that the derivative-free semiparametric models (specifically the SPK-ML-DFR variant) significantly outperform traditional methods.

  • 30% Error Reduction: The DF approach achieved an approximately 30% reduction in relative prediction error compared to standard schemes using numerical differentiation.
  • Robust Adaptation: The models successfully adapted to new dynamics (the XZ-plane) within 30 to 60 seconds of operation, minimizing transient errors.
  • ML vs. CV: The study found that Marginal Likelihood (ML) optimization is more robust than Cross-Validation (CV) for tuning hyperparameters in high-dimensional robotics tasks, as it better accounts for parameter uncertainty.

Conclusion

By eliminating the need for noisy numerical derivatives and leveraging the speed of random feature approximations, this derivative-free framework provides a robust path for online robot learning. Future work will focus on ensuring "physically consistent" parameter estimation and integrating these learned models into active, real-time control loops to further enhance trajectory tracking performance.

Summary updated

BibTeX
@article{romeres2020derivative,
  author = {Diego Romeres and Mattia Zorzi and Raffaello Camoriano and Silvio Traversaro and Alessandro Chiuso},
  title = {{Derivative-Free Online Learning of Inverse Dynamics Models}},
  journal = {IEEE Trans. Control. Syst. Technol.},
  year = {2020},
  url = {https://openreview.net/forum?id=OcS1ZeNzAX6},
}
Figure