# Flood Prediction and Uncertainty Estimation Using Deep Learning

^{*}

## Abstract

**:**

## 1. Introduction

## 2. Materials and Methods

#### 2.1. LSTM Network

^{w}x*

_{1},….x

_{n}} and output vector, Y = {y

_{1},…..,y

_{n}}. The gates consist of a sigmoid neural network layer and a point wise multiplication operator. A value of one indicates letting through all data while a value of zero does not allow any of the data to be used. The first gate layer (the “forget” gate layer, represented in “yellow” in Figure 2) takes output from the previous step (y

_{t − 1}) and current input (x

_{t}) and outputs a value between 0 and 1, indicating how much information is to be passed on. The output from the “forget” gate is represented by f

_{t}in Equation (2), where matrices U and W contain weights and recurrent connections respectively.

_{t}= σ(x

_{t}U

^{f}+ y

_{t − 1}W

^{f})

_{t}= σ(x

_{t}U

^{i}+ y

_{t − 1}W

^{i})

_{t}= tanh (x

_{t}U

^{g}+ y

_{t − 1}W

^{g})

_{t}) which has minor interactions with rest of the components. The old state (C

_{t − 1}) is multiplied by f

_{t}to allow for the possible “forgetting” of the corresponding information. In the next step, the product of i

_{t}and Ĉ

_{t}is added to provide new information to the cell state as shown in the Equation (5).

_{t}= f

_{t}C

_{t − 1}+ i

_{t}Ĉ

_{t }

_{t}) as shown in Equations (6) and (7).

_{t}= σ(x

_{t}U

^{o}+ y

_{t − 1}W

^{o})

_{t}= tanh(C

_{t}) × o

_{t}

#### 2.2. Performamnce Metrics

_{i}) values and RMSE measures square root of the mean of the squared errors. Lower values indicate a better model fit for the data for both the metrics. With RMSE, the errors are squared before the average, therefore, prioritizes larger errors. In situations where larger differences can affect the model, RMSE can be a better evaluation measure, otherwise MAE is more appropriate.

#### 2.3. Uncertainty Modeling

_{1},….x

_{n}} and outputs Y = {y

_{1},…..,y

_{n}}, the resulting function developed by the forecasting algorithm is given by Y = f

^{ω}(X), where “ω” represents the parameters of the algorithm. In this case, “ω” represents the weights and bias of the LSTM network. With Bayesian modeling, a prior distribution of the model parameters p(ω) is assumed. The corresponding likelihood distribution is defined by p(y|x, ω ). A posterior distribution is then evaluated after observing the data using Bayes’ theorem as given in Equation (10).

^{*}) on all the values of “ω” [36].

^{ω}(x*), ω) p(ω|X,Y) dω

^{i}(x) represents the network in each iteration and “p” represents the prior distribution of the network parameters.

_{m, …..,}x

_{n}) of the original training data (X = x

_{1, …..,}x

_{n}) is selected. The value of “m” or the starting point of the subset is randomly generated from a set of values, a larger range of these values results in a larger variation allowing for the control of the uncertainty estimates. Finally, the three different techniques adding input noise, dropout and data sub-selection are compared to identify the better model for this problem.

#### 2.4. Quality of Uncertainty

#### 2.5. Data

## 3. Results

#### 3.1. Comparison of Statistical and Deep Learning for Gauge Height Prediction

#### 3.2. Effect of Dropout on Model Performance

#### 3.3. Uncertainty Estimation

#### 3.4. Model Validation

## 4. Discussion

## Author Contributions

## Funding

## Conflicts of Interest

## References

- Sieg, T.; Schinko, T.; Vogel, K.; Mechler, R.; Merz, B.; Kreibich, H. Integrated assessment of short-term direct and indirect economic flood impacts including uncertainty quantification. PLoS ONE
**2019**, 14, e0212932. [Google Scholar] [CrossRef] [PubMed][Green Version] - Faiz, M.A.; Liu, D.; Fu, Q.; Qamar, M.; Dong, S.; Khan, M.; Li, T. Complexity and trends analysis of hydrometeorological time series for a river streamflow: A case study of Songhua River Basin, China. River Res. Appl.
**2017**, 34, 101–111. [Google Scholar] [CrossRef] - Pitt, M. Learning lessons from the 2007 floods. In The Pitt Review; Cabinet Office: London, UK, 2008. [Google Scholar]
- Mosavi, A.; Ozturk, P.; Chau, K.-W. Flood Prediction Using Machine Learning Models: Literature Review. Water
**2018**, 10, 1536. [Google Scholar] [CrossRef][Green Version] - Cea, L.; Garrido, M.; Puertas, J. Experimental validation of two-dimensional depth-averaged models for forecasting rainfall–runoff from precipitation data in urban areas. J. Hydrol.
**2010**, 382, 88–102. [Google Scholar] [CrossRef] - Costabile, P.; Macchione, F. Enhancing river model set-up for 2-D dynamic flood modelling. Environ. Model. Softw.
**2015**, 67, 89–107. [Google Scholar] [CrossRef] - Liang, X.; Lettenmaier, D.P.; Wood, E.; Burges, S.J. A simple hydrologically based model of land surface water and energy fluxes for general circulation models. J. Geophys. Res. Space Phys.
**1994**, 99, 14415. [Google Scholar] [CrossRef] - Costabile, P.; Costanzo, C.; Macchione, F. Two-dimensional numerical models for overland flow simulations. River Basin Manag. V
**2009**, 124, 137–148. [Google Scholar] - Fraga, I.; Cea, L.; Puertas, J. MERLIN: A flood hazard forecasting system for coastal river reaches. Nat. Hazards
**2020**, 100, 1171–1193. [Google Scholar] [CrossRef] - Honert, R.V.D.; McAneney, J. The 2011 Brisbane Floods: Causes, Impacts and Implications. Water
**2011**, 3, 1149–1173. [Google Scholar] [CrossRef][Green Version] - Bout, B.; Jetten, V. The validity of flow approximations when simulating catchment-integrated flash floods. J. Hydrol.
**2018**, 556, 674–688. [Google Scholar] [CrossRef] - Costabile, P.; Macchione, F.; Natale, L.; Petaccia, G. Flood mapping using LIDAR DEM. Limitations of the 1-D modeling highlighted by the 2-D approach. Nat. Hazards
**2015**, 77, 181–204. [Google Scholar] [CrossRef] - Sopelana, J.; Cea, L.; Ruano, S. A continuous simulation approach for the estimation of extreme flood inundation in coastal river reaches affected by meso- and macrotides. Nat. Hazards
**2018**, 93, 1337–1358. [Google Scholar] [CrossRef] - Bellos, V.; Tsakiris, G. A hybrid method for flood simulation in small catchments combining hydrodynamic and hydrological techniques. J. Hydrol.
**2016**, 540, 331–339. [Google Scholar] [CrossRef] - Hernández, F.; Liang, X. Hybridizing Bayesian and variational data assimilation for high-resolution hydrologic forecasting. Hydrol. Earth Syst. Sci.
**2018**, 22, 5759–5779. [Google Scholar] [CrossRef][Green Version] - Ferraro, D.; Costabile, P.; Costanzo, C.; Petaccia, G.; Macchione, F. A spectral analysis approach for the a priori generation of computational grids in the 2-D hydrodynamic-based runoff simulations at a basin scale. J. Hydrol.
**2020**, 582, 124508. [Google Scholar] [CrossRef] - Adamowski, J.; Chan, H.F.; Prasher, S.O.; Ozga-Zielinski, B.; Sliusarieva, A. Comparison of multiple linear and nonlinear regression, autoregressive integrated moving average, artificial neural network, and wavelet artificial neural network methods for urban water demand forecasting in Montreal, Canada. Water Resour. Res.
**2012**, 48, 1–14. [Google Scholar] [CrossRef] - Valipour, M.; Banihabib, M.E.; Behbahani, S.M.R. Comparison of the ARMA, ARIMA, and the autoregressive artificial neural network models in forecasting the monthly inflow of Dez dam reservoir. J. Hydrol.
**2013**, 476, 433–441. [Google Scholar] [CrossRef] - Bermúdez, M.; Cea, L.; Puertas, J. A rapid flood inundation model for hazard mapping based on least squares support vector machine regression. J. Flood Risk Manag.
**2019**, 12, e12522. [Google Scholar] [CrossRef][Green Version] - Thompson, S.A. Hydrology of Water Management; CRC Press: Boca Raton, FL, USA, 2017. [Google Scholar]
- Mekanik, F.; Imteaz, M.; Gato-Trinidad, S.; Elmahdi, A. Multiple regression and Artificial Neural Network for long-term rainfall forecasting using large scale climate modes. J. Hydrol.
**2013**, 503, 11–21. [Google Scholar] [CrossRef] - Abbot, J.; Marohasy, J. Input selection and optimisation for monthly rainfall forecasting in Queensland, Australia, using artificial neural networks. Atmos. Res.
**2014**, 138, 166–178. [Google Scholar] [CrossRef] - Ortiz-Garcia, E.; Salcedo-Sanz, S.; Casanova-Mateo, C. Accurate precipitation prediction with support vector classifiers: A study including novel predictive variables and observational data. Atmos. Res.
**2014**, 139, 128–136. [Google Scholar] [CrossRef] - Kim, S.Y.; Matsumi, Y.; Pan, S.; Mase, H. A real-time forecast model using artificial neural network for after-runner storm surges on the Tottori coast, Japan. Ocean Eng.
**2016**, 122, 44–53. [Google Scholar] [CrossRef] - Dineva, A.; Várkonyi-Kóczy, A.R.; Tar, J.K. Fuzzy expert system for automatic wavelet shrinkage procedure selection for noise suppression. In Proceedings of the IEEE 18th International Conference on Intelligent Engineering Systems INES 2014, Tihany, Hungary, 3–5 July 2014; pp. 163–168. [Google Scholar]
- Asanjan, A.A.; Yang, T.; Hsu, K.; Sorooshian, S.; Lin, J.; Peng, Q. Short-Term Precipitation Forecast Based on the PERSIANN System and LSTM Recurrent Neural Networks. J. Geophys. Res. Atmos.
**2018**, 123, 543. [Google Scholar] - Hu, C.; Wu, Q.; Li, H.; Jian, S.; Li, N.; Lou, Z. Deep Learning with a Long Short-Term Memory Networks Approach for Rainfall-Runoff Simulation. Water
**2018**, 10, 1543. [Google Scholar] [CrossRef][Green Version] - Zhang, D.; Martinez, N.; Lindholm, G.; Ratnaweera, H. Manage Sewer In-Line Storage Control Using Hydraulic Model and Recurrent Neural Network. Water Resour. Manag.
**2018**, 32, 2079–2098. [Google Scholar] [CrossRef] - Kratzert, F.; Klotz, D.; Brenner, C.; Schulz, K.; Herrnegger, M. Rainfall–runoff modelling using long short-term memory (LSTM) networks. Hydrol. Earth Syst. Sci.
**2018**, 22, 6005–6022. [Google Scholar] [CrossRef][Green Version] - Ogunmolu, O.; Gu, X.; Jiang, S.; Gans, N. Nonlinear Systems Identification Using Deep Dynamic Neural Networks. arXiv
**2016**, arXiv:1610.01439. [Google Scholar] - Dietz, R.; Casavant, T.; Scheetz, T.; Braun, T.; Andersland, M. Modeling the impact of run-time uncertainty on optimal computation scheduling using feedback. In Proceedings of the 1997 International Conference on Parallel Processing (Cat. No.97TB100162), Bloomington, IL, USA, 11–15 August 1997; pp. 481–488. [Google Scholar]
- Zhu, L.; Laptev, N. Deep and Confident Prediction for Time Series at Uber. In Proceedings of the 2017 IEEE International Conference on Data Mining Workshops (ICDMW), New Orleans, LA, USA, 18–21 November 2017; pp. 103–110. [Google Scholar]
- Paisley, J.; Blei, D.M.; Jordan, M.I. Variational Bayesian inference with stochastic search. Int. Conf. Mach. Learn.
**2012**, 2, 1367–1374. [Google Scholar] - Kingma, D.P.; Welling, M. Auto-encoding variational bayes. Int. Conf. Learn. Represent.
**2014**, 1–14. Available online: https://dare.uva.nl/search?identifier=cf65ba0f-d88f-4a49-8ebd-3a7fce86edd7 (accessed on 21 March 2020). - Hernández-Lobato, J.M.; Adams, R.P. Probabilistic backpropagation for scalable learning of Bayesian neural networks. Int. Conf. Mach. Learn.
**2015**, 3, 1861–1869. [Google Scholar] - Gal, Y.; Ghahramani, Z. Dropout as a Bayesian approximation: Representing model uncertainty in deep learning. Int. Conf. Mach. Learn.
**2016**, 3, 1651–1660. [Google Scholar] - Hernández-Lobato, J.M.; Li, Y.; Rowland, M.; Hernández-Lobato, D.; Bui, T.D.; Ttarner, R.E. Black-Box α-divergence minimization. Int. Conf. Mach. Learn.
**2016**, 4, 2256–2273. [Google Scholar] - Li, Y.; Gal, Y. Dropout Inference in Bayesian Neural Networks with Alpha-divergences. Conf. Mach. Learn.
**2017**, 5, 3219–3232. [Google Scholar] - Missouri Department of Transportation. 2015 St. Louis District Traffic Volume and Commercial Vehicle Count Map. Available online: https://www.modot.org/sites/default/files/documents/2015._Traffic_SL_06212016%5B1%5D.pdf (accessed on 9 March 2020).
- USGS Water Data for the Nation. Available online: https://waterdata.usgs.gov/nwis (accessed on 17 December 2019).
- Spanos, A. Akaike-type criteria and the reliability of inference: Model selection versus statistical model specification. J. Econ.
**2010**, 158, 204–220. [Google Scholar] [CrossRef] - Flood Inundation Mapper. Available online: https://fim.wim.usgs.gov/fim/ (accessed on 17 December 2019).

**Figure 3.**Gauge location in Meramec River [40].

**Figure 12.**Available flood mapping locations in Flood Inundation Mapper (FIM) [42].

Parameters | AIC | BIC |
---|---|---|

(0,1,1) | −258,152.156 | −258,123.893 |

(0,1,0) | −248,137.561 | −248,118.719 |

(1,1,0) | −266,952.850 | −266,924.587 |

(2,1,2) | −303,596.995 | −303,540.467 |

(1,1,2) | −303,594.450 | −303,547.344 |

(2,1,1) | −303,212.512 | −303,165.405 |

(3,1,2) | −303,479.822 | −303,413.873 |

(2,1,3) | −303,605.067 | −303,539.118 |

(1,1,3) | −303,607.796 | −303,551.268 |

(0,1,3) | −278,432.067 | −278,384.961 |

(1,1,4) | −303,601.785 | −303,535.836 |

(0,1,2) | −270,281.324 | −270,243.639 |

(0,1,4) | −283,568.922 | −283,512.394 |

(2,1,4) | −303,603.607 | −303,528.236 |

Layers | Output |
---|---|

Input Layer | (None,1,90) |

LSTM Layer | (None,20) |

Dense Layer | (None,1) |

Forecasts | 1 |

Model | RMSE | MAE |
---|---|---|

ARIMA | 2.0813 | 1.9442 |

LSTM | 1.9558 | 1.7010 |

**Table 4.**Root mean square error and mean absolute error results of LSTM and ARIMA on “Out of sample” predictions.

Model | RMSE | MAE |
---|---|---|

ARIMA | 0.8722 | 0.6732 |

LSTM | 0.3316 | 0.2595 |

Model | RMSE | MAE |
---|---|---|

Without dropout | 0.1965 | 0.1216 |

Dropout—0.2 | 0.5585 | 0.2817 |

Dropout—0.4 | 0.8825 | 0.4082 |

Dropout—0.6 | 1.6377 | 0.8777 |

Dropout—0.8 | 2.6855 | 1.6808 |

Model | RMSE | MAE | Uncertainty Area |
---|---|---|---|

Dropout | 3.4672 | 2.3763 | 2703.8913 |

Noise | 3.6540 | 2.5444 | 3039.4859 |

Data sub-selection | 3.5430 | 2.7603 | 1376.0500 |

© 2020 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (http://creativecommons.org/licenses/by/4.0/).

## Share and Cite

**MDPI and ACS Style**

Gude, V.; Corns, S.; Long, S. Flood Prediction and Uncertainty Estimation Using Deep Learning. *Water* **2020**, *12*, 884.
https://doi.org/10.3390/w12030884

**AMA Style**

Gude V, Corns S, Long S. Flood Prediction and Uncertainty Estimation Using Deep Learning. *Water*. 2020; 12(3):884.
https://doi.org/10.3390/w12030884

**Chicago/Turabian Style**

Gude, Vinayaka, Steven Corns, and Suzanna Long. 2020. "Flood Prediction and Uncertainty Estimation Using Deep Learning" *Water* 12, no. 3: 884.
https://doi.org/10.3390/w12030884