Data-Driven Intrusion Detection Techniques for Secure Wireless Sensor Networks Using Machine Learning

Authors

  • Dr. Neetu Sikarwar Department of Electronice Engineering, Institute of Engineeeirng , Jiwaji University, Gwalior, India. Author

DOI:

https://doi.org/10.63282/3050-922X.IJERET-V7I2P130

Keywords:

Wireless Sensor Networks, Intrusion Detection System, Denial of Service (DoS) Attacks, Machine Learning, SHAP Analysis, LEACH Protocol

Abstract

Denial of Service (DoS) attacks are a major concern for wireless sensor networks (WSNs), which are widely used in IoT-based real-time monitoring applications. In this paper, an intrusion detection framework based on data is proposed to secure communication in WSN using machine learning techniques. The WSN-DS dataset is used with LEACH protocol for Flooding, TDMA Scheduling, Blackhole and Grayhole attack detection. Prior to training the model, the dataset is subjected to data preparation methods such as encoding, normalization, balancing with SMOTE, and train–test splitting. Following their implementation, the Decision Tree and K-Nearest Neighbors (KNN) classifiers are assessed using several metrics such as accuracy (ACC), precision (PRE), recall (REC), F1-score (F1), ROC-AUC, confusion matrix, and SHAP analysis. It is clear from the experimental results that the KNN model (with an ACC rate of 99.39% and an F1-score of 99.38%) and the Decision Tree model (with a ROC-AUC of 99.43%) perform well in the intrusion detection task. The proposed models are compared with other existing methods such as CatBoost, Naïve Bayes, SVC, RF and D-GOPA, which have proved that the proposed models outperform the other methods in terms of detection ACC and classification reliability. The proposed framework considerably increases the efficiency of the security that can be provided for the network, the efficiency with which attacks can be detected and it offers an efficient solution for secure, intelligent applications of wireless sensor networks.

References

[1] P. R. Chandre, P. Mahalle, and G. Shinde, “Intrusion prevention system using convolutional neural network for wireless sensor network,” IAES Int. J. Artif. Intell., vol. 11, no. 2, p. 504, Jun. 2022, doi: 10.11591/ijai.v11.i2.pp504-515.

[2] V. K. Sharma, “STRATEGIC FRAMEWORK FOR AI-ENHANCED PORTFOLIOS IN WIRELESS ENGINEERING: A LITERATURE REVIEW,” Int. J. Core Eng. Manag., vol. 8, no. 03, pp. 77–83, 2025.

[3] M. R. Anand and K. Abhilash, “Transforming Energy-Intensive Smart Factories with AI: TCN-based Forecasting and DQN-Driven Operational Optimization for Healthcare Manufacturing,” in International Conference on Intelligent Computing, Information and Control Systems (ICOIICS-2025), Nepal: IEEE, 2025, pp. 508–515, November. [Online]. Available: https://scholar.google.com/citations?view_op=view_citation&hl=en&user=Wm2jcU0AAAAJ&citation_for_view=Wm2jcU0AAAAJ:zYLM7Y9cAGgC

[4] H. Fares, A. D. Vibhute, Y. Mouniane, and H. Bouijij, “Intrusion Detection in Wireless Sensor Networks using Machine Learning,” Procedia Comput. Sci., vol. 252, pp. 912–921, 2025, doi: 10.1016/j.procs.2025.01.052.

[5] B. F. More and S. Pawar, “Smart Home System using IoT and AI,” Int. J. Manag. Technol. Eng., vol. 8, no. 11, pp. 2241–2246, NOVEMBER, 2018, [Online]. Available: https://scholar.google.com/citations?view_op=view_citation&hl=en&user=NlfrhQ4AAAAJ&citation_for_view=NlfrhQ4AAAAJ:u-x6o8ySG0sC

[6] M. Kari, “Intelligent Deep Learning-Based System for Improved Phishing Identification Accuracy in Web Platforms,” in 2026 IEEE International Conference for Convergence in Computing Technology (I3CTCON), IEEE, Mar. 2026, pp. 1–6. doi: 10.1109/I3CTCON68242.2026.11508030.

[7] S. Singh, “Advancing Network Security in 5G: Leveraging the 5G-NIDD Dataset for Intrusion Detection and Mitigation,” in 2025 IEEE 12th International Conference on Cyber Security and Cloud Computing (CSCloud), New York City, NY, USA: IEEE, 2025, pp. 1–6, November, December. doi: 10.1109/CSCloud66326.2025.00055.

[8] A. M. Arabiat and Y. G. Eljaafreh, “Intrusion Detection in Wireless Sensor Networks Using ML Based Classification of Denial of Service (DoS) Attacks,” J. Commun., pp. 501–514, Aug. 2025, doi: 10.12720/jcm.20.4.501-514.

[9] T. A. Khan et al., “Multi-Source Cyber Intrusion Detection Using Ensemble Machine Learning,” J. Comput. Sci., vol. 21, no. 1, pp. 111–123, Jan. 2025, doi: 10.3844/jcssp.2025.111.123.

[10] M. Kumar and M. K. Shah, “AI-Driven DDoS Detection for Network Security: A Performance Analysis of Machine-Deep Learning Methods on Network Traffic Data,” in 2026 IEEE 5th International Conference on AI in Cybersecurity (ICAIC), Houston, TX, USA: IEEE, 2026, pp. 1–6, February. doi: 10.1109/ICAIC67076.2026.11395710.

[11] V. K. Bollu, “Threat Landscape in Artificial Intelligence Systems: Taxonomy, Attack Vectors and Security Implications,” World J. Adv. Res. Rev., vol. 29, no. 1, pp. 285–294, January, 2026, doi: https://doi.org/10.30574/wjarr.2026.29.1.0007.

[12] V. Sharma, “Zero Trust Architecture for 5G Networks,” Int. J. Innov. Res. Eng. Multidiscip. Phys. Sci., vol. 12, no. 6, Nov. 2024, doi: 10.37082/IJIRMPS.v12.i6.232707.

[13] M. Patel and U. Korat, “Swarm Optimization Algorithm-Enhanced Clustering Techniques for Reliable Wireless Sensor Networks Communication,” in 2026 IEEE 5th International Conference on AI in Cybersecurity (ICAIC), Houston, TX, USA: IEEE, 2026, pp. 1–6, February. doi: 10.1109/ICAIC67076.2026.11395724.

[14] V. K. Sharma, “AI-Based Anomaly Detection for 5G Core and RAN Components,” Int. J. Sci. Res. Eng. Manag., vol. 6, no. 1, pp. 1–6, june, 2022, doi: 10.55041/IJSREM11453.

[15] D. P. Guda and C. Appani, “Graph Neural Networks for Dynamic Malware Behaviour Analysis and Classification in Advanced Persistent Threats (APT),” Int. J. Commun. Networks Inf. Secur., vol. 14, no. 3, 2022.

[16] S. Singh, “Advancing Wireless Communications with Open Radio Access Network,” in 2025 6th International Conference on Data Intelligence and Cognitive Informatics (ICDICI), Tirunelveli, India: IEEE, Jul. 2025, pp. 682-687,. doi: 10.1109/ICDICI66477.2025.11135206.

[17] S. K. Sarangi, R. Lenka, J. Mishra, R. Sahu, and A. Nanda, Malicious detection and trust calculation using residual recurrent neural network for trust with quality of service-aware multicast routing in mobile ad-hoc network system, vol. 161. 2025. doi: https://doi.org/10.1016/j.engappai.2025.112130.

[18] D. Bhattacharjee, “Design and Evaluation of Deep Generative AI Model for Intrusion Detection in Cyber Threat Monitoring,” in 2025 7th International Symposium on Advanced Electrical and Communication Technologies (ISAECT), Mohali, Punjab, India: IEEE, 2025, pp. 1–6, December. doi: https://doi.org/10.1109/ISAECT68904.2025.11318752.

[19] A. G and P. P. S, “A Lightweight Entropy-Based CUSUM Framework for Intrusion Detection in WSN Environments,” in 2026 World Conference on Computational Science and Technology (WcCST), IEEE, Mar. 2026, pp. 610–614. doi: 10.1109/WcCST67302.2026.11496167.

[20] M. V. Aasha Verghese, “Betti Number-Based Anomaly Detection for Intrusion Detection in Wireless Sensor Networks,” IEEE Sens. J., vol. 26, no. 3, pp. 5125–5132, Feb. 2026, doi: 10.1109/JSEN.2025.3640421.

[21] K. V, P. B, B. B. F, A. Govindaram, S. M, and N. Appavu, “AI-Driven Security Architecture for Wireless Sensor Networks Using Deep Learning,” in 2025 IEEE 2nd International Conference for Women in Computing (InCoWoCo), IEEE, Nov. 2025, pp. 1–5. doi: 10.1109/InCoWoCo68239.2025.11407131.

[22] N. A. Manzoor, M. F. Akbar, and M. A. Prasanna, “Enhancing Intrusion Detection in Wireless Sensor Networks Using Deep Convolutional Neural Networks,” in International Conference on Smart Systems for Applications in Electrical Sciences, ICSSES 2025, 2025. doi: 10.1109/ICSSES64899.2025.11009697.

[23] S. Shukla, A. S. Raghuvanshi, S. Majumder, and S. Singh, “FedHNN: A Federated Learning Based Hybrid Neural Network for Real-Time Intrusion Detection Systems,” in Proceedings - 2nd IEEE International Conference on Device Intelligence, Computing and Communication Technologies, DICCT 2024, 2024. doi: 10.1109/DICCT61038.2024.10533096.

[24] R. Kalaivani, K. Aruna, S. Tamilarasan, and J. Jayapriya, “Pelican Optimization Algorithm for Mobile Secure Routing in Intrusion Detection Systesm in Wireless Sensor Networks,” in 2nd IEEE International Conference on Data Science and Network Security, ICDSNS 2024, 2024. doi: 10.1109/ICDSNS62112.2024.10690985.

[25] B. Kasasbeh, “WSN-DS,” Kaggle.

[26] M. A. Talukder, S. Sharmin, M. A. Uddin, M. M. Islam, and S. Aryal, “MLSTL-WSN: machine learning-based intrusion detection using SMOTETomek in WSNs,” Int. J. Inf. Secur., 2024, doi: 10.1007/s10207-024-00833-z.

[27] A. John, I. F. Bin Isnin, S. Hamid Hussain Madni, and M. Faheem, “Intrusion detection in cluster‐based wireless sensor networks: Current issues, opportunities and future research directions,” IET Wirel. Sens. Syst., vol. 14, no. 6, pp. 293–332, Dec. 2024, doi: 10.1049/wss2.12100.

[28] M. A. Talukder, M. Khalid, and N. Sultana, “A hybrid machine learning model for intrusion detection in wireless sensor networks leveraging data balancing and dimensionality reduction,” Sci. Rep., vol. 15, no. 1, p. 4617, Feb. 2025, doi: 10.1038/s41598-025-87028-1.

[29] D. Jeevaraj, B. Karthik, T. Vijayan, and M. Sriram, “Feature Selection Model using Naive Bayes ML Algorithm for WSN Intrusion Detection System,” Int. J. Electr. Comput. Eng. Syst., vol. 14, no. 2, pp. 179–185, Feb. 2023, doi: 10.32985/ijeces.14.2.7.

[30] G. Al Sukkar and S. Al-Sharaeh, “Enhancing Security in Wireless Sensor Networks: A Machine Learning-based DoS Attack Detection,” Eng. Technol. Appl. Sci. Res., vol. 15, no. 1, pp. 19712–19719, Feb. 2025, doi: 10.48084/etasr.7191.

[31] S. Ifzarne, H. Tabbaa, I. Hafidi, and N. Lamghari, “Anomaly Detection using Machine Learning Techniques in Wireless Sensor Networks,” J. Phys. Conf. Ser., vol. 1743, no. 1, Jan. 2021, doi: 10.1088/1742-6596/1743/1/012021.

Downloads

Published

2026-05-03

Issue

Section

Articles

How to Cite

1.
Sikarwar N. Data-Driven Intrusion Detection Techniques for Secure Wireless Sensor Networks Using Machine Learning. IJERET [Internet]. 2026 May 3 [cited 2026 Jun. 11];7(2):246-52. Available from: https://ijeret.org/index.php/ijeret/article/view/620