Abstract
In the Industrial Internet of Things (IIoT), sensors generate time series data to reflect the working state. When the systems are attacked, timely identification of outliers in time series is critical to ensure security. Although many anomaly detection methods have been proposed, the temporal correlation of the time series over the same sensor and the state (spatial) correlation between different sensors are rarely considered simultaneously in these methods. Owing to the superior capability of Transformer in learning time series features. This paper proposes a time series anomaly detection method based on a spatial-temporal network and an improved Transformer. Additionally, the methods based on graph neural networks typically include a graph structure learning module and an anomaly detection module, which are interdependent. However, in the initial phase of training, since neither of the modules has reached an optimal state, their performance may influence each other. This scenario makes the end-to-end training approach hard to effectively direct the learning trajectory of each module. This interdependence between the modules, coupled with the initial instability, may cause the model to find it hard to find the optimal solution during the training process, resulting in unsatisfactory results. We introduce an adaptive graph structure learning method to obtain the optimal model parameters and graph structure. Experiments on two publicly available datasets demonstrate that the proposed method attains higher anomaly detection results than other methods.
Introduction
In the Industrial Internet of Things (IIoT), sensors act as the critical monitoring infrastructure for systems like power plants and water treatment facilities. Rapidly identifying anomalies—whether caused by cyber-attacks or mechanical failures—is essential for maintaining operational security. However, industrial sensor data presents significant challenges due to its inherent complexity. Sensors exhibit two primary types of correlation: temporal, where a sensor's state depends on its history, and spatial, where sensors are physically or logically linked (e.g., a valve state affecting a downstream pressure sensor).
Existing anomaly detection methods often fail to model both correlations simultaneously. Furthermore, Graph Neural Network (GNN) approaches frequently encounter training instability. Because the graph structure learning and the detection model are interdependent, training them concurrently from scratch often leads to sub-optimal solutions.
Methodology
The proposed framework addresses these challenges through a multi-stage deep learning architecture that combines spatial-temporal modeling with an improved Transformer.
Spatial-Temporal Network
The model first processes multivariate time series through a dedicated spatial-temporal module. It utilizes a Temporal Convolutional Network (TCN) with dilated causal convolutions to capture long-term historical dependencies. Simultaneously, a Graph Convolutional Network (GCN) maps the interdependencies between different sensors, capturing the spatial context of the IIoT system.
Improved Transformer with Patching
To enhance feature extraction, the model employs an improved Transformer. Instead of processing raw individual time steps, it uses a patching mechanism to group time steps into sub-sections. This approach enhances local semantic information, allowing the model to better distinguish between high-frequency noise and meaningful global trends.
Dual-Path Feature Fusion and Adaptive Learning
The architecture processes "shallow" features (raw inputs) and "deep" features (spatial-temporal outputs) through separate encoder-decoder paths. These are fused using a co-attention mechanism to provide a holistic view of the system state.
Crucially, to solve the "chicken-and-egg" problem of GNN training, the authors introduce Adaptive Graph Structure Learning. This involves an alternating training strategy: the model parameters are fixed while optimizing the graph structure, and then the graph is fixed while optimizing the model weights. This decoupling ensures stable convergence toward an optimal solution.
Experimental Results
The model was evaluated against ten major baselines, including TranAD, GDN, and USAD, using two benchmark datasets from the iTrust research center.
- SWaT (Secure Water Treatment): Comprising 51 sensors/actuators over 11 days with 41 attack scenarios. The proposed method achieved an F1-score of 83.23%, a 1.72% improvement over the previous state-of-the-art (TranAD).
- WADI (Water Distribution): A more complex dataset with 123 sensors/actuators. The model achieved an F1-score of 57.54%, outperforming the graph-based GDN by 0.62%.
While some baseline models showed higher precision in specific scenarios, the proposed method maintained a superior balance between precision and recall (F1-score), which is vital in industrial settings where missed detections can be catastrophic.
Conclusion and Future Work
The research demonstrates that decoupling graph learning from model training and combining spatial-temporal networks with Transformers significantly improves IIoT anomaly detection. However, the model's computational complexity presents challenges for deployment on resource-constrained edge devices. Additionally, performance on extremely high-dimensional systems (like WADI) remains an area for improvement.
Future research will focus on knowledge distillation to compress the model for edge deployment and the implementation of multi-scale feature extraction to further enhance accuracy in massive sensor arrays.
Summary updated