Datasets:
File size: 7,647 Bytes
a885a39 ac3a3cd a885a39 ac3a3cd a885a39 ac3a3cd a885a39 ac3a3cd a885a39 ac3a3cd a885a39 ac3a3cd a885a39 ac3a3cd a885a39 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 | ---
license: cc-by-4.0
task_categories:
- object-detection
- image-classification
- video-classification
language:
- en
tags:
- poultry
- chicken
- egg
- broiler
- hen
- agriculture
- smart-farming
- precision-livestock-farming
- animal-welfare
- multi-camera
- tracking
- yolo
- yolov11
- computer-vision
size_categories:
- 10K<n<100K
pretty_name: PoultryVision Unified Dataset
configs:
- config_name: detection
data_files:
- split: train
path: "images/train/*"
- split: val
path: "images/val/*"
- split: test
path: "images/test/*"
- config_name: classification
data_files:
- split: train
path: "classification/train/**"
- split: val
path: "classification/val/**"
- split: test
path: "classification/test/**"
---
# PoultryVision Unified Dataset
A **large-scale, multi-modal poultry-farm dataset** unifying six public sources for
detection, classification, multi-camera tracking and behavior analysis of
chickens (broilers, hens, cocks) and eggs.
This dataset was built to train **[Williamsanderson/PoultryVision](https://huggingface.co/Williamsanderson/PoultryVision)**, a YOLOv11m model that **beats the fine-tuned YOLOv11x reported by Cardoen et al. (MVBroTrack paper, 2025) by +8.5 mAP@50-95**.
---
## Dataset at a glance
### Object detection (YOLO format)
| Split | Images |
|-------|-------:|
| Train | 15 987 |
| Val | 3 706 |
| Test | 1 893 |
| **Total** | **21 586** |
### Image classification
| Split | Images |
|-------|-------:|
| Train | 1 832 |
| Val | 444 |
| Test | 263 |
| **Total** | **2 539** |
### Videos & multi-camera
- **24 MP4 videos** from 4 synchronized cameras (cam 9 / 10 / 11 / 12) across 6 samples
- Camera **calibration files** (intrinsics + extrinsics) for every camera
- **Reprojection masks** defining the ground-plane region of interest
- **Tracking ground truth** on the ground plane
- **Pre-computed YOLO detections** per frame for every multi-view sample
### Classes (detection)
| ID | Name | Description |
|----|---------|--------------------------------------|
| 0 | chicken | All poultry: broilers, hens, cocks |
| 1 | egg | Chicken eggs |
---
## Source datasets
| # | Source | Type | Link / Reference |
|---|---------------------------------|-------------------------------|------------------|
| 1 | Dataset Chicken 1 | Classification (images.cv) | images.cv |
| 2 | Dataset Chicken 2 | Classification (images.cv) | images.cv |
| 3 | Dataset Chicken 3 | Detection (COCO, Roboflow) | Roboflow Universe |
| 4 | Chickens-Eggs v1 | Detection (YOLOv8, Roboflow) | Roboflow Universe |
| 5 | chicken eggs 2 v3 | Detection + segmentation | Roboflow Universe |
| 6 | **MVBroTrack** | Multi-camera broiler tracking | Cardoen et al., *Computers and Electronics in Agriculture*, 2025 |
All six sources were standardized to a **unified YOLO detection format** (and/or ImageFolder classification format), deduplicated, and split into train/val/test.
---
## Folder structure
```
PoultryVision-Dataset/
├── data.yaml # Ultralytics-compatible dataset config
├── images/ # Detection images
│ ├── train/ (15 987)
│ ├── val/ ( 3 706)
│ └── test/ ( 1 893)
├── labels/ # YOLO .txt labels (one per image)
│ ├── train/
│ ├── val/
│ └── test/
├── classification/ # ImageFolder layout
│ ├── train/<class>/*.jpg
│ ├── val/<class>/*.jpg
│ └── test/<class>/*.jpg
├── videos/ # 24 MP4 videos (4 cameras × 6 samples)
├── calibrations/ # Camera calibration (intrinsics + extrinsics)
│ └── cam_<id>/
│ ├── intrinsics/{cameraMatrix.txt, distCoeffs.txt}
│ └── extrinsics/{rvec.txt, tvec.txt}
├── multi_view_detection/ # Pre-computed per-frame YOLO detections
├── reprojection_masks/ # Ground-plane ROI masks
└── tracking_gt/ # Multi-camera tracking ground truth
```
---
## Quick start
### Download
```bash
pip install huggingface_hub
hf download --repo-type dataset Williamsanderson/PoultryVision-Dataset --local-dir PoultryVision-Dataset
```
### Train a YOLO detector
```python
from ultralytics import YOLO
model = YOLO("yolo11m.pt")
model.train(
data="PoultryVision-Dataset/data.yaml",
epochs=70,
imgsz=640,
batch=16,
optimizer="AdamW",
lr0=0.001,
)
```
Reference YOLO recipe that produced the published model:
```yaml
model: yolo11m.pt
epochs: 70
imgsz: 640
optimizer: AdamW
lr0: 0.001
hsv_h: 0.015
hsv_s: 0.7
hsv_v: 0.4
mosaic: 1.0
mixup: 0.1
close_mosaic: 10
auto_augment: randaugment
```
### Image classification
```python
from torchvision.datasets import ImageFolder
from torchvision import transforms
tfm = transforms.Compose([
transforms.Resize((224, 224)),
transforms.ToTensor(),
])
train = ImageFolder("PoultryVision-Dataset/classification/train", transform=tfm)
```
### Multi-camera tracking
Calibration files follow the MVBroTrack paper convention. Each camera folder
contains `cameraMatrix.txt`, `distCoeffs.txt`, `rvec.txt`, `tvec.txt`.
The repository ships a full multi-view pipeline (Algorithm 1 & 2 of the paper,
Tracking-by-Curve-Matching) — see
[`Williamsanderson/PoultryVision` model repo](https://huggingface.co/Williamsanderson/PoultryVision).
---
## 🏆 Benchmark
Model trained on this dataset (YOLOv11m, 70 epochs, imgsz 640, AdamW):
| Metric | Value |
|---------------|-------:|
| mAP@50-95 | **0.793** |
| mAP@50 | **0.971** |
| Precision | 0.934 |
| Recall | 0.934 |
Compared to the MVBroTrack paper (Cardoen et al., 2025):
| Model | mAP@50-95 | Params |
|-------------------------------------|:---------:|:------:|
| YOLOv11x fine-tuned (paper) | 70.8 % | 56.9 M |
| **YOLOv11m fine-tuned (ours)** | **79.3 %**| 20.1 M |
---
## License
This dataset is released under **CC-BY-4.0**.
- The unified packaging, splits and labels harmonization are © 2025 Williams Anderson, CC-BY-4.0.
- Individual source datasets retain their original licenses:
- **MVBroTrack** (Cardoen et al., 2025) — see the original paper and its data statement
- **Roboflow Universe** datasets — typically CC-BY-4.0 (check each source)
- **images.cv** datasets — CC-BY-4.0 / public domain
- Please cite the original sources if you use the corresponding subsets.
---
## Citation
```bibtex
@misc{williamsanderson_poultryvision_dataset_2025,
title = {PoultryVision: A Unified Dataset for Poultry-Farm Computer Vision},
author = {Williams Anderson},
year = {2025},
howpublished = {\url{https://huggingface.co/datasets/Williamsanderson/PoultryVision-Dataset}},
}
@article{cardoen2025mvbrotrack,
title = {Multi-camera detection and tracking for individual broiler monitoring},
author = {Cardoen, J. and others},
journal = {Computers and Electronics in Agriculture},
year = {2025}
}
```
---
## Acknowledgements
- **Cardoen et al.** (MVBroTrack) for the multi-camera broiler data
- **Roboflow** and **images.cv** communities for the chicken / egg datasets
- **Ultralytics** for the YOLOv11 framework that produced the reference model
|