[Paper Review] Real-time Anomaly Detection for Multivariate Data Streams
This paper proposes a real-time, unsupervised multivariate anomaly detection algorithm based on Probabilistic Exponentially Weighted Moving Average (PEWMA) that handles abrupt and gradual concept drifts in data streams. It uses incremental online learning with an adaptive thresholding mechanism and maintains statistical robustness through online covariance and inverse covariance estimation via Sherman-Morrison formula, achieving low error rates even under distributional shifts.
We present a real-time multivariate anomaly detection algorithm for data streams based on the Probabilistic Exponentially Weighted Moving Average (PEWMA). Our formulation is resilient to (abrupt transient, abrupt distributional, and gradual distributional) shifts in the data. The novel anomaly detection routines utilize an incremental online algorithm to handle streams. Furthermore, our proposed anomaly detection algorithm works in an unsupervised manner eliminating the need for labeled examples. Our algorithm performs well and is resilient in the face of concept drifts.
Motivation & Objective
- To develop an unsupervised, real-time anomaly detection system for multivariate data streams that adapts to concept drift.
- To extend univariate PEWMA to multivariate settings while preserving statistical rigor and online efficiency.
- To eliminate reliance on labeled data by enabling fully online, incremental learning with minimal memory overhead.
- To evaluate the algorithm’s robustness under various signal shifts: abrupt transient, abrupt distributional, and gradual distributional changes.
- To compare incremental online covariance estimation against static batch estimation in terms of accuracy and convergence.
Proposed method
- The algorithm employs Probabilistic Exponentially Weighted Moving Average (PEWMA) to model streaming data with adaptive forgetting based on data probability.
- It uses an online covariance matrix estimation technique derived from Igel et al. (2006), updated incrementally as new data arrives.
- The inverse covariance matrix is computed using the Sherman-Morrison formula to maintain computational efficiency.
- Cholesky decomposition is applied to ensure positive definiteness and numerical stability of the covariance matrix.
- Anomaly scores are computed using a normalized residual metric, with Absolute Average Deviation (AAD) used as the evaluation loss function.
- The method operates in two phases: initial static training on a window of data, followed by continuous online updates with adaptive thresholding.
Experimental results
Research questions
- RQ1How well does the proposed PEWMA-based algorithm detect anomalies in multivariate data streams under abrupt and gradual concept drifts?
- RQ2What is the trade-off between initial static window size and online update window size in terms of detection accuracy?
- RQ3Can the algorithm maintain low error and high robustness without labeled data or prior knowledge of anomaly patterns?
- RQ4How does the incremental covariance estimation compare to batch covariance estimation in terms of convergence and stability?
- RQ5Does the use of AAD as a loss metric provide tighter error bounds than MSE or MAD in anomaly detection performance?
Key findings
- The algorithm achieves lower error rates when trained on larger initial static windows, confirming the benefit of more initial data for model stability.
- The error is highest at the beginning of training, indicating a need for positive definite initialization or early convergence strategies.
- The algorithm is insensitive to initialization seeds and matrix dimensions, demonstrating robustness across different configurations.
- The use of AAD as a loss metric provides tighter error bounds than MSE or MAD, improving sensitivity to large residuals.
- The incremental online covariance estimation performs comparably to batch estimation, especially as more data is processed.
- The method successfully handles all three types of signal shifts: abrupt transient, abrupt distributional, and gradual distributional shifts.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.