Abstract
Ghana has witnessed major flood and drought events as a result of unpredictable climate conditions, affecting numerous sectors of the economy such as agriculture, mining, hydroelectric power, and so on. Forecasting rainfall on monthly or seasonal timescales will be critical in averting or mitigating the consequences of these natural disasters, particularly given the present danger posed by climate change. The suitability of long short-term memory (LSTM) recurrent neural networks for monthly rainfall forecasting in Ghana has been investigated in this study. Both univariate and multivariate LSTM models are examined. The numerical results showed that the proposed models performed well in forecasting monthly rainfall in the selected locations across the country. There was no significant difference in performance between the two LSTM models. The values of coefficient of correlation (R), Nash-Sutcliffe efficiency coefficient (NS), root mean squared error (RMSE), and mean absolute error (MAE) ranged from 0.604 to 0.894, 0.352 to 0.679, 50.21 to 75.89, and 36.53 to 44.56, respectively, for the univariate LSTM model, and 0.693 to 0.890, 0.357 to 0.655, 42.10 to 77.04, and 33.07 to 58.60, respectively, for the multivariate LSTM model. The LSTM models’ performance was compared to two standard machine learning models: support vector machine and random forest. Overall, the proposed LSTM recurrent networks outperformed the standard SVR and RF forecasting models. However, all the models (LSTM, SVR, and RF) considered in this study can be used to forecast monthly rainfall across the country with reasonable accuracy.
Similar content being viewed by others
Data availability
Data are available upon request.
References
Abbot J, Marohasy J (2012) Application of artificial neural networks to rainfall forecasting in Queensland, Australia. Adv Atmos Sci 29:717–730
Ansah SO, Ahiataku MA, Yorke CK, Otu-Larbi F, Yahaya B, Lamptey PNL, Tanu M (2020) Meteorological analysis of floods in Ghana. Adv Meteorol 2020:1–14
Abdusselam Altunkaynak PE, Asce A, Ozger M (2016) Comparison of discrete and continuous wavelet–multilayer perceptron methods for daily precipitation prediction. J Hydrol Eng 21(7):04016014
Anochi JA, de Almeida VA, de Campos Velho HF (2021) Machine learning for climate precipitation prediction modeling over South America. Remote Sens (Basel) 13(13):2468
Atiah WA, Mengistu Tsidu G, Amekudzi LK, Yorke C (2020) Trends and interannual variability of extreme rainfall indices over Ghana, West Africa. Theor Appl Climatol 140(3):1393–1407
Amekudzi LK, Yamba EI, Preko K, Asare EO, Aryee J, Baidu M, Codjoe SN (2015) Variabilities in rainfall onset, cessation and length of rainy season for the various agro-ecological zones of Ghana. Climate 3(2):416–434
Appiah-Badu NK, Missah YM, Amekudzi LK, Ussiph N, Frimpong T, Ahene E (2021) Rainfall prediction using machine learning algorithms for the various ecological zones of Ghana. IEEE Access
Bessah E, Amponsah W, Ansah SO, Afrifa A, Yahaya B, Wemegah CS et al (2022) Climatic zoning of Ghana using selected meteorological variables for the period 1976–2018. Meteorol Appl 29(1):e2049
Breiman L (2001) Random forests. Mach Learn 45:5–32
Boadu FK (1997) Rock properties and seismic attenuation: neural network analysis. Pure Appl Geophys 149(3):507–524. https://doi.org/10.1007/s000240050038
Bouttier F, Marchal H (2020) Probabilistic thunderstorm forecasting by blending multiple ensembles. Tellus A: Dyn Meteorol Oceanogr 72(1):1–19
Coulibaly P, Baldwin CK (2005) Nonstationary hydrological time series forecasting using nonlinear dynamic methods. J Hydrol 307(1–4):164–174. https://doi.org/10.1016/j.jhydrol.2004.10.008
Chhetri M, Kumar S, Pratim Roy P, Kim BG (2020) Deep BLSTM-GRU model for monthly rainfall prediction: a case study of Simtokha, Bhutan. Remote Sens (Basel) 12(19):3174
Cortes C, Vapnik V (1995) Support-vector networks. Mach Learn 20:273–297
Danandeh Mehr A (2021) Seasonal rainfall hindcasting using ensemble multi-stage genetic programming. Theor Appl Climatol 143(1-2):461–472
Dong B, Cao C, Lee SE (2005) Applying support vector machines to predict building energy consumption in tropical region. Energ Buildings 37(5):545–553
Dudek G (2015) Short-term load forecasting using random forests. In: Intelligent systems’ 2014. Springer, Cham, pp 821–828
Funahashi KI, Nakamura Y (1993) Approximation of dynamical systems by continuous time recurrent neural networks. Neural Netw 6(6):801–806
GMet website, Ghana Meteorological Agency, (n.d.) Seasonal rainfall forecast for the major rainy seasons: March-May and April – June, 2022 for Ghana, https://www.meteo.gov.gh/gmet/download/10773/, accessed February 23, 2023
GSS, Ghana Statistical Service (2021) Ghana 2021 Population and Housing Census, General Report, https://census2021.statsghana.gov.gh (https://statsghana.gov.gh/gssmain/fileUpload/pressrelease/2021%20PHC%20General%20Report%20Vol%203A_Population%20of%20Regions%20and%20Districts_181121.pdf)
Han L, Zhang R, Chen K (2019) A coordinated dispatch method for energy storage power system considering wind power ramp event. Appl Soft Comput 84:105732
Haidar A, Verma B (2018) Monthly rainfall forecasting using one-dimensional deep convolutional neural network. IEEE Access 6:69053–69063
Hinton GE, Osindero S, Teh YW (2006) A fast learning algorithm for deep belief nets. Neural Comput 18(7):1527–1554
Hochreiter S, Schmidhuber J (1997) Long short-term memory. Neural Comput 9(8):1735–1780
LeCun Y, Bengio Y, Hinton G (2015) Deep learning. Nature 521(7553):436–444
Li Q, Meng Q, Cai J, Yoshino H, Mochida A (2009) Applying support vector machine to predict hourly cooling load in the building. Appl Energy 86(10):2249–2256
Liu JN, Hu Y, He Y, Chan PW, Lai L (2015) Deep neural network modeling for big data weather forecasting. In: Information granularity, big data, and computational intelligence, pp 389–408
Liu J, Xu L, Chen N (2022) A spatiotemporal deep learning model ST-LSTM-SA for hourly rainfall forecasting using radar echo images. J Hydro 609:127748
Kumar A, Islam T, Sekimoto Y, Mattmann C, Wilson B (2020) Convcast: an embedded convolutional LSTM based architecture for precipitation nowcasting using satellite data. PLoS One 15(3):e0230114
Kumar D, Singh A, Samui P, Jha RK (2019) Forecasting monthly precipitation using sequential modelling. Hydrol Sci J 64(6):690–700
Marshall AG, Hudson D, Hendon HH, Pook MJ, Alves O, Wheeler MC (2014) Simulation and prediction of blocking in the Australian region and its influence on intra-seasonal rainfall in POAMA-2. Climate Dynam 42:3271–3288
Marchuk G (2012) Numerical methods in weather prediction. Elsevier
Mekanik F, Imteaz MA, Gato-Trinidad S, Elmahdi A (2013) Multiple regression and artificial neural network for long-term rainfall forecasting using large scale climate modes. J Hydrol 503:11–21
Nkrumah, F., Klutse, N. A. B., Adukpo, D. C., Owusu, K., & Quagraine, K. A. (2014). Rainfall variability over Ghana: model versus rain gauge observation.
Ren X, Li X, Ren K, Song J, Xu Z, Deng K, Wang X (2021) Deep learning-based weather prediction: a survey. Big Data Res 23:100178
Reichstein M, Camps-Valls G, Stevens B, Jung M, Denzler J, Carvalhais N (2019) Deep learning and process understanding for data-driven Earth system science. Nature 566(7743):195–204
Sermanet P, Chintala S, LeCun Y (2012) Convolutional neural networks applied to house numbers digit classification. In: Proceedings of the 21st international conference on pattern recognition (ICPR2012). IEEE, pp 3288–3291
Vapnik V (2013) The nature of statistical learning theory. Springer Science & Business Media
Vaze J, Teng J, Chiew FHS (2011) Assessment of GCM simulations of annual and seasonal rainfall and daily rainfall distribution across south-east Australia. Hydrol Process 25(9):1486–1497
Vincent P, Larochelle H, Bengio Y, Manzagol PA (2008, July) Extracting and composing robust features with denoising autoencoders. In: Proceedings of the 25th international conference on Machine learning, pp 1096–1103
Wang R, Chen H, Guan C (2021) Random convolutional neural network structure: an intelligent health monitoring scheme for diesel engines. Measurement 171:108786
Funding
The author declares that no funds, grants, or other support were received during the preparation of this manuscript.
Author information
Authors and Affiliations
Contributions
The manuscript is sole authored by the corresponding author.
Corresponding author
Ethics declarations
Competing interests
The author declares no competing interests.
Additional information
Publisher’s Note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Rights and permissions
Springer Nature or its licensor (e.g. a society or other partner) holds exclusive rights to this article under a publishing agreement with the author(s) or other rightsholder(s); author self-archiving of the accepted manuscript version of this article is solely governed by the terms of such publishing agreement and applicable law.
About this article
Cite this article
Dotse, SQ. Deep learning–based long short-term memory recurrent neural networks for monthly rainfall forecasting in Ghana, West Africa. Theor Appl Climatol 155, 3033–3045 (2024). https://doi.org/10.1007/s00704-023-04773-x
Received:
Accepted:
Published:
Issue Date:
DOI: https://doi.org/10.1007/s00704-023-04773-x