A dual-branch model combining convolution and vision transformer for crop disease classification

Q Qingduan Meng (Beijing National Laboratory for Molecular Sciences) J Jiadong Guo H Hui Zhang (The Fourth Hospital of Hebei Medical University Shijiazhuang China) Y Yaoqi Zhou X Xiaoling Zhang

Abstract

Computer vision holds tremendous potential in crop disease classification, but the complex texture and shape characteristics of crop diseases make disease classification challenging. To address these issues, this paper proposes a dual-branch model for crop disease classification, which combines Convolutional Neural Network (CNN) with Vision Transformer (ViT). Here, the convolutional branch is utilized to capture the local features while the Transformer branch is utilized to handle global features. A learnable parameter is used to achieve a linear weighted fusion of these two types of features. An Aggregated Local Perceptive Feed Forward Layer (ALP-FFN) is introduced to enhance the model’s representation capability by introducing locality into the Transformer encoder. Furthermore, this paper constructs a lightweight Transformer block using ALP-FFN and a linear self-attention mechanism to reduce the model’s parameters and computational cost. The proposed model achieves an exceptional classification accuracy of 99.71% on the PlantVillage dataset with only 4.9M parameters and 0.62G FLOPs, surpassing the state-of-the-art TNT-S model (accuracy: 99.11%, parameters: 23.31M, FLOPs: 4.85G) by 0.6%. On the Potato Leaf dataset, the model attains 98.78% classification accuracy, outperforming the advanced ResNet-18 model (accuracy: 98.05%, parameters: 11.18M, FLOPs: 1.82G) by 0.73%. The model proposed in this paper effectively combines the advantages of CNN and ViT while maintaining a lightweight design, providing an effective method for the precise identification of crop diseases.

Article Details

Journal PLoS ONE
Volume / Issue Vol. 20, Issue 4
Published April 24, 2025
Pages e0321753
ISSN 1932-6203
Publisher Public Library of Science

Journal Info

PLoS ONE

Public Library of Science

ISSN: 1932-6203 Open Access Health Sciences

Authors (5)

Q

Qingduan Meng

Beijing National Laboratory for Molecular Sciences

J

Jiadong Guo

H

Hui Zhang

The Fourth Hospital of Hebei Medical University Shijiazhuang China

Y

Yaoqi Zhou

X

Xiaoling Zhang