An Automatic Movement Monitoring Method for Group-Housed Pigs
Open Access
Abstract
Continuous movement monitoring helps quickly identify pig abnormalities, enabling immediate action to enhance pig welfare. However, continuous and precise monitoring of daily pig movement on farms remains challenging. We present an approach to automatically and precisely monitor the movement of group-housed pigs. The instance segmentation model YOLOv8m-seg was applied to detect the presence of pigs. We then applied a spatial moment algorithm to quantitatively summarize each detected pig’s contour as a corresponding center point. The agglomerative clustering (AC) algorithm was subsequently used to gather the pig center points of a single frame into one point representing the group-housed pigs’ position, and the movement volume was obtained by calculating the displacements of the clustered group-housed pigs’ center points of consecutive frames. We employed the method to monitor the movement of group-housed pigs from April to July 2023; more than 1500 h of top-down pig videos were recorded by a surveillance camera. The F1 scores of the trained YOLOv8m-seg model during training were greater than 90% across most confidence levels, and the model achieved an mAP50-95 of 0.96. The AC algorithm performs with an average extraction time of less than 1 millisecond; this method can run efficiently on commodity hardware.Keywords
Funding Information
- Key R&D Program of Zhejiang, China (2022C02050, 2022SNJF057, 2021-2-025)
- Science and Technology Cooperation Plan “Nine collaborative partners of agriculture, rural areas, and farmers” of Zhejiang, China (2022C02050, 2022SNJF057, 2021-2-025)
- Science and Technology Plan Project of Jinhua, China (2022C02050, 2022SNJF057, 2021-2-025)
This publication has 34 references indexed in Scilit:
- Automatic quantification and assessment of grouped pig movement using the XGBoost and YOLOv5s modelsBiosystems Engineering, 2023
- Automatic detection of locomotor play in young pigs: A proof of conceptBiosystems Engineering, 2023
- Activity detection of suckling piglets based on motion area analysis using frame differences in combination with convolution neural networkComputers and Electronics in Agriculture, 2022
- Automatic detection of crop root rows in paddy fields based on straight-line clustering algorithm and supervised learning methodBiosystems Engineering, 2021
- Automatic monitoring of lactation frequency of sows and movement quantification of newborn piglets in farrowing houses using convolutional neural networksComputers and Electronics in Agriculture, 2021
- Unrest index for estimating thermal comfort of poultry birds (Gallus gallus domesticus) using computer vision techniquesBiosystems Engineering, 2021
- Segmentation of tomato leaf images based on adaptive clustering number of K-means algorithmComputers and Electronics in Agriculture, 2019
- Automatic scoring of lateral and sternal lying posture in grouped pigs using image processing and Support Vector MachineComputers and Electronics in Agriculture, 2019
- Multi-object extraction from topview group-housed pig images based on adaptive partitioning and multilevel thresholding segmentationBiosystems Engineering, 2015
- Validation of a High Frequency Radio Frequency Identification (HF RFID) system for registering feeding patterns of growing-finishing pigsComputers and Electronics in Agriculture, 2014