Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Google Research 6 min read Announcement easyNovice

The next chapter in flood resilience: Open sourcing Google’s hydrology framework

Google has open-sourced the hydrology modeling framework behind Flood Hub's riverine flood forecasts as a PyTorch-based Python package under Apache 2.0, letting meteorological agencies train or fine-tune LSTM streamflow models on their own data via the Caravan dataset. The repo includes the original 2024 benchmarked model and the v2 ME-LSTM model, which embeds each weather product (GraphCast, IFS, IMERG, CPC) with a separate network before an LSTM outputs a streamflow probability distribution; v2 extends the reliable forecast horizon by six days in gauged basins and one day in ungauged basins. The Czech Hydrometeorological Institute validated forecasts as comparable to locally calibrated conceptual models and built an adapter for the Delft-FEWS operational platform.

Assumes: LSTM networksstreamflow forecasting basics

Related posts

  • Protecting cities with AI-driven flash flood forecasting

    Google Research easyNovice

    Google's Flood Hub now forecasts urban flash floods up to 24 hours ahead using an LSTM model trained on Groundsource, a dataset of historical flood events that Gemini extracted from news reports, since flash floods lack stream-gauge ground truth. The model takes only globally available weather inputs (NASA IMERG, NOAA CPC, ECMWF IFS HRES and DeepMind forecasts) plus static features like urbanization, topography and soil absorption. It runs at 20x20 km resolution over areas with more than 100 people per square kilometer. Precision and recall in much of the Global South match rich countries, and the US NWS baseline scores 22% recall and 44% precision on the same metrics. Precision is likely underestimated because many floods go unreported.

  • Introducing Groundsource: Turning news reports into data with Gemini

    Google Research easyNovice

    Groundsource is a Gemini-based pipeline that extracts structured historical flood events from global news. It produced an open dataset of 2.6 million urban flash flood records spanning 150+ countries from 2000 onward. Articles in 80 languages are text-extracted, translated to English, then processed by a prompt that classifies actual floods versus warnings, anchors relative dates to publication time, and maps locations to Google Maps polygons. Manual review found 60% of events accurate in both location and timing and 82% practically useful, and the dataset captured 85–100% of severe GDACS-recorded floods from 2020–2026. It now underpins near-global urban flash flood forecasts up to 24 hours ahead in Flood Hub.

  • TimesFM-3: A zero-shot foundation model for multivariate forecasting

    Google Research hardMaster

    TimesFM-3 is a 330M-parameter decoder-only transformer pre-trained on over 1 trillion real and synthetic time points that does zero-shot multivariate forecasting, supporting multiple targets, past-only covariates and known-future covariates. Series are split into 32-step patches with per-series normalization. Future-known covariates use lookahead tokens that concatenate the current patch with future patches. Layers alternate causal temporal attention within each series with full cross-variate attention at each time step. Contiguous Patch Masking replaces autoregressive patch-by-patch decoding, producing the whole horizon and 9 quantiles in one forward pass. It ranks first among pre-trained foundation models on Gift-Eval, FEV-Bench and Time against Chronos-2, Toto 2.0 and TimesFM-2.5, even in univariate mode, and is available on GitHub, Hugging Face and BigQuery's AI.FORECAST.

  • Using Machine Learning to Aid Survivors and Race through Time

    Hugging Face mediumAdept

    After the February 2023 Turkey earthquakes, volunteers built ML pipelines for the afetharita disaster map. Survivors' screenshots and tweets were turned into structured addresses and needs using easyocr, a fine-tuned bert-base-turkish-cased NER model, and BERT intent classifiers selected by recall and F1 from a metadata-tagged leaderboard. Models were served through Hugging Face Inference API to avoid separate deployment work. Zero-shot NLI and few-shot LLM prompting covered data drift where labels were missing, and separate teams fine-tuned YOLO, EfficientNet and SegFormer models on satellite imagery to detect damaged buildings.

  • Probabilistic Time Series Forecasting with 🤗 Transformers

    Hugging Face hardMaster

    An encoder-decoder Transformer can be trained as a global probabilistic forecaster that learns across many related time series and outputs a distribution (Student-t by default) rather than point estimates, with forecasts sampled autoregressively. The walkthrough trains Hugging Face's TimeSeriesTransformerForPrediction from scratch on the Monash tourism_monthly dataset (366 Australian regions, 24-month horizon). It uses GluonTS for lag features, time features, observed-value masks and instance splitting into context/prediction windows. Transformers suit forecasting because they handle missing values via attention masks and train with teacher forcing, but quadratic attention limits window sizes and they can overfit more easily.

The quest for software engineering knowledge.

Look:
Layout: