A Web-Based Machine Learning Approach for Standardized Precipitation Index Prediction

Authors

  • Ahmad Fauzi Faishal Hadi 1Undergraduate Program in Applied of Instrumentation Meteorology, Climatology, and Geophysics, STMKG Tangerang, Indonesia
  • Marzuki Sinambela Program in Applied of Instrumentation Meteorology, Climatology, Geophysics STMKG Tangerang, Indonesia
  • Agustina Rachmawardani Program in Applied of Instrumentation Meteorology, Climatology, Geophysics STMKG Tangerang, Indonesia
  • Edward Trihadi Program in Applied of Instrumentation Meteorology, Climatology, Geophysics STMKG Tangerang, Indonesia

Keywords:

web-based prediction, machine learning, Standardized Precipitation Index, drought

Abstract

Accurate and user-friendly drought forecasting tools are crucial for mitigating the impact of meteorological droughts, particularly in vulnerable areas such as South Sumatra, Indonesia. This study introduces an interactive web-based application built to anticipate drought conditions by forecasting the Standardized Precipitation Index (SPI). The system relies on deep learning techniques trained using three decades of rainfall data collected from the Climatological Station in South Sumatra. In evaluating model performance, both Recurrent Neural Network (RNN) and Long Short-Term Memory (LSTM) architectures were assessed. While both models delivered comparable short-term predictions, the LSTM experienced a significant decline in accuracy over extended forecasting periods (specifically at SPI-6), primarily due to overfitting. In contrast, the RNN displayed more stable and reliable results, making it the preferable model for this geographical context. Specifically, the RNN achieved a lower Mean Absolute Error (MAE) of 0.4007, a reduced Root Mean Squared Error (RMSE) of 0.4684, and a higher coefficient of determination (R²) of 0.7338. These metrics outperformed those of the LSTM, which recorded a MAE of 0.4115, an RMSE of 0.4840, and an R² of 0.7036. Such results confirm that the RNN offers a more precise and dependable fit for the station’s dataset. The web platform also effectively visualizes the model outputs, providing a dynamic and interactive 24-month forecast view that supports early warning efforts and informed decision-making for regional authorities and stakeholders.

References

M. N. Lorenzo, H. Pereira, I. Alvarez, and J. M. Dias, “Standardized Precipitation Index (SPI) evolution over the Iberian Peninsula during the 21st century,” Atmos. Res., vol. 297, no. February 2023, 2024, doi: 10.1016/j.atmosres.2023.107132.

WMO, Guide to Instruments and Methods of Observation, vol. V, no. 8. 2023.

C. Liu, C. Yang, Q. Yang, and J. Wang, “Spatiotemporal drought analysis by the standardized precipitation index (SPI) and standardized precipitation evapotranspiration index (SPEI) in Sichuan Province, China,” Sci. Rep., vol. 11, no. 1, pp. 1-14, 2021, doi: 10.1038/s41598-020-80527-3.

R. Magallanes-Quintanar, C. E. Galván-Tejada, J. I. Galván-Tejada, H. Gamboa-Rosales, S. de J. Méndez-Gallegos, and A. García-Domínguez, “Neural Hierarchical Interpolation for Standardized Precipitation Index Forecasting,” Atmosphere (Basel)., vol. 15, no. 8, 2024, doi: 10.3390/atmos15080912.

Z. Liu, Z. Zhu, J. Gao, and C. Xu, “Forecast Methods for Time Series Data: A Survey,” IEEE Access, vol. 9, pp. 91896-91912, 2021, doi: 10.1109/ACCESS.2021.3091162.

J. Wang, Y. Zou, and S. J. Lim, “An Improved Time Feedforward Connections Recurrent Neural Networks,” Intell. Autom. Soft Comput., vol. 36, no. 3, pp. 2743-2755, 2023, doi: 10.32604/iasc.2023.033869.

T. O. Hodson, “Root-mean-square error (RMSE) or mean absolute error (MAE): when to use them or not,” Geosci. Model Dev., vol. 15, no. 14, pp. 5481-5487, 2022, doi: 10.5194/gmd-15-5481-2022.

A. V Tatachar, “Comparative assessment of regression models based On model evaluation metrics,” Int. Res. J. Eng. Technol., vol. 8, no. 9, pp. 853-860, 2021, [Online]. Available: https://d1wqtxts1xzle7.cloudfront.net/73250877/IRJET_V8I9127-libre.pdf

Downloads

Published

2025-06-30

Issue

Section

Artikel