Abstract
Real-time lightweight time series anomaly detection has become increasingly crucial in cybersecurity and many other domains. Its ability to adapt to unforeseen pattern changes and swiftly identify anomalies enables prompt responses and critical decision-making. While several such anomaly detection approaches have been introduced in recent years, they primarily utilize a single type of recurrent neural networks (RNNs) and have been implemented in only one deep learning framework. It is unclear how the use of different types of RNNs available in various deep learning frameworks affects the performance of these anomaly detection approaches due to the absence of comprehensive evaluations. Arbitrarily choosing a RNN variant and a deep learning framework to implement an anomaly detection approach may not reflect its true performance and could potentially mislead users into favoring one approach over another. In this paper, we aim to study the influence of various types of RNNs available in popular deep learning frameworks on real-time lightweight time series anomaly detection. We reviewed several state-of-the-art approaches and implemented a representative anomaly detection approach using well-known RNN variants supported by three widely recognized deep learning frameworks. A comprehensive evaluation is then conducted to analyze the performance of each implementation across real-world, open-source time series datasets. The evaluation results provide valuable guidance for selecting the appropriate RNN variant and deep learning framework for real-time, lightweight time series anomaly detection.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Similar content being viewed by others
References
Abadi, M., et al.: TensorFlow: a system for large-scale machine learning. In: OSDI, Savannah, GA, USA, vol. 16, pp. 265–283 (2016)
Ahmed, M., Mahmood, A.N., Hu, J.: A survey of network anomaly detection techniques. J. Netw. Comput. Appl. 60, 19–31 (2016)
Al-Ghuwairi, A.R., Sharrab, Y., Al-Fraihat, D., AlElaimat, M., Alsarhan, A., Algarni, A.: Intrusion detection in cloud computing based on time series anomalies utilizing machine learning. J. Cloud Comput. 12(1), 127 (2023)
Alimohammadi, H., Chen, S.N.: Performance evaluation of outlier detection techniques in production timeseries: a systematic review and meta-analysis. Exp. Syst. Appl. 191, 116371 (2022)
Anton, S.D., Ahrens, L., Fraunholz, D., Schotten, H.D.: Time is of the essence: machine learning-based intrusion detection in industrial time series data. In: 2018 IEEE International Conference on Data Mining Workshops (ICDMW), pp. 1–6. IEEE (2018)
Blázquez-García, A., Conde, A., Mori, U., Lozano, J.A.: A review on outlier/anomaly detection in time series data. ACM Comput. Surv. (CSUR) 54(3), 1–33 (2021)
Braei, M., Wagner, S.: Anomaly detection in univariate time-series: a survey on the state-of-the-art. arXiv preprint arXiv:2004.00433 (2020)
Cho, K., Van Merriënboer, B., Bahdanau, D., Bengio, Y.: On the properties of neural machine translation: encoder-decoder approaches. arXiv preprint arXiv:1409.1259 (2014)
Chung, J., Gulcehre, C., Cho, K., Bengio, Y.: Empirical evaluation of gated recurrent neural networks on sequence modeling. arXiv preprint arXiv:1412.3555 (2014)
Deeplearning4j: Introduction to core Deeplearning4j concepts (2023). https://deeplearning4j.konduit.ai/. Accessed 23 Jul 2024
Deka, P.K., Verma, Y., Bhutto, A.B., Elmroth, E., Bhuyan, M.: Semi-supervised range-based anomaly detection for cloud systems. IEEE Trans. Netw. Serv. Manage. (2022)
EarlyStopping: What is early stopping? (2023). https://deeplearning4j.konduit.ai/. Accessed 31 Jul 2024
Hochreiter, S., Schmidhuber, J.: Long short-term memory. Neural Comput. 9(8), 1735–1780 (1997). https://doi.org/10.1162/neco.1997.9.8.1735
Hochreiter, S.: The vanishing gradient problem during learning recurrent neural nets and problem solutions. Int. J. Uncertain. Fuzziness Knowl. Based Syst. 6(02), 107–116 (1998)
Hopfield, J.J.: Neural networks and physical systems with emergent collective computational abilities. Proc. Natl. Acad. Sci. 79(8), 2554–2558 (1982)
Keras: Keras - a deep learning API written in Python (2023). https://keras.io/about/. Accessed 31 Jul 2024
Ketkar, N., Santana, E.: Deep learning with Python, vol. 1. Springer, Heidelberg (2017)
Kieu, T., Yang, B., Jensen, C.S.: Outlier detection for multidimensional time series using deep neural networks. In: 2018 19th IEEE International Conference on Mobile Data Management (MDM), pp. 125–134. IEEE (2018)
Kovalev, V., Kalinovsky, A., Kovalev, S.: Deep learning with theano, torch, caffe, tensorflow, and deeplearning4J: which one is the best in speed and accuracy? (2016)
Lee, M.C., Lin, J.C.: Impact of deep learning libraries on online adaptive lightweight time series anomaly detection. In: Proceedings of the 18th International Conference on Software Technologies - ICSOFT, pp. 106–116. INSTICC, SciTePress (2023). https://doi.org/10.5220/0012082900003538
Lee, M.C., Lin, J.C.: RePAD2: real-time, lightweight, and adaptive anomaly detection for open-ended time series. In: Proceedings of the 8th International Conference on Internet of Things, Big Data and Security - IoTBDS, pp. 208–217. INSTICC, SciTePress. arXiv preprint arXiv:2303.00409 (2023)
Lee, M.C., Lin, J.C.: RoLA: a real-time online lightweight anomaly detection system for multivariate time series. In: Proceedings of the 18th International Conference on Software Technologies - ICSOFT, pp. 313–322. INSTICC, SciTePress (2023). https://doi.org/10.5220/0012077200003538
Lee, M.C., Lin, J.C., Gan, E.G.: ReRe: a lightweight real-time ready-to-go anomaly detection approach for time series. In: 2020 IEEE 44th Annual Computers, Software, and Applications Conference (COMPSAC), pp. 322–327. IEEE. arXiv preprint arXiv:2004.02319 (2020)
Lee, M.-C., Lin, J.-C., Gran, E.G.: RePAD: real-time proactive anomaly detection for time series. In: Barolli, L., Amato, F., Moscato, F., Enokido, T., Takizawa, M. (eds.) AINA 2020. AISC, vol. 1151, pp. 1291–1302. Springer, Cham (2020). https://doi.org/10.1007/978-3-030-44041-1_110
Lee, M.-C., Lin, J.-C., Gran, E.G.: How far should we look back to achieve effective real-time time-series anomaly detection? In: Barolli, L., Woungang, I., Enokido, T. (eds.) AINA 2021. LNNS, vol. 225, pp. 136–148. Springer, Cham (2021). https://doi.org/10.1007/978-3-030-75100-5_13
Lee, M.C., Lin, J.C., Gran, E.G.: SALAD: self-adaptive lightweight anomaly detection for real-time recurrent time series. In: 2021 IEEE 45th Annual Computers, Software, and Applications Conference (COMPSAC), pp. 344–349. IEEE. arXiv preprint arXiv:2104.09968 (2021)
LinkedIn: LinkedIn/Luminol [online code repository] (2018). https://github.com/linkedin/luminol. Accessed 31 Jul 2024
Moso, J.C., Cormier, S., de Runz, C., Fouchal, H., Wandeto, J.M.: Anomaly detection on data streams for smart agriculture. Agriculture 11(11), 1083 (2021)
Nguyen, G., et al.: Machine learning and deep learning frameworks and libraries for large-scale data mining: a survey. Artif. Intell. Rev. 52, 77–124 (2019)
Paszke, A., et al.: PyTorch: an imperative style, high-performance deep learning library. In: Advances in Neural Information Processing Systems, vol. 32 (2019)
Pereira, J., Silveira, M.: Learning representations from healthcare time series data for unsupervised anomaly detection. In: 2019 IEEE International Conference on Big Data and Smart Computing (BigComp), pp. 1–7. IEEE (2019)
Ren, H., et al.: Time-series anomaly detection service at Microsoft. In: Proceedings of the 25th ACM SIGKDD International Conference on Knowledge Discovery & Data Mining, pp. 3009–3017 (2019)
Schneider, J., Wenig, P., Papenbrock, T.: Distributed detection of sequential anomalies in univariate time series. VLDB J. 30(4), 579–602 (2021). https://doi.org/10.1007/s00778-021-00657-6
Twitter: AnomalyDetection R package [online code repository] (2015). https://github.com/twitter/AnomalyDetection. Accessed 31 Jul 2024
Vito, S.: Air Quality. UCI Machine Learning Repository (2016). https://doi.org/10.24432/C59K5F
Wang, Z., Liu, K., Li, J., Zhu, Y., Zhang, Y.: Various frameworks and libraries of machine learning and deep learning: a survey. Arch. Computat. Meth. Eng. 31, 1–24 (2019)
Yatish, H., Swamy, S.: Recent trends in time series forecasting - a survey. Int. Res. J. Eng. Technol. (IRJET) 7(04), 5623–5628 (2020)
Zahidi, Y., El Younoussi, Y., Al-Amrani, Y.: A powerful comparison of deep learning frameworks for Arabic sentiment analysis. Int. J. Electr. Comput. Eng. (2088-8708) 11(1) (2021)
Zhang, J.E., Wu, D., Boulet, B.: Time series anomaly detection for smart grids: a survey. In: 2021 IEEE Electrical Power and Energy Conference (EPEC), pp. 125–130. IEEE (2021)
Zhang, Q., et al.: A comprehensive benchmark of deep learning libraries on mobile devices. In: Proceedings of the ACM Web Conference 2022, pp. 3298–3307 (2022)
Zhang, X., Wang, Y., Shi, W.: pCAMP: performance comparison of machine learning packages on the edges. In: HotEdge (2018)
Acknowledgement
The authors want to thank the anonymous reviewers for their reviews and valuable suggestions to this paper. This work has received funding from the Research Council of Norway through the SFI Norwegian Centre for Cybersecurity in Critical Sectors (NORCICS) project no. 310105.
Author information
Authors and Affiliations
Corresponding author
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2025 The Author(s), under exclusive license to Springer Nature Singapore Pte Ltd.
About this paper
Cite this paper
Lee, MC., Lin, JC., Katsikas, S. (2025). Impact of Recurrent Neural Networks and Deep Learning Frameworks on Real-Time Lightweight Time Series Anomaly Detection. In: Katsikas, S., Xenakis, C., Kalloniatis, C., Lambrinoudakis, C. (eds) Information and Communications Security. ICICS 2024. Lecture Notes in Computer Science, vol 15056. Springer, Singapore. https://doi.org/10.1007/978-981-97-8798-2_12
Download citation
DOI: https://doi.org/10.1007/978-981-97-8798-2_12
Published:
Publisher Name: Springer, Singapore
Print ISBN: 978-981-97-8797-5
Online ISBN: 978-981-97-8798-2
eBook Packages: Computer ScienceComputer Science (R0)Springer Nature Proceedings Computer Science
