Skip to main content
QUICK REVIEW

[Paper Review] Online Time Series Anomaly Detection with State Space Gaussian Processes

Christian Bock, François-Xavier Aubet|arXiv (Cornell University)|Jan 18, 2022
Anomaly Detection Techniques and ApplicationsComputer Science6 citations
TL;DR

This paper proposes r-ssGPFA, an efficient, interpretable online anomaly detection method for univariate and multivariate time series using state space Gaussian processes with orthogonal factor loading constraints. It achieves competitive F1 scores (e.g., 73.15 on SMD) with minimal parameters (236) and ultra-low inference time (0.78 ms per point), outperforming deep learning baselines in speed and robustness while enabling anomaly attribution to latent components.

ABSTRACT

We propose r-ssGPFA, an unsupervised online anomaly detection model for uni- and multivariate time series building on the efficient state space formulation of Gaussian processes. For high-dimensional time series, we propose an extension of Gaussian process factor analysis to identify the common latent processes of the time series, allowing us to detect anomalies efficiently in an interpretable manner. We gain explainability while speeding up computations by imposing an orthogonality constraint on the mapping from the latent to the observed. Our model's robustness is improved by using a simple heuristic to skip Kalman updates when encountering anomalous observations. We investigate the behaviour of our model on synthetic data and show on standard benchmark datasets that our method is competitive with state-of-the-art methods while being computationally cheaper.

Motivation & Objective

  • To develop a computationally efficient, unsupervised online anomaly detection method for time series that scales to high-dimensional data.
  • To improve interpretability in multivariate anomaly detection by identifying anomalies through latent components via constrained factor analysis.
  • To enhance robustness against anomalous observations during inference using a Kalman filter heuristic that skips updates on outliers.
  • To achieve competitive detection performance with minimal model parameters and low inference latency, suitable for edge deployment.
  • To enable explainability by attributing anomalies to specific latent processes or noise components.

Proposed method

  • The method uses a state space Gaussian process (ssGP) formulation to enable linear-time inference in multivariate time series, avoiding costly kernel matrix inversions.
  • It extends Gaussian process factor analysis (GPFA) to a state space framework, modeling observed time series as linear combinations of latent processes.
  • An orthogonality constraint is imposed on the factor loading matrix to decouple latent processes, improving interpretability and computational efficiency.
  • A robust Kalman filtering heuristic skips updates when observations are deemed anomalous, reducing model drift and improving stability.
  • The model uses standard GP kernels (e.g., Matérn, Cosine) in the state space representation to capture complex temporal dynamics and periodicity.
  • Anomaly scores are derived from predictive log-likelihoods, with anomalies flagged when likelihoods fall below a threshold.

Experimental results

Research questions

  • RQ1Can a state space GP formulation enable efficient, linear-time inference for multivariate time series anomaly detection?
  • RQ2How does imposing an orthogonality constraint on the factor loading matrix affect interpretability and computational speed?
  • RQ3Can a simple heuristic for skipping Kalman updates on anomalous points improve robustness without sacrificing detection performance?
  • RQ4How does the method compare to deep learning-based and heuristic-based anomaly detection models in terms of F1 score, inference speed, and parameter efficiency?
  • RQ5To what extent can anomalies be meaningfully attributed to specific latent components or noise processes?

Key findings

  • On the SMD benchmark, r-ssGPFA achieved an F1 score of 73.15 with only 236 parameters and an inference time of 0.78 ms per time point, outperforming RRCF in speed and DAGMM in parameter efficiency.
  • On the MSL dataset, r-ssGPFA achieved an F1 score of 94.03, demonstrating strong performance on complex multivariate time series with high precision and recall.
  • On the univariate NAB benchmark, the non-robust ssGP variant achieved an F1 score of 90.18, outperforming RRCF (82.93) and showing strong generalization despite a simpler architecture.
  • The robust version (r-ssGPFA) showed a performance drop on NAB, which the authors attribute to the presence of 'anomaly windows' where normal points are labeled as anomalous, affecting F1 calculation.
  • r-ssGPFA outperformed SGP-Q on 7 out of 9 time series, with a median F1 gain of 3.60, confirming its effectiveness despite a simpler design.
  • The method achieved the fastest inference time among all evaluated models, with 0.78 ms per point, making it suitable for real-time and edge deployment.

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.