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

Goat-Face Recognition in Natural Environments Using the Improved YOLOv4 Algorithm

Author

Listed:
  • Fu Zhang

    (College of Agricultural Equipment Engineering, Henan University of Science and Technology, Luoyang 471003, China
    Collaborative Innovation Center of Machinery Equipment Advanced Manufacturing of Henan Province, Luoyang 471003, China)

  • Shunqing Wang

    (College of Agricultural Equipment Engineering, Henan University of Science and Technology, Luoyang 471003, China)

  • Xiahua Cui

    (College of Agricultural Equipment Engineering, Henan University of Science and Technology, Luoyang 471003, China)

  • Xinyue Wang

    (College of Agricultural Equipment Engineering, Henan University of Science and Technology, Luoyang 471003, China)

  • Weihua Cao

    (College of Agricultural Equipment Engineering, Henan University of Science and Technology, Luoyang 471003, China)

  • Huang Yu

    (College of Agricultural Equipment Engineering, Henan University of Science and Technology, Luoyang 471003, China)

  • Sanling Fu

    (College of Physical Engineering, Henan University of Science and Technology, Luoyang 471023, China)

  • Xiaoqing Pan

    (Institute of Animal Science, Jiangsu Academy of Agricultural Sciences, Nanjing 210014, China)

Abstract

In view of the low accuracy and slow speed of goat-face recognition in real breeding environments, dairy goats were taken as the research objects, and video frames were used as the data sources. An improved YOLOv4 goat-face-recognition model was proposed to improve the detection accuracy; the original backbone network was replaced by a lightweight GhostNet feature extraction network. The pyramid network of the model was improved to a channel management mechanism with a spatial pyramid structure. The path aggregation network of the model was improved into a fusion network with residual structure in the form of double parameters, in order to improve the model’s ability to detect fine-grained features and distinguish differences between similar faces. The transfer learning pre-training weight loading method was adopted, and the detection speed, the model weight, and the mean average precision (mAP) were used as the main evaluation indicators of the network model. A total of 2522 images from 30 dairy goats were augmented, and the training set, validation set, and test set were divided according to 7:1:2. The test results of the improved YOLOv4 model showed that the mAP reached 96.7%, and the average frame rate reached 28 frames/s in the frontal face detection. Compared with the traditional YOLOv4, the mAP improved by 2.1%, and the average frame rate improved by 2 frames/s. The new model can effectively extract the facial features of dairy goats, which improves the detection accuracy and speed. In terms of profile face detection, the average detection accuracy of the improved YOLOv4 goat-face-recognition network can reach 78%. Compared with the traditional YOLOv4 model, the mAP increased by 7%, which effectively demonstrated the improved profile recognition accuracy of the model. In addition, the improved model is conducive to improving the recognition accuracy of the facial poses of goats from different angles, and provides a technical basis and reference for establishing a goat-face-recognition model in complex situations.

Suggested Citation

  • Fu Zhang & Shunqing Wang & Xiahua Cui & Xinyue Wang & Weihua Cao & Huang Yu & Sanling Fu & Xiaoqing Pan, 2022. "Goat-Face Recognition in Natural Environments Using the Improved YOLOv4 Algorithm," Agriculture, MDPI, vol. 12(10), pages 1-14, October.
  • Handle: RePEc:gam:jagris:v:12:y:2022:i:10:p:1668-:d:939300
    as

    Download full text from publisher

    File URL: https://www.mdpi.com/2077-0472/12/10/1668/pdf
    Download Restriction: no

    File URL: https://www.mdpi.com/2077-0472/12/10/1668/
    Download Restriction: no
    ---><---

    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:12:y:2022:i:10:p:1668-:d:939300. 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.

    We have no bibliographic references for this item. You can help adding them by using 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.