Introduction
Traditional safety verification typically occurs before a system is deployed. Engineers use formal models to prove that a system will not enter an "unsafe state." However, AI-enabled Cyber-Physical Systems (CPS)—such as autonomous vehicles or artificial pancreases—face the "no oracle problem." Because these systems learn and adapt in real-time, they often encounter environmental scenarios or human behaviors that were not present during initial training or design-time verification.
When an AI system operates in the real world, its behavior can diverge from its original specifications. If the safety model used for certification no longer accurately reflects the system's operational reality, the safety proofs become obsolete. This research addresses the critical need for operational safety verification: a method to continuously check if a system remains safe while running in the field.
The HA Mining Framework
The authors propose a framework to "mine" a Hybrid Automaton (HA) directly from a system's input/output (I/O) time-series traces. A hybrid automaton is a mathematical model that combines discrete control logic (modes) with continuous physical dynamics (flows).
The mining process involves several key stages:
- Segmentation: Utilizing Relative Unconstrained Least-Squares Importance Fitting (RuLSIF) to detect "change points" in data, signaling transitions between control modes.
- Clustering: Grouping data segments to identify unique discrete control states.
- Flow Extraction: Deriving non-linear differential equations through multi-variable polynomial regression to model physical behavior within each mode.
- Guard & Reset Mining: Identifying the conditions that trigger mode switches and how variables are updated during these transitions.
Safety Guarantees and Reachability
Once a model is mined, the framework performs reachability analysis using tools like C2E2. This calculates the "reach set"—the envelope of all possible future states. By comparing the mined reach set against known unsafe states and the manufacturer's original design, the authors establish four distinct safety guarantees.
These guarantees provide a structured way to interpret operational data:
- Case 1: The mined reach set is safe, implying the system is operating within safe bounds.
- Case 2: The mined set is smaller than the design set (under-approximative), indicating an uncertain case where more data is required.
- Case 3: The mined set intersects the unsafe zone but within a small error bound, suggesting potential mining inaccuracies.
- Case 4: The mined set clearly intersects the unsafe zone, confirming unsafe system operation.
Evaluation: The Artificial Pancreas
The framework was evaluated using an Artificial Pancreas (AP) system, utilizing both real-world clinical data from the MAYO Clinic and simulation traces from the FDA-approved UVA/Padova T1D platform.
The results demonstrated that the framework could successfully reconstruct the AP's hybrid automaton from scratch. The mined flow equations for blood glucose and insulin interaction closely matched established physiological models. Furthermore, the reachability analysis was sensitive enough to identify scenarios where the system's predictive model failed to account for specific physiological parameters, leading to potential hypoglycemia.
Conclusion and Future Work
This research bridges the gap between "black-box" AI behavior and "white-box" formal verification. By transforming raw operational data into verifiable hybrid automata, it restores the ability to provide rigorous mathematical safety proofs for deployed AI systems. Future work will focus on automated root cause analysis to explain why safety violations occur and improving the system's robustness to sensor noise.
Summary updated