Weed maps, one square metre at a time
We split a low-altitude drone photo into 1 m squares, asked an image model to assess the weeds in each one, and turned the results into a spray map. Scoring the whole photo cost less than a penny.

Weeds come in patches
Weeds are rarely spread evenly across a field. They tend to be concentrated in particular areas: along headlands, in hollows or where the previous crop shed seed.
But most herbicides are still applied across the whole field because we do not have an accurate map of where the weeds are.
Volunteer oilseed rape is a good example. In wheat following rape, some parts of the field can contain large numbers of volunteers while others contain almost none.
A weed map shows where those patches are. A compatible sprayer can then switch sections of the boom on and off as it crosses the field.
The difficult part is producing the map.
We tried doing that from a drone image. We split the image into one-metre squares and used an image model to assess each square individually.
The photo
The field is winter wheat drilled after oilseed rape. In mid-October, the wheat was at the one to three leaf stage and volunteer rape was emerging, with some areas much denser than others.
We flew a small consumer drone, a DJI Mini 5 Pro, 10 m above the crop.
At this height, each pixel in a 12-megapixel photo represents about 3.5 mm on the ground. One photo covers roughly 14.4 m by 10.8 m.
That gives enough detail to distinguish individual seedlings.
Why not just count green pixels?
A simple way to detect weeds in drone images is to count green pixels.
Before the crop emerges, this works reasonably well because most green vegetation is likely to be a weed.
Once the crop is growing, it becomes much less useful. Wheat and weeds are both green.
We applied a simple green-pixel rule to three squares from the image.
Clean wheatno weeds

73%A few weedsa handful of rape seedlings

59%Dense weedsrape covering the ground

92%The square containing a few weeds actually has less green than the clean square because it contains more bare soil.
Colour alone cannot reliably separate wheat from volunteer rape.
Shape is more useful. Wheat leaves are narrow and grass-like, while young oilseed rape has broader, rounder leaves.
That is the distinction we asked the image model to make.
Step by step
Drone takes the photos Code runs the same way every time AI looks at each square Person decides
- 1 · Fly low10 m above the crop
- 2 · Splitinto 1 m squares
- 3 · Askeight questions per square
- 4 · Mapturn the scores into a map
- 5 · Choosewhere to spray
- 6 · Sendthe map to the sprayer
1 · Fly low
The model we used requires each image to be at least 256 pixels on each side.
That sets a practical limit on flight height.

10 m284 px
Enough
20 m142 px
Under 256
40 m71 px
Under 256
60 m47 px
Under 256At 10 m, a one-metre square is about 284 pixels wide, which is enough for the model.
At a more typical whole-field mapping height of around 60 m, the same square is only 47 pixels wide. That is too small for this model and too coarse to show individual seedlings clearly.
So for one-metre squares, the drone needs to fly at about 10 m.
Two-metre squares could be used from around 20 m. The camera’s 50-megapixel mode would approximately double those heights.
2 · Split into squares
The image is divided into complete one-metre squares.
In this photo there are 14 columns and 10 rows, giving 140 squares in total.
Each square is a separate image, 284 pixels wide.
3 · Ask Jev
The model we used is Jev, a decision model made by TypeSafe. We accessed it through OpenRouter.
Unlike a chatbot, Jev does not return a written answer. It returns probabilities.
We can ask three types of question:
- Yes or no: the probability that the answer is yes.
- Choice: the probability of each possible option.
- Score: the probability of each level on a scale we define.
That makes the output easy to process automatically.
Every square received the same description of the field: winter wheat in Scotland in mid-October, drilled at 12.5 cm row spacing, at the one to three leaf stage, following oilseed rape.
Each square was then asked the same eight questions.

One square, 1 m × 1 m
Answered in 0.4 seconds
Cost: 0.004p
- Choice
What does most of the square show?
Crop 91% - Yes / no
Are the wheat's drill rows visible?
24% - Score 0–3
How much of the soil does the wheat cover?
1.5 thin to established - Yes / no
Are there broad-leaved plants?
96% - Score 0–4
How many broad-leaved plants are there?
3.05 a dense patch - Yes / no
Are any of them oilseed rape?
89% - Yes / no
Are there other broad-leaved weeds?
49% - Yes / no
Are there grass weeds between the rows?
60%
All 140 squares were processed six at a time. The complete set of answers came back in about 15 seconds.
4 · Read the answers
One of the questions was simply whether broad-leaved weeds were present.
This was useful for separating clean from weedy ground, but not for measuring weed density.
On every square scoring 1.5 or more, Jev gave a 91–98% probability that broad-leaved weeds were present. It gave a similar answer whether there were a few seedlings or a dense patch.
The 0–4 density score was much more useful.

- 0 None76%
- 1 A few18%
- 2 Scattered5%
- 3 Dense patch1%
- 4 Covered0%
0.3 No spray

- 0 None0%
- 1 A few49%
- 2 Scattered46%
- 3 Dense patch5%
- 4 Covered0%
1.6 No spray

- 0 None0%
- 1 A few0%
- 2 Scattered8%
- 3 Dense patch78%
- 4 Covered14%
3.1 Spray
The scores increase in the expected order from clean ground to dense weeds.
Not every question worked.
Young wheat is itself a grass, so the question about grass weeds returned probabilities between 42% and 73% even on squares without grass weeds.
Jev also struggled to identify drill rows reliably.
Those questions would need to be reworked before they were useful.
5 · Turn the scores into a map
Each square’s score is placed at the centre of that square.
The scores are then interpolated into a continuous surface, with contour lines showing changes in weed density.
The final step is to choose a spray threshold.
For this test we used a score of 2, representing many seedlings scattered across the square.
Anything scoring 2 or above is included in the spray zone. Anything below 2 is left untreated.
Scoresone per square, 0 to 4
Weed densitysmoothed, contours every 10%
Spray mapscore 2 or more
The threshold should remain a management decision.
A higher threshold reduces the area sprayed but leaves more weeds untreated. A lower threshold sprays more of the field.
The map simply gives us the information needed to make that decision.
6 · Send it to the sprayer
Our sprayer can already apply from a prescription map.
GPS position is used to switch sections of the boom on and off as the machine crosses the field.
The weed map can therefore define the areas where the nozzles should be on.
That is the next stage of the project.
So far, we have only tested this on a single photograph. We have not yet mapped a whole field or sprayed from one of these maps.
What it costs
- to score all 140 squares in the photo
- 0.6p
- median time to answer one square
- 0.4 s
- per hectare using 1 m squares
- 42p
- per hectare using 2 m squares
- 15p
Jev is charged in US dollars. These figures use an exchange rate of $1.33 to the pound.
A hectare contains 10,000 one-metre squares, so the per-hectare figure assumes each square is scored once.
For a whole field, the photographs would first need to be stitched into a single map so overlapping areas are not scored more than once.
Flying time is additional, and at a 10 m flight height it is likely to be the larger cost.
Why weed maps are useful
Less chemical, less water and fewer fills
Consider 100 ha of winter wheat being treated for the same weed.
For illustration, assume:
- herbicide costs £25/ha
- water volume is 200 L/ha
- sprayer capacity is 4,000 L
- weeds requiring treatment cover 30% of the area
These are example figures rather than results from our own farm. The calculator below lets you change them.
Herbicide
Water
Tank fills
The maps save £1,750 of herbicide, 14,000 litres of water and 3 tank fills. Scoring all 100 ha using 1 m squares costs about £42 in model fees, plus flying.
The reduction in chemical is obvious, but water and filling time also matter.
The sprayer still has to travel along the tramlines to reach the weed patches. But using less product means fewer trips back to refill.
During a short spraying window, that can increase the amount of ground covered in a day.
Less unnecessary application
Applying herbicide only where it is needed reduces the total amount used.
That means less product is applied near ditches and watercourses, and larger areas of the field are left untreated.
It also reduces the amount of water that has to be transported to the sprayer.
Targeted spraying fits well with integrated pest management: treat the problem where it exists rather than treating the whole field by default.
Not just weeds
The same method could be used for more than weed mapping.
Jev simply answers the questions it is given. By changing those questions, the same type of drone imagery could potentially be used to assess other crop and field conditions.
- WeedsBroad-leaved weeds, scored 0–4
- DiseaseLeaf spotting and patches
- Wet groundStanding water, poor drainage
- CompactionHeadlands, gateways, wheelings
- Drought stressWilting, early colour change
- EstablishmentThin and gappy crop
- Drone photosOne low flight
- Disease pressure
Are there spots, stripes or pustules on the leaves? How much leaf area is affected?
Would need a lower flight or higher-resolution imagery. - Drainage
Is there standing water? Is the crop yellow or missing in low areas?
Most useful after heavy rain. - Compaction
Is the crop thinner or shorter along wheelings, headlands or gateways?
- Drought stress
Are leaves rolling or wilting? Is the crop changing colour early?
- Establishment
How evenly has the crop emerged? Where are there gaps in the rows?
- Weeds
How many broad-leaved weeds are present, and are they oilseed rape?
Each layer could be useful on its own.
Repeated through the season and across several years, they could also create a detailed spatial record of crop performance.
Combined with yield maps, soil tests and other field data, that could help explain why different parts of a field perform differently.
What is still to do
This test used one photograph taken on one afternoon.
Before this becomes a practical field-scale system, several things still need to be done.
- Map a whole field. Fly the field, stitch the images into one map, divide it into a fixed grid and score each square once.
- Cover ground faster. At 10 m, one image covers about 150 m². Two-metre squares, 50-megapixel images or a model that accepts smaller inputs could increase working height and reduce the number of photographs needed.
- Validate the results. The scores look sensible on this image, but that is not enough. We need to manually assess several hundred squares and measure how often Jev agrees.
- Improve the questions. In particular, the grass-weed and drill-row questions need more work. Different weeds will also need their own descriptions.
Jev’s image input is new, and this is an early test of using it for crop mapping.
But on this photograph it scored all 140 square metres in about 15 seconds for less than a penny.
The model cost is already very small.
The bigger challenge is now collecting enough high-resolution imagery efficiently.