Penerapan PSO–RU Dalam Algoritma Naive Bayes Untuk Mengatasi Class Imbalance Data Bencana Tanah Longsor
Abstract
Abstract−Landslides are one of the most significant natural disasters in Indonesia, often causing substantial economic losses and threats to human safety. A key challenge in processing landslide data is the issue of class imbalance, where the number of disaster occurrence data is significantly smaller compared to non-disaster data. This study aims to improve landslide prediction accuracy by integrating the Naive Bayes algorithm and Particle Swarm Optimization (PSO) while employing the Random Undersampling (RU) technique to address data imbalance. The dataset used in this study includes landslide data from Samarinda City for the period 2022-2023, obtained from the Regional Disaster Management Agency (BPBD) and the Meteorology, Climatology, and Geophysics Agency (BMKG). The research process involved data preprocessing, balancing data using RU, implementing the Naive Bayes algorithm, and optimizing it with PSO. Model performance was evaluated using the 10-Fold Cross Validation technique and a confusion matrix. The results show that applying the Naive Bayes algorithm with PSO optimization without RU achieved the highest average accuracy of 89.49%, compared to Naive Bayes without optimization, which only reached 87.59%. Meanwhile, the application of RU showed varied effects, with the combination of Naive Bayes + PSO with RU achieving an average accuracy of 50%, slightly better than Naive Bayes with RU, which only reached 45%. This study demonstrates that PSO optimization can improve the performance of the Naive Bayes model in handling complex landslide datasets, although balancing techniques such as RU must be applied cautiously to avoid the loss of important information. The results of this study are expected to support disaster mitigation efforts through more accurate predictions, aiding stakeholders in decision-making, such as early evacuation planning and infrastructure development in landslide-prone areas.
Downloads
References
M. Miftakhul Huda, M. Zainul Ikhwan, dan M. Insan Rendra, "Pendekatan Analisis Spasial untuk Deteksi Kerawanan Longsor di Kecamatan Kedungadem Kabupaten Bojonegoro," Jurnal Informatika dan Sistem Informasi, vol. 16, no. 1, 2024, doi: 10.37424/informasi.v16i1.297.
S. Ujang Effendi, K. Apriani, D. Syavani, N. Khairani, dan R. Aprianti, "Pengaruh Pengetahuan dan Sikap Terhadap Kesiapsiagaan Masyarakat Dalam Menghadapi Bencana Tanah Longsor," Jurnal Sains Kesehatan, vol. 30, no. 1, 2023, DOI: https://doi.org/10.37638/jsk.30.1.16-25.
L. Xia, J. Shen, T. Zhang, G. Dang, dan T. Wang, "GIS-Based Landslide Susceptibility Modeling Using Data Mining Techniques," Frontiers in Earth Science, vol. 11, 2023, DOI: 10.3389/feart.2023.1187384.
E. Mardiani et al., "Classification of Potential Tsunami Disaster Due to Earthquakes in Indonesia Based on Machine Learning," International Journal of Software Engineering and Computer Science (IJSECS), vol. 4, no. 1, pp. 13–23, Apr. 2024, DOI: 10.35870/ijsecs.v4i1.2084.
V. Chamola, V. Hassija, S. Gupta, A. Goyal, M. Guizani, dan B. Sikdar, "Disaster and Pandemic Management Using Machine Learning: A Survey," IEEE Internet of Things Journal, Vol 8 No21, 2020, DOI: 10.1109/JIOT.2020.3044966.
A. Karima dan T. Azhima Yoga Siswa, "Prediksi Kinerja Mahasiswa Dalam Perkuliahan Berbasis Learning Management System Menggunakan Algoritma Naïve Bayes," Jurnal Ilmiah Komputer STMIK Banjarbaru, Vol 18 No. 2, Jul. 2022, DOI: 10.35889/progresif.v18i2.922.
E. I. Goma, S. Sunimbar, dan I. S. Angin, "Analisis Geologi Kejadian Longsor di Desa Wolotolo Kecamatan Detusoku Kabupaten Ende," JPG (Jurnal Pendidikan Geografi), vol. 9, no. 2, Sep. 2022, DOI: 10.20527/jpg.v9i2.13471.
I. Madani et al., "Analisis Spasial Tingkat Kerawanan Tanah Longsor di Kecamatan Wagir, Kabupaten Malang Melalui Sistem Informasi Geografis," Jurnal Geosaintek, vol. 9, no. 2, p. 80, Aug. 2023, DOI: 10.12962/j25023659.v9i2.17431.
R. Rachman, R. N. Handayani, and I. Artikel, “Klasifikasi Algoritma Naive Bayes Dalam Memprediksi Tingkat Kelancaran Pembayaran Sewa Teras UMKM,” JURNAL INFORMATIKA, vol. 8, no. 2, 2021, DOI: 10.31294/ji.v8i2.10494.
A. S. Kamaruddin, M. F. Hadrawi, Y. B. Wah, dan S. Aliman, "An Evaluation of Nature-Inspired Optimization Algorithms and Machine Learning Classifiers for Electricity Fraud Prediction," Indonesian Journal of Electrical Engineering and Computer Science, vol. 32, no. 1, pp. 468–477, Oct. 2023, DOI: 10.11591/ijeecs.v32.i1.pp468-477.
L. Qadrini, “Undersampling dan K-Fold Random Forest Untuk Klasifikasi Kelas Tidak Seimbang,” Building of Informatics, Technology and Science (BITS), vol. 4, no. 4, Mar. 2023, DOI: 10.47065/bits.v4i4.3141.
E. Nugroho et al., "Manajemen Dan Pengurangan Risiko Bencana Melalui Pengembangan Desa Tangguh Bencana (DESTANA)," Bookchapter Kesehatan Masyarakat Universitas Negeri Semarang, no. 3, pp. 92–113, Feb. 2023, DOI: 10.15294/km.v1i3.98.
N. N. Kamil dan D. Syam’ani, "Pemertaan Bencana Tanah Longsor di DTA Barabai Menggunakan Metode Ekstraksi NDBI, SAVI, dan CBI," Jurnal Sylva Scienteae Vol. 07 No. 2, Apr. 2024, DOI:10.20527/jss.v7i2.12316.
Y. Religia, G. T. Pranoto, dan I. M. Suwancita, "Analysis of the Use of Particle Swarm Optimization on Naïve Bayes for Classification of Credit Bank Applications," JISA (Jurnal Informatika dan Sains), Vol. 07 No. 2 , Des. 2021, DOI: 10.31326/jisa.v4i2.946 .
Wilandini, D. and Purwantoro, P, “Penerapan algoritma naïve bayes dalam mengklasifikasikan media sosial untuk mengamati trend kuliner,” J. teknologi terpadu, vol. 8, no. 1, hlm. 31–39, Jul 2022. DOI: 10.54914/jtt.v8i1.535.
Sopian Aji, “Analisis Sentiment Masyarakat Menggunakan Penggabungan Algoritma Naive Bayes Dan Particle Swarm Optimization,” IJCIT (Indonesian Journal on Computer and Information Technology), Vol 7 No. 2, 2022. DOI: 10.31294/ijcit.v7i2.14086.
D. Susanti and T. Wahyuni, “Analisi Potensi Bencana Alam Tanah Longsor Kabupaten Majalengka Menggunakan Algoritma Naive Bayes Clasiffier,” INFOTECH journal, vol. 9, no. 2, pp. 299–306, Jul. 2023, DOI: 10.31949/infotech.v9i2.5645.
J. Dixon and M. Rahman, “Statistical Analysis of Imbalanced Classification with Training Size Variation and Subsampling on Datasets of Research Papers in Biomedical Literature,” Mach Learn Knowl Extr, vol. 5, no. 4, pp. 1953–1978, Dec. 2023, DOI: 10.3390/make5040095.
H. Setiani, A. Sunyoto, A. Nasiri, and U. Amikom, “Metode Naïve Bayes dan Particle Swarm Optimization untuk Klasifikasi Penyakit Jantung”, EXPLORE, Vol 12, No. 2, Jul 2022, DIO: 10.35200/explore.v12i2.566.
J. Prasetya, “Penerapan Klasifikasi Naive Bayes Dengan Algoritma Random Oversampling Dan Random Udersampling Pada Data Tidak Seimbang Cervical Cancer Risk Factors ”, Leibniz Jurnal Matematika, vol. 2, no. 2, 2022, DOI: 10.59632/leibniz.v2i2.173.
H. B. Jatmiko, N. T. Kurniadi, and D. Maulana, “Optimasi Naïve Bayes Dengan Particle Swarm Optimization Untuk Analisis Sentimen Formula E-Jakarta Optimization of Naïve Bayes With Particle Swarm Optimization for Sentimen Analysis of Jakarta E-Prix,” Journal Automation Computer Information System, Vol 2 No. 1, Jun 2022, DOI:10.47134/jacis.v2i1.35.
Y. Liu, J. Huang, R. Xiao, S. Ma, and P. Zhou, “Research on a Regional Landslide Early-Warning Model Based on Machine Learning—A Case Study of Fujian Province, China,” Forests, vol. 13, no. 12, Dec. 2022, DOI:10.3390/f13122182.
R. Syaputra, T. A. Y. Siswa, and W. J. Pranoto, “Model Optimasi SVM Dengan PSO-GA dan SMOTE Dalam Menangani High Dimensional dan Imbalance Data Banjir,” Teknika, vol. 13, no. 2, pp. 273–282, Jul. 2024, DOI: 10.34148/teknika.v13i2.876.
D. Saputra, W. Irmayani, D. Purwaningtias, and J. Sidauruk, “A Comparative Analysis of C4.5 Classification Algorithm, Naïve Bayes and Support Vector Machine Based on Particle Swarm Optimization (PSO) for Heart Disease Prediction,” International Journal of Advances in Data and Information Systems, vol. 2, no. 2, Nov. 2021, DOI: 10.25008/ijadis.v2i2.1221.
Nurfaiz Fathurrahman Yasien, Felia Yustika, Intan Permatasari, and Muthiah Sari, “Aplikasi Geospasial Untuk Analisis Potensi Bahaya Longsor Menggunakan Metode Weighted Overlay,” Jurnal Geosains dan Remote Sensing, vol. 2, no. 1, pp. 33–40, May 2021, DOI: 10.23960/jgrs.2021.v2i1.47.
M. Khairy, T. M. Mahmoud, and T. Abd El-Hafeez, “The Effect of Rebalancing Techniques on the Classication Performance in Cyberbullying Datasets,” Research Square, Vol 36 No Jun 2022, DOI: 10.21203/rs.3.rs-1730456/v1.
Bila bermanfaat silahkan share artikel ini
Berikan Komentar Anda terhadap artikel Penerapan PSO–RU Dalam Algoritma Naive Bayes Untuk Mengatasi Class Imbalance Data Bencana Tanah Longsor
Pages: 2635-2646
Copyright (c) 2025 Zakaria Ihza Akbar, Taghfirul Azhima Yoga Siswa

This work is licensed under a Creative Commons Attribution 4.0 International License.
Authors who publish with this journal agree to the following terms:
- Authors retain copyright and grant the journal right of first publication with the work simultaneously licensed under Creative Commons Attribution 4.0 International License that allows others to share the work with an acknowledgment of the work's authorship and initial publication in this journal.
- Authors are able to enter into separate, additional contractual arrangements for the non-exclusive distribution of the journal's published version of the work (e.g., post it to an institutional repository or publish it in a book), with an acknowledgment of its initial publication in this journal.
- Authors are permitted and encouraged to post their work online (e.g., in institutional repositories or on their website) prior to and during the submission process, as it can lead to productive exchanges, as well as earlier and greater citation of published work (Refer to The Effect of Open Access).





















