1 Department of Management Information System, International American University, Los Angeles, CA 90010, USA.
2 Department of Computer Science, The University of Alabama in Huntsville, Huntsville, AL 35899, USA.
3 Department of Computer Science, Westcliff University, Irvine, CA 92614, USA.
4 Department of Engineering/Industrial Management, Westcliff University, Irvine, CA 92614, USA.
5 Department of Business Administration, International American University, Los Angeles, CA 90010, USA.
International Journal of Science and Research Archive, 2025, 15(01), 1823-1833
Article DOI: 10.30574/ijsra.2025.15.1.1163
Received on 13 March 2025; revised on 22 April 2025; accepted on 24 April 2025
Early identification of leaf diseases in chili and onion crops is crucial for maintaining agricultural productivity and reducing economic losses. This study proposes a transformer-based deep learning framework for the multi-class classification of common leaf diseases affecting chili and onion plants. It addresses challenges related to intra-class similarity, complex backgrounds, and variations in real-world imaging. We collected a curated dataset consisting of 13,989 high-resolution images—10,987 of chili leaves and 4,502 of onion leaves—from actual agricultural environments in Karnataka, India. This dataset covers nine disease classes, including Cercospora, purple blotch, Iris yellow spot virus, and powdery mildew. To enhance model generalization, we applied extensive preprocessing techniques, including resizing, normalization, augmentation, and noise injection. We evaluated four state-of-the-art transformer architectures: MaxViT, Swin Transformer, Hornet, and EfficientFormer. Among these, MaxViT achieved the highest performance, with classification accuracies of 95.75% on the onion dataset and 90.86% on the chili dataset, along with high F1 scores, Matthews Correlation Coefficient (MCC), and Precision-Recall Area Under Curve (PR-AUC) values. To enable practical use in the field, we developed a real-time web application using Django. This application allows users to upload leaf images and receive instant predictions, supplemented by Grad-CAM-based visual explanations. This integration of explainable AI (XAI) enhances transparency and builds trust among end-users, such as farmers and agronomists. The results highlight the effectiveness of transformer-based models for agricultural disease diagnosis and provide a scalable, interpretable, and deployable solution for precision farming.
Plant disease; Vision transformer; Explainable AI; Chili leaves; Onion leaves; Agricultural monitoring
Preview Article PDF
Hamdadur Rahman, Hasan Md Imran, Amira Hossain, Md Ismail Hossain Siddiqui and Anamul Haque Sakib. Explainable vision transformers for real‑time chili and onion leaf disease identification and diagnosis. International Journal of Science and Research Archive, 2025, 15(01), 1823-1833. Article DOI: https://doi.org/10.30574/ijsra.2025.15.1.1163.






