Rainfall Classification in Palembang Using Machine Learning Methods
Isi Artikel Utama
Abstrak
Rainfall is an important weather parameter that affects various sectors, including agriculture, transportation, and disaster mitigation. As a tropical region, Palembang experiences varying rainfall patterns, making effective rainfall classification essential. However, previous studies have generally focused on specific machine learning methods, used a limited number of weather variables, or classified rainfall into only two categories. These differences make it difficult to understand how various machine learning methods perform when applied to multiclass rainfall classification using more complete meteorological data. Therefore, this study aims to classify rainfall in Palembang using machine learning methods, namely Random Forest, Decision Tree, Naïve Bayes, K-Nearest Neighbor (KNN), and Support Vector Machine (SVM). The dataset used in this study consists of meteorological data obtained from the Sultan Mahmud Badaruddin II Meteorological Station, Palembang, with an initial total of 365 records. The research stages included data preprocessing, rainfall labeling into three categories (No Rain, Rain, and Extreme Rain), data splitting into training and testing sets, and classification using five machine learning algorithms. The results indicate that the Support Vector Machine (SVM) achieved the best performance, with an accuracy of 72,72%, precision of 74.58%, recall of 48.96%, and F1-score of 72.61%. Based on these findings, SVM is considered more effective than the other methods for classifying rainfall using meteorological data in Palembang.
Rincian Artikel
Terbitan
Bagian

Artikel ini berlisensi Creative Commons Attribution 4.0 International License.
Cara Mengutip
Referensi
[1] Z. Sembiring, D. Silvani, W. M Habiby, I. A Lizahra, and U. Azmi, “Faktor Penyebab Terjadinya Banjir,” Didaktik: Jurnal Ilmiah PGSD STKIP Subang, vol. 11, no. 02, pp. 366–371, 2025, doi: 10.36989/didaktik.v11i02.7352.
[2] D. P. Diyani, E. R. Sriwijayanti, and R. Gustrianysah, “Prediksi Curah Hujan Berbasis Regreasi PolinomialMenggunakan Data Historis Cuaca,” Komputa : Jurnal Ilmiah Komputer dan Informatika, vol. 14, no. 2, pp. 130–137, 2025, doi: 10.34010/komputa.v14i2.16331. DOI: https://doi.org/10.34010/komputa.v14i2.16331
[3] C. Janiesch, P. Zschech, and K. Heinrich, “Machine learning and deep learning,” Electronic Markets, vol. 31, no. 3, pp. 685–695, 2021, doi: 10.1007/s12525-021-00475-2. DOI: https://doi.org/10.1007/s12525-021-00475-2
[4] A. L. Buczak and E. Guven, “A Survey of Data Mining and Machine Learning Methods for Cyber Security Intrusion Detection,” IEEE Communications Surveys & Tutorials, vol. 18, no. 2, pp. 1153–1176, 2016, doi: 10.1109/COMST.2015.2494502. DOI: https://doi.org/10.1109/COMST.2015.2494502
[5] A. P. D. Silva, “Optimization approaches to Supervised Classification,” European Journal of Operational Research, vol. 261, no. 2, pp. 772–788, Sep. 2017, doi: 10.1016/j.ejor.2017.02.020. DOI: https://doi.org/10.1016/j.ejor.2017.02.020
[6] A. Ridwan, “Penerapan Algoritma Naïve Bayes Untuk Klasifikasi Penyakit Diabetes Mellitus,” Jurnal SISKOM-KB (Sistem Komputer dan Kecerdasan Buatan), vol. 4, no. 1, pp. 15–21, 2020, doi: 10.47970/siskom-kb.v4i1.169. DOI: https://doi.org/10.47970/siskom-kb.v4i1.169
[7] U. N. Dulhare, “Prediction system for heart disease using Naive Bayes and particle swarm optimization,” Biomedical Research (India), vol. 29, no. 12, pp. 2646–2649, 2018, doi: 10.4066/biomedicalresearch.29-18-620. DOI: https://doi.org/10.4066/biomedicalresearch.29-18-620
[8] M. W. Martadiansyah, A. Ghufron, R. A. Hidayah, D. Salzabila, and L. Amanda, “Perbandingan Algoritma C4.5 dengan Naive Bayes Untuk Klasifikasi Curah Hujan,” Jurnal Komputer Antartika, vol. 3, no. 1, pp. 8–17, 2025, doi: 10.70052/jka.v3i1.648. DOI: https://doi.org/10.70052/jka.v3i1.648
[9] A. R. I. Pratama, S. A. Latipah, and B. N. Sari, “Optimasi Klasifikasi Curah Hujan Menggunakan Support Vector Machine (Svm) Dan Recursive Feature Elimination (Rfe),” JIPI (Jurnal Ilmiah Penelitian dan Pembelajaran Informatika), vol. 7, no. 2, pp. 314–324, 2022, doi: 10.29100/jipi.v7i2.2675. DOI: https://doi.org/10.29100/jipi.v7i2.2675
[10] M. S. Sawah, “A novel feature selection-driven framework for sustainable and efficient rainfall classification using machine learning models,” Unconventional Resources, vol. 9, p. 100286, 2026, doi: 10.1016/J.UNCRES.2025.100286. DOI: https://doi.org/10.1016/j.uncres.2025.100286
[11] B. K. Seela, J. Janapati, P. L. Lin, E. Joseph, S. Vadloori, and C. C. Tu, “Improving the rainfall rate and kinetic energy estimation in Taiwan using machine learning approaches,” Atmospheric Research, vol. 342, p. 109129, 2026, doi: 10.1016/J.ATMOSRES.2026.109129. DOI: https://doi.org/10.1016/j.atmosres.2026.109129
[12] F. M. Chiu, L. J. Y. Liu, U. Hasanah, and C. M. Liu, “Applying machine learning for precipitation forecasting in uneven rainfall regions of Taiwan,” Journal of Hydrology: Regional Studies, vol. 64, p. 103243, 2026, doi: 10.1016/J.EJRH.2026.103243. DOI: https://doi.org/10.1016/j.ejrh.2026.103243
[13] N. A. Prakoso Indaryono, “Analisa Perbandingan Algoritma Random Forest Dan Naïve Bayes Untuk Klasifikasi Curah Hujan Berdasarkan Iklim Di Indonesia,” JIPI (Jurnal Ilmiah Penelitian dan Pembelajaran Informatika), vol. 9, no. 1, pp. 158–167, 2024, doi: 10.29100/jipi.v9i1.4421. DOI: https://doi.org/10.29100/jipi.v9i1.4421
[14] D. T. Utari, G. R. P. Palage, F. Fadhlirobby, and A. B. Nuswantoro, “Comparative Analysis Of Machine Learning Models For Rainfall Classification in Yogyakarta,” BAREKENG: Jurnal Ilmu Matematika dan Terapan, vol. 19, no. 4, pp. 2765–2776, 2025, doi: 10.30598/barekengvol19iss4pp2765-2776. DOI: https://doi.org/10.30598/barekengvol19iss4pp2765-2776
[15] C. G. L. Pringandana and K. Kusnawi, “A Comparative Analysis of Hyperparameter-Tuned XGBoost and LightGBM for Multiclass Rainfall Classification in Jakarta,” Jurnal Teknik Informatika (Jutif), vol. 6, no. 4, pp. 2467–2483, 2025, doi: 10.52436/1.jutif.2025.6.4.4965. DOI: https://doi.org/10.52436/1.jutif.2025.6.4.4965
[16] E. Alshdaifat, D. Alshdaifat, A. Alsarhan, F. Hussein, and S. M. F. S. El-Salhi, “The Effect of Preprocessing Techniques, Applied to Numeric Features, on Classification Algorithms’ Performance,” Data, vol. 6, no. 2, pp. 11–33, 2021, doi: 10.3390/data6020011. DOI: https://doi.org/10.3390/data6020011
[17] N. N. A. Aryanti and O. Suria, “Analisis Sentimen Terhadap Pemutusan Hubungan Kerja Di Indonesia : Komparasi Indobert Dengan Svm, Random Forest, Dan Decision Tree Dengan Optimasi Tf - Idf,” Rabit : Jurnal Teknologi dan Sistem Informasi Univrab, vol. 10, no. 2, pp. 1158–1176, 2025, doi: 10.36341/rabit.v10i2.6364. DOI: https://doi.org/10.36341/rabit.v10i2.6364
[18] P. P. Allorerung, A. Erna, M. Bagussahrir, and S. Alam, “Analisis Performa Normalisasi Data untuk Klasifikasi K-Nearest Neighbor pada Dataset Penyakit,” JISKA (Jurnal Informatika Sunan Kalijaga), vol. 9, no. 3, pp. 178–191, 2024, doi: 10.14421/jiska.2024.9.3.178-191. DOI: https://doi.org/10.14421/jiska.2024.9.3.178-191
[19] L. Breiman, “Random Forests,” Machine Learning, vol. 45, no. 1, pp. 5–32, 2001, doi: 10.1023/A:1010933404324. DOI: https://doi.org/10.1023/A:1010933404324
[20] J. S. Rhodes, A. Cutler, and K. R. Moon, “Geometry- and Accuracy-Preserving Random Forest Proximities,” IEEE Transactions on Pattern Analysis and Machine Intelligence, vol. 45, no. 9, pp. 10947–10959, 2023, doi: 10.1109/TPAMI.2023.3263774. DOI: https://doi.org/10.1109/TPAMI.2023.3263774
[21] I. Sutoyo, “Implementasi Algoritma Decision Tree untuk Klasifikasi Serangan Jantung,” Jurnal Sistem Informasi dan Ilmu Komputer, vol. 1, no. 4, pp. 207–212, 2023, doi: 10.59581/jusiik-widyakarya.v1i4.1895. DOI: https://doi.org/10.59581/jusiik-widyakarya.v1i4.1895
[22] A. Afdhaluzzikri, H. Mawengkang, and O. S. Sitompul, “Perfomance analysis of Naive Bayes method with data weighting,” SinkrOn, vol. 7, no. 3, pp. 817–821, 2022, doi: 10.33395/sinkron.v7i3.11516. DOI: https://doi.org/10.33395/sinkron.v7i3.11516
[23] S. Khalid, T. Khalil, and S. Nasreen, “A survey of feature selection and feature extraction techniques in machine learning,” in 2014 Science and Information Conference, 2014, pp. 372–378, doi: 10.1109/SAI.2014.6918213. DOI: https://doi.org/10.1109/SAI.2014.6918213
[24] C. Cortes and V. Vapnik, “Support-vector networks,” Machine Learning, vol. 20, no. 3, pp. 273–297, 1995, doi: 10.1007/BF00994018. DOI: https://doi.org/10.1023/A:1022627411411
[25] Y. Guo, X. Yin, X. Zhao, D. Yang, and Y. Bai, “Hyperspectral image classification with SVM and guided filter,” EURASIP Journal on Wireless Communications and Networking, vol. 2019, no. 1, pp. 56–65, 2019, doi: 10.1186/s13638-019-1346-z. DOI: https://doi.org/10.1186/s13638-019-1346-z
[26] G. B. Firmanesha, S. S. Prasetyowati, and Y. Sibaroni, “Detecting Hoax News Regarding the Covid-19 Vaccine using Levenshtein Distance,” Jurnal Bumigora Information Technology (BITe), vol. 4, no. 2, pp. 133–142, 2023, doi: 10.30812/bite.v4i2.2023. DOI: https://doi.org/10.30812/bite.v4i2.2023
[27] L. M. D. Guswandi, M. Yanto, M. Hafidz, “Analisis Hybrid Decision Support System dalam Penentuan Status Kelulusan Mahasiswa,” Jurnal RESTI (Rekayasa Sistem dan Teknologi Informasi), vol. 5, no. 6, pp. 1127–1136, 2021, doi: 10.29207/resti.v5i6.3587. DOI: https://doi.org/10.29207/resti.v5i6.3587
[28] P. Subarkah, E. Pambudi, and S. O. N. Hidayah, “Perbandingan Metode Klasifikasi Data Mining untuk Nasabah Bank Telemarketing,” Matrik : Jurnal Manajemen, Teknik Informatika dan Rekayasa Komputer, vol. 20, no. 1, pp. 139–148, 2020, doi: 10.30812/matrik.v20i1.826. DOI: https://doi.org/10.30812/matrik.v20i1.826
[29] S. D. Prasetyo, S. S. Hilabi, and F. Nurapriani, “Analisis Sentimen Relokasi Ibukota Nusantara Menggunakan Algoritma Naïve Bayes dan KNN,” Jurnal KomtekInfo, vol. 10, pp. 1–7, 2023, doi: 10.35134/komtekinfo.v10i1.330. DOI: https://doi.org/10.35134/komtekinfo.v10i1.330
[30] A. F Nugraha, R. F. A. Aziza, and Y. Pristyanto, “Penerapan metode Stacking dan Random Forest untuk Meningkatkan Kinerja Klasifikasi pada Proses Deteksi Web Phishing,” Jurnal Infomedia, vol. 7, no. 1, pp. 39–44, 2022, doi: 10.30811/jim.v7i1.2959. DOI: https://doi.org/10.30811/jim.v7i1.2959