Toward a Scalable and Adaptive Evaluation Measure for Time Series Anomaly Detection
Authors: Emmanouil Sylligardos, Mingyi Huang, John Paparrizos, Pierre Senellart, Paul Boniol
Organizations: DI ENS, ENS, PSL Univ., CNRS, Inria, Paris, France · The Ohio State Univ., Columbus, OH, USA · Aristotle Univ. Thessaloniki, Thessaloniki, Greece
Time Series Anomaly Detection (TSAD) is a fundamental task for time series analytics. Unlike other domains, where anomaly detection mainly focuses on point-based anomalies, TSAD must also handle range-based anomalies. Nevertheless, TSAD methods are commonly evaluated with measures inherited from classification, such as Precision and Recall, which require a threshold, or with threshold-independent ones, such as AUC, which ignore the temporal aspect of anomalies. To address these issues, the Volume Under the Surface (VUS) measure scores detectors across all thresholds and a range of buffer lengths and has been widely adopted. However, VUS has two limitations. First, VUS is computationally expensive, requiring 7 hours and 38 minutes to evaluate 32 detectors on the 870 TSB-AD time series. Second, VUS applies the same buffer lengths to every anomaly and detector, which can yield over-optimistic scores that hinder discrimination between accurate and mediocre detectors. We first introduce FastVUS, which computes VUS exactly and on average 76x faster by (i) computing all buffers in parallel, (ii) pruning irrelevant buffers for the existence reward, (iii) casting the confusion matrix as a single reduced matrix multiplication, (iv) computing VUS for every buffer length in one pass, and (v) discarding non-anomalous regions with a global mask. We also develop FastVUS-GPU, which recasts every step as batched tensor operations and reaches an average 304x speedup with a maximum error of 5×10−3. Building on FastVUS, we introduce AutoVUS, an adaptive extension that compares each detection against a random baseline and selects the buffer length that maximizes the gain over it. Our case studies show that AutoVUS reduces over-optimistic scores and better separates accurate from mediocre detectors. We release FastVUS and AutoVUS as open source to promote time-aware evaluation at scale.
Figures & tables
Fig. 1 : Our two main contributions. (a) Runtime per series and total time on TSB-AD. (b) An example series with two scores. Red marks the labeled anomalies, dashed lines the fixed VUS buffer, orange the buffers AutoVUS selects, and light red a false positive (FP). VUS@20 is VUS-PR with L=20 .
Fig. 2 : (a) Label before (top) and after (bottom) adding 20 buffers (buffer height Z ), (b) existence values over all buffer × threshold pairs, and (c) resulting Precision-Recall surface across 20 buffers (shown as lines for clarity).
Fig. 3 : Proposed vectorized buffer injection. Top: the position sequence (distance of each point to its closest anomaly boundary), with buffered regions in green and unaffected regions in red. Bottom: the resulting buffered label.
Fig. 4 : Confusion matrix computation. Top: the label splits into three regions. Bottom: the regions used to compute TP .
Fig. 5 : Adaptive buffer selection. (i) Label y , score s , and the buffer selected for anomaly Rk . (ii) Marginal AUC Ak(b;s) and random baseline gk(b) over buffer length b . (iii) Random-normalized gain rk(b;s) , its smallest maximizer gives bk∗ .
Fig. 6 : Accuracy and ablation on TSB-AD. (a) Absolute error to the original VUS, at most 2×10−15 for FastVUS and 5×10−3 for FastVUS-GPU. (b) Each technique added to the previous ones, speedup as total-time ratio to the original VUS.
Fig. 7 : Runtime versus key characteristics on synthetic time series (in (a) FastVUS and Affiliation are superposed, and ECG stands for Electrocardiogram).
Fig. 8 : Practicality of FastVUS. (a) Measure versus detector inference time on TSB-AD, one point per series and detector pair. (b) Training (solid) and validation (hatched) time of a 100-epoch model-selection pipeline, per measure. Total validation time above each bar.
Fig. 9 : Two series and the anomaly scores of two detectors each. Red marks the labeled anomalies and orange the buffers AutoVUS selects. VUS@20 is VUS-PR with L=20 .
Fig. 10 : Controlled case study comparing evaluation measures under temporal shift, length mismatch, and extra detections. (a) Ground-truth anomaly and synthetic detector scores. (b) Threshold-dependent and threshold-independent measure values. Colored cells highlight values discussed.
Fig. 11 : Each case compares two detector scores under the same anomaly label sequence. The selected per-anomaly buffer vector b∗ is shown below each score and used to compute AutoVUS. The table reports AUC, VUS, AutoVUS, and b∗ , all at maximum buffer length L=20 .
Fig. 12 : Rank of the nine best detectors under AutoVUS on TSB-AD. Underlined names select no buffer on most anomalies (sharp), bold names select one on most (broad). Last two rows, mean rank per group. Last column, mean selected buffer b∗ .
Time-Series Anomaly Detection identifies unusual patterns or events in sequential data, from sensor readings and network traffic to health and industrial telemetry.
Time series anomaly detection (TSAD) is essential for maintaining the reliability and security of IoT-enabled service systems. Existing methods require training one specific model for each dataset, which exhibits limited generalization capability across different target datasets, hindering anomaly detection performance in various scenarios with scarce training data. To address this limitation, foundation models have emerged as a promising direction. However, existing approaches either repurpose large language models (LLMs) or construct largescale time series datasets to develop general anomaly detection foundation models, and still face challenges caused by severe cross-modal gaps or in-domain heterogeneity. In this paper, we investigate the applicability of large-scale vision models to TSAD. Specifically, we adapt a visual Masked Autoencoder (MAE) pretrained on ImageNet to the TSAD task. However, directly transferring MAE to TSAD introduces two key challenges: overgeneralization and limited local perception. To address these challenges, we propose VAN-AD, a novel MAE-based framework for TSAD. To alleviate the over-generalization issue, we design an Adaptive Distribution Mapping Module (ADMM), which maps the reconstruction results before and after MAE into a unified statistical space to amplify discrepancies caused by abnormal patterns. To overcome the limitation of local perception, we further develop a Normalizing Flow Module (NFM), which combines MAE with normalizing flow to estimate the probability density of the current window under the global distribution. Extensive experiments on nine real-world datasets demonstrate that VAN-AD consistently outperforms existing state-of-the-art methods across multiple evaluation metrics.We make our code and datasets available at https://github.com/PenyChen/VAN-AD.
PengYu Chen, Shang Wan, Xiaohou Shi +3
School of Computer Science (National Pilot Software Engineering School), Beijing University of Posts and Telecommunications, Beijing 100876, China · China Telecom Research Institute Beijing, China · Department of Computer Science, Missouri University of Science and Technology, Rolla, MO 65409 USA
Time series (TS) anomaly detection (AD) lacks a universal detector, with the best choice determined by the series rather than by the algorithm. Existing methods therefore either select one detector for each series or average a pool of them. However, both assume that no label ever arrives, while a deployed monitor does receive them, since an operator confirms the alarms it raises. In this paper, we propose ONESHOT, which uses a single confirmed anomaly to weight the pool rather than to choose one detector from it. Specifically, we score each detector on the confirmed anomaly, and those scores become the weights of a soft mixture over the whole pool. We show that a single confirmed anomaly is enough to come close to the best detector for the series. Across 152 univariate and 73 multivariate series, ONESHOT outperforms the strongest single detector, averaging the whole pool, and even picking the best detector on the confirmed event. Code is available at: https://github.com/seunghan96/one_shot.
Time series anomaly detection (TSAD) research predominantly focuses on unsupervised architectures to model normal data dynamics under label scarcity. However, practical deployments frequently archive historical operational incidents, questioning whether continuous unsupervised architectural scaling remains the most cost-effective pursuit. In this paper, we empirically quantify the trade-offs between supervisory signals and model complexity. We introduce STAND, a deliberately minimalist supervised baseline based on bidirectional recurrent encoding. Across five benchmark datasets evaluated under a strictly disjoint out-of-sample temporal protocol, minimalist supervised models achieve competitive or superior accuracy relative to complex unsupervised alternatives. Furthermore, controlled label-scaling and few-shot evaluations confirm that these supervisory advantages persist under constrained historical event budgets, while STAND exhibits higher prediction certainty and sharper event delineation than reconstruction-based baselines. These findings encourage the TSAD community to complement algorithmic complexity with data-centric label utilization when annotations are accessible. The source code, benchmark datasets, and an extended Supplementary Document are publicly available at https://emorzz1g.github.io/STAND.
Zhijie Zhong, Zhiwen Yu, Kaixiang Yang +3
School of Future Technology, South China University of Technology, Guangzhou, Guangdong 510650, China · Pengcheng Laboratory, Shenzhen, Guangdong 518066, China · School of Computer Science and Engineering, South China University of Technology, Guangzhou, Guangdong 510650, China