Skip to main content
QUICK REVIEW

[Paper Review] Conformal k-NN Anomaly Detector for Univariate Data Streams

Vladislav Ishimtsev, Ivan Nazarov|arXiv (Cornell University)|Jun 11, 2017
Anomaly Detection Techniques and ApplicationsComputer Science1 references26 citations
TL;DR

This paper proposes a conformal k-NN anomaly detector for univariate time-series that adapts to non-stationarity using sliding windows and provides probabilistic abnormality scores via conformal prediction. It achieves state-of-the-art performance on the Numenta Anomaly Benchmark and Yahoo! S5 dataset, outperforming complex prediction-based models and securing third place in the 2016 Numenta competition.

ABSTRACT

Anomalies in time-series data give essential and often actionable information in many applications. In this paper we consider a model-free anomaly detection method for univariate time-series which adapts to non-stationarity in the data stream and provides probabilistic abnormality scores based on the conformal prediction paradigm. Despite its simplicity the method performs on par with complex prediction-based models on the Numenta Anomaly Detection benchmark and the Yahoo! S5 dataset.

Motivation & Objective

  • To develop a model-free anomaly detection method for univariate time-series that adapts to non-stationarity and provides probabilistic abnormality scores.
  • To address the limitations of traditional distance-based and prediction-based methods by integrating conformal prediction for valid, non-parametric confidence measures.
  • To improve detection performance on real-world data streams with quasi-periodicity, non-stationarity, and long-range dependence.
  • To validate the method on stringent benchmarks, including the Numenta Anomaly Benchmark and Yahoo! S5 dataset, under realistic cost functions.
  • To demonstrate that a simple k-NN approach with conformal scoring can rival complex models like neural networks and cortical memory systems.

Proposed method

  • The method embeds univariate time-series into a higher-dimensional space using a sliding window of length l, enabling k-NN to operate on sequential patterns.
  • It employs conformal prediction to compute non-parametric p-values (nonconformity scores) based on a calibration set, providing valid probabilistic confidence in abnormality.
  • The Local Density Confidence (LDCD) score is derived from the empirical distribution of nonconformity scores, offering a robust, distribution-aware abnormality measure.
  • Dynamic Range (DynR) heuristic is used as a baseline for comparison, relying on simple scaling of reconstruction errors without probabilistic guarantees.
  • Signal pruning is applied post-hoc to reduce false positives, particularly when the baseline k-NN detector is over-sensitive.
  • The method uses deferred scoring to adapt to concept drift by maintaining a sliding window of recent observations for calibration and prediction.

Experimental results

Research questions

  • RQ1Can a simple k-NN model with conformal prediction provide reliable, probabilistically valid abnormality scores in non-stationary univariate time-series?
  • RQ2How does the performance of conformal k-NN compare to complex prediction-based models in real-world anomaly detection benchmarks?
  • RQ3To what extent does the LDCD confidence score improve detection performance over heuristic methods like DynR?
  • RQ4Does signal pruning effectively reduce false positives without increasing false negatives in the conformal k-NN framework?
  • RQ5What is the impact of violating the i.i.d. assumption in time-series due to overlapping embedded vectors on the validity of conformal scores?

Key findings

  • The conformal k-NN detector achieved a standard score of 64.3 on the Yahoo! S5 dataset and 56.8 on the Numenta dataset, outperforming baseline DynR and other complex models.
  • With signal pruning, the 27-NN with l=19 and LDCD scoring reached a standard score of 64.3 on Yahoo! S5 and 56.8 on Numenta, placing third in the 2016 Numenta Anomaly Detection Competition.
  • The LDCD confidence scores significantly improved benchmark performance over the DynR heuristic, which lacks probabilistic validity and only considers extreme values.
  • Even with k=1 and no embedding (l=1), the LDCD-based k-NN achieved a standard score of 46.9 on Yahoo! S5 and 53.5 on Numenta, demonstrating robustness without alarm thinning.
  • The method showed low false negative and false positive rates, with LowFN and LowFP scores consistently above 50 on both datasets, indicating strong anomaly coverage and precision.
  • The results suggest that the theoretical validity of the LDCD procedure holds in practice, though further research is needed on the effects of i.i.d. assumption violations in overlapping time-series embeddings.

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.