journal article·2025-06-07Open access

A Hybrid STL-Deep Learning Framework for Behavioral-Based Intrusion Detection in IoT Environments

Abdullah AlHayan, Jalal Al-Muhtadi

Applied Sciences· Volume 15· Issue 12

Abstract

The rapid proliferation of Internet of Things (IoT) devices presents significant security challenges due to inherent vulnerabilities and increasing cyberattacks. Effective intrusion detection systems (IDSs) are crucial for securing IoT environments, requiring high detection accuracy while efficiently handling large data volumes and critically minimizing both false negatives (FNR), which miss real attacks, and false positives (FPR), which cause unnecessary alarms. Traditional methods and standalone deep learning models often struggle to achieve an optimal balance between these requirements. This paper proposes a novel hybrid IDS framework designed to enhance IoT network security by integrating time series analysis with deep learning. Specifically, we leverage seasonal-trend decomposition using Loess (STL) as an intelligent pre-filtering mechanism to isolate potentially anomalous traffic, which is then classified using sophisticated deep learning models, with a particular focus on long short-term memory (LSTM) networks compared against recurrent neural networks (RNN) and dense neural networks (DNN). The proposed framework performance was rigorously evaluated using the comprehensive and realistic BoT-IoT dataset. The methodology involved principal component analysis (PCA) for dimensionality reduction and careful hyperparameter tuning. The experimental results demonstrate the effectiveness of the hybrid approach, with the STL-LSTM variant achieving superior performance. It attained an overall accuracy of 98.5% and a macro F1-score of 98.49%, while significantly reducing the overall false negative rate to 5.2% (FNR ≈ 0.24) and the overall false positive rate to 0.276% (FPR ≈ 0.11) across five Attack/Normal classes. These results represent a substantial improvement over standalone deep learning models (standalone LSTM FNR = 0.302, FPR = 0.185) and compare favorably to state-of-the-art benchmarks reported in the literature, particularly in minimizing critical detection errors. The findings indicate that the proposed hybrid STL-LSTM framework presents a robust and viable solution for high-stakes IoT network security, effectively balancing high detection accuracy with exceptionally low error rates, making it well-suited for real-time deployment in protecting critical IoT infrastructure.
Source: crossref · Quality: baseline

Research context

OpenAlex topics: Network Security and Intrusion Detection · Advanced Malware Detection Techniques · Internet Traffic Analysis and Secure E-voting

SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.

Affiliations

Department of Computer Science, College of Computer and Information Sciences, King Saud University, Riyadh 11451, Saudi Arabia

References (42)

Show source-provided references
1. A Reliable Communication Framework and its Use in Internet of Things (IoT)
2. Lombardi, M., Pascale, F., and Santaniello, D. (2021). Internet of Things: A General Overview between Architectures, Protocols and Applications. Information, 12.10.3390/info12020087 ↗
3. Intrusion Detection for IoT Based on Improved Genetic Algorithm and Deep Belief Network10.1109/ACCESS.2019.2903723 ↗
4. A Survey of IoT-Enabled Cyberattacks: Assessing Attack Paths to Critical Infrastructures and Services10.1109/COMST.2018.2855563 ↗
5. Intrusion detection systems in the Internet of things: A comprehensive investigation10.1016/j.comnet.2019.05.014 ↗
6. A survey of deep learning-based network anomaly detection10.1007/s10586-017-1117-8 ↗
7. Coston, I., Plotnizky, E., and Nojoumian, M. (2025). Comprehensive Study of IoT Vulnerabilities and Countermeasures. Appl. Sci., 15.10.3390/app15063036 ↗
8. Deogirikar, J., and Vidhate, A. (2017, January 10–11). Security attacks in IoT: A survey. Proceedings of the 2017 International Conference on ISMAC (IoT in Social, Mobile, Analytics and Cloud) (I-SMAC), Palladam, India.10.1109/I-SMAC.2017.8058363 ↗
9. A survey on intrusion detection system in IoT networks10.1016/j.csa.2024.100082 ↗
10. Wen, Q., Gao, J., Song, X., Sun, L., Xu, H., and Zhu, S. (February, January 27). RobustSTL: A robust seasonal-trend decomposition algorithm for long time series. Proceedings of the AAAI Conference on Artificial Intelligence, Honolulu, HI, USA.
11. Ashraf, J., Raza, G.M., Kim, B.S., Wahid, A., and Kim, H.Y. (2025). Making a Real-Time IoT Network Intrusion-Detection System (INIDS) Using a Realistic BoT–IoT Dataset with Multiple Machine-Learning Classifiers. Appl. Sci., 15.10.3390/app15042043 ↗
12. HDA-IDS: A Hybrid DoS Attacks Intrusion Detection System for IoT by using semi-supervised CL-GAN10.1016/j.eswa.2023.122198 ↗
13. Metaverse-IDS: Deep learning-based intrusion detection system for Metaverse-IoT networks10.1016/j.iot.2023.100977 ↗
14. TNN-IDS: Transformer neural network-based intrusion detection system for MQTT-enabled IoT Networks10.1016/j.comnet.2023.110072 ↗
15. Anomaly-based intrusion detection system for IoT networks through deep learning model10.1016/j.compeleceng.2022.107810 ↗
16. Syed, N.F., Ge, M.M., and Baig, Z. (2023). Intrusion detection for time-series IoT data with recurrent neural networks and feature selection. Authorea Prepr.
17. Intrusion detection system: A comprehensive review10.1016/j.jnca.2012.09.004 ↗
18. Anomaly-based network intrusion detection: Techniques, systems and challenges10.1016/j.cose.2008.08.003 ↗
19. Anomaly detection: A survey10.1145/1541880.1541882 ↗
20. Uppuluri, P., and Sekar, R. (2003, January 27–30). Specification-based anomaly detection: A new approach for detecting network intrusions. Proceedings of the 10th ACM Conference on Computer and Communications Security, Washington, DC, USA.
21. A survey of data mining and machine learning methods for cyber security intrusion detection10.1109/COMST.2015.2494502 ↗
22. Berman, D.S., Buczak, A.L., Chavis, J.S., and Corbett, C.L. (2019). A survey of intrusion detection systems in Industrial Control Systems. Information, 10.10.3390/info10040122 ↗
23. Alabsi, B.A., Anbar, M., and Rihan, S.D.A. (2023). CNN-CNN: Dual Convolutional Neural Network Approach for Feature Selection and Attack Detection on Internet of Things Networks. Sensors, 23.10.3390/s23146507 ↗
24. A deep learning approach for intrusion detection using recurrent neural networks10.1109/ACCESS.2017.2762418 ↗
25. Graves, A. (2012). Long Short-Term Memory. Supervised Sequence Labelling with Recurrent Neural Networks, Springer. Studies in Computational Intelligence.10.1007/978-3-642-24797-2 ↗
26. Variational autoencoder based anomaly detection using reconstruction probability
27. Dos Santos, R.F., and Zhao, L. (2022, January 26–30). HAT: A hierarchical attention-based transformer for accurate and efficient intrusion detection. Proceedings of the European Symposium on Research in Computer Security, Copenhagen, Denmark.
28. Sommer, R., and Paxson, V. (2010, January 16–19). Outside the closed world: On using machine learning for network intrusion detection. Proceedings of the 2010 IEEE Symposium on Security and Privacy, Oakland, CA, USA.10.1109/SP.2010.25 ↗
29. The base-rate fallacy and the difficulty of intrusion detection10.1145/357830.357849 ↗
30. Network traffic modeling using ARIMA model
31. STL: A seasonal-trend decomposition procedure based on loess
32. Vallidata, C., Kandasamy, J., and Thyla, P.R. (2020). Anomaly Detection Using Seasonal Trend Loess (STL) Decomposition Method in Manufacturing. Int. J. Eng. Res. Technol. IJERT.
33. Time series forecasting and anomaly detection using deep learning10.1016/j.compchemeng.2023.108560 ↗
34. Psychogyios, K., Papadakis, A., Bourou, S., Nikolaou, N., Maniatis, A., and Zahariadis, T. (2024). Deep Learning for Intrusion Detection Systems (IDSs) in Time Series Data. Future Internet, 16.10.3390/fi16030073 ↗
35. Kim, B., Alawami, M.A., Kim, E., Oh, S., Park, J., and Kim, H. (2023). A Comparative Study of Time Series Anomaly Detection Models for Industrial Control Systems. Sensors, 23.10.3390/s23031310 ↗
36. AlSaleh, I., Al-Samawi, A., and Nissirat, L. (2024). Novel Machine Learning Approach for DDoS Cloud Detection: Bayesian-Based CNN and Data Fusion Enhancements. Sensors, 24.10.3390/s24051418 ↗
37. A Systematic Review on Hybrid Intrusion Detection System10.1155/2022/9663052 ↗
38. Self-healing hybrid intrusion detection system: An ensemble machine learning approach10.1007/s44163-024-00120-9 ↗
39. Hybrid Learning Model for intrusion detection system: A combination of parametric and non-parametric classifiers10.1016/j.aej.2024.10.101 ↗
40. Towards the development of realistic botnet dataset in the Internet of Things for network forensic analytics: Bot-IoT dataset10.1016/j.future.2019.05.041 ↗
41. Cyber, U.C. (2025, April 29). BoT-IoT Dataset. Available online: https://research.unsw.edu.au/projects/bot-iot-dataset.
42. TS-IDS: Traffic-aware self-supervised learning for IoT Network Intrusion Detection10.1016/j.knosys.2023.110966 ↗