Abstract
The detection of anomalies or transitions in complex dynamical systems is of critical importance to various applications. In this study, we propose the use of machine learning to detect changepoints for high-dimensional dynamical systems. Here, changepoints indicate instances in time when the underlying dynamical system has a fundamentally different characteristic—which may be due to a change in the model parameters or due to intermittent phenomena arising from the same model. We propose two complementary approaches to achieve this, with the first devised using arguments from probabilistic unsupervised learning and the latter devised using supervised deep learning. To accelerate the deployment of transition detection algorithms in high-dimensional dynamical systems, we introduce dimensionality reduction techniques. Our experiments demonstrate that transitions can be detected efficiently, in real-time, for the two-dimensional forced Kolmogorov flow and the Rössler dynamical system. Finally, we also demonstrate how variations in the frequency of detected changepoints may be utilized to detect a significant modification to the underlying model parameters by utilizing the Lorenz-63 dynamical system.
Introduction
Dynamical systems—ranging from global climate patterns to the fluid dynamics inside a jet engine—rarely stay in one state forever. They undergo "changepoints": moments where the system’s underlying behavior shifts due to a change in external parameters or internal intermittent phenomena, such as a sudden burst of turbulence.
Detecting these shifts online (as data streams in) is notoriously difficult for two primary reasons. First, the "curse of dimensionality" means that high-dimensional data, such as a 2D velocity field, requires massive computational power to process using standard statistical tools. Second, variables in high-dimensional systems are often deeply intertwined, requiring expensive covariance matrix updates at every time step. This research aims to bridge this gap by creating a pipeline that compresses complex data into independent, manageable components, allowing for lightning-fast detection of regime changes.
Methodology: The Disentanglement Pipeline
The proposed framework utilizes a two-stage workflow designed to handle high-dimensional environments with minimal computational overhead.
1. Dimensionality Reduction via $\beta$-TCVAE
The core of the approach is the Total Correlation Variational Autoencoder ($\beta$-TCVAE). Unlike standard autoencoders, the $\beta$-TCVAE emphasizes disentanglement, forcing the latent (compressed) variables to be statistically independent. This independence is the key enabler for real-time processing; it allows subsequent detection algorithms to treat each dimension separately, bypassing the need for expensive $O(d^2)$ covariance matrix updates and reducing the computational cost to $O(d)$.
2. Detection Algorithms
Two complementary "heads" were evaluated on the compressed latent data:
- Unsupervised: Bayesian Online Changepoint Detection (BOCD). This method models the "run length" (the time elapsed since the last detected change). A changepoint is flagged when the probability of the current state suddenly drops, indicating a departure from the established regime.
- Supervised: Long Short-Term Memory (LSTM). An LSTM network is trained to forecast the system's next state. When the system enters a new, unrecognized regime, the prediction error (or "anomaly score") spikes, signaling a transition.
Experimental Evaluation
The framework was tested against three distinct dynamical systems:
- 2D Forced Kolmogorov Flow: A high-dimensional Navier-Stokes fluid simulation featuring "bursting events" where flow transitions from laminar-like to highly turbulent states.
- Rössler System: A classic three-variable chaotic system used to evaluate the detection of shifts in specific model parameters.
- Lorenz-63 System: Used to demonstrate how the frequency of detected changepoints can serve as a signature for permanent environmental changes, such as shifts in the Rayleigh number.
Key Results and Insights
The experiments yielded several critical findings regarding the efficiency and robustness of the proposed methods:
- High Accuracy: On the Kolmogorov flow task, the unsupervised BOCD method achieved a stellar F-score of 98.33%, while the supervised LSTM model reached 93.88%. Both methods significantly outperformed simple threshold-based baselines.
- Computational Efficiency: By assuming independence in the latent space, the BOCD algorithm was approximately 160 times faster at 4000 time steps compared to models that attempted to track correlations explicitly.
- Information Preservation: Despite the aggressive compression, the $\beta$-TCVAE maintained a reconstruction Mean Squared Error (MSE) of 0.022, capturing 95.8% of the original system's variance.
- Meta-Diagnostics: In the Lorenz-63 experiments, the researchers found that the "density" or frequency of changepoints over time can act as a reliable indicator of specific parameter shifts, even when individual changepoints are difficult to interpret in isolation.
Conclusion and Future Directions
This study demonstrates that disentangled latent spaces are a powerful tool for monitoring high-dimensional dynamical systems. By reducing the complexity of the data without losing critical information, transitions can be detected with high precision and low latency.
While powerful, the authors note that both BOCD and LSTM methods require manual tuning of hyperparameters, such as the anomaly threshold or the "hazard" rate. Future work will explore the use of "universal density approximators," such as normalizing flows, to replace the conjugate-exponential models in BOCD, potentially allowing the system to handle even more complex probability distributions with less manual intervention.
Summary updated