Multivariate Time-Series Anomaly Detection based on Enhancing Graph Attention Networks with Topological Analysis

Zhe Liu, Xiang Huang, Jingyun Zhang, Zhifeng Hao, Li Sun, Hao Peng · DOI

TL;DR

This paper introduces TopoGDN, a novel method for detecting anomalies in multivariate time-series data by enhancing Graph Attention Networks (GATs) with topological analysis. By capturing both temporal and inter-feature dependencies at multiple scales, TopoGDN significantly improves anomaly detection performance compared to existing methods across several benchmark datasets.

What Problem Does This Paper Address?

Detecting anomalies in multivariate time-series data is crucial for industrial applications, but it's a challenging task. These datasets have complex temporal and feature dimensions, and traditional methods often struggle to capture intricate relationships. Existing approaches using Graph Neural Networks (GNNs) or Transformers tend to focus on either temporal or feature dependencies, or they perform coarse-grained feature extraction, which is insufficient for large, complex datasets. The need for unsupervised anomaly detection further complicates matters, as manual labeling is impractical for vast amounts of data. This paper aims to address these limitations by developing a more comprehensive approach that models both temporal and inter-feature dependencies effectively.

Methods

TopoGDN is built upon an enhanced Graph Attention Network (GAT) and incorporates several novel modules:

  • Multi-scale Temporal Convolution Module: This module extracts temporal features at various scales using 1D convolutional kernels of different sizes. This helps capture both local and global temporal patterns within a given time window, addressing the conflict that can arise when trying to model long-term dependencies.
  • Graph Structure Learning Module: Inspired by existing work (GDN), this module constructs dynamic graph structures where sensors are nodes and edges represent similarities between their data. This graph is continuously updated as the time window progresses.
  • Topological Feature Attention Module: This is the core innovation. It enhances the GAT by incorporating topological features derived from the graph structure. This module leverages persistence homology to capture higher-order structural information (like cycles and connected components) and fuses these topological embeddings with node features. This "plug-and-play" enhancement aims to significantly improve the GAT's ability to model complex inter-feature dependencies.
  • Anomaly Score Calculator: This module predicts future time steps and calculates an anomaly score by comparing the predictions with the actual data. The score is then thresholded to identify anomalies.

Datasets

The paper evaluates TopoGDN on four commonly used datasets for time-series anomaly detection:

  • MSL (Mars Science Laboratory rover): Smallest feature dimension.
  • SWaT (Secure Water Treatment):
  • SMD (Server Machine Dataset):
  • WADI (Water Distribution): Largest dataset, posing a significant challenge due to its volume and complexity.

No new datasets were introduced in this paper.

Key Insights and Ideas

  • Topology as a Feature Enhancer: The paper demonstrates that incorporating topological features (derived from persistence homology) into graph-based models can significantly boost their ability to capture complex inter-feature dependencies, leading to better anomaly detection.
  • Multi-scale Temporal and Topological Analysis: The combination of multi-scale temporal convolutions and multi-scale topological feature extraction allows the model to capture a richer representation of the time-series data, addressing both temporal dynamics and structural relationships.
  • GATs Benefit from Topological Augmentation: The "plug-and-play" nature of the topological feature enhancement suggests that this approach can be readily integrated into various GNN architectures to improve their performance.
  • Balancing Precision and Recall: TopoGDN achieves a strong balance between precision and recall, leading to the highest F1-scores across multiple datasets, indicating robust performance.

Key Results

  • Superior Performance: TopoGDN consistently outperforms baseline models, including GDN, TranAD, and ImDiffusion, across all four benchmark datasets, achieving the highest F1-Scores.
  • Significant F1-Score Gains: The paper reports improvements of 2-3% in F1-Score on SWaT and SMD datasets compared to the second-best models.
  • Efficiency: TopoGDN demonstrates competitive efficiency, with a lower parameter count and running time compared to advanced models like TranAD and ImDiffusion, making it practical for large-scale applications.
  • Ablation Study: The ablation study confirms the effectiveness of individual components. Integrating the Multi-Scale Temporal Convolution (MSTCN) and Topological Analysis (TA) modules significantly improves performance over the baseline GDN.

Limitations and Future Work

  • Hyperparameter Sensitivity: The paper acknowledges that the model's performance is sensitive to hyperparameters like batch size, Top-K, graph filtrations, and window size. Careful tuning is required for optimal results.
  • Computational Cost of Topology: While topological analysis enhances performance, its computation can add to the overall model complexity.
  • Future Work: The authors suggest that the plug-and-play nature of the topological feature enhancement module could be integrated into other GNN architectures and temporal networks to improve spatiotemporal feature extraction. Further exploration of different topological feature extraction methods and their impact on anomaly detection could also be a fruitful direction.

Summary updated

BibTeX
@inproceedings{liu2024multivariate,
  author = {Zhe Liu and Xiang Huang and Jingyun Zhang and Zhifeng Hao and Li Sun and Hao Peng},
  title = {{Multivariate Time-Series Anomaly Detection based on Enhancing Graph Attention Networks with Topological Analysis}},
  booktitle = {ACM International Conference on Information and Knowledge Management},
  year = {2024},
  doi = {10.1145/3627673.3679614},
}
Figure