Introduction
Evaluating time-series anomaly detection (AD) models is notoriously difficult. Unlike standard classification tasks where anomalies are isolated points, time-series anomalies are typically "range-based," spanning continuous sequences of observations. Traditional metrics like Precision, Recall, and F-score, which were designed for point-based data, fail to capture the nuances of temporal data, leading to inconsistent model rankings and misleading performance assessments.
The Limitations of Traditional Metrics
Historically, researchers have relied on Information Retrieval metrics. However, these introduce two significant problems:
- The Threshold Trap: Metrics like F-score require converting continuous anomaly scores into binary predictions using an arbitrary threshold. Small changes in this threshold can lead to wild swings in apparent performance.
- Lag and Alignment Issues: Time-series models often utilize sliding windows, which can introduce slight lags in anomaly scores. Point-based metrics heavily penalize these minor misalignments, treating a slightly delayed detection as both a false positive and a false negative.
While standard Area Under the Curve (AUC) metrics address the threshold problem, they still treat points independently and fail to reward models that correctly identify the general range of an anomaly.
Proposed Solution: Volume Under the Surface (VUS)
To address these shortcomings, this work introduces Volume Under the Surface (VUS), a new family of threshold-independent, parameter-free evaluation metrics designed specifically for range-based anomalies.
The VUS framework evolves through three stages:
- Range-AUC (R-AUC): Introduces a continuous "buffer region" around ground-truth labels, forgiving minor misalignments.
- VUS-ROC and VUS-PR: To eliminate the need for a fixed buffer size, VUS calculates R-AUC across all possible buffer lengths. This transforms the 2D ROC/PR curve into a 3D surface (True Positive Rate vs. False Positive Rate vs. Buffer Length), where the final metric is the volume under this surface.
- Algorithmic Optimizations: To ensure practical computation times, the authors developed optimized algorithms ($VUS_{opt}$ and $VUS_{opt}^{mem}$) that focus only on "dynamic sections" of the time series—the areas immediately surrounding anomalies—achieving up to a 10x speedup.
Experimental Evaluation and Robustness
The authors conducted an extensive evaluation using the TSB-UAD benchmark, encompassing 900 time series across 10 diverse public datasets. They compared 10 state-of-the-art anomaly detection methods to observe how metric choice impacts model ranking.
The results demonstrate that VUS metrics are significantly more robust than traditional alternatives. When subjected to artificial lag, noise, or varying anomaly ratios, VUS-ROC and VUS-PR maintained stable performance scores, whereas traditional metrics exhibited high variance. Furthermore, VUS metrics provided the most consistent model rankings across different datasets, as measured by Shannon Entropy.
Conclusion
VUS-ROC emerges as the most reliable metric for evaluating time-series anomaly detection. By being threshold-independent, parameter-free, and sequence-adapted, it aligns mathematical evaluation with human visual intuition. While computationally more intensive than point-based metrics, the proposed optimizations make VUS a practical and essential tool for robust model benchmarking in real-world time-series applications.
Summary updated