IDEAS home Printed from https://ideas.repec.org/a/gam/jagris/v13y2023i6p1110-d1153820.html
   My bibliography  Save this article

Detection of Cattle Key Parts Based on the Improved Yolov5 Algorithm

Author

Listed:
  • Dangguo Shao

    (Faculty of Information Engineering and Automation, Yunnan Province Key Laboratory of Computer, Kunming University of Science and Technology, Kunming 650500, China)

  • Zihan He

    (Faculty of Information Engineering and Automation, Yunnan Province Key Laboratory of Computer, Kunming University of Science and Technology, Kunming 650500, China)

  • Hongbo Fan

    (Faculty of Modern Agricultural Engineering, Kunming University of Science and Technology, Kunming 650300, China)

  • Kun Sun

    (Faculty of Information Engineering and Automation, Yunnan Province Key Laboratory of Computer, Kunming University of Science and Technology, Kunming 650500, China)

Abstract

Accurate detection of key body parts of cattle is of great significance to Precision Livestock Farming (PLF), using artificial intelligence for video analysis. As the background image in cattle livestock farms is complex and the target features of the cattle are not obvious, traditional object-detection algorithms cannot detect the key parts of the image with high precision. This paper proposes the Filter_Attention attention mechanism to detect the key parts of cattle. Since the image is unstable during training and initialization, particle noise is generated in the feature graph after convolution calculation. Therefore, this paper proposes an attentional mechanism based on bilateral filtering to reduce this interference. We also designed a Pooling_Module, based on the soft pooling algorithm, which facilitates information loss relative to the initial activation graph compared to maximum pooling. Our data set contained 1723 images of cattle, in which labels of the body, head, legs, and tail were manually entered. This dataset was divided into a training set, verification set, and test set at a ratio of 7:2:1 for training the model proposed in this paper. The detection effect of our proposed module is proven by the ablation experiment from mAP, the AP value, and the F1 value. This paper also compares other mainstream object detection algorithms. The experimental results show that our model obtained 90.74% mAP, and the F1 value and AP value of the four parts were improved.

Suggested Citation

  • Dangguo Shao & Zihan He & Hongbo Fan & Kun Sun, 2023. "Detection of Cattle Key Parts Based on the Improved Yolov5 Algorithm," Agriculture, MDPI, vol. 13(6), pages 1-16, May.
  • Handle: RePEc:gam:jagris:v:13:y:2023:i:6:p:1110-:d:1153820
    as

    Download full text from publisher

    File URL: https://www.mdpi.com/2077-0472/13/6/1110/pdf
    Download Restriction: no

    File URL: https://www.mdpi.com/2077-0472/13/6/1110/
    Download Restriction: no
    ---><---

    References listed on IDEAS

    as
    1. Christos Tzanidakis & Ouranios Tzamaloukas & Panagiotis Simitzis & Panagiotis Panagakis, 2023. "Precision Livestock Farming Applications (PLF) for Grazing Animals," Agriculture, MDPI, vol. 13(2), pages 1-23, January.
    2. Rong Wang & Zongzhi Gao & Qifeng Li & Chunjiang Zhao & Ronghua Gao & Hongming Zhang & Shuqin Li & Lu Feng, 2022. "Detection Method of Cow Estrus Behavior in Natural Scenes Based on Improved YOLOv5," Agriculture, MDPI, vol. 12(9), pages 1-19, August.
    3. Beibei Xu & Wensheng Wang & Leifeng Guo & Guipeng Chen & Yaowu Wang & Wenju Zhang & Yongfeng Li, 2021. "Evaluation of Deep Learning for Automatic Multi-View Face Detection in Cattle," Agriculture, MDPI, vol. 11(11), pages 1-15, October.
    Full references (including those not matched with items on IDEAS)

    Most related items

    These are the items that most often cite the same works as this one and are cited by the same works as this one.
    1. Sudhanshu S. Panda & Thomas H. Terrill & Aftab Siddique & Ajit K. Mahapatra & Eric R. Morgan & Andres A. Pech-Cervantes & Jan A. Van Wyk, 2024. "Development of a Decision Support System for Animal Health Management Using Geo-Information Technology: A Novel Approach to Precision Livestock Management," Agriculture, MDPI, vol. 14(5), pages 1-20, April.
    2. Mengmeng Wang & Meng Lv & Haoting Liu & Qing Li, 2023. "Mid-Infrared Sheep Segmentation in Highland Pastures Using Multi-Level Region Fusion OTSU Algorithm," Agriculture, MDPI, vol. 13(7), pages 1-22, June.
    3. Gang Liu & Hao Guo & Alexey Ruchay & Andrea Pezzuolo, 2023. "Recent Advancements in Precision Livestock Farming," Agriculture, MDPI, vol. 13(9), pages 1-3, August.
    4. Na Liu & Jingwei Qi & Xiaoping An & Yuan Wang, 2023. "A Review on Information Technologies Applicable to Precision Dairy Farming: Focus on Behavior, Health Monitoring, and the Precise Feeding of Dairy Cows," Agriculture, MDPI, vol. 13(10), pages 1-21, September.
    5. David D. J. Antia, 2023. "Desalination of Saline Irrigation Water Using Hydrophobic, Metal–Polymer Hydrogels," Sustainability, MDPI, vol. 15(9), pages 1-32, April.
    6. Verónica Cruz Moriana & Juan Manuel Mancilla-Leytón & Yolanda Mena & Francisco de Asís Ruiz Morales, 2024. "Identification of the Multifunctionality of Andalusian Autochthonous Pastoral Livestock Breeds at the Farm Level," Agriculture, MDPI, vol. 14(4), pages 1-17, April.
    7. Oratilwe Penwell Mokoena & Thembelihle Sam Ntuli & Tshepo Ramarumo & Solly Matshonisa Seeletse, 2023. "Sustainability of Rural Small-Scale Farmers Using a Thematic Content-Fed Analytic Hierarchy Process," Sustainability, MDPI, vol. 15(15), pages 1-22, August.
    8. Dongli Wu & Shan He & Lingui Qin & Jingyue Feng & Yu Gao, 2024. "Role of Policy-Supported Hog Insurance in Promoting Green Total Factor Productivity: The Case of China during 2005–2021," Agriculture, MDPI, vol. 14(7), pages 1-24, June.

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:gam:jagris:v:13:y:2023:i:6:p:1110-:d:1153820. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    If CitEc recognized a bibliographic reference but did not link an item in RePEc to it, you can help with this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: MDPI Indexing Manager (email available below). General contact details of provider: https://www.mdpi.com .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.