When a team starts a vision project for farming, the first question is almost always the same: are there already annotated images that can be used? The answer is yes, in part. A handful of public datasets have become references, cited in hundreds of papers, and they make it possible to start fast, compare methods and pretrain models. But these datasets were built to answer research questions, rarely to cover the real conditions of a working farm. Mistaking them for a production dataset is one of the most frequent errors in computer vision in agriculture.
This article reviews four emblematic datasets, with verified figures, then analyses their shared limits and the way to use them without being misled. It follows the study of irrigation guided by imagery, where the lack of reference measurements is painfully felt, and belongs to the overview of computer vision in agriculture. It prepares the next article, devoted to the robustness of agricultural models across seasons, soils and geographies.
Why public datasets matter to a project in computer vision in agriculture
Building an agricultural dataset is slow and expensive. Images depend on the season: a growth stage can only be photographed once a year. Crops are numerous, varieties even more so, and conditions change from one region to another. A public dataset, however imperfect, represents hundreds of hours of collection and annotation that nobody wants to repeat. In a project in computer vision in agriculture, a public dataset serves three purposes. First, to start: train a first model in a few days to test feasibility. Second, to compare: measure a new method on a benchmark the community knows. Third, to pretrain: give the model general notions of plant shapes before adapting it to a specific case, with fewer images of your own. What a public dataset does not do is guarantee that the model will work for you. This distinction structures the whole article: a public dataset is a starting point, never a finishing line.Four reference datasets in computer vision in agriculture, four philosophies
Four datasets illustrate the diversity of approaches. They cover different tasks, different crops and very contrasting shooting conditions, which makes them useful for understanding what open databases can be expected to deliver. PlantVillage gathers 54,306 images of healthy and diseased leaves, taken under controlled conditions, across 14 crop species and 26 diseases, which makes 38 classes once healthy leaves are included (Mohanty et al., 2016). The task is image classification: one label per leaf. PlantDoc contains 2,598 images covering 13 species and 27 classes of diseases and healthy leaves, with 9,216 bounding boxes on cropped leaves (Singh et al., 2019). The images come from the web and were taken in varied conditions. DeepWeeds brings together 17,509 labelled images of eight weed species, taken at eight sites in northern Australia (Olsen et al., 2019). The images are taken on location, following a defined acquisition protocol. The Global Wheat Head Detection dataset addresses wheat head counting. Its first version contains 193,634 labelled heads on 4,700 colour images from seven countries or institutions. The 2021 version adds 1,722 images from five additional countries, with 81,553 more heads (David et al., 2021). These four datasets are not interchangeable. One classifies, another detects with boxes, a third targets weeds in place, and the last counts organs. Each reflects a research question, and none reproduces an industrial specification.PlantVillage: the founding dataset and its bias
PlantVillage is probably the most cited agricultural dataset. It has served as the benchmark for countless papers on leaf disease classification and for much of the work in computer vision in agriculture on the topic. The founding study reports an accuracy of 99.35 percent on a test set drawn from the same dataset. The result looks spectacular, and it is, but it reads poorly without a second sentence from the same study: tested on images from external sources, taken under conditions different from those of training, the same model falls to 31.4 percent. The gap is considerable: 99.35 percent against 31.4 percent, an accuracy divided by more than three. It does not mean the model is poor. It means the test set does not measure what people think it measures. PlantVillage images are taken on a plain background, with controlled lighting, one leaf per image, and the model learns these conventions as much as the disease. A later study showed it strikingly, using a random forest classifier. A classifier trained only on eight background pixels per image, taken from the four corners and the midpoints of the four sides, reaches 49.0 percent accuracy on 38 classes, where chance would give 2.6 percent. The authors conclude that the dataset contains noise correlated with the labels, linked in particular to the camera, the photographer and the lighting. This finding does not disqualify the dataset, but it makes it impossible to use as the only validation. A simple distribution calculation confirms the nature of the set: 54,306 images for 38 classes is on average 1,429 images per class. That is comfortable for a benchmark, but the average probably hides classes that are more or less well represented, and it says nothing about the diversity of conditions inside each class.PlantDoc and field images
PlantDoc was designed as a reaction to this bias. Its authors assembled a dataset from images found on the web, taken in real conditions: cluttered backgrounds, varied lighting, partly visible leaves, uneven image quality. The set is smaller, with 2,598 images and 27 classes, or about 96 images per class on average, roughly fifteen times fewer than PlantVillage. This small size is the price of real diversity. It raises a volume problem for training a model from scratch, but the dataset has a particular value: it is used to measure the gap between laboratory and field. The authors report that transfer learning improves accuracy, or reduces classification error, by up to 31 percent. The 9,216 bounding boxes add a useful dimension: an object detector can be trained, which locates affected leaves, and not only a classifier. With about 3.5 boxes per image on average, the dataset offers a modest but usable annotation density. For a project in computer vision in agriculture that aims at locating symptoms, it is a starting point closer to real conditions than PlantVillage.DeepWeeds: weeds in real conditions
DeepWeeds illustrates another philosophy: acquire images in the field, following a defined protocol, across several sites. The 17,509 images cover eight weed species and come from eight sites in northern Australia. The authors report an average accuracy of 95.1 percent with an Inception-v3 architecture and 95.7 percent with ResNet-50. These results are good for computer vision in agriculture, but they must be read in the light of the protocol, which defines what they prove. The images follow the same acquisition protocol, in a specific Australian environment. A model trained on this dataset and applied to European weeds, with another sensor, another shooting height and another soil, has no reason to keep these performances. The quality of the acquisition protocol is an asset of the dataset, but it also defines its range of validity. The dataset also recalls a reality of the field: classes are species, and the difference between two neighbouring species can require botanical expertise that an ordinary annotator does not have. Reliable labelling of such images relies on experts, which has a cost and a limit of scale.Wheat as a laboratory for diversity: Global Wheat Head Detection
The wheat head dataset is a case apart, because the way it was built is a lesson in itself. The first version, with 4,700 images and 193,634 heads, or about 41 heads per image on average, was later re-examined, relabelled and enriched. The 2021 version adds images from five more countries. Its authors describe it as bigger, more diverse and less noisy than the previous one. For anyone working in computer vision in agriculture, the lesson is that geographic diversity is not a luxury. Wheat does not have the same habit, the same sowing density or the same light and soil conditions from one country to another. A dataset that covers a single region produces a model that is reliable only there. The designers understood this and widened coverage, but they also corrected labelling errors, which is a reminder that even a reference dataset contains noise. It also illustrates a point that is often neglected: labelling dense and partly hidden objects, such as overlapping heads, is subjective. Where does one head end and the next begin? The answer depends on written guidelines, and two teams without shared guidelines will not produce the same boxes.The shared limits of public datasets in computer vision in agriculture
Beyond the particularities of each dataset, several limits appear almost everywhere in the landscape of open databases for computer vision in agriculture. The first is capture bias: one camera, one photographer, one lighting set up, one site. The model learns the signature of the capture as much as the phenomenon, as the eight background pixel experiment shows. The second is narrow coverage. Public datasets concentrate on a few well known crops and a few regions. A secondary crop, a local variety, a particular soil type or an uncommon farming system is almost never represented. The third is the heterogeneity of labels. Classes are not defined in the same way from one dataset to another: the severity level of a disease, the boundary between two stages and the definition of a partly visible object all vary. Merging two datasets without harmonising definitions creates an incoherent dataset. The fourth is the scarcity of metadata. Few datasets provide the time, the weather, the crop stage, the variety, the position or the sensor parameters. Without them, it is impossible to stratify the evaluation or to understand a failure. The fifth is the absence of published guidelines. A dataset provides images and labels, rarely the document that explains how decisions were made in ambiguous cases. One inherits a judgement without knowing its rules. A study on data augmentation sums it up well: plant diagnosis applications often suffer from overfitting, and their performance drops drastically when they are applied to test sets from new environments.Measuring the gap between a public dataset and the needs of a computer vision in agriculture project
Before adopting a public dataset, it is useful to quantify how much of your need it really covers. A simple method is to describe the use case by its dimensions, then count the cells that are covered. Imagine a project involving three crops, four growth stages and three regions. The space of conditions to cover has 3 × 4 × 3 = 36 combinations. If the public dataset covers only five of these combinations, the coverage is 5 / 36, or about 14 percent. The remainder, 86 percent, is extrapolation. The calculation is illustrative, but it changes the conversation. It replaces the intuition that the dataset is almost sufficient with a measurement: at 14 percent coverage, the public dataset is a starting tool, and the 31 missing combinations will have to be collected and annotated. It also helps prioritise: start with the most frequent combinations on the target farm, not with the easiest to photograph.Licences, rights and traceability
A public dataset is not a dataset free of constraints. Licences vary: some allow commercial use, others limit it to research, and others require citation or sharing of modifications. A dataset collected from the web and assembled by researchers may also contain images whose origin is not clearly established. For a computer vision in agriculture project aimed at a commercial product, a check is needed before any training: the dataset licence, the terms of use of the original images, and any restrictions on derived models. This check matters all the more as the regulatory framework for training data of artificial intelligence systems is becoming clearer in Europe, and the origin of the data used must be documented. Documenting provenance early also simplifies any later audit by a client or a regulator. A good practice is to keep a register of the datasets used, with their version, licence, download date, the use made of them and the processing applied. This register is cheap to keep as the project goes along and very expensive to reconstruct afterwards.Using a public dataset in computer vision in agriculture without being misled
A few rules make it possible to benefit from open datasets without suffering their limits. First, never validate a model on a public dataset alone. The final test set must come from the real conditions of the target farm, with its sensors, crops and seasons. The 31.4 percent observed outside the original dataset is a reminder of what validation on the public dataset alone can hide. Second, separate the roles. A public dataset serves for pretraining and for benchmarking methods, while a dataset of your own serves for adaptation and validation. Mixing the two without distinguishing them makes results impossible to interpret. Third, harmonise the classes. Before merging sources, write an explicit correspondence table between their labels, and decide how to treat the cases that do not match. Fourth, check a sample. Examining a few hundred images and their labels by hand quickly reveals errors, duplicates and capture biases. The experience of the wheat datasets shows that even reference databases contain them. Fifth, measure the gap. Train on the public dataset, test on a small clean sample of your own, and look at the difference. If it is large, that is valuable information about the volume of data to annotate yourself.What proprietary annotation adds to computer vision in agriculture
Faced with the limits of public datasets, annotating a dataset of your own is not a luxury: it provides precisely what is missing. It aligns the images with the sensors actually used, with the crops and regions targeted, and with the decision the model must make. It makes it possible to define the classes according to the use, with written, versioned guidelines shared between annotators. It also brings the difficult cases that public datasets often avoid: transition stages, occlusions, extreme lighting, ambiguous symptoms. These are the cases where models fail, and the ones a dataset of your own can deliberately over represent. Infoscribe AI works at this stage, with fully manual annotation, structured quality control and an annotation tool hosted on its own infrastructure, within an ISO 27001:2022 certified approach. Its annotation service for agriculture relies on agronomic supervision for the definition of classes and the validation of ambiguous cases. For a team starting from a public dataset, the work is often to complete, correct and harmonise rather than to start from scratch.Building the complement to a public dataset
Once coverage has been measured, the complement plan is built by priorities. The missing combinations of crop, stage, region and sensor are identified, ranked by frequency on the target farm, and collection is planned according to the agronomic calendar: a seasonal combination that is missed can only be recovered a year later. The volume to annotate is calculated from a pilot. Take an illustrative case: 31 combinations to cover, 150 images per combination for a first level of confidence, which makes 4,650 images. If a pilot shows that an image contains on average 20 objects to outline, that represents 93,000 objects. These figures set the order of magnitude of the work, before any discussion of throughput or price. A good complement combines several sources: images of your own for the target conditions, harmonised public datasets for pretraining, and a small frozen test set, annotated with the greatest care, which is never used for training. This last set is the safeguard of the project: it does not move, and it tells whether a change improves or degrades the model.Frequent mistakes with public agricultural datasets in computer vision in agriculture
- Validating a model on the public dataset that was used to train it and reporting the result as the performance of the product.
- Ignoring capture bias and not testing on images taken under other conditions.
- Merging several datasets without harmonising class definitions.
- Taking an average accuracy for a guarantee on each class or each condition.
- Using a dataset without checking its licence and the origin of its images.
- Believing that a dataset of several tens of thousands of images is necessarily diverse.
- Neglecting to measure the coverage of the dataset against the real need.
- Not keeping an independent test set annotated with the guidelines of the project.
- Not keeping a register of versions and of the processing applied to the data.
- Treating proprietary annotation as redundancy rather than as coverage of the missing cases.