Introduction
Modern engineering systems, ranging from autonomous vehicles to medical devices, are often modeled as hybrid systems. These systems exhibit a combination of continuous physical dynamics and discrete logical transitions. For instance, a car's acceleration is a continuous process, while shifting gears represents a discrete event that fundamentally alters the underlying physics. To analyze, verify, or control these systems, researchers rely on mathematical models known as Hybrid Automata.
The process of constructing these models from observed input-output data—known as system identification—is notoriously difficult. Traditional methods typically rely on derivative-based techniques to detect "mode switches" (e.g., identifying a sudden change in acceleration). However, derivatives are highly sensitive to noise and often require manually tuned thresholds. Furthermore, existing tools struggle with high-order nonlinear dynamics and "resets," where state variables jump abruptly during transitions.
The DAINARX Framework
To address these challenges, the authors propose DAINARX, a derivative-agnostic framework that leverages Nonlinear Autoregressive Exogenous (NARX) models. Instead of monitoring signal derivatives, DAINARX uses model-fitting errors to identify transitions. If a previously accurate mathematical model can no longer explain new data points, a mode switch is inferred.
The DAINARX pipeline consists of five integrated stages:
- Trace Segmentation: A sliding window identifies "changepoints" by checking if the current NARX model (fitted via Linear Least Squares) still accurately represents the data.
- Segment Clustering: Segments governed by the same physics are grouped. Unlike similarity-based clustering, DAINARX groups segments that can be fit by the same NARX model.
- Mode Characterization: Precise NARX equations are calculated for each identified mode.
- Guard Learning: Support Vector Machines (SVMs) are employed to define the decision boundaries in the state space that trigger transitions.
- Reset Learning: For high-order systems, DAINARX learns the state "resets" by fitting NARX models to data points immediately surrounding a switch, a feature often overlooked by prior tools.
Experimental Evaluation
The framework was evaluated on a diverse suite of 26 hybrid automata benchmarks, including:
- 18 Linear Systems: Standard benchmarks (e.g., FaMoS, LearnHA), two-tank systems, PID-controlled motors, and a jumping robotic dog.
- 8 Nonlinear Systems: Models featuring polynomial, rational, and trigonometric dynamics, such as the Duffing Oscillator and spacecraft rendezvous scenarios.
- High-Order Systems: The benchmarks included systems up to the 4th order, testing the scalability of the approach.
Results and Key Insights
DAINARX demonstrated state-of-the-art performance across several metrics. In many linear benchmarks, it achieved perfect changepoint detection (Hausdorff distance of 0.0000). Crucially, it successfully modeled complex nonlinear systems where baseline tools like FaMoS and LearnHA failed or produced significant errors.
Key takeaways from the study include:
- Robustness of NARX: NARX models serve as a universal proxy for detecting transitions, remaining robust even when transitions appear "smooth" to derivative-based detectors.
- Efficiency: DAINARX solved 21 of the 26 benchmarks in under 5 seconds, outperforming existing tools by 1.5x to 6x.
- Importance of Resets: Explicitly learning state resets is vital for accurate future behavior prediction in high-order systems.
Limitations and Future Directions
While powerful, DAINARX currently requires a "template" for nonlinear terms (e.g., $x^3$). Future work aims to automate this "template mining." Additionally, while NARX models are generally robust, the current implementation assumes noise-free data; future iterations will focus on explicitly handling measurement noise and providing statistical guarantees through PAC learning frameworks.
Summary updated