Introduction
In complex industrial environments, such as power plants, water treatment facilities, and data centers, multivariate time series (MTS) data serves as the primary pulse of operations. Detecting anomalies in these systems is a critical task, yet it remains challenging because failures are rarely isolated to a single sensor "redlining." Instead, anomalies often manifest as subtle breakdowns in the complex relationships between sensors.
Traditional deep learning methods for anomaly detection typically focus on modeling temporal patterns or estimating the density of normal data distributions. While some recent approaches incorporate graph neural networks to capture inter-sensor dependencies, they often treat these graphs as static or secondary components. This paper introduces MADGA (Multivariate Time Series Anomaly Detection via Graph Alignment), a framework that reframes the problem: it treats the interdependency structure itself as the primary indicator of system health.
The MADGA Framework
MADGA operates on the principle that when a system fails, the way sensors "talk" to each other changes significantly. To quantify these structural shifts, the framework employs a four-step process:
1. Dynamic Graph Construction (DGC)
Rather than relying on a fixed, pre-defined graph, MADGA uses a self-attention mechanism to dynamically learn an adjacency matrix for every time window. This allows the model to capture how channel interdependencies evolve over time, providing a high-fidelity representation of the system's current state.
2. Conditional Distribution Encoding
The model integrates temporal and structural features using a combination of Recurrent Neural Networks (RNNs) and Graph Convolutional Networks (GCNs). The RNNs capture the time-series dynamics, while the GCNs bake the learned interdependencies directly into the node embeddings.
3. Graph Alignment via Dual Distances
The core innovation of MADGA is the use of Graph Alignment (GA) to compare a new data window against a "normal" consensus. This is achieved through two distinct mathematical distances:
- Wasserstein Distance (WD): Used to align the nodes, comparing the actual sensor values and features.
- Gromov-Wasserstein Distance (GWD): Used to align the edges, comparing the relational structure and topology of the graphs.
By using GWD, the model can compare relational structures even if the underlying node features have shifted, making it uniquely robust to changes in system topology.
4. Joint Optimization and Efficiency
The model is trained to minimize the alignment cost for normal data while maximizing the log-likelihood of the data distribution via a Normalizing Flow. To ensure the framework is computationally viable for real-world applications, the authors utilize the Sinkhorn algorithm. This provides entropic regularization to speed up the otherwise NP-hard graph alignment problem.
Experimental Evaluation
The authors evaluated MADGA against seven state-of-the-art baselines (including GANF, MTGFlow, and USAD) across five diverse industrial benchmarks:
- SWaT & WADI: Water treatment and distribution datasets.
- PSM: Server metrics from eBay.
- MSL: Telemetry from the Mars Curiosity Rover.
- SMD: Internet company server data.
Key Results
MADGA consistently outperformed all baselines. Notably, on the SWaT dataset, it achieved an AUC-ROC of 88.9%, a significant improvement over the previous best of 84.2%. It also demonstrated superior robustness on the WADI dataset (92.0% AUC-ROC), which is particularly challenging due to its high dimensionality of 123 channels.
Ablation studies confirmed the importance of the dual-distance approach. Removing the edge alignment component (GWD) led to a noticeable performance drop across all datasets, verifying that monitoring the "topological shift" is essential for accurate detection.
Conclusion and Future Work
MADGA demonstrates that anomalies in complex systems are often structural in nature. By defining an anomaly score as the combined cost of node and edge alignment, the model creates a high-contrast distinction between normal and anomalous states. While the use of the Sinkhorn algorithm makes this approach feasible, it remains more computationally intensive than simpler reconstruction models. Future research may focus on refining these measurements for even more complex, non-linear relationships and exploring multi-scale temporal dependencies within the graph alignment framework.
Summary updated