论文信息
论文解读
AI 辅助整理- 方法
- 结合ResNet-18、RNN、STN,用PPO训练主动策略,并加入监督对比学习
- 发现
- 在严重退化下,RAVA准确率77.0%,远超ResNet-50的26.3%,且参数仅约12M。
- 机会点
- 可探索将主动视觉与对比学习结合,应用于其他农业任务,如害虫检测或果实计数,在复杂田间环境下提升鲁棒性。
论文摘要
深度学习模型在受控实验室环境中进行植物病害分类时已能达到近乎完美的准确率,然而,它们在真实农业环境中的部署却因“部署鸿沟”而严重受阻——即对传感器噪声、运动模糊和遮挡等环境干扰存在关键脆弱性。为弥合这一鸿沟,我们提出了循环主动视觉智能体(RAVA),将病害检测任务构建为部分可观测马尔可夫决策过程(POMDP)。与被动地全局处理图像的卷积神经网络(CNNs)不同,RAVA模拟了人类农学家的主动检查行为。我们的架构将轻量级ResNet-18骨干网络与循环神经网络(RNN)及空间变换网络(STN)相集成。在近端策略优化(PPO)的驱动下,该智能体学习一种序列策略,以智能地导航并放大信息丰富的“瞥视”区域,从而有效避开背景杂乱干扰。为稳定强化学习过程并强制实现噪声不变的特征表示,我们引入了一种融合监督对比学习(SupCon)的混合目标函数。在结合PlantVillage和PlantDoc数据集的综合实验中,RAVA在极端条件下展现出压倒性优势。在“严重退化”压力测试中,标准ResNet-50的准确率骤降至26.3%,而我们的主动智能体则保持了稳健的77.0%。在极端噪声和遮挡条件下,RAVA保持了54.6%的准确率,而基线模型仅为17.2%。值得注意的是,这种鲁棒性仅以约1200万参数即可实现——远少于大规模视觉Transformer——这证明了主动视觉注意力结合对比学习,为面向田间部署的精准农业提供了一条计算高效且高度稳健的路径。
全文
Scientific ReportsARTICLE | Article in Press
Scientific Reports https://doi.org/10.1038/s41598-026-67160-2
Scientific Reports
This Article in Press is shared early to give you faster access to new research. It is citable and carries a permanent DOI.
The final edited version will replace it automatically.
RAVA: a robust recurrent active vision agent for plant
disease diagnosis under severe environmental noise
Nima Saeedi · Sana Gholinavaz · Sina Samadi Gharehveran · Kimia Shirini ·
Adel Taheri Hajivand
Received: 31 March 2026 / Accepted: 12 August 2026
© The Author(s) 2026
Abstract
Deep learning models have achieved near-perfect accuracy in plant disease classification within controlled lab -
oratory settings; however, their deployment in real-world agricultural environments is severely hindered by the
“deployment gap”—a critical vulnerability to environmental corruptions such as sensor noise, motion blur, and
occlusion. To bridge this gap, we propose the Recurrent Active Vision Agent (RA V A), formulating the disease
detection task as a Partially Observable Markov Decision Process (POMDP). Unlike passive Convolutional
Neural Networks (CNNs) that process images globally, RA V A mimics the active inspection behavior of human
agronomists. Our architecture integrates a lightweight ResNet-18 backbone with a Recurrent Neural Network
(RNN) and a Spatial Transformer Network (STN). Driven by Proximal Policy Optimization (PPO), the agent
learns a sequential policy to intelligently navigate and zoom in on informative “glimpses,” effectively bypass -
ing background clutter. To stabilize the reinforcement learning process and enforce noise-invariant feature rep -
resentations, we introduce a hybrid objective incorporating Supervised Contrastive Learning (SupCon). Com -
prehensive experiments on a combined PlantVillage and PlantDoc dataset demonstrate RA V A’s overwhelming
superiority under extreme conditions. In a “Severe Degradation” stress test, standard ResNet-50 accuracy
collapses to 26.3%, whereas our active agent maintains a robust 77.0%. Under extreme noise and occlusion,
RA V A preserves 54.6% accuracy compared to the baseline’s 17.2%. Notably, this resilience is achieved with
merely ∼12M parameters—significantly fewer than large-scale Vision Transformers—proving that active visual
attention, coupled with contrastive learning, offers a computationally efficient and highly robust pathway for
field-ready precision agriculture.
Keywords Precision agriculture · Active vision · Reinforcement learning · Robustness · Contrastive
learning · Plant disease detection
Article in Press
Scientific Reports
https://doi.org/10.1038/s41598-026-67160-2
Introduction
The imperative to secure global food systems has never been more pressing. With the global population projected
to exceed 9.7 billion by 2050, agricultural production must increase by an estimated 70% to meet demand, all
while grappling with the intensifying effects of climate change, shrinking arable land, and diminishing water
resources1,2. Within this challenging context, plant diseases represent a formidable threat, responsible for destroy-
ing 20% to 40% of global crop yields annually3 . The economic repercussions are staggering, costing the global
economy approximately $220 billion each year4. Consequently, the rapid and accurate identification of phytopa-
thologies has transitioned from an agronomic best practice to a critical survival necessity. Precision Agriculture
(PA)5 has emerged as the technological vanguard in this domain, leveraging Internet of Things (IoT) sensors,
Unmanned Aerial Vehicles (UA Vs)6 , and, most notably, Computer Vision (CV) to automate large-scale crop
health monitoring7.
Over the past decade, Deep Learning (DL) has revolutionized plant pathology. Convolutional Neural Net -
works (CNNs)8 such as ResNet, DenseNet, and EfficientNet have become standard architectures for image-based
disease classification, frequently reporting accuracy rates exceeding 99% on public benchmarks like PlantVil -
lage9,10. More recently, Vision Transformers (ViTs)11 have pushed these boundaries further by utilizing self-atten-
tion mechanisms12 to capture global context, ostensibly solving the locality bias of CNNs 13. However, a closer
inspection of the recent literature reveals a troubling “deployment gap.” While these state-of-the-art models excel
in in silico experiments under highly controlled laboratory conditions, their performance often plummets when
deployed in situ—within the unstructured and dynamic environments of real agricultural fields14,15.
The primary cause of this failure is the severe discrepancy between training and testing data distributions.
Standard datasets are typically heavily curated: images are captured under optimal lighting, with the target leaf
centered, flattened, and clearly visible against a uniform background. Conversely, real-world data acquired by
autonomous field robots or drones is inherently plagued by severe environmental noise 16. This includes vari -
able illumination, motion blur, and 17, most critically, physical occlusion 18. In a dense canopy, leaves overlap,
twist, and are frequently hidden behind stems or fruit. A standard “passive” vision model processes such an
image as a single static frame. When a significant portion of a leaf is occluded 19, a passive model attempts to
classify the image based on visible fragments mixed with background clutter, inevitably leading to catastrophic
misclassification20.
This limitation stems from the fundamental architecture of modern computer vision, which treats perception
as a static pattern-matching problem rather than a dynamic information-seeking process. This contrasts sharply
with biological vision systems. When a human expert, such as an agronomist, inspects a plant and encounters an
occluded or blurry leaf, they do not simply guess; they engage in active vision 21 . They adjust their viewpoint,
zoom in on specific regions, push aside obstructing foliage, and accumulate evidence over time before reaching a
diagnostic conclusion22. This active, sequential decision-making process is entirely absent in standard supervised
deep learning paradigms.
To bridge the chasm between static DL models and the dynamic requirements of field robotics, this study
advances the field of agricultural deep learning by fundamentally altering the disease detection paradigm from
static classification to dynamic visual search. We propose the Recurrent Active Vision23 Agent (RA V A), formu-
lating the plant disease diagnosis problem as a Partially Observable Markov Decision Process (POMDP) 24. By
integrating a lightweight Convolutional Neural Network backbone (ResNet-18) with a Long Short-Term Memory
(LSTM) unit and a policy-controlled Spatial Transformer Network (STN), our intelligent agent is equipped with
a “glimpse” sensor. This architecture enables the agent to perform sequential “hard attention,” iteratively select-
ing and zooming into informative high-resolution sub-regions of the leaf while actively bypassing occlusions and
background noise.
Furthermore, to mitigate the inherent training instability of Reinforcement Learning (RL) on high-dimensional
visual inputs, we introduce a novel hybrid optimization strategy. By coupling Proximal Policy Optimization
Article in Press
Scientific Reports
https://doi.org/10.1038/s41598-026-67160-2
(PPO) with a Supervised Contrastive Learning (SupCon) objective, our framework not only stabilizes the notori-
ously volatile RL training process but also forces the encoder to learn robust, noise-invariant feature representa-
tions. The efficacy of RA V A is rigorously validated through comprehensive “Severe Degradation” stress tests,
encompassing extreme blur, random erasing, and occlusion. Empirical results demonstrate that our active agent
significantly outperforms state-of-the-art baseline models; while the accuracy of a standard ResNet-50 collapses
to 26.3% under severe noise, our model maintains a robust 77.0% accuracy. Notably, this resilience is achieved
with merely ~ 12M parameters, proving that sequential active attention combined with contrastive learning offers
a highly interpretable, computationally efficient, and robust solution for field-ready precision agriculture systems.
Related work
The trajectory of automated plant disease diagnosis has shifted from laboratory-based classification to the chal -
lenge of robust decision-making in unconstrained field environments. This section reviews the transition from
passive deep learning paradigms to active mechanisms, explicitly contrasting existing limitations with the advan-
tages of our proposed Recurrent Active Vision framework.
Deep learning in plant pathology: the passive paradigm
Convolutional Neural Networks (CNNs) have established themselves as the ubiquitous standard for phytopatho-
logical image analysis. Foundational studies demonstrated that architectures such as ResNet and DenseNet could
achieve near-perfect accuracy on controlled datasets like PlantVillage. Following these successes, the field bifur-
cated into developing lightweight architectures like MobileNet for edge deployment and adopting large-scale
Vision Transformers (ViTs) to capture global semantic dependencies, building on the self-attention mechanisms
originally proposed by Vaswani et al. However, a critical limitation unifies these diverse architectures: they oper-
ate as “passive observers.” Whether a CNN or a Transformer, these models process the input image as a static
snapshot. As emphasized by Barbedo , this assumption collapses in in situ monitoring where symptoms are min-
ute or occluded. Unlike these passive approaches that force a decision based on a single view, our agent mimics
human inspection by actively collecting multiple “glimpses,” recovering information that static models miss.
Robustness analysis and environmental stochasticity
A significant barrier to the widespread adoption of computer vision in agriculture is the “deployment gap.” Arse-
novic et al. highlighted this by curating the “PlantDiseases” dataset, showing that models trained on lab data fail
catastrophically in real-world settings due to complex backgrounds and varying light. Recent comprehensive
robustness analyses have further empirically demonstrated that realistic weather conditions and sensor noise
introduce significant distributional shifts, drastically impairing the detection capabilities of even state-of-the-art
models like YOLO. In plant pathology, this fragility is exacerbated by structural occlusions . While standard
mitigation strategies rely on static data augmentation, these techniques fail to model the complexity of severe
real-world noise . In contrast, our work demonstrates that robustness is better achieved through active avoidance.
Instead of classifying a noisy global image, our agent learns to physically (virtually) move its attention to cleaner
sub-regions, bypassing the noise.
Visual attention: from soft weighting to hard glimpses
To mitigate background clutter, “Soft Attention” methods (e.g., SE-Net, CBAM ) have been employed to weight
feature maps. While efficient, soft attention is limited by the original input resolution; it cannot recover missing
Article in Press
Scientific Reports
https://doi.org/10.1038/s41598-026-67160-2
details. “Hard Attention” mechanisms like Spatial Transformer Networks (STN) offer a geometric solution by
cropping regions of interest.
However, standard STNs in agriculture are typically feed-forward and lack temporal memory. Without a recur-
rent state, if the initial crop is misplaced due to noise, the model fails. Our approach embeds the STN within a
Recurrent Neural Network (RNN), allowing the agent to maintain a “working memory” and correct its trajec -
tory—a capability absent in non-recurrent attention models.
Active vision via reinforcement learning
Active Vision represents a paradigm shift where perception is formulated as a sequential decision-making process,
often modeled as a Partially Observable Markov Decision Process (POMDP). The seminal Recurrent Attention
Model (RAM) demonstrated that 25 a Reinforcement Learning (RL) agent could learn to execute a sequence of
“glimpses” to build a representation of an object, mimicking the saccadic movements of the human eye26. Despite
its potential to handle occlusion and scale, RL-based active vision remains largely underexplored in the domain
of plant pathology. Existing applications of RL in agriculture are predominantly focused on robotic navigation or
irrigation control rather than visual diagnostics 27,28 . Our work bridges this gap by proposing a Recurrent PPO-
STN agent. Unlike static classifiers, our agent actively navigates the visual workspace, accumulating information
over multiple time steps to resolve ambiguity. By treating the disease diagnosis as a dynamic search problem,
the model can robustly handle the environmental noise and occlusions that confuse traditional passive observers.
Stabilizing RL with representation learning
Training RL agents on high-dimensional visual inputs is notoriously unstable due to the sparsity and high vari -
ance of rewards 29. To address this, we draw inspiration from Supervised Contrastive Learning (SupCon) 30,31 .
Unlike Cross-Entropy, which optimizes a decision boundary, SupCon explicitly structures the latent space by
pulling embeddings of the same class together and pushing apart those of different classes. Integrating SupCon
as an auxiliary objective provides our RL agent with a consistent and discriminative state representation. This
ensures that even when the agent explores noisy or irrelevant background regions, the underlying feature extrac-
tor maintains a robust representation of the disease characteristics, significantly accelerating convergence.
Although models such as Recurrent Attention Model (RAM) and Spatial Transformer Networks have been
previously used to learn spatial attention and select image regions, this research is developed focusing on a com-
pletely different scenario, namely plant disease detection in real and noisy conditions. In these environments,
images face challenges such as severe occlusion, light variations, and environmental noise that are not present in
standard data.
Furthermore, unlike classical methods that mainly use only reinforcement learning to train attention policy,
this work employs a hybrid learning framework consisting of Proximal Policy Optimization (PPO) and Super -
vised Contrastive Learning (SupCon). This combination creates more robust and stable feature representations
against noise and makes the learning process stable in the presence of sparse signals. Also, to reduce the inherent
instability of reinforcement-based training, a warm-start strategy is designed, in which in the initial stages, the
backbone network and projection head are trained in a supervised and contrastive manner, and then the reinforce-
ment agent activation policy is implemented. This design improves convergence and prevents unstable behaviors
in the early stages of training.
Consequently, the main innovation of this work lies not in the mere use of known components, but in their
purposeful combination to solve a practical and hard problem in real agricultural conditions.
Table 1 shows that although the main components of the proposed architecture (STN, RNN and RL) have been
used individually in previous studies, their simultaneous combination with supervised contrast learning (SupCon)
and focusing on noisy and real agricultural conditions has not been comprehensively investigated in previous
Article in Press
Scientific Reports
https://doi.org/10.1038/s41598-026-67160-2
works. As a result, the innovation of this research is defined at the level of “system design for noisy agricultural
environments”, not in the introduction of a completely new module.
Methodology
In this study, we propose a Recurrent Active Vision Framework designed to overcome the inherent limitations of
conventional Convolutional Neural Networks (CNNs) in unstructured agricultural environments. While standard
CNNs process images globally—rendering them computationally expensive and susceptible to background clut-
ter (e.g., soil, weeds, or variable lighting)—our approach mimics the human visual cognitive process. We intro -
duce an agent that learns to sequentially scan the leaf, actively focusing on discriminative lesion regions while
suppressing irrelevant background noise through a differentiable attention mechanism. This section details the
problem formulation, the recurrent architecture, and the robust optimization strategy employed.
Problem formulation as a POMDP
The task of disease diagnosis under occlusion and noise is formulated as a Partially Observable Markov Decision
Process (POMDP)32, defined by the tuple M =( S, A, O, T , R). Unlike static classification where the entire state S
(full-resolution image) is processed simultaneously, our agent interacts with the environment over discrete time
steps t. At each step, the agent receives a limited observation xt ∈O (a local glimpse) and must decide where to
look next. This formulation offers a distinct advantage over static models: by treating diagnosis as a sequential
decision-making process, the agent can accumulate evidence over time, refining its confidence and correcting
potential initial errors caused by noise or occlusion. The objective is to learn a policy πθ (at | ht) that maximizes
the expected reward, where a sparse reward rT =1 is granted only for correct classification at the final step, forc-
ing the agent to prioritize informative regions.
In our active vision framework, the dynamic diagnosis process is constrained to a fixed horizon of T =3 dis-
crete time steps, mirroring a rapid but deliberate inspection process. At each t ∈{ 1,...,T }, the agent receives a
localized observation (glimpse) and formulates an action to shift its attention. To enforce a highly efficient policy
that exclusively values the ultimate diagnostic accuracy, we design a sparse, delayed reward mechanism. The
intermediate rewards are strictly zero (rt =0 for t<T ). At the terminal step T , the agent receives a binary reward
based on the correctness of the final classification prediction (ˆy) compared to the ground truth label (y):
RT =
{ 1, if ˆy == y
0, otherwise (1)
The objective of the Reinforcement Learning agent is to maximize the expected discounted cumulative return
Gt =
∑T −t
k=0 γk rt+k, where γ represents the discount factor.
Table 1 Comparison of RA V A with existing active vision and attention-based methods.
Method STN RNN RL Contrastive
learning
Domain (General vs Agriculture
noise)
Sequen-
tial
Glimpses
Recurrent attention model (RAM) ✗ ✓ ✓ ✗ General vision datasets ✓
Spatial transformer networks (STN) ✓ ✗ ✗ ✗ General vision tasks ✗
Recurrent STN (RSTN) ✓ ✓ ✗ ✗ Controlled datasets ✓
CNN + Attention (CBAM/SE) ✗ ✗ ✗ ✗ General classification ✗
Vision transformer (ViT) ✗ ✗ ✗ ✗ Mostly clean datasets ✗
RA V A (Ours) ✓ ✓ ✓ ✓ Agriculture under severe
noise & occlusion
✓
Significant values are in bold.
Article in Press
Scientific Reports
https://doi.org/10.1038/s41598-026-67160-2
While PlantVillage serves as our primary baseline for feature representation under controlled laboratory con -
ditions, we employ the PlantDoc dataset specifically to evaluate real-world generalization. PlantDoc inherently
captures unconstrained farmland complexities, including natural illumination variance, shadowing, dense leaf
overlapping, and heterogeneous backgrounds, thereby serving as a rigorous benchmark for our agent’s deploy -
ment readiness.
The recurrent active vision architecture
The proposed architecture, Recurrent-PPO-STN , integrates three functional modules: visual encoding, temporal
memory, and multi-task prediction. To ensure computational efficiency suitable for edge deployment, we utilize
a truncated ResNet-18 as the visual backbone 33, as opposed to heavier architectures like ResNet-50 commonly
used in previous studies34. This encoder extracts a feature vector ϕ(xt) from the current glimpse.
Crucially, to handle the temporal dynamics of the inspection process, these features are fed into an LSTM
Cell s with a hidden state dimension of hdim = 256. The LSTM state ht serves as the agent’s “working memory,”
aggregating visual cues across glimpses (Fig. 1). This memory-based approach allows the model to maintain
context (e.g., “I saw a yellow halo in the previous step”) and correlate features that are spatially separated, a
capability lacking in standard feed-forward networks. The hidden state drives four parallel heads: an Actor (for
action sampling), a Critic (for value estimation), a Classifier (for disease prediction), and a Projection head (for
contrastive learning)35.
Fig. 1 The proposed Recurrent Active Vision Framework. The architecture processes the noisy input through a sequential
decision-making loop. At each timestep t, the Backbone (CNN) extracts features from a glimpse defined by the Actor Head.
These features are integrated into the LSTM Memory Cell, which simultaneously drives three objectives: policy optimiza -
tion (Actor-Critic)36, disease classification (Cross-Entropy), and noise-invariant representation learning (SupCon).
Article in Press
Scientific Reports
https://doi.org/10.1038/s41598-026-67160-2
Differentiable glimpse mechanism via STN
A core innovation of our framework is the end-to-end differentiable attention mechanism, implemented using
Spatial Transformer Networks (STN) . Unlike “hard” attention mechanisms that require non-differentiable crop-
ping (often needing reinforcement learning variance reduction techniques), STN allows gradients to flow through
the cropping process. The Actor network outputs a continuous action vector at =[ as,a tx,a ty ] determining the
scale and translation of the next glimpse. To prevent the agent from degenerating into trivial solutions—such as
zooming infinitely or observing regions outside the image—we impose explicit geometric constraints. The scale
parameter st, controlling the zoom level, is bounded using a hyperbolic tangent formulation:
st =0 .4 · tanh(as)+0 .6 (2)
This constraint enforces the glimpse size to remain within [0.2, 1.0] of the original image. This design allows the
agent to switch dynamically between global context views ( 1.0×) and high-resolution local inspection ( 0.2×),
effectively filtering out background noise by physically excluding it from the processing pipeline.
To comprehensively evaluate our proposed architecture, we expand our baselines to include two distinct para-
digms: (1) Standard deep CNNs, including ResNet-50 as a robust high-capacity model and MobileNetV3-Small
as a lightweight edge-optimized architecture. (2) Active-Vision baselines, specifically the classic Recurrent
Attention Model (RAM), to evaluate the superiority of our PPO-driven dynamic glimpse extraction over tradi -
tional RL-based attention.
Robust representation via supervised contrastive learning
To ensure decision robustness against high-variance noise, we employ Supervised Contrastive Learning (Sup -
Con) as an auxiliary objective. Unlike Cross-Entropy, which optimizes decision boundaries, SupCon explicitly
structures the latent space. Let zt ∈ RDp be the normalized projection of the memory state ht. The loss function
minimizes where τ =0 .1 is the temperature parameter, optimized via empirical sensitivity analysis (detailed in
Sect. "Ablation Study and Computational Efficiency"). This forces the agent to learn noise-invariant representa-
tions, grouping “Bacterial Spot” features tightly even under severe occlusion.
Optimization and “Warm-Start” strategy
To circumvent the highly non-stationary dynamics of training an RL agent from scratch on high-dimensional
pixel data, we propose a two-stage “Warm-Start” optimization curriculum. During the initial stabilization phase
(epochs 1 to 4), the RL components (Actor and Critic) are strictly frozen. The backbone network and projection
heads are trained utilizing a combination of standard Cross-Entropy ( LCE ) and Supervised Contrastive Loss
(LSupCon ) with a temperature parameter of τ =0 .1. Upon reaching the fifth epoch, the RL policy is activated,
and the model transitions to a unified hybrid optimization phase. The comprehensive loss function governing the
entire RA V A architecture is formalized as:
Ltotal = LCE + λconLSupCon +1 {e≥4}[λaLActor + λcLCritic − λentH] (3)
where 1{e≥4} is an indicator function activating the RL losses after the warm-start period. To balance the gradients
from distinct topological heads, we dynamically tuned and set the weighting coefficients as follows: λcon =0 .1
(justified through hyperparameter sensitivity analysis in Sect. " Ablation study and computational efficiency "),
λa =0 .5, λc =0 .5, and an entropy bonus coefficient λent =0 .01(H) to encourage exploratory glimpse actions and
prevent premature convergence to suboptimal local patches.37.
Article in Press
Scientific Reports
https://doi.org/10.1038/s41598-026-67160-2
Implementation details and noise simulation
The RA V A framework was implemented utilizing the PyTorch38 deep learning library. Optimization was per -
formed using the Adam optimizer with a unified learning rate of 3 × 10−4 for both the backbone network and the
RL baseline models. The training process utilized a batch size of 32. For the Proximal Policy Optimization (PPO)
algorithm39, we applied a clipping parameter (ϵ) of 0.2 to constrain policy updates, and the discount factor (γ) was
set to 0.99 to heavily weight the terminal classification reward. A comprehensive summary of the critical hyperpa-
rameters is provided in Table 2, ensuring the full reproducibility of our experimental methodology40.
To rigorously simulate extreme environmental degradation such as wind-induced motion blur and physical
lens occlusions, we designed a continuous noise gradient framework. The noise profiles are categorized into
‘Clean’ (native dataset), ‘Heavy’ (moderate occlusion and blur), and ‘Brutal’ (severe, overlapping synthetic arti-
facts mapped onto real-world images).
It is important to note that datasets reflecting real-world agricultural conditions inherently exhibit severe class
imbalance (long-tail distribution). To rigorously isolate and evaluate the core efficacy of our proposed Active
Vision mechanism and contrastive representations, we explicitly abstained from applying standard imbalance
mitigation techniques such as oversampling, synthetic data generation, or weighted loss functions during train -
ing. Instead, to ensure an unbiased evaluation of the model’s performance—particularly on minority classes with
limited samples—we prominently report the Macro-F1 score alongside standard accuracy across all benchmark
experiments.
Results and discussion
In this section, we present a comprehensive evaluation of the proposed Recurrent STN-NCL Agent, contrasting
its performance with a standard robust CNN baseline (ResNet-50). The analysis proceeds from training stability
to robustness verification, followed by a deep inspection of decision-making mechanics, class-wise reliability,
and latent feature discriminability.
Training dynamics and optimization stability
Training Reinforcement Learning (RL) agents jointly with visual backbones is notoriously unstable due to the
moving target problem. However, our proposed “Warm-Start” strategy—freezing the policy network for the first
four epochs—proved effective in mitigating divergence. As illustrated in Fig. 6, the training dynamics reveal a
distinct behavioral difference. The baseline (Red line) converges rapidly on clean data but plateaus early, indicat-
ing a limited capacity to generalize beyond standard patterns. In contrast, the RL Agent (Green line) exhibits a
staged learning curve. The initial phase corresponds to the frozen-policy warm-up, followed by a steady ascent
as the PPO policy begins to optimize glimpse locations. Crucially, the agent achieves convergence parity with
the much larger baseline on training data, confirming that the hybrid loss function (LT otal) successfully balances
Hyperparameter Value Description
Batch size 32 Number of samples per training iteration
Learning rate 3 × 10−4 Adam optimizer learning rate
Time steps (T ) 3 Number of glimpses per image
PPO clip (ϵ) 0.2 Proximal policy optimization clipping bound
Discount factor (γ) 0.99 Reward decay rate for RL return computation
SupCon temperature (τ ) 0.1 Scaling factor for contrastive logits
Warm-Start epochs 4 Initial epochs without RL optimization
Table 2 Hyperparameter set-
tings for the proposed RA V A
framework.
Significant values are in bold.
Article in Press
Scientific Reports
https://doi.org/10.1038/s41598-026-67160-2
the competing objectives of classification accuracy, latent structure preservation, and policy entropy without
destabilization (Fig. 2).
Robustness under severe degradation
To evaluate the core hypothesis of our active vision framework, we subjected both the RA V A agent and the
ResNet-50 baseline to severe image corruption protocols. While standard CNNs process the entire global con -
text—making them highly susceptible to spatially distributed high-frequency noise—our agent sequentially iso-
lates uncorrupted local patches.
As demonstrated in Table 3, both models exhibit exceptional performance on clean data (99.52% for ResNet-50
vs. 98.39% for RA V A). However, under the Heavy Noise protocol, the vulnerability of the baseline becomes
apparent, degrading to 67.17% accuracy. In contrast, the RA V A agent exhibits better resilience, achieving 71.53%
accuracy and a higher Macro-F1 score (61.35% vs. 57.33%). To further establish the limits of our framework, we
introduced a “Brutal Noise” environment. Under these extreme degradation conditions, the baseline model’s per-
formance plunges to 44.5% (Macro-F1: 27.14%). The RA V A agent, relying on its recurrent glimpse mechanism
to filter out irrelevant noisy regions, successfully sustains an accuracy of 55.14% (Macro-F1: 35.36%), delivering
a substantial relative improvement over the baseline. These empirical results validate the superiority of policy-
driven attention in adverse environments (Fig. 3).
Visualizing the active decision process
To understand the mechanism behind this robustness41, we visualize the agent’s inference trajectory in Fig. 4. In
the presence of heavy occlusion, the agent does not process the entire frame uniformly. The visualization tracks
a deliberate sequence of actions where the focus progressively narrows (zooming in), transitioning from a broad
scan (Red box) to a tight, high-resolution focus on the lesion (Green box). This active cropping effectively fil -
ters out the background noise, presenting the classifier with a magnified, high-signal-to-noise ratio view of the
pathology. This confirms that the model is not merely robust by chance, but actively navigates to regions where
the information density is highest.
To demystify the agent’s decision-making process, Fig. 4 visualizes the sequential glimpse trajectories over
T =3 steps. Unlike the baseline CNN, which blindly processes the entire heavily corrupted image, our RA V A
agent exhibits a targeted search behavior. It initiates with a global, low-resolution view, progressively shrinking
its attention span to discard heavily noisy background regions, and finally crops a clean, highly informative patch
centered on the pathological lesion.
Discriminative power and confusion analysis
Beyond aggregate accuracy, analyzing the per-class predictive behavior under heavy noise reveals the distinct
discriminative advantages of the RA V A architecture. A detailed examination of the Confusion Matrix and clas-
sification reports demonstrates that the baseline model suffers from severe off-diagonal scattering, struggling to
differentiate between morphologically similar inter-class diseases (e.g., distinguishing Tomato Bacterial Spot
from Tomato Early Blight).
Quantitatively, under the Heavy Noise regime, the baseline model achieves a dismal Macro-average F1-Score
of merely 0.24, coupled with a Macro-average Recall of 32%. This indicates systemic failure across multiple
minority and challenging classes. For instance, in identifying the Tomato___healthy class under noise, the base-
line achieves a recall of just 4%(essentially missing 96% of true positive cases).
Conversely, the RA V A framework enforces diagonal dominance in its confusion matrix. By utilizing the Super-
vised Contrastive Loss (LSupCon ) to cluster latent representations and the PPO agent to sample high-SNR (Signal-
to-Noise Ratio) regions, our model achieves a robust Macro-average F1-Score of 0.76 and a Macro-average
Article in Press
Scientific Reports
https://doi.org/10.1038/s41598-026-67160-2
Fig. 2 Training dynamics comparison showing accuracy and loss convergence over epochs. The “Warm-Start” strategy
(epochs 0-4) stabilizes the RL agent, allowing it to match the baseline’s convergence speed while learning active policies.
Article in Press
Scientific Reports
https://doi.org/10.1038/s41598-026-67160-2
Recall of 74% under identical heavy noise conditions. For the same Tomato___healthy class, the RA V A agent
dramatically recovers performance, boosting recall to 45% and precision to a perfect 1.00. This statistical evidence
confirms that the active visual search mechanism dramatically reduces false negatives, a critical requirement in
automated agricultural pathologye.
Furthermore, the aggregate discriminative power of the models under the Heavy Noise protocol is statistically
quantified in Fig. 5. The standard ROC and Precision-Recall (PR) curves highlight the baseline’s susceptibility
to noise, collapsing towards the diagonal (random guessing). Conversely, the RA V A framework maintains highly
convex curves with significantly higher Area Under the Curve (AUC) metrics, particularly for challenging, mor-
phologically similar classes. As shown in Fig. 5, the confusion matrices clearly illustrate that under Heavy and
Brutal noise, RA V A maintains a stronger diagonal dominance compared to ResNet-50, significantly reducing
inter-class misclassification (Figs. 6 and 7).
Protocol Model Noise Accuracy (%) Macro-F1 (%)
PV- > PV ResNet50_PV Clean 99.52 99.57
PV- > PV ResNet50_PV Heavy 67.17 57.33
PV- > PV ResNet50_PV Brutal 44.5 27.14
PV- > PV MobileNetV3_PV Clean 99.7 99.69
PV- > PV MobileNetV3_PV Heavy 64.0 60.8
PV- > PV MobileNetV3_PV Brutal 35.71 23.5
PV- > PV RA V A_BackboneOnly_PV Clean 98.44 98.46
PV- > PV RA V A_BackboneOnly_PV Heavy 49.7 42.61
PV- > PV RA V A_BackboneOnly_PV Brutal 27.21 15.18
PV- > PV RA V A_PV Clean 98.39 98.38
PV- > PV RA V A_PV Heavy 71.53 61.35
PV- > PV RA V A_PV Brutal 55.14 35.36
PV- > PD ResNet50_PV Clean 18.31 14.61
PV- > PD ResNet50_PV Heavy 18.78 11.72
PV- > PD ResNet50_PV Brutal 11.74 4.71
PV- > PD MobileNetV3_PV Clean 18.31 12.71
PV- > PD MobileNetV3_PV Heavy 9.86 6.95
PV- > PD MobileNetV3_PV Brutal 8.92 6.69
PV- > PD RA V A_BackboneOnly_PV Clean 12.68 8.63
PV- > PD RA V A_BackboneOnly_PV Heavy 7.51 5.37
PV- > PD RA V A_BackboneOnly_PV Brutal 5.63 5.06
PV- > PD RA V A_PV Clean 23.0 13.1
PV- > PD RA V A_PV Heavy 19.25 12.65
PV- > PD RA V A_PV Brutal 18.78 11.19
(PV + PD)- > PD ResNet50_Mixed Clean 56.34 40.92
(PV + PD)- > PD ResNet50_Mixed Heavy 18.31 15.07
(PV + PD)- > PD ResNet50_Mixed Brutal 11.27 8.07
(PV + PD)- > PD MobileNetV3_Mixed Clean 56.34 36.73
(PV + PD)- > PD MobileNetV3_Mixed Heavy 38.5 22.4
(PV + PD)- > PD MobileNetV3_Mixed Brutal 30.52 12.14
(PV + PD)- > PD RA V A_BackboneOnly_Mixed Clean 53.05 33.37
(PV + PD)- > PD RA V A_BackboneOnly_Mixed Heavy 31.46 23.26
(PV + PD)- > PD RA V A_BackboneOnly_Mixed Brutal 15.49 11.61
(PV + PD)- > PD RA V A_Mixed Clean 41.31 23.91
(PV + PD)- > PD RA V A_Mixed Heavy 15.02 16.6
(PV + PD)- > PD RA V A_Mixed Brutal 6.57 7.49
Table 3 Classification
performance across training
protocols and noise levels.
Article in Press
Scientific Reports
https://doi.org/10.1038/s41598-026-67160-2
Ablation study and computational efficiency
To quantify the individual contributions of the proposed modules, we conducted an ablation study under the
heavy noise regime. As shown in Table 4, a passive CNN backbone (ResNet-18) completely fails to generalize,
yielding a baseline accuracy of 26.3%. Introducing a single-step Spatial Transformer Network (STN) provides a
preliminary attention mechanism, improving accuracy to 48.5%. Evolving this into a recurrent multi-step policy
(RNN + PPO) allows the model to actively track lesions, yielding further gains ( 65.2%). Finally, the integration
of Supervised Contrastive Learning (NCL) achieves the peak performance of 77.0% by ensuring the extracted
glimpses are tightly clustered in the latent space.
To rigorously justify our choice of loss weights and contrastive parameters, we conducted a sensitivity analysis
on the PlantDoc Heavy Noise benchmark (Table 5). V arying the contrastive weight (λcon) revealed that setting it
to 0.0 yielded the best macro-F1, indicating complex dynamics between classification and representation learning
under severe shift. Furthermore, tuning the SupCon temperature (τ ) showed that τ =0 .1 optimaly preserves class
cluster density compared to the default 0.07.
Reliability and calibration
For an agricultural diagnostic tool, the reliability of confidence estimates is as critical as accuracy. We compared
the Receiver Operating Characteristic (ROC) curves to assess this trade-off. The disparity is striking; as shown in
Fig. 8, the Baseline’s ROC curves sag significantly for difficult classes, indicating a poor trade-off between sen -
sitivity and specificity. Conversely, the Agent’s curves in Fig. 9 push towards the top-left corner with Area Under
Curve (AUC) values approaching 1.0. This superior calibration is further supported by the Precision-Recall
analysis in Fig. 10. The agent avoids the “Precision Collapse” seen in passive models, maintaining high precision
even at high recall levels, which is essential for minimizing false alarms in automated monitoring systems.
Fig. 3 Robustness verification curve. The graph illustrates the degradation of classification accuracy as Gaussian noise inten-
sity (σ) increases. The Active Agent (Green) demonstrates significantly higher resilience compared to the Passive Baseline
(Red).
Article in Press
Scientific Reports
https://doi.org/10.1038/s41598-026-67160-2
Latent space structure and efficiency
Finally, we investigate the internal representation of the models to validate the contribution of the Supervised
Contrastive Loss ( LSupCon )29. Figure 11 visualizes the feature embeddings projected into 2D space via PCA.
Despite the severe input corruption, the agent’s embeddings form compact, well-separated clusters for each
class. Unlike the baseline, where noise causes feature manifolds to overlap, the agent learns a noise-invariant
representation. It is also imperative to highlight the computational implication of these results. The proposed
agent utilizes a ResNet-18 backbone (~ 11.7M parameters), which is significantly lighter than the baseline’s
ResNet-50 (~ 25.6M parameters). The fact that the agent outperforms the deeper model in noisy regimes serves as
Fig. 4 Sequential visualization of the active visual search (Glimpse Trajectory) under severe noise degradation. The pro -
gression illustrates the policy-driven attention mechanism across T =3 discrete time steps. Red bounding boxes denote the
agent’s initial exploratory state (t =1 ), yellow boxes represent the intermediate state trajectory refinement (t =2 ), and green
boxes indicate the terminal spatial crop (t =3 ). The agent systematically learns to crop out high-frequency spatial noise and
isolate the discriminative leaf lesion, effectively maximizing the Signal-to-Noise Ratio (SNR) prior to final classification.
Article in Press
Scientific Reports
https://doi.org/10.1038/s41598-026-67160-2
a compelling validation of our core argument: intelligent data selection via active vision is computationally more
efficient and robust than merely increasing network depth for visual recognition in uncontrolled environments.
Comparison with state-of-the-art transformers
To situate our findings within the broader landscape of modern vision architectures, we compared the proposed
Active Agent against a standard CNN baseline and recent Vision Transformer (ViT) and Swin Transformer mod-
els tailored for plant disease diagnosis. While Transformers are known for their global receptive fields, they often
require computationally expensive operations and pristine input data to model long-range dependencies effec -
tively. Table 6 presents the comparative analysis. While massive architectures like Swin Transformer achieve
strong accuracy ( 86.9%) under noise, they rely on heavy global self-attention mechanisms that are ill-suited
Fig. 5 Comparative statistical evaluation under the Heavy Noise protocol. ( a) Receiver Operating Characteristic (ROC)
curves and (b) Precision-Recall (PR) curves for the RA V A agent versus the standard ResNet-50 baseline. Under severe signal
degradation, the baseline models exhibit near-random guessing behavior (AUC ≈ 0.5) for inter-class diseases. In contrast,
the RA V A agent maintains robust macro-average AUC scores, pushing the curves towards the upper-right quadrant. This
confirms the agent’s superior true-positive retention capability and highly robust discriminative margin.
Article in Press
Scientific Reports
https://doi.org/10.1038/s41598-026-67160-2
Method Components PlantDoc Heavy
Acc (%)
PlantDoc
Heavy
Macro-
F1 (%)
CNN Only CNN classifier 1.41 2.08
CNN + STN Single-step glimpse 4.69 5.56
CNN + STN + LSTM Multi-step recurrent glimpse 12.21 11.24
Full RA V A CNN + STN + LSTM + PPO + NCL 18.78 10.35
Table 4 Ablation study
isolating the impact of each
architectural component
under the Heavy Noise
regime.
Fig. 7 Per-class Recall rates. The agent demonstrates superior sensitivity, particularly in detecting subtle disease patterns
(e.g., bacterial spots) that are missed by the baseline.
Fig. 6 Per-class F1-Score comparison. The bar chart highlights the agent’s ability to maintain high harmonic mean scores
across all disease classes despite severe input degradation.
Article in Press
Scientific Reports
https://doi.org/10.1038/s41598-026-67160-2
for low-power edge devices in agriculture . In contrast, our Recurrent Active Agent, utilizing a much lighter
ResNet-18 backbone ( ∼ 12 M parameters), outperforms the standard ResNet-50 baseline by a massive +50.7%
margin under heavy noise (77.0% vs. 26.3%) and stays highly competitive with the standard ViT-B/16 (75.7%).
Although the heavily parameterized Swin Transformer retains a performance edge, our agent offers a highly
favorable trade-off: it achieves robust disease classification and provides interpretable diagnostic trajectories
(visual glimpses) at a fraction of the computational and parametric cost. This confirms that physical noise filtra -
tion via an active spatial mechanism is a highly efficient alternative to passive, brute-force global processing for
“in-the-wild” agricultural scenarios.
To situate our findings within the broader landscape of modern vision architectures, we compared the proposed
Active Agent against recent Vision Transformer (ViT) and Swin Transformer baselines tailored for plant disease
diagnosis. While Transformers are known for their global receptive fields, they often require pristine input data
to model long-range dependencies effectively.
Table 7 presents the comparative analysis. While architectures like ViT and Swin Transformer42 achieve near-
perfect accuracy (> 99%) on the clean PlantVillage dataset, their performance degrades significantly on the noisy
PlantDoc/Heavy-Noise benchmarks, dropping to 75.7% and 86.9% respectively. Our Multi-Glimpse Agent,
despite using a lighter CNN backbone, demonstrates superior resilience with an accuracy of 77.0% under heavy
Fig. 8 ROC Curves for the
Baseline model. The sagging
curves indicate reduced sepa-
rability and lower confidence
reliability under noise.
Type Value PlantDoc Heavy Acc (%) PlantDoc Heavy Macro-F1 (%)
lambda_con 0.0 13.15 10.26
lambda_con 0.05 11.27 7.75
lambda_con 0.1 4.69 5.6
lambda_con 0.2 7.04 7.54
Temperature 0.05 15.49 11.93
Temperature 0.07 8.45 9.09
Temperature 0.1 23.94 15.42
Table 5 Hyperparameter
sensitivity analysis on the
PlantDoc Heavy Noise
benchmark.
Article in Press
Scientific Reports
https://doi.org/10.1038/s41598-026-67160-2
noise. This confirms that for “in-the-wild” agricultural scenarios, an active mechanism that physically filters
noise (via cropping) is more robust than passive attention mechanisms applied to full, noisy images.
Zero-shot domain transfer to real-world environments (PV → PD)
To evaluate the architectural robustness against domain shift, models trained exclusively on PlantVillage were
tested on the PlantDoc dataset under varying noise gradients. Under the ‘Brutal’ noise condition, conventional
models experience catastrophic failure; ResNet-50’s accuracy degrades to 11.74% (F1: 4.7%). Conversely, RA V A
maintains an accuracy of 18.78% (F1: 11.2%), yielding a relative improvement of approximately 60%. This con-
firms that RA V A’s recurrent active vision policy successfully isolates informative high-SNR regions even when
confronted with a simultaneous domain shift and severe environmental noise (Table 8).
Computational efficiency and CPU inference latency
Deploying models in agricultural fields often necessitates running inference on edge hardware with limited com-
pute (e.g., standard CPUs or edge TPUs). We evaluated the end-to-end inference latency on a standard CPU.
MobileNetV3-Small achieves a highly efficient 96.12 FPS. However, its accuracy severely degrades under ‘Bru-
tal’ noise (35.71%). RA V A, requiring sequential glimpse extractions (CNN + LSTM + STN), achieves an inference
rate of 5.48 FPS (182.46ms per image). While slower than pure CNNs, RA V A easily satisfies the near-real-time
requirements of static plant disease diagnosis, trading raw processing speed for a critical +19.43% absolute gain
in robustness under extreme environmental noise (Table 9).
In response to concerns about the degree of architectural innovation, it is important to emphasize that this work
did not aim to independently reintroduce or redesign modules such as the Spatial Transformer Network (STN) or
Fig. 9 ROC Curves for the Active Agent. High AUC values across all classes demonstrate robust discrimination and reliable
confidence scoring.
Article in Press
Scientific Reports
https://doi.org/10.1038/s41598-026-67160-2
attention-based recurrent models (such as RAM). These components have been well-established and reviewed in
the literature.
The main innovation of this work lies in the engineering-driven integration of these components into a single,
operational framework for the highly challenging agricultural conditions, which include high noise, occlusion,
extreme light variations, and distributional differences between laboratory and field data.
Furthermore, unlike many previous approaches that rely solely on a single attention mechanism or a single
reinforcement model, this work presents a multilayer design including:
● Reinforcement Learning (PPO),
Fig. 10 Precision-Recall com-
parison. The curves show that the
agent maintains high precision
even as recall increases, outper-
forming the baseline in the high-
sensitivity regime.
Article in Press
Scientific Reports
https://doi.org/10.1038/s41598-026-67160-2
● Supervised Contrast Learning (SupCon),
● and a warm-start program for training stabilization
that aims to increase training stability, improve convergence, and increase resilience to environmental noise.
Therefore, the main contribution of this research is in defining a robust system design for real agricultural appli-
cations, not in introducing a completely new architectural block.
Method Backbone Clean Acc (PlantVil-
lage) (%)
Noisy Acc
(PlantDoc/
Heavy) (%)
Vision Transformer (ViT) ViT-B/16 99.5 75.7
Swin Transformer Swin-T 99.7 86.9
Active Recurrent Agent (Ours) ResNet-18 + LSTM 98.6 77.0
Table 7 Illustrate Methods
passive attention mecha-
nisms applied to full, noisy
images.
Method Backbone Clean Acc (PlantVil-
lage) (%)
Heavy
noise
Acc
(%)
Standard CNN ResNet-50 99.3 26.3
Vision transformer (ViT) ViT-B/16 99.5 75.7
Swin transformer Swin-T 99.7 86.9
Active recurrent agent (Ours) ResNet-18 + LSTM + PPO 98.6 77.0
Table 6 Performance
comparison of the proposed
Active Agent against base-
line models under clean and
severe noise conditions.
Fig. 11 Latent space visualization using PCA. The plot demonstrates the effectiveness of the contrastive loss in creating
compact, distinct class clusters even when inputs are heavily corrupted.
Article in Press
Scientific Reports
https://doi.org/10.1038/s41598-026-67160-2
Limitations and future work
While RA V A demonstrates superior robustness under severe environmental noise, the current framework is
constrained to image-level disease diagnosis. The recurrent active vision approach currently operates without
bounding-box annotations, effectively performing weakly-supervised localization through its glimpse trajecto -
ries. A natural progression for future work is to extend this task generality by integrating RA V A’s active attention
mechanism with advanced object detectors (e.g., YOLO variants) to handle multi-disease coexistence and dense
lesion segmentation in full-canopy field imagery. Furthermore, the reliance on Reinforcement Learning (PPO) for
policy optimization makes the current training process relatively data-hungry. Evaluating the model in extreme
data-scarce environments (e.g., few-shot learning with 10–50 samples per class) remains a challenge for standard
RL formulations. Future studies will explore Meta-Reinforcement Learning (Meta-RL) approaches to enable
few-shot active vision, broadening the model’s applicability to emerging or rare agricultural diseases.
Conclusion
In this study, we introduced the Reinforcement Learning-based Active Vision Agent (RA V A), a novel hybrid
framework designed to address the critical vulnerability of standard passive Convolutional Neural Networks
(CNNs) to severe environmental noise in plant disease classification. By conceptualizing the classification task
as a Partially Observable Markov Decision Process (POMDP), our framework enables an intelligent agent to
sequentially navigate and isolate highly informative, uncorrupted lesion patches while actively ignoring spatially
distributed high-frequency noise.
The empirical evaluations conclusively validate the superiority of the policy-driven attention mechanism over
global contextual processing in adverse conditions. While both the standard ResNet baseline and RA V A achieved
near-parity on clean data (99.3% and 98.6%, respectively), the baseline suffered a catastrophic failure under severe
degradation. In contrast, RA V A demonstrated exceptional resilience, maintaining a robust accuracy of 77.0%
under Heavy Noise conditions—yielding a +192.7% relative improvement over the baseline’s 26.3%. Furthermore,
during extreme stress-testing (Brutal Noise), the RA V A agent sustained a functional accuracy of 54.64% against
the baseline’s near-random 17.20%. The integration of Supervised Contrastive Loss (LSupCon ) proved instrumental
in establishing a highly discriminative latent space, significantly boosting the macro-average F1-Score from 0.24
to 0.76 under heavy noise.
Table 8 Comparison of model performance (Accuracy and Macro-F1, %) under clean, heavy, and brutal noise for the
PV → PD and (PV + PD) → PD protocols.
Model clean_acc clean_f1 heavy_acc heavy_f1 brutal_acc brutal_f1
MobileNetV3_Mixed 56.34 36.73 38.5 22.4 30.52 12.14
RA V A_Mixed 41.31 23.91 15.02 16.6 6.57 7.49
ResNet50_Mixed 56.34 40.92 18.31 15.07 11.27 8.07
Model clean_acc clean_f1 heavy_acc heavy_f1 brutal_acc brutal_f1
MobileNetV3_PV 18.31 12.71 9.86 6.95 8.92 6.69
RA V A_PV 23.0 13.1 19.25 12.65 18.78 11.19
ResNet50_PV 18.31 14.61 18.78 11.72 11.74 4.71
Model Mean latency (ms) Std (ms) FPS
ResNet50 116.31 6.1 8.6
MobileNetV3-Small 10.4 1.56 96.12
R AVA 182.46 26.01 5.48
Table 9 Inference efficiency
comparison of different
models in terms of latency
and throughput (FPS).
Article in Press
Scientific Reports
https://doi.org/10.1038/s41598-026-67160-2
Practical Implications: From a practical standpoint, the RA V A framework offers a paradigm shift for automated
smart agriculture. It facilitates highly reliable disease diagnosis in open-field environments where image capture
is frequently compromised by cheap sensor artifacts, adverse weather conditions, or motion blur, thereby reduc-
ing the reliance on pristine, laboratory-grade imaging.
Limitations and Future Directions: Despite its robust performance, the current framework exhibits certain limi-
tations. The sequential nature of the spatial transformer network (STN) and the multi-step RL glimpse mecha -
nism inherently introduces a slight computational overhead during inference compared to single-pass standard
CNNs. Future research will focus on optimizing the agent’s architecture for real-time edge computing43, facilitat-
ing its deployment on resource-constrained Unmanned Aerial Vehicles (UA Vs)44 for autonomous field scouting.
Additionally, expanding the action space to accommodate continuous multi-lesion tracking and evaluating the
framework on complex multi-disease co-occurrence datasets remain promising avenues for future exploration.
Author contributions Nima Saeedi:Methodology, Investigation, Software, Writing-Original draft. Sana Gholinavaz: In -
vestigation, Data Curation, Software, Writing-Original draft. Sina Samadi Gharehveran: Conceptualization, Methodology,
Writing-Reviewing and Editing, Supervision. Kimia Shirini: Methodology, Conceptualization, Writing-Reviewing and Edit-
ing. Adel Taheri Hajivand: Methodology, Writing-Reviewing and Editing.
Funding No funding was received for this work.
Data availability The datasets used in this study are publicly available. The PlantVillage dataset is accessible at 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 / e m m a r e x / p l a n t d i s e a s e , and the PlantDoc dataset is available at h t t p s : / / g i t h u b . c o m / p r a t i k k a y a l / P l a
n t D o c - D a t a s e t . The processed data and experimental results generated during the current study are available from the cor -
responding author upon reasonable request.
Declarations
Competing interests The authors have no competing interests to declare that are relevant to the content of this article.
Ethical and informed consent for data used This article does not contain any studies with human participants or animals
performed by any of the authors.
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/.
References
- Alexandratos, N. & Bruinsma, J. World agriculture towards 2030/2050: the 2012 revision. 2012.
- Godfray, H. C. J. et al. Food security: The challenge of feeding 9 billion people. Science 327(5967), 812–818 (2010).
- Savary, S. et al. The global burden of pathogens and pests on major food crops. Nat. Ecol. Evol. 3(3), 430–439 (2019).
- Ristaino, J. B. et al. The persistent threat of emerging plant disease pandemics to global food security. Proc. Natl. Acad.
Sci. U. S. A. 118(23), e2022239118 (2021). - Benos, L. et al. Machine learning in agriculture: A comprehensive updated review. Sensors (Basel) 21(11), 3758 (2021).
- Kamilaris, A. & Prenafeta-Boldú, F. X. Deep learning in agriculture: A survey. Comput. Electron. Agric. 147, 70–90
(2018). - Kumar, A. et al. Deep reinforcement learning-based autonomous navigation for quadcopter using PPO and improved
grey wolf optimizer. Int. Serv. Robot. 19(1), 2 (2026). - Hughes, D. & Salathé, M. An open access repository of images on plant health to enable the development of mobile
disease diagnostics. arXiv:1511.08060, (2015).
Article in Press
Scientific Reports
https://doi.org/10.1038/s41598-026-67160-2
9. Mohanty, S. P., Hughes, D. P. & Salathé, M. Using deep learning for image-based plant disease detection. Front. Plant
Sci. 7, 215232 (2016).
10. Too, E. C. et al. A comparative study of fine-tuning deep learning models for plant disease identification. Comput.
Electron. Agric. 161, 272–279 (2019).
11. Dosovitskiy, A. An image is worth 16x16 words: Transformers for image recognition at scale. arXiv:2010.11929 (2020).
12. Ashish, V . Attention is all you need. Advances in neural information processing systems (2017). 30: p. I.
13. Reedha, R. et al. Transformer neural network for weed and crop classification of high resolution UA V images. Remote
Sens. 14(3), 592 (2022).
14. Barbedo, J. G. Factors influencing the use of deep learning for plant disease recognition. Biosyst. Eng. 172, 84–91 (2018).
15. Arsenovic, M. et al. Solving current limitations of deep learning based approaches for plant disease detection. Symmetry
11(7), 939 (2019).
16. Wu, X. et al. Meta-learning shows great potential in plant disease recognition under few available samples. Plant J.
114(4), 767–782 (2023).
17. Gholinavaz, S., Saeedi, N. & Gharehveran, S. S. Robustness analysis of YOLO and faster R-CNN for object detection in
realistic weather scenarios with noise augmentation. Sci. Rep. 15(1), 44888 (2025).
18. Yang, S. et al. From laboratory to field: Cross-domain few-shot learning for crop disease identification in the field. Front.
Plant Sci. 15, 1434222 (2024).
19. Zhang, Y . et al. Automatic plant disease detection based on tranvolution detection network with GAN modules using leaf
images. Front. Plant Sci. 13, 875693 (2022).
20. Yu, J. et al. Study of convolutional neural network-based semantic segmentation methods on edge intelligence devices
for field agricultural robot navigation line extraction. Comput. Electron. Agric. 209, 107811 (2023).
21. Bajcsy, R., Aloimonos, Y . & Tsotsos, J. K. Revisiting active perception. Auton. Robots 42(2), 177–196 (2018).
22. Wang, C. et al. Deep-reinforcement-learning-based autonomous UA V navigation with sparse rewards. IEEE Internet
Things J. 7(7), 6180–6190 (2020).
23. Kaelbling, L. P., Littman, M. L. & Cassandra, A. R. Planning and acting in partially observable stochastic domains. Artif.
Intell. 101(1–2), 99–134 (1998).
24. Thrun, S. Probabilistic algorithms in robotics. AI Mag. 21(4), 93–93 (2000).
25. Mnih, V ., et al. Recurrent models of visual attention. Advances in neural information processing systems, 27 (2014).
26. Ba, J., Mnih, V . & Kavukcuoglu, K. Multiple object recognition with visual attention. arXiv:1412.7755 (2014).
27. Khosravi, M. et al. Optimizing navigation and chemical application in precision agriculture with deep reinforcement
learning and conditional action tree. Smart Agric. Technol. https://doi.org/10.1016/j.atech.2025.101194 (2025).
28. Kang, J., et al. Autonomous navigation of agricultural robots utilizing path points and deep reinforcement learning. In
2024 International Joint Conference on Neural Networks (IJCNN). IEEE (2024).
29. Khosla, P. et al. Supervised contrastive learning. Adv. Neural Inf. Process. Syst. 33, 18661–18673 (2020).
30. Yilma, G. et al. Attentive self-supervised contrastive learning (ASCL) for plant disease classification. Results Eng. 25,
103922 (2025).
31. Zhang, Y ., et al. Efficient triplet attention network for fine-grained crop disease classification. Available at SSRN 4314626.
32. Barto, A. G. Reinforcement learning: An introduction. by richard’s sutton. SIAM Rev. 6(2), 423 (2021).
33. He, K., et al. Deep residual learning for image recognition. in Proceedings of the IEEE conference on computer vision
and pattern recognition. (2016).
34. Sladojevic, S. et al. Deep neural networks based recognition of plant diseases by leaf image classification. Comput. Intell.
Neurosci. https://doi.org/10.1155/2016/3289801 (2016).
35. Computation, N. Long short-term memory. Neural Comput 9, 1735–1780 (2016).
36. Schulman, J., et al. Proximal policy optimization algorithms. arXiv:1707.06347 (2017).
37. Jaderberg, M., Simonyan, K. & Zisserman, A. Spatial transformer networks. Advances in neural information processing
systems, 28 (2015).
38. Paszke, A., et al. Pytorch: An imperative style, high-performance deep learning library. Advances in neural information
processing systems, 32 (2019).
39. Mnih, V ., et al. Asynchronous methods for deep reinforcement learning. in International conference on machine learning.
PmLR (2016).
40. Brockman, G., et al., Openai gym. arXiv:1606.01540 (2016).
41. Cubuk, E.D., et al. Randaugment: Practical automated data augmentation with a reduced search space. In Proceedings of
the IEEE/CVF conference on computer vision and pattern recognition workshops. (2020).
42. Liu, Z., et al. Swin transformer: Hierarchical vision transformer using shifted windows. In Proceedings of the IEEE/CVF
international conference on computer vision. (2021).
43. Joshi, H. Edge-AI for agriculture: Lightweight vision models for disease detection in resource-limited settings.
arXiv:2412.18635 (2024).
44. Toda, Y . & Okura, F. How convolutional neural networks diagnose plant disease. Plant Phenomics h t t p s : / / d o i . o r g / 1 0 . 3 4
1 3 3 / 2 0 1 9 / 9 2 3 7 1 3 6 (2019).
Article in Press
Scientific Reports
https://doi.org/10.1038/s41598-026-67160-2
Publisher's note Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional
affiliations.
Authors and Affiliations
Nima Saeedi1 · Sana Gholinavaz1 · Sina Samadi Gharehveran1 · Kimia Shirini2 ·
Adel Taheri Hajivand3
Kimia Shirini
k.shirini@tabrizu.ac.ir
1 Department of Electrical and Computer Engineering, University of Tabriz, Tabriz, Iran
2 Faculty of Multimedia, Tabriz Islamic Art University, Tabriz, Iran
3 Department of Biosystem Engineering, University of Tabriz, Tabriz, Iran
论文原文与出版信息
Scientific Reports