NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Towards a Rigorous Evaluation of Time-Series Anomaly Detection

Siwon Kim, Kukjin Choi, Hyun-Soo Choi, Byunghan Lee, Sungroh Yoon

Towards a Rigorous Evaluation of Time-Series Anomaly Detection

Abstract

Recent advancements in deep learning for Time-Series Anomaly Detection (TAD) have reported near-perfect F1 scores on benchmark datasets. However, this paper reveals that these results are largely inflated by the widely adopted "Point Adjustment" (PA) evaluation protocol. We demonstrate, both theoretically and empirically, that the PA protocol can make random anomaly scores appear superior to state-of-the-art models. To address this, we propose a set of simple baselines and a more rigorous evaluation protocol, $PA\%K$, which requires a minimum percentage of detected points within an anomaly segment to trigger an adjustment.

Introduction

Time-series anomaly detection is critical for monitoring complex systems, from industrial plants to spacecraft. In recent years, the field has seen a surge in complex deep learning architectures claiming significant performance gains. Most of these claims rely on the Point Adjustment (PA) protocol, which considers an entire anomaly segment correctly detected if even a single time-step within it is flagged. This paper investigates whether these gains are genuine or merely artifacts of a flawed evaluation metric.

The Flaw in Point Adjustment

The PA protocol was originally intended to compensate for imprecise ground-truth labels. However, it introduces a severe bias. Because anomaly segments in common benchmarks are often very long, even a random signal is likely to produce a "hit" at some point within the segment.

Illustration of the Point Adjustment (PA) protocol and its impact on F1 scores. (a) Both informative and random scores can result in perfect adjusted predictions. (b) Random scores can outperform state-of-the-art models when using PA.

As shown in the figure above, the PA protocol effectively "fills in" the gaps, transforming sparse or even random detections into perfect segment-wise predictions. This leads to the startling result that a random baseline can outperform models like USAD and OmniAnomaly on standard datasets like SWaT and WADI.

Methods

To expose and correct these issues, the authors employ three strategies:

  • Theoretical Analysis: A mathematical proof shows that for sufficiently long anomaly segments, a random score's $F1_{PA}$ will approach 1 as the detection threshold is optimized.
  • Dummy Baselines: The researchers introduce three baselines: random scores, raw input magnitude, and scores from untrained, randomly initialized LSTMs. These serve as a "sanity check" for trained models.
  • The $PA\%K$ Protocol: This new metric refines PA by requiring that at least $K\%$ of the points in an anomaly segment be correctly identified before the adjustment is applied. This prevents single random spikes from inflating the score while still allowing for some label imprecision.

Key Results

The empirical evaluation across five major datasets (SWaT, WADI, SMD, MSL, SMAP) confirms the severity of the problem.

Randomness vs. SOTA: On the SWaT dataset, a random anomaly score achieved an $F1_{PA}$ of 0.969, surpassing specialized models. Without PA, many state-of-the-art models struggle to outperform even the raw input baseline or an untrained LSTM.

Metric Disconnect: Perhaps most damning is the lack of correlation between PA-adjusted scores and standard F1 scores.

Correlation between $F1_{PA}$ and standard $F1$ scores on SWaT and WADI datasets. The low correlation coefficients (KRC and PCC) demonstrate that $F1_{PA}$ fails to reliably rank model performance.

As illustrated in the scatter plots, there is very little correlation between a model's performance under the PA protocol and its actual point-wise accuracy. This suggests that $F1_{PA}$ is not a proxy for better detection, but rather a measure of how easily a model's output can be "fixed" by the protocol.

Effectiveness of $PA\%K$: The proposed $PA\%K$ protocol successfully distinguishes between trained models and random noise. By varying the threshold $K$, researchers can obtain a more nuanced view of model performance, often summarized by the Area Under the $PA\%K$ Curve.

Conclusion

The current state of time-series anomaly detection evaluation is problematic. The reliance on the PA protocol has created an "illusion of progress," where complex models are celebrated for performance that can be matched by random noise or untrained networks. The authors recommend that future research adopt more rigorous metrics like $PA\%K$, utilize threshold-independent measures (AUROC/AUPR), and include simple baselines to ensure that reported improvements are meaningful.

Summary updated

BibTeX
@inproceedings{kim2022towards,
  author = {Siwon Kim and Kukjin Choi and Hyun-Soo Choi and Byunghan Lee and Sungroh Yoon},
  title = {{Towards a Rigorous Evaluation of Time-Series Anomaly Detection}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2022},
  doi = {10.1609/aaai.v36i7.20680},
}
Figure