Submitted:
20 July 2026
Posted:
21 July 2026
You are already at the latest version
Abstract
Keywords:
1. Introduction
- A dual-score enhancement module is proposed for Anomaly Transformer. It combines the original score, reconstruction deviation, and association discrepancy without extra supervision.
- An early-warning-oriented evaluation is used, including PA-P, PA-R, PA-F1, event-level precision, event-level recall, mean detection delay, partial-hit score, AUPRC, Affiliation-F1, PATE-style F1, Range-AUC, and VUS-style metrics.
- Experiments on SMD, PSM, SMAP, and MSL show that the proposed method consistently improves event recall and reduces detection delay, while AUPRC and point-adjusted scores reveal the expected trade-off between early warning and point-wise precision.
2. Related Work
2.1. Multivariate Time-Series Anomaly Detection
2.2. Transformer Models and Evaluation Protocols
3. Materials and Methods
3.1. Problem Definition
3.2. Base Score and Enhanced Dual Score
3.3. Relation to Anomaly Transformer
3.4. Union Early-Warning Mode and Thresholding
3.5. Workflow
4. Experiments
4.1. Dataset and Settings
| Dataset | Domain | Variables | Anomaly ratio used for thresholding |
|---|---|---|---|
| SMD | Server monitoring | 38 | 0.5 |
| PSM | Server monitoring | 25 | 1.0 |
| SMAP | Spacecraft telemetry | 25 | 1.0 |
| MSL | Spacecraft telemetry | 55 | 1.0 |
4.2. Evaluation Metrics
4.3. Main Results
4.4. Range- and Proximity-Aware Metrics
4.5. Parameter Sensitivity
4.6. Case-Style Early-Warning Visualization
5. Discussion
6. Conclusions
Author Contributions
Funding
Institutional Review Board Statement
Informed Consent Statement
Data Availability Statement
Acknowledgments
Conflicts of Interest
Abbreviations
| AUPRC | Area under the precision–recall curve |
| MTS | Multivariate time series |
| PA | Point adjustment |
| PATE | Proximity-aware time-series anomaly evaluation |
| PSM | Pooled server metrics |
| SMD | Server Machine Dataset |
| SMAP | Soil Moisture Active Passive |
| VUS | Volume under the surface |
References
- Chandola, V.; Banerjee, A.; Kumar, V. Anomaly detection: A survey. ACM Comput. Surv. 2009, 41, 1–58. [Google Scholar] [CrossRef]
- Blazquez-Garcia, A.; Conde, A.; Mori, U.; Lozano, J.A. A review on outlier/anomaly detection in time series data. ACM Comput. Surv. 2021, 54, 1–33. [Google Scholar] [CrossRef]
- Braei, M.; Wagner, S. Anomaly detection in univariate time-series: A survey on the state-of-the-art. arXiv 2020, arXiv:2004.00433. [Google Scholar]
- Pang, G.; Shen, C.; Cao, L.; Hengel, A.V.D. Deep learning for anomaly detection: A review. ACM Comput. Surv. 2021, 54, 1–38. [Google Scholar] [CrossRef]
- Vaswani, A.; Shazeer, N.; Parmar, N.; Uszkoreit, J.; Jones, L.; Gomez, A.N.; Kaiser, L.; Polosukhin, I. Attention is all you need. In Advances in Neural Information Processing Systems; Curran Associates: Red Hook, NY, USA, 2017. [Google Scholar]
- Zhou, H.; Zhang, S.; Peng, J.; Zhang, S.; Li, J.; Xiong, H.; Zhang, W. Informer: Beyond efficient transformer for long sequence time-series forecasting. Proceedings AAAI Conf. Artif. Intell.>, Virtual 2021, Volume 35, 11106–11115. [Google Scholar] [CrossRef]
- Wu, H.; Xu, J.; Wang, J.; Long, M. Autoformer: Decomposition transformers with auto-correlation for long-term series forecasting. In Advances in Neural Information Processing Systems; Curran Associates: Red Hook, NY, USA, 2021. [Google Scholar]
- Wu, H.; Hu, T.; Liu, Y.; Zhou, H.; Wang, J.; Long, M. TimesNet: Temporal 2D-variation modeling for general time series analysis. In Proceedings of the International Conference on Learning Representations, Kigali, Rwanda, 1–5 May 2023. [Google Scholar]
- Lai, G.; Chang, W.C.; Yang, Y.; Liu, H. Modeling long- and short-term temporal patterns with deep neural networks. In Proceedings of the 41st International ACM SIGIR Conference on Research and Development in Information Retrieval, Ann Arbor, MI, USA, 8–12 July 2018; pp. 95–104. [Google Scholar]
- Lim, B.; Arik, S.O.; Loeff, N.; Pfister, T. Temporal fusion transformers for interpretable multi-horizon time series forecasting. Int. J. Forecast. 2021, 37, 1748–1764. [Google Scholar] [CrossRef]
- Malhotra, P.; Vig, L.; Shroff, G.; Agarwal, P. LSTM-based encoder-decoder for multi-sensor anomaly detection. arXiv 2016, arXiv:1607.00148. [Google Scholar]
- Hundman, K.; Constantinou, V.; Laporte, C.; Colwell, I.; Soderstrom, T. Detecting spacecraft anomalies using LSTMs and nonparametric dynamic thresholding. In Proceedings of the 24th ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, London, UK, 19–23 August 2018; pp. 387–395. [Google Scholar]
- Munir, M.; Siddiqui, S.A.; Dengel, A.; Ahmed, S. DeepAnT: A deep learning approach for unsupervised anomaly detection in time series. IEEE Access 2019, 7, 1991–2005. [Google Scholar] [CrossRef]
- Su, Y.; Zhao, Y.; Niu, C.; Liu, R.; Sun, W.; Pei, D. Robust anomaly detection for multivariate time series through stochastic recurrent neural network. In Proceedings of the 25th ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, Anchorage, AK, USA, 4–8 August 2019; pp. 2828–2837. [Google Scholar]
- Zhang, C.; Song, D.; Chen, Y.; Feng, X.; Lumezanu, C.; Cheng, W.; Ni, J.; Zong, B.; Chen, H.; Chawla, N.V. A deep neural network for unsupervised anomaly detection and diagnosis in multivariate time series data. In Proceedings of the AAAI Conference on Artificial Intelligence, Honolulu, HI, USA, 27 January–1 February 2019; Volume 33, pp. 1409–1416. [Google Scholar]
- Audibert, J.; Michiardi, P.; Guyard, F.; Marti, S.; Zuluaga, M.A. USAD: Unsupervised anomaly detection on multivariate time series. In Proceedings of the 26th ACM SIGKDD International Conference on Knowledge Discovery and Data Mining Workshops, Virtual, 23–27 August 2020. [Google Scholar]
- Li, D.; Chen, D.; Shi, L.; Jin, B.; Goh, J.; Ng, S.K. MAD-GAN: Multivariate anomaly detection for time series data with generative adversarial networks. In Artificial Neural Networks and Machine Learning – ICANN 2019; Springer: Cham, Switzerland, 2019; pp. 703–716. [Google Scholar]
- Zhao, H.; Wang, Y.; Duan, J.; Huang, C.; Cao, D.; Tong, Y.; Xu, B.; Bai, J.; Tong, J.; Zhang, Q. Multivariate time-series anomaly detection via graph attention network. In Proceedings of the IEEE International Conference on Data Mining, Sorrento, Italy, 17–20 November 2020; pp. 841–850. [Google Scholar]
- Deng, A.; Hooi, B. Graph neural network-based anomaly detection in multivariate time series. Proceedings of the AAAI Conference on Artificial Intelligence 2021, Volume 35, 4027–4035. [Google Scholar] [CrossRef]
- Tuli, S.; Casale, G.; Jennings, N.R. TranAD: Deep transformer networks for anomaly detection in multivariate time series data. Proc. VLDB Endow. 2022, 15, 1201–1214. [Google Scholar] [CrossRef]
- Xu, J.; Wu, H.; Wang, J.; Long, M. Anomaly Transformer: Time series anomaly detection with association discrepancy. In Proceedings of the International Conference on Learning Representations, Virtual, 25–29 April 2022. [Google Scholar]
- Xu, H.; Chen, W.; Zhao, N.; Li, Z.; Bu, J.; Li, Z.; Liu, Y.; Zhao, Y.; Pei, D.; Feng, Y.; et al. Unsupervised anomaly detection via variational auto-encoder for seasonal KPIs in web applications. In Proceedings of the 2018 World Wide Web Conference, Lyon, France, 23–27 April 2018; pp. 187–196. [Google Scholar]
- Zong, B.; Song, Q.; Min, M.R.; Cheng, W.; Lumezanu, C.; Cho, D.; Chen, H. Deep autoencoding Gaussian mixture model for unsupervised anomaly detection. In Proceedings of the International Conference on Learning Representations, Vancouver, BC, Canada, 30 April–3 May 2018. [Google Scholar]
- Gong, D.; Liu, L.; Le, V.; Saha, B.; Mansour, M.R.; Venkatesh, S.; Hengel, A.V.D. Memorizing normality to detect anomaly: Memory-augmented deep autoencoder for unsupervised anomaly detection. In Proceedings of the IEEE/CVF International Conference on Computer Vision, Seoul, Republic of Korea, 27 October–2 November 2019; pp. 1705–1714. [Google Scholar]
- Zhou, B.; Liu, S.; Hooi, B.; Cheng, X.; Ye, J. BeatGAN: Anomalous rhythm detection using adversarially generated time series. In Proceedings of the Twenty-Eighth International Joint Conference on Artificial Intelligence, Macao, China, 10–16 August 2019; pp. 4433–4439. [Google Scholar]
- Scholkopf, B.; Platt, J.C.; Shawe-Taylor, J.; Smola, A.J.; Williamson, R.C. Estimating the support of a high-dimensional distribution. Neural Comput. 2001, 13, 1443–1471. [Google Scholar] [CrossRef] [PubMed]
- Breunig, M.M.; Kriegel, H.P.; Ng, R.T.; Sander, J. LOF: Identifying density-based local outliers. In Proceedings of the ACM SIGMOD International Conference on Management of Data, Dallas, TX, USA, 15–18 May 2000; pp. 93–104. [Google Scholar]
- Liu, F.T.; Ting, K.M.; Zhou, Z.H. Isolation forest. In Proceedings of the IEEE International Conference on Data Mining, Pisa, Italy, 15–19 December 2008; pp. 413–422. [Google Scholar]
- Nie, Y.; Nguyen, N.H.; Sinthong, P.; Kalagnanam, J. A time series is worth 64 words: Long-term forecasting with transformers. In Proceedings of the International Conference on Learning Representations, Kigali, Rwanda, 1–5 May 2023. [Google Scholar]
- Salinas, D.; Flunkert, V.; Gasthaus, J.; Januschowski, T. DeepAR: Probabilistic forecasting with autoregressive recurrent networks. Int. J. Forecast. 2020, 36, 1181–1191. [Google Scholar] [CrossRef]
- Tax, D.M.J.; Duin, R.P.W. Support vector data description. Mach. Learn. 2004, 54, 45–66. [Google Scholar] [CrossRef]
- Chen, Z.; Chen, D.; Zhang, X.; Yuan, Z.; Cheng, X. Learning graph structures with transformer for multivariate time-series anomaly detection in IoT. IEEE Internet Things J. 2022, 9, 9179–9189. [Google Scholar] [CrossRef]
- Tatbul, N.; Lee, T.J.; Zdonik, S.; Alam, M.; Gottschlich, J. Precision and recall for time series. In Advances in Neural Information Processing Systems; Curran Associates: Red Hook, NY, USA, 2018. [Google Scholar]
- Huet, A.; Navarro, J.M.; Rossi, D. Local evaluation of time series anomaly detection algorithms. In Proceedings of the 28th ACM SIGKDD Conference on Knowledge Discovery and Data Mining, Washington, DC, USA, 14–18 August 2022; pp. 635–645. [Google Scholar]
- Paparrizos, J.; Boniol, P.; Palpanas, T.; Tsay, R.S.; Elmore, A.; Franklin, M.J. Volume under the surface: A new accuracy evaluation measure for time-series anomaly detection. Proc. VLDB Endow. 2022, 15, 2774–2787. [Google Scholar] [CrossRef]
- Ghorbani, R.; Reinders, M.J.T.; Tax, D.M.J. PATE: Proximity-aware time series anomaly evaluation. In Proceedings of the 30th ACM SIGKDD Conference on Knowledge Discovery and Data Mining, Barcelona, Spain, 25–29 August 2024; pp. 872–883. [Google Scholar]


| Dataset | Method | PA-F1 | Event-R | Delay | Partial-hit | AUPRC |
|---|---|---|---|---|---|---|
| SMD | Anomaly Transformer | 0.9054 ± 0.0074 | 0.5372 ± 0.0463 | 27.5537 ± 4.7035 | 0.4046 ± 0.0417 | 0.0377 ± 0.0027 |
| SMD | Dual-score | 0.8980 ± 0.0004 | 0.8063 ± 0.0047 | 17.8413 ± 0.7491 | 0.6776 ± 0.0044 | 0.0493 ± 0.0010 |
| SMD | Union | 0.8919 ± 0.0050 | 0.8807 ± 0.0053 | 12.7672 ± 1.6362 | 0.7472 ± 0.0033 | 0.0493 ± 0.0010 |
| PSM | Anomaly Transformer | 0.9768 ± 0.0016 | 0.4120 ± 0.0289 | 38.4931 ± 6.0384 | 0.3428 ± 0.0276 | 0.3022 ± 0.0262 |
| PSM | Dual-score | 0.9865 ± 0.0006 | 0.6157 ± 0.0212 | 44.1442 ± 14.2018 | 0.4912 ± 0.0153 | 0.2852 ± 0.0015 |
| PSM | Union | 0.9750 ± 0.0003 | 0.6528 ± 0.0139 | 19.2584 ± 3.9200 | 0.5485 ± 0.0187 | 0.2852 ± 0.0015 |
| SMAP | Anomaly Transformer | 0.9625 ± 0.0013 | 0.8557 ± 0.0173 | 62.5876 ± 38.3737 | 0.6973 ± 0.0072 | 0.1714 ± 0.0040 |
| SMAP | Dual-score | 0.9616 ± 0.0021 | 0.8060 ± 0.0448 | 61.0551 ± 15.8508 | 0.6593 ± 0.0355 | 0.1333 ± 0.0023 |
| SMAP | Union | 0.9384 ± 0.0013 | 0.9552 ± 0.0149 | 29.6113 ± 3.3213 | 0.7967 ± 0.0112 | 0.1333 ± 0.0023 |
| MSL | Anomaly Transformer | 0.9420 ± 0.0059 | 0.7963 ± 0.0320 | 44.1198 ± 8.6378 | 0.6231 ± 0.0114 | 0.1287 ± 0.0135 |
| MSL | Dual-score | 0.9192 ± 0.0141 | 0.7407 ± 0.0425 | 36.0215 ± 7.8508 | 0.5976 ± 0.0407 | 0.1050 ± 0.0011 |
| MSL | Union | 0.9091 ± 0.0048 | 0.8241 ± 0.0320 | 26.5858 ± 2.5587 | 0.6931 ± 0.0122 | 0.1050 ± 0.0011 |
| Dataset | Method | Aff-F1 | PATE-F1 | Range-PR-AUC | Range-ROC-AUC | VUS-ROC |
|---|---|---|---|---|---|---|
| SMD | Anomaly Transformer | 0.0661 ± 0.0078 | 0.2032 ± 0.0045 | 0.0130 ± 0.0006 | 0.0805 ± 0.0154 | 0.0574 ± 0.0131 |
| SMD | Dual-score | 0.1259 ± 0.0005 | 0.2207 ± 0.0039 | 0.0320 ± 0.0007 | 0.4353 ± 0.0056 | 0.3358 ± 0.0034 |
| SMD | Union | 0.1215 ± 0.0025 | 0.2154 ± 0.0051 | 0.0320 ± 0.0007 | 0.4353 ± 0.0056 | 0.3358 ± 0.0034 |
| PSM | Anomaly Transformer | 0.0797 ± 0.0115 | 0.4125 ± 0.0063 | 0.0424 ± 0.0124 | 0.0144 ± 0.0099 | 0.0105 ± 0.0083 |
| PSM | Dual-score | 0.2108 ± 0.0111 | 0.4450 ± 0.0268 | 0.2363 ± 0.0060 | 0.4706 ± 0.0157 | 0.3365 ± 0.0064 |
| PSM | Union | 0.2151 ± 0.0134 | 0.4483 ± 0.0156 | 0.2363 ± 0.0060 | 0.4705 ± 0.0155 | 0.3365 ± 0.0064 |
| SMAP | Anomaly Transformer | 0.0152 ± 0.0025 | 0.2678 ± 0.0244 | 0.0090 ± 0.0066 | 0.0066 ± 0.0086 | 0.0042 ± 0.0056 |
| SMAP | Dual-score | 0.0119 ± 0.0028 | 0.2759 ± 0.0085 | 0.1248 ± 0.0093 | 0.1960 ± 0.0143 | 0.1400 ± 0.0112 |
| SMAP | Union | 0.0201 ± 0.0016 | 0.2745 ± 0.0083 | 0.1248 ± 0.0093 | 0.1960 ± 0.0143 | 0.1400 ± 0.0112 |
| MSL | Anomaly Transformer | 0.0119 ± 0.0018 | 0.3619 ± 0.0064 | 0.0043 ± 0.0006 | 0.0031 ± 0.0015 | 0.0026 ± 0.0015 |
| MSL | Dual-score | 0.0119 ± 0.0015 | 0.3715 ± 0.0101 | 0.0945 ± 0.0106 | 0.2630 ± 0.0070 | 0.1910 ± 0.0065 |
| MSL | Union | 0.0164 ± 0.0025 | 0.3655 ± 0.0059 | 0.0945 ± 0.0106 | 0.2630 ± 0.0070 | 0.1910 ± 0.0065 |
| Dataset | Raw F1 | Event-R | Event-F1 | Delay | Partial-hit | |
|---|---|---|---|---|---|---|
| SMD | 0.1 | 0.0278 | 0.7920 | 0.2078 | 18.1622 | 0.6679 |
| SMD | 0.2 | 0.0281 | 0.7951 | 0.2082 | 18.2923 | 0.6680 |
| SMD | 0.3 | 0.0285 | 0.8073 | 0.2109 | 18.3939 | 0.6759 |
| SMD | 0.5 | 0.0292 | 0.8073 | 0.2120 | 17.3598 | 0.6758 |
| SMD | 0.7 | 0.0305 | 0.8165 | 0.2139 | 14.4981 | 0.6870 |
| SMD | 1.0 | 0.0319 | 0.7982 | 0.2173 | 16.2567 | 0.6697 |
| PSM | 0.1 | 0.0181 | 0.5694 | 0.4559 | 24.5366 | 0.4659 |
| PSM | 0.2 | 0.0178 | 0.5694 | 0.4517 | 24.4146 | 0.4631 |
| PSM | 0.3 | 0.0177 | 0.5694 | 0.4503 | 24.7317 | 0.4610 |
| PSM | 0.5 | 0.0170 | 0.5833 | 0.4488 | 33.3333 | 0.4694 |
| PSM | 0.7 | 0.0168 | 0.5694 | 0.4377 | 38.9024 | 0.4500 |
| PSM | 1.0 | 0.0169 | 0.5694 | 0.4331 | 47.8537 | 0.4490 |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (http://creativecommons.org/licenses/by/4.0/).