Abstract
We consider systems under uncertainty whose dynamics are partially unknown. Our aim is to study satisfaction of temporal logic properties by trajectories of such systems. We express these properties as signal temporal logic formulas and check if the probability of satisfying the property is at least a given threshold. Since the dynamics are parameterized and partially unknown, we collect data from the system and employ Bayesian inference techniques to associate a confidence value to the satisfaction of the property. The main novelty of our approach is to combine both data-driven and model-based techniques in order to have a two-layer probabilistic reasoning over the behavior of the system: one layer is related to the stochastic noise inside the system and the next layer is related to the noisy data collected from the system. We provide approximate algorithms for computing the confidence for linear dynamical systems.
Introduction
Formal verification typically relies on precise mathematical models. However, real-world systems often exhibit partially unknown dynamics, internal stochastic process noise, and external measurement noise from imperfect sensors. Traditional Statistical Model Checking (SMC) requires extensive experimentation and often fails to handle system uncertainties efficiently. Conversely, purely data-driven approaches lack the formal correctness guarantees required for safety-critical systems. This paper proposes a hybrid framework that bridges this gap by integrating Bayesian inference with formal verification to quantify confidence in satisfying Signal Temporal Logic (STL) constraints.
Methodology
The proposed framework computes a "confidence value" representing the probability that a system satisfies an STL property given observed data. The process involves several key components:
- Two-Layer Noise Framework: The model explicitly distinguishes between process noise (internal disturbances) and measurement noise (sensor errors).
- Bayesian Inference: Starting from a prior distribution of unknown parameters $\theta$, the framework incorporates noisy input-output data to derive a posterior distribution $p(\theta | \mathcal{D})$.
- STL Under-approximation: Complex STL requirements are transformed into algebraic constraints. To reduce conservativeness, the authors introduce weighting coefficients ($\alpha, \beta, \gamma$) that enlarge the feasible parameter set $\Theta_\psi$.
- Confidence Computation: The final confidence is calculated as an integral of the posterior distribution over the feasible set $\Theta_\psi$.
Two numerical methods are provided for this computation: a Monte Carlo sampling approach and a Piecewise Affine (PWA) approximation, which linearizes nonlinear constraints for efficient solving.
Experimental Results
The framework was evaluated on a two-dimensional Linear Time-Invariant (LTI) system. Initially, with a uniform prior and no data, the confidence in satisfying the STL property was low (~0.027). After processing 50 noisy data points, the confidence increased significantly to approximately 0.90.
As shown in the visualization of the parameter space, both Monte Carlo and PWA methods effectively identify the feasible region. The PWA approximation yielded results comparable to Monte Carlo (0.8962 vs 0.9099), demonstrating its utility as a computationally efficient alternative. Furthermore, parameters located deep within the feasible set exhibited high confidence with low variance, while those near the boundaries showed increased uncertainty.
Conclusion
This research demonstrates that combining model-based formal logic with data-driven Bayesian learning provides a robust mechanism for verifying systems with unknown dynamics. Future work will focus on extending these methods to highly nonlinear systems, developing "active learning" strategies for optimal input design, and adapting the framework for real-time monitoring and online Bayesian analysis.
Summary updated