Stochastic Barrier Certificates in the Presence of Dynamic Obstacles

Rayan Mazouz, Luca Laurenti, Morteza LahijanianarXiv 2026 · arXiv

TL;DR

This paper introduces a novel framework for certifying the safety of stochastic systems navigating environments with moving obstacles. By employing time-varying stochastic barrier certificates grounded in dynamic programming, the researchers provide significantly tighter safety probability bounds and better computational scalability than previous state-of-the-art methods.

What Problem Does This Paper Address?

Ensuring safety in cyber-physical systems—like autonomous drones or self-driving cars—is incredibly difficult when the world is both uncertain (stochastic) and changing (dynamic).

Standard tools called Stochastic Barrier Functions (SBFs) act like a mathematical "safety envelope," providing a certified lower bound on the probability that a system will stay safe over a period of time. However, most existing SBF methods use a single, static certificate for the entire duration. This is like trying to use one rigid umbrella to cover a group of people moving in different directions; it’s inherently "conservative," meaning the calculated safety probability is often much lower (and less useful) than the actual safety of the system. Furthermore, handling moving obstacles usually requires complex state-space tricks that don't scale well to complex robots.

Methods

The authors propose two main ways to handle dynamic obstacles:

  1. The Centralized Approach: They "lift" the problem into a higher-dimensional augmented space where the obstacle's position is part of the system state. This turns a moving obstacle into a static one in the new space (see Figure 1). While theoretically sound, this suffers from the "curse of dimensionality." Fig. 1: Propagation of state distributions avoiding a static obstacle in the augmented space Z.
Fig. 1: Propagation of state distributions avoiding a static obstacle in the augmented space Z.
  1. Time-Varying SBFs (The Core Innovation): Instead of one static certificate, they use a sequence of certificates that evolve over time. This approach is rooted in Dynamic Programming (DP) and backward recursion. By allowing the barrier function to change at each time step, the "safety envelope" can morph to account for the moving obstacles and the natural evolution of the system's uncertainty.

To make this computationally feasible, the authors restrict the certificates to polynomial functions. This allows them to formulate the search for these certificates as a Sum-of-Squares (SOS) optimization problem—a type of convex programming that can be solved efficiently using standard numerical tools.

Datasets

The framework was evaluated on several classic control benchmarks, modified to include stochastic noise and dynamic obstacles:

  • Unstable 1D/2D Systems: Simple linear systems to test basic intuition.
  • Van der Pol Oscillator: A nonlinear system used to test complex safety boundaries.
  • Lotka-Volterra: A predator-prey model.
  • Dubin’s Car (4D): A standard model for wheeled robots.
  • Planar Quadrotor (4D): A more complex model representing a drone.

The "dynamic obstacles" in these tests were modeled as moving Euclidean balls or intervals with their own deterministic trajectories.

Key Insights and Ideas

  • Temporal Structure is Key: The "aha moment" is that safety is a sequential process. By using a backward recursion (DP) perspective, the time-varying certificates naturally capture how safety requirements change as the system approaches its time horizon.
  • Avoiding the "Conservatism Tax": Previous time-varying attempts relied on Boole’s inequality, which adds extra layers of pessimism to the results. This DP-based approach avoids that "tax," leading to much tighter (more accurate) probability bounds.
  • Scalability through Time-Indexing: Interestingly, adding time-varying certificates increases the number of variables but reduces the need for very high-degree polynomials. This makes the optimization more stable and faster than "lifting" the state space.

Key Results

The time-varying approach consistently outperformed both time-invariant and interpolation-based methods across all benchmarks.

As shown in Table II (Figure 6), for a 4D Quadrotor navigating around a dynamic obstacle over 10 steps, the time-varying method certified a safety probability of 0.92. In contrast, the time-invariant method could only certify 0.21, and the previous state-of-the-art interpolation method timed out (TO) after 1000 seconds.

TABLE II: Barrier benchmark results with dynamic obstacles for time-invariant, interpolation, and time-varying approaches; the latter two use the same barrier degree deg. P s is the obtained lower bound Ps, and τ is the computation time in seconds. A time-out (TO) time of 1000s is included in the benchmarks.

The researchers also validated these bounds using Monte Carlo simulations (Figure 2). The empirical safety rates (how often the system actually stayed safe in thousands of trials) closely matched the certified lower bounds, proving the certificates are not just safe, but "tight."

Fig. 2: Monte Carlo simulations over a horizon (H = 10) for the benchmark systems: dubin’s car, oscillator, and quadrotor. The latter two incorporate dynamic obstacles, capturing time-varying interactions between the system and environment.

Limitations and Future Work

  • Polynomial Requirement: The current SOS-based implementation requires the system dynamics and obstacle trajectories to be represented as (or approximated by) polynomials.
  • Finite Horizon: The guarantees are currently for a fixed time horizon ($H$). Extending this to infinite-horizon safety in dynamic environments remains a challenge.
  • Computational Limits: While more scalable than previous methods, SOS optimization still struggles as the number of state variables grows very large (e.g., dozens of states).
  • Future Direction: The authors suggest extending this framework to joint synthesis, where the certificate and the controller are designed simultaneously to maximize safety.

Summary updated

Abstract

Safety of stochastic dynamic systems in environments with dynamic obstacles is studied in this paper through the lens of stochastic barrier functions. We introduce both time-invariant and time-varying barrier certificates for discrete-time, continuous-space systems subject to uncertainty, which provide certified lower bounds on the probability of remaining within a safe set over a finite horizon. These certificates explicitly account for time-varying unsafe regions induced by obstacle dynamics. By leveraging Bellman's optimality perspective, the time-varying formulation directly captures temporal structure and yields less conservative bounds than state-of-the-art approaches. By restricting certificates to polynomial functions, we show that time-varying barrier synthesis can be formulated as a convex sum-of-squares program, enabling tractable optimization. Empirical evaluations on nonlinear systems with dynamic obstacles show that time-varying certificates consistently achieve tight guarantees, demonstrating improved accuracy and scalability over state-of-the-art methods.
BibTeX
@misc{mazouz2026stochastic,
  author = {Rayan Mazouz and Luca Laurenti and Morteza Lahijanian},
  title = {{Stochastic Barrier Certificates in the Presence of Dynamic Obstacles}},
  year = {2026},
  eprint = {2604.20208},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2604.20208},
}

Loading related content...

Figure