YOLOv5DA: an improved YOLOv5 model for pig posture detection in a herd environment

Author:

Wang Haiyan1,Liu Xiaolei1,Fu Yuhua1,Li Xuan1,Wang Xiaopin1,Shi Wenhui1

Affiliation:

1. Huazhong Agricultural University

Abstract

Abstract Animal behavior is an important indicator for diagnosing diseases, and accurate posture detection is the foundation for analyzing animal behavior and emotional states, which can promote animal welfare. However, current methods for pig posture detection often suffer from problems of missed or false detection due to the aggregation, occlusion, and adhesion of pigs in a herd environment. This study proposed a new object detection model (YOLOv5DA) for pig posture detection based on YOLOv5s, which incorporates Mosaic9 data augmentation, deformable convolution, and adaptively spatial feature fusion, to effectively deal with missed or false detection in the case of mutual occlusion and bonding of pig bodies. The images of pigs were first collected and annotated, and a dataset was established. Then, by using the established dataset, an object detection model YOLOv5DA based on YOLOv5s was trained. Finally, the test results showed that YOLOv5DA could accurately identify the three postures of standing, prone lying, and side lying with an average precision (AP) of 99.4%, 99.1%, and 99.1%, respectively, and the performance is superior to that of mainstream object detection algorithms including Faster-RCNN, YOLOv4, YOLOv5, FCOS, and CenterNet. Compared with YOLOv5s, YOLOv5DA could effectively handle occlusion while increasing the mean precision (mAP) by 1.7% in complex scenarios, which reached about 86.8%. Overall, YOLOv5DA provides a highly accurate, effective, low-cost, and stress-free strategy for pig posture detection in the herd environment, which can elevate the application of intelligent technique in the pig industry.

Publisher

Research Square Platform LLC

Reference36 articles.

1. Jin Min (2021) Identification and Classification Methods of Pig Behavier Based on Machine Learning [D]. Hohhot: Inner Mongolia Agricultural University.(in Chinese with English abstract)

2. (2005)Using Floor Cooling as an Approach to improve the Thermal Environment in the Sleeping Area in an Open Pig House[J];Shi Z;Biosystems Engineering

3. A Review of Posture Detection Methods for Pigs Using Deep Learning[J];Chen Z;Applied Sciences,2023

4. Automatic scoring of postures in grouped pigs using depth image and CNN-SVM[J];Jinyang X,2022

5. Thompson R, Matheson M S, Plötz T, et al (2016) Porcine lie detectors: Automatic quantification of posture state and transitions in sows using inertial sensors[J]. Computers and Electronics in Agriculture 127.

同舟云学术

1.学者识别学者识别

2.学术分析学术分析

3.人才评估人才评估

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

www.globalauthorid.com

TOP

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