Next Article in Journal
Design and Experiment of an Air-Suction Maize Precision Seed Metering Electric Drive Control System Based on Fuzzy-PID Optimized by Adaptive Chaotic Mutation Particle Swarm Optimization
Previous Article in Journal
In Vitro and In Silico Assessment of the Anti-Cancer Potential of Pinus sylvestris and Picea abies Needle Essential Oils
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
This is an early access version, the complete PDF, HTML, and XML versions will be available soon.
Article

SHAP-Guided Feature Selection for IoT Botnet Detection: A Comparative Study with Conventional Methods

1
School of Computer Science and Artificial Intelligence, Civil Aviation Flight University of China, Deyang 618307, China
2
School of Science, Civil Aviation Flight University of China, Deyang 618307, China
*
Author to whom correspondence should be addressed.
Appl. Sci. 2026, 16(17), 8840; https://doi.org/10.3390/app16178840
Submission received: 9 July 2026 / Revised: 26 August 2026 / Accepted: 3 September 2026 / Published: 5 September 2026

Abstract

The widespread deployment of Internet of Things (IoT) devices has expanded the attack surface of modern networks, making IoT botnets a persistent cybersecurity threat. Although machine learning-based intrusion detection systems (IDSs) have demonstrated promising detection capability, their performance is often hindered by redundant high-dimensional features and limited model interpretability. This study presents an explainability-guided feature selection framework that employs SHAP values derived from an XGBoost model to rank features and systematically compares its effectiveness with Mutual Information (MI), Analysis of Variance (ANOVA), and Principal Component Analysis (PCA) across nine machine learning classifiers using the N-BaIoT dataset. Experimental results indicate that LightGBM with SHAP-selected features achieves an accuracy of 0.9994 using only the top 10 features. Among the evaluated feature selection methods, SHAP achieves the highest classification performance on seven of the nine classifiers, while Wilcoxon signed-rank tests indicate a statistically significant difference between SHAP and ANOVA (p = 3.03 × 10−5); the difference between SHAP and MI is significant at the conventional threshold (p = 2.86 × 10−2) but does not remain significant after Bonferroni correction for multiple comparisons. Furthermore, SHAP-based analysis reveals distinct traffic statistical signatures between the Mirai and Gafgyt botnet families, offering actionable insights for explainability-aware IoT intrusion detection. The proposed framework provides a practical solution for balancing detection performance and model interpretability in IoT botnet detection.
Keywords: IoT security; botnet detection; feature selection; explainable artificial intelligence; SHAP; N-BaIoT IoT security; botnet detection; feature selection; explainable artificial intelligence; SHAP; N-BaIoT

Share and Cite

MDPI and ACS Style

Hua, M.; Zhang, X.; Li, Y. SHAP-Guided Feature Selection for IoT Botnet Detection: A Comparative Study with Conventional Methods. Appl. Sci. 2026, 16, 8840. https://doi.org/10.3390/app16178840

AMA Style

Hua M, Zhang X, Li Y. SHAP-Guided Feature Selection for IoT Botnet Detection: A Comparative Study with Conventional Methods. Applied Sciences. 2026; 16(17):8840. https://doi.org/10.3390/app16178840

Chicago/Turabian Style

Hua, Man, Xinyue Zhang, and Yanling Li. 2026. "SHAP-Guided Feature Selection for IoT Botnet Detection: A Comparative Study with Conventional Methods" Applied Sciences 16, no. 17: 8840. https://doi.org/10.3390/app16178840

APA Style

Hua, M., Zhang, X., & Li, Y. (2026). SHAP-Guided Feature Selection for IoT Botnet Detection: A Comparative Study with Conventional Methods. Applied Sciences, 16(17), 8840. https://doi.org/10.3390/app16178840

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop