Scarce labels
Detecting early and late blight from a UAV needs thousands of aerial frames with every plant boxed and diagnosed. No public RGB UAV set has those labels for potato and tomato blight.
BMS College of Engineering · CSE (Data Science)
AgroEye turns close-up lab photos of potato and tomato leaves into drone-view training data with zero manual labelling. Segment Anything cuts the leaves out, Blender grows them into procedural plants and fields, and a model of the DJI Mini 4K camera flies over them. Every box is checked against the renderer's own passes.
Blender render
+ verified boxes
The problem
Detecting early and late blight from a UAV needs thousands of aerial frames with every plant boxed and diagnosed. No public RGB UAV set has those labels for potato and tomato blight.
PlantVillage has tens of thousands of expertly labelled leaves, but they are studio close-ups: one leaf, flat light, plain background. From 3–12 m up, a drone sees whole plants instead, and each pixel covers 1–4 mm of ground, so a blight lesion is only a few pixels across.
Turn lab leaf photos into labelled drone-view training data automatically, by simulating the drone's camera, altitude and light, and train detectors that flag early and late blight plant by plant.
System architecture
Branch A, the 2D compositor, was the first approach. It scored well on its own synthetic data but was at chance on real drone imagery. Branch B replaces it with camera-matched 3D rendering. Click any block to jump to that step of the simulation.
A · 2D compositor
B · Camera-matched 3D (Blender 4.2)
Interactive simulation
Every image in this walkthrough comes from the real pipeline: actual SAM cutouts, the textures Blender used, frames from the rendered dataset and the render passes the labels were checked against.
Synthesize a plot · your leaves through the real pipeline
Upload close-up photos of single leaves, named by class (for example
tomato_late_blight_01.jpg). Each one goes through the same steps as the dataset: SAM ViT-B
segmentation, mask cleaning, the necrosis map and a Blender texture. Blender then grows a field from them and
renders it through the DJI Mini 4K camera model at the altitude and tilt you choose, and every label is checked
against the render passes, exactly as for the 2,856 training frames.
Synthesis runs SAM and Blender on the server. From the Syn-Blender folder run:
.venv\Scripts\python.exe implementation-app\server\app.py
Results · held-out test split
Test split: 420 frames from 105 fields whose scenes and leaf textures never appear in training. Models are ranked by mAP@50:95, because mAP@50 is close to its ceiling for all four.
| Model | Params | P | R | mAP@50 | mAP@75 | mAP@50:95 | 3–6 m | 6–12 m | FPS |
|---|
FPS: batch 1, FP32, RTX A5000, median of 5 rounds over the 420 test frames. The 3–6 m and 6–12 m columns give mAP@50:95 per altitude band. RT-DETR-L was trained for 40 of a planned 150 epochs.
Hover or tap for values. YOLO models ran 100 epochs; RT-DETR-L ran 40.


YOLO11s is within 0.005 mAP@50:95 of YOLO11m at 1.3× the speed. It is the default model in the analysis service.
Boxes are tight at 3–6 m. At 6–12 m plants shrink to a few dozen pixels and box precision (mAP@50:95) drops.
These are synthetic-to-synthetic numbers on unseen fields. They show the generator is learnable and leakage-free, not that it works on real drones. See sim-to-real.
Plot analysis · runs on the AgroEye server
Images go to the AgroEye analysis server. Large photos, like a full 4000×3000 Mini 4K frame, are cut into 1280 px tiles so every tile matches the training scale. The detections are then merged and checked against the flight altitude, and the plants are summarised into a plot report.
This section needs the Python backend. From the Syn-Blender folder run:
.venv\Scripts\python.exe implementation-app\server\app.py
Then open http://localhost:8000. The rest of this page works without it.
Or try a held-out sample frame:
Above 6 m, early-blight detections are withheld: their 2–10 mm lesions fall below one pixel.
Sim-to-real · what we can and can't claim
Branch A was tested on real UAV imagery of potato fields with early blight (Wieme et al. 2022: 3,157 RGB patches from 5 plots, 1,027 infected), using leave-one-plot-out cross-validation so no test plot was ever seen in training.
Branch B models those directly. Its 0.959 mAP@50:95 is measured on unseen synthetic fields. It has not yet been validated on labelled real Mini 4K flights, because no such set exists yet.
People & paper
Paper
AgroEye: From SAM-Based Compositing to Camera-Matched 3D Rendering of Synthetic Data for UAV Crop Disease Detection
BMSIT conference paper. Department of CSE (Data Science), BMS College of Engineering, Bengaluru.
SDG 2 Zero Hunger · SDG 9 Innovation · SDG 12 Responsible Production.