Home > Published Issues > 2026 > Volume 21, No. 1, 2026 >
JCM 2026 Vol.21(1): 89-100
Doi: 10.12720/jcm.21.1.89-100

Intrusion Detection and Prevention Using Machine Learning for IoT-based WSN Network

Rajesh* and Mridul Chawla
Department of Electronics and Communication Engineering, Deenbandhu Chhotu Ram University of Science and Technology, Murthal, Sonipat, Haryana 1310039, India
Email: 19001903010rajesh@dcrustm.org (R.); mridulchawla.ece@dcrustm.org (M.C.)
*Corresponding author

Manuscript received July 18, 2025; revised August 20, 2025; accepted October 9, 2025; published January 29, 2026.

Abstract—Intrusion Detection Systems (IDS) are essential for securing enterprise and IoT networks against evolving cyber threats. This study proposes a Machine Learning (ML)-based IDS framework that integrates multiple algorithms to improve detection accuracy and resilience. Using the UNSW-NB15 dataset, models including Decision Tree (DT), Random Forest (RF), CatBoost, and hybrid approaches were trained and evaluated for binary classification of network activities. To mitigate performance degradation caused by high-dimensional feature vectors, a Gini Impurity-Based Weighted Random Forest (GIWRF) was employed for feature selection, while Genetic Algorithm (GA)-based feature extraction further enhanced the model’s understanding of class distributions. A total of twenty-seven features were selected based on their relevance, optimizing the learning process. Experimental results demonstrate that the hybrid model outperforms individual algorithms, achieving high accuracy in detecting various attacks, including DoS, Probe, and other network intrusions. The proposed GIWRF-Hybrid approach showed superior performance in both accuracy and loss metrics, confirming its practical applicability for real-world IoT security scenarios. The study provides insights into the design of robust ML-based IDS frameworks and underscores the importance of customized strategies and continuous improvements to enhance system resilience against increasingly sophisticated cyber-attacks. These findings contribute to strengthening IoT network defenses by combining feature selection, extraction, and hybrid classification methods within a single integrated approach.


Keywords—Intrusion Detection System (IDS), Machine Learning (ML), IoT, Wireless Sensor Network (WSN), Genetic Algorithm (GA), Gini Impurity-based Weighted Random Forest (GIWRF)


Cite: Rajesh and Mridul Chawla, “Intrusion Detection and Prevention Using Machine Learning for IoT-based WSN Network," Journal of Communications, vol. 21, no. 1, pp. 89-100, 2026.

Copyright © 2026 by the authors. This is an open access article distributed under the Creative Commons Attribution License which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited (CC BY 4.0).

Article Metrics in Dimensions