KristoVaultKristoVault

Choosing Livestock YOLO Datasets: Cattle, Pigs, Sheep & Horses

Start with the output you need. Bounding boxes locate animals; behavior recognition needs labels for the specific states you want to distinguish; instance segmentation needs outlines. A TXT extension alone does not tell you whether an annotation contains boxes or polygons.

This guide compares the files and labels described on seven current KristoVault product pages. Image-file counts do not establish the number of independent animals, recording sessions or camera views.

Cattle posture: two-class detection

2,400 images labeled Cow_lying and Cow_standing, split 1,680/480/240 for train/validation/test. A candidate for standing-versus-lying detection in barns. Two directory copies contain the same images and are counted once. CowTech v4 source metadata and CC BY 4.0 license files are retained.

Cattle Standing & Lying YOLO Dataset | 2,400 Images

Dairy cattle: four everyday behaviors

8,240 images with eating, resting, standing and walking labels, split 5,768/1,648/824. These are YOLO bounding boxes. Compare the overhead or elevated views and occlusion in the samples with the camera position in your own barn.

Dairy Cattle Behavior YOLO Dataset | 8,240 Images

Pig feeding and posture: polygon segmentation

1,090 exported images from 454 distinct source-image names. Eating, Lying, Sitting and Standing are represented with polygon segmentation labels. Use a segmentation pipeline. The exported split is 954/91/45: each training source name has three versions; validation and test source names each have one.

Pig Feeding YOLO Segmentation Dataset | 1,090 Exports

Pig activity: 16 original labels

7,200 exported images with 600 base filenames before the .rf. suffix, split 5,040/1,440/720. Labels include drink, eat, walk, run, lying and sleep; all 16 original names, including json, are retained. Inspect class meanings and counts. Multiple exports do not establish an equal number of independent source scenes.

Pig Behavior YOLO Dataset | 7,200 Exported Images

Pig interaction: tail biting and contact

3,556 images, split 3,111/296/149, with eight original labels: Tail Biting, Ear Biting, Belly Nosing, Head to Body, Head to Head, Down, Erect and Erect - Curl. For interaction research, inspect how small contact regions and occluded animals are annotated.

Pig Interaction YOLO Dataset | 3,556 Images

Sheep behavior: YOLO and VOC annotations

1,916 images labeled eat, lie and activity, split 1,532/192/192. Includes YOLO TXT, Pascal VOC XML, YAML and a best.pt weights file. Source and split directories contain the same collection and are counted once. Included weights do not establish performance in a different sheep pen.

Sheep Behavior YOLO Dataset | 1,916 Images

Horse detection: a dominant general Horse class

7,112 images, split 4,979/1,422/711. Horse occurs in 7,073 images; eating, lying and standing labels occur in only 17, 2 and 31 images respectively. Images may contain several classes. Start by evaluating general horse localization; a four-class list does not mean balanced behavior coverage.

Horse Detection YOLO Dataset | 7,112 Images

Five checks before buying or training

  1. Task and format. Inspect the TXT structure, class order and YAML. Boxes and polygons require different data pipelines.
  2. What the count means. Separate exports, base filenames and duplicate directories. An augmented copy is not evidence of a new independent recording.
  3. Split leakage. Trace related exports by base filename. Where recording, animal or session identifiers exist, group by those sources too. Check whether near-duplicates cross train and test sets; the split totals alone cannot establish that leakage is absent.
  4. Class and scene balance. Count images and instances per class. Review occlusion, lighting, camera angles and scene differences. Evaluate rare classes separately.
  5. License and delivery. Check the source and license files for the specific product. Do not apply a CC BY license from another dataset to a product whose page does not specify that license.

Where to start

Open the relevant product page, inspect the original annotation previews and check the class list before selecting a training task. Data is supplied as is, without a guarantee of annotation quality or model performance. Enter a dataset delivery email at checkout; the download link is sent manually after payment. Use the contact page for questions about the package.

Format references

The official Ultralytics guides for object detection and instance segmentation describe the annotation structures and dataset configuration. Verify compatibility with the software version used in your own environment.

Related datasets and products