Learning-based Parameterized Barrier Function for Safety-Critical Control of Unknown Systems

Sihua Zhang, Di-Hua Zhai, Xiaobing Dai, Tzu-yuan Huang, Yuanqing Xia, Sandra Hirche

TL;DR

This paper introduces GP-P-HOCBF, a novel control framework that guarantees safety for systems with unknown disturbances and complex, high-order constraints. By combining Gaussian Process (GP) regression with parameterized high-order control barrier functions, the method dynamically shrinks the safe set to accommodate learning errors while offering a tunable parameter to prevent controller infeasibility under strict actuator limits.

What Problem Does This Paper Address?

In safety-critical robotics (like a robotic arm avoiding a human operator), controllers often use Control Barrier Functions (CBFs). CBFs act as mathematical shields, formulated within a real-time Quadratic Program (QP) optimization to ensure the system never leaves a designated "safe set."

However, real-world systems suffer from unmodeled dynamics and environmental disturbances. While robust variants of CBFs exist, they typically overcompensate for worst-case uncertainties. This rigid overcompensation frequently makes the underlying QP optimization infeasible—meaning the math breaks down because no control input can simultaneously satisfy both the strict safety bounds and the physical limits of the robot's actuators. This issue is magnified in complex systems with high "relative degrees" (where control inputs affect acceleration or jerk rather than velocity directly).

This paper tackles this exact trade-off: How can we guarantee absolute safety under unknown disturbances without causing the controller to lock up due to infeasibility?

Methods

The authors propose a learning-based framework consisting of two main pillars:

  1. Gaussian Process (GP) Regression with Deterministic Bounds: The unknown system disturbances are estimated online using GP regression. Instead of relying on standard probabilistic error bounds (which only guarantee safety most of the time), the authors utilize a state-independent, deterministic error bound ($\bar{\eta}$) to ensure zero safety violations.
  2. Parameterized High-Order CBFs (GP-P-HOCBF): Traditional robust methods add a heavy penalty term directly to the optimization constraints, which restricts the available control inputs. Instead, this paper introduces a parameterized barrier function $h^*(x)$ that pre-shrinks the safe set based on the GP's prediction error.

Crucially, they introduce a tunable function $\epsilon(\cdot)$ governed by a parameter $\lambda$. This allows engineers to smoothly balance the trade-off between safety margins and optimization feasibility.

Datasets

The method was evaluated using a simulated environment rather than a static public dataset:

  • Platform: A virtual 7-Degree-of-Freedom (DOF) Franka Emika manipulator simulated in CoppeliaSim.
  • Data Generation: The GP model was trained using a dataset of $M = 400$ samples of state-disturbance pairs collected from the system, with an engineered measurement noise boundary of $\sigma_v = 0.02$.

Key Insights and Ideas

  • Shifting the Burden: Traditional robust CBFs modify the derivative constraint of the safety function, directly choking the control input space. This paper shifts the burden to the safe set definition itself. By shrinking the set beforehand, the controller retains maximum maneuverability near the boundaries.
  • Flexibility Across Orders: For high-order systems, the framework allows designers to distribute the safety "shrinkage" across different derivatives (e.g., keeping the original position boundaries wide while tightening velocity or acceleration limits), providing immense design flexibility.
  • The Feasibility-Conservatism Knob: The parameter $\lambda$ serves as a practical engineering knob. A higher $\lambda$ reduces performance conservatism (allowing the robot to get closer to obstacles) but requires tighter safe set boundaries to mathematically guarantee safety under worst-case prediction errors.

Key Results

The framework was tested on a trajectory-tracking task requiring the robot's end-effector to avoid a spherical obstacle.

  • Standard HOCBF: Failed entirely, colliding with the obstacle because it could not account for the unmodeled disturbances.
  • GP-rHOCBF (Robust HOCBF): Maintained safety but completely violated the joint torque constraints (actuator saturation), which would cause physical hardware failure.
  • GP-P-HOCBF (Proposed): Successfully avoided the obstacle while strictly respecting the actuator limits.
The trajectory of the end-effector avoiding the obstacle (a) and the safety constraint function values over time (b).

As shown in the control input plot below, the robust baseline (blue) dips dangerously past the physical input constraint (-50), whereas the proposed method (red) safely respects the hardware limits.

Control input of the second joint, demonstrating that the proposed method respects actuator limits while the robust baseline fails.

Limitations and Future Work

  • Manual Tuning: The selection of the tuning function $\epsilon(\cdot)$ and the parameter $\lambda$ currently relies on manual engineering choices. Automatically optimizing this trade-off online remains an open challenge.
  • Computational Complexity: Standard GP regression scales poorly ($O(M^3)$) as the number of data points grows. For high-frequency, real-time robotic loops, integrating sparse GP approximations or localized learning will be necessary.

Summary updated

BibTeX
@inproceedings{zhang2024learning,
  author = {Sihua Zhang and Di-Hua Zhai and Xiaobing Dai and Tzu-yuan Huang and Yuanqing Xia and Sandra Hirche},
  title = {{Learning-based Parameterized Barrier Function for Safety-Critical Control of Unknown Systems}},
  booktitle = {CDC},
  year = {2024},
  doi = {10.1109/cdc56724.2024.10886097},
}
Figure