Skip to main content
Back

IBM's TerraFlow Predicts Floods 50% Better by Teaching Satellites to Reason Through Time

TerraFlow adds temporal pretraining to a satellite foundation model, beating prior state-of-the-art on time-series tasks and cutting disaster risk prediction failures.

Pro

  • TerraFlow adds temporal attention and disjoint-timestamp masking to the TerraMind foundation model for Earth observation.
  • Beats all baselines on temporal tasks of GEO-Bench-2 including PASTIS, Kuro Siwo, and DynamicEarthNet.
  • Improves disaster risk prediction F1 by up to 50 percent and Brier score by 24 percent versus other foundation models.
  • 8M Tiny variant matches 100M TerraMind Base, suggesting temporal structure substitutes for raw capacity.
  • Trained only on SSL4EO-S12, a subset of TerraMind data, isolating the effect of temporal pretraining.
  • Wildfire prediction still fails because ignition depends on weather and human factors invisible in imagery.

A team from IBM Research and ETH Zurich has released TerraFlow, a foundation model for Earth observation that finally treats time as a first-class citizen. Instead of training yet another satellite image encoder from scratch, they take an existing multimodal model and continue pretraining it with objectives that force it to reason across timestamps. The payoff is significant: the model beats the current state-of-the-art on every temporal task in GEO-Bench-2, and on the harder problem of predicting where a flood or wildfire will occur, it improves F1 scores by up to 50 percent over competing foundation models.

Why static satellite models keep breaking on time

Earth observation data is messy in a specific way. The same patch of ground gets imaged by different sensors (optical, radar, elevation), at irregular intervals dictated by satellite revisit schedules, and often with clouds blocking half of what you want to see. Most geospatial foundation models handle this by encoding each timestamp separately and then pooling the features at the end, a late-fusion approach that throws away most of the temporal signal.

TerraFlow is built on top of TerraMind, a multimodal any-to-any generative foundation model for Earth Observation jointly developed by IBM, ESA, and Forschungszentrum Jülich, which uses a dual-scale transformer-based encoder-decoder architecture, simultaneously processing pixel-level and token-level data. TerraMind is strong at cross-modal reasoning but it was pretrained largely on single-timestamp data. TerraFlow keeps its cross-modal backbone but bolts on the temporal machinery it was missing.

The two ingredients that make it work

The method rests on two design choices, both cheap to implement but conceptually clean.

The first is rotary positional encoding (RoPE) applied along the time axis. Each token is tagged with the number of days since January 1, 2000, and the attention mechanism rotates query and key projections so that attention scores depend only on the relative time gap between two tokens. A useful side effect: when two tokens share a timestamp, the rotation collapses to the identity, meaning the model behaves exactly like the pretrained TerraMind on single-timestamp inputs. That preserves everything TerraMind already learned about space and modality.

TerraFlow architecture diagram showing encoder-decoder pipeline with RoPE temporal attention across Sentinel-1, Sentinel-2, and DEM inputs

The second ingredient is Temporal Disjoint Sampling (TDS). During pretraining, the model has to predict masked tokens across four timestamps of Sentinel-1 SAR, Sentinel-2 optical, and land cover imagery. If you mask tokens randomly across all timestamps, the model can cheat by reconstructing masked patches from unmasked patches at the same timestamp, using only spatial context. TDS prevents this by first partitioning the timestamps into disjoint input and target sets, so the model must always predict pixels from a timestamp it never saw. This forces it to actually learn temporal dynamics like persistence, change patterns, and seasonality.

Results that hold up under controlled comparison

TerraFlow was trained only on the SSL4EO-S12 v1.1 dataset, which is a strict subset of what TerraMind already saw. That matters because it isolates the effect of temporal pretraining from any effect of new data. Two model sizes were released: a Tiny variant with 5.5M encoder parameters and a Base variant with 85.5M. Training used roughly 75 billion tokens per variant on four A100-80GB GPUs.

On the temporal tasks of GEO-Bench-2, the 100M Base model posts clean improvements over the TerraMind baseline at the same scale:

  • Kuro Siwo flood segmentation: 70.1 vs 67.5 mIoU
  • PASTIS crop-type segmentation: 58.0 vs 54.3 mIoU
  • DynamicEarthNet land-cover change: 38.5 vs 35.8 mIoU
  • BioMassters biomass regression: matches the best score of 96.0

The parameter-efficiency story is arguably more interesting than the raw wins. The 8M Tiny variant performs comparably to the 100M TerraMind Base across multiple datasets, suggesting temporal structure can substitute for a chunk of raw model capacity.

Where the bigger gains show up

The team also stress-tested the model on a task most Earth observation foundation models fail at: predicting where a disaster will happen using only pre-event imagery. This is not post-event damage mapping, which is well-studied. It is forecasting the spatial footprint of a flood or fire before it occurs. Using the Kuro Siwo and ImpactMesh datasets, TerraFlow produces coherent risk maps where TerraMind essentially collapses into noise.

Qualitative comparison of flood risk predictions from TerraMind and TerraFlow across five geographic regions

On Kuro Siwo flood risk prediction, the Base model hits 38.0 F1 versus 29.1 for TerraMind at the same scale. On ImpactMesh floods it reaches 39.7 F1 versus 36.9. The paper reports gains of up to 50 percent in F1 and 24 percent in Brier score, the latter being important because it measures probability calibration, not just binary correctness.

Where it still fails

Wildfire risk is the honest limitation. Quantitative F1 scores look reasonable, but the qualitative maps show the model predicting large regions as uniformly high risk. The authors attribute this to the fact that fire risk depends on weather patterns, ignition sources, and human behavior that simply are not visible in satellite imagery. This is a useful reality check: temporal pretraining helps when the driving signal is in the pixels, and does not manufacture information that isn't there.

A second caveat is compute. Because temporal attention runs across the full sequence, inference cost grows quadratically with the number of timestamps, while TerraMind scales roughly linearly. The paper proposes a patch-level subsampling trick during fine-tuning: keep every spatial location but randomly drop tokens across time and modality axes. This preserves most of the accuracy at roughly half the fine-tuning time per epoch, and at test time you can feed the full sequence back in for a small performance boost.

What is available today

The paper does not yet link to a public TerraFlow checkpoint, but the underlying stack is fully open. TerraMind base and large variants are open-sourced on HuggingFace, and the models are fully integrated into the TerraTorch fine-tuning toolkit. The SSL4EO-S12 pretraining data and the ImpactMesh disaster dataset are both public. Given the pattern IBM has followed with TerraMind, model weights and TerraTorch integration for TerraFlow are the likely next step.

For anyone working on crop monitoring, biomass estimation, flood mapping, or land-cover change detection, this is the first foundation model where the temporal dimension is actually pulling its weight. And for the more speculative area of learned disaster forecasting, it is the first credible baseline that does not immediately collapse.