Paper commentary
Flood forecasting with machine learning models in an operational framework
- Problem Operational flood warnings for large gauged rivers need stage forecasts and inundation maps that are produced in real time, and published evaluations of such operational systems are scarce.
- Method The pipeline validates gauge and IMERG precipitation data, forecasts river stage with a Linear or an LSTM model, and when a forecast exceeds a gauge's warning threshold it maps inundation with a Thresholding or Manifold model before alerts go out.
- Results The LSTM with precipitation reached a median NSE of 0.9870 and a median Persistent-NSE of 0.6708 under one-year cross-validation on 2014-2020 data for 167 gauges. Thresholding and Manifold reached median F1 values of 69.01 and 69.12 under one-year cross-validation.

Figure 1 . The 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.
Original paper · CC BY 4.0 · Extracted the figure area from page 6 of the original PDF.Why warnings for large rivers are hard to build and check
Flood warning for large gauged rivers needs two forecasts at once: how high the river will rise at a target gauge, and which nearby pixels will be under water at that stage. The system treats each gauge as a target with its own warning threshold, a maximal lead time and an area of interest around it where inundation is computed. Deployed systems differ widely in structure, data and model type, and many chain a hydrological model with a downstream inundation step.
Published evaluations of such systems are scarce, which the authors attribute to difficult access to ground truth and to evaluation receiving low priority in operations.
Stage is the chosen input because stage records are far more abundant than discharge, and discharge carries uncertainty from stage-discharge relationships. Conceptual models are hard to calibrate on stage records, whereas learned models can be fitted to stage directly, so learned components sit at the core of the system. Two learned components carry the workload: a stage forecaster and an inundation model, with the Linear and LSTM options on the first and the Thresholding and Manifold options on the second.
From gauge readings to public alerts
Every cycle begins with ingestion and correction, because both manually read and telemetered stage data contain errors. Implausible values are found with checks such as a misplaced decimal point and with comparisons against earlier readings and record statistics, and short gaps are filled by linear interpolation. India and Bangladesh both use hourly stage data.
Precipitation comes from IMERG Early Run, which has a 12-hour latency and a resolution of 0.1 degree in space and 30 minutes in time; negative and missing values are removed and rain intensity is capped at 200 mm/h. The precipitation is averaged over each target gauge's drainage area and integrated in time to match the hourly stage.
An alert is triggered when the largest forecast stage between the current time and the maximal lead time exceeds the gauge's warning threshold. External forecasts from national authorities pass through the same threshold check. Triggered forecasts are then passed to the inundation step for mapping.
Alerts carry the stage change, the inundation map and the depth where available, and go to government authorities and emergency agencies. The public receives them through Google Search, through push notifications to phones inside the forecast flood area, and through icons in Google Maps. Each alert page gives the stage change and a map of the inundated area, while relevant organizations also receive email and dashboards.
Alerts are written in the local language.
Linear and LSTM stage forecasters
The Linear model is a multiple linear regression fitted separately for each target gauge. Its inputs are past stages at the target gauge and at its upstream gauges, typically 2-5 of them, and its output is the target stage at one chosen lead time. Training minimizes mean square error with an L2 penalty on the coefficients, and a separate model is trained for each lead time up to the maximal one, so a 24-hour maximal lead time at hourly steps means 24 models.
The LSTM model has two LSTMs: a hindcast model that reads the recent past and a forecast model that produces the future steps. At each hour the hindcast LSTM takes IMERG precipitation, near-real-time stage and a linear combination of upstream stages over a lookback period. A gauge-specific linear layer compresses a variable number of upstream gauges into five features for the hindcast LSTM.
The final cell and hidden states of the hindcast LSTM pass through a fully connected layer, and the result initializes the forecast LSTM. The forecast LSTM then advances one step per lead time, so it outputs every lead time up to the maximal one. The authors use this handoff to separate the inputs available in real time only during the hindcast, mainly precipitation, from the forecast steps.
All LSTM weights, hindcast and forecast, are shared across target gauges, so the model is regionally calibrated; only the upstream combiner has gauge-specific weights. Uncertainty is modeled as a countable mixture of asymmetric Laplacians, whose parameters come from a dedicated head at each forecast step. The negative log-likelihood is computed only on the forecast outputs, while the hindcast only sets the initial state.
Because training is shared, the maximal lead time used in training is the largest of the gauge-specific values.
Both stage forecasters are validated with one-year leave-out folds over the historical records, and the operational versions are retrained on the full data set. Historical records for 2014-2020 trained the stage forecast model, and the LSTM was used for all target gauges except two where its performance was low.
Stage forecast skill under one-year cross-validation
The comparison covers four configurations: Linear and LSTM, each with and without precipitation input. Scores come from one-year cross-validation on 2014-2020 data for 167 target gauges with an operational stage forecast model. NSE scores skill against the mean observation used as the forecast, while Persistent-NSE uses the last observed stage as its baseline.
NSE medians are 0.9839 for Linear without precipitation, 0.9847 for Linear with precipitation, 0.9862 for LSTM without precipitation and 0.9870 for LSTM with precipitation. The ranges run from 0.8368 to 0.9988 for Linear without precipitation and from 0.8508 to 0.9992 for LSTM with precipitation. The authors attribute these high NSE values to the slow response of large rivers and to the use of historic and upstream stages as inputs.
Persistent-NSE medians are lower: 0.5851 and 0.5991 for Linear without and with precipitation, and 0.6608 and 0.6708 for LSTM without and with precipitation. Adding precipitation changes the NSE median by 0.0001 for Linear and by 0.0005 for LSTM. The LSTM minus Linear median difference with precipitation is 0.0017 for NSE and 0.0635 for Persistent-NSE.
These comparisons are marked as statistically significant by the Wilcoxon signed-rank test on paired samples. For some gauges Persistent-NSE is negative, down to -0.6079 for LSTM with precipitation, so the model's squared error there exceeds that of the last-observed baseline.
For 95% of target gauges the LSTM achieves a better Persistent-NSE than the Linear model. Adding precipitation improved the LSTM on 89% of gauges and the Linear model on 65%.
Persistent-NSE medians rise with watershed area across three bins holding 49, 54 and 42 gauges. The smallest bin, below 10,000 km2, has the widest spread, and its median does not differ significantly from the middle bin (p-val>0.1, Mood's median test). For all four models the largest bin's median differs from the middle and smallest bins at p-val<0.001 by Mood's median test.
Thresholding, Manifold and Hydraulic inundation models
Inundation models convert the forecast stage for a given time into an extent map over the AOI, treating the river as being in steady state at that moment. The Thresholding model needs no DEM and gives extent only, while the Manifold model needs a DEM and gives extent and depth. Figure 3 places the three inundation schemes side by side, which is the reference for the procedures described below.
Each AOI pixel is treated as its own binary classification with wet as the positive class, and it receives a threshold on the target gauge stage. The algorithm picks, for each iteration, the threshold that gives the highest ratio of true wet events to false wet events, then discards the events above that threshold and repeats. A global minimal ratio parameter stops the iteration: once the next ratio falls below it, the threshold from the previous iteration is kept.
The authors state that no other set of pixel-specific thresholds gives better precision and recall at the same time, so the thresholds are Pareto optimal, and every F-score is reached by some value of the minimal ratio. When the input stage exceeds every past stage, the most severe historical extent is expanded outward by a distance that grows linearly with the excess stage.
The Manifold model takes a DEM and a target stage and outputs the extent and the depth at each AOI pixel. Its first part turns an extent map into a water height map: heights are read from the DEM at the flood boundary, and the Laplace equation interpolates the interior. The height surface must be smooth and must have no interior minimum or maximum within flooded regions.
The height map is computed on a coarse grid in which each cell covers 32x32 DEM pixels, and outlier pixels with high Laplace tension are removed.
Because the full extent is unknown at run time, the Manifold model precomputes water height maps for past events, using the Thresholding model to produce each event's extent. For a new stage it interpolates piecewise-linearly, pixel by pixel, between the stored height maps. Pixels whose water height is above the DEM become wet, and depth is the difference between the water height and the DEM for those wet pixels.
Above the highest observed stage, the height map is extrapolated by adding the gauge stage difference to every pixel.
The Hydraulic model is a physics-based model built on numerical solutions of the St. Venant equations, run under a steady-state approximation for each moment. Since real-time input is stage rather than discharge, the runs are made offline over many upstream discharge values and stored in a hash table; at run time the run with the closest gauge stage is used.
Its river bathymetry is estimated by fitting trapezoids to the river cross sections, because optical DEMs do not capture the water-covered part. The Hydraulic model was discarded because it proved less accurate and less scalable than the ML models, and its computational cost was considerably higher.
Global DEMs such as NASA SRTM and MERIT are judged too coarse and too old for AOI-level flood simulation, so each AOI gets a higher-resolution DEM built from satellite optical imagery. Training uses flood extent maps derived from satellite data together with the gauge stage at each event. Reference flood maps come from Sentinel-2, with per-pixel NDWI computed from the green and near-infrared bands and a threshold of 0.
Model selection depends on DEM availability and on historical performance, and the Manifold model is preferred when possible because it also gives depth.
Inundation F1 across AOIs and against the Hydraulic model
F1 is the harmonic mean of precision and recall over the dry and wet classification of AOI pixels, with wet pixels as positive. A first step compares the Hydraulic and Thresholding models on 11 AOIs, because the Hydraulic runs need substantial manual work and heavy computation. Both models were trained on flood events from 2016-2019 and validated on different events from 2020.
Thresholding has a higher validation F1 than the Hydraulic model on 9 of the 11 AOIs. Average F1 is 75.08% for Thresholding and 70.47% for the Hydraulic model. Thresholding also needs less computation and manual calibration, so the Hydraulic model was not included in the operational system.
The second step covers all 126 AOIs with a DEM, where both models can run, using 4815 flood events from 2016 to 2020, or 38 on average per AOI. Median F1 is computed for each AOI across years with one-year cross-validation. Leave-extreme-out removes the highest recorded event and every event whose stage is within 30 cm of it from training, and then validates on that highest event.
Under one-year cross-validation the median F1 is 69.01 for Thresholding and 69.12 for Manifold. Under leave-extreme-out the median F1 is 76.74 for Thresholding and 76.27 for Manifold. The F1 range is wider under leave-extreme-out, from 2.48 to 96.68 for Thresholding, than under cross-validation, from 41.67 to 92.49. The median of the paired per-AOI differences, Manifold minus Thresholding, is -1.31 under cross-validation and -1.79 under leave-extreme-out, both marked significant at p-val<0.05 by the Wilcoxon signed-rank test.
This paired median is taken over per-AOI differences, so it does not equal the gap between the two medians shown above.
Thresholding has the better F1 in 70% of AOIs under cross-validation and in 57% under leave-extreme-out. The authors describe the two F1 distributions as close, while Thresholding leads in most AOIs.
Coverage and alerts in the 2021 monsoon
In 2021 the system handled 376 target gauges in India and Bangladesh, covering watersheds from 350 to 1,500,000 km2. Stage forecast models were applied to 167 target gauges, and the others relied on external forecasts. Inundation models were applied to 233 target gauges, and 143 gauges sent alerts without inundation maps because ground truth was very limited or flood patterns were highly irregular.
The Thresholding model ran at 174 gauges and the Manifold model at 59, over AOIs from 20 to 5,295 km2. The covered flood-prone area is more than 287,000 km2, with a population close to 245,000,000.
Hourly stage data for June 1 to October 31 came from CWC and BWDB, and IMERG precipitation from NASA was averaged in space and time into watershed-averaged hourly values. The stage models were trained on 2014-2020 records and then ran operationally in 2021 on real-time data. Maps were computed at a 16x16 m2 resolution and evaluated at 64x64 m2.
External forecasts from CWC and BWDB typically arrived once or twice a day, with lead times of 12 to 120 hours.
About 115M notifications were sent in total, and they reached about 22M people. Alerts went to CWC, BWDB and the Federation of the Red Cross and Red Crescent Societies, and push notifications went to phones in forecast flood areas when flooding was severe. Notifications were sent in nine languages: English, Hindi, Bengali, Gujarati, Marathi, Tamil, Telugu, Kannada and Malayalam.
The Bihar case is one event: on August 11, close to midnight, several gauges in Bihar issued danger-level alerts. The Hathidah gauge forecast indicated that the gauge would reach its highest recorded stage on August 12 at 22:00. The inundation depth map covers 533 km2, against 163 km2 at low river stages in the non-monsoon season. The Hathidah forecast used a 42-hour LSTM forecast, and its depth map was produced by the Manifold model.
Stage error against published operational results
One published benchmark is Zalenski et al. (2017), which evaluated US National Weather Service stage forecasts for 51 stream gauges in Iowa. The present system's stage forecast models have median root mean square errors of 0.1 and 0.2 meter at 24 and 48 hours. The authors caution that the errors are not fully comparable, because the watersheds differ.
Few operational results are published, so this study adds accuracy metrics for 167 gauges with stage forecasts and 126 AOIs with inundation evaluation.
Limits of what was checked
There is no ground truth for flood depth, so the depth outputs of the Manifold model cannot be checked against observations. The reported F1 scores concern flood extent only.
The Hydraulic comparison covers only 11 AOIs, because that model needs substantial manual work and heavy computation. Its validation uses events from 2020 only.
143 gauges received alerts without inundation maps, typically because ground truth was very limited or flood patterns were highly irregular.
The authors note that ML models rely on the data they are trained on and therefore need large, representative records. The authors link good performance to analysed basins with six to seven years of records.
For some gauges the LSTM's Persistent-NSE is negative, down to -0.6079 with precipitation included, so its squared error there exceeds that of the last-observed baseline.
Paper info
- Authors
- 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, Yossi Matias
- Venue
- arXiv · Preprint
- First published
- 2021-11-4
- Added
- 2026-11-6
- Updated
- 2021-11-4
- Version
- v1
- arXiv
- 2111.02780
- Category
- cs.LG
- Original paper terms
- CC BY 4.0
- What we show
- Paper info, commentary and permitted figures from the original paper
AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.
Abstract
The operational flood forecasting system by Google 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 of 287,000 km2, home to more than 350M people. More than 100M 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, as well as improving modeling capabilities and accuracy.
Quote from the paper
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 et al. (2021). Flood forecasting with machine learning models in an operational framework. arXiv:2111.02780v1. https://arxiv.org/abs/2111.02780v1
BibTeX
@misc{nevo2021flood,
title = {{Flood forecasting with machine learning models in an operational framework}},
author = {Sella Nevo and Efrat Morin and Adi Gerzi Rosenthal and Asher Metzger and Chen Barshai and Dana Weitzner and Dafi Voloshin and Frederik Kratzert and Gal Elidan and Gideon Dror and Gregory Begelman and Grey Nearing and Guy Shalev and Hila Noga and Ira Shavitt and Liora Yuklea and Moriah Royz and Niv Giladi and Nofar Peled Levi and Ofir Reich and Oren Gilon and Ronnie Maor and Shahar Timnat and Tal Shechter and Vladimir Anisimov and Yotam Gigi and Yuval Levin and Zach Moshe and Zvika Ben-Haim and Avinatan Hassidim and Yossi Matias},
year = {2021},
eprint = {2111.02780},
archivePrefix = {arXiv},
url = {https://arxiv.org/abs/2111.02780v1}
}