Skip to main content
QUICK REVIEW

[Paper Review] Learning Graph Neural Networks for Multivariate Time Series Anomaly Detection

Saswati Ray, Sana Lakdawala|arXiv (Cornell University)|Nov 15, 2021
Anomaly Detection Techniques and ApplicationsComputer Science14 references5 citations
TL;DR

This paper proposes GLUE, a graph neural network framework that learns dynamic sensor dependencies in multivariate time series and provides calibrated uncertainty estimates by modeling predictions as heteroscedastic Gaussian distributions. GLUE achieves anomaly detection performance on par with GDN while enabling interpretable uncertainty-aware thresholds, validated on real-world WADI and NASA Turbofan datasets with open-source code release.

ABSTRACT

In this work, we propose GLUE (Graph Deviation Network with Local Uncertainty Estimation), building on the recently proposed Graph Deviation Network (GDN). GLUE not only automatically learns complex dependencies between variables and uses them to better identify anomalous behavior, but also quantifies its predictive uncertainty, allowing us to account for the variation in the data as well to have more interpretable anomaly detection thresholds. Results on two real world datasets tell us that optimizing the negative Gaussian log likelihood is reasonable because GLUE's forecasting results are at par with GDN and in fact better than the vector autoregressor baseline, which is significant given that GDN directly optimizes the MSE loss. In summary, our experiments demonstrate that GLUE is competitive with GDN at anomaly detection, with the added benefit of uncertainty estimations. We also show that GLUE learns meaningful sensor embeddings which clusters similar sensors together.

Motivation & Objective

  • To address the limitation of existing deep learning models in multivariate time series anomaly detection that fail to model complex variable dependencies and provide unreliable uncertainty estimates.
  • To develop a method that learns both the structural dependencies between sensors and quantifies prediction uncertainty in a principled, interpretable way.
  • To validate the proposed approach on real-world datasets, including a newly introduced NASA Turbofan dataset, to demonstrate robustness and generalization.
  • To release open-source code to ensure reproducibility and facilitate future research in uncertainty-aware anomaly detection.

Proposed method

  • GLUE models sensor readings as samples from a heteroscedastic multivariate Gaussian distribution, predicting both mean μ(x) and variance σ²(x) for each time step.
  • It uses a graph neural network architecture with learnable sensor embeddings to capture variable-specific characteristics and infer dynamic dependencies between sensors.
  • The model optimizes the negative log-likelihood (NLL) of the observed data under the predicted Gaussian distribution, replacing the standard MSE loss used in GDN for improved uncertainty calibration.
  • Structure learning is performed end-to-end, allowing the model to discover meaningful sensor relationships without requiring a predefined graph structure.
  • Local uncertainty estimation is achieved by computing prediction intervals (e.g., 95% confidence bands), enabling robust anomaly detection based on deviation from expected ranges.
  • The framework is trained using backpropagation with adaptive optimization, and inference involves both point forecasts and uncertainty quantification for anomaly scoring.

Experimental results

Research questions

  • RQ1Can a graph neural network framework that jointly learns sensor dependencies and uncertainty estimates outperform existing state-of-the-art models in multivariate time series anomaly detection?
  • RQ2Does modeling predictions as probabilistic distributions (Gaussian) with learned variance improve anomaly detection performance and interpretability compared to point estimates?
  • RQ3Can GLUE discover meaningful, interpretable sensor groupings and structural relationships from real-world multivariate time series data?
  • RQ4How does GLUE perform on datasets with varying degrees of stationarity and anomaly distinctiveness, such as the WADI and NASA Turbofan datasets?

Key findings

  • GLUE achieves F1 scores of 0.58 on the WADI dataset, matching the performance of GDN (F1 = 0.64) and significantly outperforming all baseline models, including PCA (F1 = 0.42) and autoencoders (F1 = 0.43).
  • On the NASA Turbofan dataset, GLUE achieves an F1 score of 0.50, matching the baseline VAR and GDN, though K-NN slightly outperforms all models with F1 = 0.55, likely due to the dataset's high stationarity.
  • GLUE achieves the lowest mean squared error (MSE = 2.79) on the WADI dataset, outperforming the VAR baseline (MSE = 2497.52) and performing nearly as well as GDN (MSE = 3.00).
  • Visual analysis of prediction intervals shows that true anomalies consistently fall outside the 95% confidence bands, confirming the model's ability to detect deviations with uncertainty-aware thresholds.
  • t-SNE visualization of sensor embeddings reveals that GLUE learns meaningful clustering of sensors—grouping sensors with similar functional roles—such as sensors associated with the same tank or valve in the WADI dataset.
  • The model's uncertainty estimates are interpretable and robust, with Max Robust Error (MRE) scores effectively distinguishing anomalies from normal data points in both datasets.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.