AgroEye
Checking server…

BMS College of Engineering · CSE (Data Science)

Spotting potato and tomato blight from a drone, trained only on synthetic fields

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.

Rendered UAV frames
2,856
Verified plant boxes
26,349
Hand-drawn labels
0
YOLO11m mAP@50:95
0.959
Rendered drone view of a potato field The same frame with its render-verified plant boxes Blender render + verified boxes
A held-out test frame. Drag to reveal the labels the renderer wrote.

The problem

Drone images with disease boxes barely exist, and lab leaves don't look like fields

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.

Wrong domain

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.

Our objective

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

Shared leaf segmentation, two data generators, one detector benchmark

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)

Plot analysis serviceupload a drone photo → tiled detection → altitude check → plot report

Interactive simulation

Follow one leaf from a lab photo to a verified drone label

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

Grow a drone-view field from your own leaf photos

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.

  1. 1Leaf photos
  2. 2SAM ViT-B mask
  3. 3Necrosis map
  4. 4Blender texture
  5. 5Field & plants
  6. 6Cycles render
  7. 7Pass check
  8. 8Verified labels

1 · Leaf photos

Or use PlantVillage examples:

2 · Drone & field

Your leaves appear here, one card per photo, showing each pipeline stage.

Results · held-out test split

Four detectors on unseen fields and unseen leaves

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.

ModelParamsPRmAP@50mAP@75mAP@50:953–6 m6–12 mFPS

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.

Validation mAP@50:95 per epoch

Hover or tap for values. YOLO models ran 100 epochs; RT-DETR-L ran 40.

Show as table

Per-class AP@50:95 on the test split

Prediction and Confusion matrix

Model predictions on a test batch
Predictions on a test batch
Normalised confusion matrix
Normalised confusion matrix

Deployment pick: YOLO11s

YOLO11s is within 0.005 mAP@50:95 of YOLO11m at 1.3× the speed. It is the default model in the analysis service.

High altitude is harder

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.

Honest scope

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

Upload a drone photo of a plot and get a disease report

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.

1 · Images

Or try a held-out sample frame:

2 · Settings

Above 6 m, early-blight detections are withheld: their 2–10 mm lesions fall below one pixel.

Choose a sample or drop a photo

Sim-to-real · what we can and can't claim

2D composites failed on real drones. That's why we built the 3D generator.

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.

  • Zero-shot, the 2D model was at chance: AUC 0.48.
  • Synthetic pretraining helped only when all the real data was also used: AUC 0.59 → 0.68.
  • Conclusion: the leaves were not the problem; the imaging model was. Scale, viewpoint, light and the camera all have to match the drone.

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.

Next steps

  • Fly the modelled camera over real plots and label a small real test set
  • Add weeds, sensor noise and overcast light to the generator
  • Train with several seeds; finish RT-DETR-L's 150-epoch run

People & paper

The team

Hemanth R1BM23CD021
Shakthi Jashwanth1BM23CD072
Vedantha Vinay Verneker1BM23CD069
Prof. Lavanya NaikGuide

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.