Skip to main content

Semi-supervised Time Series Anomaly Detection Model Based on LSTM Autoencoder

  • Conference paper
  • First Online:
Big Data and Security (ICBDS 2020)

Part of the book series: Communications in Computer and Information Science ((CCIS,volume 1415))

Included in the following conference series:

Abstract

Nowadays, time series data is more and more likely to appear in various real-world systems, such as power plants, medical care, etc. In these systems, time series anomaly detection is necessary, which involves predictive maintenance, intrusion detection, anti-fraud, cloud platform monitoring and management, etc. Generally, the anomaly detection of time series is regarded as an unsupervised learning problem. However, in a real scenario, in addition to a large set of unlabeled data, there is usually a small set of available labeled data, such as normal or abnormal data sets labeled by experts. Only a few methods use labeled data, and the existing semi-supervised algorithms are not yet suitable for the field of time series anomaly detection. In this work, we propose a semi-supervised time series anomaly detection model based on LSTM autoencoder. We improve the loss function of the LSTM autoencoder so that it can be affected by unlabeled data and labeled data at the same time, and learn the distribution of unlabeled data and labeled data at the same time by minimizing the loss function. In a large number of experiments on the Yahoo! Webscope S5 and NAB data sets, we compared the performance of the unsupervised model and the semi-supervised model of the same network framework to prove that the performance of the semi-supervised model is improved compared to the unsupervised model.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 109.00
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 139.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

References

  1. Chandola, V., Banerjee, A., Kumar, V.: Anomaly detection: a survey. ACM Comput. Surv. 41(3), 1–58 (2009)

    Article  Google Scholar 

  2. Cook, A., Misirli, G., Fan, Z.: Anomaly detection for IoT time-series data: a survey. IEEE IoT J. 7(7), 6481–6494 (2019)

    Google Scholar 

  3. Goodfellow, I., Bengio, Y., Courville, A.: Deep Learning. The MIT Press, Cambridge (2016)

    Google Scholar 

  4. Kim, J., Kim, J., Thu, H.L.T.: Long short term memory recurrent neural network classifier for intrusion detection. In: 2016 International Conference on Platform Technology and Service (PlatCon) 2016, pp. 1–5. IEEE (2016)

    Google Scholar 

  5. Malhotra, P., Vig, L., Shroff, G.: Long short term memory networks for anomaly detection in time series. In: Proceedings, 2015, vol. 89, pp. 89–94. Presses universitaires de Louvain (2015)

    Google Scholar 

  6. Fox, A.J.: Outliers in time series. J. Roy. Stat. Soc. Ser. B (Methodol.) 34(3), 350–363 (1972)

    MathSciNet  MATH  Google Scholar 

  7. Burman, J.P., Otto, M.C.: Census bureau research project: outliers in time series. Bureau of the Census, SRD Res. Rep. CENSUS/SRD/RR-88114 (1988)

    Google Scholar 

  8. Vallis, O., Hochenbaum, J., Kejariwal, A.: A novel technique for long-term anomaly detection in the cloud. In: 6th USENIX Workshop on Hot Topics in Cloud Computing (HotCloud 14) (2014)

    Google Scholar 

  9. Wold, H.: A Study in the Analysis of Stationary Time Series. Almqvist & Wiksell, Uppsala (1938)

    Google Scholar 

  10. Kadri, F., Harrou, F., Chaabane, S.: Seasonal ARMA-based SPC charts for anomaly detection: application to emergency department systems. Neurocomputing 173, 2102–2114 (2016)

    Article  Google Scholar 

  11. Zhang, G.P., Qi, M.: Neural network forecasting for seasonal and trend time series. Eur. J. Oper. Res. 160(2), 501–514 (2005)

    Article  Google Scholar 

  12. Chou, J.S., Telaga, A.S.: Real-time detection of anomalous power consumption. Renew. Sustain. Energy Rev. 33, 400–411 (2014)

    Article  Google Scholar 

  13. Fu, R., Zhang, Z., Li, L.: Using LSTM and GRU neural network methods for traffic flow prediction. In: 2016 31st Youth Academic Annual Conference of Chinese Association of Automation (YAC) 2016, pp. 324–328. IEEE (2016)

    Google Scholar 

  14. Shipmon, D.T., Gurevitch, J.M., Piselli, P.M.: Time series anomaly detection; detection of anomalous drops with limited features and sparse examples in noisy highly periodic data (2017). arXiv preprint arXiv:1708.03665

  15. Saurav, S., Malhotra, P., TV, V.: Online anomaly detection with concept drift adaptation using recurrent neural networks. In: Proceedings of the ACM India Joint International Conference on Data Science and Management of Data 2018, pp. 78–87 (2018)

    Google Scholar 

  16. Xie, X., Wu, D., Liu, S.: IoT data analytics using deep learning (2017). arXiv preprint arXiv:1708.03854

  17. Bontemps, L., Cao, V.L., McDermott, J., Le-Khac, N.-A.: Collective anomaly detection based on long short-term memory recurrent neural networks. In: Dang, T.K., Wagner, R., Küng, J., Thoai, N., Takizawa, M., Neuhold, E. (eds.) FDSE 2016. LNCS, vol. 10018, pp. 141–152. Springer, Cham (2016). https://doi.org/10.1007/978-3-319-48057-2_9

    Chapter  Google Scholar 

  18. Hundman, K., Constantinou, V., Laporte, C.: Detecting spacecraft anomalies using LSTMs and nonparametric dynamic thresholding. In: Proceedings of the 24th ACM SIGKDD International Conference on Knowledge Discovery & Data Mining 2018, pp. 387–395 (2018)

    Google Scholar 

  19. Luo, T., Nagarajan, S.G.: Distributed anomaly detection using autoencoder neural networks in WSN for IoT. In: 2018 IEEE International Conference on Communications (ICC) 2018, pp. 1–6. IEEE (2018)

    Google Scholar 

  20. Wang, W., Zhu, M., Wang, J.: End-to-end encrypted traffic classification with one-dimensional convolution neural networks. In: 2017 IEEE International Conference on Intelligence and Security Informatics (ISI) 2017, pp. 43–48. IEEE (2017)

    Google Scholar 

  21. Liu, C.L., Hsaio, W.H., Tu, Y.C.: Time series classification with multivariate convolutional neural network. IEEE Trans. Industr. Electron. 66(6), 4788–4797 (2018)

    Article  Google Scholar 

  22. Kim, T.Y., Cho, S.B.: Web traffic anomaly detection using C-LSTM neural networks. Expert Syst. Appl. 106, 66–76 (2018)

    Article  Google Scholar 

  23. Karim, F., Majumdar, S., Darabi, H.: LSTM fully convolutional networks for time series classification. IEEE Access 6, 1662–1669 (2017)

    Article  Google Scholar 

  24. Sutskever, I., Vinyals, O., Le, Q.V.: Sequence to sequence learning with neural networks. Adv. Neural. Inf. Process. Syst. 2014, 3104–3112 (2014)

    Google Scholar 

  25. Malhotra, P., Ramakrishnan, A., Anand, G.: LSTM-based encoder-decoder for multi-sensor anomaly detection (2016). arXiv preprint arXiv:1607.00148

  26. Shah, M.P., Merchant, S.N., Awate, S.P.: Abnormality detection using deep neural networks with robust quasi-norm autoencoding and semi-supervised learning. In: 2018 IEEE 15th International Symposium on Biomedical Imaging 2018, pp. 568–572. IEEE (2018)

    Google Scholar 

  27. Cheng, Y., Xu, Y., Zhong, H.: HS-TCN: A semi-supervised hierarchical stacking temporal convolutional network for anomaly detection in IoT. In: 2019 IEEE 38th International Performance Computing and Communications Conference (IPCCC) 2019, pp. 1–7. IEEE (2019)

    Google Scholar 

  28. Ruff, L., Vandermeulen, R.A., Görnitz, N.: Deep semi-supervised anomaly detection (2019). arXiv preprint arXiv:1906.02694

  29. Zhou, C., Sun, C., Liu, Z.: A C-LSTM neural network for text classification (2015). arXiv preprint arXiv:1511.08630

Download references

Acknowledgements

This research is supported by the key research and development program of Jiangsu province (BE2019012).

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Donghai Guan .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2021 Springer Nature Singapore Pte Ltd.

About this paper

Check for updates. Verify currency and authenticity via CrossMark

Cite this paper

Xiao, H., Guan, D., Zhao, R., Yuan, W., Tu, Y., Khattak, A.M. (2021). Semi-supervised Time Series Anomaly Detection Model Based on LSTM Autoencoder. In: Tian, Y., Ma, T., Khan, M.K. (eds) Big Data and Security. ICBDS 2020. Communications in Computer and Information Science, vol 1415. Springer, Singapore. https://doi.org/10.1007/978-981-16-3150-4_4

Download citation

  • DOI: https://doi.org/10.1007/978-981-16-3150-4_4

  • Published:

  • Publisher Name: Springer, Singapore

  • Print ISBN: 978-981-16-3149-8

  • Online ISBN: 978-981-16-3150-4

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics