A dry break is a stretch of days without useful rain in the middle of a growing season. For a farmer who planted with the first rains, a dry break at the wrong moment can wipe out most of a harvest. If you know one is coming, there are things you can do: delay a second planting, irrigate the most valuable plot, or change what you plant.

The Zatii Climate Monitor started from a simple question: could we warn farmers about dry breaks early enough to matter? The machine learning turned out to be the easier half of the answer.

The model was not the bottleneck

The first version combined satellite rainfall estimates, vegetation indices and soil moisture into features over rolling windows, then trained a gradient-boosted model to predict the probability of a dry break in the next two to three weeks. It was not exotic, and on historical data it performed well.

Then we tried to use it.

The satellite data arrived late, sometimes by days. Cloud cover left holes in the vegetation signal exactly when the rains were most interesting. Our "ground truth" came from a handful of rain gauges and field reports that disagreed with each other. A model that looked strong on a backtest was much weaker on the Tuesday morning when a farmer actually needed an answer.

Lesson one: model the data you will have, not the data you had

Backtests quietly assume that every input is available on time. In production, it rarely is. We rebuilt the training pipeline so each training example only used data that would have been available on that date, including real ingestion delays. Performance on paper dropped. Performance in the field went up, because the model was finally learning the problem we actually had.

We also started treating missing data as information. A week of cloud cover is itself a signal about the weather, so the model sees both the gap and how long it has lasted.

Lesson two: a probability is not a message

A model output of 0.71 means nothing to a farmer reading an SMS on a feature phone. We spent more time on the alert than on the model: what threshold triggers it, how often it can fire before people ignore it, and what action it suggests.

The final alerts are short, local and specific. They name the area, the expected window and one concrete thing to consider. Extension officers helped us write them, and their feedback changed the thresholds more than any metric did.

Calibration matters more than accuracy when a person has to act on the number.

Lesson three: trust is built in seasons

Farmers judge a warning system over a season, not an alert. A false alarm early in the season costs more trust than a missed event late in it. We now track precision separately for the first weeks after planting and review every alert with field partners at the end of each season.

That review is where the most useful features have come from. Local knowledge about soil types, planting dates and which valleys hold moisture longer is not in any satellite product. Building a way to capture it has done more for the model than any architecture change.

What I would do differently

  • Build the production data pipeline before the first serious model.
  • Backtest with realistic data delays from day one.
  • Design the alert and the threshold together with the people who will receive them.
  • Measure trust over a season, and talk to users after every one.

Machine learning in agriculture, health or any high-stakes setting is less about the model than about everything around it: the data you can really get, the decision someone has to make and the relationship that makes them willing to act. The model is the part you can benchmark. The rest is the part that matters.