[Paper Review] Low Latency Anomaly Detection and Bayesian Network Prediction of Anomaly Likelihood
This paper proposes a low-latency anomaly detection system using a regularized autoregressive distributed lag model, extended with a Bayesian network to predict anomaly likelihood in real time. The method achieves an F₁ score of 0.78 on a 4-time-series test set by modeling residual errors as predictors of future anomalies through linear Gaussian conditional probabilities.
We develop a supervised machine learning model that detects anomalies in systems in real time. Our model processes unbounded streams of data into time series which then form the basis of a low-latency anomaly detection model. Moreover, we extend our preliminary goal of just anomaly detection to simultaneous anomaly prediction. We approach this very challenging problem by developing a Bayesian Network framework that captures the information about the parameters of the lagged regressors calibrated in the first part of our approach and use this structure to learn local conditional probability distributions.
Motivation & Objective
- Develop a real-time, low-latency anomaly detection system for high-volume, non-stationary time series streams.
- Extend detection to predictive anomaly forecasting by modeling temporal dependencies across time series.
- Capture latent inter-series dependencies without prior assumptions about their structure.
- Construct a scalable Bayesian network framework to estimate the likelihood of future anomalies based on lagged predictor coefficients.
- Enable generative modeling of anomaly processes for interpretability and inference beyond classification.
Proposed method
- Apply an L1-regularized autoregressive distributed lag model to predict current values using all past values from all time series within a sliding window.
- Use least squares regression to estimate model coefficients and compute prediction residuals, which are normalized to (0,1) for probabilistic interpretation.
- Construct a Bayesian network where the anomaly probability of a time series is modeled as a logistic function of its residual error and lagged predictor coefficients.
- Learn conditional probability distributions via least squares fitting of a linear Gaussian model linking residuals to predictor variables.
- Define anomaly occurrence as a binary variable with P(A_i=1 | ε̂) = min(1, α·ε̂), where α is tuned via cross-validation to maximize F₁ score.
- Simplify inference by treating the conditional distribution as the posterior, avoiding complex prior specification.
Experimental results
Research questions
- RQ1Can a low-latency, real-time anomaly detection system be built using regularized autoregressive models on unbounded time series streams?
- RQ2To what extent can latent dependencies between non-stationary time series be captured effectively for anomaly prediction?
- RQ3How well can a Bayesian network model the likelihood of future anomalies using coefficients from a lagged regression model?
- RQ4What is the trade-off between predictive performance and model interpretability when using generative models for anomaly prediction?
- RQ5Can residual errors from a detection model be reliably transformed into probabilistic anomaly forecasts?
Key findings
- The proposed anomaly detection model achieves real-time performance by using a sliding window and L1-regularized regression on high-dimensional time series data.
- The Bayesian network framework successfully models anomaly likelihood using lagged regression coefficients, enabling predictive capability beyond detection.
- On a reduced 4-time-series dataset (h=43,200, w=7,200, n=4), the model achieved an F₁ score of 0.78 after hyperparameter tuning with α=5/6.
- The model's performance is lower than discriminative baselines like DPCA, which is expected due to generative model approximations and simplifications.
- Residuals from the detection model are normalized and used as inputs to a logistic regression-like model to estimate anomaly probabilities.
- The approach enables interpretability by explicitly modeling the generative process of anomalies, supporting future inference queries on the underlying data-generating mechanism.
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.