Comparative Analysis of Time Series Models: LSTM, Arima, FB Prophet for Predicting Rainfall and Streamflow

Authors

  • Nur-Adib Maspo Department of Computer Science, Kulliyyah of Information and Communication Technology, International Islamic University Malaysia, 53100 Selangor, Malaysia. https://orcid.org/0000-0003-0031-1354
  • Aizul Nahar Harun Department of Management of Technology, Malaysia-Japan International Institute of Technology, University of Technology Malaysia, 54100 Kuala Lumpur, Malaysia. https://orcid.org/0000-0001-6210-2000
  • Amelia Ritahani Ismail Department of Computer Science, Kulliyyah of Information and Communication Technology, International Islamic University Malaysia, 53100 Selangor, Malaysia. https://orcid.org/0000-0002-7126-4287
  • Mimi Liza Abdul Majid Department of Information System, Kulliyyah of Information and Communication Technology, International Islamic University Malaysia, 53100 Selangor, Malaysia. https://orcid.org/0009-0006-7532-6197

DOI:

https://doi.org/10.22452/mjs.vol45sp2.6

Keywords:

LSTM, ARIMA, Facebook Prophet, time series analysis, rainfall prediction

Abstract

Accurate forecasting of rainfall and streamflow is essential for water resource management and climate resilience in Malaysia, particularly under monsoon-driven variability. This study evaluates Long Short-Term Memory (LSTM), Autoregressive Integrated Moving Average (ARIMA), and Facebook Prophet (FB Prophet) for predicting these hydrological variables using data from the Department of Irrigation and Drainage, Malaysia (2009–2019). LSTM, with its 50-memory-unit architecture, achieved the lowest Root Mean Square Error (RMSE) of 15.328631 for rainfall, excelling in capturing nonlinear, long-term patterns. ARIMA outperformed with an RMSE of 1.448643 for streamflow, using linear autocorrelations. FB Prophet showed higher errors: RMSE 20.869064 for rainfall, 2.319169 for streamflow, indicating limited suitability despite its seasonality modeling. The findings underscore the importance of tailoring model selection to hydrological variables: LSTM for complex rainfall, ARIMA for linear streamflow, while advocating hybrid approaches to improve accuracy. This research offers practical insights into the strengths of models, contributing to sustainable water management and addressing global water issues.

References

Abdullah, M. S., Selamat, A., Do, N. Q., Abu, M. A., Lim, K. C., & Krejcar, O. (2024, December). Rainfall Prediction based on Time-series Data and Temporal Convolutional Network for Flood Forecasting in Malaysia. In 2024 IEEE International Conference on Computing (ICOCO) (pp. 404-409). IEEE.

Adnan, R. M., Yuan, X., Kisi, O., & Curtef, V. (2017). Application of time series models for streamflow forecasting. Civil and Environmental Research, 9(3), 56-63.

Agaj, T., Budka, A., Janicka, E., & Bytyqi, V. (2024). Using ARIMA and ETS models for forecasting water level changes for sustainable environmental management. Scientific Reports, 14(1), 22444.

Aguilera, H., Guardiola-Albert, C., Naranjo-Fernández, N., & Kohfahl, C. (2019). Towards flexible groundwater-level prediction for adaptive water management: using Facebook’s Prophet forecasting approach. Hydrological Sciences Journal, 64(12), 1504-1518.

Bakhshi Ostadkalayeh, F., Moradi, S., Asadi, A., Moghaddam Nia, A., & Taheri, S. (2023). Performance improvement of LSTM-based deep learning model for streamflow forecasting using Kalman filtering. Water Resources Management, 37(8), 3111-3127.

Ghimire, S., Yaseen, Z. M., Farooque, A. A., Deo, R. C., Zhang, J., & Tao, X. (2021). Streamflow prediction using an integrated methodology based on convolutional neural network and long short-term memory networks. Scientific Reports, 11(1), 17497.

Hossain, M. M., Anwar, A. F., Garg, N., Prakash, M., & Bari, M. (2022). Monthly rainfall prediction at catchment level with the Facebook Prophet model using observed and CMIP5 decadal data. Hydrology, 9(6), 111.

Ibrahim, N., Ahmad, N., Jan, N.A.M., Zainudin, Z., Jamil, N.S. and Azlan, A., 2024, September. Comparative Analysis of ARIMA and LSTM Approaches for Monthly River Flow Forecasting in Terengganu. In 2024 5th International Conference on Artificial Intelligence and Data Sciences (AiDAS) (pp. 1-6). IEEE.

Khairudin, N. B. M., Mustapha, N. B., Aris, T. N. B. M., & Zolkepli, M. B. (2020, September). Comparison of machine learning models for rainfall forecasting. In 2020 international conference on computer science and its application in agriculture (ICOSICA) (pp. 1-5). IEEE.

Kobiela, D., Krefta, D., Król, W., & Weichbroth, P. (2022). ARIMA vs LSTM on NASDAQ stock exchange data. Procedia Computer Science, 207, 3836-3845.

Kumar, V., Kedam, N., Kişi, Ö., Alsulamy, S., Khedher, K., & Salem, M. A. (2024). A Comparative Study of Machine Learning Models for Daily and Weekly Rainfall Forecasting. Water Resources Management. https://doi.org/10.1007/s11269-024-03969-8Latif, S. D., Ahmed, A. N., Sathiamurthy, E., Huang, Y. F., & El-Shafie, A. (2021). Evaluation of deep learning algorithm for inflow forecasting: a case study of Durian Tunggal Reservoir, Peninsular Malaysia. Natural Hazards, 109(1), 351-369.

Latif, S. D., Ahmed, A. N., Sathiamurthy, E., Huang, Y. F., & El-Shafie, A. (2021). Evaluation of deep learning algorithm for inflow forecasting: a case study of Durian Tunggal Reservoir, Peninsular Malaysia. Natural Hazards, 109(1), 351-369.

Ramlan, S. Z., & Mohd Deni, S. (2021). Rainfall prediction in flood prone area using deep learning approach. In Soft Computing in Data Science: 6th International Conference, SCDS 2021, Virtual Event, November 2–3, 2021, Proceedings 6 (pp. 71-88). Springer Singapore.

Sahoo, A., Parida, S. S., Samantaray, S., & Satapathy, D. P. (2024). Daily flow discharge prediction using integrated methodology based on LSTM models: Case study in Brahmani-Baitarani basin. HydroResearch, 7, 272-284.

Sherstinsky, A. (2020). Fundamentals of recurrent neural network (RNN) and long short-term memory (LSTM) network. Physica D: Nonlinear Phenomena, 404, 132306.

Shumway, R. H., Stoffer, D. S., Shumway, R. H., & Stoffer, D. S. (2017). ARIMA models. Time series analysis and its applications: with R examples, 75-163.

Sulasikin, A., Nugraha, Y., Kanggrawan, J. I., & Suherman, A. L. (2021, August). Monthly rainfall prediction using the Facebook Prophet model for flood mitigation in Central Jakarta. In 2021 International Conference on ICT for Smart Society (ICISS) (pp. 1-5). IEEE.

Sivaramakrishnan, S., Fernandez, T. F., Babukarthik, R. G., & Premalatha, S. (2022). Forecasting time series data using arima and facebook prophet models. In Big data management in Sensing (pp. 47-59). River Publishers.

Xu, Wei, Yanan Jiang, Xiaoli Zhang, Yi Li, Run Zhang, and Guangtao Fu. "Using long short-term memory networks for river flow prediction." Hydrology Research 51, no. 6 (2020): 1358-1376.

Xu, D., Zhang, Q., Ding, Y., & Zhang, D. (2022). Application of a hybrid ARIMA-LSTM model based on the SPEI for drought forecasting. Environmental Science and Pollution Research, 29(3), 4128-4144.

graphical abstract

Downloads

Published

15-11-2026