基于轻量化GE-GRU-VAE模型的多维时间序列异常检测
Anomaly Detection in Multidimensional Time Series Based on a Lightweight GE-GRU-VAE Model
DOI: 10.12677/hjdm.2025.154029, PDF,    国家自然科学基金支持
作者: 赵银祥, 冯慧芳:西北师范大学数学与统计学院,甘肃 兰州
关键词: 多维时间序列异常检测图嵌入GRU变分自编码轻量化Multivariate Time Series Anomaly Detection Graph Embedding Gated Recurrent Unit Variational Autoencoder Lightweight
摘要: 在工业应用中,时间序列的无监督异常检测至关重要,因为它能显著减少人工干预的需求。时间序列数据通常具有非平稳性、高维、异常稀缺等特点,使得对其进行异常检测具有挑战性。本文提出了一种基于注意力机制、图嵌入技术和VAE相结合的无监督多维时间序列异常检测模型GE-GRU-VAE。首先,在GE-GRU-VAE编码器中采用MLP和多头注意力结构进行局部特征提取,获得输入数据内在特征的分布参数。其次,采用重参数化得到其低维图嵌入特征。然后,在GE-GRU-VAE解码器中采用基于图嵌入与GRU的GE-GRU模块进行时间序列重构,通过无监督学习得到最优模型。最后,根据双阈值异常判定方法判断序列是否异常。在两个公共数据集SWaT和WADI上验证了所提模型的有效性。实验结果表明,GE-GRU-VAE不仅具有较低的时间与空间复杂度,而且具有良好的异常检测精度。
Abstract: In industrial applications, unsupervised anomaly detection for time series is of crucial importance, as it can significantly reduce the need for manual intervention. Time series data typically exhibits characteristics such as non-stationarity, high dimensionality, and scarcity of anomalies, which pose challenges to anomaly detection. This paper proposes an unsupervised multi-dimensional time series anomaly detection model named GE-GRU-VAE, which combines the attention mechanism, graph embedding technology, and Variational Autoencoder (VAE). Firstly, in the encoder of GE-GRU-VAE, a Multi-Layer Perceptron (MLP) and a multi-head attention structure are employed for local feature extraction to obtain the distribution parameters of the intrinsic features of the input data. Secondly, reparameterization is used to derive its low-dimensional graph embedding features. Then, in the decoder of GE-GRU-VAE, a GE-GRU module based on graph embedding and Gated Recurrent Unit (GRU) is adopted for time series reconstruction, and the optimal model is obtained through unsupervised learning. Finally, a dual-threshold anomaly determination method is used to judge whether the series is abnormal. This paper verifies the effectiveness of the proposed model on two public datasets, SWaT and WADI. Experimental results show that GE-GRU-VAE not only has low time and space complexity but also achieves excellent anomaly detection accuracy.
文章引用:赵银祥, 冯慧芳. 基于轻量化GE-GRU-VAE模型的多维时间序列异常检测[J]. 数据挖掘, 2025, 15(4): 330-338. https://doi.org/10.12677/hjdm.2025.154029

参考文献

[1] Grubbs, F.E. (1969) Procedures for Detecting Outlying Observations in Samples. Technometrics, 11, 1-21. [Google Scholar] [CrossRef
[2] Esling, P. and Agon, C. (2012) Time-Series Data Mining. ACM Computing Surveys, 45, 1-34. [Google Scholar] [CrossRef
[3] Carreño, A., Inza, I. and Lozano, J.A. (2019) Analyzing Rare Event, Anomaly, Novelty and Outlier Detection Terms under the Supervised Classification Framework. Artificial Intelligence Review, 53, 3575-3594. [Google Scholar] [CrossRef
[4] Ding, N., Ma, H., Gao, H., Ma, Y. and Tan, G. (2019) Real-Time Anomaly Detection Based on Long Short-Term Memory and Gaussian Mixture Model. Computers & Electrical Engineering, 79, Article ID: 106458. [Google Scholar] [CrossRef
[5] Shen, L., Li, Z. and Kwok, J. (2020) Timeseries Anomaly Detection Using Temporal Hierarchical One-Class Network. Advances in Neural Information Processing Systems, 33, 13016-13026.
[6] Li, G. and Jung, J.J. (2023) Deep Learning for Anomaly Detection in Multivariate Time Series: Approaches, Applications, and Challenges. Information Fusion, 91, 93-102. [Google Scholar] [CrossRef
[7] Zheng, Y., Koh, H.Y., Jin, M., Chi, L., Phan, K.T., Pan, S., et al. (2024) Correlation-Aware Spatial-Temporal Graph Learning for Multivariate Time-Series Anomaly Detection. IEEE Transactions on Neural Networks and Learning Systems, 35, 11802-11816. [Google Scholar] [CrossRef] [PubMed]
[8] Liu, Z., Huang, X., Zhang, J., Hao, Z., Sun, L. and Peng, H. (2024) Multivariate Time-Series Anomaly Detection Based on Enhancing Graph Attention Networks with Topological Analysis. Proceedings of the 33rd ACM International Conference on Information and Knowledge Management, Boise, 21-25 October 2024, 1555-1564. [Google Scholar] [CrossRef
[9] Li, Y., Peng, X., Zhang, J., Li, Z. and Wen, M. (2023) DCT-GAN: Dilated Convolutional Transformer-Based GAN for Time Series Anomaly Detection. IEEE Transactions on Knowledge and Data Engineering, 35, 3632-3644. [Google Scholar] [CrossRef
[10] Wang, X., Pi, D., Zhang, X., Liu, H. and Guo, C. (2022) Variational Transformer-Based Anomaly Detection Approach for Multivariate Time Series. Measurement, 191, Article ID: 110791. [Google Scholar] [CrossRef
[11] Kim, J., Kang, H. and Kang, P. (2023) Time-Series Anomaly Detection with Stacked Transformer Representations and 1D Convolutional Network. Engineering Applications of Artificial Intelligence, 120, Article ID: 105964. [Google Scholar] [CrossRef
[12] Wang, C., Zhuang, Z., Qi, Q., et al. (2023) Drift Doesn’t Matter: Dynamic Decomposition with Diffusion Reconstruction for Unstable Multivariate Time Series Anomaly Detection. Advances in Neural Information Processing Systems, 36, 10758-10774.
[13] Wen, M., Chen, Z., Xiong, Y. and Zhang, Y. (2025) LGAT: A Novel Model for Multivariate Time Series Anomaly Detection with Improved Anomaly Transformer and Learning Graph Structures. Neurocomputing, 617, Article ID: 129024. [Google Scholar] [CrossRef
[14] Pang, G., Shen, C., Cao, L. and Hengel, A.V.D. (2021) Deep Learning for Anomaly Detection. ACM Computing Surveys, 54, 1-38. [Google Scholar] [CrossRef
[15] Zhang, W., Zhang, C. and Tsung, F. (2022) GRELEN: Multivariate Time Series Anomaly Detection from the Perspective of Graph Relational Learning. Proceedings of the Thirty-First International Joint Conference on Artificial Intelligence, Vienna, 23-29 July 2022, 2390-2397. [Google Scholar] [CrossRef
[16] 姜羽, 陈华, 张小刚, 王炼红, 王鼎湘. 基于启发式时空图神经网络的多变量时序异常检测[J]. 中国科学: 信息科学, 2023, 53(9): 1784-1801.
[17] Mathur, A.P. and Tippenhauer, N.O. (2016) SWaT: A Water Treatment Testbed for Research and Training on ICS Security. 2016 International Workshop on Cyber-Physical Systems for Smart Water Networks (CySWater), Vienna, 11 April 2016, 31-36. [Google Scholar] [CrossRef
[18] Ahmed, C.M., Palleti, V.R. and Mathur, A.P. (2017) WADI: A Water Distribution Testbed for Research in the Design of Secure Cyber Physical Systems. Proceedings of the 3rd International Workshop on Cyber-Physical Systems for Smart Water Networks, Pittsburgh, 21 April 2017, 25-28. [Google Scholar] [CrossRef
[19] Deng, A. and Hooi, B. (2021) Graph Neural Network-Based Anomaly Detection in Multivariate Time Series. Proceedings of the AAAI Conference on Artificial Intelligence, 35, 4027-4035. [Google Scholar] [CrossRef
[20] Hundman, K., Constantinou, V., Laporte, C., Colwell, I. and Soderstrom, T. (2018) Detecting Spacecraft Anomalies Using LSTMs and Nonparametric Dynamic Thresholding. Proceedings of the 24th ACM SIGKDD International Conference on Knowledge Discovery & Data Mining, London, 19-23 August 2018, 387-395. [Google Scholar] [CrossRef
[21] Li, D., Chen, D., Jin, B., Shi, L., Goh, J. and Ng, S. (2019) MAD-GAN: Multivariate Anomaly Detection for Time Series Data with Generative Adversarial Networks. In: Tetko, I., Kůrková, V., Karpov, P. and Theis, F., Eds., Artificial Neural Networks and Machine LearningICANN 2019: Text and Time Series, Springer, 703-716. [Google Scholar] [CrossRef
[22] Su, Y., Zhao, Y., Niu, C., Liu, R., Sun, W. and Pei, D. (2019) Robust Anomaly Detection for Multivariate Time Series through Stochastic Recurrent Neural Network. Proceedings of the 25th ACM SIGKDD International Conference on Knowledge Discovery & Data Mining, Anchorage, 4-8 August 2019, 2828-2837. [Google Scholar] [CrossRef