The code, data and the hybrid model are available at https://github.com/hema2107/Swin-HViT.
Open resource ↗hema2107/Swin-HViT · pdf-page:2 lines:1-60Unverified paper record
Swin-HViT for Accurate Early-Stage Crop Disease Diagnosis Using a Hybrid Transformer Model
16 Feb 2026 · 10.21203/rs.3.rs-8631659/v1
Abstract
Abstract 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 a 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. Evaluated on two benchmark datasets, Corn and PlantDoc, our model achieved accuracies of 98.81% and 81.81%, 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.
Plant phenotyping relevance
植物画像から病害状態を推定するハイブリッド画像解析モデルを開発し、2つのベンチマークデータセットで評価しており、病害フェノタイピング手法が中心である。
abstractThis study introduces a hybrid transformer model, Swin-HViT, which integrates the strengths of a vision transformer (ViT) and a Swin transformer to accurately predict crop diseases.
abstractEvaluated on two benchmark datasets, Corn and PlantDoc, our model achieved accuracies of 98.81% and 81.81%, respectively, surpassing recent works.
Code and data availability
The paper reports a hybrid ViT-Swin crop disease classification model evaluated on two public Kaggle plant image datasets (Corn/maize leaf disease and PlantDoc). The authors explicitly state that the code, data, and trained hybrid model are publicly available in their GitHub repository, and both image datasets are used
The first dataset used for hybrid model evaluation is available on Kaggle at https://www.kaggle.com/datasets/smaranjitghose/corn-or-maize-leaf-disease-dataset (accessed on August 2025).
Open resource ↗pdf-page:7 lines:1-31The second dataset is also from Kaggle and is available at the link https://www.kaggle.com/datasets/abdulhasibuddin/plant-doc-dataset (accessed on August 2025) [25].
Open resource ↗pdf-page:7 lines:1-31This is an automatically classified, unverified record. Curator approval is required before any resource enters the Catalog.