Analisis Komparatif Model SARIMAX, XGBoost, dan LSTM untuk Peramalan Curah Hujan Bulanan di Kota Makassar

Mohammad Zahid, Rahmawati Rahmawati, Andi Seppewali, Bintang Guntur

Abstract


Rainfall is one of the important meteorological elements in various sectors, such as agriculture, water resource management, and hydrometeorological disaster mitigation. This study aims to compare the performance of Seasonal Autoregressive Integrated Moving Average with Exogenous Variables (SARIMAX), Extreme Gradient Boosting (XGBoost), and Long Short-Term Memory (LSTM) models in monthly rainfall forecasting in Makassar City. The data used were monthly meteorological data from January 2000 to December 2024 obtained from NASA POWER with a total of 300 observations. The variables used include rainfall, temperature, humidity, wind speed, pressure, and solar radiation. The research stages consisted of data preprocessing, exploratory data analysis, stationarity testing using the Augmented Dickey-Fuller (ADF) test, SARIMAX, XGBoost, and LSTM modeling, and model evaluation using Root Mean Square Error (RMSE), Mean Absolute Error (MAE), Mean Absolute Percentage Error (MAPE), and the coefficient of determination (R^2). The results showed that the XGBoost model achieved the best performance with an RMSE value of 2.5441 and an R^2 value of 0.8063, while the SARIMAX model produced the lowest MAPE value of 39.2614%. Meanwhile, the LSTM model showed less optimal performance with an RMSE value of 5.2125 and an R^2 value of 0.1646. The results indicate that the boosting-based machine learning approach is more effective in handling nonlinear relationships in monthly rainfall data compared to classical statistical and deep learning models on limited datasets.


Keywords


Rainfall; SARIMAX; XGBoost; LSTM; Forecasting; Time Series

Full Text:

PDF

References


U. Fitriati, G. Rusmayadi, and G. M. H. et al., “Climate change in north kalimantan province, indonesia,” in IOP Conference Series: Earth and Environmental Science. Institute of Physics, 2026, doi:10.1088/1755-1315/1593/1/012050.

F. Ghaly, A. Susrifalah, and Y. Kurniawati, “Peramalan curah hujan sebagai upaya mitigasi bencana menggunakan seasonal autoregressive integrated moving average,” Jurnal Matematika dan Statistika serta Aplikasinya, vol. 13, no. 1, pp. 1–8, 2025, doi:10.24252/msa.v13i1.55289.

H. A. Yusuf, I. Djakaria, and R. Resmawan, “Penerapan metode double moving average untuk meramalkan hasil produksi tanaman padi di provinsi gorontalo,” d’CARTESIAN, vol. 9, no. 2, pp. 92–99, 2020, doi:10.35799/dc.9.2.2020.29033.

W. A. Salmi, I. Djakaria, and R. Resmawan, “Penerapan metode exponential moving average pada peramalan penggunaan air di pdam kota gorontalo,” Jambura Journal of Probability and Statistics, vol. 1, no. 2, pp. 69–77, 2020, doi:10.34312/jjps.v1i2.5919.

A. M. Hamdani, F. Widhiatmoko, and S. Fitri, “Perbandingan akurasi metode autoregressive integrated moving average dan geometric brownian motion untuk peramalan harga saham indonesia,” Euler: Jurnal Ilmiah Matematika, Sains dan Teknologi, vol. 13, no. 1, pp. 14–20, Apr. 2025, doi:10.37905/euler.v13i1.30760.

H. Khaulasari and J. R. M. Akbar, “Modelling the effect of calendar variation in the gstarimax for predicting nitrogen monoxide air quality,” Euler: Jurnal Ilmiah Matematika, Sains dan Teknologi, vol. 13, no. 3, pp. 360–371, Dec. 2025, doi:10.37905/euler.v13i3.33830.

A. T. R. Dani and F. B. Putra, “Time series modeling with intervention analysis to evaluate of covid-19 impact on the stock markets in indonesia and global,” Euler: Jurnal Ilmiah Matematika, Sains dan Teknologi, vol. 13, no. 1, pp. 113–126, Apr. 2025, doi:10.37905/euler.v13i1.31081.

R. Y. Wawo, D. T. Salaki, H. A. H. Komalig, D. Hatidja, M. S. Paendong, and T. Manurung, “Perbandingan metode triple exponential smoothing additive dan additive parameter damped untuk peramalan indeks harga konsumen,” Euler: Jurnal Ilmiah Matematika, Sains dan Teknologi, vol. 13, no. 1, pp. 77–83, Apr. 2025, doi:10.37905/euler.v13i1.30928.

T. Chen and C. Guestrin, “Xgboost: A scalable tree boosting system,” in Proceedings of the 22nd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, San Francisco, CA, USA, 2016, pp. 785–794.

S. Gnjato, I. Leščešen, Q. Zhou, and M. Djukanović, “Explainable machine learning for streamflow forecasting: Application to the bosna river basin,” Water, vol. 18, no. 10, May 2026, doi:10.3390/w18101226.

M. M. Hameed, A. Masood, A. Hamid, A. Elbeltagi, S. F. M. Razali, and A. Salem, “Forecasting monthly runoff in a glacierized catchment: A comparison of extreme gradient boosting (xgboost) and deep learning models,” PLoS One, vol. 20, no. 5, May 2025, doi:10.1371/journal.pone.0321008.

R. J. Buhungo, I. K. Hasan, and Nurwan, “Penerapan hybrid metode arfima-ann menggunakan algoritma backpropagation pada peramalan indeks harga saham gabungan,” Euler: Jurnal Ilmiah Matematika, Sains dan Teknologi, vol. 12, no. 2, pp. 200–205, 2024, doi:10.37905/euler.v12i2.28474.

D. I. Puteri, “Implementasi long short term memory (lstm) dan bidirectional long short term memory (bilstm) dalam prediksi harga saham syariah,” Euler: Jurnal Ilmiah Matematika, Sains dan Teknologi, vol. 11, no. 1, pp. 35–43, Jun. 2023, doi:10.34312/euler.v11i1.19791.

S. Hochreiter and J. Schmidhuber, “Long short-term memory,” Neural Computation, vol. 9, no. 8, pp. 1735–1780, Nov. 1997.

A. Damayanti and D. Agustina, “Implementasi metode adaptive neuro fuzzy inference system (anfis) dalam prediksi harga saham x,” Euler: Jurnal Ilmiah Matematika, Sains dan Teknologi, vol. 12, no. 1, pp. 71–76, Jun. 2024, doi:10.37905/euler.v12i1.25278.

M. Megawati, B. Sartono, and S. D. Oktarina, “A study on prediction intervals produced using quantile regression forest with and without variable selection,” Euler: Jurnal Ilmiah Matematika, Sains dan Teknologi, vol. 13, no. 3, pp. 319–327, Dec. 2025, doi:10.37905/euler.v13i3.34392.

G. T. Wilson, “Time series analysis: Forecasting and control, 5th edition, by george e. p. box, gwilym m. jenkins, gregory c. reinsel and greta m. ljung, 2015,” Journal of Time Series Analysis, vol. 37, no. 5, pp. 709–711, Sep. 2016, doi:10.1111/jtsa.12194.

D. A. Dickey and W. A. Fuller, “Distribution of the estimators for autoregressive time series with a unit root,” Journal of the American Statistical Association, vol. 74, no. 366, pp. 427–431, Jun. 1979.

G. M. Ljung and G. E. P. Box, “On a measure of lack of fit in time series models,” Biometrika, vol. 65, no. 2, pp. 297–303, Aug. 1978.

C. Kişmiroğlu and O. Isik, “Temperature prediction using transformer–lstm deep learning models and sarimax from a signal processing perspective,” Applied Sciences, vol. 15, no. 17, Sep. 2025, doi:10.3390/app15179372.

M. Putra, M. S. Rosid, and D. Handoko, “High-resolution rainfall estimation using ensemble learning techniques and multisensor data integration,” Sensors, vol. 24, no. 15, Aug. 2024, doi:10.3390/s24155030.

P. Mishra, S. Ray, and P. L. et al., “Climate modeling for south asia: Statistical and deep learning for rainfall and temperature prediction,” Scientific Reports, vol. 15, no. 1, Dec. 2025, doi:10.1038/s41598-025-22149-1.

M. E. Hafyani, K. E. Himdi, and S. E. E. Adlouni, “Improving monthly precipitation prediction accuracy using machine learning models: A multi-view stacking learning technique,” Frontiers in Water, vol. 6, 2024, doi:10.3389/frwa.2024.1378598.




DOI: https://doi.org/10.37905/euler.v14i2.39072

Refbacks

  • There are currently no refbacks.


Copyright (c) 2026 Mohammad Zahid, Rahmawati, Andi Seppewali, Bintang Guntur

Creative Commons License
This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License.


Euler : Jurnal Ilmiah Matematika, Sains dan Teknologi has been indexed by:


 EDITORIAL OFFICE OF EULER : JURNAL ILMIAH MATEMATIKA, SAINS, DAN TEKNOLOGI

 Department of Mathematics, Faculty of Mathematics and Natural Science, Universitas Negeri Gorontalo
Jl. Prof. Dr. Ing. B. J. Habibie, Tilongkabila, Kabupaten Bone Bolango 96554, Gorontalo, Indonesia
 Email: [email protected]
 +6287777-586462 (WhatsApp Only)
 Euler : Jurnal Ilmiah Matematika, Sains dan Teknologi (p-ISSN: 2087-9393 | e-ISSN:2776-3706) by Department of Mathematics Universitas Negeri Gorontalo is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License.  Powered by Public Knowledge Project OJS.