Hostname: page-component-89b8bd64d-72crv Total loading time: 0 Render date: 2026-05-08T00:57:06.243Z Has data issue: false hasContentIssue false

Monthly rainfall prediction using artificial neural network (case study: Republic of Benin)

Published online by Cambridge University Press:  02 May 2024

Arsène Nounangnon Aïzansi*
Affiliation:
Information Systems Department, Agence Nationale de la Météorologie du Bénin (METEO-BENIN), Cotonou, Benin
Kehinde Olufunso Ogunjobi
Affiliation:
WASCAL Competence Centre (CoC), WASCAL, Ouagadougou, Burkina Faso
Faustin Katchele Ogou
Affiliation:
Atmospheric Physics Laboratory, Université d’Abomey-Calavi, Abomey-Calavi, Benin
*
Corresponding author: Arsène Nounangnon Aïzansi; Email: aaizansi@meteobenin.bj

Abstract

Complex physical processes that are inherent to rainfall lead to the challenging task of its prediction. To contribute to the improvement of rainfall prediction, artificial neural network (ANN) models were developed using a multilayer perceptron (MLP) approach to predict monthly rainfall 2 months in advance for six geographically diverse weather stations across the Benin Republic. For this purpose, 12 lagged values of atmospheric data were used as predictors. The models were trained using data from 1959 to 2017 and tested for 4 years (2018–2021). The proposed method was compared to long short-term memory (LSTM) and climatology forecasts (CFs). The prediction performance was evaluated using five statistical measures: root mean square error, mean absolute error, mean absolute percentage error, coefficient of determination, and Nash–Sutcliffe efficiency (NSE) coefficient. Furthermore, Taylor diagrams, violin plots, box error, and Kruskal–Wallis test were used to assess the robustness of the model’s forecast. The results revealed that MLP gives better results than LSTM and CF. The NSE obtained with the MLP, LSTM, and CF models during the test period ranges from 0.373 to 0.885, 0.297 to 0.875, and 0.335 to 0.845, respectively, depending on the weather station. Rainfall predictability was more accurate, with 0.512 improvement in NSE using MLP at higher latitudes across the country, showing the effect of geographic regions on prediction model results. In summary, this research has revealed the potential of ANN techniques in predicting monthly rainfall 2 months ahead, supplying valuable insights for decision-makers in the Republic of Benin.

Information

Type
Application Paper
Creative Commons
Creative Common License - CCCreative Common License - BY
This is an Open Access article, distributed under the terms of the Creative Commons Attribution licence (http://creativecommons.org/licenses/by/4.0), which permits unrestricted re-use, distribution and reproduction, provided the original article is properly cited.
Copyright
© The Author(s), 2024. Published by Cambridge University Press
Figure 0

Figure 1. Study sites location: (a) Benin’s location in West Africa. (b) Synoptic stations’ location in Benin.

Figure 1

Table 1. Summary of the latitude and longitude coordinates for the chosen stations

Figure 2

Figure 2. Rainfall patterns in different climate zones in Benin Republic (period 1959–2021).

Figure 3

Table 2. Description of atmospheric data

Figure 4

Figure 3. A multilayer perceptron with two hidden layers. Source: Salaeh et al. (2022).

Figure 5

Figure 4. Structure of LSTM unit. Source: Nifa et al. (2023).

Figure 6

Figure 5. Summary of the main methodology.

Figure 7

Figure 6. Correlation map between station rainfall and grid point SST (-40N_50N,-40E_80E).

Figure 8

Figure 7. Correlations between rainfall and atmospheric variables.

Figure 9

Table 3. Selected meteorological variable, lagged months (in red color), and correlation coefficients of monthly rainfall

Figure 10

Table 4. Optimal parameters used for training MLP and LSTM network

Figure 11

Figure 8. Loss function while training the MLP and LSTM models for all stations.

Figure 12

Table 5. RMSE, MAE, MAPE, R2, and NSE values obtained over the training, validation, and testing datasets

Figure 13

Figure 9. Prediction performance with the MLP, LSTM, and CF over the test period (2018–2021).

Figure 14

Figure 10. Comparison between observed and predicted monthly rainfall using MLP, LSTM, and CF at Cotonou during the test period (2018–2021): (a) hydrograph and (b) scatterplot.

Figure 15

Figure 11. Comparison between observed and predicted monthly rainfall using MLP, LSTM, and CF at Bohicon during the test period (2018–2021): (a) hydrograph and (b) scatterplot.

Figure 16

Figure 12. Comparison between observed and predicted monthly rainfall using MLP, LSTM, and CF at Savè during the test period (2018–2021): (a) hydrograph and (b) scatterplot.

Figure 17

Figure 13. Comparison between observed and predicted monthly rainfall using MLP, LSTM, and CF at Parakou during the test period (2018–2021): (a) hydrograph and (b) scatterplot.

Figure 18

Figure 14. Comparison between observed and predicted monthly rainfall using MLP, LSTM, and CF at Natitingou during the test period (2018–2021): (a) hydrograph and (b) scatterplot.

Figure 19

Figure 15. Comparison between observed and predicted monthly rainfall using MLP, LSTM, and CF at Kandi during the test period (2018–2021): (a) hydrograph and (b) scatterplot.

Figure 20

Figure 16. Taylor diagrams of MLP, LSTM, and CF for all stations.

Figure 21

Figure 17. Violin plots of MLP, LSTM, and CF for all stations over the test period (2018–2021). Thin black lines represent the 5th and 95th percentile ranges of rainfall values, while thick black lines and white dots represent the 25th and 75th percentile ranges and median, respectively.

Figure 22

Figure 18. Errors boxplots of MLP, LSTM, and CF for all stations over the test period (2018–2021).

Figure 23

Table 6. P-values of Kruskal–Wallis test at 95% significance level