Skip-patching spatial-temporal discrepancy-based anomaly detection on multivariate time series

Yinsong Xu, Yulong Ding, Jie Jiang, Runmin Cong, Xuefeng Zhang, Shiqi Wang, Sam Kwong, Shuang-Hua Yang

Introduction

In the Industrial Internet of Things (IIoT), multivariate time series data from thousands of sensors are used to monitor complex systems like water treatment plants and satellite telemetry. Detecting anomalies in this data is critical for operational safety. However, existing methods struggle with two primary challenges: data redundancy and dimensional complexity. Industrial processes are often stable, leading to "boring" data that prevents deep learning models from learning robust features. Furthermore, anomalies can manifest either as temporal spikes in a single sensor or as deviations in the spatial relationships between multiple sensors. Most current models fail to capture the nuanced interplay between these two dimensions.

The SSAD Framework

To address these hurdles, researchers have introduced the SSAD (Skip-patching Spatial-Temporal Anomaly Detection) framework. SSAD utilizes two core innovations to enhance feature learning and anomaly identification.

Skip-Patching (SP)

Inspired by masked autoencoders, the Skip-patching mechanism divides time series data into patches and intentionally hides either the "odd" or "even" patches during training. This forces the model to reconstruct missing segments based on global context rather than immediate neighbors, effectively preventing the model from becoming "lazy" due to high data redundancy. This approach also doubles the training dataset size by creating two independent sub-groups of patches.

Spatial-Temporal Association Discrepancy (STAD)

SSAD employs a dual-branch architecture to process data. The Temporal branch utilizes Gaussian kernels to identify patterns across time, while the Spatial branch uses a Transformer-based attention mechanism to model relationships between different sensors.

Architecture of the SSAD framework, illustrating the separate embedding of spatial and temporal features and the subsequent discrepancy layer.

The model calculates the KL divergence between these two branches. In normal operating conditions, these views should remain consistent. A significant "disagreement" or discrepancy between the temporal and spatial associations serves as a strong indicator of an anomaly. The final anomaly score combines this association discrepancy with the reconstruction error.

Experimental Evaluation

The SSAD model was evaluated against seven state-of-the-art baselines using four major industrial benchmarks:

  • SWaT & WADI: Real-world water treatment and distribution systems.
  • SMAP & MSL: NASA satellite and Mars rover (Curiosity) telemetry data.

Key Results

SSAD demonstrated superior performance across all datasets, achieving significant F1-score improvements over top-performing baselines like Anomaly Transformer and TimesNet. Specifically, it saw gains of 5.96% on MSL, 5.37% on WADI, and 2.94% on SWaT. Statistical analysis (p-value of $7.49 \times 10^{-6}$ on MSL) confirmed the robustness of these results.

Beyond accuracy, the Skip-patching mechanism enhances computational efficiency by reducing the volume of data processed in each pass, making it more practical for large-scale industrial applications than many complex Transformer-based alternatives.

Discussion and Insights

Several key insights emerged from the study:

  1. Structured Masking: Hiding patches in a fixed "odd/even" pattern proved more effective than random masking. This structure preserves temporal distances, allowing the model to better learn the underlying rhythm of industrial machinery.
  2. Optimal Patch Size: A patch size of 16 was identified as the "Goldilocks" zone—large enough to prevent easy guessing from neighbors but small enough to retain local details for reconstruction.
  3. Expert Cross-Checking: The discrepancy mechanism mimics a human expert who cross-checks if a sensor's temporal trend aligns with its expected spatial relationship to other sensors.

Conclusion and Future Work

While SSAD is highly effective, it remains sensitive to extreme noise, which could be misinterpreted as an anomaly. Future research will focus on refining the model's robustness in noisy environments and exploring the use of spatial-temporal discrepancy for root cause analysis to identify the specific sensors triggering alerts. Overall, SSAD represents a significant step forward in efficiently detecting complex anomalies in multivariate industrial data.

Summary updated

BibTeX
@article{xu2024skip,
  author = {Yinsong Xu and Yulong Ding and Jie Jiang and Runmin Cong and Xuefeng Zhang and Shiqi Wang and Sam Kwong and Shuang-Hua Yang},
  title = {{Skip-patching spatial-temporal discrepancy-based anomaly detection on multivariate time series}},
  journal = {Neurocomputing},
  year = {2024},
  doi = {10.1016/j.neucom.2024.128428},
}
Figure