Next Article in Journal
Bison, Elk, and Other Captive Wildlife Species Humoral Immune Responses against SARS-CoV-2
Previous Article in Journal
Establishing Joint Orientation Angles of the Limbs in Korean Raccoon Dogs (Nyctereutes procyonoides koreensis) Using Computed Tomographic Imaging
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
This is an early access version, the complete PDF, HTML, and XML versions will be available soon.
Article

Tracking and Behavior Analysis of Group-Housed Pigs Based on a Multi-Object Tracking Approach

1
College of Mathematics and Informatics, South China Agricultural University, Guangzhou 510642, China
2
Guangzhou Key Laboratory of Intelligent Agriculture, Guangzhou 510000, China
*
Authors to whom correspondence should be addressed.
Animals 2024, 14(19), 2828; https://doi.org/10.3390/ani14192828
Submission received: 3 September 2024 / Revised: 25 September 2024 / Accepted: 29 September 2024 / Published: 30 September 2024
(This article belongs to the Section Pigs)

Simple Summary

This study developed a new method for automatically tracking and analyzing pig behavior in complex environments. We use the YOLOv8 algorithm for real-time detection and behavior classification, and employ the OC-SORT algorithm to address tracking issues caused by lighting changes, occlusions, and collisions between pigs. This method enables the automatic analysis of behavior, helping farm managers promptly detect abnormalities and health issues in pigs. Experimental results show that the method performs excellently in behavior recognition and tracking, accurately recording pig behavior to provide technical support for monitoring the health and welfare of pig herds.

Abstract

Smart farming technologies to track and analyze pig behaviors in natural environments are critical for monitoring the health status and welfare of pigs. This study aimed to develop a robust multi-object tracking (MOT) approach named YOLOv8 + OC-SORT(V8-Sort) for the automatic monitoring of the different behaviors of group-housed pigs. We addressed common challenges such as variable lighting, occlusion, and clustering between pigs, which often lead to significant errors in long-term behavioral monitoring. Our approach offers a reliable solution for real-time behavior tracking, contributing to improved health and welfare management in smart farming systems. First, the YOLOv8 is employed for the real-time detection and behavior classification of pigs under variable light and occlusion scenes. Second, the OC-SORT is utilized to track each pig to reduce the impact of pigs clustering together and occlusion on tracking. And, when a target is lost during tracking, the OC-SORT can recover the lost trajectory and re-track the target. Finally, to implement the automatic long-time monitoring of behaviors for each pig, we created an automatic behavior analysis algorithm that integrates the behavioral information from detection and the tracking results from OC-SORT. On the one-minute video datasets for pig tracking, the proposed MOT method outperforms JDE, Trackformer, and TransTrack, achieving the highest HOTA, MOTA, and IDF1 scores of 82.0%, 96.3%, and 96.8%, respectively. And, it achieved scores of 69.0% for HOTA, 99.7% for MOTA, and 75.1% for IDF1 on sixty-minute video datasets. In terms of pig behavior analysis, the proposed automatic behavior analysis algorithm can record the duration of four types of behaviors for each pig in each pen based on behavior classification and ID information to represent the pigs’ health status and welfare. These results demonstrate that the proposed method exhibits excellent performance in behavior recognition and tracking, providing technical support for prompt anomaly detection and health status monitoring for pig farming managers.
Keywords: pig behavior tracking; OC-SORT; group-housed pigs; YOLOv8; behavior analysis pig behavior tracking; OC-SORT; group-housed pigs; YOLOv8; behavior analysis

Share and Cite

MDPI and ACS Style

Tu, S.; Du, J.; Liang, Y.; Cao, Y.; Chen, W.; Xiao, D.; Huang, Q. Tracking and Behavior Analysis of Group-Housed Pigs Based on a Multi-Object Tracking Approach. Animals 2024, 14, 2828. https://doi.org/10.3390/ani14192828

AMA Style

Tu S, Du J, Liang Y, Cao Y, Chen W, Xiao D, Huang Q. Tracking and Behavior Analysis of Group-Housed Pigs Based on a Multi-Object Tracking Approach. Animals. 2024; 14(19):2828. https://doi.org/10.3390/ani14192828

Chicago/Turabian Style

Tu, Shuqin, Jiaying Du, Yun Liang, Yuefei Cao, Weidian Chen, Deqin Xiao, and Qiong Huang. 2024. "Tracking and Behavior Analysis of Group-Housed Pigs Based on a Multi-Object Tracking Approach" Animals 14, no. 19: 2828. https://doi.org/10.3390/ani14192828

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop