Analisis Strategi Oversampling Untuk Meningkatkan Deteksi Serangan Denial Of Service (Dos) Pada Wireless Sensor Networks

Erassunu, Gilang Banyu Biru and Mahdin Rohmatillah,, S.T., M.T., M.Sc., Ph.D., and A. Abdul Razak,, S.T., M.T., M.Eng., Ph.D., (2026) Analisis Strategi Oversampling Untuk Meningkatkan Deteksi Serangan Denial Of Service (Dos) Pada Wireless Sensor Networks. Sarjana thesis, Universitas Brawijaya.

Abstract

Wireless Sensor Networks (WSN) merupakan teknologi penting yang digunakan secara luas dalam pemantauan lingkungan, otomatisasi industri, layanan kesehatan, dan infrastruktur cerdas. Namun, karakteristik WSN yang memiliki sumber daya terbatas dan media komunikasi nirkabel menjadikannya rentan terhadap serangan siber, khususnya serangan Denial of Service (DoS). Intrusion Detection System (IDS) berbasis machine learning menjadi solusi yang menjanjikan untuk mendeteksi serangan tersebut, namun menghadapi tantangan besar berupa ketidakseimbangan distribusi kelas pada dataset. Pada dataset WSN-DS, rasio ketidakseimbangan mencapai 102:1 antara trafik normal dan serangan, menyebabkan model cenderung bias terhadap kelas mayoritas dan menurunkan kemampuan deteksi kelas serangan minoritas. Penelitian ini bertujuan untuk mengembangkan dan mengevaluasi strategi oversampling guna mengatasi ketidakseimbangan kelas pada dataset WSN-DS sekaligus mempertahankan karakteristik distribusi data asli, membangun kerangka penilaian kualitas data sintetis hasil oversampling, serta menentukan kombinasi optimal antara algoritma machine learning dan teknik oversampling untuk deteksi serangan DoS pada WSN. Penelitian ini menggunakan dataset WSN-DS yang terdiri dari 374.661 sampel dengan 19 fitur yang merepresentasikan kondisi trafik jaringan WSN berbasis protokol LEACH, mencakup lima kelas yaitu normal, blackhole, grayhole, flooding, dan TDMA scheduling. Empat teknik oversampling diterapkan pada data training, yakni SMOTE-ENN, BorderlineSMOTE, ADASYN, dan Conservative-SMOTE, yang dikombinasikan dengan empat algoritma machine learning yaitu Random Forest, Gradient Boosting, Histogram Gradient Boosting, dan Extra Trees. Evaluasi dilakukan pada tiga dimensi: kualitas data sintetis melalui uji Kolmogorov-Smirnov, Jensen-Shannon Divergence, dan preservasi korelasi. Hasil evaluasi menunjukkan bahwa SMOTE-ENN dan Conservative-SMOTE menghasilkan data sintetis dengan kualitas terbaik berdasarkan ketiga metrik evaluasi. Dari sisi performa klasifikasi, kombinasi Gradient Boosting dengan Conservative-SMOTE memberikan hasil terbaik dengan akurasi 99,64%, F1-score 99,64%, dan AUC ROC 0,9974. Model ini juga berhasil meningkatkan deteksi kelas serangan minoritas, dengan F1-score kelas blackhole mencapai 99,13% dan grayhole 98,74%. Evaluasi waktu inferensi menunjukkan bahwa Gradient Boosting memiliki latensi terendah sebesar 0,132 milidetik dengan konsumsi energi 1,89 μJ per inferensi, menjadikannya model paling efisien untuk implementasi pada perangkat WSN. Penelitian ini menyimpulkan bahwa strategi oversampling yang dievaluasi secara statistik terbukti mampu meningkatkan akurasi deteksi serangan DoS tanpa menurunkan performa pada kelas normal.

English Abstract

Wireless Sensor Networks (WSN) are an important technology widely used in environmental monitoring, industrial automation, healthcare, and smart infrastructure. However, the characteristics of WSN, including limited resources and wireless communication media, make them vulnerable to cyber attacks, particularly Denial of Service (DoS) attacks. Machine learning-based Intrusion Detection Systems (IDS) have become a promising solution for detecting such attacks, yet they face a significant challenge in the form of class distribution imbalance in the dataset. In the WSN-DS dataset, the imbalance ratio reaches 102:1 between normal traffic and attack traffic, causing models to be biased toward the majority class and reducing the detection capability for minority attack classes. This research aims to develop and evaluate oversampling strategies to address class imbalance in the WSN-DS dataset while preserving the original data distribution characteristics, to establish a quality assessment framework for synthetic data generated by oversampling techniques, and to determine the optimal combination of machine learning algorithms and oversampling techniques for DoS attack detection on WSN. This research uses the WSN-DS dataset consisting of 374,661 samples with 19 features representing WSN network traffic conditions based on the LEACH protocol, encompassing five classes: normal, blackhole, grayhole, flooding, and TDMA scheduling. Four oversampling techniques were applied to the training data, namely SMOTE-ENN, Borderline-SMOTE, ADASYN, and Conservative-SMOTE, combined with four machine learning algorithms: Random Forest, Gradient Boosting, Histogram Gradient Boosting, and Extra Trees. Evaluation was conducted across three dimensions: synthetic data quality through Kolmogorov-Smirnov test, Jensen-Shannon Divergence, and correlation preservation. The evaluation results show that SMOTE-ENN and Conservative-SMOTE produced synthetic data with the best quality based on all three evaluation metrics. In terms of classification performance, the combination of Gradient Boosting with ConservativeSMOTE yielded the best results with an accuracy of 99.64%, F1-score of 99.64%, and AUC ROC of 0.9974. This model also successfully improved minority attack class detection, with the blackhole class achieving an F1-score of 99.13% and grayhole reaching 98.74%. Inference time evaluation showed that Gradient Boosting has the lowest latency of 0.132 milliseconds with an energy consumption of 1.89 μJ per inference, making it the most efficient model for implementation on WSN devices. This research concludes that statistically evaluated oversampling strategies are proven to improve DoS attack detection accuracy without degrading performance on the normal class.

Item Type: Thesis (Sarjana)
Identification Number: 052607
Uncontrolled Keywords: Wireless Sensor Networks, Denial of Service, Intrusion Detection System, Oversampling, Ketidakseimbangan Kelas, Machine Learning, SMOTE, Gradient Boosting
Subjects: 600 Technology (Applied sciences) > 621 Applied physics > 621.3 Electrical, magnetic, optical, communications, computer engineering; electronics, lighting > 621.38 Electronics, communications engineering > 621.381 Electronics
Divisions: Fakultas Teknik > Teknik Elektro
Depositing User: S Sucipto
Date Deposited: 10 Aug 2026 06:48
Last Modified: 10 Aug 2026 06:48
URI: http://repository.ub.ac.id/id/eprint/258412
[thumbnail of DALAM MASA EMBARGO] Text (DALAM MASA EMBARGO)
-Gilang Banyu Biru Erassunu.pdf
Restricted to Registered users only

Download (22MB)

Actions (login required)

View Item View Item