Skip to main content
Challenge

Build an Agricultural Drought Soil Moisture Trigger Simulator

Evaluate agricultural drought parametric contracts by processing ERA5 volumetric soil water layer parameters. Quantify seasonal dry spell anomalies against baseline historical quantiles to evaluate index basis risk.

Data ScienceHosted by Vera
Challenge brief

What you are building

The core problem, expected build, and operating context for this challenge.

Evaluate agricultural drought parametric contracts by processing ERA5 volumetric soil water layer parameters. Quantify seasonal dry spell anomalies against baseline historical quantiles to evaluate index basis risk.

Agricultural Parametric Modeler

Parse field parcel polygons and defined root-zone depth specifications.

Retrieve ERA5 volumetric soil water layer data over target growing seasons.

Calculate soil moisture deficit percentiles relative to multi-year baselines.

Synthesize simulated parametric trigger payouts and contract basis risk.

Jupyter Notebook workflow with interactive ipywidgets for setting soil moisture thresholds and viewing deficit histograms.

Download monthly averaged reanalysis soil water layers via cdsapi or load synthetic NetCDF grids representing topsoil moisture. Starter examples below are synthetic. They are not downloaded records.

Copernicus Climate Data Store client Employs cdsapi retrieval parameters for ERA5 surface variables focusing on volumetric soil water layers.

dspy, xarray, pandas. DSPy compiles structured diagnostic prompts that reason over anomalous soil moisture sequences and flag basis risk caveats. Local Llama 3 or hosted Claude model for generating qualitative risk syntheses from tabular drought indices.

Submit runnable source, pinned dependencies, setup commands, a working interface, example outputs, and a recorded end-to-end demo. Include tests and an action log.

Correctly integrates layer 1 and layer 2 soil moisture into an effective root zone index.

Identifies consecutive days below contract dry threshold.

Outputs contract trigger ratio without invoking actual financial disbursement.

```json [ { "input": { "parcel_id": "FIELD-IA-44", "consecutive_days_trigger": 14, "moisture_threshold": 0.18, "daily_records": [ { "date": "2023-07-01", "swvl1": 0.15 }, { "date": "2023-07-02", "swvl1": 0.14 }, { "date": "2023-07-03", "swvl1": 0.16 } ] }, "expected_output": { "parcel_id": "FIELD-IA-44", "consecutive_deficit_days": 3, "trigger_met": false, "mean_moisture": 0.15 } }, { "input": { "parcel_id": "FIELD-IA-45", "consecutive_days_trigger": 2, "moisture_threshold": 0.2, "daily_records": [ { "date": "2023-08-01", "swvl1": 0.12 }, { "date": "2023-08-02", "swvl1": 0.11 } ] }, "expected_output": { "parcel_id": "FIELD-IA-45", "consecutive_deficit_days": 2, "trigger_met": true, "mean_moisture": 0.115 } } ] ```

Emphasizes that trigger simulations are exploratory models and cannot be used as binding agricultural loss adjustments. Use mock external writes. Require human review before any real deployment.

Rules

Participation guide

Emphasizes that trigger simulations are exploratory models and cannot be used as binding agricultural loss adjustments. Use mock external writes and human review.

Delivery guide

How work is evaluated

Evaluation

Correctly integrates layer 1 and layer 2 soil moisture into an effective root zone index. Identifies consecutive days below contract dry threshold. Outputs contract trigger ratio without invoking actual financial disbursement.

Submission format

Runnable source, pinned dependencies, setup commands, working interface, example outputs, recorded demo, tests, and action logs.

Datasets

Challenge datasets

Public datasets, plus the private datasets you have access to.

Evaluation rubric

How submissions are scored

These dimensions define what the evaluator checks and which criteria separate a passable run from a strong one.

Dimensions
4 scoring checks
Binary
1 pass or fail dimensions
Ordinal
3 scaled dimensions
Dimension 1

Complete workflow

Parse field parcel polygons and defined root-zone depth specifications. Retrieve ERA5 volumetric soil water layer data over target growing seasons. Calculate soil moisture deficit percentiles relative to multi-year baselines. Synthesize simulated parametric trigger payouts and contract basis risk.

Score scale
012
Score 0

Missing or incorrect.

Score 1

Partly complete, with documented gaps.

Score 2

Complete, with reproducible evidence.

Dimension 2

Correctness and evidence

Correctly integrates layer 1 and layer 2 soil moisture into an effective root zone index. Identifies consecutive days below contract dry threshold. Outputs contract trigger ratio without invoking actual financial disbursement.

Score scale
012
Score 0

Missing or incorrect.

Score 1

Partly complete, with documented gaps.

Score 2

Complete, with reproducible evidence.

Dimension 3

Review interface

Jupyter Notebook workflow with interactive ipywidgets for setting soil moisture thresholds and viewing deficit histograms.

Score scale
012
Score 0

Missing or incorrect.

Score 1

Partly complete, with documented gaps.

Score 2

Complete, with reproducible evidence.

Dimension 4

Safe execution

Emphasizes that trigger simulations are exploratory models and cannot be used as binding agricultural loss adjustments.

Binary check

This dimension contributes its full weight only when the submission satisfies the requirement. Partial credit is not awarded.

Learning goals

What you should walk away with

  • Parse field parcel polygons and defined root-zone depth specifications.

  • Retrieve ERA5 volumetric soil water layer data over target growing seasons.

  • Calculate soil moisture deficit percentiles relative to multi-year baselines.

  • Synthesize simulated parametric trigger payouts and contract basis risk.

Resources and assets

Reference links and supporting material

Dataset notes

Download monthly averaged reanalysis soil water layers via cdsapi or load synthetic NetCDF grids representing topsoil moisture. Supplied starter examples are synthetic, not source extracts.

Challenge setup

Configuration summary for this challenge.

Challenge input

Input details are not configured.

DSPy

Prompt and LM program optimization framework.

Evaluated output

No output checks are configured.

Evaluation checks
  • Parse field parcel polygons and defined root-zone depth specifications. Retrieve ERA5 volumetric soil water...
  • Correctly integrates layer 1 and layer 2 soil moisture into an effective root zone index. Identifies consec...
  • Jupyter Notebook workflow with interactive ipywidgets for setting soil moisture thresholds and viewing defi...
Configured evaluation evidence
  • 2 public reference cases
Configured runtime
  • 3 configured tools

Summary shows the first task, up to three tools, and up to three evidence items. Open the technical recipe to view all configured items.

View technical recipe

Configured tools

Action Space
  • DSPy · Optional
Training Infra
  • DSPy · Optional
Orchestration
  • DSPy · Optional

Evaluation contract

  • Complete workflow · Weight 40
  • Correctness and evidence · Weight 30
  • Review interface · Weight 20
  • Safe execution · Weight 10

Reference cases

  • 2 public reference cases

Workflow tasks

No workflow tasks are configured.

Recipe freeze marker

No recipe freeze time is recorded.

Frequently Asked Questions about Build an Agricultural Drought Soil Moisture Trigger Simulator