Probabilistically safe controllers based on control barrier functions and scenario model predictive control

Allan Andre do Nascimento, Antonis Papachristodoulou, Kostas Margellos

Introduction

Autonomous systems, such as unmanned aerial vehicles (UAVs) and self-driving cars, require control frameworks that ensure safety while maintaining high performance. Safety is typically defined as "forward set invariance," ensuring the system state remains within a predefined safe region. Current approaches often rely on either Control Barrier Functions (CBFs) or Model Predictive Control (MPC). While CBFs provide computationally efficient real-time safety filtering, they are often "short-sighted" and struggle with long-term constraints or uncertain environments. Conversely, MPC optimizes performance over a prediction horizon but faces significant computational hurdles when enforcing safety constraints under stochastic disturbances.

This paper introduces Probably Safe Scenario MPC (PSS-MPC), a novel framework that integrates the predictive capabilities of MPC with the real-time safety guarantees of CBFs. By employing a "scenario-based" optimization approach, the authors provide distribution-free, probabilistic safety guarantees, ensuring system integrity even under unpredictable environmental noise without requiring a precise mathematical model of the disturbances.

Methodology: Probably Safe Scenario MPC

The PSS-MPC framework addresses the limitations of existing methods by blending scenario theory with CBF constraints to achieve a balance between performance and safety.

Scenario-Based Optimization

Unlike traditional stochastic MPC, which often assumes a specific noise distribution (e.g., Gaussian), PSS-MPC utilizes a scenario-based approach. The controller draws a finite number of samples (scenarios) of the uncertainty and ensures that the control action is valid for all sampled instances. This makes the approach distribution-free, requiring no prior knowledge of the exact mathematical model of the noise.

Integrated Safety Constraints

To maintain computational efficiency, PSS-MPC does not enforce safety constraints across the entire prediction horizon. Instead, it applies a probabilistic CBF constraint specifically at the first step of the MPC horizon. By leveraging scenario theory, the authors derive a priori guarantees, calculating the exact number of scenarios ($m$) required to keep the probability of a safety violation below a user-defined threshold ($\epsilon$). At each time step, the system measures its state, generates $m$ scenarios, and solves a Quadratic Program (QP) that minimizes cost while satisfying these safety constraints.

Experimental Evaluation

The proposed method was evaluated through a multi-UAV simulation involving four vehicles performing a position-swapping maneuver. The objective was to successfully swap positions while avoiding collisions with one another and maintaining a minimum safety distance.

Disturbances in the simulation were drawn from a normal distribution $\mathcal{N}(0,1)$. Crucially, the PSS-MPC algorithm operated without knowledge of this distribution, demonstrating its robustness to unknown noise profiles.

Results and Discussion

The PSS-MPC controller successfully managed the complex UAV swap maneuver, maintaining safety throughout the process. A key finding of the study is the comparison between PSS-MPC and state-of-the-art "super-martingale" safety methods. While super-martingale methods often yield overly conservative bounds (e.g., a 99% predicted failure rate), the scenario approach provides much tighter and more practical bounds. For the tested system, PSS-MPC achieved a one-step exit probability bound of 0.1, a significant improvement over the 0.99 bound provided by existing methods.

Empirical probability distribution of safety violations. The actual frequency of violations remains well below the theoretical bound of 0.1, validating the proposed probabilistic guarantees across 100 independent simulations.

Empirical validation through 100 independent simulations confirmed that the frequency of safety violations consistently remained below the theoretical threshold ($\epsilon$). This demonstrates that the "price of robustness"—the restriction of the solution space to ensure safety—is manageable and provides reliable protection against disturbances.

Conclusion

PSS-MPC offers a powerful bridge between myopic safety filters and computationally intensive stochastic MPC. By providing distribution-free probabilistic guarantees, it enables autonomous systems to operate safely in uncertain environments. Future work will focus on relaxing convexity assumptions for non-linear safe sets, addressing recursive feasibility in high-noise scenarios, and extending safety guarantees to mission-wide constraints over longer horizons.

Summary updated

BibTeX
@inproceedings{nascimento2024probabilistically,
  author = {Allan Andre do Nascimento and Antonis Papachristodoulou and Kostas Margellos},
  title = {{Probabilistically safe controllers based on control barrier functions and scenario model predictive control}},
  booktitle = {CDC},
  year = {2024},
  doi = {10.1109/cdc56724.2024.10886282},
}
Figure