CVJul 22, 2025

Benchmarking pig detection and tracking under diverse and challenging conditions

arXiv:2507.16639v1h-index: 35Comput Electron Agric
Originality Synthesis-oriented
AI Analysis

This work addresses the problem of automated animal monitoring for pig farmers, but it is incremental as it focuses on benchmarking existing methods rather than introducing new ones.

The authors tackled the lack of systematic benchmarking for pig detection and tracking in farming by curating two datasets (PigDetect and PigTrack) under challenging conditions, showing that state-of-the-art models improve detection quality and SORT-based methods outperform end-to-end models in tracking, with datasets demonstrating good generalization to unseen pens.

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.

Foundations

The foundational work for this paper's niche, ranked by how specifically the neighbourhood builds on it — not by global fame.

Your Notes