Annual Rainfall Forecasting Using Hybrid Artificial Intelligence Model: Integration of Multilayer Perceptron with Whale Optimization Algorithm

  • 29 Accesses


Rainfall, as one of the key components of hydrological cycle, plays an undeniable role for accurate modelling of other hydrological components. Therefore, a precise forecasting of annual rainfall is of the high importance. In this regard, several studies have been tried to predict annual rainfall of different climate zones using machine learning and soft computing algorithms. This study investigates the application of an innovative hybrid method, namely Multilayer Perceptron-Whale Optimization Algorithm (MLP-WOA) to predict annual rainfall comparatively to the ordinary Multilayer Perceptron models (MLP). The models were developed by using 3-Input variables of annual rainfall at lag1, 2 and 3 corresponding to Pt-1, Pt-2 and Pt-3, respectively of two synoptic stations of Senegal (Fatick and Goudiry) in the time period of 1933–2013. 75% of the dataset were utilized for training and the other 25% for testing the studied models Accurateness of the mentioned models was examined using root mean squared error, correlation coefficient, and KlingGupta efficiency. Results showed that MLP-WOA3 and MLP3 using both Pt-1, Pt-2 and Pt-3 as inputs presented the most accurate forecasting in Fatick and Goudiry stations, respectively. In Fatick station, MLP-WOA3 decreased the RMSE value of MLP3 by 18.3% and increased the R and KGE values by 3.0% and 130%, respectively in testing period. But, in Goudiry station, MLP-WOA3 increased the RMSE value of MLP3 by 3.9% and increased the R and KGE values by 10.2% and 91% in testing period. Therefore, it can be realized that the MLP-WOA3 could not able to reduce the RMSE value of correspondent MLP model in Goudiry station. The conclusive results indicated that MLP-WOA slightly improved the accuracy of correspondent MLP models and may be recommended for annual rainfall forecasting.

This is a preview of subscription content, log in to check access.

Access options

Buy single article

Instant unlimited access to the full article PDF.

US$ 39.95

Price includes VAT for USA

Subscribe to journal

Immediate online access to all issues from 2019. Subscription will auto renew annually.

US$ 99

This is the net price. Taxes to be calculated in checkout.

Fig. 1
Fig. 2
Fig. 3
Fig. 4
Fig. 5
Fig. 6
Fig. 7


  1. Babovic V (2005) Data mining in hydrology. Hydrological Processes: An International Journal 19(7):1511–1515

  2. Bawa KS, Seidler R (2015) Deforestation and sustainable mixed-use landscapes: a view from the eastern Himalaya1. Ann Mo Bot Gard 100:141–149.

  3. Chadalawada J, Havlicek V, Babovic V (2017) A genetic programming approach to system identification of rainfall-runoff models. Water Resour Manag 31(12):3975–3992

  4. Cramer S, Kampouridis M, Freitas AA (2018) Decomposition genetic programming: an extensive evaluation on rainfall prediction in the context of weather derivatives. Appl Soft Comput 70:208–224.

  5. Danandeh Mehr A, Nourani V, Karimi Khosrowshahi V, Ghorbani MA (2018) A hybrid support vector regression–firefly model for monthly rainfall forecasting. Int J Environ Sci Technol 16:335–346.

  6. de Abreu-Harbich LV, Labaki LC, Matzarakis A (2015) Effect of tree planting design and tree species on human thermal comfort in the tropics. Landsc Urban Plan 138:99–109.

  7. Deo RC, Samui P (2017) Forecasting evaporative loss by Least-Square support-vector regression and evaluation with genetic programming, Gaussian process, and Minimax probability machine regression: case study of Brisbane City. J Hydrol Eng 22:05017003.

  8. Dhanalakshmi M, Sowmya N, Chandrashekar A (2015) A comparative study on egg shell concrete with partial replacement of cement by fly ash. International Journal of Engineering Research and Technology 4:153–1538

  9. Diop L, Bodian A, Djaman K, Yaseen ZM, Deo RC, el-shafie A, Brown LC (2018) The influence of climatic inputs on stream-flow pattern forecasting: case study of upper Senegal River. Environ Earth Sci 77:182–113.

  10. Farajzadeh J, Alizadeh F (2017) A hybrid linear–nonlinear approach to predict the monthly rainfall over the Urmia Lake watershed using wavelet-SARIMAX-LSSVM conjugated model. J Hydroinf 20:246–262.

  11. French MN, Krajewski WF, Cuykendall RR (1992) Rainfall forecasting in space and time using a neural network. J Hydrol 137:1–31.

  12. Giustolisi O (2004) Using genetic programming to determine Chezy resistance coefficient in corrugated channels. J Hydroinf 6(3):157–173

  13. Harris EL, Babovic V, Falconer RA (2003) Velocity predictions in compound channels with vegetated floodplains using genetic programming. International Journal of River Basin Management 1(2):117–123

  14. Heald CL, Spracklen DV (2015) Land use change impacts on air quality and climate. Chem Rev 115:4476–4496.

  15. Kaushik, I., & Singh, S. M. (2008). Seasonal ARIMA model for forecasting of monthly rainfall and temperature. Journal of Environmental Research and Development, 3(2), 506-514.

  16. Kisi O, Cimen M (2012) Precipitation forecasting by using wavelet-support vector machine conjunction model. Eng Appl Artif Intell 25:783–792.

  17. Mirjalili S, Lewis A (2016) The whale optimization algorithm. Adv Eng Softw 95:51–67.

  18. Mohanty S, Jha MK, Kumar A, Panda DK (2013) Comparative evaluation of numerical model and artificial neural network for simulating groundwater flow in Kathajodi-Surua inter-basin of Odisha, India. J Hydrol 495:38–51.

  19. Momani PENM (2009) Time series analysis model for rainfall data in Jordan: case study for using time series analysis. Am J Environ Sci.

  20. Moustris KP, Larissi IK, Nastos PT, Paliatsos AG (2011) Precipitation forecast using artificial neural networks in specific regions of Greece. Water Resour Manag 25:1979–1993.

  21. Naganna S, Deka P, Ghorbani M et al (2019) Dew point temperature estimation: application of artificial intelligence model integrated with nature-inspired optimization algorithms. Water.

  22. Nastos PT, Paliatsos AG, Koukouletsos KV et al (2014) Artificial neural networks modeling for forecasting the maximum daily total precipitation at Athens, Greece. Atmos Res 144:141–150.

  23. Nirmala M, Sundaram SM (2010) A seasonal Arima model for forecasting monthly rainfall in Tamilnadu

  24. Nourani V, Alami MT, Aminfar MH (2009) A combined neural-wavelet model for prediction of Ligvanchai watershed precipitation. Eng Appl Artif Intell 22(3):466–472

  25. Pongracz R, Bartholy J, Bogardi I (2001) Fuzzy rule-based prediction of monthly precipitation. Physics and Chemistry of the Earth, Part B: Hydrology, Oceans and Atmosphere 26:663–667.

  26. Pradhan A, Khatua KK (2017) Gene expression programming to predict Manning's n in meandering flows. Can J Civ Eng 45(4):304–313

  27. Qasem SN, Samadianfard S, Kheshtgar S et al (2019) Modeling monthly pan evaporation using wavelet support vector regression and wavelet artificial neural networks in arid and humid climates. Engineering Applications of Computational Fluid Mechanics.

  28. Samadianfard S, Ghorbani MA, Mohammadi B (2018) Forecasting soil temperature at multiple-depth with a hybrid artificial neural network model coupled hybrid firefly optimizer algorithm. Information Processing in Agriculture 5:465–476

  29. Samadianfard S, Majnooni-Heris A, Qasem SN et al (2019) Daily global solar radiation modeling using data-driven techniques and empirical equations in a semi-arid climate. Engineering Applications of Computational Fluid Mechanics 13:142–157.

  30. Saxena A, Verma N, Tripathi KC (2014) Neuro-genetic hybrid approach for rainfall forecasting. International Journal of Computer Science and Information Technologies 5(2):1291–1295

  31. Shamshirband S, Gocic M, Petkovic D et al (2014) Soft-computing methodologies for precipitation estimation: a case study. IEEE journal of selected topics in applied earth observations and remote sensing:1–6.

  32. Solgi A, Nourani V, Pourhaghi A (2014) Forecasting daily precipitation using hybrid model of wavelet-artificial neural network and comparison with adaptive neurofuzzy inference system (case study: Verayneh Station, Nahavand). Advances in Civil Engineering 2014:1–12.

  33. Srivastava G, Panda SN, Mondal P, Liu J (2010) Forecasting of rainfall using ocean-atmospheric indices with a fuzzy neural technique. J Hydrol 395:190–198.

  34. van Eekelen MW, Bastiaanssen WGM, Jarmain C et al (2015) A novel approach to estimate direct and indirect water withdrawals from satellite measurements: a case study from the Incomati basin. Agric Ecosyst Environ 200:126–142.

  35. Venkata Ramana R, Krishna B, Kumar SR, Pandey NG (2013) Monthly rainfall prediction using wavelet neural network analysis. Water Resour Manag 27:3697–3711.

  36. Yaseen ZM, Ebtehaj I, Bonakdari H et al (2017) Novel approach for streamflow forecasting using a hybrid ANFIS-FFA model

  37. Yaseen ZM, Ramal MM, Diop L, Jaafar O, Demir V, Kisi O (2018) Hybrid adaptive Neuro-fuzzy models for water quality index estimation. Water Resour Manag 32:2227–2245.

Download references

Author information

Correspondence to Saeed Samadianfard.

Ethics declarations

Conflict of Interest

The authors declare there is no conflict of interest to any party.

Additional information

Publisher’s Note

Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Rights and permissions

Reprints and Permissions

About this article

Verify currency and authenticity via CrossMark

Cite this article

Diop, L., Samadianfard, S., Bodian, A. et al. Annual Rainfall Forecasting Using Hybrid Artificial Intelligence Model: Integration of Multilayer Perceptron with Whale Optimization Algorithm. Water Resour Manage (2020) doi:10.1007/s11269-019-02473-8

Download citation


  • Annual precipitation
  • Multilayer perceptron model
  • Whale optimization algorithm
  • Hybrid predictive model