Imbalance-Aware Soft-Voting Ensemble for Dependable 34-Class Intrusion Detection in Wireless IoT Networks Using CICIoT2023
G. NagaleelaResearch Scholar, Bharatiya Engineering Science and Technology Innovation University, Anantapur, Andhra Pradesh, India. 2024wpcse001@bestiu.edu.in0009-0001-5316-6114
Dr.X.S. Asha ShinyProfessor, Department of CSE-AIML, CMR Engineering College, Hyderabad, India. drashashiny481@gmail.com0009-0004-3205-5775
Problem. Wireless Internet of Things (IoT) networks produce highly skewed traffic in which high-volume flooding attacks dominate, while web, malware and reconnaissance attacks are rare; accuracy alone therefore conceals failures on security-critical minority classes. Methodology. A leakage-controlled, imbalance-aware soft-voting ensemble is proposed for 34-class intrusion detection on CICIoT2023. From a corpus of 7,845,673 records and 47 columns, 42 numerical flow features were retained, and a stratified subset was partitioned into 180,000 training, 20,000 validation and 50,000 test records. Minority oversampling to 2,500 samples per selected class was confined to the training partition. Random Forest, Extra Trees, XGBoost and LightGBM generate 34-dimensional class-probability vectors that are fused by equal-weight averaging. Results. On the independent test set, the ensemble achieved 95.982% accuracy, 93.640% macro precision, 85.335% macro recall, 88.311% macro F1-score, 95.942% weighted F1-score, 99.722% macro ROC-AUC and 89.416% macro-PR-AUC. Relative to the strongest single learner, XGBoost, macro F1 increased by 0.485 percentage points and the test error fell from 4.206% to 4.018%, a 4.47% relative reduction; relative to Random Forest and Extra Trees, macro F1 increased by 6.217 and 10.065 points. Five-fold stratified cross-validation yielded 95.877% ± 0.079% accuracy and 88.426% ± 0.963% macro F1, with a 95% confidence interval of 87.230% to 89.621%. Eight low-support classes, including command injection, XSS, SQL injection and backdoor malware, remained below 0.65 recall, and inference required 42.99 s for 50,000 flows. Conclusion. Probability-level fusion delivers the most balanced multiclass detection among the evaluated models and supports dependable gateway-level IoT monitoring, while rare-class generalization and inference latency remain the principal targets for improvement.