Lightweight vision transformer and ResNet-9 models for real-time plant disease detection and pest classification with SHAP explainability

This study develops a ViT–CNN model for real-time plant disease detection, achieving 97.4% accuracy. Using SHAP for interpretability, it balances accuracy and speed, supporting sustainable farming, early diagnosis, reduced chemical use, and improved food security.
Like

Share this post

Choose a social network to share with, or copy the URL to share elsewhere

This is a representation of how your post may appear on social media. The actual post will vary between social networks

Context

The rapid advancement of digital technologies alongside increased global commitment to sustainability has intensified the need for efficient crop management solutions. Across agricultural systems, delayed detection and misclassification of plant diseases remain major contributors to reduced yields, threatening food security and undermining progress toward Sustainable Development Goals such as Zero Hunger, No Poverty, Good Health and Well-being, Climate Action, and Life on Land. Plant pests, diseases, and excessive chemical use further exacerbate these challenges. Early, automated visual detection offers a pathway to environmentally responsible and economically viable agricultural practices.

Objective

This study aims to develop and evaluate an automated, real-time plant disease classification framework using Vision Transformers (ViT) and hybrid ViT–CNN architectures, with the goal of supporting farmers and agronomists in early decision-making and sustainable crop protection.

Methods

The research employs deep learning techniques, including ViT and a combined ViT–CNN model built on ResNet-9, trained and evaluated using four publicly available datasets: the Turkey Plant Pests and Diseases (TPPD) dataset (15 classes), the Namibia Maize Image Dataset (3 classes), the Banana Image Dataset (3 classes), and the Tanzania Maize Dataset (3 classes). SHapley Additive exPlanations (SHAP) were applied to generate saliency maps for interpretability. Comparative analyses assessed performance, accuracy, and classification speed across attention-based and hybrid architectures.

Results and conclusions

The proposed model achieved strong performance with 97.4% accuracy, 96.4% precision, 97.09% recall, a 95.7% F1-score, and high agreement measured by Cohen’s Kappa, outperforming existing benchmark models. SHAP visualizations highlighted that the model leverages high-activation areas, edge features, color patterns, texture, shape, and contextual cues in its predictions. While attention-based models improved accuracy, they also caused reduced classification speed. However, integrating attention blocks with CNN layers effectively compensated for this slowdown, achieving both high accuracy and efficient inference. To evaluate the interpretability and deployment feasibility of the proposed model, we considered several parameters are considered to have an integration of faithfulness, localization quality, sparsity, latency, and energy of the models, including pointing accuracy, localization IoU, Centroid Localization Error (pixels), Attribution Sparsity (%), Insertion AUC, Deletion AUC, Time per Explanation (ms/image), Energy Consumption (J/image), Memory Footprint (MB).

Significance

This research provides a transparent and high-performing deep learning solution for plant disease classification, promoting sustainable agricultural development. By reducing reliance on excessive pesticide and herbicide use, enhancing early diagnosis, and improving decision-making, the model supports environmentally responsible farming practices and contributes to global efforts toward food security and ecological resilience. The significance of this evaluation is that it comprehensively assesses the model’s interpretability and real-world deployability by measuring explanation reliability (faithfulness), spatial precision (localization quality), efficiency (latency and memory), and sustainability (energy consumption), ensuring the model is not only accurate but also transparent, efficient, and practical for deployment. Details at: https://link.springer.com/article/10.1186/s12870-026-08667-8

Please sign in or register for FREE

If you are a registered user on Research Communities by Springer Nature, please sign in

Follow the Topic

Agriculture
Life Sciences > Biological Sciences > Agriculture
Computational Intelligence
Technology and Engineering > Mathematical and Computational Engineering Applications > Computational Intelligence
Earth Sciences
Physical Sciences > Earth and Environmental Sciences > Earth Sciences
Biomedical Engineering and Bioengineering
Technology and Engineering > Biological and Physical Engineering > Biomedical Engineering and Bioengineering
Environmental Sciences
Physical Sciences > Earth and Environmental Sciences > Environmental Sciences
Sustainability
Research Communities > Community > Sustainability

What are SDG Topics?

An introduction to Sustainable Development Goals (SDGs) Topics and their role in highlighting sustainable development research.

Continue reading announcement

Related Collections

With Collections, you can get published faster and increase your visibility.

Plant genome editing: advances and applications in plant biology

Plant genome editing has rapidly evolved into a transformative technology in plant biology, offering novel and effective approaches for functional genomics and molecular breeding research. The increasing use and development of CRISPR-Cas genome-editing technologies have indeed enhanced our understanding of gene functions and regulation, and facilitated the development of crops with improved yields, nutritional characteristics or resilience to environmental stress. As the global populations is rising and climate change poses new challenges, the ability to bioengineer and enhance specific plant traits has become essential to achieve sustainable agricultural practices, and food security and nutrition.

In support of the United Nations' Sustainable Development Goal 2 (SDG 2: Zero Hunger), BMC Plant Biology is launching the Collection ‘Plant Genome Editing: Advances and Applications in Plant Biology’. This collection invites submissions that highlight current research and future perspectives in plant genome editing, covering e.g. advances in gene-editing techniques (e.g. CRISPR/Cas systems) and their applications in plant functional genomics and molecular breeding, as well as biotechnological applications aimed at enhancing crop productivity. We invite researchers and experts in the field to submit research articles that explore, but are not limited to, the following topics:

Advances in CRISPR/Cas9-based genome engineering in plant biology

Advanced CRISPR/Cas variants: CRISPR-Cas9 and CRISPR-Cas12a systems in plant genome editing

Applications of engineered Cas9 and newly discovered RNA guided DNA endonucleases in plants

Novel approaches for tissue culture-free genome editing in plants

Targeted epigenetic modifications using CRISPR/Cas

RNP-mediated genome editing

Applications of prime editing in plant molecular breeding and crop trait improvement

CRISPR/Cas applications in plant biotechnology: improving crop yield, quality and stress-resistance

Advances in genome editing technologies for next-generation plant breeding

Emerging technologies for delivering the CRISPR/Cas system in crop species

CRISPR/Cas applications in plant synthetic biology

All manuscripts submitted to this journal, including those submitted to collections and special issues, are assessed in line with our editorial policies and the journal’s peer review process. Reviewers and editors are required to declare competing interests and can be excluded from the peer review process if a competing interest exists.

Publishing Model: Open Access

Deadline: May 27, 2026

Leaf senescence and molecular breeding

Leaf senescence is a complex biological process that involves the degradation of chlorophylls and the eventual death of leaf tissues, affecting plant growth and yield. As the final, postmitotic stage of plant life, leaf senescence is a crucial functional shift from nutrient assimilation to remobilization, critical for plant survival. Its timing is regulated by age, hormones, and environmental stress. Consequently, researchers are intensively devising strategies based on known regulatory mechanisms to manipulate initiation and progression of leaf senescence for enhancing crop resilience and productivity.

While many Senescence-Associated Genes (SAGs) have been identified, fundamental knowledge gaps persist, such as: when exactly is leaf senescence initiated? How are signals transmitted between organelles, cells, and tissues? How can we fully map the molecular pathways of cell senescence? Recent advances in genomics and molecular biology have revealed complex regulatory networks that govern this process, enabling to investigate the interactions between molecular, genetic, epigenetic, and environmental factors. The integration of single-cell, multi-omics and CRISPR/Cas9 approaches now enables deeper mechanistic exploration and more precise manipulation of senescence pathways.

At the same time, molecular breeding for optimized or ‘stay-green’ traits is rapidly accelerating, driven by the global demand for climate-resilient and high-yielding crops in support of the United Nations’ SDG 2 (Zero Hunger). Combining mechanistic insights with genome engineering, precision editing, pan-genome–informed allele mining, high-throughput phenotyping, and genomic selection has opened new opportunities to design crops with fine-tuned senescence timing, improved nutrient-use efficiency, and enhanced stress tolerance and photosynthetic productivity. In this context, BMC Plant Biology invites submissions to the Collection Leaf senescence and molecular breeding, aiming to gather research that advances our understanding of senescence mechanisms and translates this knowledge into crop improvement. We invite researchers and experts in the field to submit research articles that explore, but are not limited to, the following topics:

  • Multilayered regulation of leaf senescence
  • Genetic and epigenetic control of leaf senescence
  • Post-transcriptional and post-translational regulation of leaf senescence
  • Hormonal regulation of leaf senescence: regulation by classical and peptide hormones
  • Regulatory functions and mechanisms of non-hormonal small molecule signals (e.g. NO, H2S) in leaf senescence
  • New mechanisms for stress-induced leaf senescence
  • Role of environmental factors on the regulation of leaf senescence
  • Role of reactive oxygen species in leaf senescence
  • Plant metabolic changes during leaf senescence
  • Subcellular structural dynamics and functional remodelling in chloroplast and mitochondria during leaf senescence
  • Novel signaling components in regulating leaf senescence in crops
  • Integration of leaf senescence traits in molecular breeding programmes
  • Pan-genome, GWAS, and QTL analyses for senescence traits
  • Marker-assisted selection, genomic selection, and genome editing for senescence improvement
  • High-throughput and image-based phenotyping of senescence in crop breeding

All manuscripts submitted to this journal, including those submitted to collections and special issues, are assessed in line with our editorial policies and the journal’s peer review process. Reviewers and editors are required to declare competing interests and can be excluded from the peer review process if a competing interest exists.

Publishing Model: Open Access

Deadline: Aug 19, 2026