Targeted weed control

On this page 11

Spray the weeds, not the field

Cameras and on-board models find weeds plant by plant, then only the affected square metres get treated.

CategoryAct
Slugtargeted-weed-control
CadenceTwo to four scouting flights per crop, timed to the herbicide windows
PayloadRGB camera at 1 cm/px, downward LiDAR for canopy height, RTK
Needs a visit firstNo

The targeted weed control page on openfarm.ing, with the Act badge and a panel headed "What this costs today"

The problem

Blanket spraying treats the whole field because nobody knows which parts actually carry weeds. On a typical arable field the weed pressure is patchy: dense along headlands and tramlines, thin across the middle. Every litre applied to clean ground is money spent, residue added, and resistance pressure built for no agronomic return.

How it works

StepWhat happens
ScanThe drone flies a fixed grid at low altitude and photographs the canopy at centimetre resolution
ClassifyAn on-board model separates crop from weed and tags each detection with a species guess and a confidence score
MapDetections are clustered into treatment zones and written to a prescription map with a buffer you set
TreatThe map loads into your section-control sprayer or spot-spray rig, which opens nozzles only over the marked zones

The drone does not spray. In Germany and most of the EU, aerial application of plant protection products is prohibited by default under Pflanzenschutzgesetz §18, with narrow exemptions, most prominently steep vineyard terrain. The machine that is already permitted to treat the field is what treats it. See Regulation.

What you get

  • Weed density map
  • ISOXML or shapefile prescription
  • Species breakdown per zone
  • Before and after comparison

What the dashboard measures

  • Treated area as a share of field area
  • Product volume per hectare
  • Detections by species
  • Zone count and mean zone size

On the demonstration field: 98 detections, 62 zones, 4.34 of 24.6 hectares, which is 17.6%.

Where it matters most

Winter wheat, maize, sugar beet, organic farms, contractors.

Sugar beet is where it pays first: wide rows, slow early growth, an expensive repeated herbicide programme, and weeks of exposed soil.

Build it

This is the capability with the money in it and the one that needs real engineering. Build it third, after field mapping and something with a short pipeline.

Flight parameters

ParameterValueWhy
Ground resolution1 cm/px or betterBelow that, a two-leaf blackgrass seedling is under two pixels
Altitude12 to 25 m AGL depending on lensWhich is why this flight covers far less ground per battery than a mapping flight
Overlap60% forward, 40% sideEnough to mosaic, not enough to need full photogrammetry
TimingStill air, overcast or high sun, no long shadowsShadow edges are the single biggest source of false positives
Coverage6 to 12 ha per batteryPlan two to four batteries per field

Do not fly this at photogrammetry altitude and hope to upsample. The species call comes from leaf shape, and leaf shape needs pixels.

Hardware

ItemWhyEU sourceUS sourceIndicative
Airframe, 6 kg classSlow, low, stable, 30 minutesHolybro X500 V2 via Drone Parts CenterGetFPV€400 to €700
24 to 60 MP camera, global or mechanical shutter1 cm/px at a sane altitudeSony ILX-LR1B&H€2,500 to €3,200 new
Budget camera1 cm/px at 15 m instead of 40 mRaspberry Pi GS camera at BerryBaseAdafruit€55 plus lens
RTK GNSSPuts a detection on the right square metre, which is the whole pointArduSimple simpleRTK2BSparkFun€200 to €300
Height-hold rangefinderConstant AGL over rolling ground keeps the scale constantLightWare SF000/B or Benewake TFmini-SRobotShop€40 to €300
Canopy LiDAR, optionalCanopy height separates crop from weed where colour cannotLivox Mid-360RobotShop€700 to €900
On-board compute, optionalOnly needed for real-time spot spraying, not for mappingJetson Orin Nano Super via AntratekSeeed Studio€250 to €900

In-house software

StageWhat we runLicenceReplaces
Detection modelRF-DETR or RT-DETR fine-tuned on our own labelled framesApache-2.0per-hectare weed mapping services
AlternativeMMDetection, torchvision, or Ultralytics YOLOApache-2.0 / AGPL-3.0
Tiled inferenceSAHI sliced inference over full framesMIT
LabellingCVAT or Label StudioMIT / Apache-2.0Roboflow subscription
GeoreferencingFrame corners from RTK pose plus camera model, no full stitch neededown code
ClusteringGrid binning with an area threshold, then buffer and mergeown code
ExportISOXML TASKDATA and ESRI shapefile via GDAL/OGRMITterminal vendor tooling
ServingThis repository's Detection and TreatmentMap modelsMIT

Ultralytics YOLO is AGPL-3.0. It is the easiest thing to reach for and the most expensive mistake to make in a commercial product, because the AGPL reaches your service, not just your binary. Either buy their commercial licence or start on an Apache-2.0 detector. See Perception models.

The clustering step, concretely

Four maps side by side labelled Fly, Find, Zone and Treat, showing the boundary, then 98 detections, then the grid clustering, then the finished prescription

That is the clustering, drawn. Same flight record in all four frames, one more layer switched on each time.

This is the part everyone underestimates, and the part demo-field.ts reproduces so the site's map is honest about it.

  1. Bin detections onto a grid whose cell is what your boom can actually resolve. On a 24 m boom with 8 sections, that is 3 m across. The demonstration field uses a 16 by 22 grid over 24.6 ha, which is about 700 m² per cell, roughly 31 by 23 m on a square block: a section-control prescription rather than a spot-spray one.
  2. Switch a cell on when the weed area inside it reaches a threshold. Below that, opening the nozzle is not worth the pass.
  3. Assign a rate by weight. The demonstration field uses 110, 140 and 180 l/ha.
  4. Buffer the live cells outward by the sprayer's positioning error plus the nozzle's spread, then merge adjacent cells.

A prescription finer than the machine can follow is a map no machine can follow. The buffer is where the agronomic argument lives: too small and you miss the plants at the edge of a patch, too large and the saving disappears. Make it a setting, and record what it was for every prescription.

Cost efficiency

  • Label your own data, in your own fields. A public weed dataset trained on a different country's soil, camera and growth stage will disappoint you. Budget 2,000 to 5,000 labelled frames per crop for a first usable model. This is the real cost of the capability and it is one-off per crop, not per hectare.
  • Skip on-board inference at first. For a prescription that gets loaded before the next pass, processing on the ground within the hour is fine and removes a whole class of hardware and thermal problems. Add a Jetson when you do real-time spot spraying.
  • Use the free satellite layer to target the flight. A Sentinel-2 pass from the Copernicus Data Space is free and tells you which fields have a problem worth flying at 1 cm/px.
  • Sell the prescription, not the imagery. The imagery is expensive to store and serve. The prescription is a few kilobytes and it is the thing that changes what the farm does.