We had a model at 96% accuracy on the standard crop disease benchmark. We tested it on 900 photographs taken by agricultural extension officers doing their normal work.
It scored 61%.
Why the gap exists
The benchmark images are detached leaves, flattened, on a plain background, under even light. They were photographed for the purpose of building a dataset.
Field images are none of those things. The leaf is attached and curled. There is soil and other foliage in frame. The light is either harsh direct sun or deep shade. The officer is crouching and the phone is at whatever angle their arm reached.
These are not edge cases. This is the entire distribution.
Attributing the drop
We stratified the evaluation set along four axes and measured accuracy within strata:
- Background clutter — roughly 14 points. The largest single factor, and the one synthetic corruption benchmarks model worst.
- Illumination extremes — roughly 11 points.
- Viewing angle — roughly 7 points.
- Motion blur — roughly 5 points.
Background clutter dominating is the finding I would emphasise. Robustness research leans heavily on Gaussian noise and simulated blur, which are parameterisable and convenient. The thing that actually broke our model was dirt in the frame.
What we did
We stopped model work and spent six weeks collecting field photographs. 4,200 of them, three regions, two growing seasons, officers instructed to photograph normally rather than carefully.
Then three changes:
- Augmentation targeting the observed shifts rather than generic corruption — compositing real backgrounds, simulating directional light, warping perspective.
- An ordinal regression head instead of categorical classification, because severity grades are ordered and treating them as independent classes makes a four-grade error as cheap as a one-grade error. Worth 0.07 kappa on its own.
- A quality gate that rejects unusable photographs before classification, with specific feedback — too blurry, hold steadier.
Final agreement: 0.84 Cohen's kappa against a three-agronomist consensus panel, against a human inter-rater ceiling of 0.88.
Two things I would carry anywhere
Report the human ceiling. A kappa of 0.84 means something different when you know three experts only agree with each other at 0.88. Without that number, 0.84 is unreadable.
A quality gate beats robustness. We spent weeks trying to make the classifier robust to blurry photographs. Rejecting 9% of captures with a clear instruction worked better, was far simpler, and — this surprised me — users preferred it. Being told the photo is bad is more useful than being given a confident grade on an unusable image.
The uncomfortable part
Discarding a model that scored 96% felt like going backwards, and for six weeks it was.
But the 96% was never real. It was an accurate measurement of a distribution nobody was going to photograph.
- Computer Vision
- Deployment
- Evaluation
