Learning-Based Approaches to Predictive Monitoring with Conformal Statistical Guarantees

Francesca Cairoli, Luca Bortolussi, Nicola Paoletti

Introduction

Cyber-Physical Systems (CPS)—ranging from autonomous drones and self-driving vehicles to robotic surgical assistants—operate in high-stakes environments where safety is a non-negotiable requirement. To ensure these systems remain within safe operating bounds, researchers utilize Predictive Monitoring (PM). PM involves analyzing the current state of a system to predict whether it will violate safety requirements in the near future. Traditionally, the gold standard for this task has been formal model checking, which uses rigorous mathematical logic to prove safety. However, these formal methods are often computationally expensive and too slow for real-time, "at-the-edge" execution.

While Deep Learning (DL) offers a high-speed alternative, standard neural networks are often "black boxes" that can provide overconfident but incorrect predictions. This paper, a tutorial review by researchers from the University of Trieste and King’s College London, presents a comprehensive framework for Neural Predictive Monitoring (NPM). NPM bridges the gap between the speed of machine learning and the formal rigor of verification by wrapping neural network surrogates in a layer of Conformal Prediction (CP).

The Neural Predictive Monitoring Framework

The NPM framework replaces slow formal model checkers with fast deep-learning surrogates while maintaining "finite-sample" statistical guarantees. The process is structured into four primary stages:

1. Requirement Specification

Safety properties are defined using Signal Temporal Logic (STL). STL is particularly effective for CPS because it supports both Boolean semantics (determining if a requirement is met) and Quantitative semantics (measuring the degree of safety or "robustness"). For example, a requirement might be defined as "always maintain a distance of at least 2 meters from obstacles."

2. Surrogate Modeling

Deep Neural Networks (DNNs) are trained to act as a "SAT Oracle." The DNN learns to map a given system state to a safety prediction, effectively mimicking the output of a formal model checker but at a fraction of the computational cost.

3. Conformal Prediction (CP)

CP is the core innovation of the NPM framework. It is a statistical framework that sits on top of the ML model to provide a prediction region rather than a single point prediction. This region is guaranteed to contain the true value with a user-defined probability (e.g., 99%). The paper emphasizes Inductive (or Split) CP, which utilizes a separate calibration dataset to calculate "nonconformity scores." These scores measure how much a new data point deviates from the patterns seen in the training data.

4. Handling System Complexity

The framework is designed to be versatile, offering variants for deterministic, non-deterministic, and stochastic systems. It also addresses scenarios involving partial observability, where the system state must be inferred from noisy sensor data.

Key Insights: Efficiency vs. Validity

A critical insight of the NPM framework is the distinction between validity and efficiency. In the context of Conformal Prediction, validity (the error rate) is guaranteed regardless of the underlying neural network's quality, provided the assumption of "exchangeability" holds. Exchangeability implies that the order of data points does not affect their joint distribution—a more realistic assumption for many CPS tasks than the standard "Independent and Identically Distributed" (IID) assumption.

While validity is guaranteed, a better-trained model improves efficiency, resulting in smaller, more precise prediction regions. This allows the system to be less conservative while remaining statistically safe.

Uncertainty as a Safety Filter

The framework introduces "confidence" and "credibility" scores to guide system behavior. If a prediction has low credibility, the system can trigger a "rejection rule," ignoring the ML prediction and switching to a failsafe mode, such as a Simplex architecture. Furthermore, the authors suggest using CP-based uncertainty for Active Learning, identifying high-uncertainty regions of the state space to prioritize for future data collection and model refinement.

Results and Practical Utility

Synthesizing results from previous studies, the authors demonstrate that a forward pass of a neural network is orders of magnitude faster than running a formal model checker at runtime. This enables predictive monitoring on hardware with limited resources.

For stochastic systems, the framework utilizes Conformalized Quantile Regression (CQR) to provide reliable bounds on system robustness even when the future is probabilistic. Qualitative results indicate that the safety-aware rejection rules effectively catch potential misclassifications before they result in safety breaches.

Limitations and Future Directions

Despite its strengths, NPM faces challenges in real-world deployment. One primary concern is temporal dependency; in real-time monitoring, data points are often correlated over time, which can violate the exchangeability assumption. Future work is directed toward "adaptive" CP methods to handle these shifts.

Additionally, the authors identify the "Curse of Manifold"—the tendency for models to waste computation on parts of the state space the system will never visit. They propose dynamics-aware inference as a way to focus the model’s attention on the most likely trajectories of the system. Finally, managing partial observability in non-deterministic systems remains a significant mathematical challenge for future research.

Summary updated

BibTeX
@inproceedings{cairoli2023learning,
  author = {Francesca Cairoli and Luca Bortolussi and Nicola Paoletti},
  title = {{Learning-Based Approaches to Predictive Monitoring with Conformal Statistical Guarantees}},
  booktitle = {RV},
  year = {2023},
  url = {https://openreview.net/forum?id=YTrjCrXDLn},
}
Figure