Detection of Feeding Behavior in Lactating Sows Based on Improved You Only Look Once v5s and Image Segmentation
-
Published:2024-08-19
Issue:8
Volume:14
Page:1402
-
ISSN:2077-0472
-
Container-title:Agriculture
-
language:en
-
Short-container-title:Agriculture
Author:
Liu Luo12ORCID, Xu Shanpeng13, Chen Jinxin14, Wang Haotian13ORCID, Zheng Xiang13, Shen Mingxia13, Liu Longshen13ORCID
Affiliation:
1. Key Laboratory of Livestock Farming Equipment, Ministry of Agriculture and Rural Affairs, Nanjing 210031, China 2. College of Veterinary Medicine, Nanjing Agricultural University, Nanjing 210095, China 3. College of Artificial Intelligence, Nanjing Agricultural University, Nanjing 210031, China 4. College of Engineering, Nanjing Agricultural University, Nanjing 210031, China
Abstract
The production management of lactating sows is a crucial aspect of pig farm operations, as their health directly impacts the farm’s production efficiency. The feeding behavior of lactating sows can reflect their health and welfare status, and monitoring this behavior is essential for precise feeding and management. To address the issues of time-consuming and labor-intensive manual inspection of lactating sows’ feeding behavior and the reliance on breeders’ experience, we propose a method based on the improved YOLO (You Only Look Once) v5s algorithm and image segmentation for detecting the feeding behavior of lactating sows. Based on the YOLOv5s algorithm, the SE (Squeeze-and-Excitation) attention module was added to enhance the algorithm’s performance and reduce the probability of incorrect detection. Additionally, the loss function was replaced by WIoU (Weighted Intersection over Union) to accelerate the model’s convergence speed and improve detection accuracy. The improved YOLOv5s-C3SE-WIoU model is designed to recognize pre-feeding postures and feed trough conditions by detecting images of lactating sows. Compared to the original YOLOv5s, the improved model achieves an 8.9% increase in mAP@0.5 and a 4.7% increase in mAP@0.5 to 0.95. This improvement satisfies the requirements for excellent detection performance, making it suitable for deployment in large-scale pig farms. From the model detection results, the trough remnant image within the detection rectangle was extracted. This image was further processed using image processing techniques to achieve trough remnant image segmentation and infer the remnant amount. Based on the detection model and residue inference method, video data of lactating sows’ feeding behavior were processed to derive the relationship between feeding behavior, standing time, and residue amount. Using a standing duration of 2 s and a leftover-feed proportion threshold of 2% achieves the highest accuracy, enabling the identification of abnormal feeding behavior. We analyzed the pre-feeding postures and residual feed amounts of abnormal and normal groups of lactating sows. Our findings indicated that standing time was significantly lower and residual feed amount was higher in the abnormal groups compared to the normal groups. By combining standing time and residual feed amount information, accurate detection of the feeding status of lactating sows can be realized. This approach facilitates the accurate detection of abnormal feeding behaviors of lactating sows in large-scale pig farm environments.
Funder
National Key Research and Development Program of China National Natural Science Foundation of China
Reference28 articles.
1. Recognition of Feeding Behaviour of Pigs and Determination of Feeding Time of Each Pig by a Video-Based Deep Learning Method;Chen;Comput. Electron. Agric.,2020 2. Toward a Better Understanding of Pig Behavior and Pig Welfare;Kittawornrat;Anim. Health Res. Rev.,2011 3. Li, D., Chen, Y., Zhang, K., and Li, Z. (2019). Mounting Behaviour Recognition for Pigs Based on Deep Learning. Sensors, 19. 4. A Review of Video-Based Pig Behavior Recognition;Yang;Appl. Anim. Behav. Sci.,2020 5. Gomes, B.C., Andretta, I., Valk, M., Pomar, C., Hauschild, L., Fraga, A.Z., Kipper, M., Trevizan, L., and Remus, A. (2021). Prandial Correlations and Structure of the Ingestive Behavior of Pigs in Precision Feeding Programs. Animals, 11.
|
|