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

Lightweight Small-Tailed Han Sheep Facial Recognition Based on Improved SSD Algorithm

Author

Listed:
  • Min Hao

    (Department of Mechanical and Electrical Engineering, Inner Mongolia Agricultural University, Hohhot 010010, China)

  • Quan Sun

    (Department of Mechanical and Electrical Engineering, Inner Mongolia Agricultural University, Hohhot 010010, China)

  • Chuanzhong Xuan

    (Department of Mechanical and Electrical Engineering, Inner Mongolia Agricultural University, Hohhot 010010, China)

  • Xiwen Zhang

    (Department of Mechanical and Electrical Engineering, Inner Mongolia Agricultural University, Hohhot 010010, China)

  • Minghui Zhao

    (Department of Mechanical and Electrical Engineering, Inner Mongolia Agricultural University, Hohhot 010010, China)

  • Shuo Song

    (Department of Mechanical and Electrical Engineering, Inner Mongolia Agricultural University, Hohhot 010010, China)

Abstract

We propose a lightweight detection algorithm based on the Single Shot MultiBox Detector (SSD) algorithm in order to facilitate sheep management and to realize sheep facial identification, and we take the self-constructed dataset as the research object. First, the SSD replaces the VGG16 backbone network with MobileNetv3, a lightweight neural network, to create a hybrid model that is much smaller. Second, the ECA attention mechanism is incorporated into the backend of the 7 2 × 160 bottleneck layer. Finally, the SmoothL1 loss function is substituted with the BalancedL1 loss function. The optimized model’s size decreases significantly from the original SSD’s 132 MB to just 22.4 MB. It achieves a mean average precision of 83.47% and maintains an average frame rate of 68.53 frames per second. Compared to the basic SSD model, the mean average precision has increased by 3.25 percentage points, the model size has decreased by 109.6 MB, and the detection speed has improved by 9.55 frames per second. In comparative experiments using the same dataset with different object detection models, the proposed model outperforms the SSD, Faster R-CNN, Retinanet, and CenterNet in terms of mean average precision, with improvements of 3.25 percentage points, 4.71 percentage points, 2.38 percentage points, and 8.13 percentage points, respectively. The detection speed has shown significant improvements, increasing by 9.55, 58.55, 53.1, and 12.37 frames per second, respectively. The improved model presented in this paper significantly reduces the model’s size and computational requirements while maintaining an excellent performance. This provides a valuable reference for the digitalization of animal husbandry and livestock farming.

Suggested Citation

  • Min Hao & Quan Sun & Chuanzhong Xuan & Xiwen Zhang & Minghui Zhao & Shuo Song, 2024. "Lightweight Small-Tailed Han Sheep Facial Recognition Based on Improved SSD Algorithm," Agriculture, MDPI, vol. 14(3), pages 1-16, March.
  • Handle: RePEc:gam:jagris:v:14:y:2024:i:3:p:468-:d:1356311
    as

    Download full text from publisher

    File URL: https://www.mdpi.com/2077-0472/14/3/468/pdf
    Download Restriction: no

    File URL: https://www.mdpi.com/2077-0472/14/3/468/
    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:14:y:2024:i:3:p:468-:d:1356311. 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.