Skip to main content
Log in

Convolutional Neural Network- ANN- E (Tanh): A New Deep Learning Model for Predicting Rainfall

  • Published:
Water Resources Management Aims and scope Submit manuscript

Abstract

The prediction of rainfall is essential for monitoring droughts and floods. The purpose of this paper is to develop a deep learning model for predicting monthly rainfall. The new model is used to predict rainfall in the Kashan plain of Iran. This study combines a deep learning model with an artificial neural network (ANN) model to predict rainfall. In this study, a convolutional neural network (CONV) is used as a deep learning model. The paper also introduces a new activation function called E-Tanh to develop ANN models. The new model has two main advantages. The model automatically determines key features. In addition, the new activation function can enhance the precision of ANN models. Lagged rainfall values are inserted into the models to predict rainfall. This study uses a bat optimization algorithm to choose inputs. At the training level, the mean absolute percentage errors (MAPES) of CONV-ANN-ANN-E-Tanh, CONV, and ANN-E-Tanh were 0.5%, 1%, and 2%, respectively. At the testing level, the MAPEs of CONV-ANN -E-Tanh, CONV, and ANN-E-Tanh were 1%, 3%, and 4%, respectively. The E-Tanh performed better than other activation functions based on error function values. Also, the CONV-ANN-E-Tanh can reduce CPU time. Our results show that the new hybrid model is a reliable tool for simulating complex phenomena.

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

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Fig. 1
Fig. 2
Fig. 3
Fig. 4
Fig. 5
Fig. 6
Fig. 7
Fig. 8
Fig. 9
Fig. 10
Fig. 11

Similar content being viewed by others

Data Availability

The datasets generated during and/or analyzed during the current study are available from the corresponding author on reasonable request.

References

  • Adaryani FR, Mousavi SJ, Jafari F (2022) Short-term rainfall forecasting using machine learning-based approaches of PSO-SVR, LSTM and CNN. J Hydrol 614:128463

    Article  Google Scholar 

  • Chong KL, Lai SH, Yao Y, Ahmed AN, Jaafar WZW, El-Shafie A (2020) Performance enhancement model for rainfall forecasting utilizing integrated wavelet-convolutional neural network. Water Resour Manag

  • Das P, Sachindra DA, Chanda K (2022) Machine learning-based rainfall forecasting with multiple non-linear feature selection algorithms. Water Resour Manag 36:6043–6071

    Article  Google Scholar 

  • Ehteram M, Panahi F, Ahmed AN, Mosavi AH, El-Shafie A (2022) Inclusive multiple model using hybrid artificial neural networks for predicting evaporation. Front Environ Sci

  • Farrokhi A, Farzin S, Mousavi SF (2021) Meteorological drought analysis in response to climate change conditions, based on combined four-dimensional vine copulas and data mining (VC-DM). J Hydrol 603:127135

  • Ghanbari-Adivi E, Ehteram M, Farrokhi A, Sheikh Khozani Z (2022) Combining radial basis function neural network models and inclusive multiple models for predicting suspended sediment loads. Water Resour Manag 36(11):4313–4342

  • Ghimire S, Nguyen-Huy T, Prasad R, Deo RC, Casillas-Perez D, Salcedo-Sanz S, Bhandari B (2022) Hybrid convolutional neural network-multilayer perceptron model for solar radiation prediction. Cognit Comput 1–27

  • Haidar A, Verma B (2018) Monthly rainfall forecasting using one-dimensional deep convolutional neural network. IEEE Access

  • Hosseini SM, Mahjouri N (2016) Integrating support vector regression and a geomorphologic artificial neural network for daily rainfall-runoff modeling. Appl Soft Comput J

  • Hu C, Wu Q, Li H, Jian S, Li N, Lou Z (2018) Deep learning with a long short-term memory networks approach for rainfall-runoff simulation. Water (Switzerland). https://doi.org/10.3390/w10111543

  • Kalaiselvi T, Padmapriya ST, Somasundaram K, Praveenkumar S (2022) E-Tanh: a novel activation function for image processing neural network models. Neural Comput Appl 34(19):16563–16575

    Article  Google Scholar 

  • Kattenborn T, Leitloff J, Schiefer F, Hinz S (2021) Review on Convolutional Neural Networks (CNN) in vegetation remote sensing. ISPRS J Photogramm Remote Sens 173:24–49

    Article  Google Scholar 

  • Kumar R, Singh MP, Roy B, Shahid AH (2021) A comparative assessment of metaheuristic optimized extreme learning machine and deep neural network in multi-step-ahead long-term rainfall prediction for all-Indian regions. Water Resour Manag

  • Li W, Pan B, Xia J, Duan Q (2022) Convolutional neural network-based statistical post-processing of ensemble precipitation forecasts. J Hydrol 605:127301

    Article  Google Scholar 

  • Lu S, Wang SH, Zhang YD (2021) Detection of abnormal brain in MRI via improved AlexNet and ELM optimized by chaotic bat algorithm. Neural Comput Appl 33(17):10799–10811

    Article  Google Scholar 

  • Mao G, Wang M, Liu J, Wang Z, Wang K, Meng Y, Zhong R, Wang H, Li Y (2021) Comprehensive comparison of artificial neural networks and long short-term memory networks for rainfall-runoff simulation. Phys Chem Earth. https://doi.org/10.1016/j.pce.2021.103026

    Article  Google Scholar 

  • Nair A, Singh G, Mohanty UC (2018) Prediction of monthly summer monsoon rainfall using global climate models through artificial neural network technique. Pure Appl Geophys

  • Ni L, Wang D, Singh VP, Wu J, Wang Y, Tao Y, Zhang J (2020) Streamflow and rainfall forecasting by two long short-term memory-based models. J Hydrol

  • Ouma YO, Cheruyot R, Wachera AN (2022) Rainfall and runoff time-series trend analysis using LSTM recurrent neural network and wavelet neural network with satellite-based meteorological data: case study of Nzoia hydrologic basin. Complex Intell Syst 8(1):213–236

    Article  Google Scholar 

  • Ouyang Q, Lu W, Xin X, Zhang Y, Cheng W, Yu T (2016) Monthly rainfall forecasting using EEMD-SVR based on phase-space reconstruction. Water Resour Manag

  • Panahi F, Ehteram M, Ahmed AN, Huang YF, Mosavi A, El-Shafie A (2021) Streamflow prediction with large climate indices using several hybrid multilayer perceptrons and copula Bayesian model averaging. Ecol Indic

  • Pérez-Alarcón A, Garcia-Cortes D, Fernández-Alvarez JC, Martínez-González Y (2022) Improving monthly rainfall forecast in a watershed by combining neural networks and autoregressive models. Environ Process 9(3):1–26

    Article  Google Scholar 

  • Poornima S, Pushpalatha M (2019) Prediction of rainfall using intensified LSTM based recurrent Neural Network with Weighted Linear Units. Atmosphere. https://doi.org/10.3390/atmos10110668

    Article  Google Scholar 

  • Seifi A, Ehteram M, Soroush F, Haghighi AT (2022) Multi-model ensemble prediction of pan evaporation based on the Copula Bayesian Model Averaging approach. Eng Appl Artif Intell 114:105124. https://doi.org/10.1016/j.engappai.2022.105124

    Article  Google Scholar 

  • Soleimanpour SM, Gholami H, Rahmati O et al (2023) Fingerprinting sources of fine-grained sediment deposited in a riverine system by GLUE. Water Resour Manag

  • Van SP, Le HM, Thanh DV, Dang TD, Loc HH, Anh DT (2020) Deep learning convolutional neural network in rainfall-runoff modelling. J Hydroinformatics

  • Venkata Ramana R, Krishna B, Kumar SR, Pandey NG (2013) Monthly rainfall prediction using wavelet neural network analysis. Water Resour Manag

  • Wu CL, Chau KW (2013) Prediction of rainfall time series using modular soft computingmethods. Eng Appl Artif Intell

  • Xu Y, Liu Y, Jiang Z et al (2022) Improved convolutional neural network and its application in non-periodical runoff prediction. Water Resour Manag 36:6149–6168

    Article  Google Scholar 

  • Yang Q, Dong N, Zhang J (2021) An enhanced adaptive bat algorithm for microgrid energy scheduling. Energy

  • Zeynoddin M, Bonakdari H, Azari A, Ebtehaj I, Gharabaghi B, Madavar HR (2018) Novel hybrid linear stochastic with non-linear extreme learning machine methods for forecasting monthly rainfall a tropical climate. J Environ Manag

  • Zhang CJ, Wang HY, Zeng J, Ma L M, Guan L (2020) Tiny-RainNet: a deep convolutional neural network with bi-directional long short-term memory model for short-term rainfall prediction. Meteorol Appl

  • Zhang Z, Tian J, Huang W, Yin L, Zheng W, Liu S (2021) A haze prediction method based on one-dimensional convolutional neural network. Atmosphere

Download references

Author information

Authors and Affiliations

Authors

Contributions

Formal analysis: Mahdie Afsharinia, Moahammad Ehteram, writing, review, and editing: Fatemh Panahi, Mohammad Ehteram.

Corresponding author

Correspondence to Fatemeh Panahi.

Ethics declarations

Ethical Approval

Informed consent.

Consent to Participate

The authors consent to publish.

Consent to Publish

The authors agree to publish.

Competing Interest

The authors declare 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.

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

Afshari Nia, M., Panahi, F. & Ehteram, M. Convolutional Neural Network- ANN- E (Tanh): A New Deep Learning Model for Predicting Rainfall. Water Resour Manage 37, 1785–1810 (2023). https://doi.org/10.1007/s11269-023-03454-8

Download citation

  • Received:

  • Accepted:

  • Published:

  • Issue Date:

  • DOI: https://doi.org/10.1007/s11269-023-03454-8

Keywords

Navigation