Home
International Journal of Science and Research Archive
International, Peer reviewed, Open access Journal ISSN Approved Journal No. 2582-8185

Main navigation

  • Home
    • Journal Information
    • Abstracting and Indexing
    • Editorial Board Members
    • Reviewer Panel
    • Journal Policies
    • IJSRA CrossMark Policy
    • Publication Ethics
    • Issue in Progress
    • Current Issue
    • Past Issues
    • Instructions for Authors
    • Article processing fee
    • Track Manuscript Status
    • Get Publication Certificate
    • Become a Reviewer panel member
    • Join as Editorial Board Member
  • Contact us
  • Downloads

ISSN Approved Journal || eISSN: 2582-8185 || CODEN: IJSRO2 || Impact Factor 8.2 || Google Scholar and CrossRef Indexed

Peer Reviewed and Referred Journal || Free Certificate of Publication

Research and review articles are invited for publication in March 2026 (Volume 18, Issue 3) Submit manuscript

Explainable vision transformers for real‑time chili and onion leaf disease identification and diagnosis

Breadcrumb

  • Home
  • Explainable vision transformers for real‑time chili and onion leaf disease identification and diagnosis

Hamdadur Rahman 1, Hasan Md Imran 2, *, Amira Hossain 3, Md Ismail Hossain Siddiqui 4 and Anamul Haque Sakib 5

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.

Research Article

International Journal of Science and Research Archive, 2025, 15(01), 1823-1833

Article DOI: 10.30574/ijsra.2025.15.1.1163

DOI url: https://doi.org/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

https://journalijsra.com/sites/default/files/fulltext_pdf/IJSRA-2025-1163.pdf

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.

Copyright © Author(s). All rights reserved. This article is published under the terms of the Creative Commons Attribution 4.0 International License (CC BY 4.0), which permits use, sharing, adaptation, distribution, and reproduction in any medium or format, as long as appropriate credit is given to the original author(s) and source, a link to the license is provided, and any changes made are indicated.


All statements, opinions, and data contained in this publication are solely those of the individual author(s) and contributor(s). The journal, editors, reviewers, and publisher disclaim any responsibility or liability for the content, including accuracy, completeness, or any consequences arising from its use.

Get Certificates

Get Publication Certificate

Download LoA

Check Corssref DOI details

Issue details

Issue Cover Page

Editorial Board

Table of content

          

   

Copyright © 2026 International Journal of Science and Research Archive - All rights reserved

Developed & Designed by VS Infosolution