Articles | Volume 26, issue 15
https://doi.org/10.5194/hess-26-4013-2022
https://doi.org/10.5194/hess-26-4013-2022
Research article
 | 
05 Aug 2022
Research article |  | 05 Aug 2022

Flood forecasting with machine learning models in an operational framework

Sella Nevo, Efrat Morin, Adi Gerzi Rosenthal, Asher Metzger, Chen Barshai, Dana Weitzner, Dafi Voloshin, Frederik Kratzert, Gal Elidan, Gideon Dror, Gregory Begelman, Grey Nearing, Guy Shalev, Hila Noga, Ira Shavitt, Liora Yuklea, Moriah Royz, Niv Giladi, Nofar Peled Levi, Ofir Reich, Oren Gilon, Ronnie Maor, Shahar Timnat, Tal Shechter, Vladimir Anisimov, Yotam Gigi, Yuval Levin, Zach Moshe, Zvika Ben-Haim, Avinatan Hassidim, and Yossi Matias
Abstract

Google's operational flood forecasting system was developed to provide accurate real-time flood warnings to agencies and the public with a focus on riverine floods in large, gauged rivers. It became operational in 2018 and has since expanded geographically. This forecasting system consists of four subsystems: data validation, stage forecasting, inundation modeling, and alert distribution. Machine learning is used for two of the subsystems. Stage forecasting is modeled with the long short-term memory (LSTM) networks and the linear models. Flood inundation is computed with the thresholding and the manifold models, where the former computes inundation extent and the latter computes both inundation extent and depth. The manifold model, presented here for the first time, provides a machine-learning alternative to hydraulic modeling of flood inundation. When evaluated on historical data, all models achieve sufficiently high-performance metrics for operational use. The LSTM showed higher skills than the linear model, while the thresholding and manifold models achieved similar performance metrics for modeling inundation extent. During the 2021 monsoon season, the flood warning system was operational in India and Bangladesh, covering flood-prone regions around rivers with a total area close to 470 000 km2, home to more than 350 000 000 people. More than 100 000 000 flood alerts were sent to affected populations, to relevant authorities, and to emergency organizations. Current and future work on the system includes extending coverage to additional flood-prone locations and improving modeling capabilities and accuracy.

1 Introduction

Floods are a major natural threat to populations worldwide causing thousands of fatalities and resulting in large economic damages annually. Jonkman (2005) analyzed a natural disaster database (EM-DAT, 2021) and found that over a 27-year period, more than 175 000 people were killed and close to 2.2 billion were affected by floods worldwide. These numbers are likely an underestimation due to unreported events. Furthermore, United Nations office for disaster risk reduction (UNISDR) (2015) reported flooding to be the most frequent weather-related natural disaster, affecting the largest number of people globally and with annual economic damage of more than USD 30 billion. Population growth, urbanization, and the changing climate have led to an increase in these numbers in recent decades – a trend that is likely to continue (Blöschl et al., 2019). Flooding vulnerability is especially significant in low-income and middle-income countries where adequate flood mitigation measures are often lacking or of limited quality and floodplains are often heavily populated (Alfieri et al., 2018). In such regions, operational flood warning systems are key to saving lives and reducing risks and damages (Hallegatte, 2012; World Meteorological Association, 2013).

Operational flood warning systems vary in their structure, data sources, and model types depending on their specific target region, size of basins, available data and resources, and the system development approach (e.g., Addor et al., 2011; Emerton et al., 2016; Georgakakos, 2018; Krajewski et al., 2017; Rotach et al., 2009; Shrestha et al., 2015; Werner et al., 2009; Zappa et al., 2008; among many others). Many of the systems include real-time or forecast weather forcing data as an input into hydrological models which, in turn, compute runoff and route flow through the river network, outputting streamflow at locations of interest. Flood warning systems often include an inundation modeling component (Teng et al., 2017) that translates the forecasted streamflow into a mapping of flood extent and depth (e.g., Bhatt et al., 2017; de Almeida et al., 2012). Inundation patterns in large rivers are often complex and depend on the river's morphology (e.g., meandering or braided rivers) and floodplain properties such as the topography and land cover. They are also influenced by human actions, for example, structures that alter the natural flow of the water over the floodplain.

While flood warning systems are deployed in operational frameworks in different regions across the world, there is a lack of evaluation studies of such systems, presumably resulting from the difficulty in accessing ground truth data and the lower priority of the evaluation task in an operational environment (exceptions can be found in Addor et al., 2011; Rotach et al., 2009; Welles and Sorooshian, 2009; Zalenski et al., 2017). It is important, however, to encourage agencies and companies responsible for flood warning operations to invest effort in evaluating and reporting performances, not only for assessing the forecast and warning reliability but also for benchmarking and developing the common scientific knowledge that can lead to further improvement and innovation. In the current study, we hope to contribute to this scientific effort.

Two main modeling components are important for flood warning systems; these are (i) a streamflow forecast model and (ii) an inundation model. Recent advances in the accuracy of data-driven and machine learning (ML) methods have affected a large variety of real-life applications (e.g., He et al., 2016; Devlin et al., 2019) and encourage the use of such methodologies as core drivers for those two modeling components. Earlier studies showed the potential of such models (e.g., Hsu et al., 1995; Tiwari and Chatterjee, 2010). More recent studies have found ML, and especially deep learning methods, to be a promising approach for streamflow modeling, providing improvements over prominent conceptual models in prediction accuracy, scalability, and regional generalization (e.g., Mosavi et al., 2018). Kratzert et al. (2019b) showed improved predictions relative to conceptual models by using Long short-term memory (LSTM) deep neural networks in more than 500 basins in the US. In this case, regionally calibrated ML models outperformed not only regionally calibrated conceptual models but also conceptual models that were calibrated for each basin separately. Kratzert et al. (2019a) found that even in basins that contributed no training data (i.e., effectively ungauged basins), the LSTM models performed better than conceptual models that were calibrated to long data records in every basin (i.e., in gauged basins). Xiang and Demir (2020) demonstrated high skill in streamflow forecasting using a deep recurrent neural network for 125 stream gauges in Iowa, US.

ML methods have been shown to be promising for flood inundation modeling as well, providing a plausible alternative to physically based hydraulic models that are both highly computationally demanding and challenging to use in operational flood forecasting systems (Kabir et al., 2020). For example, artificial neural networks were utilized by Chang et al. (2018) and Chu et al. (2020) to provide forecasts of flood inundation maps for rivers in Malaysia and Australia, respectively, and Kabir et al. (2020) utilized convolutional neural networks to predict with high accuracy spatially distributed water depths for large flood events in an urban area in the UK.

The previous studies encourage the use of ML models for flood forecasting. Yet, it is rare to find operational systems whose core components are ML models and are capable of computing timely and accurate flood warnings. In 2017, Google launched the Flood Forecasting Initiative, which aims to utilize Google's data, computational resources, and ML expertise to reduce flood-related fatalities and harm. Since then, these efforts have been progressing in scale and in accuracy with the aim of eventually providing highly accurate flood forecasts globally. The first version of Google's flood warning system was operational from 2018, initially at a limited scale in India. Following further development of ML modeling components and a substantial improvement in coverage and performance, the system provided forecasts for the majority of India and Bangladesh in the monsoon seasons of 2021.

This paper is aimed at three goals: (i) to present Google's end-to-end operational flood warning system and its current deployment in India and Bangladesh for the monsoon season 2021 (Sect. 2), (ii) to evaluate ML models for river stage forecasting and for inundation used in this system (Sect. 3), and (iii) to present a new ML methodology for modeling flood inundation extent and depth (the manifold model, Sect. 2.3). Since the results describe an operational deployment, we hope to contribute to reducing the aforementioned scarcity of information on operational performance by assessing the utility of the different ML models presented here in an operational framework.

2 End-to-end real time operational flood warning system

Google's end-to-end flood warning system is designed to obtain real-time data from different sources and to forecast future river stages and high-resolution flood inundation at locations along the river network. These forecasts are disseminated in the form of flood alerts to relevant agencies as well as being sent out directly to the public. In its present form, the system is designed for deployment in large gauged rivers, implying stream gauge data availability, relatively slow response, and potentially complex inundation areas during floods.

Stream gauges in locations of interest are defined as target gauges. Each target gauge has a pre-defined warning stage threshold, above which, an alert should be issued and a pre-defined maximal lead time, which is the maximal time in the future the forecast can be given for. In addition, an area of interest (AOI) is defined for each target gauge, representing the surrounding region around the river and the gauge where the inundation model is applied.

This system is currently based on river stage data rather than discharge, which is more commonly used in physics-based and conceptual hydrological models. This is due to the wide abundance of stage data (historical and real time), while discharge data are more scarcely available and suffer from inaccuracies related to uncertainties in stage–discharge relationships (Ocio et al., 2017; McMillan and Westerberg, 2015). While it is difficult to use stage data to calibrate conceptual hydrology models (Jian et al., 2017), deep learning models do not have this problem and can be trained directly on stage data.

https://hess.copernicus.org/articles/26/4013/2022/hess-26-4013-2022-f01

Figure 1The operational flood warning system scheme. The first step is the ingestion, quality control and correction of stream stage measurements, precipitation measurements, and precipitation forecast data. The validated data serve as an input to the stage forecast models (linear and LSTM models) in the second step. An inundation model (thresholding or manifold) is applied in the third step for forecasted stages that pass the warning threshold. The final step is the dissemination of alerts to relevant agencies, including emergency forces, and to the public.

Download

The general structure of the real-time flood warning system is outlined in Fig. 1. Since Google's system is designed to be implemented in many countries and eventually globally, it is described first in general terms in Sect. 2.1–2.4, followed by Sect. 2.5 that describes the details of the deployment in the 2021 monsoon season.

2.1 Data management

In the first step, the following real-time data are ingested, quality controlled, corrected, and pre-processed.

  • Stream gauge measurements of water stage (obtained from the data provider, e.g., national water authorities): stage data are acquired in near-real-time for the target gauges and their upstream gauges if available. In some countries, the stage is measured manually and prone to many kinds of human mistakes; even automated telemetry gauges frequently produce erroneous data. Therefore, all near-real-time stage data go through a series of automatic validation and correction procedures as follows: (i) typical manual errors are identified (e.g., a decimal point in the wrong place) and corrected; (ii) stage record statistics are used to identify unreasonable stage data or stage differences from the previous readings (the suspicious data are either removed or retained based on a set of ad-hoc criteria); and (iii) short periods of missing data are filled by linear interpolation. The temporal resolution of near-real-time stage data may vary among providers. The currently deployed systems in India and Bangladesh both use hourly stage data.

  • Satellite-derived precipitation data from the Integrated Multi-satellitE Retrievals for GPM (IMERG, Early Run) (Huffman et al., 2014): IMERG Early Run data are available with a latency of 12 h, quasi-global coverage, and a resolution of 0.1 in space and 30 min in time. Data are quality controlled and corrected by removing negative and missing data values and by applying an upper rain intensity threshold (set as 200 mm h−1 for the current deployment). The data are spatially averaged over the drainage area of each target gauge and integrated in time to match the temporal resolution of near-real-time stage data (hourly in the current deployment).

2.2 Stage forecast modeling

The stage forecast models are responsible for computing forecasted river stage data at target gauges. The primary input to the stage forecast models is past river stages (alongside complementary information such as weather forcing) and the output is the future river stage. It should be noted that in this aspect, they differ from many standard hydrological models where the input does not include river stages but mainly forcing data and watershed properties.

https://hess.copernicus.org/articles/26/4013/2022/hess-26-4013-2022-f02

Figure 2Schemes of the linear (a) and LSTM (b) stage forecast models.

Download

The system includes two types of models: (1) a model based on multiple linear regression and (2) a model based on a Long short-term memory (LSTM) network, a type of recurrent neural network which is structured to learn long-term input–output dependencies. Linear models have been used in operational systems to simulate relationships between upstream and downstream river stages (in India for example, World Bank, 2015), whereas the LSTM has been shown in recent years to improve hydrological simulations relative to conceptual and physically based models (e.g., Kratzert et al., 2018, 2019a, b; Hu et al., 2019; Feng et al., 2020; Xiang et al., 2020).

  • a.

    Linear model (Fig. 2a): the model input includes past river stages from the target gauge and its upstream gauges (typically 2–5 gauges) for each time step. The output is a future river stage at the target gauge for a given lead time. A multiple linear regression model is trained with historical records of the above inputs and outputs. The model is optimized using the mean square error (MSE) loss function with L2 regularization (i.e., a squared sum of coefficients is added as a penalty term). Linear models are trained separately for each target gauge with a separate linear model trained for all lead times up to the gauge's maximal lead time (for example, a target gauge with a selected maximal lead time of 24 h and hourly resolution implies 24 trained Linear models for this gauge).

  • b.

    Long short-term memory network (LSTM) (Fig. 2b): the LSTM model consists of two LSTMs, a sequence-to-one hindcast model and a sequence-to-sequence forecast model where the output of the hindcast model is used as the initial state of the forecast model. The hindcast model processes data from past days sequentially, taking the following variables as inputs at each time step: (i) IMERG precipitation, (ii) near-real-time stage, and (iii) a linear combination of stage measurements from upstream gauges over some upstream “lookback” period (typically a few days). The linear combination of stage measurements is produced by a separate linear layer with gauge-specific weights that combines a (variable) number of upstream inputs per gauge into five features that are fed as inputs into the hindcast LSTM. The hindcast LSTM runs until the current time (defined to be the time of the last available measurement). The final cell state and hidden state (c(t) and h(t) in Fig. 2b) of the hindcast LSTM are passed through a fully connected layer and the output of this “state handoff” layer is used as the initial cell state and hidden state (c0(t) and h0(t) in Fig. 2b) of the forecast LSTM. The forecast LSTM advances one step for every lead time, producing the relevant forecasts for all lead times up to the maximal one. The basic principle of using a state handoff between two LSTMs was adopted from Gauch et al. (2021). In the original use, the state handoff allowed modeling at multiple timescales, while here, we use this structure to differentiate between the different inputs that are available in real time during hindcast and forecast (specifically, the availability of precipitation measurements).

All weights of the LSTMs (hindcast and forecast) are shared between all target gauges (i.e., they are regionally calibrated). The only gauge-specific weights are those of the linear upstream combiner layer which allows the architecture to accommodate varying numbers of upstream gauges, travel times, sizes of tributaries, etc. Table S2 in the Supplement presents more details on hyperparameters and settings.

The system estimates the uncertainty of the water stage following the approach detailed in Klotz et al. (2022). The time-dependent distribution over the predicted stage is modeled using a (countable) mixture of asymmetric Laplacians (CMAL, Klotz et al., 2022). The parameters of this distribution are generated by feeding the hidden state of the forecast LSTM into a dedicated head layer for each forecasted time step. At each time step, the loss is calculated as the negative log-likelihood of the observed stages given the forecasted distribution parameters, thus maximizing the probability of the training data-given model output. It is important to note that the CMAL head is applied only to the outputs of the forecast LSTM and the likelihood-based loss function is calculated only over these CMAL head outputs. The hindcast LSTM does not supply outputs to the loss function directly – it only affects the loss value by supplying an initial cell state to the forecast LSTM. Since training is shared for all target gauges, the maximal lead time in the training phase is taken as the maximum of the gauge-specific maximal lead times. The predicted parameters are used to calculate the distribution quantiles in each time point. We output the confidence interval between the 20 % and 80 % quantiles as the stage uncertainty (Fig. S1) and present this range to users (see examples in Fig. 4). Furthermore, when the estimated uncertainty range exceeds a given threshold (typically 50 cm), a shorter lead time is selected for the gauge. The selected lead time is the maximal lead time such that the uncertainty range is smaller than the threshold.

  • Training and validation: the training and validation data sets are composed of samples where the features are past river stages at the target and upstream gauges and past spatially averaged precipitation (for the LSTM model). The labels for training are future river stages at the target gauge for a given lead time. The stage forecast models are trained and validated with historical data using a cross-validation scheme in which each fold uses one year's worth of data for validation and the rest for training (i.e., 1-year leave-out). For operational use, the models were retrained on the full data set to produce the best real time forecasts possible.

  • Exceedance of warning threshold and output to the inundation model: for each target gauge, if the maximal forecasted river stage between the forecast's “current time” and the gauge's maximal lead time is above the predefined gauge-specific warning threshold, an alert is issued and this maximal stage is used for inundation mapping (Sect. 2.3).

  • External forecasts: in addition to stage forecasts derived by the models described above, the flood warning system allows for using forecasts from external sources such as models operated by the relevant national hydrology or hydrometeorology authorities. External forecasts are also compared with gauge-specific warning thresholds and, if exceeded, are used for inundation mapping (Fig. 1).

2.3 Inundation modeling

The inundation models are responsible for translating forecasted river stages into flood extent maps that delineate the projected flooded regions in areas of interest around gauges (i.e., AOIs). An additional potential output is the inundation depth at each flooded pixel in the AOI. In large rivers, the water stage varies relatively slowly with time due to the large volumes involved; therefore, the flood extent is computed based on the forecasted stage for a given time, ignoring the river stages at previous time points (i.e., assuming the river flow is in a quasi steady state).

https://hess.copernicus.org/articles/26/4013/2022/hess-26-4013-2022-f03

Figure 3Schemes of the thresholding (a), manifold (b) and hydraulic (c) flood inundation models.

Download

https://hess.copernicus.org/articles/26/4013/2022/hess-26-4013-2022-f04

Figure 4Examples of flood alerts sent to the public via different channels: (a) web-search, (b) smartphone push notification (alert is shown in the local language), (c) Google Maps (© Google Maps 2021) of flood inundation probability, (d) Google Maps (© Google Maps 2021) of flood inundation depth, and (e) the Flood Hub, which is a user interface that contains the Google flood alerts per a single village or smaller area level (map data from © Google Maps 2021). It includes a zoomed-in map of the village, water depth, and the percentage of the village that is covered by water. The river water level forecast is displayed as well. The range of water level change in (a), (c), and (e) represents the 20 %–80 % quantiles of stage forecast uncertainty range.

Two ML models are currently utilized: (1) the thresholding model and (2) the manifold model. The thresholding model computes a flood inundation map; it does not require a digital elevation model (DEM) and is easier to implement and deploy at scale, but it forecasts only flood extent (and not depth). The manifold model can be implemented where a DEM is available and it computes both a flood inundation map and an inundation depth map. A third, physically based hydraulic model, which also requires a DEM, is presented here for reference; it was used in the operational framework in previous seasons, but it is currently not in use since in the present conditions, it was found to be both less accurate and less scalable than the ML models (see Sect. 3.2) while its computational cost was considerably higher (Ben-Haim et al., 2019).

  • a.

    Thresholding model (modified from Ben-Haim et al., 2019) (Fig. 3a, a standalone code can be found in Google-research flood_forecasting, 2022): the model includes pixel-specific thresholds for each pixel in the AOI. Pixels where the water stage in the target gauge exceeds their thresholds are assumed to be inundated (i.e., wet) while the others are dry.These thresholds are learned from the series of historic stage data at the target gauge and the corresponding state of the pixel (dry/wet) during these events (Fig. 3a). Each pixel in the inundation map is treated as a separate classification task, predicting whether the pixel will be inundated or not. We refer to the “wet” class as the positive class.

    The algorithm described below identifies pixel-specific thresholds and is aimed at maximizing an Fβ-score using an optimized global parameter called minimal ratio. Fβ-score is defined as 1+β2precisionrecallβ2precision+recall (Sokolova et al., 2006), where precision represents here the fraction of all wet pixels that are predicted as being wet and recall is the fraction of all pixels that are predicted to be wet and are really wet (see two examples for F1-score in Fig. S2). An iterative process is applied to each pixel. In each iteration, we find the threshold that maximizes the ratio of true wet events (where the water stage at the gauge is above the threshold and the pixel was wet) to false wet events (where the water stage at the gauge is above the threshold and the pixel is dry). The threshold that maximizes this ratio is the most cost-effective threshold in the sense that it provides the most true wet pixels per false wet instance. At the first iteration, all training events are considered; then, after each selection of a threshold and its respective true–false ratio, events with stage measurements above the threshold are discarded and a new iteration starts with the remaining events. If the new true–false ratio calculated is lower than the minimal ratio parameter value, the process stops and the final threshold for the pixel is the one found in the previous iteration. It can be shown that for every minimal ratio parameter value, no other set of pixel-specific thresholds achieves simultaneously better precision and recall; implying it is Pareto optimal. Therefore, for any β, there exists some value of the minimal ratio parameter which finds the thresholds that optimize this respective Fβ-score. After repeating the algorithms for different values of the minimal ratio parameter, the one that maximizes a specific target metric is selected and the respective pixel thresholds for this parameter value are used.

    The thresholding algorithm is applied to compute categories of certainty that a given pixel is wet (see an example in Fig. 4c). This is done by computing the respective thresholds for two β values of 0.3 and 3 where lower β values imply higher thresholds. When a given water stage in the target gauge is considered, the two thresholds are examined for each pixel. If the threshold of β= 0.3 is exceeded (implying the threshold of β= 3 is also exceeded), it is classified as wet with a high probability. If only the threshold of β= 3 is exceeded, it is classified as wet with a low probability. The pixel is classified as dry if no threshold is exceeded.

    In cases where the river stage input is higher than all past stage data, the thresholding model's output inundation map is initialized from the most severe inundation extent seen in the historical events and expanded in all directions. The expansion distance is a linear function of the difference between the forecasted stage and the stage of the highest historical event. This thresholding model requires no DEM data, but only historical flood inundation maps and gauge stages for training. This makes it appealing for large-scale deployment across many AOIs in a short amount of time.

  • b.

    Manifold model (Fig. 3b, a standalone code can be found in Google-research flood forecasting, 2022): the manifold inundation model, presented here for the first time, provides a machine-learning alternative to hydraulic models by computing physically reasonable flood inundation. Its inputs are a DEM for the AOI and a target water stage. It outputs both the flood inundation extent and the inundation depth at each AOI pixel. The model is divided into two major parts, as can be seen below.

    • b1.

      Flood extent to water height algorithm

      The flood extent to water height algorithm converts a DEM and an inundation extent map (i.e., wet/dry state for each pixel) into a water height map, which is a per-pixel water height in meters above sea level. The algorithm tries to find a physically reasonable water height map that best matches the input inundation map, where the physically reasonable requirement is defined as (1) the water height surface must be smooth, i.e., we aim to find a water height map that does not change significantly between neighboring pixels, and (2) the water height surface should not have a minimum or a maximum at the interior of flooded regions. This optimization problem is not differentiable and, thus, cannot be easily solved directly. Instead, the following heuristic can be shown to produce an optimal solution to the above optimization problem. The algorithm identifies the boundaries of the inundated areas of the input inundation map (OpenCV findContours, 2021). The water height at these boundaries is extracted from the corresponding DEM. In between these boundaries, the algorithm uses the Laplace differential equation to interpolate the water heights. The water height map is defined as a low-resolution image where every pixel is set to be of 32x32 DEM pixels. This assures that the output map is smooth and does not contain high frequency changes while also reducing the computational complexity of the process. In addition, outlier DEM pixels, which are pixels that cause high Laplace tension, are removed to assure that the overall function is smooth.

    • b2.

      Gauge stage to flood depth algorithm

      When inferring inundation depth for a real-time gauge water stage forecast, we do not have access to the full current flood extent (as the extent–to–height algorithm above assumes). To be able to provide depth in this more challenging setting, we first perform some precomputation. We first apply the thresholding model described above (with F1-score optimization) to all past events in our training data, producing an inundation extent map for each gauge stage measurement. We then apply the flood extent to water height algorithm described above to produce a water height map for each past event. In real time, when we receive an input water stage at the target gauge, the model simply performs per-pixel piecewise–linear interpolation between the water height maps of the training dataset to generate a new water height map corresponding to this input stage. The resulting water height map and the DEM are then used to generate an updated inundation extent map. In this map, a pixel is assigned with a wet state if: (1) its water height is above the DEM and (2) it is connected to an inundated area in the output of the thresholding model; otherwise, the pixel is assigned with a dry state. The inundation depth map is then computed as the difference between the water height and the DEM height for pixels with a wet state (see for example Fig. 4d). The use of the thresholding model (as opposed to directly using satellite-based imagery of actual historical flood extent) as the input inundation maps ensures that higher gauge stages always yield larger inundation extents and, thus, removes unnecessary noise. When the model infers an inundation depth map for a gauge's water stage higher than all the events in the training set, it extrapolates the water height map by adding the gauge level difference to every pixel in the highest water height map computed from observed gauge stages and uses the extrapolated water height and DEM to compute the water depth map.

  • c.

    Hydraulic model (Ben-Haim et al., 2019) (Fig. 3c): the hydraulic model is a physics-based model based on numerical solutions of the St. Venant equations (de Almeida et al., 2012). In this implementation, we assume that the river stage changes slowly so that the flood extent at any given moment is approximated by a steady-state simulation. This is a good approximation for large rivers, which are the current focus of the flood warning system, where water stage changes relatively slowly due to the large amounts of water involved.

Such physics-based models are commonly used with incoming discharge data as one of the boundary conditions. However, in our systems, the data available in real time are the water stage. To support this, the model is simulated offline with numerous discharge values at the upstream boundaries. Other model parameters (e.g., roughness per AOI's pixel) and downstream slope boundary conditions are fixed to physical constants. Each run of the model yields a simulated inundation map for the AOI and a water stage at the target gauge. These results are saved in a hash table for quick retrieval. Upon receiving a real-time gauge stage forecast, the simulation with the closest gauge water stage is found and the corresponding inundation map is used as the model output.

The hydraulic model requires a DEM for the entire AOI, including the river bathymetry that is often not included in DEMs based on optical imagery (and other sources that cannot penetrate water). It is therefore estimated by fitting three equal-side trapezoids to the river cross sections with slopes that are computed from the river banks.

  • Training and validation: the training and validation data sets for the inundation models are composed of samples representing historical flood events where the features are gauge water stage measurements and the labels are the corresponding flood inundation extent maps from satellite data. Similar to the stage forecast models, a 1-year leave-out cross-validation scheme is used for training and validation. For operational use, the models are retrained with all historical data. It should be noted that contrary to flood inundation extent, there are no ground truth data for flood inundation depth. The manifold model is, therefore, trained and validated only on the inundation extent. However, since the manifold model is constrained to only produce physically reasonable water height maps, accurate inundation extent metrics on the test dataset imply reasonably reliable inundation depth results. More work on validating inundation depth accuracy at scale is needed.

  • Satellite-based flood inundation maps: the synthetic aperture radar ground range detected (SAR GRD) data from the Sentinel-1 satellite constellation are used to determine flood inundation maps at known time points and locations (Schumann and Moller, 2015). At any AOI, a SAR image is available once every several days, from which an inundation map was inferred using a binary classifier (Torres et al.  2012). Every pixel within a SAR image is classified as wet/dry via a Gaussian mixture-based classification algorithm. In order to calibrate and evaluate the classification algorithm, we have collected a dataset of Sentinel 2 multispectral images of flood events that coincide with the SAR image dates and locations. Reference Sentinel-2 flood maps were created by calculating per-pixel Normalized Difference Water Index (NDWI =(B3-B8)/(B3+B8), B3 and B8 are green and near infrared bands, respectively) and applied a threshold of 0 (McFeeters, 2013).

  • DEMs for target gauge AOIs: the publicly available global DEMs (e.g., NASA SRTM and MERIT) lack the required spatial accuracy and resolution for detailed flood inundation simulation. Furthermore, they are based on data from over a decade ago, thus, failing to capture the frequent topography changes caused by past floods. Consequently, higher-resolution (1 × 1 m2), up-to-date DEMs are constructed for each AOI from high resolution satellite optical imagery data in a process that is based on stereographic imaging (Ben-Haim et al., 2019). To keep the DEM up to date, the model is retrained annually based on fresh imagery in locations where flooding causes frequent topography changes.

  • Model selection for target gauges: the selection of which model to use for each target gauge is based on DEM availability for the AOI and on the performance when trained and tested with historical data. When possible, the manifold model is preferred as it provides forecasts of inundated water depths in addition to the inundation map.

2.4 Alerts

Alerts are distributed to government authorities, emergency response agencies, and the affected population. The alerts include information about the forecasted water stage at the target gauge, the inundation map, and inundation depth if available. Flood information is disseminated to the public (affected population) over three channels (Fig. 4): (1) Google Search (for example, when searching for a flood at a specific location, or “flood near me” when located near a flood region), (2) smartphones within the forecasted flood inundated area receive a push notification on their phone when a forecast is issued, and (3) icons presented in Google maps when viewing an area with an active flood alert. In all cases, the alert leads to a page with additional warning information, including the forecasted stage change at the target gauge with its uncertainty range and a map view of the inundation probability and depth if available. In addition, relevant organizations (government agencies and NGOs) receive flood alerts via email and specialized dashboards for their use; these likewise contain the forecasted stage and inundation map. Special care is taken to provide the alerts in the local language and to make it informative and actionable.

2.5 Deployment in India and Bangladesh for the 2021 monsoon season

India and Bangladesh host the large river systems of the Indus, the Ganga, and the Brahmaputra that provide livelihoods for hundreds of millions of people; but, at the same time, they frequently flow over their banks, leading to loss of lives and substantial damage during the summer monsoon season (World Bank, 2015). In fact, it was shown that Asian river floods are the most devastating in terms of number of people killed and affected (Jonkman, 2005).

The Indian Central Water Commission (CWC) and Bangladesh Water Development Board (BWDB) provide flood forecasts and warnings in the two countries. The CWC bases operational forecasts primarily on a mathematical model that utilizes water stage data (World Bank, 2015). Flood forecasts by BWDB are based on predicted river discharges at upstream boundary locations and a hydraulic model (World Bank, 2015).

Google's river flood warning system has been operational in India since 2018 and in Bangladesh since 2020. These systems were expanded and modified for the 2021 monsoon season. During 2021, the flood warning system handled 376 target gauges covering watershed sizes of 350 to 1 500 000 km2 (Table S1). Of these, stage forecast models were applied to 167 target gauges while the others were based on external forecasts. AOIs for the target gauges were defined as polygons around the river at the gauge location. They were computed, by both manual and automatic procedures, by observing the flood patterns in the area around the gauge from historical flood inundation maps. Inundation models were applied to 233 target gauges. Additional 143 target gauges, where a well-performed inundation model could not be applied typically due to very limited ground truth data or highly irregular flood pattern, were managed by the system but alerts were sent without inundation maps. In total, Google's flood warning system covered a flood-prone area close to 470 000 km2 with a population of more than 354 000 000 (Table S1). Figure 5 and Table S1 provide details on the target gauges and AOIs geographical distributions, stage forecast and inundation model type, maximal lead time, watershed area, AOI area, and estimated population size.

https://hess.copernicus.org/articles/26/4013/2022/hess-26-4013-2022-f05

Figure 5Target gauges (circles) and AOIs (polygons) for which the system was deployed in 2021 in India and Bangladesh.

Table 1Stage forecast operational model configuration during 2021 monsoon season in India and Bangladesh.

Download Print Version | Download XLSX

Stream gauge stage data for the monsoon season, i.e., 1 June to 31 October, were obtained at hourly resolution from CWC and BWDB. IMERG (Early Run) precipitation data were obtained from NASA and averaged in space and time to produce watershed-averaged hourly data. Historical records for 2014–2020 were used to train the stage forecast model which was then used operationally in 2021 to provide forecasts using real-time data. As the LSTM models resulted in improved forecast skills compared to the linear models (see Sect. 3.1 below), they were used for stage forecasting for all target gauges except two where LSTM performances were low. The specific configurations of the operational models are presented in Table 1 (see Table S2 for more details on hyperparameters and setting of the LSTM model).

The stage forecast models provide in real time, at each hour, forecasts of hourly water stages between the current timestamp and a future time which is the gauge's maximal lead time. In addition, external forecasts for all 376 target gauges from the operational models of CWC and BWDB were fed to the system each time they were available (typically, once or twice per day with lead time between 12 and 120 h). The forecasted stages were compared with the warning thresholds to determine whether an alert should be issued. If so, the forecasts were propagated to the inundation component to generate inundation maps.

The thresholding and manifold inundation models were applied to 174 and 59 target gauges, respectively, covering AOIs ranging from 20 to 5295 km2 (Fig. 5, Table S1). The two models computed inundation maps (with the manifold model also computing inundation depth) at a 16 × 16 m2 spatial resolution, which were evaluated at a 64 × 64 m2 spatial resolution. The models were trained based on historical flood events for 2016–2020 (a mean of 29 and a median of 15 events per AOI) and utilized in real time for 2021.

https://hess.copernicus.org/articles/26/4013/2022/hess-26-4013-2022-f06

Figure 6Total notifications sent from 8 July to 10 September 2021 along the monsoon season (a) and their distributions among states in India and Bangladesh (b).

Download

Alerts containing the forecasted change in water stage at the target gauge, the expected inundation map, and water depth maps, if available, were sent to several agencies including CWC, BWDB, and the Federation of the Red Cross and Red Crescent Societies. In cases where flooding was sufficiently severe (i.e., the forecasted water stage at the gauge exceeded a pre-defined threshold provided by CWC and BWDB), alerts were also sent as push notifications to smartphones situated in locations that were forecasted to be flooded. In total, about 115 000 000 notifications were sent and have reached about 22 000 000 people (Fig. 6). The notifications were sent in the local language where nine different languages were used for India and Bangladesh, specifically, English, Hindi, Bengali, Gujarati, Marathi, Tamil, Telugu, Kannada, and Malayalam.

https://hess.copernicus.org/articles/26/4013/2022/hess-26-4013-2022-f07

Figure 7(a) Gauge alert map captured on 11 August 23:45, forecast for 12 August 22:00. Gauge colors represent below warning level (green), above warning level (orange), and above danger level (red) (map data from © Google Maps 2021). (b) 42 h forecast (LSTM model) and observed river water stage for the Hathidah target gauge around the flood event. (c) The inundation depth map (manifold model) forecasted for the Hathidah gauge at 11 August 23:45, referring to 12 August 22:00 (these two times are marked as vertical dashed black lines in b). (d) A photo taken during the flood on the way from Begusara to Patna (given to the authors by the Yuganter organization, http://www.yuganter.org.in, last access: 21 July 2022). (e) A photo taken during the flood, Hetanpur, Madhopur Panchayat in the Patna district (given to the authors by the Yuganter organization, http://www.yuganter.org.in). (f) Alert sent for the flood event and published by CWC (Central Water Commission Official Flood Forecast, 2021). Time represents Bihar local time (UTC + 5.5).

As a demonstration of one flooding case, we present in Fig. 7 the system outputs for the flood event in mid-August in Bihar. On August 11, close to midnight, a few gauges in Bihar presented danger level alerts (Fig. 7a). Specifically, the Hathidah target gauge had a forecast indicating that on 12 August 22:00 LT (UTC + 5.5),​​​​​​​ the gauge level would reach the highest recorded stage of this gauge (Fig. 7b). The inundation water depth map (Fig. 7c) covers an area of 533 km2 (compared to 163 km2 at low river stages during the non-monsoon season). Also shown are photos from the affected areas (Fig. 7d, e) and an example of the alert as published by CWC for this event (Fig. 7f).

3 Machine learning model evaluation

3.1 Stage forecast models evaluation

The stage forecast models presented in Sect. 2.2 are analyzed to assess their performances and to gain insights about the importance of their inputs. Accordingly, four models are examined:

  • linear model with past water stage input;

  • linear model with past water stage and past precipitation input;

  • LSTM model with past water stage input;

  • LSTM model with past water stage and past precipitation input.

The Nash–Sutcliffe efficiency (NSE) and the persistent-NSE metrics are used to represent the level of fit, defined as 1-i=1nyio-yic2i=1nyio-y02 and 1-i=1nyio-yic2i=1nyio-yip2, respectively, where n is the series length, yio is the ith observed stage data, yic is the ith computed stage data, and yip is the last observed stage data at the time of forecast. NSE compares the model's sum of squared error to the sum of squared error when the mean observation is used as the forecast value. Persistent-NSE on the other hand, uses the last observed data as the forecast value being compared against.

https://hess.copernicus.org/articles/26/4013/2022/hess-26-4013-2022-f08

Figure 8Comparison of the NSE (a–c) and Persistent-NSE (d–f) between the linear models without and with precipitation (a, d), LSTM without and with precipitation (b, e), and linear and LSTM with precipitation (c, f), based on data from 2014–2020 for 167 target gauges in India and Bangladesh (Table S1). For a better visualization, x axis is limited to 0.8–1 for NSE and to 0–1 for Persistent-NSE (three gauges with Persistent-NSE of the LSTM models between 0.9 and 0.3 are shown with X symbols). All analyses were done with a 1-year cross-validation scheme based on 2014–2020 data where the mean among the years is presented.

Download

Table 2Median and range of metric values for the stage forecast and inundation models and median and range of metric differences for compared models.

 Statistically significant (p value < 0.05) according to the Wilcoxon signed-rank test for the paired samples.

Download Print Version | Download XLSX

A 1-year cross-validation scheme was applied based on 2014–2020 data. Figure 8 presents the distributions of NSE and Persistent-NSE for the 167 target gauges with an operational stage forecast model (Table S1), and Table 2 provides their statistics.

NSE metric values are very high for all target gauges and models, indicating in general very good predictive skill. It should be noted that these high skills are not surprising given that we are modeling large rivers with a typically slow response and that we use historic water stages and upstream water stages as model inputs. The Persistent-NSE metric values are lower than NSE, implying that forecasting with the last observed value achieves a significant improvement over forecasting with the mean observation and, consequently, results in a baseline that yields lower scores of our models.

The metrics show an advantage of the LSTM model over the linear model and of including precipitation as a model input (Table 2), and according to the Wilcoxon signed-rank test for the paired samples, all these comparisons are statistically significant. For 95 % of the target gauges, the LSTM model achieves a better Persistent-NSE score than the linear model. Including precipitation data as input improved both the LSTM (89 % of the gauges) and the linear (65 % of the gauges) models.

Metric values of all models are positively correlated with watershed area, as can be seen in Fig. 9, presenting the median Persistent-NSE for three bins of drainage area sizes. The variance within the bin of the smallest watersheds (< 10 000 km2) is the largest and the medians in this bin do not significantly differ from the medians of the middle-size bin (p value > 0.1 based on Mood's median test); the two other median comparisons (largest watershed bin relative to the middle-size bin and the smallest size bin) are significant (p value  0.01).

https://hess.copernicus.org/articles/26/4013/2022/hess-26-4013-2022-f09

Figure 9Persistent-NSE medians for three bins of watershed drainage area sizes. Number of gauges in the bins are 49, 54, and 42. Error bars are shown as the range of 10 %–90 % quantiles in each bin. For a better visuality, they are only shown for the LSTM with precipitation model. For all four models, the median of the largest bin is significantly different than the median of the middle bin and the smallest bin (p value < 0.001 based on Mood's median test), while the difference between medians of the two smaller bins is insignificant (p value > 0.1).

Download

3.2 Inundation model evaluation

The evaluation of the ML inundation models is done in two steps. First, we present a comparison of the hydraulic model and the thresholding model. This step was important for benchmarking the ML models against more classical solutions. The F1 score, which is the harmonic mean of the precision and recall (Sokolova et al., 2006, see a definition in Sect. 2.3 and examples in Fig. S2), is used for evaluation where the dry/wet classification of each pixel in the AOI is examined and the wet pixels are taken as positive. Since the hydraulic model requires substantial manual work and heavy computation, the comparison was limited to 11 AOIs.

The two models (Sect. 2.3) were trained with flood events from 2016–2019 and validated with different events from 2020. Table 3 shows the validation F1 score achieved on the AOIs for each model with the best score for each AOI in bold. The thresholding model outperforms the hydraulic model on 9 of the 11 AOIs. In addition, the thresholding model requires significantly less computation and manual calibration effort than the hydraulic model. Therefore, it was decided not to include the hydraulic model in the operational system.

Table 3F1 score for selected AOIs.

Download Print Version | Download XLSX

https://hess.copernicus.org/articles/26/4013/2022/hess-26-4013-2022-f10

Figure 10Comparison of the F1 score metric between the thresholding and manifold inundation models for (a) 1-year cross-validation and (b) leave–extreme–out based on data from 2016–2020 for 126 AOIs India and Bangladesh.

Download

In the second step, we evaluate the thresholding and manifold models for all 126 AOIs with DEM (i.e., both models can be applied), based on flood events from 2016–2020; in these years, there are a total of 4815 flood events across all the AOIs (on average, 34 events were used for training and 10 for validation per AOI). The median F1 (across years) is computed for each AOI using a 1-year cross-validation scheme (Fig. 10a). In addition, we applied a “leave–extreme–out” validation procedure to estimate the model's skill at accurately computing the inundation map for large unprecedented flood events that exceed water levels in the training sample. In this procedure, the training data set includes all events except the one with the highest recorded stage as well as all flood events whose stage differs from the highest recorded stage by less than 30 cm. The trained model is then validated on the highest flood event (Fig. 10b). Table 2 provides the statistics of the F1 metric for the two inundation models and their comparison.

The F1 metric has a narrower range for the cross-validation scheme compared to the leave–extreme–out (Table 2). The thresholding model achieves better metric values than the manifold model in a majority of AOIs (70 % and 57 % for the 1-year cross-validation and leave–extreme–out analyses, respectively) and the median of the F1 metric differences (thresholding–manifold) for both cases are statistically significant according to the Wilcoxon signed-rank test for the paired samples (Table 2).

4 Discussion

This paper presents Google's operational flood warning system already deployed in India and Bangladesh and planned to be further extended to other countries across the globe. It also presents ML models that are used in this operational framework for stage forecasting and for inundation mapping.

The benefit provided by the flood warning system to the region during the 2021 monsoon season was the relatively high temporal (hourly) and spatial (16 m) resolution of the flood alerts for lead times ranging over 8–48 h and over a large spatial extent (287 000 km2 AOI area, Fig. 5, Table S1). Approximately 115 000 000 flood alerts were sent to affected populations (Fig. 6) and reached about 22 000 000 people. The accuracy metrics for both river stage and flood inundation area indicate good performance metrics (NSE and Persistent-NSE medians for the LSTM with precipitation stage forecast model are 0.99 and 0.69, respectively; F1 for cross-validation and extreme–leave–out are 69 % and 76 %, respectively; Figs. 8 and 10).

The ability to compare performance to other benchmarks is limited as we can only do so with the few published operational framework metrics. One of these studies by Zalenski et al. (2017) evaluates the US National Weather Service stage forecast models for 51 stream gauges in Iowa, US. They report root mean square error of water stage with medians of 0.3 and 0.5 m (for below and above flood stage classes, respectively) for a lead time of 24 h; increasing lead time to 48 h increased these medians by 0.1 m. The median of the root mean square error of the stage forecast models used in the present system are 0.1 and 0.2 m for lead times of 24 and 48 h, respectively. Although the errors are not fully comparable since these watersheds differ from those analyzed in Zalenski et al. (2017), they provide a good indication on their level of accuracy. The current paper presents accuracy metrics for operational stage forecast and inundation models for 167 and 126, respectively, stream gauges in India and Bangladesh and thus contributes to reducing the lack of information on operational models' performance and can be further used for evaluating other operational systems.

One of the challenges in operational flood forecasts is turning forecasts into effective warnings (Kuller et al., 2021). Pagano et al. (2014) discussed this challenge and presented the following concerns: “Is the intended audience receiving the forecasts? Is the information being understood? Is the information being used to make the right decisions?”. Regarding the second point, experience gained from Google's system demonstrates the importance of using the local language for the alerts, in accordance with Perera et al. (2020) who suggest community-specific warning messages composed by their recipients. Perera et al. (2020) also emphasize the importance of targeted warnings, as opposed to warnings that are communicated to the entire population, which is the approach taken here. Substantial efforts are put into finding effective ways to communicate flood alerts, for example, by providing alerts at the local languages, accompanying the alerts with visual explanations, and investigating what text the alerts should include to make them easier to understand. A few studies examined the effectiveness of flood alerts in operational frameworks. For example, Rotach et al. (2009), as a part of an end-to-end operational flood warning system in the Alpine region, collected feedback from end-users through questionnaires, interviews, and workshops, and some initial insights are given on the utility of the system for the decision-makers and how well the information was perceived. It should be noted, however, that the current knowledge about effective flood warnings in countries like India and Bangladesh is very limited. For example, a literature review by Kuller et al. (2021) shows that the large majority of the published literature about this topic focused on industrial countries while less than 6 % focused on Asia and none on South America or Africa; they emphasize that little is known about the transferability of findings from industrial to non-industrial countries. An important input to these investigations is feedback from the population and from local aid organizations on whether alerts were received, how accurate they were (in terms of flood inundation and flood depth), how useful they were, and what actions have been taken. Our research efforts are ongoing in this direction and preliminary analysis indicates flood alerts being effective. The full details of this research would be reported separately and are expected to help both in validating and in improving the flood warning system. Two more directions are being explored for the presented system with respect to alert efficacy. The first will allow individuals to define specific locations they are interested in (such as their village) and receive more detailed information about those locations. The second concerns forecasting river stages at longer lead times, even at the cost of increased uncertainty, which can be used to drive longer-term decisions; however, communicating such information is an ongoing challenge.

ML methods are an integral and critical part of the river stage forecasting and flood inundation models. For stage forecasts, it has already been shown that LSTMs outperform standard hydrological models, not just for gauged basins but also for ungauged basins (Kratzert et al., 2019a, b) and even for extreme out-of-training events (Frame et al., 2022). For inundation modeling, a comparison of the two ML-based inundation models with the physics-based hydraulic model found the ML models exhibited higher accuracy (Table 1). Another advantage of ML models is that they require less manual per-gauge work, thus enabling expansion to a larger coverage area. Indeed, it is generally easier to apply ML models to a new basin compared to a process-based model; for example, Nevo et al. (2020) compared the hydraulic model and an ML inundation model and showed that on average, the hydraulic model requires about eight times more manual work; this is a result of the need for gauge-specific parameter calibration in almost all process-based models (see Nearing et al., 2020 for some discussion).

On the other hand, there are potential drawbacks in ML models that need to be considered. These models rely solely on the data and thus require large, representative records to reach a sufficient performance. Though one might expect that process-based models would be more resilient to data limitations compared to ML models, due to the explicit process representation and the physical meaning of some of their parameters (e.g., saturated hydraulic conductivity), in practice, there is no indication for such advantage. In fact, many of the process-based parameters are scale-dependent (Beven, 1995); their use in the model is not straightforward and generally needs to be calibrated for reliable model performance. Furthermore, Moshe et al. (2020) presents an ML hydrological model that can be trained with short records. In the present study, we show that good performance of the ML models is achieved for the analyzed basins with six to seven years of training data, a historical record length that can be expected to be available in many other locations.

The presented system has some limitations that need to be emphasized. First, Google's flood warning system in its present form is designed for flood forecasting in gauged river locations. Specifically, this requires, at a minimum, river gauges providing their stage data in real time that have records of historical stage data and a few cases of flood events to be used for training and validation of inundation models (here, records of 6–7 years were used). Second, the stage forecasting and inundation models would work best in slow-responding, large rivers. Apparently, even with these restrictions, such flood warning systems can be useful for a large population worldwide. We are currently working on addressing these limitations by extending the system to accomplish two additional goals.

  • Ungauged basins. Prediction in ungauged basins is one of the main challenges in hydrological sciences (Sivapalan et al., 2003) and despite significant research activity and advances in this direction, robust and reliable flood predictions in ungauged basins are still lacking (Hrachowitz et al., 2013). The flood warning system presented here focuses on gauged basins and relies on past measurements from the target stream gauges, both for training and for real-time model input. Extending the system to ungauged locations implies that precipitation becomes the most dominant input. Moreover, in this case, the models cannot be optimized to the target basins. Although these are major obstacles, encouraging results from recent studies with a similar LSTM model (Kratzert et al., 2019a) have shown that relatively good prediction can be achieved in ungauged basins when the model is trained on gauges from other locations in the region.

  • Flash floods and small-to-medium-sized basins. The system described in this paper was developed for floods in large rivers. We aim to expand the technique to small-to-medium basins (< 1000 km2) and to handle flash floods which appear only a few hours following an intense storm (Borga et al., 2011). This extension implies a much faster response which, in turn, implies less information in the past stage data and more weight to be put on forcing input data, most importantly, precipitation. Furthermore, uncertainties in precipitation data might significantly affect the flood forecasts and must be taken into account (Borga et al., 2011).

5 Conclusions

Operational flood warning systems can save lives and reduce risks and damages. Google's system was developed to provide accurate and effective warnings for floods in large gauged rivers where a dense population is located. After operational deployment in India and Bangladesh, the following conclusions can be drawn:

  • During monsoon 2021, the system provided over 100 million flood alerts directly to individuals who were located in the flooded areas and to relevant agencies.

  • Two ML models are used for river water stage forecast, linear and LSTM. The LSTM model was significantly better than the linear model (0.67 vs. 0.60 medians of Persistent-NSE) and therefore was the one used operationally in 2021 for 165 out of 167 target gauges.

  • The input to the stage forecast models was the past observed water stage at the target gauge (168 h for the LSTM model) and a few upstream gauges (240 h for the LSTM model). Adding past precipitation data (hourly mean areal precipitation for the past 168 h from IMERG Early Run) slightly improved model performance and, therefore, was used operationally.

  • Two ML models (thresholding and manifold) were developed for inundation mapping. Furthermore, the manifold model, using DEM data, additionally provides forecasts of water depth in inundation areas, which is considered crucial information for the affected individuals. The thresholding model was found to outperform the physics-based hydraulic model and requires significantly less manual effort and computational resources which allow its application on a large scale. The thresholding model also has a higher skill compared to the manifold model, although the distribution of their F1 metric is close (F1 medians of 69 % and 76 % in leave-1-year cross-validation leave–extreme–out schemes). Both models were applied operationally during 2021.

  • Continually improving the effectiveness of flood alerts is an important and ongoing challenge. Feedback from people in the flooded regions has helped increase alert effectiveness. For example, we found that it was important to provide the alerts in the local language and to notify of the expected change in water stage (and whether it is expected to rise or fall) rather than the absolute stage.

  • The literature lacks performance results from operational flood warning systems. Such results could contribute to developing common scientific knowledge and improving flood warning systems. We hope that the results presented in this study will be helpful for future studies assessing operational systems.

Code availability

Software was developed at Google and the code is proprietary. The linear and LSTM stage forecast models are based on extensively published algorithms (see Kratzert et al., 2022)​​​​​​​ for LSTM Python library) and the details of the specific settings and hyperparameters used here are given in Table S2. A standalone python code for the thresholding and manifold inundation models, which is practically equivalent to the model runs in the operational system, is available in Google research GitHub (https://github.com/google-research/google-research/tree/master/flood_forecasting, Google-research flood_forecasting, 2022).

Data availability

Hourly stage data were received from the Central Water Commission (CWC), India, and the Bangladesh Water Development Board (BWDB). These data are government property and cannot be distributed. Precipitation data were obtained from the National Aeronautics and Space Administration (NASA) at https://gpm.nasa.gov/data/imerg (Huffman et al., 2019) (product: GPM IMERG Early Precipitation L3 Half Hourly 0.1 degree x 0.1 degree V06, GPM_3IMERGHHL 06). Historical flood extent data were derived from Sentinel-1 SAR GRD data, which are publicly available on https://developers.google.com/earth-engine/datasets/catalog/COPERNICUS_S1_GRD from Google Earth Engine (Gorelick et al., 2017).

Supplement

The supplement related to this article is available online at: https://doi.org/10.5194/hess-26-4013-2022-supplement.

Author contributions

SN, AGR, AM, CB, DW, DV, FK, GE, GD, GB, GN, GS, HN, IS, LY, MR, NG, NPL, OR, OG, RM, ST, TS, VA, YG, YL, ZM, and ZBH were responsible for the flood warning system software development and data analysis. SN, AH, and YM supervised the project. SN, EM, AGR, AM, DW, DV, FK, GE, GD, GN, GS, HN, IS, LY, MR, NG, NPL, OG, TS, YG, and ZBH wrote the paper, including draft writing, review, editing, and visualization; EM led the paper writing.

Competing interests

At least one of the (co-)authors is a member of the editorial board of Hydrology and Earth System Sciences. The peer-review process was guided by an independent editor, and the authors also have no other competing interests to declare.

Disclaimer

Publisher's note: Copernicus Publications remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Acknowledgements

Many people participated in researching, developing, and deploying Google's flood forecasting system. We would like to particularly thank Aaron Yonas, Abhishek Modi, Aditi Bansal, Adrien Amar, Ajai Tirumali, Anshul Soni, Asmita Metrewar, Bernd Steinert, Bradley Goldstein, Brett Allen, Gopalan Sivathanu, Jason Clark, Joanne Syben, Karan Agarwal, Kartik Murthy, Kay Zhu, Lei He, Manan Singhi, Mark Duchaineau, Matt Manolides, Mor Schlesinger, Novita Mayasari, Paul Merrell, Rhett Stucki, Ruha Devanesan, Sandeep Kotresh, Saurabh Rathi, Sergey Shevchenko, Slava Salasin, Stacie Chan, Subramaniam Thirunavukkarasu, Tal Cohen, Tom Small, Tomer Shefet, and Zhouliang Kang for their contributions.

We thank the Central Water Commission (CWC), India, and the Bangladesh Water Development Board (BWDB) for providing data and for their collaboration.

Review statement

This paper was edited by Giuliano Di Baldassarre and reviewed by Massimiliano Zappa and two anonymous referees.

References

Addor, N., Jaun, S., Fundel, F., and Zappa, M.: An operational hydrological ensemble prediction system for the city of Zurich (Switzerland): skill, case studies and scenarios, Hydrol. Earth Syst. Sci., 15, 2327–2347, https://doi.org/10.5194/hess-15-2327-2011, 2011. 

Alfieri, L., Cohen, S., Galantowicz, J., Schumann, G. J., Trigg, M. A., Zsoter, E., Prudhomme, C., Kruczkiewicz, A., de Perez, E. C., Flamig, Z., and Rudari, R.: A global network for operational flood risk reduction, Environ. Sci. Policy, 84, 149–158, 2018. 

Ben-Haim, Z., Anisimov, V., Yonas, A., Gulshan, V., Shafi, Y., Hoyer, S., and Nevo, S.: Inundation modeling in data scarce regions. Neural Information Processing Systems (NeurIPS), Artificial Intelligence for Humanitarian Assistance and Disaster Response workshop, 30 October 2019, Vancouver, Canada, https://doi.org/10.48550/arXiv.1910.05006, 2019. 

Beven, K.: Linking parameters across scales: subgrid parameterizations and scale dependent hydrological models, Hydrol. Process., 9, 507–525, 1995. 

Bhatt, C. M., Rao, G. S., Diwakar, P. G., and Dadhwal, V. K.: Development of flood inundation extent libraries over a range of potential flood levels: a practical framework for quick flood response, Geomat. Nat. Haz. Risk, 8, 384–401, 2017. 

Blöschl, G., Hall, J., Viglione, A., Perdigão, R. A., Parajka, J., Merz, B., Lun, D., Arheimer, B., Aronica, G. T., Bilibashi, A., and Boháč, M.: Changing climate both increases and decreases European river floods, Nature, 573, 108–111, 2019. 

Borga, M., Anagnostou, E. N., Blöschl, G., and Creutin, J. D.: Flash flood forecasting, warning and risk management: the HYDRATE project, Environ. Sci. Policy, 14, 834–844, 2011. 

Central Water Commission Official Flood Forecast: @CWCOfficial_FF, post-date: 27 August 2021, https://twitter.com/CWCOfficial_FF/status/1431190935019294726 (access date: 11 November 2021), 2021. 

Chang, L. C., Amin, M. Z. M., Yang, S. N., and Chang, F. J.: Building ANN-based regional multi-step-ahead flood inundation forecast models, Water, 10, 1283, https://doi.org/10.3390/w10091283, 2018. 

Chu, H., Wu, W., Wang, Q. J., Nathan, R., and Wei, J.: An ANN-based emulation modelling framework for flood inundation modelling: Application, challenges and future directions, Environ. Model. Softw., 124, 104587, https://doi.org/10.1016/j.envsoft.2019.104587, 2020. 

de Almeida, G. A., Bates, P., Freer, J. E., and Souvignet, M.: Improving the stability of a simple formulation of the shallow water equations for 2-D flood modeling, Water Resour. Res., 48, W05528, https://doi.org/10.1029/2011WR011570, 2012. 

Devlin, J., Chang, M. W., Lee, K., and Toutanova, K.: BERT: Pre-training of deep bidirectional transformers for language understanding, Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics, 2–7 June 2019, Minneapolis, MN, USA, 1, 4171–4186, https://doi.org/10.48550/arXiv.1810.04805 2019. 

EM-DAT: https://www.emdat.be/, last access: 10 October 2021. 

Emerton, R. E., Stephens, E. M., Pappenberger, F., Pagano, T. C., Weerts, A. H., Wood, A. W., Salamon, P., Brown, J. D., Hjerdt, N., Donnelly, C., and Baugh, C. A.: Continental and global scale flood forecasting systems, WIRES Water, 3, 391–418, 2016. 

Feng, D., Fang, K., and Shen, C.: Enhancing streamflow forecast and extracting insights using long-short term memory networks with data integration at continental scales, Water Resour. Res., 56, e2019WR026793, https://doi.org/10.1029/2019WR026793, 2020. 

Frame, J. M., Kratzert, F., Klotz, D., Gauch, M., Shelev, G., Gilon, O., Qualls, L. M., Gupta, H. V., and Nearing, G. S.: Deep learning rainfall–runoff predictions of extreme events, Hydrol. Earth Syst. Sci., 26, 3377–3392, https://doi.org/10.5194/hess-26-3377-2022, 2022. 

Gauch, M., Kratzert, F., Klotz, D., Nearing, G., Lin, J., and Hochreiter, S.: Rainfall–runoff prediction at multiple timescales with a single Long Short-Term Memory network, Hydrol. Earth Syst. Sci., 25, 2045–2062, https://doi.org/10.5194/hess-25-2045-2021, 2021. 

Georgakakos, K. P.: Overview of the Global Flash Flood Guidance System and Its Application Worldwide, WMO Bulletin, 67, 37–42, 2018. 

Google-research flood_forecasting: Code excerpts from the flood forecasting inundation models, GitHub [code],​​​​​​​ https://github.com/google-research/google-research/tree/master/flood_forecasting, last access: 19 March 2022. 

Gorelick, N., Hancher, M., Dixon, M., Ilyushchenko, S., Thau, D., and Moore, R. Google Earth Engine: Planetary-scale geospatial analysis for everyone, Remote Sens. Environ., 202, 18–27, 2017. 

Hallegatte, S.: A cost effective solution to reduce disaster losses in developing countries: hydro-meteorological services, early warning, and evacuation, The World Bank, https://doi.org/10.1596/1813-9450-6058, 2012. 

He, K., Zhang, X., Ren, S., and Sun, J.: Deep residual learning for image recognition, Proc. IEEE Conf. on Computer Vision and Pattern Recognition (CVPR), 27–30 June 2016, Las Vegas, NV, USA, 770–778, https://doi.org/10.1109/CVPR.2016.90, 2016. 

Hrachowitz, M., Savenije, H. H. G., Blöschl, G., McDonnell, J. J., Sivapalan, M., Pomeroy, J. W., Arheimer, B., Blume, T., Clark, M. P., Ehret, U., and Fenicia, F.: A decade of Predictions in Ungauged Basins (PUB) – a review, Hydrolog. Sci. J., 58, 1198–1255, 2013. 

Hsu, K. L., Gupta, H. V., and Sorooshian, S.: Artificial neural network modeling of the rainfall-runoff process, Water Resour. Res., 31, 2517–2530, 1995. 

Hu, R., Fang, F., Pain, C. C., and Navon, I. M.: Rapid spatio-temporal flood prediction and uncertainty quantification using a deep learning method, J. Hydrol., 575, 911–920, 2019. 

Huffman, G. J., Stocker, E. F., Bolvin, D. T., Nelkin, E. J., and Tan, J.: GPM IMERG Early Precipitation L3 Half Hourly 0.1 degree x 0.1 degree V06, Greenbelt, MD, Goddard Earth Sciences Data and Information Services Center (GES DISC) [data set], https://doi.org/10.5067/GPM/IMERG/3B-HH-E/06, 2019. 

Jian, J., Ryu, D., Costelloe, J. F., and Su, C. H.: Towards hydrological model calibration using river level measurements, J. Hydrol.: Regional Studies, 10, 95–109, 2017. 

Jonkman, S. N.: Global perspectives on loss of human life caused by floods, Nat. Hazards, 34, 151–175, 2005. 

Kabir, S., Patidar, S., Xia, X., Liang, Q., Neal, J., and Pender, G.: A deep convolutional neural network model for rapid prediction of fluvial flood inundation, J. Hydrol., 590, 125481, https://doi.org/10.1016/j.jhydrol.2020.125481, 2020. 

Klotz, D., Kratzert, F., Gauch, M., Keefe Sampson, A., Brandstetter, J., Klambauer, G., Hochreiter, S., and Nearing, G.: Uncertainty estimation with deep learning for rainfall–runoff modeling, Hydrol. Earth Syst. Sci., 26, 1673–1693, https://doi.org/10.5194/hess-26-1673-2022, 2022. 

Krajewski, W. F., Ceynar, D., Demir, I., Goska, R., Kruger, A., Langel, C., Mantilla, R., Niemeier, J., Quintero, F., Seo, B. C., and Small, S. J.: Real-time flood forecasting and information system for the state of Iowa, B. Am. Meteorol. Soc., 98, 539–554, 2017. 

Kratzert, F., Klotz, D., Brenner, C., Schulz, K., and Herrnegger, M.: Rainfall–runoff modelling using Long Short-Term Memory (LSTM) networks, Hydrol. Earth Syst. Sci., 22, 6005–6022, https://doi.org/10.5194/hess-22-6005-2018, 2018. 

Kratzert, F., Klotz, D., Herrnegger, M., Sampson, A. K., Hochreiter, S., and Nearing, G. S.: Toward improved predictions in ungauged basins: Exploiting the power of machine learning. Water Resour. Res., 55, 11344–11354, 2019a. 

Kratzert, F., Klotz, D., Shalev, G., Klambauer, G., Hochreiter, S., and Nearing, G.: Towards learning universal, regional, and local hydrological behaviors via machine learning applied to large-sample datasets, Hydrol. Earth Syst. Sci., 23, 5089–5110, https://doi.org/10.5194/hess-23-5089-2019, 2019b. 

Kuller, M., Schoenholzer, K., and Lienert, J.: Creating effective flood warnings: A framework from a critical review, J. Hydrol., 602, 126708, https://doi.org/10.1016/j.jhydrol.2021.126708, 2021. 

McFeeters, S. K.: Using the normalized difference water index (NDWI) within a geographic information system to detect swimming pools for mosquito abatement: a practical approach. Remote Sens., 5, 3544–3561, 2013. 

McMillan, H. K. and Westerberg, I. K.: Rating curve estimation under epistemic uncertainty, Hydrol. Process., 29, 1873–1882, 2015. 

Mosavi, A., Ozturk, P., and Chau, K. W.: Flood prediction using machine learning models: Literature review, Water, 10, 1536, https://doi.org/10.3390/w10111536, 2018. 

Moshe, Z., Metzger, A., Elidan, G., Kratzert, F., Nevo, S., and El-Yaniv, R.: Hydronets: Leveraging river structure for hydrologic modeling, arXiv [preprint], arXiv:2007.00595, 1 July 2020. 

Nearing, G. S., Kratzert, F., Sampson, A. K., Pelissier, C. S., Klotz, D., Frame, J. M., Prieto, C., and Gupta, H. V.: What role does hydrological science play in the age of machine learning?, Water Resour. Res., 57, e2020WR028091, https://doi.org/https://doi.org/10.1029/2020WR028091, 2020. 

Nevo, S., Elidan, G., Hassidim, A., Shalev, G., Gilon, O., Nearing, G., and Matias, Y.: ML-based flood forecasting: Advances in scale, accuracy and reach, NeurIPS Artificial Intelligence for Humanitarian Assistance and Disaster Response Workshop, arXiv [preprint], arXiv:2012.00671, 12–13 December 2020, virtual conference, 2020. 

Ocio, D., Le Vine, N., Westerberg, I., Pappenberger, F., and Buytaert, W.: The role of rating curve uncertainty in real-time flood forecasting, Water Resour. Res., 53, 4197–4213, 2017. 

OpenCV findContours: [code], https://docs.opencv.org/3.4/d3/dc0/group__imgproc__shape.html#ga17ed9f5d79ae97bd4c7cf18403e1689a, last access: 29 September 2021. 

Pagano, T. C., Wood, A. W., Ramos, M. H., Cloke, H. L., Pappenberger, F., Clark, M. P., Cranston, M., Kavetski, D., Mathevet, T., Sorooshian, S., and Verkade, J. S.: Challenges of operational river forecasting, J. Hydrometeorol., 15, 1692–1707, 2014. 

Perera, D., Agnihotri, J., Seidou, O., and Djalante, R.: Identifying societal challenges in flood early warning systems, Int. J. Disast. Risk Re., 51, 101794, https://doi.org/10.1016/j.ijdrr.2020.101794, 2020. 

Rotach, M. W., Ambrosetti, P., Ament, F., Appenzeller, C., Arpagaus, M., Bauer, H. S., Behrendt, A., Bouttier, F., Buzzi, A., Corazza, M., and Davolio, S.: MAP D-PHASE: Real-time demonstration of weather forecast quality in the Alpine region, B. Am. Meteorol. Soc., 90, 1321–1336, 2009. 

Schumann, G. J. P. and Moller, D. K.: Microwave remote sensing of flood inundation, Phys. Chem. Earth A/B/C, 83, 84–95, 2015. 

Shrestha, M. S., Grabs, W. E., and Khadgi, V. R.: Establishment of a regional flood information system in the Hindu Kush Himalayas: challenges and opportunities, Int. J. Water Resour. D., 31, 238–252, 2015. 

Sivapalan, M., Takeuchi, K., Franks, S. W., Gupta, V. K., Karambiri, H., Lakshmi, V., Liang, X., McDonnell, J. J., Mendiondo, E. M., O'connell, P. E., and Oki, T.: IAHS Decade on Predictions in Ungauged Basins (PUB), 2003–2012: Shaping an exciting future for the hydrological sciences, Hydrolog. Sci. J., 48, 857–880, 2003. 

Sokolova, M., Japkowicz, N., and Szpakowicz, S.: Beyond accuracy, F-score and ROC: a family of discriminant measures for performance evaluation, in: Australasian joint conference on artificial intelligence, 4–8 December 2006, Hobart, TAS, Australia, Springer, Berlin, Heidelberg, 1015–1021, https://doi.org/10.1007/11941439_114, 2006. 

Teng, J., Jakeman, A. J., Vaze, J., Croke, B. F., Dutta, D., and Kim, S.: Flood inundation modelling: A review of methods, recent advances and uncertainty analysis, Environ. Model. Softw., 90, 201–216, 2017. 

Tiwari, M. K. and Chatterjee, C.: Development of an accurate and reliable hourly flood forecasting model using wavelet–bootstrap–ANN (WBANN) hybrid approach, J. Hydrol., 394, 458–470, 2010. 

Torres, R., Snoeij, P., Geudtner, D., Bibby, D., Davidson, M., Attema, E., Potin, P., Rommen, B., Floury, N., Brown, M., Traver, I. N., Deghaye, P., Duesmann, B., Rosich, B., Miranda, N., Bruno, C., L'Abbate, M., Croci, R., Pietropaolo, A., Huchler, M., and Rostan, F.: GMES Sentinel-1 mission, Remote Sens. Environ., 120, 9–24, https://doi.org/10.1016/j.rse.2011.05.028, 2012.  

United States Nations Office for Disaster Risk Reduction (UNISDR), Centre for Research of the Epidemiology of Disaster (CRED), The human cost of natural disasters: A global perspective, http://repo.floodalliance.net/jspui/handle/44111/1165 (last access: 30 July 2022), 2015. 

Welles, E. and Sorooshian, S.: Scientific verification of deterministic river stage forecasts, J. Hydrometeorol., 10, 507–520, 2009. 

Werner, M., Cranston, M., Harrison, T., Whitfield, D., and Schellekens, J.: Recent developments in operational flood forecasting in England, Wales and Scotland, Meteorol. Appl., 16, 13–22, 2009. 

World Bank: Proceedings of the regional flood early warning system workshop (English), 23–27 November 2015, Bangkok, Thailand, World Bank Group, Washington, D.C., USA, http://documents.worldbank.org/curated/en/431281468000591916/Proceedings-of-the-regional-flood-early-warning-system-workshop (last access: 30 July 2022), 2015. 

World Meteorological Association: The global climate 2001–2010: A decade of climate extremes, summary report, WMO, Geneva, Switzerland, 16 pp., ISBN 978-92-63-11119-7, 2013. 

Xiang, Z. and Demir, I.: Distributed long-term hourly streamflow predictions using deep learning–A case study for State of Iowa, Environ. Model. Softw., 131, 104761, https://doi.org/10.1016/j.envsoft.2020.104761, 2020. 

Xiang, Z., Yan, J., and Demir, I.: A rainfall-runoff model with LSTM-based sequence-to-sequence learning, Water Resour. Res., 56, e2019WR025326, https://doi.org/10.1029/2019WR025326, 2020. 

Zalenski, G., Krajewski, W. F., Quintero, F., Restrepo, P., and Buan, S.: Analysis of national weather service stage forecast errors, Weather Forecast., 32, 1441–1465, 2017. 

Zappa, M., Rotach, M. W., Arpagaus, M., Dorninger, M., Hegg, C., Montani, A., Ranzi, R., Ament, F., Germann, U., Grossi, G., and Jaun, S.: MAP D-PHASE: real-time demonstration of hydrological ensemble prediction systems, Atmos. Sci. Lett., 9, 80–87, 2008. 

Download
Short summary
Early flood warnings are one of the most effective tools to save lives and goods. Machine learning (ML) models can improve flood prediction accuracy but their use in operational frameworks is limited. The paper presents a flood warning system, operational in India and Bangladesh, that uses ML models for forecasting river stage and flood inundation maps and discusses the models' performances. In 2021, more than 100 million flood alerts were sent to people near rivers over an area of 470 000 km2.