Cattle Body Detection Based on YOLOv5-EMA for Precision Livestock Farming

被引:22
作者
Hao, Wangli [1 ]
Ren, Chao [1 ]
Han, Meng [1 ]
Zhang, Li [1 ]
Li, Fuzhong [1 ]
Liu, Zhenyu [1 ]
机构
[1] Shanxi Agr Univ, Sch Software, Jinzhong 030801, Peoples R China
来源
ANIMALS | 2023年 / 13卷 / 22期
关键词
cattle body detection; efficient multi-scale attention; key body parts; YOLOv5-EMA; MASK R-CNN; IDENTIFICATION; LAMENESS;
D O I
10.3390/ani13223535
中图分类号
S8 [畜牧、 动物医学、狩猎、蚕、蜂];
学科分类号
0905 ;
摘要
Simple Summary Through cattle body detection technology, breeders can promptly identify health abnormalities in cattle. Key body parts of the cattle reflect diseases to varying degrees. For example, lameness can be determined by observing the legs, and certain viral infections can be identified through an observation of the head. The early detection of these issues allows for timely intervention measures and improves treatment efficiency. It is evident that the precise detection of cattle body parts is essential. In this study, we use a computer-vision-based deep learning technique to detect individual cattle and key body parts, including the legs and head. Our proposed method enhances the accuracy of cattle body detection.Abstract Accurate cattle body detection is crucial for precision livestock farming. However, traditional cattle body detection methods rely on manual observation, which is both time-consuming and labor-intensive. Moreover, computer-vision-based methods suffer prolonged training times and training difficulties. To address these issues, this paper proposes a novel YOLOv5-EMA model for accurate cattle body detection. By incorporating the Efficient Multi-Scale Attention (EMA) module into the backbone of YOLO series detection models, the performance of detecting smaller targets, such as heads and legs, has been significantly improved. The Efficient Multi-Scale Attention (EMA) module utilizes the large receptive fields of parallel sub-networks to gather multi-scale spatial information and establishes mutual dependencies between different spatial positions, enabling cross-spatial learning. This enhancement empowers the model to gather and integrate more comprehensive feature information, thereby improving the effectiveness of cattle body detection. The experimental results confirm the good performance of the YOLOv5-EMA model, showcasing promising results across all quantitative evaluation metrics, qualitative detection findings, and visualized Grad-CAM heatmaps. To be specific, the YOLOv5-EMA model achieves an average precision (mAP@0.5) of 95.1% in cattle body detection, 94.8% in individual cattle detection, 94.8% in leg detection, and 95.5% in head detection. Moreover, this model facilitates the efficient and precise detection of individual cattle and essential body parts in complex scenarios, especially when dealing with small targets and occlusions, significantly advancing the field of precision livestock farming.
引用
收藏
页数:28
相关论文
共 43 条
[1]   Visual identification of individual Holstein-Friesian cattle via deep metric learning [J].
Andrew, William ;
Gao, Jing ;
Mullan, Siobhan ;
Campbell, Neill ;
Dowsey, Andrew W. ;
Burghardt, Tilo .
COMPUTERS AND ELECTRONICS IN AGRICULTURE, 2021, 185
[3]   Invited review: Current perspectives on eating and rumination activity in dairy cows [J].
Beauchemin, K. A. .
JOURNAL OF DAIRY SCIENCE, 2018, 101 (06) :4762-4784
[4]   Lame cows on Australian dairy farms: A comparison of farmer-identified lameness and formal lameness scoring, and the position of lame cows within the milking order [J].
Beggs, D. S. ;
Jongman, E. C. ;
Hemsworth, P. E. ;
Fisher, A. D. .
JOURNAL OF DAIRY SCIENCE, 2019, 102 (02) :1522-1529
[5]   Development of an automatic cow body condition scoring using body shape signature and Fourier descriptors [J].
Bercovich, A. ;
Edan, Y. ;
Alchanatis, V. ;
Moallem, U. ;
Parmet, Y. ;
Honig, H. ;
Maltz, E. ;
Antler, A. ;
Halachmi, I. .
JOURNAL OF DAIRY SCIENCE, 2013, 96 (12) :8047-8059
[6]  
Bochkovskiy A, 2020, Arxiv, DOI arXiv:2004.10934
[7]   A General Survey on Attention Mechanisms in Deep Learning [J].
Brauwers, Gianni ;
Frasincar, Flavius .
IEEE TRANSACTIONS ON KNOWLEDGE AND DATA ENGINEERING, 2023, 35 (04) :3279-3298
[8]   MOOnitor: An IoT based multi-sensory intelligent device for cattle activity monitoring [J].
Dutta, Debeshi ;
Natta, Dwipjyoti ;
Mandal, Soumen ;
Ghosh, Nilotpal .
SENSORS AND ACTUATORS A-PHYSICAL, 2022, 333
[9]  
Gao T., 2021, Int. J. Secur. Priv. Pervasive Comput, V13, P45, DOI [10.4018/IJSPPC.2021010101, DOI 10.4018/IJSPPC.2021010101]
[10]   Study and comparison of color models for automatic image analysis in irrigation management applications [J].
Garcia-Mateos, G. ;
Hernandez-Hernandez, J. L. ;
Escarabajal-Henarejos, D. ;
Jaen-Terrones, S. ;
Molina-Martinez, J. M. .
AGRICULTURAL WATER MANAGEMENT, 2015, 151 :158-166