DQE: A Semantic-Aware Evaluation Metric for Time Series Anomaly Detection
Organizations: Hangzhou Dianzi University, Hangzhou, China · Zhejiang University, Hangzhou, China
Abstract
Time series anomaly detection has achieved remarkable progress in recent years. However, evaluation practices have received comparatively less attention, despite their critical importance. Existing metrics exhibit several limitations: (1) bias toward point-level coverage, (2) insensitivity or inconsistency in near-miss detections, (3) inadequate penalization of false alarms, and (4) inconsistency caused by threshold or threshold-interval selection. These limitations can produce unreliable or counterintuitive results, hindering objective progress. In this work, we revisit the evaluation of time series anomaly detection from the perspective of detection semantics and propose a novel metric for more comprehensive assessment. We first introduce a partitioning strategy grounded in detection semantics, which decomposes the local temporal region of each anomaly into three functionally distinct subregions. Using this partitioning, we evaluate overall detection behavior across events and design finer-grained scoring mechanisms for each subregion, enabling more reliable and interpretable assessment. Through a systematic study of existing metrics, we identify an evaluation bias associated with threshold-interval selection and adopt an approach that aggregates detection qualities across the full threshold spectrum, thereby eliminating evaluation inconsistency. Extensive experiments on synthetic and real-world data demonstrate that our metric provides stable, discriminative, and interpretable evaluation, while achieving robust assessment compared with ten widely used metrics.
Figures & tables
| Rank | Original-F | AUC-ROC | AUC-PR | PA-K | VUS-ROC | VUS-PR | PATE | RF | eTaF | AF | DQE (ours) |
|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | 0.29 (CNN) | 0.99 (Sub-LOF) | 0.19 (CNN) | 0.57 (CNN) | 0.99 (Sub-LOF) | 0.52 (Sub-LOF) | 0.66 (FFT) | 0.51 (CNN) | 0.74 (CNN) | 1.00 (CNN) | 0.79 (CNN) |
| 2 | 0.23 (FFT) | 0.70 (TimesNet) | 0.14 (FFT) | 0.42 (FFT) | 0.91 (TimesNet) | 0.30 (FFT) | 0.34 (Sub-LOF) | 0.49 (Sub-LOF) | 0.38 (FFT) | 0.99 (TimesNet) | 0.54 (Sub-LOF) |
| 3 | 0.20 (Sub-LOF) | 0.60 (FFT) | 0.08 (Sub-LOF) | 0.21 (Sub-LOF) | 0.85 (CNN) | 0.05 (TimesNet) | 0.24 (CNN) | 0.44 (FFT) | 0.14 (Sub-LOF) | 0.99 (Sub-LOF) | 0.46 (TimesNet) |
| 4 | 0.01 (TimesNet) | 0.55 (CNN) | 0.00 (TimesNet) | 0.01 (TimesNet) | 0.72 (FFT) | 0.04 (CNN) | 0.02 (TimesNet) | 0.00 (TimesNet) | 0.00 (TimesNet) | 0.81 (FFT) | 0.34 (FFT) |
| Rank | Original-F | AUC-ROC | AUC-PR | PA-K | VUS-ROC | VUS-PR | PATE | RF | eTaF | AF | DQE (ours) |
|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | 0.52 (KMeansAD) | 0.99 (KMeansAD) | 0.51 (KMeansAD) | 1.00 (CNN) | 0.99 (KMeansAD) | 0.15 (KMeansAD) | 0.55 (KMeansAD) | 0.63 (KMeansAD) | 0.76 (CNN) | 1.00 (CNN) | 0.91 (CNN) |
| 2 | 0.51 (CNN) | 0.69 (CNN) | 0.42 (CNN) | 0.98 (KMeansAD) | 0.83 (CNN) | 0.11 (CNN) | 0.44 (CNN) | 0.45 (CNN) | 0.75 (KMeansAD) | 1.00 (KMeansAD) | 0.50 (KMeansAD) |
Appendix figures & tables8 assets
Supplementary material from the paper’s appendix.
Appendix
| Rank | Algorithm | DQE | DQE cap | DQE nm | DQE fa |
|---|---|---|---|---|---|
| 1 | CNN | 0.91 | 0.99 | 0.82 | 0.92 |
| 2 | KMeansAD | 0.50 | 1.00 | 0.13 | 0.53 |
| Rank | DQE (sequence level) | DQE (anomaly-event level) |
|---|---|---|
| 1 | 0.65 (CNN) | 0.5 (CNN) |
| 2 | 0.50 (Sub-LOF) | 0.41 (Sub-LOF) |
| 3 | 0.42 (FFT) | 0.39 (FFT) |
| 4 | 0.35 (TimesNet) | 0.25 (TimesNet) |
| 5 | 0.12(KMeansAD) | 0.13 (KMeansAD) |
| Rank | Algorithm | mean result | DQE cap | DQE nm | DQE fa | first anomaly event | DQE cap | DQE nm | DQE fa | second anomaly event | DQE cap | DQE nm | DQE fa | third anomaly event | DQE cap | DQE nm | DQE fa |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Rank | Algorithm | DQE | DQE cap | DQE nm | DQE fa | DQE local | DQE local,cap | DQE local,nm | DQE local,fa | DQE local | DQE local,cap | DQE local,nm | DQE local,fa | DQE local | DQE local,cap | DQE local,nm | DQE local,fa |
| 1 | CNN | 0.79 | 0.81 | 0.77 | 0.79 | 0.98 | 1.00 | 0.96 | 0.98 | 0.73 | 0.75 | 0.71 | 0.72 | 0.66 | 0.68 | 0.65 | 0.66 |
| 2 | Sub-LOF | 0.54 | 0.78 | 0.07 | 0.76 | 0.63 | 0.90 | 0.06 | 0.90 | 0.57 | 0.80 | 0.10 | 0.79 | 0.43 | 0.63 | 0.05 | 0.59 |
| 3 | TimesNet | 0.46 | 0.00 | 0.56 | 0.76 | 0.58 | 0.00 | 0.69 | 0.99 | 0.40 | 0.00 | 0.50 | 0.66 | 0.39 | 0.00 | 0.49 | 0.62 |
| 4 | FFT | 0.34 | 0.43 | 0.32 | 0.38 | 0.12 | 0.29 | 0.05 | 0.14 | 0.90 | 1.00 | 0.90 | 0.88 | 0.00 | 0.00 | 0.00 | 0.11 |
| Rank | Original-F | AUC-ROC | AUC-PR | PA-K | VUS-ROC | VUS-PR | PATE | RF | eTaF | AF | DQE (ours) |
|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | 0.47 (Sub-LOF) | 0.92 (Sub-LOF) | 0.37 (Sub-LOF) | 0.71 (CNN) | 0.94 (Sub-LOF) | 0.38 (FFT) | 0.52 (FFT) | 0.52 (CNN) | 0.73 (CNN) | 0.98 (CNN) | 0.65 (CNN) |
| 2 | 0.44 (FFT) | 0.82 (FFT) | 0.32 (FFT) | 0.58 (Sub-LOF) | 0.91 (TimesNet) | 0.35 (Sub-LOF) | 0.52 (Sub-LOF) | 0.51 (Sub-LOF) | 0.48 (Sub-LOF) | 0.97 (TimesNet) | 0.50 (Sub-LOF) |
| 3 | 0.41 (CNN) | 0.79 (TimesNet) | 0.32 (CNN) | 0.53 (FFT) | 0.89 (FFT) | 0.21 (TimesNet) | 0.40 (CNN) | 0.45 (FFT) | 0.38 (FFT) | 0.96 (Sub-LOF) | 0.42 (FFT) |
| 4 | 0.26 (TimesNet) | 0.74 (CNN) | 0.16 (TimesNet) | 0.39 (TimesNet) | 0.88 (CNN) | 0.19 (CNN) | 0.24 (TimesNet) | 0.20 (TimesNet) | 0.30 (TimesNet) | 0.91 (FFT) | 0.35 (TimesNet) |
| 5 | 0.10 (KMeansAD) | 0.60 (KMeansAD) | 0.06 (KMeansAD) | 0.13 (KMeansAD) | 0.66 (KMeansAD) | 0.08 (KMeansAD) | 0.13 (KMeansAD) | 0.17 (KMeansAD) | 0.10 (KMeansAD) | 0.74 (KMeansAD) | 0.12 (KMeansAD) |
| Rank | Original-F | AUC-ROC | AUC-PR | PA-K | VUS-ROC | VUS-PR | PATE | RF | eTaF | AF | DQE (ours) |
|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | 0.40 (Sub-LOF) | 0.86 (Sub-LOF) | 0.32 (KMeansAD) | 0.62 (Sub-LOF) | 0.89 (Sub-LOF) | 0.26 (KMeansAD) | 0.37 (Sub-LOF) | 0.40 (Sub-LOF) | 0.50 (Sub-LOF) | 0.92 (Sub-LOF) | 0.54 (Sub-LOF) |
| 2 | 0.35 (KMeansAD) | 0.84 (KMeansAD) | 0.30 (Sub-LOF) | 0.45 (KMeansAD) | 0.85 (KMeansAD) | 0.25 (Sub-LOF) | 0.34 (KMeansAD) | 0.37 (KMeansAD) | 0.38 (KMeansAD) | 0.87 (CNN) | 0.42 (CNN) |
| 3 | 0.13 (CNN) | 0.66 (CNN) | 0.09 (CNN) | 0.29 (CNN) | 0.74 (CNN) | 0.07 (CNN) | 0.10 (CNN) | 0.20 (CNN) | 0.31 (CNN) | 0.85 (KMeansAD) | 0.31 (TimesNet) |
| 4 | 0.08 (FFT) | 0.54 (TimesNet) | 0.04 (FFT) | 0.13 (FFT) | 0.63 (TimesNet) | 0.06 (FFT) | 0.06 (FFT) | 0.11 (TimesNet) | 0.16 (TimesNet) | 0.82 (FFT) | 0.30 (FFT) |
| 5 | 0.04 (TimesNet) | 0.52 (FFT) | 0.02 (TimesNet) | 0.09 (TimesNet) | 0.56 (FFT) | 0.02 (TimesNet) | 0.02 (TimesNet) | 0.11 (FFT) | 0.14 (FFT) | 0.81 (TimesNet) | 0.30 (KMeansAD) |
Time-Series Anomaly Detection
Time-Series Anomaly Detection identifies unusual patterns or events in sequential data, from sensor readings and network traffic to health and industrial telemetry.
See all 203 papers