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

When Mobilenetv2 Meets Transformer: A Balanced Sheep Face Recognition Model

Author

Listed:
  • Xiaopeng Li

    (College of Information Engineering, Northwest A&F University, Xianyang 712100, China)

  • Jinzhi Du

    (College of Information Engineering, Northwest A&F University, Xianyang 712100, China)

  • Jialin Yang

    (College of Information Engineering, Northwest A&F University, Xianyang 712100, China)

  • Shuqin Li

    (College of Information Engineering, Northwest A&F University, Xianyang 712100, China)

Abstract

Sheep face recognition models deployed on edge devices require a good trade-off between model size and accuracy, but the existing recognition models cannot do so. To solve the above problems, this paper combines Mobilenetv2 with Vision Transformer to propose a balanced sheep face recognition model called MobileViTFace. MobileViTFace enhances the model’s ability to extract fine-grained features and suppress the interference of background information through Transformer to distinguish different sheep faces more effectively. Thus, it can distinguish different sheep faces more effectively. The recognition accuracy of 96.94% is obtained on a self-built dataset containing 5490 sheep face photos of 105 sheep, which is a 9.79% improvement compared with MobilenetV2, with only a small increase in Params (the number of parameters) and FLOPs (floating-point operations). Compared to models such as Swin-small, which currently performs SOTA, Params and FLOPs are reduced by nearly ten times, whereas recognition accuracy is only 0.64% lower. Deploying MobileViTFace on the Jetson Nano-based edge computing platform, real-time and accurate recognition results are obtained, which has implications for practical production.

Suggested Citation

  • Xiaopeng Li & Jinzhi Du & Jialin Yang & Shuqin Li, 2022. "When Mobilenetv2 Meets Transformer: A Balanced Sheep Face Recognition Model," Agriculture, MDPI, vol. 12(8), pages 1-14, July.
  • Handle: RePEc:gam:jagris:v:12:y:2022:i:8:p:1126-:d:875991
    as

    Download full text from publisher

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

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

    References listed on IDEAS

    as
    1. Xiaopeng Li & Shuqin Li, 2022. "Transformer Help CNN See Better: A Lightweight Hybrid Apple Disease Identification Model Based on Transformers," Agriculture, MDPI, vol. 12(6), pages 1-16, June.
    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. Xiaopeng Li & Yichi Zhang & Yuhan Peng & Shuqin Li, 2023. "VLDNet: An Ultra-Lightweight Crop Disease Identification Network," Agriculture, MDPI, vol. 13(8), pages 1-17, July.
    2. Jie Ding & Cheng Zhang & Xi Cheng & Yi Yue & Guohua Fan & Yunzhi Wu & Youhua Zhang, 2023. "Method for Classifying Apple Leaf Diseases Based on Dual Attention and Multi-Scale Feature Extraction," Agriculture, MDPI, vol. 13(5), pages 1-19, April.
    3. Haiping Si & Mingchun Li & Weixia Li & Guipei Zhang & Ming Wang & Feitao Li & Yanling Li, 2024. "A Dual-Branch Model Integrating CNN and Swin Transformer for Efficient Apple Leaf Disease Classification," Agriculture, MDPI, vol. 14(1), pages 1-20, January.
    4. Bulent Tugrul & Elhoucine Elfatimi & Recep Eryigit, 2022. "Convolutional Neural Networks in Detection of Plant Leaf Diseases: A Review," Agriculture, MDPI, vol. 12(8), pages 1-21, August.

    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:8:p:1126-:d:875991. 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.