Melola Discovery

← Melola Discovery

Akses terbuka Jurnal SINTA 1

Explainable IoT Intrusion Detection Using Random Forest, SMOTE, and SHAP

Jurnal Elektronika dan Telekomunikasi · Vol. 26 No. 1 (2026) · hlm. 45–53

DOI
10.55981/jet.823
ISSN
1411-8289, 2527-9955
Terbit
2026-08-31
Penerbit
Indonesian Institute of Sciences
Bahasa
en
Lisensi
creativecommons.org/licenses/by-nc-sa/4.0/

Abstrak

Class imbalance in Internet of Things (IoT) Intrusion Detection System (IDS) datasets is a major challenge that degrades the detection performance on minority attacks and complicates model interpretability. This study investigates the performance of an IoT IDS based on Random Forest (RF) combined with the Synthetic Minority Over-sampling Technique (SMOTE) and explainable AI analysis using SHapley Additive exPlanations (SHAP) on the public IoTID20 dataset. The research pipeline consists of data preprocessing (cleaning, numerical and categorical feature encoding, normalization), stratified train–test split into 7,000 training and 3,000 test samples, training an RF baseline on the imbalanced training set, applying SMOTE to balance the DoS, Scan, Normal, and MITM ARP Spoofing classes, and training an RF–SMOTE model. The models are compared using accuracy, precision, recall, and F1-score per class as well as macro averages. Afterwards, SHAP is employed to analyse global feature importance for both models. Experimental results show that the RF baseline already achieves very high performance with an accuracy of about 0.99 and a macro F1-score of approximately 0.984, while the RF–SMOTE model maintains the same accuracy with a macro F1-score of around 0.983. SMOTE substantially improves the class distribution in the training set but yields only minor differences in aggregate performance, RF–SMOTE slightly enhances sensitivity for some minority classes, whereas the F1-score for the MITM ARP Spoofing class decreases marginally compared to the baseline. SHAP analysis indicates that flow-related traffic features such as connection duration, packet counts, byte volume, and packet direction ratios are consistently the most influential features in both models. Changes in SHAP values for the RF–SMOTE model highlight an increased relative contribution of features representing rare attack patterns, making explanations for minority classes more prominent. Overall, the proposed RF–SMOTE–SHAP framework delivers a high-performing IoT IDS while providing improved transparency in explaining detection decisions, thereby supporting the development of trustworthy and interpretable IDS solutions for IoT environments.

Kata kunci

Jaringan kolaborasi para penulis

40 penulis · 114 tautan kepenulisan bersama · 27 lintas organisasi · menampilkan 40 yang paling banyak terhubung

Arahkan kursor atau ketuk sebuah nama untuk menyorot rekan penulisnya. Klik dua kali untuk membuka halaman penulis.

  • State University of Malang
  • Universiti Teknikal Malaysia Melaka
  • Universiti Teknologi MARA
  • Universitas Ahmad Dahlan
  • Politeknik Negeri Malang
  • University of Brawijaya
  • University of South Australia
  • Organisasi lain
  • Afiliasi tidak diketahui
  • Organisasi berbeda
  • Organisasi sama
  • Afiliasi tidak diketahui
  • Garis lebih tebal = lebih banyak artikel bersama · lingkaran lebih besar = lebih banyak artikel
Tampilkan sebagai tabel
Rekan penulisOrganisasiArtikel bersama
Agung Bella Putra UtamaState University of Malang3
Didik Dwi PrasetyaState University of Malang3
Rosa Andrie AsmaraPoliteknik Negeri Malang2
Denis Eka CahyaniState University of Malang2
Andrew NafalskiUniversity of South Australia2
Langlang GumilarState University of Malang2
Arif Nur AfandiState University of Malang2
M. Noer Fadli HidayatState University of Malang2
Adi Izhar Che AniUniversiti Teknologi MARA2
Ahmad Shukri Firdhaus KamaruzamanUniversiti Teknologi MARA2
Mohammad Afiq Hamdani Mohammad FaridUniversiti Teknologi MARA2
Resty WulanningrumState University of Malang2
Sujito SujitoState University of Malang2
Syaad PatmantharaState University of Malang2
Cahya RahmadPoliteknik Negeri Malang1
Riri Nada DevitaState University of Malang1
Heru Wahyu HerwantoState University of Malang1
Wayan Firdaus MahmudyUniversity of Brawijaya1
Nadia Roosmalita SariUniversity of Brawijaya1
Elta SonalithaUniversitas Merdeka Malang1
Ahmad Kadri JunohUniversiti Malaysia Perlis1
Rully Charitas Indra PrahmanaUniversitas Ahmad Dahlan1
Tri SutantiUniversitas Ahmad Dahlan1
Ahmad Muhammad DiponegoroUniversitas Ahmad Dahlan1
Lizawati Binti SalahuddinUniversiti Teknikal Malaysia Melaka1
Ummi Raba’ah HashimAfiliasi tidak diketahui1
Kasturi KanchymalayUniversiti Teknikal Malaysia Melaka1
Martina AliUniversiti Teknikal Malaysia Melaka1
Rahillda Nadhirah Norizzaty RahiddinUniversiti Teknikal Malaysia Melaka1
Aripriharta AriprihartaState University of Malang1
Muhammad Cahyo BagaskoroState University of Malang1
Yuni RahmawatiState University of Malang1
Gregorius Paulus Mario Laka KakiState University of Malang1
Ayu PurwatiningsihState University of Malang1

Afiliasi berasal dari OpenAlex; metadata OAI-PMH jurnal tidak memuatnya. Penulis tanpa ID OpenAlex dicocokkan berdasarkan nama, sehingga dua orang bisa tergabung atau satu orang bisa terpisah.

Sumber metadata: OpenAlex API (jurnal SINTA, ADR 0048) https://openalex.org/S4210212760, pertama di-harvest 21 Nov 2026, terakhir terlihat 22 Nov 2026.
Metadata asli (oai_dc)
<oai_dc:dc xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:oai_dc="http://www.openarchives.org/OAI/2.0/oai_dc/"><dc:title xml:lang="en">Explainable IoT Intrusion Detection Using Random Forest, SMOTE, and SHAP</dc:title><dc:creator>Julfikar Mawansyah</dc:creator><dc:creator>Anik Nur Handayani</dc:creator><dc:creator>Aji Prasetya Wibawa</dc:creator><dc:creator>Triyanna Widiyaningtyas</dc:creator><dc:creator>Mokh. Sholihul Hadi</dc:creator><dc:creator>Fidyah Ajeng Wulandari</dc:creator><dc:subject>IoT intrusion detection</dc:subject><dc:subject>class imbalance</dc:subject><dc:subject>SMOTE</dc:subject><dc:subject>SHAP</dc:subject><dc:subject>random forest</dc:subject><dc:subject>explainable AI</dc:subject><dc:subject>feature importance</dc:subject><dc:subject>denial-of-service attacks</dc:subject><dc:subject>network traffic features</dc:subject><dc:subject>IoTID20 dataset</dc:subject><dc:description xml:lang="en">Class imbalance in Internet of Things (IoT) Intrusion Detection System (IDS) datasets is a major challenge that degrades the detection performance on minority attacks and complicates model interpretability. This study investigates the performance of an IoT IDS based on Random Forest (RF) combined with the Synthetic Minority Over-sampling Technique (SMOTE) and explainable AI analysis using SHapley Additive exPlanations (SHAP) on the public IoTID20 dataset. The research pipeline consists of data preprocessing (cleaning, numerical and categorical feature encoding, normalization), stratified train–test split into 7,000 training and 3,000 test samples, training an RF baseline on the imbalanced training set, applying SMOTE to balance the DoS, Scan, Normal, and MITM ARP Spoofing classes, and training an RF–SMOTE model. The models are compared using accuracy, precision, recall, and F1-score per class as well as macro averages. Afterwards, SHAP is employed to analyse global feature importance for both models. Experimental results show that the RF baseline already achieves very high performance with an accuracy of about 0.99 and a macro F1-score of approximately 0.984, while the RF–SMOTE model maintains the same accuracy with a macro F1-score of around 0.983. SMOTE substantially improves the class distribution in the training set but yields only minor differences in aggregate performance, RF–SMOTE slightly enhances sensitivity for some minority classes, whereas the F1-score for the MITM ARP Spoofing class decreases marginally compared to the baseline. SHAP analysis indicates that flow-related traffic features such as connection duration, packet counts, byte volume, and packet direction ratios are consistently the most influential features in both models. Changes in SHAP values for the RF–SMOTE model highlight an increased relative contribution of features representing rare attack patterns, making explanations for minority classes more prominent. Overall, the proposed RF–SMOTE–SHAP framework delivers a high-performing IoT IDS while providing improved transparency in explaining detection decisions, thereby supporting the development of trustworthy and interpretable IDS solutions for IoT environments.</dc:description><dc:publisher>Indonesian Institute of Sciences</dc:publisher><dc:date>2026-08-31</dc:date><dc:type>info:eu-repo/semantics/article</dc:type><dc:format>application/pdf</dc:format><dc:identifier>https://doi.org/10.55981/jet.823</dc:identifier><dc:identifier>10.55981/jet.823</dc:identifier><dc:source>Jurnal Elektronika dan Telekomunikasi; Vol 26 No 1 (2026); 45-53</dc:source><dc:source>1411-8289</dc:source><dc:source>2527-9955</dc:source><dc:language>en</dc:language><dc:relation>https://jurnalet.brin.go.id/jet/article/download/823/1288</dc:relation><dc:rights>https://creativecommons.org/licenses/by-nc-sa/4.0/</dc:rights></oai_dc:dc>