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

Transformer Help CNN See Better: A Lightweight Hybrid Apple Disease Identification Model Based on Transformers

Author

Listed:
  • Xiaopeng Li

    (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

The complex backgrounds of crop disease images and the small contrast between the disease area and the background can easily cause confusion, which seriously affects the robustness and accuracy of apple disease- identification models. To solve the above problems, this paper proposes a Vision Transformer-based lightweight apple leaf disease- identification model, ConvViT, to extract effective features of crop disease spots to identify crop diseases. Our ConvViT includes convolutional structures and Transformer structures; the convolutional structure is used to extract the global features of the image, and the Transformer structure is used to obtain the local features of the disease region to help the CNN see better. The patch embedding method is improved to retain more edge information of the image and promote the information exchange between patches in the Transformer. The parameters and FLOPs (Floating Point Operations) of the model are significantly reduced by using depthwise separable convolution and linear-complexity multi-head attention operations. Experimental results on a complex background of a self-built apple leaf disease dataset show that ConvViT achieves comparable identification results (96.85%) with the current performance of the state-of-the-art Swin-Tiny. The parameters and FLOPs are only 32.7% and 21.7% of Swin-Tiny, and significantly ahead of MobilenetV3, Efficientnet-b0, and other models, which indicates that the proposed model is indeed an effective disease-identification model with practical application value.

Suggested Citation

  • 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.
  • Handle: RePEc:gam:jagris:v:12:y:2022:i:6:p:884-:d:842460
    as

    Download full text from publisher

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

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

    Citations

    Citations are extracted by the CitEc Project, subscribe to its RSS feed for this item.
    as


    Cited by:

    1. 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.
    2. 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.
    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. 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.
    5. 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.

    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:6:p:884-:d:842460. 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.