Benchmarking pig detection and tracking under diverse and challenging conditions

📅 2025-07-22
📈 Citations: 0
Influential: 0
📄 PDF
🤖 AI Summary
A lack of systematic benchmarking for detection and tracking algorithms in individual pig behavior monitoring hinders progress in intelligent swine farming. Method: We introduce PigDetect (for detection) and PigTrack (for tracking), the first high-quality, real-world pig-farm datasets, and conduct the first end-to-end, cross-environment benchmark evaluation. We comprehensively assess YOLO-based detectors, end-to-end trainable trackers, and SORT-family association methods, incorporating challenging sample sampling to enhance robustness. Contribution/Results: SORT-based approaches achieve the best trade-off between accuracy and efficiency. Models trained on our datasets demonstrate strong generalization to unseen pens. Both datasets and code are publicly released, establishing a reproducible benchmark and technical foundation for animal welfare monitoring and automated management in precision swine farming.

Technology Category

Application Category

📝 Abstract
To ensure animal welfare and effective management in pig farming, monitoring individual behavior is a crucial prerequisite. While monitoring tasks have traditionally been carried out manually, advances in machine learning have made it possible to collect individualized information in an increasingly automated way. Central to these methods is the localization of animals across space (object detection) and time (multi-object tracking). Despite extensive research of these two tasks in pig farming, a systematic benchmarking study has not yet been conducted. In this work, we address this gap by curating two datasets: PigDetect for object detection and PigTrack for multi-object tracking. The datasets are based on diverse image and video material from realistic barn conditions, and include challenging scenarios such as occlusions or bad visibility. For object detection, we show that challenging training images improve detection performance beyond what is achievable with randomly sampled images alone. Comparing different approaches, we found that state-of-the-art models offer substantial improvements in detection quality over real-time alternatives. For multi-object tracking, we observed that SORT-based methods achieve superior detection performance compared to end-to-end trainable models. However, end-to-end models show better association performance, suggesting they could become strong alternatives in the future. We also investigate characteristic failure cases of end-to-end models, providing guidance for future improvements. The detection and tracking models trained on our datasets perform well in unseen pens, suggesting good generalization capabilities. This highlights the importance of high-quality training data. The datasets and research code are made publicly available to facilitate reproducibility, re-use and further development.
Problem

Research questions and friction points this paper is trying to address.

Benchmarking pig detection and tracking in diverse conditions
Improving detection performance with challenging training images
Comparing SORT-based and end-to-end models for tracking
Innovation

Methods, ideas, or system contributions that make the work stand out.

Utilizes diverse datasets for pig detection and tracking
State-of-the-art models enhance detection and tracking quality
Public datasets and code promote reproducibility and development
🔎 Similar Papers
No similar papers found.
Jonathan Henrich
Jonathan Henrich
University of Göttingen
Machine LearningComputer Vision
Christian Post
Christian Post
Behavioural Informatics in Livestock Husbandry, Christian-Albrechts-Universität zu Kiel
M
Maximilian Zilke
work performed during employment at University of Göttingen, Germany
P
Parth Shiroya
work performed during employment at University of Göttingen, Germany
E
Emma Chanut
work performed during employment at University of Göttingen, Germany
A
Amir Mollazadeh Yamchi
work performed during employment at Kiel University, Germany
Ramin Yahyapour
Ramin Yahyapour
GWDG, University Göttingen
HPCDistributed ComputingCloudsGridsData Management
Thomas Kneib
Thomas Kneib
Chair of Statistics, Georg-August-University Göttingen
semiparametric regressionstatistical modelling
Imke Traulsen
Imke Traulsen
Institute of Animal Breeding and Husbandry, Kiel University, Germany