Detection of Feeding Behavior in Lactating Sows Based on Improved You Only Look Once v5s and Image Segmentation

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

Publisher

MDPI AG

同舟云学术

1.学者识别学者识别

2.学术分析学术分析

3.人才评估人才评估

"同舟云学术"是以全球学者为主线,采集、加工和组织学术论文而形成的新型学术文献查询和分析系统,可以对全球学者进行文献检索和人才价值评估。用户可以通过关注某些学科领域的顶尖人物而持续追踪该领域的学科进展和研究前沿。经过近期的数据扩容,当前同舟云学术共收录了国内外主流学术期刊6万余种,收集的期刊论文及会议论文总量共计约1.5亿篇,并以每天添加12000余篇中外论文的速度递增。我们也可以为用户提供个性化、定制化的学者数据。欢迎来电咨询!咨询电话:010-8811{复制后删除}0370

www.globalauthorid.com

TOP

Copyright © 2019-2024 北京同舟云网络信息技术有限公司
京公网安备11010802033243号  京ICP备18003416号-3