Related Experiment Video
Updated: Jun 10, 2025

Noninvasive, In-pen Approach Test for Laboratory-housed Pigs
Published on: June 5, 2019
Tracking and Behavior Analysis of Group-Housed Pigs Based on a Multi-Object Tracking Approach
Shuqin Tu1,2, Jiaying Du1, Yun Liang1,2
1College of Mathematics and Informatics, South China Agricultural University, Guangzhou 510642, China.
A new smart farming system uses YOLOv8 and OC-SORT (V8-Sort) to accurately track pig behavior, improving health and welfare monitoring. This robust multi-object tracking method overcomes challenges like occlusion and pig clustering for reliable, long-term analysis.
Area of Science:
- Agricultural Technology
- Animal Behavior Science
- Computer Vision
Background:
- Monitoring pig health and welfare in group-housed settings is crucial for smart farming.
- Traditional methods struggle with challenges like variable lighting, occlusion, and pig clustering, leading to tracking errors.
- Accurate, automated behavior tracking is needed to improve livestock management and early disease detection.
Purpose of the Study:
- To develop a robust multi-object tracking (MOT) approach for automatic monitoring of group-housed pig behaviors.
- To address common challenges in pig tracking, including variable lighting, occlusion, and pig clustering.
- To provide a reliable solution for real-time behavior tracking, enhancing pig health and welfare management.
Main Methods:
- Utilized YOLOv8 for real-time pig detection and behavior classification under challenging conditions.
- Employed OC-SORT for robust multi-object tracking, effectively handling pig clustering and occlusion.
- Developed an automatic behavior analysis algorithm integrating detection and tracking data for long-term monitoring.
Main Results:
- The V8-Sort method achieved superior performance compared to JDE, Trackformer, and TransTrack on pig tracking datasets.
- Achieved high HOTA, MOTA, and IDF1 scores (e.g., 82.0%, 96.3%, 96.8% on 1-minute videos).
- The system accurately recorded durations of specific pig behaviors, providing insights into health and welfare.
Conclusions:
- The proposed YOLOv8 + OC-SORT (V8-Sort) approach offers excellent performance in pig behavior recognition and tracking.
- This technology provides essential technical support for anomaly detection and health status monitoring in pig farming.
- The system contributes to improved animal welfare and efficient management in smart farming environments.
More Related Videos
05:57Long-term Video Tracking of Cohoused Aquatic Animals: A Case Study of the Daily Locomotor Activity of the Norway Lobster Nephrops norvegicus
Published on: April 8, 2019
08:32Tracking Rats in Operant Conditioning Chambers Using a Versatile Homemade Video Camera and DeepLabCut
Published on: June 15, 2020