A Hybrid Artificial Intelligence Approach for Intrusion Detection in Wireless Sensor Networks

Authors

  • Mortada Falah Badri

    Electrical and Computer Engineering Faculty, Hakim Sabzevari University, Sabzevar P.O. Box 397, Iran

  • Mina Malekzadeh

    Electrical and Computer Engineering Faculty, Hakim Sabzevari University, Sabzevar P.O. Box 397, Iran

DOI:

https://doi.org/10.30564/jeis.v8i2.13209
Received: 25 February 2026 | Revised: 18 June 2026 | Accepted: 10 July 2026 | Published Online: 20 July 2026

Abstract

Wireless sensor networks (WSNs) play a vital role in modern applications such as environmental monitoring, industrial automation, and smart infrastructure, where reliable data transmission, robustness, and energy efficiency are essential. However, their distributed architecture and constrained computational resources make them highly vulnerable to a wide range of security threats, including Blackhole, Grayhole, Flooding, and Scheduling attacks. These attacks can severely disrupt network functionality, degrade data integrity, and compromise the overall reliability of mission-critical operations. To address these challenges, we present an intrusion detection system (IDS) framework that leverages a diverse set of machine learning (ML) models, incorporating both boosting and non-boosting techniques, as well as deep learning (DL) architectures, including sequential and non-sequential designs. This diversity enables the framework to capture varied learning behaviors and decision boundaries. To further enhance detection accuracy and adaptability, Ant colony optimization (ACO) is employed as a metaheuristic tuning layer, refining hyperparameters to improve performance under the strict resource limitations typical of WSN environments. Each model is evaluated in both its baseline and ACO-optimized form, enabling a detailed comparative analysis that highlights the influence of optimization on intrusion detection effectiveness. Experimental results demonstrate that ACO significantly strengthens model resilience against diverse threats, offering an adaptive and efficient approach to securing modern WSN infrastructures.

Keywords:

Wireless Sensor Networks; Deep Learning; Machine Learning; Intrusion Detection System; Ant Colony Optimization

References

[1] Nguyen, M.D., Nguyen, M.T., Nguyen, D.T., et al., 2025. A Comparative Study of Wi-Fi Technologies in Wireless Sensor Networks. Computer Networks and Communications. 3(1), 75–87. DOI: https://doi.org/10.37256/cnc.3120256070

[2] Sicari, S., Rizzardi, A., Miorandi, D., et al., 2018. REATO: REActing TO Denial of Service Attacks in the Internet of Things. Computer Networks. 137, 37–48. DOI: https://doi.org/10.1016/j.comnet.2018.03.020

[3] Altigani, A., Hasan, S., Barry, B., et al., 2021. A Polymorphic Advanced Encryption Standard—A Novel Approach. IEEE Access. 9, 20191–20207. DOI: https://doi.org/10.1109/ACCESS.2021.3051556

[4] Altulaihan, E., Almaiah, M.A., Aljughaiman, A., 2024. Anomaly Detection IDS for Detecting DoS Attacks in IoT Networks Based on Machine Learning Algorithms. Sensors. 24(2), 713. DOI: https://doi.org/10.3390/s24020713

[5] Fares, H., Vibhute, A., Mouniane, Y., et al., 2025. Intrusion Detection in Wireless Sensor Networks Using Machine Learning. Procedia Computer Science. 252, 912–921. DOI: https://doi.org/10.1016/j.procs.2025.01.052

[6] Mahadik, S.S., Pawar, P.M., Muthalagu, R., 2023. Edge-HetIoT Defense Against DDoS Attack Using Learning Techniques. Computers & Security. 132, 103347. DOI: https://doi.org/10.1016/j.cose.2023.103347

[7] Sharma, D.K., Dhurandher, S.K., Kumaram, S., et al., 2022. Mitigation of Black Hole Attacks in 6LoWPAN RPL-Based Wireless Sensor Networks for Cyber Physical Systems. Computer Communications. 189, 182–192. DOI: https://doi.org/10.1016/j.comcom.2022.04.003

[8] Nordin, N., Mohd Pozi, M.S., 2024. Cross-Layer Based Intrusion Detection System for Wireless Sensor Networks: Challenges, Solutions, and Future Directions. In: Zakaria, N.H., Mansor, N.S., Husni, H., et al. (Eds.). Computing and Informatics (ICOCI 2023): Communications in Computer and Information Science, Vol 2001. Springer: Singapore. pp. 108–121. DOI: https://doi.org/10.1007/978-981-99-9589-9_9

[9] Ramesh, S., Yaashuwanth, C., Prathibanandhi, K., et al., 2021. An Optimized Deep Neural Network-Based DoS Attack Detection in Wireless Video Sensor Networks. Journal of Ambient Intelligence and Humanized Computing. DOI: https://doi.org/10.1007/s12652-020-02763-9

[10] Liu, G., Zhao, H., Fan, F., et al., 2022. An Enhanced Intrusion Detection Model Based on Improved kNN in WSNs. Sensors. 22(4), 1407. DOI: https://doi.org/10.3390/s22041407

[11] El Kouari, O., Lazaar, S., Achoughi, T., 2025. Fortifying Industrial Cybersecurity: A Novel Industrial Internet of Things Architecture Enhanced by Honeypot Integration. International Journal of Electrical and Computer Engineering. 15(1), 1089–1098. DOI: https://doi.org/10.11591/ijece.v15i1.pp1089-1098

[12] Gebreyesus, G., Panda, J., Sreedevi, I., 2023. Localization and Detection of Multiple Attacks in Wireless Sensor Networks Using Artificial Neural Network. Wireless Communications and Mobile Computing. 2023(1), 2744706. DOI: https://doi.org/10.1155/2023/2744706

[13] Osanaiye, O., Alfa, A.S., Hancke, G.P., 2018. A Statistical Approach to Detect Jamming Attacks in Wireless Sensor Networks. Sensors. 18(6), 1691. DOI: https://doi.org/10.3390/s18061691

[14] Almomani, I., Alenezi, M., 2018. Efficient Denial of Service Attacks Detection in Wireless Sensor Networks. Journal of Information Science and Engineering. 34(4), 977–1000. DOI: https://doi.org/10.6688/JISE.201807_34(4).0011

[15] Elsadig, M.A., 2023. Detection of Denial-of-Service Attack in Wireless Sensor Networks: A Lightweight Machine Learning Approach. IEEE Access. 11, 83537–83552. DOI: https://doi.org/10.1109/ACCESS.2023.3303113

[16] Vinayakumar, R., Alazab, M., Soman, K.P., et al., 2019. Deep Learning Approach for Intelligent Intrusion Detection System. IEEE Access. 7, 41525–41550. DOI: https://doi.org/10.1109/ACCESS.2019.2895334

[17] Shanmathi, M., Sonker, A., Hussain, Z., et al., 2024. Enhancing Wireless Sensor Network Security and Efficiency with CNN-FL and NGO Optimization. Measurement: Sensors, 32, 101057. DOI: https://doi.org/10.1016/j.measen.2024.101057

[18] Al Sukkar, G., Al-Sharaeh, S., 2025. Enhancing Security in Wireless Sensor Networks: A Machine Learning-Based DoS Attack Detection. Engineering, Technology & Applied Science Research, 15(1), 19712–19719. DOI: https://doi.org/10.48084/etasr.7191

[19] Baswaraj, D., Palanikumar, S., Gopalakrishnan, T., et al., 2025. Enhancing Security in Energy-Efficient Wireless Sensor Networks Using Deep Learning. International Journal of Sensors, Wireless Communications and Control, 15(4), 305–315. DOI: https://doi.org/10.2174/0122103279327259240829041329

[20] Wakili, A., Bakkali, S., Alaoui, A.E.H., 2024. Machine Learning for QoS and Security Enhancement of RPL in IoT-Enabled Wireless Sensors. Sensors International, 5, 100289. DOI: https://doi.org/10.1016/j.sintl.2024.100289

[21] Karthikeyan, M., Manimegalai, D., RajaGopal, K., 2024. Firefly Algorithm-Based WSN-IoT Security Enhancement with Machine Learning for Intrusion Detection. Scientific Reports. 14(1), 231. DOI: https://doi.org/10.1038/s41598-023-50554-x

[22] Wang, Z., Ding, H., Li, B., et al., 2022. Energy-Efficient Cluster-Based Routing Protocol for WSN Using Firefly Algorithm and Ant Colony Optimization. Wireless Personal Communications, 125, 2167–2200. DOI: https://doi.org/10.1007/s11277-022-09651-9

[23] Tawfeek, M.A., Alrashdi, I., Alruwaili, M., et al., 2025. Improving Energy Efficiency and Routing Reliability in Wireless Sensor Networks Using Modified Ant Colony Optimization. EURASIP Journal on Wireless Communications and Networking, 2025, 22. DOI: https://doi.org/10.1186/s13638-025-02449-w

[24] Razooqi, Y.S., Al-Asfoor, M., Abed, M.H., 2024. Optimize Energy Consumption of Wireless Sensor Networks Using Modified Ant Colony Optimization (ACO). Networking and Internet Architecture. arXiv preprint. arXiv:2402.12526. DOI: https://doi.org/10.48550/arXiv.2402.12526

[25] Kooshari, A., Fartash, M., Mihannezhad, P., et al., 2024. An Optimization Method in Wireless Sensor Network Routing and IoT with Water Strider Algorithm and Ant Colony Optimization. Evolutionary Intelligence, 17, 1527–1545. DOI: https://doi.org/10.1007/s12065-023-00847-x

[26] Almomani, I., Al-Kasasbeh, B., Al-Akhras, M., 2016. WSN-DS: A Dataset for Intrusion Detection Systems in Wireless Sensor Networks. Journal of Sensors. 2016(1), 4731953. DOI: https://doi.org/10.1155/2016/4731953

[27] Kaggle, 2024. WSN-DS: A dataset for intrusion detection systems in wireless sensor networks. Available from: https://www.kaggle.com/datasets/bassamkasasbeh1/wsnds (cited 12 January 2026).

Downloads

How to Cite

Badri, M. F., & Malekzadeh, M. (2026). A Hybrid Artificial Intelligence Approach for Intrusion Detection in Wireless Sensor Networks. Journal of Electronic & Information Systems, 8(2), 43–60. https://doi.org/10.30564/jeis.v8i2.13209

Issue

Article Type

ARTICLE