Abstract
Hybrid systems, characterized by the interplay between continuous dynamics and discrete transitions, are ubiquitous in engineering and natural sciences. However, modeling these systems from raw observational data remains a significant challenge, particularly when the underlying dynamics are nonlinear or transitions are triggered by internal state conditions. This paper presents a novel algorithm for the automated inference of nonlinear hybrid automata from input-output time-series data. By combining linear multistep methods, shape-based clustering, and support vector machines, the proposed approach effectively identifies system modes, transition guards, and variable resets. Experimental results across diverse benchmarks demonstrate that this method outperforms existing state-of-the-art tools in both accuracy and computational efficiency.
Introduction
Many complex systems exhibit "hybrid" behavior, where smooth, continuous evolution is punctuated by discrete events. Examples range from mechanical systems like bouncing balls and automotive engines to biological processes such as the firing of excitable cells. Modeling these systems as hybrid automata is essential for verification, control, and analysis.
The primary difficulty in system identification for hybrid automata lies in the "black-box" nature of many real-world applications. When only input-output time-series data is available, the learner must simultaneously determine the number of discrete states (locations), the continuous dynamics within each state (often expressed as ordinary differential equations or ODEs), and the conditions that trigger transitions between states (guards and resets). Existing methodologies often struggle with nonlinearities, endogenous (internally triggered) events, and complex variable resets. This work introduces a robust pipeline to address these limitations.
Methodology
The proposed algorithm follows a two-stage pipeline: Location Identification and Transition Identification.
1. Location Identification
The first stage focuses on identifying the distinct "modes" or locations of the hybrid system.
- Segmentation and Derivative Estimation: Using the Linear Multistep Method (LMM), the algorithm estimates derivatives from the time-series data. This allows for the detection of "change points"—moments where the system's underlying dynamics shift abruptly.
- Clustering via Dynamic Time Warping (DTW): To group segments with similar behavior, the algorithm employs DTW. Unlike standard Euclidean distance, DTW measures the similarity between the "shapes" of trajectories, making the clustering process robust to noise and variations in initial conditions. Each resulting cluster is mapped to a unique location in the automaton.
- ODE Inference: For each identified location, the algorithm performs template-based linear regression to find the polynomial ODE that best describes the continuous dynamics of that mode.
2. Transition Identification
Once the locations are established, the algorithm determines the logic governing the movement between them.
- Guard Discovery: The boundaries in the state space that trigger transitions (guards) are identified using Support Vector Machines (SVM). This allows the model to capture complex, nonlinear switching conditions.
- Reset Mapping: Transitions often involve a "reset," where variables change value instantaneously (e.g., a ball's velocity reversing upon impact). The algorithm uses linear regression to model these changes.
- Type Annotations: A key innovation is the inclusion of "Type Annotations." By allowing users to provide high-level domain knowledge—such as specifying which variables are continuous and should not jump—the algorithm avoids overfitting and ensures the physical plausibility of the learned model.
Experimental Evaluation
The algorithm was evaluated on five diverse benchmarks representing physics, biology, and engineering: the classic Bouncing Ball, a Two-Tank liquid control system, a Switched Oscillator, a complex biological model of Excitable Cells, and a high-dimensional Automotive Engine timing model.
Performance and Scalability
The proposed method demonstrated significant improvements over POSEHAD, the previous state-of-the-art tool. In the "Cells" benchmark, the algorithm achieved a model in under one hour, whereas POSEHAD required over 53 hours. Furthermore, the learned models showed high fidelity, with predicted trajectories closely matching ground-truth data. The successful modeling of the "Engine" benchmark, which produced a model with 37 locations and 137 transitions, highlights the algorithm's ability to handle high-dimensional systems with numerous discrete states.
Discussion
A major contribution of this work is the successful identification of endogenous transitions. While many previous methods relied on external control signals to explain state changes, this algorithm accurately identifies transitions triggered by the system's internal state. Additionally, the use of DTW for shape-based clustering provides a qualitative robustness that raw value-based methods lack.
The introduction of human-in-the-loop type annotations serves as a bridge between data-driven machine learning and traditional engineering. This feature allows the algorithm to leverage simple physical constraints to significantly improve the accuracy of reset identification, preventing the model from hallucinating impossible jumps in continuous variables.
Conclusion and Future Work
This research provides a powerful framework for learning nonlinear hybrid automata from data. By efficiently handling nonlinear dynamics and complex transitions, the algorithm opens new doors for black-box system analysis. Future work will focus on relaxing assumptions regarding location invariants and exploring more complex guard geometries. The authors also intend to apply these learned models to black-box checking and automated controller synthesis.
Summary updated