PREDIKSI KATEGORI CURAH HUJAN BERBASIS MACHINE LEARNING UNTUK MENDUKUNG KETAHANAN PANGAN

Authors

  • I Dewa Gede Loka Maheswara Sekolah Tinggi Meteorologi Klimatologi dan Geofisika
  • Kanaya Kaizzi Larasati
  • Muhammad Nur Rizqi
  • Muhammad Fany Nurwibowo
  • Yosafat Donni Haryanto

DOI:

https://doi.org/10.33480/inti.v21i1.8601

Keywords:

Food security, K-Nearest Neighbors, Rainfall Category, Random Forest, Support Vector Machine

Abstract

Rainfall variability significantly influences food security in Central Tapanuli Regency, North Sumatra, a region where agriculture is strongly reliant on climatic patterns. This research evaluates and compares the classification performance of Support Vector Machine (SVM), K-Nearest Neighbors (K-NN), and Random Forest (RF) for categorizing daily rainfall as supplementary information to strengthen food security. A total of 3,644 daily meteorological records obtained from FL Tobing Meteorological Station spanning 2015 to 2024 were utilized, encompassing seven predictor variables: minimum temperature, maximum temperature, average temperature, mean relative humidity, sunshine duration, peak wind speed, and average wind speed. To mitigate class imbalance, the original six rainfall categories were consolidated into four classes by merging the minority groups. The data were partitioned into training and testing subsets at an 80:20 ratio using stratified sampling, after which the Synthetic Minority Over-sampling Technique (SMOTE) was employed on the training set. Hyperparameter tuning was conducted through Grid Search combined with 5-fold cross-validation, and classification performance was assessed using accuracy, precision, recall, F1-score, and paired t-test analyses. The experimental results indicated that RF delivered superior performance, attaining an accuracy of 51.44% and a weighted F1-score of 0.5036, significantly outperforming both SVM and K-NN (p-value < 0.05). Feature importance analysis revealed that sunshine duration, average temperature, and maximum temperature were the most influential predictors. These outcomes demonstrate that RF holds considerable promise for advancing machine learning-driven rainfall category prediction systems capable of delivering early-stage information for agricultural planting schedules and preparedness against intense rainfall events in Central Tapanuli Regency

Downloads

Download data is not yet available.

References

Ashari, A. M. (2023). Dampak Perubahan Iklim terhadap Ketahanan Pangan dan Adaptasinya oleh Masyarakat Pesisir. Empiricism Journal, 4(2), 426–431. https://doi.org/10.36312/ej.v4i2.1611

Aziza, L. N., Astuti, R. Y., Maulana, B. A., & Hidayati, N. (2024). Penerapan Algoritma K-Nearest Neighbor untuk Klasifikasi Ketahanan Pangan di Provinsi Jawa Tengah. MALCOM Indonesian Journal of Machine Learning and Computer Science, 4(2), 404–412. https://doi.org/10.57152/malcom.v4i2.1201

Bouke, M. A., & Abdullah, A. (2023). An empirical study of pattern leakage impact during data preprocessing on machine learning-based intrusion detection models reliability. Expert Systems with Applications, 230, 120715. https://doi.org/10.1016/j.eswa.2023.120715

Buani, C. P., Abdussomad, A., Apriliah, W., & Saputra, R. A. (2023). Implementasi Algoritma Random Forest untuk Menentukan Penerima Bantuan Raskin. Jurnal Teknologi Informasi Dan Ilmu Komputer, 10(2), 421–428. https://doi.org/10.25126/jtiik.20231026225

Egbunu, C. O., Ogedengbe, M. T., Yange, T. S., Rufai, M. A., & Muhammed, H. I. (2021). Towards Food Security: the Prediction of Climatic Factors in Nigeria using Random Forest Approach. Journal of Computer Science and Information Technology, 7(4), 70–81. https://doi.org/10.35134/jcsitech.v7i4.15

Erlin, E., Desnelita, Y., Nasution, N., Suryati, L., & Zoromi, F. (2022). Dampak SMOTE terhadap Kinerja Random Forest Classifier berdasarkan Data Tidak Seimbang. MATRIK: Jurnal Manajemen, Teknik Informatika Dan Rekayasa Komputer, 21(3). https://doi.org/10.30812/matrik.v21i3.1726

Fauzan, A., & Ahmad, D. (2023). Analisis Hasil Prediksi Magnitudo Gempa di Wilayah Kota Padang Menggunakan Teknik Random Forest. Jurnal Lebesgue, 4(3), 1569–1576. https://doi.org/10.46306/lb.v4i3.450

Geron, A. (2022). Hands-On Machine Learning with Scikit-Learn, Keras, and TensorFlow. O’Reilly Media.

Hapsari, I., & Wisesa, S. P. (2025). Evaluasi Model Prediksi Curah Hujan Berbasis Machine Learning di Kota Bandung. Jurnal Nasional Teknologi Dan Sistem Informasi, 11(2), 136–143. https://doi.org/10.25077/teknosi.v11i2.2025.136-143

Harvian, K. A., & Yuhan, R. J. (2021). Kajian Perubahan Iklim Terhadap Ketahanan Pangan. Seminar Nasional Official Statistics, 2020(1), 1052–1061. https://doi.org/10.34123/semnasoffstat.v2020i1.593

Hasibuan, F. H. (2024). Klasifikasi Data Material Pending Pada Perusahaan dengan Metode SVM. Innovative Journal of Social Science Research, 4, 5080–5090.

Indaryono, N. A. P., Saedudin, R. R., & Hamami, F. (2024). Comparison Analysis of Random Forest and Naive Bayes Algorithms for Rainfall Classification Based on Climate in Indonesia. SITEKNIK: Information Systems, Engineering and Applied Technology, 1(2), 102–109.

Isnaeni, A. Y., & Prasetyo, S. Y. J. (2022). Klasifikasi Wilayah Potensi Risiko Kerusakan Lahan Akibat Bencana Tsunami Menggunakan Machine Learning. Jurnal Teknik Informatika Dan Sistem Informasi, 8(1), 33–42. https://doi.org/10.28932/jutisi.v8i1.4056

Maheswara, I. D. G. L., & Al’aziz, A. H. (2025). Perbandingan Model Machine Learning pada Klasifikasi Curah Hujan di Bogor. INTI Nusa Mandiri, 19(2), 202–210. https://doi.org/10.33480/inti.v19i2.6296

Maheswara, I. D. G. L., Ramadhan, A. Z., Maldina, R. A., Nurwibowo, M. F., & Norman, Y. (2026). Perbandingan Performa Multi-Algoritma Machine Learning dengan Dua Strategi Validasi pada Klasifikasi Curah Hujan. Jurnal Sistem Komputer Dan Informatika (JSON).

Mdegela, L., Municio, E., Bock, Y. D., Luhanga, E., & Leo, J. (2023). Extreme Rainfall Event Classification Using Machine Learning for Kikuletwa River Floods. Water, 15, 1–14. https://doi.org/10.3390/w15061021

Nurhidayat, A., Difa, A. K. T., Nasrullah, F., Anwar, F. H., & Radianto, D. O. (2024). Pengaruh Perubahan Iklim Terhadap Produktivitas Pertanian Padi di Daerah Tropis. Sains Student Research, 2(2), 111–117.

Nurmasani, A., & Pristyanto, Y. (2021). Algoritme Stacking untuk Klasifikasi Penyakit Jantung pada Dataset Imbalanced Class. Pseudocode, 8(1), 21–26. https://doi.org/10.33369/pseudocode.8.1.21-26

Pinheiro, J. M. H., de Oliveira, S. V. B., Segreto Silva, T. H., Saraiva, P. A. R., de Souza, E. F., Godoy, R. V, Ambrosio, L. A., & Becker, M. (2025). The Impact of Feature Scaling in Machine Learning: Effects on Regression and Classification Tasks. IEEE Access, 13, 199903–199931. https://doi.org/10.1109/ACCESS.2025.3635541

Pratama, A., Wihandika, R. C., & Dewi, C. (2022). Optimasi Klasifikasi Curah Hujan Menggunakan Support Vector Machine dan Recursive Feature Elimination. Jurnal Pengembangan Teknologi Informasi Dan Ilmu Komputer, 6(8), 3856–3863.

Putri, N. H., Dananjaya, R. H., & Surjandari, N. S. (2024). Aplikasi Machine Learning Method pada Pemetaan Kerawanan Tanah Longsor di Kabupaten Karanganyar. Media Komunikasi Teknik Sipil, 6(1), 23–34.

Rusmayadi, G., Salawati, U., & Suparwata, D. O. (2023). Analisis Sistem Agrometeorologi dalam Meningkatkan Ketahanan Pangan saat Kemarau. Jurnal Geosains West Sci, 1(03), 143–150. https://doi.org/10.58812/jgws.v1i03.720

Saputra, I., & Kristiyanti, D. A. (2021). Application of Data Mining for Rainfall Prediction Classification in Australia with Decision tree Algorithm and C5.0 Algorithm. Seminar Nasional Informatika (SEMNASIF).

Sari, D. P., Risman, Maulana, F., Efrizoni, L., & Rahmaddeni. (2025). Prediction Model for the Impact of Climate Change on Food Security Using the Support Vector Machine and K-Nearest Neighbors Algorithms. MALCOM: Indonesian Journal of Machine Learning and Computer Science, 5(3), 851–861. https://doi.org/10.57152/malcom.v5i3.1975

Sudrajat, W., & Cholid, I. (2023). K-Nearest Neighbor (K-NN) untuk Penanganan Missing Value pada Data UMKM. Jurnal Rekayasa Sistem Informasi Dan Teknologi, 1(2), 54–63. https://doi.org/10.59407/jrsit.v1i2.77

Syahreza, A., Ningrum, N. K., & Syahrazy, M. A. (2024). Perbandingan Kinerja Model Prediksi Cuaca: Random Forest, Support Vector Regression, dan XGBoost. Edumatic: Jurnal Pendidikan Informatika, 8(2), 526–534. https://doi.org/10.29408/edumatic.v8i2.27640

Downloads

Published

2026-08-05

How to Cite

PREDIKSI KATEGORI CURAH HUJAN BERBASIS MACHINE LEARNING UNTUK MENDUKUNG KETAHANAN PANGAN. (2026). INTI Nusa Mandiri, 21(1), 58-66. https://doi.org/10.33480/inti.v21i1.8601

Most read articles by the same author(s)