Skip to main content
QUICK REVIEW

[Paper Review] Online Dynamics Learning for Predictive Control with an Application to Aerial Robots

Tom Z. Jiahao, Kong Yao Chee|arXiv (Cornell University)|Jul 19, 2022
Advanced Control Systems OptimizationEngineering7 citations
TL;DR

This paper proposes KNODE-MPC-Online, an online dynamics learning framework that continuously refines a knowledge-based neural ordinary differential equation (KNODE) model during deployment for model predictive control (MPC) in aerial robots. By leveraging transfer learning-inspired techniques and lightweight neural networks to learn residual dynamics, the method achieves 55.1% lower median MSE in trajectory tracking compared to nominal MPC under mid-flight mass disturbances, demonstrating superior adaptiveness and robustness in real-world quadrotor experiments.

ABSTRACT

In this work, we consider the task of improving the accuracy of dynamic models for model predictive control (MPC) in an online setting. Although prediction models can be learned and applied to model-based controllers, these models are often learned offline. In this offline setting, training data is first collected and a prediction model is learned through an elaborated training procedure. However, since the model is learned offline, it does not adapt to disturbances or model errors observed during deployment. To improve the adaptiveness of the model and the controller, we propose an online dynamics learning framework that continually improves the accuracy of the dynamic model during deployment. We adopt knowledge-based neural ordinary differential equations (KNODE) as the dynamic models, and use techniques inspired by transfer learning to continually improve the model accuracy. We demonstrate the efficacy of our framework with a quadrotor, and verify the framework in both simulations and physical experiments. Results show that our approach can account for disturbances that are possibly time-varying, while maintaining good trajectory tracking performance.

Motivation & Objective

  • To improve the adaptiveness of model predictive control (MPC) in aerial robots by enabling online learning of dynamic models during deployment.
  • To address the limitation of offline-trained models that fail to adapt to time-varying disturbances or model errors encountered in real-world operation.
  • To develop a sample-efficient, real-time capable framework that continuously improves dynamic model accuracy using streaming sensor data.
  • To demonstrate the effectiveness of online dynamics learning in both simulation and physical experiments with a quadrotor.
  • To enable MPC controllers to maintain high trajectory tracking performance despite unforeseen system changes, such as mid-flight mass perturbations.

Proposed method

  • The framework employs knowledge-based neural ordinary differential equations (KNODEs) to model residual dynamics, combining physical priors with data-driven learning.
  • A transfer learning-inspired adaptation strategy is used to update the KNODE model incrementally using newly collected data during flight.
  • The dynamic model is refined online using a sliding window of recent measurements, with a neural network queue size of p=3 and data collection interval of t_col=2s.
  • The online model is integrated into an MPC controller that generates acceleration commands, which are then passed to a lower-level controller for actuation.
  • The system uses a hierarchical control architecture with VICON-based position feedback and onboard IMU for velocity and acceleration estimation.
  • The framework is implemented on a Crazyflie quadrotor using CrazyROS and communicates via Crazyradio PA at 400 Hz for real-time control.

Experimental results

Research questions

  • RQ1Can online dynamics learning improve MPC performance in aerial robots when faced with time-varying disturbances not present in offline training data?
  • RQ2How does the proposed online KNODE-based model adaptation compare to offline learning and baseline MPC in terms of trajectory tracking accuracy under mass perturbations?
  • RQ3To what extent can the online framework reduce tracking error and variance across multiple flight runs compared to offline and nominal control methods?
  • RQ4What is the sample efficiency of the online learning framework in real-world deployment with limited data availability?
  • RQ5Can the framework maintain consistent performance across all three spatial axes (x, y, z) when disturbances affect only certain degrees of freedom?

Key findings

  • KNODE-MPC-Online achieved a 55.1% reduction in median trajectory tracking mean squared error (MSE) compared to nominal MPC under mid-flight mass perturbations.
  • The proposed method reduced MSE by 21.3% compared to the offline KNODE-MPC baseline, indicating superior adaptability to unmodeled disturbances.
  • The framework achieved a 43.2% improvement in MSE over a geometric controller, demonstrating its effectiveness in handling complex, time-varying dynamics.
  • KNODE-MPC-Online showed lower variance in tracking performance across 40 experimental runs, indicating consistent and robust control performance.
  • The offline KNODE-MPC model performed poorly in the x and y axes despite compensating in the z-axis, suggesting it failed to generalize to disturbances not present in training data.
  • The online framework successfully adapted to disturbances in all three axes, particularly excelling in the x and y planes where the offline model failed.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.