Lightweight patch-level attention for efficient pig behavior detection: A novel dataset and approach
The pig farming industry plays a crucial role in food production system. Pig behavior detection facilitates timely anomaly detection, enhances farming efficiency, ensures animal welfare, and prevents diseases. Pig behavior detection involves the automatic recognition and classification of pig behaviors in farm images using computer vision and deep learning techniques. Currently, mainstream approaches for pig behavior detection utilize neural networks for image analysis and recognition, however, deep neural network architectures are inherently complex and computationally intensive, with potential for further accuracy enhancement. To address these challenges, we propose a lightweight pig behavior detection model that integrates prediction head optimization and GIoU for improved bounding box regression, while utilizing patch-level attention instead of global attention and employing depthwise separable convolutions in place of standard convolutions. These modifications facilitate efficient and accurate identification and classification of five common pig behaviors in farm environments. Experimental results demonstrate that the proposed method achieves enhanced performance and efficiency.
Authors
- Tao Han (ORCID: https://orcid.org/0000-0001-6643-7369)
- Shuo Wan (ORCID: https://orcid.org/0000-0002-3350-3929)
- Ying Sha (ORCID: https://orcid.org/0000-0002-2906-0061)
- Huang Zhongqiang
Institutions
- Huazhong Agricultural University (CN)
- Ministry of Agriculture (CA)
- Ministry of Agriculture and Rural Affairs (CN)
- Hubei Academy of Agricultural Sciences (CN)
- Hubei University of Technology (CN)
Publication Details
- Journal
- Smart Agricultural Technology
- Published
- 2025-08-12
- DOI
- https://doi.org/10.1016/j.atech.2025.101299
- Primary Topic
- Animal Behavior and Welfare Studies
- Type
- article
- Field-Weighted Citation Impact
- 0.00
Funders
- National Natural Science Foundation of China