AI-ready data

Session 10 · Fri Oct 23 · Book section 2.13

✅

Today’s question

Chapter 2 taught you to read, clean, repair, and describe geoscience data.

When is a dataset ready to train a model, and to test whether the model works somewhere new?

Literature example: validating a forest biomass map

🛰️ Satellite & airborne 🌱 Biosphere 🦠 Biogeosciences

One random-forest map of central African forest biomass, scored two ways: R² = 0.53 when test plots are drawn at random, 0.14 when whole regions are held out, and close to zero beyond 100 km from the training plots.

Ploton, P., et al. (2020). Spatial validation reveals poor predictive performance of large-scale ecological mapping models. Nature Communications, 11, 4540. Figure 4, CC BY 4.0.

Inputs: satellite reflectance and climate layers. Target: field-measured aboveground biomass (Mg/ha). Same model, same data; only the partition changed.

(a) random 10-fold cross-validation; (b) spatial 44-fold cross-validation. Ploton et al. (2020), Fig. 4, CC BY 4.0.

A random split of spatially correlated plots reported R² = 0.53; holding out regions gave 0.14, the skill the map actually has away from field plots.

AI-ready data in publications and repositories

Works using the phrase “AI-ready” went from 97 in 2024 to 966 in 2026 so far, but only 42 of this year’s are in Earth and Planetary Sciences.

A catalog of AI-ready Earth-science datasets

Dataset System One sample Size Partition shipped Best shows
STEAD (Mousavi 2019) solid Earth 3-component waveform: earthquake or noise ~1.2 M traces none described B3 noise class
INSTANCE (Michelini 2021) solid Earth 3-component trace, 120 s at 100 Hz ~1.2 M traces, 620 stations none described A2, B2
WeatherBench 2 (Rasp 2024) atmosphere global ERA5 state at one time 1959 to 2023 2020 held out B7 time
ClimateBench (Watson-Parris 2022) atmosphere annual maps given forcing Earth system model runs SSP245 scenario held out B7 physics
CAMELS (Newman 2015, Addor 2017) land water one catchment’s daily series 671 catchments none described B1 units
Sen1Floods11 (Bonafilia 2020) land water 512 × 512 SAR chip, water mask 4,831 chips, 11 floods Bolivia held out B5 labels
BigEarthNet v2 (Clasen 2024) biosphere Sentinel-1/2 patch, land-cover labels 549,488 patches geographic split B7 space
CaFFe (Gourmelon 2022) cryosphere SAR image, calving-front label 681 images unseen glaciers B7 space
OceanBench (Johnson 2023) ocean daily sea-surface-height map 1 simulated year + real altimetry held-out months, one satellite B4 known truth

Six of these nine datasets ship a partition that holds out a period, a region, or a forcing scenario.

How much of each archive is AI-ready?

AI-ready datasets hold 1.8% of the ERA5 archive by volume, 0.43% of continuous seismic waveforms, 0.08% of Sentinel imagery, and 0.0003% of GNSS archives.

What an AI-ready dataset looks like: INSTANCE

🗂️ Catalog & compiled product 🪨 Solid Earth 📈 Seismology

Magnitude, epicentral distance, depth, back azimuth of about 1.2 million traces from about 50,000 Italian earthquakes. Michelini et al. (2021), ESSD, 13, 5509–5544, Fig. 3, CC BY 4.0.

The step at M 2 is deliberate: the authors kept most M ≥ 2 events and added 20,000 random M < 2 events to counter the Gutenberg–Richter imbalance.

Analysis-ready and AI-ready

Analysis-ready

A scientist can compute with the data without redoing the provider’s work.

  • provenance, version, license
  • homogenized: one unit system, reference frame, time base
  • quality flags, gaps, and censoring documented
  • standard format with readable metadata

AI-ready

The data also support training a model and testing whether it generalizes.

  • enough independent samples, diverse and with a known distribution
  • noise characterized: instrument versus natural variability
  • labels with known quality, or structure for self-supervision
  • can be partitioned into within-domain and out-of-domain sets

In this course AI-ready and ML-ready name the same requirements: classic machine learning and deep learning differ in how many samples they need, not in what the data must provide.

Analysis readiness is necessary for AI readiness but not sufficient: a clean, well-documented record from one station in one decade can still fail every generalization test.

Analysis readiness, with this quarter’s examples

Criterion What to check Example from this course
A1 Provenance source, version or retrieval date, license, citation NGL tenv3 files change daily: record the retrieval date (Session 4)
A2 Homogenization units, reference frame, time base, instrument changes bucket versus engine-intake ship temperatures in 1945 (Session 5); P395 antenna steps (Session 1)
A3 Quality and gaps flags, gaps, sentinels, censoring and their cause density zeros versus MgO zeros; a 5 mm detection limit (Session 5)
A4 Structure and metadata tidy tables or labeled arrays; units a script can read CSV versus Parquet versus netCDF for the same field (Session 4)

Every analysis-readiness criterion was already practiced in Chapter 2; the rubric collects them so a dataset can be scored.

Readiness by data modality

Modality One sample Catalog example Evidence to look for
station time series a day or window at a station GNSS P395, CAMELS streamflow time base, gaps, splits by station and period
waveforms multichannel record, fixed length STEAD, INSTANCE units or instrument response, sampling rate, pick labels
images and rasters georeferenced patch with bands BigEarthNet, Sen1Floods11, CaFFe projection, cloud and label masks, geographic splits
gridded fields map or 3D state at one time ERSST, WeatherBench 2, ClimateBench coordinates, area weights, held-out years or scenarios
tables and catalogs one event or one rock earthquake catalog, rock survey units, detection limits, completeness
tracks and profiles along-track or along-depth record OceanBench altimetry tracks irregular sampling, platform identity
text one statement or report ClimateX (Session 3) label source and labeler agreement

The 11 criteria are the same for every modality; the evidence to look for differs.

AI readiness: what the samples contain

Criterion Question Geoscience example
B1 Diversity how many independent units: stations, events, regions, years? 1.8 million QTM earthquakes, but one region and one network (Session 1)
B2 Distribution how are targets and inputs distributed; how rare is the class of interest? flood days are 1.3% to 6.3% of days at the four 2.13 gauges; granite to andesite 5.6 : 1; magnitudes follow a power law
B3 Noise which variability is the instrument and which is signal for another question? ocean microseism is noise for earthquake detection and signal for wave climate (Session 9)

Count independent units, not rows: 99% of the 36,518 Pacific Northwest earthquakes in Session 5 came from one network, so they say little about other networks.

AI readiness: what a model can learn from

Criterion Question Geoscience example
B4 Augmentation which transformations keep the physics? adding recorded noise to earthquake waveforms keeps the physics; time-reversing a flood hydrograph does not
B5 Labels who labeled, how consistently; or can structure replace labels? analyst phase picks vary in quality; years of unlabeled continuous waveforms allow self-supervised training
B6 Dimensionality samples versus features; input shape; intrinsic dimension STEAD: 3 components × 6,000 samples; first PCA mode of a temperature field: 95.5% of variance (2.12)

An augmentation is valid only if the instrument could have recorded the transformed sample.

B7: partitioning into within-domain and out-of-domain sets

Training and validation come from the same domain; the test set lies outside it along a stated axis: statistical, spatiotemporal, or physical.

What each partition tests

Partition Drawn from Tests Used for
Training the domain the model can fit the relationships fitting parameters
Validation the same domain, independent units the model interpolates within the domain choosing hyperparameters, stopping training
Test, statistical far from training in feature space extrapolation in the inputs reporting generalization
Test, spatiotemporal a later period or a new region transfer in space or time reporting generalization
Test, physical a different process, event size, or physics transfer to conditions not sampled reporting generalization

In notebook 2.13 one flood classifier scores 0.74 within the domain, 0.70 on later years, and 0.20 at a gauge it never saw (average precision).

Score a dataset with the rubric

Each criterion scores 0 missing · 1 present but incomplete · 2 another team can verify it

Analysis readiness

  • A1 Provenance
  • A2 Homogenization
  • A3 Quality and gaps
  • A4 Structure and metadata

AI readiness

  • B1 Diversity · B2 Distribution
  • B3 Noise · B4 Augmentation
  • B5 Labels · B6 Dimensionality
  • B7 Partitioning

Pairs, 8 minutes: give your assistant the agent version of this rubric (next slide) and one catalog dataset’s documentation; check two of its scores yourself.

A score counts only with its evidence: the file, page, or count that another team can check.

The rubric, written for an agent

Score each of the 11 criteria (A1-A4, B1-B7) 0, 1 or 2:
  0 missing; 1 present but incomplete; 2 another team could verify it.
For every score, quote the evidence: file and line, page and section, URL, or a count.
If you cannot find evidence, write "not found" and score 0; do not infer from reputation.
Count independent units (stations, events, regions, years), not rows.
B7: name the axis on which the test set lies outside the training domain:
  statistical, spatiotemporal, or physical.
Report a table: criterion, score, evidence, what is missing.

Full file: ai_ready_rubric_for_agents.md, one instruction per criterion. Copy it into your project’s AGENTS.md.

The same 11 criteria, rewritten so that an assistant must quote evidence for every score and say “not found” when there is none.

Run notebook 2.13

  1. pixi run jupyter lab → 2.13_MLready_data.ipynb
  2. Analysis readiness: convert ft³/s to m³/s, find the 91-day jump in the time base, replace the −999 values, write the description of the dataset and read it back
  3. AI readiness: count gauges, years, and floods; flood-day fraction; noise level and signal-to-noise; one valid and one invalid augmentation
  4. Partitioning: distance to the training set; held-out years and gauge G4; floods larger than any in training
  5. Score the dataset on the 11 criteria, then list what your project dataset needs before check-in #1 (Nov 16)

Monday: supervision concepts, classification and regression (3.1–3.2) · Chapter 2 quiz opens Monday