Paper · 2026 · BMC Plant Biology

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

Wasswa Shafik; Ali Tufail; Liyanage Chandratilak De Silva; et al.

9
claims
9
verbatim quotes
0
citations
2
research areas
✓
Open access · cc-by-nc-nd

Abstract

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. 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. 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. 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). 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.

Abstract from the paper’s OpenAlex record; open copy licensed cc-by-nc-nd. Read at the source ↗

The text the model read, with the source record’s inline markup (italics, sub- and superscripts) rendered and its character entities decoded; quote offsets refer to the raw text.

Claims 9

Method / resourceobservedoriginal resultpositivemeasured

Claim · model-written summary

The proposed model achieved 97.4% accuracy.

Outcome
accuracye0
Value
97.4%e0
Comparator
existing benchmark modelse0

Not reportedTaxon

Verbatim

e0

“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.”

✓ located verbatim in the source · abstract, characters 1567–1771 · show in text ↑
Method / resourceobservedoriginal resultpositivemeasured

Claim · model-written summary

The model achieved 96.4% precision.

Outcome
precisione0
Value
96.4%e0

Verbatim

e0

“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.”

✓ located verbatim in the source · abstract, characters 1567–1771 · show in text ↑
Method / resourceobservedoriginal resultpositivemeasured

Claim · model-written summary

The model achieved 97.09% recall.

Outcome
recalle0
Value
97.09%e0

Verbatim

e0

“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.”

✓ located verbatim in the source · abstract, characters 1567–1771 · show in text ↑
Method / resourceobservedoriginal resultpositivemeasured

Claim · model-written summary

The model achieved a 95.7% F1 score.

Outcome
F1-scoree0
Value
95.7%e0

Verbatim

e0

“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.”

✓ located verbatim in the source · abstract, characters 1567–1771 · show in text ↑
Method / resourceobservedoriginal resultpositivemeasured

Claim · model-written summary

The model had high Cohen’s Kappa agreement.

Outcome
agreemente0
Comparator
existing benchmark modelse0

Verbatim

e0

“high agreement measured by Cohen’s Kappa, outperforming existing benchmark models”

✓ located verbatim in the source · abstract, characters 1689–1770 · show in text ↑
Method / resourceobservedoriginal resultmeasured

Claim · model-written summary

SHAP visualizations highlighted image features used by the model.

Outcome
high-activation areas, edge features, color patternse0

Not reportedComparator

Verbatim

e0

“SHAP visualizations highlighted that the model leverages high-activation areas, edge features, color patterns, texture, shape, and contextual cues in its predictions.”

✓ located verbatim in the source · abstract, characters 1772–1938 · show in text ↑
Method / resourceobservedoriginal resultpositivemeasured

Claim · model-written summary

Attention based models improved accuracy.

Outcome
accuracye0

Not reportedComparatorValue

Verbatim

e0

“While attention-based models improved accuracy, they also caused reduced classification speed.”

✓ located verbatim in the source · abstract, characters 1939–2033 · show in text ↑
Method / resourceobservedoriginal resultnegativemeasured

Claim · model-written summary

Attention based models reduced classification speed.

Outcome
classification speede0

Not reportedComparatorValue

Verbatim

e0

“While attention-based models improved accuracy, they also caused reduced classification speed.”

✓ located verbatim in the source · abstract, characters 1939–2033 · show in text ↑
Method / resourceobservedoriginal resultpositivemeasured

Claim · model-written summary

Integrating attention blocks with CNN layers compensated for the slowdown.

Outcome
efficient inferencee0

Not reportedComparatorValue

Verbatim

e0

“integrating attention blocks with CNN layers effectively compensated for this slowdown, achieving both high accuracy and efficient inference”

✓ located verbatim in the source · abstract, characters 2043–2183 · show in text ↑