Learning Feasibility Constraints for Control Barrier Functions

Wei Xiao, Christos G. Cassandras, Calin A. Belta

Abstract

In safety-critical control, Control Barrier Functions (CBFs) are widely used to ensure system safety through Quadratic Program (QP) optimization. However, these systems often encounter "infeasibility"—states where physical limits and safety constraints conflict, leaving the controller with no valid solution. This paper presents a machine learning framework that identifies the boundaries of the safe-and-feasible state space. By training a Support Vector Machine (SVM) classifier on sampled trajectories, the authors derive a new feasibility constraint that is integrated into the real-time control loop. Experimental results demonstrate that this approach significantly reduces controller failure rates, particularly in environments with complex geometries and high relative degree dynamics.

Introduction

Modern autonomous systems, from self-driving cars to industrial robots, rely on real-time optimization to balance performance goals with safety requirements. Control Barrier Functions (CBFs) have emerged as a powerful tool for this task, providing a mathematical framework to guarantee safety by constraining the system's control inputs. These constraints are typically solved using a Quadratic Program (QP) at every time step.

Despite their theoretical elegance, CBFs face a significant practical hurdle: the infeasibility problem. Infeasibility occurs when the set of safe control actions becomes empty, often because the system has entered a state from which it is physically impossible to avoid a collision given actuator limits (e.g., a vehicle traveling too fast to stop before an obstacle). This issue is exacerbated in high relative degree systems and environments with irregular obstacles, where the "safe" region is non-convex and difficult to define analytically.

Methodology

The proposed method addresses infeasibility by proactively learning the boundaries of the feasible state space and treating this boundary as an additional safety constraint.

1. Sampling and Labeling

To map the feasibility boundary, the authors employ a sampling-based approach. For a given obstacle geometry, the system generates a wide range of initial states—varying positions, velocities, and orientations. Each state is then simulated forward in time using the standard control logic. A state is labeled feasible (+1) if the QP remains solvable throughout the simulation horizon and infeasible (-1) if the optimization fails at any point. This process creates a binary dataset representing the limits of the controller's capabilities.

2. Classifier Training and Boundary Definition

The authors utilize a Support Vector Machine (SVM) with a polynomial kernel to process the labeled data. The SVM finds the optimal hyperplane that separates feasible states from infeasible ones. This learned boundary represents the "edge of safety." To ensure the model is robust, a recursive feedback training loop is implemented: the system identifies regions where the classifier is uncertain, collects additional samples in those specific areas, and retrains the model until the error rate falls below a predefined threshold.

3. Integration with Control Barrier Functions

The learned SVM boundary is converted into a High-Order Control Barrier Function (HOCBF). This new "feasibility constraint" is added to the robot's real-time QP. Unlike standard CBFs that only react to the proximity of an obstacle, this learned constraint prevents the robot from entering states that would eventually lead to unavoidable failure. By operating in relative coordinates (distance and speed relative to the obstacle), the learned constraint generalizes across different positions in the environment.

Experimental Results

The methodology was evaluated across three distinct simulation scenarios: regular circular obstacles, irregular "trap" obstacles, and dynamic overtaking maneuvers.

  • Reliability Improvements: In the case of regular obstacles, the introduction of the learned feasibility constraint reduced the infeasibility rate from 6.65% to a mere 0.04% after three iterations of feedback training.
  • Navigating Complex Geometries: For irregular obstacles—complex shapes formed by overlapping circles—the classifier achieved 92.5% accuracy. This allowed the controller to navigate local traps that typically cause standard CBF-based controllers to fail due to the "dead-end" nature of the state space.
  • Generalization and Dynamics: The relative-coordinate approach proved highly robust, maintaining 100% accuracy even when tested on states outside the initial training distribution. Furthermore, the system successfully managed a high-speed overtaking scenario with tight control limits, maintaining feasibility where traditional methods would have reached a mathematical stalemate.

Discussion and Conclusion

This research highlights that safety in autonomous systems is inherently state-dependent; it is a function of both geometry and system dynamics. By shifting from a reactive safety posture to a proactive feasibility-aware posture, the proposed method bridges the gap between high-level planning and low-level control.

Limitations and Future Work

While effective, the current approach requires offline training for specific obstacle "types." If a robot encounters a geometry significantly different from its training set, the feasibility boundary may be inaccurate. Future research will focus on online learning techniques to allow robots to adapt to novel environments in real-time. Additionally, incorporating sensor noise and environmental uncertainty into the feasibility model remains a critical step for deployment on physical hardware.

Summary updated

BibTeX
@inproceedings{xiao2023learning,
  author = {Wei Xiao and Christos G. Cassandras and Calin A. Belta},
  title = {{Learning Feasibility Constraints for Control Barrier Functions}},
  booktitle = {ECC},
  year = {2023},
  doi = {10.23919/ecc57647.2023.10178142},
}
Figure