论文信息

Lang Hoang Son / Bùi Thanh Hùng

Discover Artificial Intelligence

论文解读

AI 辅助整理
方法
无监督显著性自动裁剪提取局部病斑,双流图像输入LLaVA-1.5 7B,4-bi
发现
方法显著优于零样本基线,并提供跨注意力热图实现可解释诊断。
机会点
可探索无标注病斑定位与轻量化VLM在田间实时诊断中的泛化能力。

论文摘要

摘要 植物病害对农业生产力与全球粮食安全构成严重威胁。尽管卷积神经网络(Convolutional Neural Networks)在受控环境下已取得令人瞩目的分类精度,但其往往缺乏语义推理能力,且作为不可解释的“黑箱”运行。近年来,视觉-语言模型(Vision-Language Models)作为强大的多模态推理系统崭露头角。然而,将其应用于复杂的真实世界图像时,会出现“注意力汇”现象,将计算资源浪费在背景噪声上,而非微小的坏死病斑。本文提出了一种模拟农业专家诊断工作流程的全局-局部混合框架。该系统利用CIE-LAB色彩空间中的无监督显著性自动裁剪算法,无需边界框标注即可自动提取局部病害斑块。由全局上下文和局部斑块组成的双图像流被输入LLaVA−1.5 7B,并使用4位QLoRA进行微调以确保参数效率。此外,我们从解码器最后一层提取交叉注意力热图,以提供可解释人工智能能力。在葡萄藤病害数据集上的实验结果表明,本方法总体准确率达到98.7%,显著优于零样本基线,同时为精准农业提供了明确的语义可解释性。

全文

Discover Artificial Intelligence

Discover Artificial IntelligenceSon and Hung Discover Artificial Intelligence (2026) 6:1389
https://doi.org/10.1007/s44163-026-02463-x
RESEARCH Open Access
A global-local hybrid vision-language
framework for interpretable grapevine disease
diagnosis
Lang Hoang Son1 and Bui Thanh Hung1*
*Correspondence:
Bui Thanh Hung
buithanhhung@iuh.edu.vn
1Data Science Laboratory, Data
Science Department, Faculty of
Information Technology, Industrial
University of Ho Chi Minh City,
Ho Chi Minh City 700000, Vietnam
© The Author(s) 2026. Open Access This article is licensed under a Creative Commons Attribution 4.0 International License, which permits use,
sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the
source, provide a link to the Creative Commons licence, and indicate if changes were made. The images or other third party material in this article
are included in the article’s Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the
article’s Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to
obtain permission directly from the copyright holder. To view a copy of this licence, visit http://creativecommons.org/licenses/by/4.0/.
Abstract
Plant diseases pose a severe threat to agricultural productivity and global food
security. Although Convolutional Neural Networks have achieved impressive
classification accuracy in controlled environments, they often lack semantic reasoning
capabilities and operate as uninterpretable “black boxes.” Recently, Vision-Language
Models have emerged as powerful multimodal reasoning systems. However,
they suffer from the “attention sink” phenomenon when applied to complex real-
world images, wasting computational resources on background noise rather than
microscopic necrotic lesions. In this paper, we propose a Global–Local Hybrid
Framework that mimics the diagnostic workflow of agricultural experts. The system
leverages an unsupervised Saliency Auto-Crop algorithm within the CIE-LAB color
space to automatically extract local disease patches without the need for bounding
box annotations. A dual image stream, comprising global context and local patches,
is fed into LLaVA−1.5 7B and fine-tuned using 4-bit QLoRA to ensure parameter
efficiency. Furthermore, we extract Cross-Attention Heatmaps from the final layer of
the decoder to provide Explainable Artificial Intelligence capabilities. Experimental
results on a grapevine disease dataset demonstrate that our method achieves an
overall accuracy of 98.7%, significantly outperforming zero-shot baselines while
providing explicit semantic interpretability for precision agriculture.
Keywords Vision-language models, Plant disease diagnosis, Explainable artificial
intelligence, Saliency auto-crop, Low-rank adaptation fine-tuning
1 Introduction
Agriculture plays a pivotal role in ensuring global food security. However, crop yield and
quality—particularly for high-economic-value crops such as grapevines—are constantly
threatened by foliar diseases like Black Rot, ESCA, and Leaf Blight. Traditionally, disease
detection relies on visual inspection by agricultural experts. This approach is not only
time-consuming and cost-intensive but also prone to errors due to human subjectivity.
Therefore, the development of automated, accurate, and reliable disease diagnostic sys -
tems has become an urgent imperative.

Page 2 of 19
Son and Hung Discover Artificial Intelligence (2026) 6:1389
The integration of Vision-Language Models (VLMs) into precision agriculture has
evolved significantly in recent years. Prior to the adoption of generative architectures,
foundational contrastive models, most notably CLIP (Contrastive Language-Image Pre -
training), pioneered this intersection. CLIP-based agricultural models demonstrated
promising zero-shot capabilities for tasks such as broad-scale crop classification, weed
detection, and pest recognition by successfully aligning textual descriptions with visual
features in a shared embedding space. Building upon these contrastive foundations, the
field is currently transitioning toward generative Vision-Language Models (e.g., LLaVA).
Unlike their CLIP-based predecessors that primarily match images to pre-defined text,
generative VLMs can actively generate explicit, human-readable diagnostic reasoning,
opening new frontiers for interactive and interpretable plant pathology.
In recent years, Deep Learning models, specifically Convolutional Neural Networks
(CNNs) such as ResNet and EfficientNet, have achieved remarkable milestones in plant
disease classification. Despite exhibiting high accuracy in controlled laboratory settings,
CNN-based models suffer from two major limitations. First, they predominantly extract
raw pixel-level features, lacking high-level semantic reasoning capabilities. Second,
CNNs operate inherently as “black boxes, ” making it exceedingly difficult for end-users
to comprehend the rationale behind the model’s classification decisions. In contrast,
Vision-Language Models (VLMs) bridge this gap by translating extracted visual seman -
tics into transparent, human-readable diagnostic rationales, offering a distinct advan -
tage in explainability and compositional logic for agricultural diagnostics. Nevertheless,
when applied to real-world agricultural imagery, these models frequently encounter the
‘ Attention Sinks’ phenomenon—a tendency to squander computational resources on
noisy background elements (e.g., soil, rocks, and variable illumination) [ 1] rather than
focusing on microscopic necrotic lesions on the leaf surface.
To overcome the aforementioned challenges, this study proposes a Global–Local
Hybrid Framework for disease diagnosis. Inspired by the diagnostic workflow of plant
pathologists—who first observe the entire leaf to grasp the general context before using
a magnifying glass to scrutinize the lesion details—our proposed system provides a large
language model (LLaVA−1.5) with a dual-stream data input. A Global Image supplies the
spatial structure of the leaf, while a Local Patch, containing the epicenter of the disease,
is automatically extracted via an unsupervised Saliency algorithm operating within the
CIE-LAB color space.
The primary contributions of this research are summarized as follows:
• Global–Local Hybrid Architecture: We introduce a novel data representation
approach that integrates macroscopic (full-leaf ) and microscopic (lesion patch)
imagery to enhance the recognition capabilities for diseases exhibiting similar visual
symptoms.
• Unsupervised Saliency Extraction: We develop an automated Auto-Crop algorithm
that localizes and extracts disease regions without relying on bounding box
annotations, thereby optimizing the image preprocessing pipeline.
• Parameter-Efficient Fine-Tuning: We implement the 4-bit QLoRA quantization
technique, enabling the successful training of a 7-billion-parameter LLM on
constrained hardware environments while still achieving superior classification
accuracy.

Page 3 of 19
Son and Hung Discover Artificial Intelligence (2026) 6:1389
• Explainable Artificial Intelligence: We elucidate the VLM’s decision-making process
by extracting Cross-Attention matrices from the final Decoder layers, empirically
demonstrating the model’s precise focus on pathological regions.
2 Related works
Convolutional Neural Network (CNN) models have established a new benchmark in
computer vision and plant disease recognition [ 2, 3]. Numerous previous studies have
applied classic architectures such as ResNet [ 4] and EfficientNet [ 5] for disease classi -
fication on the PlantVillage dataset [ 6]. An alternative approach employs object detec -
tion models to localize disease lesions; however, this method incurs prohibitive costs for
manual annotation. Furthermore, while CNN architectures achieve near-perfect perfor -
mance on curated datasets, Lapuschkin et al. [7] highlighted the “Clever Hans” phenom-
enon: these models frequently interpolate background artifacts rather than learning the
actual biological morphology of the lesions. Consequently, this reliance leads to severe
performance degradation when confronting domain shifts in natural environments [8].
Artificial intelligence has profoundly transformed various scales of precision agricul -
ture. Recent systematic reviews highlight the extensive deployment of deep learning for
macroscopic agricultural monitoring, such as automated parcel and boundary delin -
eation using remote sensing imagery [ 9]. While these macro-level analyses are crucial
for broad field management, our research specifically targets the micro-level diagnos -
tic challenges. By leveraging Large Multimodal Models (LMMs), we aim to accurately
interpret fine-grained pathological morphologies on individual grapevine leaves, thereby
complementing broader agricultural monitoring systems with precise, plant-level dis -
ease intelligence.
In the specific context of grapevine diseases, Mandal and Gouda (2023) deployed vari -
ous CNN models to classify healthy and infected leaves. Their results demonstrated high
accuracy, thereby paving the way for practical deployment via web-based applications for
farmers [10]. Similarly, Talaat et al. (2025) proposed an Optimized CNN (OCNN) com -
bined with logistic regression for dimensionality reduction using the PlantVillage data -
set. The model achieved an accuracy of 99.7%, with precision, recall, and F1-scores all
exceeding 99%, validating the efficacy of architectural optimization [11]. Furthermore, in
their study on disease detection using transfer learning methods, Yücalar and Yıldırım
(2025) evaluated multiple CNN architectures (AlexNet, DarkNet53, Inception-ResNet-
V2, MobileNetV3, ResNet, VGG). Among these, Inception-ResNet-V2 yielded the opti -
mal outcome with a 93.0% test accuracy, proving the viability of transfer learning even
under limited data constraints [ 12].In addition to its proven effectiveness in real-time
monitoring and detection tasks in diverse, cross-disciplinary domains, such as intelli -
gent driver drowsiness detection [ 13]. More recently, Kunduracioglu and Pacal (2024)
conducted a comprehensive evaluation of both CNNs and Vision Transformers (ViTs,
SwinV2, DeiT3, MaxViT, MobileViT). Notably, SwinV2-Base-Win8 and DeiT3-Base
attained 100% accuracy on both the PlantVillage and Grapevine datasets, underscoring
the profound potential of ViTs to supersede CNNs in agricultural diagnostic tasks [ 14].
To mitigate the issue of models being distracted by background noise, Attention Mecha-
nisms [15] and Vision Transformers (ViT) [16] have been integrated into visual architec-
tures. Hybrid systems combining CNNs and Transformers have demonstrated superior
performance due to their ability to simultaneously capture localized spatial features and

Page 4 of 19
Son and Hung Discover Artificial Intelligence (2026) 6:1389
global dependencies [ 17, 18]. Despite improvements in accuracy, the Explainable Artifi -
cial Intelligence (XAI) techniques employed in these systems—prominently Grad-CAM
[19]—remain post-hoc and are fundamentally limited to visualizing local gradients [ 20].
Rather than relying on external post-hoc explanation modules, our framework addresses
this limitation by leveraging the intrinsic Cross-Attention mechanisms inherent to the
Vision-Language Model. Building upon foundational interpretability techniques devel -
oped for bi-modal and encoder-decoder architectures [ 21], we adapt these established
attention-extraction methods for precision agriculture. Consequently, our contribu -
tion in this regard does not lie in introducing a novel extraction paradigm, but rather
in applying these attention mappings to explicitly and transparently ground the model’s
diagnostic reasoning within complex, multi-scale pathological morphologies.
The rapid proliferation of VLMs such as LLaVA [ 22]—which is built upon the foun -
dational language model LLaMA [ 23] and the CLIP image encoder [ 24]—has unlocked
robust zero-shot capabilities. In contrast to architectures that compress visual tokens,
LLaVA preserves the complete spatial integrity of the original image. To optimize the
training process on plant pathology domains without demanding excessive compu -
tational resources, our study applies the Low-Rank Adaptation (LoRA) method [ 25]
and its 4-bit quantized variant, QLoRA [ 26, 27], in conjunction with the AdamW opti -
mizer [ 28]. Moreover, instead of processing the entire image which is prone to infor -
mation dilution, the proposed system automatically extracts a “microscopic patch” via
an unsupervised Saliency algorithm. This algorithm is synthesized from foundational
image processing techniques: Otsu’s thresholding [29] in the CIE Lab* color space [30],
mathematical morphological operations [ 31], and centroid localization through image
moments [32].
Transparency is a decisive factor in cultivating end-user trust within diagnostic AI sys-
tems. In this study, the framework not only provides textual reasoning but also directly
exploits the quantitative Attention Flow [ 33] from the LLM’s layers. The breakthrough
lies in the paradigm shift from qualitative to quantitative XAI. By measuring the alloca -
tion of attention energy and cross-referencing it with reliable XAI metrics such as the
Pointing Game [34] and Deletion AUC—inspired by the RISE input perturbation method
[35]—the system establishes a rigorous mathematical correlation between linguistic
decisions and core visual tokens, thereby minimizing the occurrence of hallucinations.
3 Methodology
To transcend the constraints of conventional black-box models, this study proposes a
Global–Local Hybrid Framework. The comprehensive data processing pipeline, span -
ning from image preprocessing to the extraction of explanatory heatmaps, is illustrated
in Fig. 1.
The system is compartmentalized into four primary phases, synergizing unsupervised
computer vision techniques with the advanced reasoning capabilities of a large vision-
language model (VLM).
3.1 Unsupervised local feature extraction (saliency auto-crop)
Traditional object detection methods necessitate exhaustive manual annotation of
bounding boxes, which is highly inefficient for large-scale agricultural datasets. To cir -
cumvent this, our system employs an unsupervised Saliency Auto-Crop algorithm.

Page 5 of 19
Son and Hung Discover Artificial Intelligence (2026) 6:1389
Initially, the input image is transformed into the CIE-LAB color space to decouple lumi -
nance (𝐿𝐿∗) from chrominance ( 𝑎𝑎∗,𝑏𝑏 ∗). This separation is crucial because the 𝑎𝑎∗ channel
is particularly sensitive to the green-red spectrum, facilitating the robust identification
of necrotic lesions against the green leaf background regardless of varying illumination
conditions. The Saliency Score S(x, y) is formulated as a weighted combination [30]:
𝑆𝑆 𝑆 𝑆𝑆 𝑆 𝑆𝑆 𝑆𝑆𝑆𝑆𝐴𝐴 ⋅ 𝑎𝑎∗𝑆𝑆𝑆𝑆 𝑆𝑆𝑆 𝑥 𝑆𝑆 𝐿𝐿 ⋅ 𝑆1−𝐿𝐿 ∗𝑆𝑆𝑆𝑆 𝑆𝑆𝑆𝑆 𝑥 𝑆𝑆 𝐵𝐵 ⋅ 𝑏𝑏∗𝑆𝑆𝑆𝑆 𝑆𝑆𝑆
Subsequently, Otsu’s adaptive thresholding [ 29] and morphological operations (closing
and opening) are applied to filter out background noise. Image Moments are then uti -
lized to compute the spatial distribution of the isolated lesion, determining its centroid
coordinates ( ̄𝑥𝑥 𝑥 ̄𝑦𝑦𝑦:

̄𝑥𝑥 𝑥𝑚𝑚10
𝑚𝑚00
, ̄𝑦𝑦𝑥 𝑚𝑚01
𝑚𝑚00
Based on these coordinates, a 128 × 128 Local Patch is automatically cropped. This
dimension was empirically selected to encompass the entire disease epicenter while
aggressively eliminating redundant background pixels, thereby supplying highly concen -
trated microscopic details to the model.The choice of a 128 × 128 resolution for the local
patch was rigorously determined to balance pathological detail and computational effi -
ciency. A drastically smaller crop (e.g., 64 × 64) risks aggressively truncating the lesion’s
transition zones, such as chlorotic halos and outer margins, which are critical diagnos -
tic indicators. Conversely, a larger crop (e.g., 224 × 224) inadvertently captures excessive
healthy tissue and background noise, rendering the local patch visually redundant with
the 256 × 256 global view. Thus, the 128 × 128 dimension serves as an optimal focal win -
dow, successfully encapsulating the complete necrotic morphology and its immediate
Fig. 1 Architectural diagram of the global–local hybrid framework integrating LLaVA−1.5 and XAI interpretability
mechanisms

Page 6 of 19
Son and Hung Discover Artificial Intelligence (2026) 6:1389
surrounding context while efficiently directing the VLM’s attention away from irrelevant
spatial elements.
3.2 Multimodal prompt formulation
To mimic the diagnostic cognitive process of an agricultural expert—who observes the
global leaf structure before scrutinizing specific lesions—we design a dual-stream visual
input mechanism. As depicted in the Vision-Language Encoding module in Fig.  1, the
input is structured as a concatenated sequence:
𝑋𝑋𝑖𝑖𝑖𝑖𝑖𝑖𝑖𝑖𝑖𝑖 = [𝑉𝑉𝑔𝑔𝑔𝑔𝑔𝑔𝑔𝑔𝑔𝑔𝑔𝑔 ⊕ 𝑉𝑉 𝑔𝑔𝑔𝑔𝑙𝑙𝑔𝑔𝑔𝑔 ⊕ 𝑇𝑇𝑖𝑖𝑝𝑝𝑔𝑔𝑝𝑝𝑖𝑖𝑖𝑖 ]
Here, 𝑉𝑉𝑔𝑔𝑔𝑔𝑔𝑔𝑔𝑔𝑔𝑔𝑔𝑔 and 𝑉𝑉 𝑙𝑙𝑙𝑙𝑙𝑙𝑙𝑙𝑙𝑙 denote the visual features extracted by the pre-trained CLIP ViT-
L/14 encoder. Each image stream is encoded into 576 visual tokens and subsequently
projected into the language model’s embedding space via an MLP Projector. By con -
catenating the global context, the local patch, and the textual instruction ( 𝑇𝑇𝑝𝑝𝑝𝑝𝑝𝑝𝑝𝑝𝑝𝑝𝑝𝑝 ), this
integration compels the LLM to cross-reference macroscopic morphological traits (e.g.,
leaf shape, overall discoloration) with microscopic pathological indicators (e.g., lesion
texture, fruiting bodies).
T o ensure full reproducibility, we explicitly detail the textual prompt (𝑇𝑇𝑝𝑝𝑝𝑝𝑝𝑝𝑝𝑝𝑝𝑝𝑝𝑝 ) utilized
during both the instruction-following fine-tuning and inference phases. Because our
framework processes a dual-image input, the prompt was engineered to explicitly define
the semantic role of each image for the VLM. The exact prompt template provided to the
model is as follows: “This is a grapevine leaf. The first image is the global view of the leaf
(256x256). The second image is a zoomed-in local lesion patch (128x128). Based on both
views, identify the plant disease. Choose exactly one of: Black Rot, ESCA, Healthy, Leaf
Blight. ” This uniform prompt structure guarantees that the model is consistently guided
to synthesize the macroscopic context with the microscopic morphology before generat-
ing its autoregressive diagnosis.
3.3 Low-rank adaptation fine-tuning (QLoRA)
Fine-tuning a massive 7-billion-parameter LLM conventionally requires prohibitive
computational resources and poses the risk of catastrophic forgetting. To optimize the
LLaMA-7B backbone efficiently, the 4-bit QLoRA technique is implemented [ 25, 26].
Instead of updating the entire network, the pre-trained weights ( 𝑊𝑊0) are frozen and
quantized into a 4-bit NormalFloat (NF4) data type. The weight update Δ𝑊𝑊 is approxi-
mated through trainable low-rank matrices A and B:

ℎ =𝑊𝑊0𝑥𝑥 𝑥 𝑥𝑥𝑥𝑥𝑥𝑥
ℎ= dequantize (𝑐𝑐1,𝑊𝑊 4bit0 ) 𝑥𝑥𝑥 𝛼𝛼𝑟𝑟 𝑥𝑥𝑥𝑥𝑥𝑥
In this formulation, x represents the input activation, 𝑐𝑐1 is the quantization constant,
r is the intrinsic rank, and 𝛼𝛼 is a scaling factor. These lightweight adapters are directly
injected into the Decoder layers. This strategy enables the model to rapidly acquire spe -
cialized domain knowledge regarding plant pathology while updating merely 7.68% of
the total parameters, ensuring high parameter efficiency without compromising diag -
nostic accuracy.

Page 7 of 19
Son and Hung Discover Artificial Intelligence (2026) 6:1389
3.4 Explainability via cross-attention heatmaps
The extraction of attention maps is specifically targeted at the 31st decoder layer of the
VLM. Given that the language backbone of LLaVA−1.5 7B consists of 32 transformer
decoder layers (indexed 0 to 31), this terminal layer processes the highest level of seman-
tic abstraction immediately preceding the language modeling output head. While shal -
lower layers typically encode low-level syntactic and spatial alignments, the deepest
layers synthesize these multi-modal embeddings to formulate the final diagnostic rea -
soning. Consequently, extracting cross-attention weights from this specific final layer
yields the most direct and accurate interpretable heatmap, explicitly revealing the visual
features that governed the model’s ultimate prediction.
To dismantle the black-box nature of traditional deep learning models, our frame -
work incorporates an intrinsic Explainable AI (XAI) mechanism. Ultimately, the system
extracts the mean attention matrix ̄𝐴𝐴 from the deep semantic layers using a Forward
Hook technique. This operation captures the attention weights assigned by the model’s
text tokens to the visual tokens:

̄𝐴𝐴𝐴 1𝐻𝐻
𝐻𝐻
∑
ℎ=1
𝐴𝐴(ℎ)𝑚𝑚𝑚𝑚𝑚𝑚
where H is the total number of attention heads, and 𝐴𝐴(ℎ)𝑚𝑚𝑚𝑚𝑚𝑚 represents the attention
matrix of the h-th head. Since the spatial resolution of the visual tokens is significantly
lower than the original image ( 24 × 24 grid), the resulting matrix undergoes bilinear
interpolation to smoothly upsample it. The final Heatmap is overlaid onto the original
input image, vividly elucidating the spatial regions that triggered the model’s diagnos -
tic decisions and providing agricultural stakeholders with interpretable visual evidence.
Furthermore, it is important to note that the generated visual explanations are highly
sensitive to the depth of the chosen extraction layer. Visualizing attention weights from
shallower or intermediate layers typically yields dispersed heatmaps that over-index on
low-level visual features, such as textures, edges, and irrelevant background artifacts. As
the representations propagate deeper into the transformer architecture, the attention
mechanisms become semantically stable and heavily concentrated on the concepts que -
ried by the text prompt. Extracting exclusively from the terminal 31st layer ensures that
the resulting heatmaps are resistant to low-level noise and robustly isolate the high-level
pathological morphologies driving the final diagnostic output.
4 Experiments
4.1 Experimental setup and datasets
Datasets
The study utilizes two datasets for comprehensive evaluation. The in-domain dataset
is sourced from PlantVillage [ 6], encompassing four classes (Black Rot, ESCA, Healthy,
Leaf Blight) with a total of 9027 images. The dataset is partitioned using a stratified split:
64% for Training (5779 images), 16% for Validation (1443 images), and 20% for Blind
Testing (1805 images). To assess Cross-Dataset Generalization, the PlantDoc data -
set [36] is employed as an out-of-domain test set, featuring images captured in uncon -
trolled, real-world field conditions.
Computing Infrastructure

Page 8 of 19
Son and Hung Discover Artificial Intelligence (2026) 6:1389
All experiments were conducted using Kaggle Notebooks, a cloud-based computa -
tional platform provided by Kaggle. The hardware and software computing environment
is detailed as follows:
• CPU: Intel Xeon 2.00GHz (2 cores)
• GPU: NVIDIA Tesla T4 x 2 GPU (32.0 GB VRAM)
• Operating System: Ubuntu 22.04 LTS (Jammy Jellyfish, as provided by Kaggle)
• Python Version: Python 3.10
• Key Libraries: PyTorch, Hugging Face Transformers, PEFT, BitsAndBytes, and
OpenCV. Detailed information on the library versions and configurations is provided
within the source code notebook.
Training Hyperparameters
The QLoRA fine-tuning process was initially configured for 1 epochs; however, it prac-
tically culminated at 0.55 epochs due to stringent hardware time-limit constraints on the
cloud platform. The optimization process utilized an effective batch size of 16, a learning
rate of 2×1 0 −4, a LoRA rank of 𝑟𝑟 𝑟 𝑟𝑟 , and an alpha scaling factor of 𝛼𝛼 𝛼 𝛼𝛼𝛼 .
T o ensure reproducibility, several critical technical configurations regarding the mod-
el’s fine-tuning process must be detailed. First, the optimization was governed by stan -
dard auto-regressive cross-entropy loss. T o focus the model’s learning process strictly
on diagnostic accuracy, the loss was computed exclusively on the generated response
tokens, while the visual embeddings and text prompt tokens were systematically masked.
Second, the framework was explicitly trained using an instruction-following paradigm
rather than transitioning to a conventional closed-set classifier. By fine-tuning the model
via QLoRA, the system is optimized to accept free-form natural language prompts and
generate diagnostic responses autoregressively, bypassing the traditional method of
computing an argmax over a fixed logit vector. This instruction-based approach is cru -
cial for our Global–Local architecture, as it allows the text prompt to explicitly define
the semantic roles of the dual-image input (distinguishing the overall leaf context from
the localized lesion). The four discrete disease categories were embedded as exact target
strings within this conversational format, and inference was conducted via exact string
matching on the model’s free-form generated text.
Finally, the fine-tuning phase was halted at 0.55 epochs. This specific stopping point
was heavily influenced by hardware and computational resource constraints encoun -
tered during the training phase. Working within these limits, we empirically selected the
optimal checkpoint that yielded the highest validation performance. It is worth noting
that for massive pre-trained vision-language models, such limited fine-tuning—often
strictly less than a single epoch—is frequently sufficient for effective domain adaptation.
In practice, this computational constraint inherently functioned as an early-stopping
mechanism, preventing severe overfitting on the agricultural dataset and mitigating the
risk of catastrophic forgetting.
4.2 Classification performance on benchmark dataset
On the PlantVillage blind test set, the proposed system achieved an Overall Accu -
racy of 98.7%. A detailed per-class analysis reveals near-perfect recognition for the
Healthy (99.8%) and ESCA (98.1%) classes. Leaf Blight achieved 100%, whereas Black
Rot recorded 97.0%. The marginal decline in Black Rot is primarily attributable to the

Page 9 of 19
Son and Hung Discover Artificial Intelligence (2026) 6:1389
visual resemblance between early-stage black rot lesions and leaf blight; nevertheless,
the model sustained highly commendable diagnostic performance (Tables 1, 2).
4.3 Ablation study
To substantiate the contribution of individual components within the hybrid architec -
ture, an Ablation Study was conducted. The outcomes are detailed in Table 3.
The findings indicate that without domain-specific fine-tuning (Zero-shot), the foun -
dational LLaVA model is virtually incapable of recognizing specialized agricultural dis -
eases (18.6%). Utilizing solely the global image (97.8%) or merely the local patch (90.3%)
yields inferior results compared to the hybrid architecture. Notably, the deployment of
Saliency Auto-Crop and Center Crop alongside the global image yielded identical per -
formance (98.7%), validating the efficacy of the unsupervised lesion localization algo -
rithm and the necessity of constraining the lesion’s spatial scope to the central region.
To rigorously substantiate the contribution of individual components within our pro -
posed hybrid architecture, a comprehensive ablation study was conducted. We evaluated
the impact of the dual-image design, cropping strategies, and fine-tuning parameters.
To rigorously evaluate the contribution of the local lesion patch, an ablation study was
conducted across various extraction strategies on a standardized test set (𝑁𝑁 𝑁 𝑁𝑁𝑁𝑁𝑁𝑁
incorporating both accuracy and computational efficiency metrics (Table 4). The
quantitative results indicate that when paired with a global image, multiple cropping
strategies—including Center Crop, Random Crop, and GrabCut—achieve highly com -
parable accuracies (98.6%), while the proposed LAB+Otsu method yields a marginal
peak at 98.7%. Consequently, the advantage of the proposed saliency crop lies not
in an overwhelming accuracy surge, but rather in its optimal balance of deterministic
Table 1 Detailed stratified split of the Grapevine dataset for training, validation, and testing phases
Class Train Validation Test Total
Black rot 1511 377 472 2360
ESCA 1536 384 480 2400
Healthy 1354 338 423 2115
Leaf blight 1378 344 430 2152
Total 5779 1443 1805 9027
Table 2 Performance evaluation of the proposed model on the PlantVillage test set
Class Correct Total Accuracy (%)
Black rot 458 472 97.0
ESCA 471 480 98.1
Healthy 422 423 99.8
Leaf blight 430 430 100
Overall 1781 1805 98.7
Table 3 Ablation study results on the PlantVillage test set
Experimental configuration Overall accuracy (%)
A. Zero-shot (no fine-tuning) 18.6
B. Fine-tune, local patch only 90.4
C. Fine-tune, global image only 97.8
D. Fine-tune, global + center crop 98.7
E. Fine-tune, global + saliency local (proposed) 98.7

Page 10 of 19
Son and Hung Discover Artificial Intelligence (2026) 6:1389
localization and computational efficiency. While naive spatial crops (Center/Random)
execute slightly faster (125 min), they operate blindly and offer no theoretical guaran -
tee of encapsulating the pathological region, posing a risk in real-world scenarios where
lesions are located at leaf margins. Conversely, comparing the morphology-aware algo -
rithms, the proposed LAB+Otsu method requires noticeably less total processing time
(127.4 min) compared to the iterative GrabCut algorithm (138.0 min). By avoiding the
heavy energy-minimization overhead inherent to GrabCut, the LAB+Otsu pipeline effi -
ciently guarantees localized spatial grounding without sacrificing the VLM’s peak diag -
nostic performance.
4.3.1 Contribution of global–local dual-image design
The dual-view architecture is designed to capture both the macro-context of the leaf and
the micro-details of the lesion. As detailed in Table 4, relying solely on the global image
results in an overall accuracy of 97.8%, indicating a loss of fine-grained pathological fea -
tures. Conversely, utilizing only the local lesion patch drastically reduces the accuracy
to 90.4%. This significant performance drop underscores the necessity of macro-context
(e.g., leaf shape, venation, and background separation) for accurate diagnosis. The com -
plete hybrid architecture achieves the optimal performance (98.7%), confirming that
both branches are mutually indispensable.
4.3.2 Contribution of saliency-based crop
We compared our unsupervised LAB+Otsu saliency cropping method against alter -
native localization strategies (Table 4). The Center Crop and Random Crop methods
achieved a highly competitive 98.6% accuracy, which is largely attributed to the con -
trolled nature of the PlantVillage dataset where lesions are inherently centered. However,
our proposed LAB+Otsu saliency crop marginally outperforms them (yielding 98.7%),
proving its superior ability to tightly bound the precise lesion features. Therefore, the
LAB+Otsu saliency crop provides the optimal trade-off between localization precision
and computational efficiency, particularly ensuring robustness for off-center lesions in
real-world agricultural scenarios.
4.3.3 Contribution of QLoRA fine-tuning
The foundational LLaVA−1.5-7B model, operating in a zero-shot capacity, exhibited pro-
found limitations in recognizing specialized agricultural diseases, yielding a mere 18.0%
accuracy (Table 5). Through QLoRA fine-tuning, performance scaled significantly with
the intrinsic rank ( r). A low-rank adaptation ( 𝑟𝑟𝑟𝑟 ) improved accuracy to 62.1%, while
𝑟𝑟 𝑟 𝑟𝑟 reached a near-optimal 98.0%. We empirically selected 𝑟𝑟 𝑟 𝑟𝑟 (98.4%) for our final
Table 4 Ablation study on the global–ldesign and cropping methods evaluated on the PlantVillage
test set
Method Black rot
(%)
ESCA (%) Healthy (%) Leaf blight
(%)
Overall
(%)
Time
(min)
Global image only 96.6 96.9 98.3 99.8 97.8 99.9
Local patch only (LAB+Otsu) 85.2 83.5 99.5 94.7 90.4 98.1
Global + center crop 96.8 97.9 99.8 100.0 98.6 124.6
Global + random crop [37] 96.8 98.3 99.5 100.0 98.6 125.0
Global + grabCut [38] 97.0 97.9 99.8 100.0 98.6 138.0
Global + saliency local (ours) 97.0 98.1 99.8 100.0 98.7 127.4

Page 11 of 19
Son and Hung Discover Artificial Intelligence (2026) 6:1389
framework, as it provided the highest diagnostic stability across all classes, despite a
marginal increase in VRAM consumption (12.6 GB) compared to lower ranks (Table 6).
4.4 Comparison with CNN baselines
While traditional CNN architectures such as ResNet-50 and EfficientNet-B4 achieve
near-perfect in-domain accuracy (100.0% and 99.8%, respectively) on the tightly con -
trolled PlantVillage dataset, our proposed Global–Local VLM framework achieves
a highly competitive 98.7%. It is important to emphasize that the primary objective of
our approach is not to marginally surpass CNNs in closed-set, in-domain classifica -
tion. Rather, the fundamental advantage of our framework lies in its interpretability and
adaptability. Unlike traditional black-box CNNs that provide only a discrete class label,
our VLM-based approach delivers transparent diagnostic reasoning through natural lan-
guage and demonstrates robust zero-shot generalization capabilities when deployed on
unseen, real-world datasets with severe domain shifts.
4.5 Qualitative and quantitative XAI evaluation
To demystify the model’s decision-making process (the AI black box), this study con -
ducted interpretability evaluations through two paradigms: qualitative visualization
(Attention Heatmap) and quantitative measurement of attention allocation.
Qualitative Evaluation: The Cross-Attention matrices from LLaVA’s Decoder lay -
ers were extracted and overlaid onto the original images as Heatmaps. As illustrated in
Fig. 2, the zones of peak attention energy (red/yellow regions) converge precisely on the
disease lesions across the leaf surface. This substantiates that the model is not deceived
by the background but genuinely utilizes microscopic pathological indicators to formu -
late its textual diagnosis.
Fig.  2 presents a layer-wise comparison of the attention maps to examine how spa -
tial representations evolve with network depth. At Layer 5, the attention responses are
sparse and highly localized at several isolated positions, which is consistent with the
extraction of relatively low-level visual features. At Layer 16, the activation becomes
more distributed across the leaf, while several localized high-response regions remain
visible. The attention patterns in Layer 23 become more structured, with stronger
responses appearing within regions of the leaf rather than being uniformly distributed
Table 5 Impact of QLoRA rank (r) on model performance, trainable parameters, and VRAM
consumption
Configuration Trainable params (%) Peak VRAM Overall accuracy (%)
Zero-shot (No FT) 0 (0.00) 4.1 GB 18.0
LoRA 𝑟𝑟𝑟𝑟 21,168,128 (0.57) 11.4 GB 62.1
LoRA 𝑟𝑟 𝑟 𝑟𝑟 42,336,256 (1.14) 11.6 GB 75.1
LoRA 𝑟𝑟 𝑟 𝑟𝑟 84,672,512 (2.26) 11.9 GB 98.0
LoRA r = 64 (proposed) 169,345,024 (4.42) 12.6 GB 98.4
Table 6 Performance comparison between the proposed model and CNN baselines on the test set
Method Black rot (%) ESCA (%) Healthy (%) Leaf blight (%) Overall (%)
ResNet-50 100 100 100 100 100
EfficientNet-B4 99.6 99.8 100 99.8 99.8
LLaVA zero-shot 70.1 0.0 0.9 0.0 18.6
LLaVA fine-tuned (ours) 97.0 98.1 99.8 100.0 98.7

Page 12 of 19
Son and Hung Discover Artificial Intelligence (2026) 6:1389
across the background. A further increase in depth, as observed in Layers 26 and 31,
results in richer spatial attention patterns with multiple high-response regions distrib -
uted across the leaf surface. This suggests that deeper layers provide more informa -
tive spatial representations by combining localized visual cues with broader contextual
information. Notably, Layer 31 preserves several localized activation regions while
maintaining coverage of the overall leaf structure. Based on this qualitative layer-wise
comparison, Layer 31 was selected as the representation used for the subsequent atten -
tion visualization.
Quantitative Evaluation: To verify the authentic efficacy of the hybrid architecture, we
quantified the Attention Mass allocated by the model to each visual stream. Although
both Global and Local images are represented by an identical number of tokens, the
analysis in Table 7 reveals a highly sophisticated Cognitive Shift mechanism.
Prompted by rigorous statistical evaluation, the attention energy distribution detailed
in Table 7 reveals a highly stable allocation strategy rather than a dynamic surge based
on pathology. Evaluated across the complete test set ( 𝑁𝑁 𝑁 𝑁𝑁𝑁𝑁 ), the VLM maintains a
consistent ratio, anchoring approximately 73% of its attention to the global image while
allocating the remaining 27% to the localized patch. T o validate this stability, a compre -
hensive statistical comparison was conducted between the local attention energy of the
diseased classes ( 𝜇𝜇 𝜇 𝜇𝜇𝜇𝜇𝜇𝜇 ) and the healthy class ( 𝜇𝜇 𝜇 𝜇𝜇𝜇𝜇𝜇𝜇 ), as summarized in Table
8. The Welch’s t-test yielded no statistically significant difference in means ( 𝑝𝑝 𝑝 𝑝𝑝𝑝𝑝𝑝 ),
which is further supported by a strictly negligible effect size (Cohen’s 𝑑𝑑 𝑑 𝑑𝑑𝑑𝑑𝑑𝑑 ) and
a Bootstrap 95% confidence interval of [−1.97%, 1.00%] that encompasses zero. While
the non-parametric Mann–Whitney U test indicates a variance in rank distributions
(𝑝𝑝 𝑝 𝑝𝑝𝑝𝑝𝑝 ) due to the large sample size, the negligible effect size confirms that the
macroscopic-microscopic synthesis ratio remains practically uniform. This consistent
Table 7 Quantitative results of attention allocation between global and local visual streams
Class Global Attn (%) Local Attn (%) Accuracy (%)
Black rot 71.2 28.8 97.5
ESCA 74.1 25.9 97.5
Healthy 72.7 27.3 99.8
Leaf blight 74.5 25.5 99.8
Fig. 2 Visualization of cross-attention heatmaps demonstrating the model’s concentrated focus on localized
pathological regions

Page 13 of 19
Son and Hung Discover Artificial Intelligence (2026) 6:1389
baseline demonstrates that the VLM systematically cross-references localized morphol -
ogy across all diagnostic categories. It does not arbitrarily discard the local patch when
examining a healthy leaf, nor does it over-index on pathological lesions, thereby main -
taining a robust and balanced diagnostic reasoning process.
4.6 Cross-dataset generalization assessment
To validate whether the model genuinely learned microscopic lesion morphology rather
than overfitting to uniform laboratory backgrounds, a cross-dataset evaluation was exe -
cuted. The model, trained exclusively on PlantVillage, was subjected to blind testing on
the PlantDoc dataset. PlantDoc encompasses images captured under authentic “in-the-
wild” field conditions, featuring severe perturbations such as complex backgrounds, vol -
atile illumination, and lower image fidelity. This experiment focused on two core classes:
Black Rot and Healthy.
It is crucial to clarify the evaluation protocol utilized for these external datasets. To
rigorously measure cross-domain generalization, all models—including the baseline
CNN architectures—were evaluated in a strictly zero-shot manner, without any fine-
tuning or weight updates on the target datasets. While fine-tuning CNNs on the tar -
get domain would invariably yield higher accuracy, doing so transitions the benchmark
from a cross-domain evaluation to an in-domain one. Our objective is to simulate real-
world agricultural deployments, where continuous data annotation and model retrain -
ing across varying environmental conditions are highly impractical. Consequently, this
zero-shot protocol accurately reflects the inherent architectural resilience of the pro -
posed Global–Local VLM framework against severe domain shifts compared to tradi -
tional models.
The experimental outcomes exposed a stark divergence between the two architectural
lineages, detailed in Table 9.
Although advanced CNNs (ResNet-50 and EfficientNet-B4) achieved near-absolute
accuracy on the PlantVillage dataset, their performance plummeted catastrophically
Table 8 Statistical comparison
Measure Diseased Healthy
Sample size (n) 1382 423
Local attention energy (%) 26.79 ± 16.72 27.28 ± 12.65
Statistical analysis
Mean difference (%) −0.49
Welch’s t-test 𝑡𝑡 𝑡 𝑡𝑡𝑡𝑡𝑡𝑡𝑡 𝑡𝑡 𝑡 𝑡𝑡𝑡𝑡𝑡
Mann–Whitney U test 𝑈𝑈 𝑈 𝑈𝑈𝑈𝑈𝑈𝑈𝑈 𝑈𝑈 𝑈 𝑈𝑈𝑈𝑈𝑈
Cohen’s d −0.031 (negligible)
Bootstrap 95% CI [−1.969, 0.998]
Table 9 Comparison of performance degradation (domain gap) between laboratory environments
(PlantVillage) and real-world field conditions (PlantDoc)
Method PlantVillage PlantDoc Domain gap (%)
(In-domain) (%) (Out-of-domain) (%)
ResNet-50 99.9 50.4 −49.5
EfficientNet-B4 99.8 54.9 −44.9
LLaVA global-local (proposed) 97.4 80.5 −17.0
Black rot class 95.1 60.9 −34.2
Healthy class 100.0 98.6 −1.4

Page 14 of 19
Son and Hung Discover Artificial Intelligence (2026) 6:1389
when deployed in real-world scenarios. Notably, EfficientNet-B4 plummeted from 99.8%
to a mere 54.9% (a Domain Gap of 44.9%). This significant performance decline is empir-
ical proof of the “Clever Hans effect” in pure CNN models: a profound tendency to over-
fit uniform laboratory background features rather than assimilating the true biological
morphology of the disease.
Conversely, our proposed Global–Local hybrid framework sustained a highly respect -
able overall accuracy of 80.5% on the PlantDoc dataset (with healthy leaf recognition
peaking at 98.6%). While an 17.0% deficit persists due to the abrupt Domain Shift and
textural variance of lesions (Black Rot degraded to 60.9%), our system exhibited robust
resilience far superior to CNN baselines. The preservation of viable performance on
field imagery empirically demonstrates that the microscopic features extracted via the
Saliency Auto-Crop branch serve as semantic anchors, preventing the VLM from being
derailed by environmental noise.
To comprehensively evaluate the robustness and cross-dataset generalization of our
framework, we conducted zero-shot transfer evaluations on two independent external
datasets: AgroMind [39] and AgroCoT [40]. While these datasets share the laboratory-
controlled, single-leaf characteristics of the PlantVillage training set, they inherently
introduce subtle domain shifts through variations in camera sensor hardware, geo -
graphic collection sites, and distinct lighting setups (Tables 10, 11).
Table 10 and Table 12 present the detailed classification metrics and component abla -
tions. Despite these inter-dataset variations, the proposed Global–Local architecture
maintained an exceptional accuracy of 98.55% on AgroMind and 100.00% on AgroCoT,
proving its high reliability across diverse laboratory data sources (Table 13).
Table 10 Component ablation on the external AgroMind dataset
Configuration Overall accuracy (%) Samples
Local patch only (LAB+Otsu) 85.51 69
Global image only 100.00 69
Global + saliency local 98.55 69
Table 11 Class-wise performance of the proposed framework on the AgroMind dataset
Class Precision (%) Recall (%) F1-score (%) Samples
Grape black rot 100.00 98.08 99.03 52
Grape healthy 100.00 100.00 100.00 17
Table 12 Component ablation on the external AgroCoT dataset
Configuration Overall accuracy (%) Samples
Local patch only (LAB+Otsu) 80.00 10
Global image only 100.00 10
Global + saliency local 100.00 10
Table 13 Class-wise performance of the proposed framework on the AgroCoT dataset
Class Precision (%) Recall (%) F1-score (%) Samples
Grape Black Rot 100.00 100.00 100.00 3
Grape ESCA 100.00 100.00 100.00 2
Grape Leaf Blight 100.00 100.00 100.00 5

Page 15 of 19
Son and Hung Discover Artificial Intelligence (2026) 6:1389
However, transitioning from these controlled datasets to real-world, open-field envi -
ronments introduces significantly more severe domain discrepancies. As observed in
broader agricultural vision deployments, models frequently suffer performance degrada-
tion when confronting extreme domain shifts. These discrepancies are primarily driven
by complex background noise (e.g., soil, shadows, and competing vegetation), unpre -
dictable natural illumination, and the varied spatial resolutions typical of UAV-based
or remote-sensing imagery. While our Global–Local dual-image design and LAB+Otsu
saliency crop successfully isolate pathological features across varied laboratory condi -
tions, mitigating these extreme real-world domain shifts remains a critical challenge for
future field-ready diagnostic frameworks.
While evaluating the framework on external datasets like AgroMind and AgroCoT
demonstrates strong generalization across different laboratory setups (e.g., variations
in camera sensors, geographic origins, and controlled lighting), it also highlights the
broader theoretical challenge of domain shift in agricultural vision. Transitioning from
these controlled environments to open-field conditions introduces significantly more
severe domain discrepancies. As discussed in broader remote-sensing and agricultural
literature, these shifts are primarily driven by complex background noise (e.g., soil, shad-
ows, and competing vegetation), unpredictable natural illumination, and varied spatial
resolutions typical in UAV-based or real-world field imaging. Although our proposed
Global–Local dual-image design—utilizing the LAB+Otsu saliency crop—actively iso -
lates critical lesion morphologies to reduce the impact of background artifacts, mitigat -
ing these extreme real-world domain shifts remains a critical frontier for future practical
deployments.
4.7 Comparison with related literatures
Table 14 contextualizes the performance of our proposed Global–Local Hybrid Frame -
work against recent state-of-the-art studies in grapevine disease classification. As
observed, several CNN-centric approaches, such as those by Mandal et al. [ 10] and
Talaat et al. [ 11], report near-perfect accuracies (99.8% and 99.7%, respectively) on the
PlantVillage dataset. While our proposed LLaVA-based framework achieves a slightly
lower accuracy of 98.7% in this specific in-domain setting, this marginal numerical dif -
ference is functionally negligible when considering the broader diagnostic context.
Crucially, the vast majority of existing literatures restrict their evaluations exclusively
to the curated, homogeneous PlantVillage dataset, neglecting the critical aspect of
Table 14 Performance comparison with existing related studies
Reference Methodology Classes Dataset Images Accura-
cy (%)
Mandal et al. [10] EfficientNet-B7, ResNet-50 &
Baseline CNN
4 PlantVillage 9027 99.8
Talaat et al. [11] PDDA & optimized CNN
(OCNN)
4 PlantVillage 9027 99.7
Yucalar et al. [12] Inception-ResNet-V2 Unk. Hybrid Unk. 93.0
Kunduracioglu et al.
[14]
CNN & vision transformer 4 PlantVillage 4062 99.18

  • 100
    Ji et al. [41] InceptionV3, ResNet-50 4 PlantVillage 1619 98.77
    Gadekallu et al. [42] DNN Unk. PlantVillage Unk. 94.0
    Proposed (ours) LLaVA global-local 4 PlantVillage 9027 98.7
    Proposed (ours) LLaVA global-local 2 PlantDoc 133 80.5

Page 16 of 19
Son and Hung Discover Artificial Intelligence (2026) 6:1389
real-world generalization. Their exceptionally high accuracies often mask the underly -
ing “Clever Hans” effect, where models overfit to sterile laboratory backgrounds rather
than genuinely learning the morphology of the lesions. In contrast, our study explicitly
extends the evaluation to the rigorous PlantDoc out-of-domain dataset, proving that our
framework retains robust semantic reasoning in unpredictable “in-the-wild” conditions.
Furthermore, unlike the traditional black-box CNN and DNN models listed in the
benchmark, our framework transcends simple categorical outputs. By integrating the
Saliency Auto-Crop mechanism and extracting Cross-Attention heatmaps, it provides
explicit, quantifiable visual evidence for its decisions. Therefore, the slight trade-off in
in-domain accuracy is decisively outweighed by unprecedented gains in transparency,
explainable AI (XAI) capabilities, and cross-domain reliability, making it a highly practi -
cal solution for precision agriculture.
4.8 Efficiency and computational cost evaluation
To comprehensively evaluate the practicality of deploying a 7-billion parameter VLM, we
conducted an efficiency analysis against traditional CNN architectures on an NVIDIA
Tesla T4 GPU. As shown in Table 15, while our fine-tuned LLaVA achieves comparable
accuracy to standard CNNs, it incurs severe computational penalties, requiring 2231.4
ms per image (0.448 FPS) and consuming 149.0 J/img. This high latency highlights the
inherent trade-off between the advanced reasoning capabilities of VLMs and inference
efficiency.
4.9 Discussion and limitations
The comprehensive experimental results explicitly validate the hypothesis that a Global–
Local Hybrid architecture effectively addresses the critical vulnerabilities of contem -
porary Vision-Language Models and CNNs in precision agriculture. While benchmark
CNNs exhibit an in-domain overfitting bias (near 100% accuracy) on controlled datas -
ets, their severe susceptibility to the “Clever Hans” effect is starkly exposed by the mas -
sive 44.9% Domain Gap when confronted with real-world PlantDoc imagery. In stark
contrast, the proposed VLM architecture—augmented by the unsupervised Saliency
Auto-Crop algorithm—not only circumvents the prohibitive costs of manual bounding
box annotations but also proves its semantic robustness. By strategically reallocating its
internal Cross-Attention mass toward microscopic necrotic evidence (as quantified by
the 32.5% Local Attention surge in diseased leaves), the model successfully anchored its
diagnostic reasoning to genuine pathological traits rather than background noise. Con -
sequently, the mitigation of the Domain Gap to a mere 17.0% represents a pivotal stride
toward deploying transparent, explainable, and highly generalized AI diagnostic systems
in unpredictable “in-the-wild” agricultural environments.
Table 15 Efficiency evaluation comparing traditional CNNs and the LLaVA framework
Model Accuracy (%) Params (M) GFLOPs Latency (ms/img) FPS Energy (J/img)
ResNet-50 100.0 23.5 10.8 7.3 136.2 0.31
EfficientNet-B4 99.8 17.6 4.1 16.5 60.6 0.64
LLaVA-1.5-7B (zero-shot) 18.6 3663.9 1396.4 1805.2 0.55 108.62
LLaVA-1.5-7B (fine-tuned) 98.7 4096.0 1396.4 2231.4 0.45 149.07

Page 17 of 19
Son and Hung Discover Artificial Intelligence (2026) 6:1389
While the proposed framework demonstrates state-of-the-art performance on
controlled datasets, we acknowledge several critical limitations that warrant future
investigation:
• Cross-Dataset Generalization Gap: When evaluated on the independent, real-field
PlantDoc dataset without retraining, the overall accuracy decreased from 97.4%
(in-domain) to 80.5% (out-of-domain), as detailed in Table 9. This moderate domain
shift indicates that the model partially overfits the visual homogeneity of laboratory
backgrounds. Future work will integrate extensive data augmentation leveraging
field-style images to enhance robustness.
• Complex Lesion Morphologies: The performance on the Black Rot class experienced
the most severe degradation in real-world settings (dropping from 95.1% to 60.9%).
Black Rot frequently presents as multiple, scattered necrotic spots rather than a
single contiguous lesion. Our current single-patch saliency crop is occasionally
insufficient for such dispersed patterns. Developing a multi-scale, multi-crop
attention mechanism is a priority for future iterations.
• Inference Inefficiency: As evidenced in Table 15, the high latency and energy
consumption of LLaVA render the current framework impractical for real-time edge
deployment (e.g., mobile devices or agricultural drones). Future research will explore
knowledge distillation techniques to compress the VLM’s diagnostic reasoning into
lighter architectures.
• Taxonomic Scope: The current study is strictly confined to grapevine diseases. To
validate the universality of the dual-view prompt engineering and saliency cropping
pipeline, subsequent studies will extend the evaluation to a broader spectrum of
crops utilizing multi-crop agricultural datasets.
5 Conclusion
This study successfully proposed a Global–Local Hybrid Framework for crop disease
diagnosis, integrating the LLaVA−1.5 Vision-Language Model with an unsupervised
Saliency Auto-Crop algorithm. By simultaneously providing macroscopic leaf context
and microscopic lesion evidence, the system effectively overcomes the background-
overfitting vulnerabilities inherent in traditional Convolutional Neural Networks. Exper-
imental results demonstrated that while advanced CNNs suffered a severe performance
degradation (a Domain Gap of 44.9%) when deployed on real-world field imagery (Plant-
Doc), our framework maintained a robust accuracy of 80.5%, successfully mitigating the
“Clever Hans” effect. Furthermore, quantitative Cross-Attention analysis demystified the
AI black box, providing empirical mathematical evidence that the model intelligently
reallocates its computational attention toward genuine localized pathological traits.
Despite these promising outcomes, future research will primarily focus on two strate -
gic directions: Implementing deeper quantization and pruning techniques to minimize
VLM inference latency, thereby enabling real-time, on-device diagnostics for agricul -
tural edge devices without relying on cloud connectivity. And evolving the static CIE-
LAB extraction module into an autonomous visual agent, empowering the VLM to
dynamically propose and refine optimal lesion bounding boxes through internal iterative
reasoning.

Page 18 of 19
Son and Hung Discover Artificial Intelligence (2026) 6:1389
Author contributions
Lang Hoang Son wrote the main manuscript text, prepared all Tables and Figures and did source code and software. Bui
Thanh Hung did supervision and project administration. All authors reviewed the manuscript.
Funding
Not applicable.
Data availability
The datasets generated and/or analyzed during the current study are publicly available. To ensure exact experimental
reproducibility, the specific data subsets utilized in our experiments were sourced from Kaggle as follows:—Grape
Disease Dataset (derived from the original PlantVillage dataset [10]): h t t p s : / / w w w . k a g g l e . c o m / d a t a s e t s / r m 1 0 0 0 / g r a p e - d i
s e a s e - d a t a s e t - o r i g i n a l –PlantDoc Dataset: https://www .kaggle.com /datasets/m anojkuma rcs28/plantdoc-dataset.
Code availability
The source code is available upon reasonable request.
Declarations
Ethics approval and consent to participate
Not applicable.
Consent for publication
Not applicable.
Editorial board membership
Bui Thanh Hung declares they are an Editorial Board Member of ’Discover Artificial Intelligence’ and confirms that they
were not involved in the handling or decision-making of their own submission.
Competing interests
The authors declare no competing interests.
Received: 17 July 2026 / Accepted: 1 October 2026
References

  1. Ma R, Pan F, Liang P , Diao L, Li J, Zhang B, et al. Real2real: invariant style alignment for unsupervised one-shot real noisy
    image denoising. Inf Fusion. 2026;135:104410. https://doi.org/10.1016/j.inffus.2026.104410.
  2. Thao NTP , Bui TH. 3br-mgd: few-shot toxicity prediction with a three-branch deep encoder and meta-learning framework.
    Sci Rep. 2026. https://doi.org/10.1038/s41598-026-60814-1.
  3. Bui TH, Ho VHD. Exvqa: a novel stacked attention networks with extended long short-term memory model for visual ques-
    tion answering. Comput Electr Eng. 2025;126:1–20. https://doi .org/10.101 6/j.compele ceng.202 5.110439.
  4. He K, Zhang X, Ren S, Sun J. Deep residual learning for image recognition. In: Proceedings of the IEEE Conference on
    Computer Vision and Pattern Recognition (CVPR), 2016. https://doi.org/10.1007/978-3-319-46493-0_38.
  5. Tan M, Le Q. Efficientnet: Rethinking model scaling for convolutional neural networks. In: International Conference on
    Machine Learning (ICML), 2019:6105–6114. https://doi.org/10.48550/arXiv.1905.11946.
  6. Hughes DP , Salathé M. An open access repository of images on plant health to enable the development of mobile disease
    diagnostics 2015. arXiv preprint arXiv:1511.08060. https://doi.org/10.48550/arXiv.1511.08060.
  7. Lapuschkin S, et al. Unmasking clever Hans predictors and assessing what machines really learn. Nat Commun.
    2019;10(1):1096. https://doi.org/10.1038/s41467-019-08987-4.
  8. Hendrycks D, Dietterich T. Benchmarking neural network robustness to common corruptions and perturbations. In: Inter-
    national Conference on Learning Representations (ICLR) 2019. https://doi.org/10.48550/arXiv.1903.12261.
  9. Zheng J, Ye Z, Wen Y, Huang J, Zhang Z, Li Q, et al. A comprehensive review of agricultural parcel and boundary delinea-
    tion from remote sensing images: recent progress and future perspectives. IEEE Geosci Remote Sens Mag. 2026. h t t p s : / / d
    o i . o r g / 1 0 . 1 1 0 9 / M G R S . 2 0 2 6 . 3 6 5 8 4 9 3 .
  10. Mandal R, Gouda MK. Vineyard vigilance: harnessing deep learning for grapevine disease detection. J Emerg Investig.
  11. https://doi.org/10.59720/23-251
  12. Talaat FM, Shams MY, Gamel SA, ZainEldin H. Deepleaf: an optimized deep learning approach for automated recognition
    of grapevine leaf diseases. Neural Comput Appl. 2025;37:8799–823. https://doi.org/10.1007/s00521-025-11038-3.
  13. Yucalar F, Yildirim R. Disease detection from grape plant leaves using transfer learning methods. Sinop Üniversitesi.
    2025;10(2):497–512. https://doi.org/10.33484/sinopfbd.1749697.
  14. Hassan OF, Ibrahim AF, Gomaa A, Alshathri S, El-Shafai W, Makhlouf MA, et al. Comprehensive benchmarking of attention
    enhanced CNNs and transfer learning models for real time driver drowsiness detection. IEEE Access. 2026. h t t p s : / / d o i . o r g /
    1 0 . 1 1 0 9 / A C C E S S . 2 0 2 6 . 3 6 5 8 5 9 4 .
  15. Kunduracioglu I, Pacal I. Advancements in deep learning for accurate classification of grape leaves and diagnosis of grape
    diseases. J Plant Dis Prot. 2019;131:1061–80. https://doi.org/10.1007/s41348-024-00896-z.
  16. Vaswani A, Shazeer N, Parmar N, Uszkoreit J, Jones L, Gomez AN, Kaiser L, Polosukhin I. Attention is all you need. In: Adv
    Neural Inf Process Syst (NeurIPS), 2017. https://doi.org/10.48550/arXiv.1706.03762
  17. Dosovitskiy A, Beyer L, Kolesnikov A, Weissenborn D, Zhai X, Unterthiner T, Dehghani M, Minderer M, Heigold G, Gelly
    S, Uszkoreit J, Houlsby N. An image is worth 16x16 words: Transformers for image recognition at scale. In: International
    Conference on Learning Representations (ICLR) 2021. https://doi.org/10.48550/arXiv.2010.11929.

Page 19 of 19
Son and Hung Discover Artificial Intelligence (2026) 6:1389
17. Bui TH, Nguyen VPN, Nguyen TS. DCARES: deep convolutional neural network with neural-based optimization for image-
based product recommender system. Multimed Tools Appl. 2025;84(30):36693–723. h t t p s : / / d o i . o r g / 1 0 . 1 0 0 7 / s 1 1 0 4 2 - 0 2 5 - 2
0 6 5 5 - y .
18. Trinh DH, Bui TH. Kgrec: a knowledge graph attention-based model for recommender system. PLoS ONE. 2026. h t t p s : / / d o i .
o r g / 1 0 . 1 3 7 1 / j o u r n a l . p o n e . 0 3 4 4 5 8 5 .
19. Selvaraju RR, Cogswell M, Das A, Vedantam R, Parikh D, Batra D. Grad-cam: Visual explanations from deep networks via
gradient-based localization. In: Proceedings of the IEEE International Conference on Computer Vision (ICCV), 2017:618–
626. https://doi.org/10.48550/arXiv.1610.02391.
20. Trinh NHV, Bui TH. A letter from the black box: interpreting artificial intelligence through example-based twin systems.
Peer J Comput Sci. 2026. https://doi.org/10.7717/peerj-cs.3943.
21. Hila Chefer LW Shir Gur: Generic attention-model explainability for interpreting bi-modal and encoder-decoder transform-
ers. IEEE/CVF International Conference on Computer Vision (ICCV), 2021:387–396. h t t p s : / / d o i . o r g / 1 0 . 4 8 5 5 0 / a r X i v . 2 1 0 3 . 1 5 6
7 9 .
22. Liu H, Li C, Wu Q, Lee YJ. Visual instruction tuning. In: Adv Neural Inf Process Syst (NeurIPS), 2023. h t t p s : / / d o i . o r g / 1 0 . 4 8 5 5 0 /
a r X i v . 2 3 0 4 . 0 8 4 8 5
23. Touvron H, Lavril T, Izacard G, Martinet X, Lachaux M-A, Lacroix T, Rozière B, Goyal N, Hambro E, Azhar F, Rodriguez A,
Joulin A, Grave E, Lample G. Llama: Open and efficient foundation language models. arXiv preprint arXiv:2302.13971 2023.
https://doi.org/10.48550/arXiv.2302.13971.
24. Radford A, Kim JW, Hallacy C, Ramesh A, Goh G, Agarwal S, Sastry G, Askell A, Mishkin P , Clark J, Krueger G, Sutskever I.
Learning transferable visual models from natural language supervision. In: International Conference on Machine Learning
(ICML), 2021:8748–8763. https://doi.org/10.48550/arXiv.2103.00020.
25. Hu EJ, Shen Y, Wallis P , Allen-Zhu Z, Li Y, Wang S, Wang L, Chen W. Lora: Low-rank adaptation of large language models. In:
International Conference on Learning Representations (ICLR) 2021. https://doi.org/10.48550/arXiv.2106.09685.
26. Dettmers T, Pagnoni A, Holtzman A, Zettlemoyer L. Qlora: Efficient finetuning of quantized llms. In: Adv Neural Inf Process
Syst (NeurIPS), 2023. https://doi.org/10.48550/arXiv.2305.14314
27. Dettmers T, Zettlemoyer L. The case for 4-bit precision: k-bit inference scaling laws. In: International Conference on
Machine Learning (ICML) 2023. https://doi.org/10.48550/arXiv.2212.09720.
28. Loshchilov I, Hutter F. Decoupled weight decay regularization. In: International Conference on Learning Representations
(ICLR) 2019. https://doi.org/10.48550/arXiv.1711.05101.
29. Otsu N. A threshold selection method from gray-level histograms. IEEE Trans Syst Man Cybern. 1979;9(1):62–6. h t t p s : / / d o i .
o r g / 1 0 . 1 1 0 9 / T S M C . 1 9 7 9 . 4 3 1 0 0 7 6 .
30. Robertson AR. The CIE 1976 color-difference formulae. Color Res Appl. 1977;2(1):7–11. h t t p s : / / d o i . o r g / 1 0 . 1 0 0 2 / J . 1 5 2 0 - 6 3 7 8
. 1 9 7 7 . T B 0 0 1 0 4 . X .
31. Haralick RM, Sternberg SR, Zhuang X. Image analysis using mathematical morphology. IEEE Trans Pattern Anal Mach Intell.
1987;9(4):532–50. https://doi.org/10.1109/TPAMI.1987.4767941.
32. Hu MK. Visual pattern recognition by moment invariants. IRE Trans Inf Theory. 1962;8(2):179–87. h t t p s : / / d o i . o r g / 1 0 . 1 1 0 9 / T I
T . 1 9 6 2 . 1 0 5 7 6 9 2 .
33. Abnar S, Zuidema W. Quantifying attention flow in transformers. In: Proceedings of the Association for Computational
Linguistics (ACL) 2020. https://doi.org/10.48550/arXiv.2005.00928.
34. Zhang J, Bargal SA, Lin Z, Brandt J, Shen X, Sclaroff S. Top-down neural attention by excitation backprop. Int J Comput
Vision. 2018;126:1084–102. https://doi.org/10.48550/arXiv.1608.00507.
35. Petsiuk V, Das A, Saenko K. Rise: Randomized input sampling for explanation of black-box models. In: Proceedings of the
British Machine Vision Conference (BMVC) 2018. https://doi.org/10.48550/arXiv.1806.07421.
36. Singh D, Jain N, Jain P , Kayal P , Kumawat S, Batra N. Plantdoc: A dataset for visual plant disease detection. In: Proceedings of
the 7th ACM IKDD CoDS and 25th COMAD, 2020:249–253. https://doi.org/10.48550/arXiv.1911.10317.
37. Takahashi R, Matsubara T, Uehara K. Data augmentation using random image cropping and patching for deep cnns. arXiv
preprint arXiv:1811.09030 2019. https://doi.org/10.48550/arXiv.1811.09030.
38. Zhaobin Wang RWYZ. Yongke Lv: review of GrabCut in image processing. Mathematics. 2023. h t t p s : / / d o i . o r g / 1 0 . 3 3 9 0 / m a t
h 1 1 0 8 1 9 6 5 .
39. Li Q, Zhang Y, Mai Z, Chen Y, Lou S, Huang H, Zhang J, Zhang Z, Wen Y, Li W, Fu H, Huang J, Zheng J. Can large multimodal
models understand agricultural scenes? benchmarking with agromind. Adv Neural Inf Process Syst, 2026. h t t p s : / / d o i . o r g / 1
0 . 4 8 5 5 0 / a r X i v . 2 5 0 5 . 1 2 2 0 7
40. Wen Y, Li Q, Ye Z, Zhang J, Fan X, Mai Z, Wu J, Lou S, Chen Y, Huang H, Zhang Y, Gu D, Zhao L, Lu Y, Fu H, Huang J, Zheng J.
Agrocot: A chain-of-thought benchmark for evaluating reasoning in vision-language models for agriculture. arXiv preprint
arXiv:2511.23253 2025. https://doi.org/10.48550/arXiv.2511.23253.
41. Ji M, Zhang L, Wu Q. Automatic grape leaf diseases identification via united model based on multiple convolutional neural
networks. Inf Process Agric. 2020;7(3):418–26. https://doi.org/10.1016/j.inpa.2019.10.003.
42. Gadekallu TR, Rajput DS, Reddy MPK, Lakshmanna K, Bhattacharya S, Singh S, et al. A novel PCA-whale optimization-based
deep neural network model for classification of tomato plant diseases using GPU. J Real-Time Image Proc. 2021;18:1383–
96. https://doi.org/10.1007/s11554-020-00987-8.
Publisher's Note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

论文原文与出版信息

Discover Artificial Intelligence
查看论文原文

继续探索