Time series anomaly detection hybrid model based on SARIMA and LSTM

Authors

  • Wenjuan Wu
  • Mingyuan Guo
  • Shangfei Wang
  • Jinying Han

DOI:

https://doi.org/10.54097/vnmprq69

Keywords:

Time series anomaly detection hybrid model based, SARIMA, LSTM

Abstract

For complex time series data, it is difficult for short-time memory neural networks to capture multiple factors comprehensively, and seasonal differential autoregressive moving average model has limitations in dealing with nonlinear relationships and outliers. To solve these problems, a hybrid time-series data anomaly detection model combining seasonal differential autoregressive moving average model (SARIMA) and short and long-time memory neural network (LSTM) is proposed. First, SARIMA model was used to initially fit key performance index data to capture the linear trend and seasonal pattern in the series. Then the sliding window technique is used to convert the fitted residual data into supervised learning data format, and the input dimension of the LSTM model is determined accordingly. Finally, an improved sparse regularization multi-head attention mechanism is proposed to add into the LSTM model. This mechanism realizes the sparsity of attention weights by introducing L1 regularization into the standard multi-head attention mechanism, and takes the output residual of the SARIMA model as the input of the improved LSTM model for secondary prediction and anomaly detection. The proposed hybrid model is compared with the public data set, and the experimental results show that the SARMI-LSTM hybrid model has a good performance in the accuracy of anomaly detection.

Downloads

Download data is not yet available.

References

[1] Li Bin, Wang Yijie, and Cheng Li. Adaptive Enhancement for Active Anomaly Detection in Dynamic Network Traffic[J].Frontiers of Information Technology & Electronic Engineering,2024.

[2] Chen Bofeng, Li Jingdong, Lu Xingjian, et al. Survey of deep learning based graph anomaly detection methods[J]. Journal of Computer Research and Development, 2021.

[3] Jiang Jiangguo, Chen Jiuming, Gu Tianbo, et al. Anomaly detection with graph convolutional networks for insider threat and fraud detection[C]//Proc of IEEE Military Communications Conf. Piscataway, NJ: IEEE, 2019.

[4] Yamauchi M, Ohsita Y, Murata M, Ueda K, and Kato Y. Anomaly detection in smart home operation from user behaviors and home conditions, IEEE Trans. Consum. Electron., 2020.

[5] Espeholt, L., and Coauthors, Deep learning for twelve hourprecipitation forecasts. Nature Communications, 2022.

[6] Wang, Y. B., H. X. Wu, J. J. Zhang, Z.F. Gao, J. M. Wang, P. S.Yu, and M. S. Long,PredRNN: A recurrent neural network for spatiotemporal predictive learning. lEEE Transac.tions on Pattern Analysis and Machine Intelligence, 2023.

[7] Han Z, Zhao J, Leung H, Ma K. F., and Wang W. A review of deep learning models for time series prediction[J], IEEE Sensors J, 2021.

[8] Alamri R, Murugesan R. K., Man M., Abdulateef A. F. , M. l-Sharafi A. A, and Alkahtani A. A.. A review of machine learning and deep learning techniques for anomaly detection in IoT data, Appl. Sci., 2021.

[9] Bai DX, Lu GY, Zhu ZQ, et al. Using time series analysis and dual-stage attention-based recurrent neural network to predict landslide displacement[J]. Environ Earth Sci, 2022.

[10] Ren, Y. B., and X. F. Li. Predicting the daily sea ice concentration on a subseasonal scale of the pan-arctic during the melting season by a deep learning model. IEEE Trans. Geosci. Remote Sens,2023,

[11] SHEERAZ A, ALI K Z, MUHAMMAD M S, et al. Effective and efficient DDoS attack detection using deep learning algorithm, multi-layer perceptron[J]. Future Internet, 2023.

[12] Nahid F A, Ongsakul W, Nimal M M. Very Short Term Wind Speed Forecasting Using Convolutional Long Short Term Memory Recurrent Neural Network[C]// 2020 International Conference and Utility Exhibition on Energy, Environment and Climate Change (ICUE), 2021.

[13] Dou S, Yang K, and Poor H. V. PC2A: Predicting collective contextual anomalies via LSTM with deep generative model,” IEEE Internet Things J., 2019.

[14] Karevan Z, Suykens J. Transductive LSTM for time-series prediction: An application to weather forecasting[J]. Neural Networks, 2020.

[15] Zhang Mingmin, et al. Hourly prediction of PM 2.5 concentration in Beijing based on Bi-LSTM neural network[J]. Multimedia Tools and Applications, 2021.

[16] Huang, J.,Y.Luo, J. Shi, X.Ma, Q.Q.Li, and Y.Y. Li, Rapid modeling of the sound speed field in the South ChinaSea based on a comprehensive optimal LM-BP artificial neural network. Journal of Marine Science and Engineering, 2021.

[17] Li B. Y., and J. S. Zhai. A novel sound speed profile predic-tion method based on the convolutional long-short term memory network. Journal of Marine Science and Engineering. 2022.

[18] Xiao, C. J., N. C. Chen, C. L. Hu, K. Wang, J. Y. Gong, and ZO. Chen. Short and mid-term sea surface temperature prediction using time-series satellite data and LSTMAdaBoost combination approach. Remote Sensing ofEnviron, 2019.

[19] Gharehbaghi Amin, Ghasemlounia Redvan, Ahmadi Farshad, et al. Groundwater level prediction with meteorologically sensitive Gated Recurrent Unit (GRU) neural networks[J]. Journal of Hydrology, 2022.

[20] Jasmir J, Nurmaini S, Malik R F, etal. Improving Eligibility Classification on Clinical Trials Document using Bidirectional Long Short Term Memory Recurrent Neural Network[J]. Turkish Journal of Computer and Mathematics Education (TURCOMAT), 2021.

[21] Liu D, Cao Y, Yang J, et al. SM-CycleGAN: crop image data enhancement method based on self-attention mechanism CycleGAN[J]. Scientific Reports, 2024.

Downloads

Published

02-03-2025

Issue

Section

Articles

How to Cite

Wu, W., Guo, M., Wang, S., & Han, J. (2025). Time series anomaly detection hybrid model based on SARIMA and LSTM. Journal of Computing and Electronic Information Management, 16(1), 63-69. https://doi.org/10.54097/vnmprq69