Agriculture plays a pivotal role in global economic growth, yet it faces significant challenges from pests and crop diseases. Early detection is crucial for preventing large-scale crop losses and ensuring food security. This study introduces an adaptive hybrid transformer model, Swin-HViT, which integrates the strengths of a vision transformer (ViT) and a Swin transformer to accurately predict crop diseases. While ViT captures global image features, the Swin Transformer excels at extracting fine-grained local details. To effectively integrate global and local feature, an adaptive fusion mechanism based on a trainable MLP is introduced, enabling dynamic feature weighting within the hybrid architecture. Evaluated on two benchmark datasets, Corn and PlantDoc, our model achieved accuracies of 99.03% and 83.07%, respectively, surpassing recent works. Here, we demonstrate the effectiveness of combining complementary transformer architectures to improve disease identification in diverse agricultural settings. The code, data and the hybrid model are available at https://github.com/hema2107/Swin-HViT.
Gunasekaran et al. (Wed,) studied this question.
Synapse has enriched 5 closely related papers on similar clinical questions. Consider them for comparative context: