Daily Rainfall Prediction and Intensity Classification in Sleman Regency Using Random Forest Regressor

Authors

  • Halim Bagus Al Hakim Information Technology, Universitas Muhammadiyah Yogyakarta, Indonesia
  • Nasy'an Taufiq Al Ghifari Information Technology, Universitas Muhammadiyah Yogyakarta, Indonesia

DOI:

https://doi.org/10.52436/1.jutif.2026.7.5.5730

Keywords:

Meteorological Data, Rain Intensity Classification, Rainfall Prediction, Random Forest Regressor, Sleman Regency

Abstract

Daily rainfall forecasting is essential for water resource management, agricultural planning, and hydrometeorological disaster mitigation, especially in tropical regions such as Indonesia that experience high climate variability. This study aims to develop a daily rainfall prediction model for Sleman Regency using a Random Forest Regressor (RFR) involving 11 input features, consisting of eight surface meteorological variables and three lag variables based on daily data from 2015 to 2025. This model is designed to capture non-linear relationships and temporal dependencies on rainfall patterns. In the test data, the model achieved a Mean Absolute Error (MAE) of 7.82 mm, a Root Mean Squared Error (RMSE) of 15.34 mm, and an R² of 0.396, which explains about 39.6% of the variation in daily rainfall. To improve the interpretation of the prediction results, the output of this model is classified into the category of rain intensity in accordance with BMKG standards. The results showed that the Random Forest Regressor was effective for modeling general rainfall trends and temporal patterns, but difficulties in predicting extreme rainfall events, mainly due to class imbalances and ensemble averages. This study provides a practical framework for combining non-linear regression with operational rainfall intensity classification using long-term daily data, advancing computational approaches for environmental intelligence in Informatics.

Downloads

Download data is not yet available.

References

C. Wasko, A. Sharma, and A. Pui, “Linking temperature to catastrophe damages from hydrologic and meteorological extremes,” J. Hydrol. (Amst)., vol. 602, p. 126731, Nov. 2021, doi: 10.1016/j.jhydrol.2021.126731.

P. P. Simanjuntak and A. F. Rozzy, “Perbandingan Prediksi Curah Hujan Kumulatif Bulanan Dengan Variasi Waktu Jeda (Time Lag),” ORBITA: Jurnal Pendidikan dan Ilmu Fisika, vol. 9, no. 1, p. 94, May 2023, doi: 10.31764/orbita.v9i1.13950.

A. Kurniadi, E. Weller, J. Salmond, and E. Aldrian, “Future projections of extreme rainfall events in Indonesia,” International Journal of Climatology, vol. 44, no. 1, pp. 160–182, Jan. 2024, doi: 10.1002/joc.8321.

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, Sep. 2025, doi: 10.30598/barekengvol19iss4pp2765-2776.

M. Maulita and N. Nurdin, “Pendekatan Data Mining Untuk Analisa Curah Hujan Menggunakan Metode Regresi Linear Berganda (Studi Kasus: Kabupaten Aceh Utara),” IDEALIS : InDonEsiA journaL Information System, vol. 6, no. 2, pp. 99–106, Jul. 2023, doi: 10.36080/idealis.v6i2.3034.

Y. A. Hamaamin, “Evaluation of Data Mining and Artificial Intelligence Methods to Predict Daily Precipitation,” Journal of Engineering, vol. 31, no. 5, pp. 99–112, May 2025, doi: 10.31026/j.eng.2025.05.06.

M. Sulistiyono, B. Satria, A. Sidauruk, and R. Wardhana, “Rainfall Prediction Using Multiple Linear Regression Algorithm,” JITK (Jurnal Ilmu Pengetahuan dan Teknologi Komputer), vol. 9, no. 1, pp. 17–22, Aug. 2023, doi: 10.33480/jitk.v9i1.4203.

I. L. Rahmah, A. Nugroho, and R. Y. M. T. Siregar, “Prediksi Curah Hujan Menggunakan Random Forest dan VAR di Kediri Raya,” Jurnal Teknologi Dan Sistem Informasi Bisnis, vol. 7, no. 4, pp. 539–545, Oct. 2025, doi: 10.47233/jteksis.v7i4.2141.

P.-S. Yu, T.-C. Yang, S.-Y. Chen, C.-M. Kuo, and H.-W. Tseng, “Comparison of random forests and support vector machine for real-time radar-derived rainfall forecasting,” J. Hydrol. (Amst)., vol. 552, pp. 92–104, Sep. 2017, doi: 10.1016/j.jhydrol.2017.06.020.

I. Hapsari and S. Pandya Wisesa, “Evaluasi Model Prediksi Curah Hujan Berbasis Machine Learning di Kota Bandung,” Jurnal Nasional Teknologi dan Sistem Informasi, vol. 11, no. 2, pp. 136–143, Sep. 2025, doi: 10.25077/TEKNOSI.v11i2.2025.136-143.

A. F. D. Putra, M. N. Azmi, H. Wijayanto, S. Utama, and I. G. P. W. Wedashwara Wirawan, “Optimizing Rain Prediction Model Using Random Forest and Grid Search Cross-Validation for Agriculture Sector,” MATRIK : Jurnal Manajemen, Teknik Informatika dan Rekayasa Komputer, vol. 23, no. 3, pp. 519–530, Jul. 2024, doi: 10.30812/matrik.v23i3.3891.

M. A. J. Rose and N. R. Chithra, “Tree-based ensemble model prediction for hydrological drought in a tropical river basin of India,” International Journal of Environmental Science and Technology, vol. 20, no. 5, pp. 4973–4990, May 2023, doi: 10.1007/s13762-022-04208-6.

R. D. Panuntun and A. Hermawan, “Application of Fuzzy Tsukamoto Method to Rainfall Prediction in Sleman Regency,” Jurnal Riset Informatika, vol. 5, no. 4, pp. 507–514, Sep. 2023, doi: 10.34288/jri.v5i4.76.

W. Suwondo, “Utilization of Air Humidity and Surface Air Temperature Data in Regression Equations for Rainfall Forecast Simulation in the Gamping Area, Sleman, Yogyakarta (Yogyakarta Class 1 Geophysical Station),” Sunan Kalijaga Journal of Physics, vol. 6, no. 1, pp. 43–51, Apr. 2025, doi: 10.14421/physics.v6i1.5136.

M. Alviriza Ramadhan, F. Tri Anggraeny, and C. Aji Putra, “Klasifikasi Curah Hujan Harian Menggunakan Metode K-Nearest Neighbor,” JATI (Jurnal Mahasiswa Teknik Informatika), vol. 8, no. 3, pp. 3863–3869, Jun. 2024, doi: 10.36040/jati.v8i3.9817.

S. B. Lesmana, O. N. Sari, Nursetiawan, P. Harsanto, and D. S. Krisnayanti, “Analyzing the flood discharge in the Opak watershed caused by changes in rainfall patterns,” in American Institute of Physics Conference Series, AIP, 2025, p. 090003. doi: 10.1063/5.0280277.

B. K. Cahyono et al., “Leveraging machine learning and open accessed remote sensing data for precise rainfall forecasting,” Communications in Science and Technology, vol. 10, no. 1, pp. 135–147, Jul. 2025, doi: 10.21924/cst.10.1.2025.1638.

S. F. Mahendra, Y. Setyawan, and M. T. Jatipaningrum, “Perbandingan Metode Random Forest dan Support Vector Machine pada Klasifikasi Curah Hujan di Provinsi Daerah Istimewa Yogyakarta,” Jurnal Statistika Industri dan Komputasi, vol. 9, no. 1, pp. 42–52, Jan. 2024, doi: 10.34151/statistika.v9i1.4840.

M. Taqiyuddin and T. Bayu Sasongko, “Prediksi Cuaca Kabupaten Sleman Menggunakan Algoritma Random Forest,” Jurnal Media Informatika Budidarma, vol. 8, no. 3, p. 1683, Jul. 2024, doi: 10.30865/mib.v8i3.7897.

W. Mukherjee, A. Ray, B. Datta, and P. Pal, “Prediction of Rainfall based on Statistical and Computational Approach,” American Journal of Science & Engineering, vol. 3, no. 2, pp. 25–30, Sep. 2022, doi: 10.15864/ajse.3204.

C. M. Liyew and H. A. Melese, “Machine Learning Techniques to Predict Daily Rainfall Amount,” Sep. 2021, doi: 10.21203/rs.3.rs-801241/v1.

R. Wicaksono, J. Dedy Irawan, and S. Adi Wibowo, “Sistem Peramalan Curah Hujan Menggunakan Metode Regresi Linier Berganda Berbasis IoT,” JATI (Jurnal Mahasiswa Teknik Informatika), vol. 7, no. 4, pp. 2103–2112, Dec. 2023, doi: 10.36040/jati.v7i4.7350.

H. Firdausi et al., “Machine Learning to Predict Climate Change in Coastal Areas of Indonesia,” Buletin Fisika, vol. 27, no. 1, pp. 38–44, 2026, doi: 10.24843/BF.2026.v27.i01.p05.

D. Sangaji and T. Sutabri, “Analisis XGBoost dan Random Forest untuk Prediksi Curah Hujan dalam Mendukung Mitigasi Karhutla,” Jurnal Pustaka AI (Pusat Akses Kajian Teknologi Artificial Intelligence), vol. 5, no. 1, pp. 13–18, Apr. 2025, doi: 10.55382/jurnalpustakaai.v5i1.905.

J. Shinde and N. Mungale, “Machine Learning Techniques to Predict Rainfall of Vidarbh Region,” Journal of Electrical Systems, vol. 20, no. 1s, pp. 881–890, Mar. 2024, doi: 10.52783/jes.839.

Additional Files

Published

2026-10-10

How to Cite

[1]
H. B. Al Hakim and N. T. Al Ghifari, “Daily Rainfall Prediction and Intensity Classification in Sleman Regency Using Random Forest Regressor”, J. Tek. Inform. (JUTIF), vol. 7, no. 5, pp. 4207–4223, Oct. 2026.