Introduction
Controlling a quadrotor drone is a deceptively complex task. While basic hovering and slow-speed maneuvers are well-handled by traditional physics-based models, "aggressive" or high-speed flight introduces non-linear aerodynamic effects—such as blade flapping and turbulent airflow—that are notoriously difficult to capture with standard equations. This research explores the use of simple feed-forward neural networks (NNs) to model these complex dynamics, demonstrating that a learning-based approach can significantly improve flight performance and generalize to unseen maneuvers.
The Challenge of Generalization
Existing learning-based approaches often struggle with generalization. Many models excel at a specific "stunt" through apprenticeship learning but fail when tasked with a slightly different trajectory. The goal of this work is to create a generalized dynamics model that can be learned from simple, decoupled data yet remain accurate enough to synthesize control for entirely new, complex trajectories involving simultaneous position and orientation changes.
Methodology
The researchers utilized a Crazyflie 2.0 nano-quadrotor as their experimental testbed. The system architecture is divided into two primary components: neural network modeling and control design.
Neural Network Modeling
The team trained two separate two-layer feed-forward NNs with Rectified Linear Unit (ReLU) activations:
- NN1 predicts linear acceleration (translation).
- NN2 predicts angular acceleration (rotation).
To ensure computational efficiency for real-time control, the networks were kept simple, featuring 100 hidden units and using only the current state as input. A critical feature engineering choice was feeding the sine and cosine of Euler angles into the NN rather than raw angles, allowing the model to understand the periodic nature of orientation (e.g., that 0 and $2\pi$ radians are identical).
Control Architecture
The control loop integrates the learned NN models with traditional control techniques. Sequential Convex Programming (SCP) is used for trajectory generation, finding a feasible reference path that accounts for the NN-predicted dynamics. For feedback control, a Linear Quadratic Regulator (LQR) is employed on a ground station, communicating with the drone's onboard PD controller.
Experimental Setup and Datasets
The researchers collected approximately 40 minutes (2,400 seconds) of flight data, yielding 240,000 samples. The training data consisted of "decoupled" motions: either pure translation (moving in planes without spinning) or pure rotation (spinning in place). Ground truth position and velocity were tracked via a VICON motion capture system at 100Hz, while orientation data came from the drone's onboard IMU at 250Hz.
The models were then tested on a "sinusoid-yaw" trajectory—a complex path where the drone moves in a wave pattern while simultaneously spinning. Crucially, the NN was never trained on this simultaneous motion, making it a rigorous test of the model's ability to generalize.
Key Results
The neural networks achieved high accuracy on unseen test data, with Mean Squared Errors (MSE) of approximately 0.13 for translation and 0.34 for rotation. This indicates that the models successfully captured the underlying dynamics without overfitting to the training set.
In the sinusoid-yaw test, the NN-based model demonstrated superior tracking performance compared to a "model-free" baseline (a standard LQR that ignores the NN's learned couplings). The model-free approach showed significant drift, particularly in the Y-axis and yaw, because it could not account for how the spinning motion affected lateral movement. In contrast, the NN model successfully inferred these non-linear interactions.
Discussion and Future Work
The most significant finding is that the NN learned the underlying physical couplings of flight. By training on simple data, the network correctly inferred how changes in yaw affect translational acceleration—a relationship often ignored in simplified linear models. This suggests that simplicity in architecture can be a feature; by avoiding complex recurrent models, the authors kept the optimization problem mathematically tractable for real-time flight.
Future research may explore "hybrid" modeling, where a standard physics model handles the well-understood dynamics while a neural network learns only the residual errors. Additionally, incorporating state history (e.g., via Recurrent Neural Networks) might help capture complex aerodynamic "memory" effects during high-speed maneuvers.
Summary updated