Just out todayAgritech: Texts to Ugandan farmers moved what they knew and what they thought, and not what they didArtificial intelligence: An AI trained on 142 cervical photographs reached an AUC of 0.70, and found the obvious casesUncategorized: Two satellites spotted wheat stem rust in Ethiopian plots before it was severe, and the blue band did the work

Agritech

98 Percent In The Lab, 85 In The Field, And They Published Both

Crop disease models report 98 percent and then disappoint in the field. This team measured both on the same model: 97 on the benchmark, 85 on 4,200 real photographs.

What the paper found

A segmentation-guided pipeline localises leaves with RT-DETR, generates lesion masks with Mask2Former, and classifies the isolated diseased regions with EfficientNet-B4. Development used leakage-controlled PlantVillage partitions while 4,200 field images were reserved for external evaluation. Internal accuracy was 98.34% on 38 categories and 97.43% on a source-matched subset, against 84.93% in the field; leaf-localization AP fell 95.63% to 89.28% and lesion Dice and IoU from 92.47% and 86.00% to 77.90% and 63.80%. Lesion guidance raised field macro-F1 from 73.97% to 80.80%.

Grade 7 reading level5 min readPeer reviewed

What happened

There is a number that keeps appearing in crop disease papers: somewhere between 97 and 99 percent accuracy. There is also a well-known pattern of those systems disappointing when deployed.

The explanation is usually assumed and rarely measured. Benchmark datasets like PlantVillage contain single leaves, well lit, against plain backgrounds, with the disease clearly visible. A field contains overlapping leaves, harsh shadows, cluttered backgrounds, wind, and diseases at ambiguous stages.

This paper measured the gap properly, by keeping 4,200 field photographs entirely out of development.

The test

The pipeline has three stages, each doing one job. RT-DETR finds the leaves in a complex image. Mask2Former then draws fine-grained masks around the lesions inside those detected regions. Those masks isolate the diseased area so EfficientNet-B4 classifies the disease rather than the leaf and its surroundings.

The idea is that telling the classifier exactly where to look should help in cluttered conditions, which is precisely where benchmark-trained models fail.

Two methodological choices make the result trustworthy.

First, the internal partitions were leakage-controlled and group-aware. PlantVillage contains many near-identical images of the same leaf, and if some land in training and others in testing, the model has effectively seen the answers. Controlling for that lowers your reported score and makes it mean something.

Second, 4,200 field images were reserved exclusively for external evaluation. Not used for training, not used for tuning, not looked at.

And they compared on a source-matched subset — the nine categories present in both datasets — so that the comparison is of the same diseases rather than different ones.

The result

On the full 38-category internal test: 98.34 percent accuracy, 97.97 percent macro-F1. The familiar number.

On the nine-category source-matched subset, still internal: 97.43 percent and 96.77 percent.

On the field images: 84.93 percent accuracy and 80.80 percent macro-F1.

Same model, same nine diseases. Twelve and a half points of accuracy, sixteen points of macro-F1, lost to the real world.

The component-level figures show where it goes. Leaf localization fell from 95.63 to 89.28 percent average precision — finding leaves in clutter is harder but holds up reasonably. The lesion masks collapsed: Dice from 92.47 to 77.90 percent, and IoU from 86.00 to 63.80. Drawing an accurate outline around a lesion on a real plant is much harder than on a benchmark photograph.

The lesion guidance did earn its place: it raised field macro-F1 from 73.97 to 80.80 percent. Without it the field result would have been much worse.

Practical cost: about 285 GFLOPs and 63 milliseconds per image, roughly 16 frames per second.

Why does segmentation degrade more than detection? This is because finding roughly where a leaf is tolerates error, and tracing exactly where a lesion ends does not. The boundary is where the ambiguity lives. FINDING THE LEAF IS A GUESS YOU CAN GET NEARLY RIGHT. DRAWING THE EDGE IS NOT.

What it means

The most valuable thing here is the pair of numbers, because it gives the field a conversion rate. When you next read 98 percent from a benchmark, this paper suggests roughly 85 in the field, for the same diseases, with a careful pipeline. Cruder systems will fare worse.

That reframes a lot of published work. Not as dishonest, but as measuring something that was never the deployment condition — and the gap was unmeasured because keeping 4,200 field images unused is expensive and lowers your headline.

Therefore the question for any crop disease claim is whether an external field set was held back, and most of the time the answer is no.

Business ideas from this paper

1. Field validation sets as a product. The gap can only be measured with held-back field data, and almost nobody has it. Collect and license it per crop and region. Buyer: agritech companies and research groups with benchmark-trained models. First test: collect 500 labelled field images for one crop and offer them as a validation set to three teams.

2. Benchmark-to-field conversion assessments. Buyers are shown a benchmark number and need to know what it means on their farm. Sell the assessment. Buyer: agribusinesses and cooperatives evaluating a disease detection product. First test: evaluate one vendor’s model on 100 photographs from the customer’s own fields.

3. Field data collection services. Somebody has to photograph and label real diseased plants under real conditions, in the regions where the crops matter. That is organisable work with a clear buyer. Buyer: research programmes and agritech firms. First test: run one labelled collection campaign on one crop and sell the set.

How sure can you be?

The most honest agritech evaluation in this batch.

The strengths: peer reviewed and published. Leakage-controlled, group-aware internal partitions, which lowers the reported internal score and raises its meaning. 4,200 field images held back entirely for external evaluation. A source-matched subset so the comparison is like for like. Component-level degradation reported, so you can see where the loss occurs. An ablation showing lesion guidance contributes. Compute cost stated. And the authors say in their own conclusion that a measurable field gap remains.

The limits: 84.93 percent means roughly one classification in seven is wrong, which is not yet advisory-grade. The field set, though held back, is one collection — a different region or season would give a different number. Training still relied on benchmark data, so this measures the gap rather than closing it. And 63 milliseconds per image at 285 GFLOPs implies hardware heavier than a phone.

Do this today

Photograph a plant the way a benchmark would — single leaf, good light, plain background. Then photograph one the way you would actually find it. The distance between those two pictures is twelve points of accuracy.

Mark Alex

Mark Alex

Writes Just Out Tech. Founder and Managing Director of Real Biz Digital. Connect on LinkedIn.

Every article here is read against the paper it reports, and carries its own credibility score.

Source: A unified RT-DETR-Mask2Former framework for segmentation-guided plant leaf disease detection and classification in real-world agricultural environments, Frontiers in Plant Science, October 2026. 10.3389/fpls.2026.1931819 · doi.org (peer reviewed).

Just Out Tech explains new research in plain language. This article was drafted with AI assistance and checked by a human against the original source.

What to remember
  • A unified pipeline localises leaf regions with RT-DETR, generates fine-grained lesion masks with Mask2Former, and classifies disease-focused features with EfficientNet-B4 (DOI 10.3389/fpls.2026.1931819).
  • Development and internal evaluation used leakage-controlled, group-aware PlantVillage partitions, while 4,200 field-acquired images were reserved exclusively for independent external evaluation.
  • On the complete 38-category internal test, accuracy and macro-F1 were 98.34% and 97.97%; on the nine-category source-matched subset they were 97.43% and 96.77%, against 84.93% and 80.80% in the field.
  • Leaf-localization average precision at 0.5 declined from 95.63% to 89.28%, and lesion-positive Dice and IoU from 92.47% and 86.00% to 77.90% and 63.80%.
  • Lesion guidance improved field macro-F1 from 73.97% to 80.80%, and the complete pipeline required approximately 285 GFLOPs and 63 ms per image, about 16 frames per second, with the authors stating a measurable field-domain gap remains.
Where this really is

A rigorous study with held-back field evaluation, reporting a measurable domain gap that the authors state remains unresolved.

Questions people ask

What is a source-matched subset?

The nine categories present in both the benchmark and the field data, so the comparison is like for like rather than comparing different diseases.

What is leakage control?

Making sure near-identical images do not appear in both training and test sets, which would let the model effectively see the answers.

Why does macro-F1 fall more than accuracy?

Because macro-F1 weights every class equally, so poor performance on rarer diseases shows up that accuracy can hide.

About the author

Mark Alex

Mark Alex is the founder and Managing Director of Real Biz Digital, a technology company operating out of Nairobi since 2018. He works in agentic AI and the Model Context Protocol, AI governance, enterprise software architecture and cybersecurity. He holds an MSc in Mechatronical Engineering from Obuda University in Budapest and a BSc in IT, Forensic Technology and Cybercrime, from USIU-Africa in Nairobi, and has published IEEE conference research on an AI-powered digital twin for greenhouse systems. He is the author of seven books. Between 2020 and 2024 he mentored more than 200 university students and interns in Nairobi. He writes every Just Out Tech article from the original research paper.