Practical cucumber leaf disease recognition using improved Swin Transformer and small sample size

Fengyi Wang, Yuan Rao, Qing Luo, Xiu Jin, Zhaohui Jiang, Wu Zhang, Shaowen Li

Research output: Contribution to journalArticlepeer-review

51 Scopus citations

Abstract

The deep learning methods based on convolutional neural network (CNN) have been widely explored in dataset augmentation and recognition of plant leaf diseases. The recently developed transformer-based models such as Swin Transformer (SwinT) show competitive and even better performance on various visual benchmarks compared with CNN due to their inherent attention mechanism and ability to learn long-range dependency among pixels. In this paper, a backbone network based on improved SwinT was proposed and applied to the data augmentation and recognition of practical cucumber leaf diseases. Firstly, the patch partition of SwinT was improved by step-wise small patch embeddings for enhancing the ability of feature extraction without increasing the number of parameters. Secondly, the leaf extraction module composed of the proposed backbone network and Grad-CAM was integrated into the Generation Adversarial Network (GAN) to construct STA-GAN (SwinT-based and Attention-guided GAN), which generated diseased spots only in the leaf region of healthy images with complex background for augmenting the disease dataset. Finally, by means of transfer learning, the augmented datasets were used to train the recognition model of cucumber leaf diseases with the proposed backbone network. From the experimental results, it has been demonstrated that STA-GAN exhibited stronger ability to generate high-quality images than LeafGAN, even only approximated when LeafGAN consumed much more training images. Additionally, with STA-GAN, the disease recognition accuracies reached 98.97%, 96.81%, 94.85% and 90.01% when improved SwinT, original SwinT, EfficientNet-B5 and ResNet-101 were employed as the backbone of recognition model respectively, increasing by 2.17%, 3.62%, 2.13% and 11.23% compared with LeafGAN, revealing that the approaches based on improved SwinT could indeed help in boosting the performance of both data augmentation and recognition of practical cucumber leaf diseases. The proposed approach has the potential of dealing with the common challenge of insufficient data size and complex background in other similar plant science tasks.

Original languageEnglish
Article number107163
JournalComputers and Electronics in Agriculture
Volume199
DOIs
StatePublished - 1 Aug 2022
Externally publishedYes

Keywords

  • Cucumber leaf disease
  • Data augmentation
  • Practical recognition
  • Small sample size
  • Swin Transformer

ASJC Scopus subject areas

  • Forestry
  • Agronomy and Crop Science
  • Computer Science Applications
  • Horticulture

Fingerprint

Dive into the research topics of 'Practical cucumber leaf disease recognition using improved Swin Transformer and small sample size'. Together they form a unique fingerprint.

Cite this