The Client
An AgriTech SaaS company turning drone surveys into livestock inventories
The client develops software that uses drones and AI to count cattle in feedyards and pastures. Farmers, lenders, and feedyard operators use the company’s herd inventories to run feedyard audits, spot missing animals, plan feed cycles or farm expansion, and confirm loan collateral. They engaged our image annotation services to prepare reliable training data for their livestock-detection model.

Project Requirements
What the client needed
Aerial image labeling of 10,000 high-resolution drone images per month to train and validate their AI livestock detection model.
Label every animal: Mark each identifiable animal in an image, including animals that are partly hidden, at the edge of the frame, or standing close together.
Oval annotations: Draw an oval around each animal in QuPath that fits the animal’s top-down body outline.
95%+ accuracy: Keep annotation accuracy above 95% on every delivered batch, including across edge cases such as images with glare, deep shadows, or tightly packed pens.
Model-ready exports: Convert QuPath output into COCO JSON, the format the client's training pipeline reads, with valid image IDs, class information, and bounding regions.
The Challenge
Cattle that blend into shadows, dirt, and each other
Feedyards and pastures rarely give a drone a clean view of the herd. The source image also changed from flight to flight due to environmental factors. Yet, the model had to account for every identifiable animal or risk distorting the herd count and the downstream purpose it served.
Shadows hid animal outlines
Harsh sun, long shadows, overexposed patches, and black cattle on dark, wet dirt could make a real animal fade out or a shadow pass for one.
Background objects resembled cattle
Dirt mounds, dark grass, feed troughs, feedlot structures, and parked vehicles could all resemble cattle in a top-down shot.
Crowded herds obscured individual animals
In busy pens, cattle stood together in tight packs, touching or overlapping, so it was hard to tell where one animal ended and the next began.
Camera geometry kept changing
Altitude, camera tilt, flight path, and drone settings changed between flights, so image size, scale, and orientation kept shifting.
No direct path to COCO JSON
The client's training system used a format called COCO JSON but their chosen data annotation tool, QuPath, saves labels as GeoJSON and has no "save as COCO JSON" option.
How We Did It
A QuPath workflow designed to preserve individual cattle counts in the client’s expected COCO JSON format
We aligned a dedicated team of 6 drone image annotators and a secondary reviewer, built a shared reference for handling the tough images, and developed a custom model-data export path.
Define annotation guidelines for the exceptions
To give every annotator the same visual standard, we used a representative sample of the client's real drone images to build a guideline that showed what an animal looked like under shadows, glare, and partial occlusion, how to distinguish cattle from troughs, vehicles, and dark ground patches, and when adjacent bodies needed separate annotations.
Fix one shape and one class in QuPath
We configured a single Cattle class with fixed color and border styling, then trained annotators to fit an oval around each animal's visible body. This way, any missing or off-style label stood out at a glance during review.
Train annotators on the client's drone images
Every annotator practiced on the client's real drone images for a week before joining the production line to learn the lighting, terrain, and herd patterns. We also built QuPath project templates, so each new batch opened with the same class, oval style, and tool settings already in place. No one had to set up a batch by hand, and every annotator started from the same configuration.
Label, review, and track every batch
Annotators labeled their assigned images. A secondary reviewer then spot-checked each batch and fixed errors to keep accuracy above 95%. We tracked daily and weekly targets for each annotator, keeping speed and accuracy steady as data volume grew.
Convert and validate COCO JSON files
We exported labels from QuPath as GeoJSON, then ran a custom script that converted them into COCO JSON to the client's specification for categories, bounding regions, and image references. Validation checks then matched the two files animal by animal. For example, if an image held 85 ovals in QuPath, its COCO entry had to list the same 85 animals, with the right coordinates and image ID.
Use error patterns to improve quality checks
Peer reviewers checked a sample from each annotator's batch. They randomly audited finished batches to identify broader issues, such as hidden cattle, merged ovals, or objects mistaken for animals. When a mistake kept coming back, such as a trough labeled as an animal, we added it to the annotation guideline document and updated the visual examples and instructions.

The Results
Herd counts that hold up, and a model that keeps improving
Since March 2025, the client's model has received a steady supply of accurate training data, enabling frequent model improvements and a better end-user experience.
40%
fewer recount requests from users
Now, our client’s end users (farmers, lenders, feedyards, etc.) raise fewer disputes and very few request a second count after receiving an inventory.
3x
more frequent model updates
Not only does the client get a large volume of accurately labeled data, but that training data is also representative of environmental and seasonal variations, as we annotate drone images collected under changing conditions throughout the year.
95%+
annotation accuracy across all batches
Accurate annotations with only a few corrections have protected the client’s model from learning from mislabeled examples and kept dataset quality consistent, despite increasing monthly image volumes.
Despite tight timelines and massive image volume, they delivered high-quality labeled data on schedule and made integration into our AI model completely seamless.
Labels
Services
Platforms, Tools & Scope
- QuPath
- Drone Image Annotation
- Aerial Image Labeling
- Livestock Detection Training Data
- Cattle Counting AI
- Oval Annotation
- Occluded Object Labeling
- Annotation Guideline Creation
- GeoJSON to COCO JSON Conversion
- Geospatial Data Annotation



