Abstract
This paper addresses the challenge of maintaining safety in robotic systems with unknown dynamics where initial safety certificates may be infeasible. We propose an online learning algorithm that combines Gaussian Process (GP) modeling with Control Barrier Functions (CBFs). Unlike traditional methods that require a pre-defined backup controller, our approach utilizes an "active feasibility recovery" mechanism. By acting optimistically under uncertainty, the system gathers critical data to restore the feasibility of safety constraints before reaching an unsafe state. We provide theoretical guarantees on safety maintenance and demonstrate the framework's efficacy in high-fidelity simulations of adaptive cruise control and quadrotor flight.
Introduction
In safety-critical control—such as autonomous driving or medical robotics—Control Barrier Functions (CBFs) serve as a mathematical "safety filter" to ensure a system remains within a defined safe set. However, the effectiveness of CBFs traditionally hinges on having a high-fidelity model of the system's dynamics. When the underlying physics are unknown or highly uncertain, the safety constraints can become "infeasible," meaning no control input can be mathematically guaranteed to prevent an unsafe transition.
While existing literature often assumes the presence of a "backup" safe controller to handle such uncertainty, this paper tackles the more realistic scenario where neither a prior model nor a backup controller is available. The goal is to learn the dynamics online and recover the feasibility of the safety certificate before the system violates its safety boundaries.
Methodology
The proposed framework treats safety as an integrated online learning and optimization problem consisting of four primary components:
1. Gaussian Process (GP) Modeling
The unknown system dynamics are modeled using GPs with composite kernels. This approach allows the system to learn the complex relationships between states, control inputs, and resulting motion while providing a formal, high-probability measure of model uncertainty (variance).
2. Robust CBF-SOCP
Rather than using a standard Quadratic Program (QP) for the safety filter, the authors formulate a Second-Order Cone Program (SOCP). This robust formulation explicitly accounts for the GP's model uncertainty, ensuring that the selected control input remains safe even in the worst-case scenario within a defined confidence interval.
3. Active Feasibility Recovery
When the SOCP becomes infeasible due to high uncertainty, the algorithm switches to an exploration mode inspired by Bayesian Optimization. It selects control inputs that maximize the optimistic time-derivative of the barrier function. This "probes" the environment to gather the most informative data in regions critical for safety.
4. Theoretical Guarantees
A key theoretical contribution is the proof that if the sampling frequency is sufficiently high, the system will always recover feasibility—learning enough about the dynamics to be safe—before it hits the boundary of the safe set. This relies on the fact that GP model error grows sublinearly, allowing learning to "outrun" the system's drift toward danger.
Experimental Evaluation
The algorithm was evaluated in two high-fidelity simulation environments:
- Adaptive Cruise Control (ACC): A vehicle must maintain a safe distance from a lead car while its own rolling resistance and engine dynamics are initially unknown.
- Quadrotor with Ground Effect: A drone flying in close proximity to the ground, where complex, height-dependent aerodynamic effects are unknown to the controller.
Key Results
The system demonstrated rapid feasibility recovery, taking approximately 6 seconds in the ACC simulation and only 2 seconds in the quadrotor simulation. Crucially, in all successful trials, the value of the barrier function $h(x)$ remained above zero, indicating that the system never entered an unsafe state during the learning process.
Compared to "Persistence of Excitation" (applying random inputs to learn), the "Active Recovery" approach showed a significantly lower failure rate. By targeting exploration toward safety-critical data, the system remains robust even at lower sampling frequencies where random exploration would fail.
Discussion and Future Work
While this framework eliminates the need for a hand-tuned backup controller, it currently assumes the safety set (the barrier function $h(x)$ itself) is known. Future research could explore learning the safe regions of the state space from scratch. Additionally, the theoretical bounds for required sampling rates are currently conservative; refining these bounds and testing on physical hardware with real-world sensor noise and latency remains a priority for future deployment.
Summary updated