Tracking Grow-Finish Pigs Across Large Pens Using Multiple Cameras
Not on the map. Why?
Abstract (arXiv)
Increasing demand for meat products combined with farm labor shortages has resulted in a need to develop new real-time solutions to monitor animals effectively. Significant progress has been made in continuously locating individual pigs using tracking-by-detection methods. However, these methods fail for oblong pens because a single fixed camera does not cover the entire floor at adequate resolution. We address this problem by using multiple cameras, placed such that the visual fields of adjacent cameras overlap, and together they span the entire floor. Avoiding breaks in tracking requires inter-camera handover when a pig crosses from one camera's view into that of an adjacent camera. We identify the adjacent camera and the shared pig location on the floor at the handover time using inter-view homography. Our experiments involve two grow-finish pens, housing 16-17 pigs each, and three RGB cameras. Our algorithm first detects pigs using a deep learning-based object detection model (YOLO) and creates their local tracking IDs using a multi-object tracking algorithm (DeepSORT). We then use inter-camera shared locations to match multiple views and generate a global ID for each pig that holds throughout tracking. To evaluate our approach, we provide five two-minutes long video sequences with fully annotated global identities. We track pigs in a single camera view with a Multi-Object Tracking Accuracy and Precision of 65.0% and 54.3% respectively and achieve a Camera Handover Accuracy of 74.0%. We open-source our code and annotated dataset at https://github.com/AIFARMS/multi-camera-pig-tracking
Key facts. Cited by 3 papers in the map (data through 14 Oct 2026). Builds on 6 of its 21 references that are in the map. First posted on arXiv 22 Nov 2021.
Builds on
6 of 21 references.
References · 6
- 2015You Only Look Once: Unified, Real-Time Object Detectioncited by 4,852
- 2015SSD: Single Shot MultiBox Detectorcited by 3,130
- 2020YOLOv4: Optimal Speed and Accuracy of Object Detectioncited by 1,630
- 2017Simple Online and Realtime Tracking with a Deep Association Metriccited by 910
- 2016Performance Measures and a Data Set for Multi-Target, Multi-Camera Trackingcited by 692
- 2018Features for Multi-Target Multi-Camera Tracking and Re-Identificationcited by 88
Built on by
Citing papers per year: 2024: 1; 2025: 2.
3 papers.
- 2024Public Computer Vision Datasets for Precision Livestock Farming: A Systematic Surveycited by 1
- 2025Pig behavior dataset and Spatial-temporal perception and enhancement networks based on the attention mechanism for pig behavior recognitioncited by 0
- 2025Benchmarking pig detection and tracking under diverse and challenging conditionscited by 0
- 2025Benchmarking pig detection and tracking under diverse and challenging conditions22 Jul 2025
- 2025Pig behavior dataset and Spatial-temporal perception and enhancement networks based on the attention mechanism for pig behavior recognition12 Mar 2025
- 2024Public Computer Vision Datasets for Precision Livestock Farming: A Systematic Survey15 Jun 2024