Long-term video activity monitoring and anomaly alerting of group-housed pigs

•An auto-monitoring and anomaly alerting method for group-housed Pigs.•A pig segmentation model based on Mask R-CNN to monitor group-housed pigs.•Use frame difference method to quantify the activity level of group-housed pigs.•Adopt K-means clustering algorithm to explore pigs’ daily behaviors.•Use...

Full description

Saved in:
Bibliographic Details
Published inComputers and electronics in agriculture Vol. 224; p. 109205
Main Authors Yang, Qiumei, Chen, Miaobin, Xiao, Deqin, Huang, Senpeng, Hui, Xiangyang
Format Journal Article
LanguageEnglish
Published Elsevier B.V 01.09.2024
Subjects
Online AccessGet full text

Cover

Loading…
More Information
Summary:•An auto-monitoring and anomaly alerting method for group-housed Pigs.•A pig segmentation model based on Mask R-CNN to monitor group-housed pigs.•Use frame difference method to quantify the activity level of group-housed pigs.•Adopt K-means clustering algorithm to explore pigs’ daily behaviors.•Use SARIMA model to forecast potential shifts in activity levels proactively. The activity level of group-housed pigs can reflect their daily behavioral patterns and health conditions. Currently, most pig farms mainly rely on manual daily patrols to monitor the activities of group-housed pigs, which is labor-intensive and inaccurate. In this paper, we propose a computer vision-based method for the automatic monitoring and alerting of group-housed pigs activity anomaly. We established a pig segmentation model based on an improved Mask R-CNN incorporating the CBAM attention mechanism and CIoU loss function for segmenting pigs from video frames. The CBAM attention mechanism enables the model to focus more effectively on target regions, while CIoU loss function guides precise learning of object boundaries, outperforming the traditional IoU loss. Grounded on the segmentation results, we invocated a frame difference method to quantify the activity level of group-housed pigs. Subsequently, we adopted the K-means clustering algorithm to explore the daily behaviors of these pigs. Furthermore, we constructed a SARIMA model using historical data to proactively forecast potential shifts in activity levels. The experimental results demonstrated that the accuracy and recall rate of the pig instance segmentation model were 98.7% and 97.9%, respectively. The SARIMA model performed well in predicting activity levels of group-housed pigs with differing health status. For the pig herds under healthy status, the Mean Absolute Error (MAE) and Root Mean Square Error (RMSE) were 6.01 and 7.67 respectively, while for the pig herds under unhealthy status, the MAE and RMSE were 6.41 and 9.30 respectively. We proposed an effectively method to monitor daily behavioral patterns and anomalies of group-housed pigs, providing valuable references for pig farm management.
ISSN:0168-1699
1872-7107
DOI:10.1016/j.compag.2024.109205