Towards Unbiased Evaluation of Time-series Anomaly Detector

Debarpan Bhattacharya, Sumanta Mukherjee, Chandramouli Kamanchi, Vijay Ekambaram, Arindam Jati, Pankaj Dayama · DOI

Introduction

Evaluating time-series anomaly detection (TSAD) models presents a unique challenge compared to standard point-wise classification. In TSAD, anomalies are typically events that persist over a duration of time rather than isolated instances. To account for this, the research community widely adopted the Point Adjustment (PA) protocol. Under PA, if a model correctly identifies even a single point within an anomalous segment, the entire segment is treated as a True Positive (TP).

While intended to reward models for detecting events, this paper demonstrates that PA introduces a severe optimistic bias. It can inflate performance metrics—specifically the F1-score—to the point where random noise can appear to outperform sophisticated models. This work exposes these flaws and introduces Balanced Point Adjustment (BA), a mathematically grounded alternative that ensures fair and unbiased evaluation.

The Flaw in Point Adjustment

The primary issue with standard PA is its asymmetric nature. It "adjusts" (expands) True Positives without applying a corresponding penalty for False Positives (FPs). This allows models to achieve high scores by simply predicting anomalies frequently or for long durations, even if those predictions are largely incorrect. Recent empirical evidence suggests that PA can make a completely random detector appear to have an F1-score above 0.75, rendering it useless for distinguishing true algorithmic progress.

Methods: Balanced Point Adjustment (BA)

To rectify this, the authors propose the Balanced Point Adjustment (BA) protocol and the $F1_{BA}$ metric. The core philosophy of BA is to balance the "bonus" given for detecting segments with a "penalty" for incorrect predictions.

Axiomatic Framework

The authors establish four fundamental axioms that any robust TSAD metric should satisfy:

  1. Noise Resistance: A metric should not reward random guessing.
  2. Monotonicity: Improvements in precision or recall should always lead to a higher score.
  3. Perfect Score Requirement: A perfect score (1.0) should only be achievable by a perfect detector.
  4. Threshold Agnosticism under Noise: The metric should remain stable when faced with varying thresholds on random data.

FP Islands and Adjustment

Unlike PA, which only expands TPs, BA introduces a "penalty" mechanism for False Positives. When a model predicts an anomaly where none exists, BA defines an "island" of width $w_N$ around that point. This effectively increases the weight of the False Positive, counteracting the expansion of True Positives and preventing the metric from being gamed by over-prediction.

Comparison of point adjustment strategies, highlighting the transition from standard PA to the proposed TP + FP adjustment (BA).

Experimental Setup: Large-Scale Simulation

To validate the proposed metric, the researchers developed a comprehensive simulation tool. They generated 15,000 distinct scenarios, varying parameters such as anomaly width, frequency, and the "Separation Score" (the statistical distance between normal and anomalous signals). This synthetic approach allowed for a rigorous stress test of the $F1_{BA}$ metric against $F1_{PA}$ across a vast range of detector behaviors, ensuring the metric remains robust even in edge cases.

Key Results

The experimental results confirm that $F1_{BA}$ successfully addresses the biases inherent in PA while maintaining sensitivity to true model improvements.

Noise Resistance and Threshold Agnosticism

One of the most striking findings is the behavior of metrics under uniform random noise. As shown in the figure below, as the detection threshold ($\gamma$) increases, the $F1_{PA}$ score climbs toward 1.0, falsely indicating high performance. In contrast, $F1_{BA}$ remains stable and correctly stays below the 0.5 "chance" level, regardless of the threshold.

Metric stability under noise: PA scores inflate as the threshold increases, while BA remains stable and below the chance level.

Sensitivity and Convergence

$F1_{BA}$ demonstrates higher sensitivity to model precision, making it a superior tool for ranking detectors. It effectively penalizes "lucky" guesses while converging with $F1_{PA}$ for high-quality, high-recall detectors. This ensures that while it exposes poor models, it does not unfairly penalize truly effective ones.

Conclusion and Future Work

The transition from Point Adjustment to Balanced Point Adjustment is critical for the integrity of time-series anomaly detection research. By introducing a penalty for False Positives and adhering to a strict axiomatic framework, $F1_{BA}$ provides a reliable, unbiased measure of model performance.

Future work will involve applying this metric to standard real-world benchmarks to re-evaluate the current state-of-the-art and exploring its application in multivariate time-series contexts. Additionally, refining the selection of the island width parameter ($w_N$) for varying anomaly lengths remains an open area for optimization.

Summary updated

BibTeX
@inproceedings{bhattacharya2025towards,
  author = {Debarpan Bhattacharya and Sumanta Mukherjee and Chandramouli Kamanchi and Vijay Ekambaram and Arindam Jati and Pankaj Dayama},
  title = {{Towards Unbiased Evaluation of Time-series Anomaly Detector}},
  booktitle = {IEEE International Conference on Acoustics, Speech and Signal Processing},
  year = {2025},
  doi = {10.1109/icassp49660.2025.10890568},
}
Figure