Abstract
Many real-world IoT systems, which include a variety of internet-connected sensory devices, produce substantial amounts of multivariate time series data. Meanwhile, vital IoT infrastructures like smart power grids and water distribution networks are frequently targeted by cyber-attacks, making anomaly detection an important study topic. Modeling such relatedness is, nevertheless, unavoidable for any efficient and effective anomaly detection system, given the intricate topological and nonlinear connections that are originally unknown among sensors. Furthermore, detecting anomalies in multivariate time series is difficult due to their temporal dependency and stochasticity. This paper presented GTA, a new framework for multivariate time series anomaly detection that involves automatically learning a graph structure, graph convolution, and modeling temporal dependency using a Transformer-based architecture. The connection learning policy, which is based on the Gumbel-softmax sampling approach to learn bi-directed links among sensors directly, is at the heart of learning graph structure. To describe the anomaly information flow between network nodes, we introduced a new graph convolution called Influence Propagation convolution. In addition, to tackle the quadratic complexity barrier, we suggested a multi-branch attention mechanism to replace the original multi-head self-attention method. Extensive experiments on four publicly available anomaly detection benchmarks further demonstrate the superiority of our approach over alternative state-of-the-arts.
Introduction
Modern Internet of Things (IoT) systems, such as smart power grids and water treatment plants, rely on hundreds of interconnected sensors. Protecting these critical infrastructures from cyber-attacks or system failures requires robust anomaly detection. However, two major challenges persist: unknown dependencies between sensors and the inherent temporal complexity of multivariate time series data. While sensors are physically and logically related, these non-linear relationships are often hidden. Furthermore, IoT data is stochastic with deep temporal dependencies, making it difficult for standard models to capture long-term patterns without becoming computationally overwhelmed.
Existing graph-based models often rely on simple distance metrics to pre-define sensor connections, which can be inaccurate and computationally expensive. This paper introduces GTA (Graph Learning with Transformer for Anomaly detection), a framework that automatically learns hidden topological relationships and models the "flow" of information through the system more effectively.
Methodology
The GTA framework integrates several innovative components into a forecasting-based architecture designed to handle the scale and complexity of IoT data.
Automatic Graph Structure Learning
Instead of pre-defining connections, GTA utilizes a connection learning policy based on the Gumbel-Softmax Sampling trick. This approach allows the model to learn a differentiable, bi-directed graph of sensor dependencies directly during training, optimizing specifically for forecasting accuracy.
Influence Propagation (IP) Convolution
To model how an anomaly at one sensor affects its neighbors, the authors developed IP convolution. Unlike standard graph convolutions, it explicitly uses the differences between node embeddings to capture the "flow" and propagation delay of information across the graph.
Hierarchical Dilated Convolution
This component captures temporal patterns at multiple scales by using different dilation rates. This allows the model to observe both immediate fluctuations and long-term trends within the receptive field, providing a comprehensive temporal context.
Multi-branch Transformer
Standard Transformers suffer from quadratic complexity relative to sequence length. GTA introduces a multi-branch attention mechanism that splits the input into different channels to balance modeling power with efficiency.
As shown in Figure 6, the proposed mechanism (c) combines local patterns (convolutions), global-learned attention (a learnable compatibility matrix), and standard dot-product attention to achieve superior performance without the typical computational overhead.
Experimental Results
The authors evaluated GTA on four widely used multivariate time series benchmarks: SWaT (Secure Water Treatment), WADI (Water Distribution), SMAP (Soil Moisture Active Passive), and MSL (Mars Science Laboratory).
GTA achieved substantial improvements over state-of-the-art (SOTA) models like GDN, MTAD-GAT, and MAD-GAN:
- SWaT: Achieved an F1-score of 0.91, a 12.35% improvement over GDN.
- WADI: Achieved an F1-score of 0.84, representing a massive 47.37% improvement over GDN.
- Efficiency: The multi-branch attention mechanism significantly reduced computational overhead compared to vanilla Transformers while maintaining high accuracy.
Ablation studies confirmed that removing the graph learning component or the specialized attention mechanism led to significant performance drops, validating the necessity of each component in the GTA framework.
Conclusion
GTA demonstrates that differentiable graph learning is key to discovering relevant topological structures in IoT data. By modeling value differences between nodes via IP convolution, the framework effectively captures the physical reality of anomaly propagation. While highly effective on datasets with strong physical ties like SWaT and WADI, the model also shows significant promise on less intrinsically linked datasets. Future work may explore online learning strategies to allow the model to adapt to changing system conditions in real-time for edge-computing deployments.
Summary updated