Abstract
This paper presents a risk-aware active learning framework for training deep neural networks (DNNs) to approximate computationally expensive trajectory optimizers. By oversampling critical "dangerous" states near obstacles, the proposed method enables high-performance, safety-critical control on resource-constrained hardware. The resulting controller is 50 times faster than traditional optimization methods, allowing for real-time deployment on a nano-quadcopter while maintaining zero collisions in complex dynamic environments.
Introduction
Real-time trajectory optimization, such as Model Predictive Control (MPC), is a cornerstone of modern robotics, enabling agile maneuvers and obstacle avoidance. However, these methods are often too computationally intensive for small-scale robots with limited processing power, such as the Bitcraze Crazyflie. While imitation learning offers a way to distill these complex solvers into efficient neural networks, standard supervised learning often fails in safety-critical scenarios due to the "safety gap"—where small approximation errors lead the robot into unfamiliar, dangerous states.
This work addresses this gap by introducing a risk-aware resampling strategy. By focusing the network's learning capacity on high-risk states, the authors develop a controller that combines the speed of deep learning with the safety guarantees of traditional optimization.
Methodology
The core of the approach is a four-stage pipeline designed to transition from offline expert optimization to on-board real-time execution.
- Expert Generation: An offline trajectory optimizer generates high-fidelity navigation data in a simulated warehouse environment.
- Risk-Aware Resampling: To ensure robustness, the dataset is reshaped through noise injection and rejection sampling. States within a 1-meter radius of obstacles are prioritized, forcing the DNN to learn recovery behaviors in critical regions.
- DNN Training: A feed-forward neural network is trained using Mean Squared Error (MSE) loss on the reshaped dataset.
- On-board Deployment: The trained policy is implemented in C and executed on the quadcopter's STM32 microcontroller (168MHz, 192kb RAM).
Experimental Evaluation
The system was evaluated in a "Warehouse Scenario" featuring moving obstacles that simulate unpredictable human movement. Training data consisted of approximately 500,000 state-action pairs.
Key Results
The risk-aware DNN demonstrated significant improvements over baseline methods:
- Computational Efficiency: The DNN policy evaluated in approximately 1 ms, making it over 50 times faster than the 50 ms required by the iterative solver.
- Safety Performance: In a three-obstacle simulation, the risk-aware DNN achieved zero collisions, significantly outperforming standard supervised learning (49 collisions) and the DAGGER algorithm (9 collisions).
- Real-World Validation: Flight tests on a Crazyflie quadcopter confirmed the policy's ability to maintain a minimum safety buffer of 0.8 meters while dodging human obstacles in real-time.
Discussion and Insights
A primary insight of this research is that not all errors are equal in robotics. While standard MSE treats all deviations uniformly, risk-aware resampling effectively reweights the loss function to prioritize safety in proximity to obstacles. This "optimizer-agnostic" approach allows for the use of any high-quality solver for data generation without the implementation complexities of methods like Guided Policy Search.
Conclusion and Future Work
This work proves that sophisticated, safety-critical deep learning policies can be deployed on extremely low-power hardware. Future research will focus on addressing memory bottlenecks through sparser network architectures and automating the heuristic tuning of resampling parameters to further generalize the approach to more diverse robotic platforms.
Summary updated