Engineering in Agriculture, Environment and Food
Online ISSN : 1881-8366
ISSN-L : 1881-8366
A pig abnormal behavior monitoring model based on YOLOv5 and attention mechanism
Yafei YANGLi WANG Denghui LIGuoqiang WANG
Author information
JOURNAL OPEN ACCESS FULL-TEXT HTML

2026 Volume 19 Issue 2 Pages 105-110

Details
Abstract

An intelligent monitoring model based on YOLOv5 and an attention mechanism is proposed to improve automatic identification of abnormal pig behaviors in farming environments. A dataset containing pig fighting, abnormal feeding, and reduced activity behaviors was constructed and enhanced through data augmentation. By integrating a channel attention mechanism into YOLOv5s, the model improves feature extraction and detection performance for small and occluded targets. Experimental results show that the improved model achieves 95.24 % detection accuracy and 91 FPS, outperforming Faster R-CNN, YOLOv3, and the original YOLOv5s. The model demonstrates strong robustness, stability, and computational efficiency under complex conditions, providing effective technical support for intelligent livestock health management and precision farming applications.

Content from these authors
© Asian Agricultural and Biological Engineering Association

This article is licensed under a Creative Commons [Attribution 4.0 International] license.
https://creativecommons.org/licenses/by/4.0/
Previous article Next article
feedback
Top