An Optimized Hybrid Ensemble-Based Intrusion Detection approach to secure IoT Networks
Main Article Content
Abstract
The Internet of Things (IoT) has rapidly evolved, connecting billions of smart devices through diverse network protocols; however, the inherent vulnerability of these protocols to exploit poses significant threats of data integrity and security. In this research, we propose an optimized hybrid ensemble-based intrusion detection system (IDS) to mitigate the risk of escalating cyber-attacks within the IoT ecosystem. Our approach addresses the limitations of individual machine learning models- such as instability and classification in accuracy-by integrating multiple classifiers into a unified framework.
The proposed IDS employs a systematic ensemble strategy combined with voting mechanism, we also incorporated the optimization technique to iteratively identify and assign optimal weights to the base classifiers, thereby minimizing the objective function and maximizing classification performance.
The effectiveness of this proposed approach is validated using three different datasets: NSL-KDD, which provides a benchmark for traditional attacks; UNSW-NB15, which introduces diverse and modern attack categories; and CICIDS 2017, which offers a vast volume of realistic network traffic for large scale evaluation.
Our comprehensive evaluation demonstrates that this optimized hybrid ensemble significantly outperforms existing individual models and conventional ensemble-based IDSs. The proposed approach achieves superior detection accuracy and F1-score across all evaluated datasets, providing its capacity to provide a reliable, accurate and scalable solution for securing contemporary IoT network environments.
Article Details

This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.
References
Tyagi, H.; Kumar, R. Attack and Anomaly Detection in IoT Networks Using Supervised Machine Learning Approaches. Rev. D’Intelligence Artif. 2021, 35, 11–21. [CrossRef]
Thamilarasu, G.; Chawla, S. Towards deep-learning-driven intrusion detection for the internet of things. Sensors 2019, 19, 1977. [CrossRef] [PubMed]
Hephzipah, J.J.; Vallem, R.R.; Sheela, M.S.; Dhanalakshmi, G. An efficient cyber security system based on flow-based anomaly detection using Artificial neural network. Mesopotamian J. Cybersecur. 2023, 2023, 48–56. [CrossRef]
Luo, C.; Tan, Z.; Min, G.; Gan, J.; Shi, W.; Tian, Z. A novel web attack detection system for internet of things via ensemble classification. IEEE Trans. Ind. Inform. 2020, 17, 5810–5818. [CrossRef]
5. Lin, M.S.; Chiu, C.Y.; Lee, Y.J.; Pao, H.K. Malicious URL filtering—A big data application. In Proceedings of the 2013 IEEE International Conference on Big Data, IEEE, Silicon Valley, CA, USA, 6–9 October 2013; pp. 589–596.
Haji, S.H.; Ameen, S.Y. Attack and anomaly detection in iot networks using machine learning techniques: A review. Asian J. Res. Comput. Sci. 2021, 9, 30–46. [CrossRef]
Da Costa, K.A.; Papa, J.P.; Lisboa, C.O.; Munoz, R.; de Albuquerque, V.H.C. Internet of Things: A survey on machine learning based intrusion detection approaches. Comput. Netw. 2019, 151, 147–157. [CrossRef]
Hussain, F.; Hussain, R.; Hassan, S.A.; Hossain, E. Machine learning in IoT security: Current solutions and future challenges. IEEE Commun. Surv. Tutorials 2020, 22, 1686–1721. [CrossRef]
Khraisat, A.; Gondal, I.; Vamplew, P.; Kamruzzaman, J. Survey of intrusion detection systems: Techniques, datasets and challenges. Cybersecurity 2019, 2, 1–22.
Hasan, M.; Islam, M.M.; Zarif, M.I.I.; Hashem, M. Attack and anomaly detection in IoT sensors in IoT sites using machine learning approaches. Internet Things 2019, 7, 100059. [CrossRef]
Liu, X.; Liu, Y.; Liu, A.; Yang, L.T. Defending ON–OFF attacks using light probing messages in smart sensors for industrial communication systems. IEEE Trans. Ind. Inform. 2018, 14, 3801–3811. [CrossRef]
Khraisat, A.; Alazab, A. A critical review of intrusion detection systems in the internet of things: Techniques, deployment strategy, validation strategy, attacks, public datasets and challenges. Cybersecurity 2021, 4, 1–27.
De Souza, C.A.; Westphall, C.B.; Machado, R.B. Two-step ensemble approach for intrusion detection and identification in IoT and fog computing environments. Comput. Electr. Eng. 2022, 98, 107694. [CrossRef]
Goodfellow, I.; Bengio, Y.; Courville, A. Deep Learning; MIT Press: Cambridge, MA, USA, 2016.
Rani, D.; Gill, N.S.; Gulia, P.; Chatterjee, J.M. An Ensemble-Based Multiclass Classifier for Intrusion Detection Using Internet of Things. Comput. Intell. Neurosci. 2022, 2022, 1668676. [CrossRef] [PubMed]
Alsaedi, A.; Moustafa, N.; Tari, Z.; Mahmood, A.; Anwar, A. TON_IoT telemetry dataset: A new generation dataset of IoT and IIoT for data-driven intrusion detection systems. IEEE Access 2020, 8, 165130–165150.
Khan, M.A.; Khan Khattk, M.A.; Latif, S.; Shah, A.A.; Ur Rehman, M.; Boulila, W.; Driss, M.; Ahmad, J. Voting classifier based intrusion detection for iot networks. In Advances on Smart and Soft Computing: Proceedings of ICACIn 2021; Springer: Berlin/Heidelberg, Germany, 2022; pp. 313–328.
Batool, S.; Saqib, N.A.; Khattack, M.K.; Hassan, A. Identification of remote IoT users using sensor data analytics. In Proceedings of the Advances in Information and Communication: Proceedings of the 2019 Future of Information and Communication Conference (FICC), San Francisco, CA, USA, 14–15 March 2019; Springer: Berlin/Heidelberg, Germany, 2020; Volume 1, pp. 328–337.
Kumari, A.; Mehta, A.K. A hybrid intrusion detection system based on decision tree and support vector machine. In Proceedings of the 2020 IEEE 5th International Conference on Computing Communication and Automation (ICCCA), IEEE, Greater Noida, India, 30–31 October 2020; pp. 396–400.
Fitni, Q.R.S.; Ramli, K. Implementation of ensemble learning and feature selection for performance improvements in anomaly based intrusion detection systems. In Proceedings of the 2020 IEEE International Conference on Industry 4.0, Artificial Intelligence, and Communications Technology (IAICT), IEEE, Bali, Indonesia, 7–8 July 2020; pp. 118–124.
Tomer, V.; Sharma, S. Detecting iot attacks using an ensemble machine learning model. Future Internet 2022, 14, 102.
Danso PK, Neto EC, Dadkhah S, Zohourian A, Molyneaux H, Ghorbani AA. Ensemble-based intrusion detection for internet of things devices. In2022 IEEE 19th International Conference on Smart Communities: Improving Quality of Life Using ICT, IoT and AI (HONET) 2022 Dec 19 (pp. 034-039). IEEE.
Guo, G. A Machine learning framework for intrusion detection system in IoT networks using an ensemble feature selection method. In Proceedings of the 2021 IEEE 12th Annual Information Technology, Electronics and Mobile Communication Conference (IEMCON), IEEE, Vancouver, BC, Canada, 27–30 October 2021; pp. 0593–0599.
Churcher, A.; Ullah, R.; Ahmad, J.; Ur Rehman, S.; Masood, F.; Gogate, M.; Alqahtani, F.; Nour, B.; Buchanan,W.J. An experimental analysis of attack classification using machine learning in IoT networks. Sensors 2021, 21, 446.
Abu Al-Haija, Q.; Al-Badawi, A. Attack-Aware IoT network traffic routing leveraging ensemble learning. Sensors 2021, 22, 241.
Zhou, Y.; Cheng, G.; Jiang, S.; Dai, M. Building an efficient intrusion detection system based on feature selection and ensemble classifier. Comput. Netw. 2020, 174, 107247.
Pham, N.T.; Foo, E.; Suriadi, S.; Jeffrey, H.; Lahza, H.F.M. Improving performance of intrusion detection system using ensemble methods and feature selection. In Proceedings of the Australasian Computer Science Week Multiconference, Brisband, Australia, 29 January–2 February 2018; pp. 1–6.
Danso, P.K.; Neto, E.C.P.; Dadkhah, S.; Zohourian, A.; Molyneaux, H.; Ghorbani, A.A. Ensemble-based Intrusion Detection for Internet of Things Devices. In Proceedings of the 2022 IEEE 19th International Conference on Smart Communities: Improving Quality of Life Using ICT, IoT and AI (HONET), IEEE, Marietta, GA, USA, 19–21 December 2022; pp. 034–039.
Naz, N.; Khan, M.A.; Alsuhibany, S.A.; Diyan, M.; Tan, Z.; Khan, M.A.; Ahmad, J. Ensemble learning-based IDS for sensors telemetry data in IoT networks. Math. Biosci. Eng. 2022, 19, 10550–10580.
Abbas, A., Khan, M. A., Latif, S., Ajaz, M., Shah, A. A., & Ahmad, J. (2022). A new ensemble-based intrusion detection system for internet of things. Arabian Journal for Science and Engineering, 1-15.
. Kumar, P.; Gupta, G.P.; Tripathi, R. An ensemble learning and fog-cloud architecture-driven cyber-attack detection framework for IoMT networks. Comput. Commun. 2021, 166, 110–124.
Alotaibi, Y., & Ilyas, M. (2023). Ensemble-learning framework for intrusion detection to enhance internet of things’ devices security. Sensors, 23(12), 5568.
Zarpelao, B.B., et al. "Intrusion Detection Systems in Internet of Things." Journal of Theoretical and Applied Information Technology, vol. 102, no. 1, 2023.
Chen, L.G., et al. "A Systematic Literature Review on Intrusion Detection Systems." Journal of Information Systems, 2023; https://doi.org/10.1515/jisys-2023-0248.
Kumar, A., et al. "A Comprehensive Systematic Literature Review on Intrusion Detection Systems." ResearchGate, 2021.
Rani, D.; Gill, N.S.; Gulia, P.; Chatterjee, J.M. An Ensemble-Based Multiclass Classifier for Intrusion Detection Using Internet of Things. Comput. Intell. Neurosci. 2022, 2022, 1668676.
Syarif I, Zaluska E, Prugel-Bennett A, Wills G. Application of bagging, boosting and stacking to intrusion detection. InInternational Workshop on Machine Learning and Data Mining in Pattern Recognition 2012 Jul 13 (pp. 593-602). Berlin, Heidelberg: Springer Berlin Heidelberg.
Tavallaee, M., Bagheri, E., Lu, W., & Ghorbani, A. A. (2009). A detailed analysis of the KDD CUP 99 data set.
Moustafa, Nour, et al. "UNSW-NB15: a comprehensive data set for network intrusion detection systems." 2015 Military Communications and Information Systems Conference 1 (MilCIS), 2015, pp. 1-6, doi:10.1109/MILCIS.2015.7344643.
Sharafaldin, I., Lashkari, A. H., & Ghorbani, A. A. (2018). Toward generating a new intrusion detection dataset and intrusion traffic characterization. ICISSp, 1(2018), 108-116.
Koroniotis, N., Moustafa, N., Sitnikova, E., & Turnbull, B. (2019). Towards the development of realistic botnet dataset in the internet of things for network forensic analytics: Bot-iot dataset. Future Generation Computer Systems, 100, 779-796.
Moustafa, N., Keshky, M., Debiez, E., & Janicke, H. (2020, December). Federated TON_IoT Windows datasets for evaluating AI-based security applications. In 2020 IEEE 19th international conference on trust, security and privacy in computing and communications (TrustCom) (pp. 848-855). IEEE.
Sharma, A., & Babbar, H. (2024, June). Understanding IoT-23 dataset: a benchmark for IoT security analysis. In 2023 4th International Conference on Intelligent Technologies (CONIT) (pp. 1-5). IEEE.
Ferrag, M. A., Friha, O., Hamouda, D., Maglaras, L., & Janicke, H. (2022). Edge-IIoTset: A new comprehensive realistic cyber security dataset of IoT and IIoT applications for centralized and federated learning. IEEe Access, 10, 40281-40306.
Javed D. Multi-Ensemble architecture for network intrusion detection: A Stacking, voting and hybrid adaboost=random forest approach on CIC-IDS2024. Spectrum of Engineering Sciences. 2025 Oct 25:967-81.
Jose AM, Mukherjee A, Saha J, Bhaumik A, Datta K, Patra R, Behura A. Multi-Class SVM & Random Forest Based Intrusion Detection Using UNSW-NB15 Dataset. In2024 15th International Conference on Computing Communication and Networking Technologies (ICCCNT) 2024 Jun 24 (pp. 1-6). IEEE.