论文信息
论文解读
AI 辅助整理- 方法
- 各向异性扩散滤波、DES-UNet分割、量子联邦学习分类、RAG大模型严重度估计
- 发现
- PDANet取得98.8%准确率与0.98 Kappa,能稳定分类并支持基于病斑的严重度评估。
- 机会点
- 可探索轻量化联邦学习与RAG知识库在田间边缘设备的实时部署及多作物泛化验证。
论文摘要
农业生产中的水果产量深受植物病害影响,这些病害会导致作物减产、果实品质下降、农药依赖加剧,并威胁全球粮食安全。病害症状在病斑纹理、形状、颜色、感染扩散方式及环境背景方面差异显著,使得病害的准确识别颇具挑战。现有机器学习方法依赖手工设计特征,在不同田间条件下泛化能力较差。传统深度学习方法亦存在局限,包括病斑边界提取不准确、分布式农业数据中的隐私问题,以及缺乏严重程度感知的决策支持。为应对这些挑战,本研究提出了一种集成智能方法,通过分割、隐私保护分类及可解释的严重程度预测——即植物果实病害严重程度预警网络(PDANet)——实现水果病害检测与严重程度估计。果实病害图像数据集采用各向异性扩散滤波器进行预处理,以在保留病害边界和纹理信息的同时抑制噪声。随后使用所提出的可变形增强多通道注意力Swin U-Net(DES-UNet)对图像进行分割,该网络融合了增强多通道注意力和基于可变形卷积的多层感知机,以改进病斑边界提取、上下文特征学习及不规则症状定位。病害分类采用所提出的基于量子时序网络的联邦学习(QC-FL)框架完成,其中本地模型基于量子时序网络(Quantum ChronoNet)。最后,利用基于检索增强生成(RAG)的大语言模型(LLM)估计病害严重程度,该模型结合分割病斑测量值、分类病害信息及检索到的农业知识来估计病害严重程度并生成情境化的农户预警。所提出的PDANet模型达到了98.8%的准确率、98.5%的F1分数、98.2%的灵敏度、98.6%的特异度、0.98的Kappa系数、0.98的马修斯相关系数(MCC)以及0.97的总体检测率(GDR)。实验结果表明,所提出的模型能够提供准确且稳定的水果病害分类,支持基于病斑的严重程度评估。
全文
Agrociencia1
Agrociencia
1 Saveetha Institute of Medical and Technical Sciences. Saveetha School of Engineering,
Department of Computer Science and Engineering. Chennai, Tamil Nadu 602117, India.
2 Sathyabama Institute of Science and Technology. Electronics and Communication Engineering.
Chennai, Tamil Nadu 600119, India.
3 Madnapalle Institute of Technology and Science. Department of Computer Science and
Engineering. Madanapalle, Andhra Pradesh 517326, India.
- Author for correspondence: surendranr.sse@saveetha.com
ABSTRACT
Agricultural fruit production is significantly affected by plant diseases that reduce crop yield,
degrade fruit quality, increase pesticide dependency, and threaten global food security. Disease
symptoms vary considerably in lesion texture, shape, color, infection spread, and environmental
background, making accurate disease identification challenging. Existing machine learning
approaches rely on handcrafted features and demonstrate poor generalization under varying
field conditions. Conventional deep learning methods also have limitations, including
inaccurate lesion boundary extraction, privacy concerns in distributed agricultural data, and
insufficient severity-aware decision support. To address these challenges, this research proposes
an integrated intelligent approach for fruit disease detection and severity estimation using
segmentation, privacy-preserving classification, and explainable severity prediction through
the Plant Fruit Disease Severity Alert Network (PDANet). The fruit disease image dataset was
preprocessed using an anisotropic diffusion filter to suppress noise while preserving disease
boundaries and texture information. The images were then segmented using the proposed
Deformable Enhanced Multi-Channel Attention Swin U-Net (DES-UNet), which incorporates
Enhanced Multi-Channel Attention and a Deformable Convolution-based Multi-Layer
Perceptron to improve lesion boundary extraction, contextual feature learning, and irregular
symptom localization. Disease classification was performed using the proposed Quantum
ChronoNet-based Federated Learning (QC-FL) framework, in which the local model is based
on Quantum ChronoNet. Finally, disease severity was estimated using a Retrieval-Augmented
Generation (RAG)-based Large Language Model (LLM), which combines segmented lesion
measurements, classified disease information, and retrieved agricultural knowledge to estimate
disease severity and generate contextual farmer alerts. The proposed PDANet model achieved
98.8 % accuracy, 98.5 % F1-score, 98.2 % sensitivity, 98.6 % specificity, 0.98 Kappa coefficient,
0.98 Matthews Correlation Coefficient (MCC), and 0.97 General Detection Rate (GDR). The
experimental results demonstrate that the proposed model provides accurate and stable fruit
disease classification that supports lesion-based severity assessment.
Citation: Natarajan P, Rajendran
S, Anandan A, Balasundaram A.
- Plant fruit disease severity
alert network using hybrid
deep learning and a retrieval-
augmented generation model.
Agrociencia. https://doi.org/
10.47163/agrociencia.v60i7.3687
Editor in Chief:
Dr. Fernando C. Gómez-Merino
Received: February 16, 2026.
Approved: September 20, 2026.
Published in Agrociencia:
September 28, 2026.
This work is licensed under a
Creative Commons Attribution-
Non- Commercial 4.0
International license.
PLANT FRUIT DISEASE SEVERITY ALERT NETWORK USING
HYBRID DEEP LEARNING AND A RETRIEVAL-AUGMENTED
GENERATION MODEL
Prakash Natarajan1, Surendran Rajendran1*, Aranganathan Anandan2,
Anandaraj Balasundaram3
1
Agrociencia 2026. DOI: https://doi.org/10.47163/agrociencia.v60i7.3687
Scientific Article 2
Keywords: disease severity, retrieval-augmented generation, deep learning, deformable
convolution, large language model.
INTRODUCTION
Fruit crops are highly vulnerable to fungal, bacterial, and viral diseases that severely
affect yield, quality, market value, and post-harvest storage (Srinivasan et al., 2025).
Diseases such as anthracnose, citrus canker, apple scab, powdery mildew, and fruit
rot produce lesions, discoloration, texture changes, and necrotic regions that are
difficult to identify through manual field inspection (Goyal and Lakhwani, 2025).
Conventional disease evaluation is labor-intensive, subjective, time-consuming, and
unsuitable for large-scale orchards with varying illumination, occlusion, and complex
backgrounds (Goyal et al., 2025). Delayed diagnosis leads to increased production
losses, higher pesticide use, and a decline in product quality, ultimately impacting
agricultural sustainability and global food security (Adiani et al., 2026).
Automated fruit disease detection and severity estimation have become essential
components of precision agriculture by enabling early diagnosis, targeted pesticide
application, yield preservation, and reduced environmental impact (Golder et al., 2026).
Intelligent disease monitoring supports site-specific crop management and spraying
systems (Owais et al., 2026). Artificial intelligence (AI)-based disease surveillance also
contributes to irrigation optimization, nutrient management, and disease control
strategies (El-Saber et al., 2026). Computer vision-based crop monitoring platforms
facilitate real-time detection of disease outbreaks across large cultivation areas
(Reddy and Kumari, 2026), while post-harvest inspection systems identify infected
fruits during grading, packaging, and supply-chain operations (Sifath et al., 2026).
Furthermore, agricultural insurance, yield forecasting, disease epidemiology, agro-
advisory services, and export quality certification increasingly rely on robust disease
quantification frameworks (Naveen and Ajitha, 2026).
Fruit disease detection methods have evolved from traditional machine learning
approaches to advanced deep learning frameworks (Alrashdi et al., 2026). Early machine
learning methods relied on handcrafted features, including color histograms, Local
Binary Patterns (LBP), Gray-Level Co-occurrence Matrix (GLCM)texture descriptors,
shape features, and edge statistics, together with classifiers such as Support Vector
Machine (SVM), Random Forest, and k-nearest neighbors (k-NN) (Sajitha et al., 2026).
However, these approaches exhibit limited robustness to background clutter, lighting
variations, inter-class similarity, and lesion-scale variation (Patel et al., 2026). Deep
learning architectures, including AlexNet, VGGNet, ResNet, DenseNet, EfficientNet,
and object detection models such as You Only Look Once (YOLO), Faster R-CNN,
and Single Shot Detector (SSD), have significantly improved disease classification
and lesion localization. Nevertheless, existing methods still suffer from limited
generalization, inaccurate lesion boundary extraction, class imbalance, and insufficient
interpretability under real agricultural conditions.
Agrociencia 2026. DOI: https://doi.org/10.47163/agrociencia.v60i7.3687
Scientific Article 3
Deep learning addresses several of these limitations by automatically learning
hierarchical visual representations that combine low-level texture, edge, and color
information with high-level semantic disease features, thereby improving classification
reliability under varying field conditions (Prasad et al., 2025). Transfer learning further
reduces training complexity by adapting pretrained models to agricultural datasets,
while hybrid architectures combining Convolutional Neural Networks (CNNs),
transformers, and attention mechanisms enhance contextual feature learning and
lesion discrimination (Kaur et al., 2025). In addition, data augmentation, synthetic
image generation, explainable artificial intelligence (XAI), and federated learning
improve robustness, interpretability, privacy preservation, and learning from limited
datasets (Ramkumar, 2026).
Among segmentation approaches, U-Net variants have become widely adopted for
pixel-level lesion extraction. Architectures such as U-Net, Attention U-Net, U-Net++,
Residual U-Net, and lightweight U-Net variants accurately delineate infected
regions with irregular boundaries, overlapping symptoms, and complex orchard
backgrounds, enabling precise disease severity quantification (Sandhi et al., 2026; Dey
et al., 2026). Likewise, hybrid classification models combining CNN-based feature
extraction with transformer-based contextual learning, attention mechanisms, and
ensemble fusion improve inter-class discrimination and reduce false classifications in
visually similar diseases (Kumaran et al., 2026). More recently, Large Language Models
(LLMs) have emerged as a reasoning layer that transforms segmentation outputs
and disease classifications into interpretable severity assessments and management
recommendations. By integrating visual severity metrics with agronomic knowledge,
LLMs estimate disease stages, generate treatment recommendations, and provide
disease progression warnings, thereby improving diagnostic interpretability and
decision support (Sai Tejasree et al., 2025).
Recent studies have explored different strategies for automated fruit disease detection
and severity estimation. Rupa et al. (2026) proposed a hybrid CNN framework
with multi-task learning for simultaneous citrus disease classification and severity
prediction, improving cross-species generalization through domain adaptation. Goyal
et al. (2026) developed a lightweight CNN architecture that reduced computational
cost while maintaining high classification accuracy for citrus diseases. Amanova et
al. (2026) introduced an Edge-AI framework based on YOLOv10n and MobileViT-S
for real-time strawberry disease detection and severity classification. Faye et al. (2025)
combined image segmentation with deep learning to quantify mango disease severity
using lesion area measurements, providing improved disease progression assessment.
In addition, Bitto et al. (2026) developed a real-world fruit disease dataset acquired
under natural field conditions to support the development and evaluation of robust
machine learning and deep learning models. These studies demonstrate significant
progress in disease recognition, lesion quantification, lightweight deployment, and
dataset development, providing a strong foundation for intelligent fruit disease
diagnosis.
Agrociencia 2026. DOI: https://doi.org/10.47163/agrociencia.v60i7.3687
Scientific Article 4
Despite these advances, several challenges remain unresolved. Existing approaches
still exhibit limited robustness for accurate lesion segmentation under complex
field conditions, particularly when disease symptoms present irregular boundaries,
overlapping infections, and heterogeneous backgrounds. Most methods address
disease classification, segmentation, or severity estimation as separate tasks rather
than as components of a unified diagnostic framework. The widespread reliance on
centralized learning raises privacy concerns when agricultural data from distributed
farms are aggregated for model training. Current severity estimation methods also
provide limited contextual reasoning and decision support, reducing their practical
value for disease management. These limitations highlight the need for an integrated,
scalable, and interpretable framework that combines accurate lesion delineation,
privacy-preserving distributed learning, explainable severity assessment, and
actionable recommendations for precision agriculture.
To address these challenges, this study proposes the Plant Fruit Disease Severity Alert
Network (PDANet), an integrated framework for fruit disease detection and severity
estimation. The framework combines Anisotropic Diffusion Filtering (ADF) for
noise suppression and edge preservation, the Deformable Enhanced Multi-Channel
Attention Swin U-Net (DES-UNet) for accurate lesion segmentation, Quantum
ChronoNet-based Federated Learning (QC-FL) for privacy-preserving disease
classification, and a Retrieval-Augmented Generation (RAG)-based Large Language
Model (LLM) for contextual severity estimation and intelligent farmer alert generation.
DES-UNet enhances lesion boundary extraction and feature learning, QC-FL enables
distributed learning without sharing raw data, and the RAG-based LLM integrates
lesion measurements, disease classification, and retrieved agricultural knowledge
to estimate disease severity and generate interpretable recommendations. Together,
these components provide an end-to-end framework for accurate, privacy-preserving,
and explainable fruit disease management.
MATERIALS AND METHODS
Overall framework
The proposed Plant Fruit Disease Severity Alert Network (PDANet) for fruit disease
diagnosis is designed to improve detection accuracy, privacy preservation, and severity-
aware decision support. Initially, the fruit disease dataset is preprocessed using the
Anisotropic Diffusion Filter (ADF), which removes imaging noise while preserving
edge continuity, lesion texture, and color patterns for disease characterization. The
preprocessed images are then segmented using the proposed Deformable Enhanced
Multi-Channel Attention Swin U-Net (DES-UNet). The Swin Transformer encoder
captures multi-scale local and global contextual representations, while the Enhanced
Multi-Channel Attention (EMCA) module improves feature discrimination by
assigning adaptive attention weights across channel representations. In addition, the
Agrociencia 2026. DOI: https://doi.org/10.47163/agrociencia.v60i7.3687
Scientific Article 5
Deformable Convolution-based Multi-Layer Perceptron (DC-MLP) enhances feature
adaptability by learning dynamic receptive fields for irregular disease regions (Figure
1).
Figure 1. Overall workflow of the proposed Plant Fruit Disease Severity Alert Network (PDANet)
for fruit disease detection, classification, and severity estimation. DES-UNet: Deformable Enhanced
Multi-Channel Attention Swin U-Net; QC-FL: Quantum ChronoNet-based Federated Learning;
RAG-LLM: Retrieval-Augmented Generation-based Large Language Model.
The segmented disease regions are subsequently used by the Quantum ChronoNet-
based Federated Learning (QC-FL) model for disease classification. In this framework,
each client is trained using a hybrid Quantum ChronoNet architecture that integrates
convolution layers for spatial feature extraction, Quantum Neural Networks (QNNs)
for high-dimensional feature mapping, and ChronoNet layers for temporal sequence
learning. Federated parameter aggregation enables global model optimization while
preserving data privacy. Finally, the classified disease outcomes and segmented
lesion measurements are utilized by the Retrieval-Augmented Generation (RAG)-
based Large Language Model (LLM) to estimate disease severity levels and generate
personalized warning alerts and treatment recommendations for farmers.
Data acquisition
The input for the proposed PDANet model was acquired from the publicly
available Pomegranate Fruit Diseases Dataset (https://www.kaggle.com/datasets/
sujaykapadnis/pomegranate-fruit-diseases-dataset).
Input From Publically
Available Dataset
Pre-Processing using
Anisotropic Diffusion
Filter
Segmentation using
Proposed DES-UNet
Model
Disease Classification
Using Proposed QC-FL
Model
Severity Estimation
using RAG-LLM
$ $
$
$
Agrociencia 2026. DOI: https://doi.org/10.47163/agrociencia.v60i7.3687
Scientific Article 6
The dataset contains 5099 images of pomegranate fruits acquired under real-world
agricultural conditions, including healthy samples and fruits affected by fungal and
bacterial diseases. The images exhibit variations in color, texture, lesion patterns, and
infection severity, making the dataset suitable for training and evaluating models
for disease classification, lesion segmentation, and severity estimation in precision
agriculture and early disease management. The dataset includes the following classes:
Healthy (1450 images), Bacterial blight (966), Anthracnose (1166), Cercospora fruit spot
(631), and Alternaria fruit spot (886).
Preprocessing
Anisotropic Diffusion Filtering (ADF) is an edge-preserving smoothing technique used
to enhance lesion regions by suppressing noise. The ADF selectively diffuses pixel
intensities based on local gradient information while preserving important boundaries,
including diseased spots, discolorations, and texture variations. As a result, infected
regions are accurately delineated by reducing intra-region intensity variation while
maintaining inter-region contrast. Let the input fruit image be represented as S, and
the filtered image be expressed as:
𝜕𝜕𝜕𝜕(𝑚𝑚, 𝑟𝑟, 𝑢𝑢)
𝜕𝜕𝑢𝑢 = 𝛻𝛻 ⋅ (𝑞𝑞(𝑚𝑚, 𝑟𝑟, 𝑢𝑢)𝛻𝛻𝜕𝜕(𝑚𝑚, 𝑟𝑟, 𝑢𝑢))
where S(m,r,u) denotes the image at pixel coordinates (m,r) during iteration u, ¶S/¶u
represents the rate of change in image intensity during diffusion, ÑS denotes the spatial
gradient, q(m,r,u) represents the diffusion coefficient, and Ñ× denotes the divergence
operator that describes the diffusion flow.
DES-UNet-based ROI segmentation
The Region of Interest (ROI)segmentation is performed using the proposed DES-UNet,
in which the attention mechanism is implemented using Enhanced Multi-Channel
Attention (EMCA) and the Multi-Layer Perceptron (MLP) is enhanced with deformable
convolution. The proposed DES-UNet is designed to improve plant fruit disease ROI
segmentation by accurately identifying infected regions that are small, irregular, and
visually similar to background textures. In the encoder-decoder architecture, Window-
based Multi-Head Self-Attention (W-MSA) and Shifted Window Multi-Head Self-
Attention (SW-MSA) are employed for attention-based feature learning, while feature
refinement is performed using the MLP block. The EMCA module enhances disease-
relevant channel representations by suppressing the effects of illumination changes,
shadows, and complex fruit textures. In addition, the Deformable Convolution-based
MLP (DC-MLP) learns dynamic receptive fields through deformable convolution,
enabling more effective extraction of irregular lesion boundaries than fixed-grid
convolutions. As a result, DES-UNet improves feature representation, enhances
boundary sensitivity, and produces more accurate segmentation masks with reduced
computational complexity.
Agrociencia 2026. DOI: https://doi.org/10.47163/agrociencia.v60i7.3687
Scientific Article 7
Let the input fruit image be represented as G, which is divided into non-overlapping
patches of size V × V. The total number of patches is given by L = U/V ´ D/V, where
U and D denote the image height and width, respectively. Each patch is flattened and
projected into the embedding dimension Q as:
𝐵𝐵0 = 𝑃𝑃𝑃𝑃(𝐺𝐺) = 𝐺𝐺𝑣𝑣𝐻𝐻𝑒𝑒 + 𝑠𝑠𝑒𝑒
where PE(·) is the patch embedding operation, Gv denotes the flattened patch vector,
He represents the embedding projection matrix, se is the bias, and B0 denotes the patch
embeddings.
DE-Swin module
The encoder consists of multiple hierarchical Swin stages, each comprising layer
normalization, W-MSA, SW-MSA, and an MLP layer. Layer normalization before the
attention module is formulated as:
𝐵𝐵̃ = 𝐿𝐿𝐿𝐿(𝐵𝐵)
where LN(·) denotes the layer normalization operation.
The EMCA-enhanced W-MSA is then used to improve feature extraction by
replacing the conventional attention mechanism with EMCA. The EMCA module
combines Global Average Pooling (GAP) and Global Max Pooling (GMP) to capture
complementary channel information. Average pooling preserves the overall contextual
structure, whereas max pooling highlights the most discriminative lesion responses.
The pooled descriptors are fused using one-dimensional convolution to learn channel
attention weights that suppress irrelevant background information and emphasize
lesion-specific features with minimal computational overhead.
The global average pooling is expressed as:
𝐺𝐺𝐺𝐺𝐺𝐺(𝑏𝑏) = 1𝐷𝐷 × 𝑈𝑈 ∑ ∑ 𝑏𝑏𝑑𝑑𝑑𝑑
𝑈𝑈
𝑑𝑑=1
𝐷𝐷
𝑑𝑑=1
where b denotes one channel of the feature map and bdu represents the pixel value at
location (d, u). Similarly, global max pooling is computed as:
𝑀𝑀𝑀𝑀(𝑏𝑏) = 𝑚𝑚𝑚𝑚𝑚𝑚
𝑑𝑑,𝑢𝑢
(𝑏𝑏𝑑𝑑𝑢𝑢)
The pooled descriptors are combined to obtain the channel representation:
Agrociencia 2026. DOI: https://doi.org/10.47163/agrociencia.v60i7.3687
Scientific Article 8
𝐽𝐽𝑝𝑝𝑝𝑝𝑝𝑝𝑝𝑝 = 𝑀𝑀𝑀𝑀(𝑏𝑏) + 𝐺𝐺𝐺𝐺𝑀𝑀(𝑏𝑏)
To model channel dependencies, EMCA applies one-dimensional convolution:
𝜆𝜆 = 𝜀𝜀 (𝐶𝐶𝐶𝐶𝐶𝐶𝑣𝑣𝑖𝑖(𝐽𝐽𝑝𝑝𝑝𝑝𝑝𝑝𝑝𝑝))
where Convi (·) denotes the one-dimensional convolution, ε(·) is the sigmoid activation
function, and λ represents the channel attention vector.
The convolution kernel size is adaptively determined according to the number of
channels:
𝑖𝑖 = [𝑙𝑙𝑙𝑙𝑙𝑙2(𝑄𝑄)𝛼𝛼 + 𝑚𝑚𝛼𝛼 ]𝑜𝑜𝑜𝑜𝑜𝑜
where m and α are hyperparameters controlling the kernel size, and [·] odd denotes
rounding to the nearest odd integer. The output of the multi-head self-attention is
given by:
𝑀𝑀𝑀𝑀𝑀𝑀(𝐵𝐵) = 𝑀𝑀𝐴𝐴𝐴𝐴𝐴𝐴(ℎ𝑒𝑒𝑒𝑒𝑑𝑑1, ℎ𝑒𝑒𝑒𝑒𝑑𝑑2, . . . . . ℎ𝑒𝑒𝑒𝑒𝑑𝑑ℎ )𝐻𝐻0
where h denotes the number of attention heads, Aggr(·) represents the aggregation
operation, and H0 is the output projection matrix.
The output of W-MSA is expressed as:
𝐵𝐵′ = 𝐵𝐵 + 𝑀𝑀𝑀𝑀𝑀𝑀(𝐿𝐿𝐿𝐿(𝐵𝐵))
To enable cross-window interactions, SW-MSA shifts the window size C/2:
𝐵𝐵″ = 𝐵𝐵′ + 𝑆𝑆𝑆𝑆 − 𝑀𝑀𝑆𝑆𝑀𝑀(𝐿𝐿𝐿𝐿(𝐵𝐵′))
The MLP block is enhanced using deformable convolution to improve spatial
adaptability by dynamically adjusting the convolution sampling locations according
to the input features. Learnable offsets allow the sampling grid to align with irregular
lesion structures, while modulation weights further emphasize informative regions
and suppress irrelevant features.
The deformable convolution is formulated as:
𝐾𝐾(𝑔𝑔) = ∑ 𝑁𝑁(𝑛𝑛) ⋅ 𝑉𝑉(𝑔𝑔 + 𝑛𝑛 + 𝛥𝛥𝑔𝑔𝑛𝑛)
𝑛𝑛∈𝑅𝑅
Agrociencia 2026. DOI: https://doi.org/10.47163/agrociencia.v60i7.3687
Scientific Article 9
where Δgn denotes the learnable offset for sampling position n, N(n) represents the
convolution kernel weights, R is the receptive field, g denotes the pixel coordinate,
and V is the input feature map. Since g + n + Δgn may correspond to non-integer pixel
coordinates, bilinear interpolation is applied:
𝑉𝑉(𝑙𝑙) = ∑ 𝐷𝐷(𝑙𝑙, 𝑙𝑙𝑎𝑎) ⋅ 𝑉𝑉(𝑙𝑙𝑎𝑎)
𝑙𝑙𝑎𝑎
where D(·) denotes the bilinear interpolation weight, l represents the fractional
sampling coordinate, and la denotes the neighboring integer grid points.
To further improve flexibility, a modulation scalar βn is introduced:
𝐾𝐾(𝑔𝑔) = ∑ 𝛽𝛽𝑛𝑛 ⋅ 𝑁𝑁(𝑛𝑛) ⋅ 𝑉𝑉(𝑔𝑔 + 𝑛𝑛 + 𝛥𝛥𝑔𝑔𝑛𝑛)
𝑛𝑛∈𝑅𝑅
where the modulation scalar is computed as:
𝛽𝛽𝑛𝑛 = 𝜒𝜒(𝑞𝑞(𝑉𝑉))
with χ(·) denoting the sigmoid activation function and q(·) being the auxiliary
convolution layer used to predict the modulation scalars.
The output of the MLP block is then expressed as:
𝐵𝐵𝑀𝑀𝑀𝑀𝑀𝑀 = 𝐻𝐻2𝜑𝜑(𝐷𝐷𝐷𝐷(𝐻𝐻1𝐵𝐵))
where H1 and H2 denote the projection matrices, ϕ is the activation function, and DC(·)
represents the deformable convolution.
Patch merging and decoder
To reduce the spatial resolution while increasing the channel dimension, patch
merging is performed as:
𝐵𝐵𝐷𝐷𝐷𝐷 = 𝑀𝑀𝑀𝑀𝑀𝑀𝑀𝑀𝑀𝑀(𝐵𝐵)𝐻𝐻𝑚𝑚𝑚𝑚𝑚𝑚𝑚𝑚𝑚𝑚
where Merge(·) concatenates neighboring patches, BDS denotes the merged feature
map, and Hmerge represents the learnable projection matrix. The encoder generates
multi-scale feature maps (En1, En2, En3, En4), which are preserved for skip connections.
The decoder progressively restores the spatial resolution through up-sampling:
Agrociencia 2026. DOI: https://doi.org/10.47163/agrociencia.v60i7.3687
Scientific Article 10
𝑀𝑀𝑎𝑎 = 𝑈𝑈𝑈𝑈(𝑀𝑀𝑎𝑎+1)
where Up(·) denotes the up-sampling operation and Ma is the up-sampled feature map.
The skip connection is fused as:
𝑉𝑉𝑎𝑎 = 𝐴𝐴𝐴𝐴𝐴𝐴𝐴𝐴(𝑀𝑀𝑎𝑎, 𝐸𝐸𝑛𝑛𝑎𝑎)
where Aggr(·) denotes feature concatenation and Ena represents the feature map from
the ath encoder stage.
Finally, a 1×1 convolution maps the decoded features into class logits:
𝑆𝑆𝑆𝑆𝑆𝑆 = 𝐶𝐶𝐶𝐶𝐶𝐶𝑣𝑣1×1(𝑉𝑉1)
where V1 denotes the fused feature map from the final decoder stage. The binary
disease segmentation output is obtained using the sigmoid activation function:
𝑂𝑂𝑂𝑂𝑂𝑂 = 𝜒𝜒(𝑆𝑆𝑆𝑆𝑆𝑆)
where χ(·) denotes the sigmoid function. Consequently, the proposed DES-UNet
accurately segments plant fruit disease regions by combining EMCA-based
channel attention with deformable convolution to enhance disease-relevant feature
representation and boundary localization.
QC-FL-based disease classification
The proposed Quantum ChronoNet-based Federated Learning (QC-FL) model
performs distributed time-series learning by training local models using a hybrid
Quantum ChronoNet architecture across multiple clients without sharing raw data
(Figure 2). Each client learns temporal features locally using convolution layers for
spatial feature extraction, a Quantum Layer to enhance nonlinear representation
through quantum state transformations, and the ChronoNet module to capture long-
term sequential dependencies. After local training, the updated model parameters are
transmitted to the central server, where the Federated Averaging (FedAvg) strategy
aggregates the local models into a global model. This process preserves data privacy,
improves generalization across distributed datasets, and provides high prediction
accuracy for plant disease classification.
For the input segmented image G, the local model extracts discriminative spatial
features using a convolution layer, which is formulated as:
𝑈𝑈 = 𝜆𝜆(𝐷𝐷𝑠𝑠 ∗ 𝐺𝐺 + 𝑣𝑣𝑠𝑠)
Agrociencia 2026. DOI: https://doi.org/10.47163/agrociencia.v60i7.3687
Scientific Article 11
QC Model
Proposed QC-FL Model ChronoNet Model
Convolution Layer
Encode Feature Value
into Quantum State
Quantum Computation
Measures Qubits
ChronoNet layer
Output
Features
QC Model
Input
Conv 1D Conv 1D Conv 1D
Aggr
Conv 1D Conv 1D Conv 1D
Aggr
GRU
GRU
Aggr
GRU
Aggr
QC based Local
ModelClient-1
QC based Local
ModelClient-2
QC based Local
ModelClient-N
Feature
Weights
Feature
Weights
Feature
Weights
FedAvg
Server
where Ds denotes the convolution kernel weights, vs represents the bias, * denotes
the convolution operation, λ is the ReLU activation function, and U represents the
extracted feature map. After pooling and flattening, the feature vector b is obtained as:
𝑏𝑏 = 𝐹𝐹𝐹𝐹𝐹𝐹𝐹𝐹𝐹𝐹𝐹𝐹𝐹𝐹(𝑈𝑈)
The extracted feature vector is then passed to the Quantum Neural Network (QNN)
layer, which performs quantum state encoding, entanglement transformation, and
measurement-based feature enhancement. The quantum layer improves feature
representation by capturing complex nonlinear disease patterns. The classical feature
vector b is encoded into the quantum state using angle encoding:
|𝜙𝜙(𝑏𝑏)⟩ = ∑ 𝑅𝑅𝑦𝑦(𝑏𝑏𝑎𝑎)|0⟩
𝑛𝑛
𝑎𝑎=1
Figure 2. Architecture of the proposed Quantum ChronoNet-based Federated Learning (QC-FL)
framework for privacy-preserving plant disease classification. QC: Quantum ChronoNet; Conv1D:
One-Dimensional Convolution; Aggr: Aggregation; GRU: Gated Recurrent Unit.
QC Model
Convolution Layer
Encode Feature Value
into Quantum State
Quantum Computation
Measures Qubits
Chrono Net Layer
Output
Features® ®®®® ®
Agrociencia 2026. DOI: https://doi.org/10.47163/agrociencia.v60i7.3687
Scientific Article 12
where |0 ñ denotes the initial quantum state, n is the number of encoded features, and
Ry(ba) represents the quantum rotation gate for feature ba. The rotation gate is defined
as:
𝑅𝑅𝑦𝑦(𝜓𝜓) = [𝑐𝑐𝑐𝑐𝑐𝑐(𝜓𝜓/2) − 𝑐𝑐𝑠𝑠𝑠𝑠(𝜓𝜓/2)𝑐𝑐𝑠𝑠𝑠𝑠(𝜓𝜓/2) 𝑐𝑐𝑐𝑐𝑐𝑐(𝜓𝜓/2) ]
A trainable quantum circuit based on entanglement and rotation operations is then
employed for variational quantum circuit transformation:
|𝜃𝜃⟩ = 𝐴𝐴(𝛩𝛩)|𝜙𝜙(𝑏𝑏)⟩
where A(Θ) denotes the parameterized quantum unitary operator and Θ represents the
trainable quantum parameters. Quantum measurements are subsequently performed
to extract expectation values as quantum-enhanced features:
𝑠𝑠𝑎𝑎 = ⟨𝜃𝜃|𝐵𝐵̂𝑎𝑎|𝜃𝜃⟩
where 𝑠𝑠𝑎𝑎 = ⟨𝜃𝜃|𝐵𝐵̂𝑎𝑎|𝜃𝜃⟩
denotes the Pauli-Z observable operator and sa represents the measured
output feature. The quantum output vector is expressed as:
𝑠𝑠 = [𝑠𝑠1, 𝑠𝑠2, . . . . . 𝑠𝑠𝑏𝑏 ]
The quantum-enhanced features are then fed into the ChronoNet module to model
sequential dependencies. ChronoNet combines multi-scale convolutional feature
extraction with Gated Recurrent Unit (GRU) layers to enhance feature representation.
Parallel one-dimensional convolutions with kernel sizes d Î {2, 4, 8} are used. The
extracted multi-scale features are concatenated as:
𝑆𝑆𝐴𝐴𝐴𝐴𝐴𝐴𝐴𝐴 = [𝑆𝑆2‖𝑆𝑆4‖𝑆𝑆8]
where ‖ denotes channel-wise concatenation and SAggr represents the enriched
temporal features. The convolution and aggregation processes are repeated to improve
hierarchical feature learning:
𝑆𝑆𝐴𝐴𝐴𝐴𝐴𝐴𝐴𝐴ℎ = 𝐴𝐴𝐴𝐴𝐴𝐴𝐴𝐴(𝑆𝑆2ℎ, 𝑆𝑆4ℎ, 𝑆𝑆8ℎ)
where h denotes the convolution block index.
The concatenated feature sequence is then passed through stacked GRU layers, whose
computations are given by:
Agrociencia 2026. DOI: https://doi.org/10.47163/agrociencia.v60i7.3687
Scientific Article 13
𝑥𝑥𝑘𝑘 = 𝜇𝜇(𝐷𝐷𝑥𝑥 𝑠𝑠𝑘𝑘 + 𝑄𝑄𝑥𝑥 𝑓𝑓𝑘𝑘−1 + 𝑣𝑣𝑥𝑥)
𝑙𝑙𝑘𝑘 = 𝜇𝜇(𝐷𝐷𝑙𝑙 𝑠𝑠𝑘𝑘 + 𝑄𝑄𝑙𝑙 𝑓𝑓𝑘𝑘−1 + 𝑣𝑣𝑙𝑙 )
𝑓𝑓̂𝑘𝑘 = 𝑡𝑡𝑡𝑡𝑡𝑡ℎ(𝐷𝐷𝑓𝑓 𝑠𝑠𝑘𝑘 + 𝑄𝑄𝑓𝑓(𝑙𝑙𝑘𝑘 ⊙ 𝑓𝑓𝑘𝑘−1) + 𝑣𝑣𝑓𝑓 )
𝑓𝑓𝑘𝑘 = (1 − 𝑥𝑥𝑘𝑘 )𝛩𝛩𝑓𝑓𝑘𝑘−1 + 𝑥𝑥𝑘𝑘 ⊙ 𝑓𝑓̂𝑘𝑘
where fk denotes the GRU hidden state, sk represents the convolution feature at time
step k, D and Q denote the trainable GRU weight matrices, v represents the bias, and
ʘ denotes element-wise multiplication. The update gate, reset gate, candidate hidden
state, and final hidden state are represented by xk, lk,
, and fk, respectively.
The final GRU output is transformed into logits as:
𝑏𝑏 = 𝐷𝐷𝑜𝑜 𝑓𝑓𝐾𝐾 + 𝑣𝑣𝑜𝑜
where Do and vo denote the output layer parameters and fK represents the final hidden
state. The class probabilities are then computed as:
𝑏𝑏̂𝑖𝑖 = 𝑒𝑒𝑏𝑏𝑖𝑖∑ 𝑒𝑒𝑏𝑏𝑎𝑎𝐶𝐶𝑎𝑎=1
where C denotes the number of classes and
represents the predicted probability of
class i.Each client minimizes the categorical cross-entropy loss:
𝐿𝐿𝐿𝐿𝐿𝐿𝐿𝐿 = − ∑ 𝑏𝑏𝑖𝑖 𝑙𝑙𝐿𝐿𝑙𝑙(𝑏𝑏̂𝑖𝑖)
𝐶𝐶
𝑎𝑎=1
where bi denotes the true class label. Each client n updates its local model parameters
as:
𝜑𝜑𝑛𝑛𝑐𝑐𝑐𝑐 = 𝜑𝜑𝑐𝑐𝑐𝑐 − 𝜂𝜂𝛻𝛻𝐿𝐿𝐿𝐿𝐿𝐿𝐿𝐿𝑛𝑛(𝜑𝜑𝑐𝑐𝑐𝑐)
where ϕ denotes the model parameters, η is the learning rate, cr represents the
communication round, and Lossn denotes the local loss at client n.
After local training, the server aggregates the model parameters from all clients using
the Federated Averaging (FedAvg) strategy:
Agrociencia 2026. DOI: https://doi.org/10.47163/agrociencia.v60i7.3687
Scientific Article 14
𝜑𝜑𝑐𝑐𝑐𝑐+1 = ∑ 𝑠𝑠𝑛𝑛
𝑆𝑆
𝑁𝑁
𝑛𝑛=1
𝜑𝜑𝑛𝑛𝑐𝑐𝑐𝑐
where N denotes the number of clients, sn represents the number of samples at client
n, S denotes the total number of samples across all clients, and ϕ (cr+1) represents the
updated global model parameters.
LLM-based severity estimation
In the proposed framework, the Retrieval-Augmented Generation (RAG)-based Large
Language Model (LLM) serves as the decision-support module for disease severity
grading based on the prediction results. Disease segmentation is performed using
DES-UNet, while disease classification is carried out using the proposed QC-FL model.
The framework then extracts severity-related indicators, including the infected region
percentage, lesion spread patterns, and deviation scores. These indicators, together
with the predicted disease class, are used as a structured query to retrieve relevant
severity definitions, grading rules, and expert guidelines from the knowledge base.
The RAG-based LLM generates the severity labels Low, Medium, or High, along
with human-readable explanations and alerts for farmers. Since the LLM generates
responses based on retrieved expert knowledge, hallucinations are reduced and
reliable, severity-aware recommendations are produced.
The disease severity is estimated from the proportion of infected pixels as:
𝐷𝐷𝐷𝐷(%) = ∑ ∑ 𝑌𝑌𝑖𝑖(𝑝𝑝, 𝑞𝑞)𝑈𝑈𝑞𝑞=1𝐷𝐷𝑝𝑝=1
∑ ∑ 𝑌𝑌𝑗𝑗(𝑝𝑝, 𝑞𝑞)𝑈𝑈𝑞𝑞=1𝐷𝐷𝑝𝑝=1 × 100
where DS(%) denotes the disease severity percentage, Yi represents the diseased
pixels, and Yj denotes the total fruit pixels.
Query formation
The query for the RAG model is generated by combining the predicted disease type,
DType, and the estimated infected region percentage:
𝑞𝑞𝑞𝑞𝑞𝑞𝑞𝑞𝑞𝑞 = (𝐷𝐷𝑇𝑇𝑇𝑇𝑇𝑇𝑇𝑇 , 𝐷𝐷𝐷𝐷%)
The severity knowledge base is represented as:
𝐺𝐺 = {𝑔𝑔1, 𝑔𝑔2, . . . 𝑔𝑔𝑆𝑆}
where S denotes the total number of knowledge entries. Each entry contains the
corresponding severity rules:
Agrociencia 2026. DOI: https://doi.org/10.47163/agrociencia.v60i7.3687
Scientific Article 15
𝑔𝑔𝑚𝑚 = (𝑏𝑏𝑚𝑚, 𝑙𝑙𝑚𝑚)
where bm denotes the severity grading guideline and lm represents the associated
metadata, including the disease class and severity thresholds. The query and
knowledge base entries are then transformed into embedding vectors for similarity-
based retrieval.
Similarity based retrieval
The top-K relevant documents are retrieved using cosine similarity:
𝐶𝐶𝐶𝐶(𝑓𝑓ℎ, 𝑓𝑓𝑚𝑚) = 𝑓𝑓ℎ ⋅ 𝑓𝑓𝑚𝑚‖𝑓𝑓ℎ‖‖𝑓𝑓𝑚𝑚‖
where fh denotes the query embedding, fm represents the document embedding, and
CS(·) denotes the cosine similarity. The retrieved document set is expressed as:
𝑅𝑅𝑅𝑅𝑅𝑅 = {𝑔𝑔1∗, 𝑔𝑔2∗, . . . 𝑔𝑔𝐺𝐺∗ }
where Ret contains the retrieved severity grading rules relevant to the predicted
disease. The retrieved knowledge is concatenated to form the contextual information:
𝐴𝐴 = 𝐶𝐶𝐶𝐶𝐶𝐶𝐶𝐶𝐶𝐶𝐶𝐶(𝑏𝑏1∗, 𝑏𝑏2∗, . . . 𝑏𝑏𝐺𝐺∗ )
where Concat(·) denotes the concatenation operation and A represents the context
provided to the LLM.
The LLM predicts the disease severity as:
𝐷𝐷̂ = 𝐿𝐿𝐿𝐿𝐿𝐿(ℎ, 𝐴𝐴)
where 𝐷𝐷̂ ∈ [𝑀𝑀𝑀𝑀𝑀𝑀𝑀𝑀, 𝑀𝑀𝑀𝑀𝑀𝑀𝑀𝑀𝑀𝑀𝑀𝑀𝑀𝑀𝑀𝑀, 𝑆𝑆𝑀𝑀𝑆𝑆𝑀𝑀𝑀𝑀𝑀𝑀]
denotes the predicted disease severity and h
represents the input query.The LLM also generates a natural-language explanation:
𝐸𝐸 = 𝐿𝐿𝐿𝐿𝑀𝑀(ℎ, 𝐴𝐴)𝑒𝑒𝑒𝑒𝑒𝑒
where E denotes the severity justification.
Based on the predicted severity, the corresponding alert level is generated as:
𝐴𝐴𝐴𝐴𝐴𝐴𝐴𝐴𝐴𝐴 = {
𝑀𝑀𝑀𝑀𝐴𝐴𝑀𝑀, 𝑚𝑚𝑚𝑚𝑚𝑚𝑀𝑀𝐴𝐴𝑚𝑚𝐴𝐴 𝑚𝑚𝑚𝑚𝐴𝐴𝑜𝑜
𝑀𝑀𝑚𝑚𝑀𝑀𝐴𝐴𝐴𝐴𝑀𝑀𝐴𝐴𝐴𝐴, 𝐴𝐴𝐴𝐴𝐴𝐴𝑀𝑀𝐴𝐴𝑚𝑚𝐴𝐴𝑚𝑚𝐴𝐴 𝐴𝐴𝐴𝐴𝑟𝑟𝑟𝑟𝑀𝑀𝐴𝐴𝐴𝐴𝑀𝑀
𝑆𝑆𝐴𝐴𝑆𝑆𝐴𝐴𝐴𝐴𝐴𝐴, 𝑀𝑀𝑚𝑚𝑚𝑚𝐴𝐴𝑀𝑀𝑀𝑀𝑀𝑀𝐴𝐴𝐴𝐴 𝑀𝑀𝑎𝑎𝐴𝐴𝑀𝑀𝑚𝑚𝑚𝑚
Agrociencia 2026. DOI: https://doi.org/10.47163/agrociencia.v60i7.3687
Scientific Article 16
The LLM-based severity estimation and alert module converts disease classification
results and segmented lesion characteristics into interpretable severity levels and
actionable recommendations for farmers. By incorporating RAG-based knowledge
retrieval, the proposed framework generates scientifically grounded severity
assessments and alerts, reducing hallucinations and improving the reliability of
decision support.
Framework implementation and evaluation metrics
The proposed PDANet was implemented in Python 3.10 using NumPy 1.26.4,
SciPy 1.15.3, Scikit-learn 1.7.2, Pandas 2.3.0, Matplotlib 3.10.9, OpenCV 4.13.0, and
TensorFlow 2.12.1. Its performance was evaluated against existing methods, including
Hybrid CNN, C-CNN, YOLOv10n + Ordinal MobileViT-S, and ResNet50 CNN.
The performance of the proposed PDANet was evaluated using accuracy, sensitivity,
specificity, F1-score, Cohen’s Kappa coefficient, Matthews Correlation Coefficient
(MCC), and General Detection Rate (GDR). Classification performance was assessed
using 3-, 5-, 7-, and 10-fold cross-validation. In addition, statistical significance was
evaluated using the t-test and Wilcoxon signed-rank test to compare the proposed
model with the benchmark methods. The evaluation measures are defined as follows:
𝐴𝐴𝐴𝐴𝐴𝐴𝐴𝐴𝐴𝐴𝐴𝐴𝐴𝐴𝐴𝐴 = 𝑇𝑇𝑇𝑇 + 𝑇𝑇𝑇𝑇𝑇𝑇𝑇𝑇 + 𝑇𝑇𝑇𝑇 + 𝐹𝐹𝑇𝑇 + 𝐹𝐹𝑇𝑇
𝑆𝑆𝑆𝑆𝑆𝑆𝑆𝑆𝑆𝑆𝑆𝑆𝑆𝑆𝑆𝑆𝑆𝑆𝑆𝑆𝐴𝐴 = 𝑇𝑇𝑇𝑇𝑇𝑇𝑇𝑇 + 𝐹𝐹𝑇𝑇
𝑆𝑆𝑆𝑆𝑆𝑆𝐴𝐴𝑆𝑆𝑆𝑆𝑆𝑆𝐴𝐴𝑆𝑆𝑆𝑆𝐴𝐴 = 𝑇𝑇𝑇𝑇𝑇𝑇𝑇𝑇 + 𝐹𝐹𝑇𝑇
𝐹𝐹1 𝑆𝑆𝐴𝐴𝑠𝑠𝐴𝐴𝑆𝑆 = 2 × 𝑇𝑇𝐴𝐴𝑆𝑆𝐴𝐴𝑆𝑆𝑆𝑆𝑆𝑆𝑠𝑠𝑆𝑆 × 𝑅𝑅𝑆𝑆𝐴𝐴𝐴𝐴𝑅𝑅𝑅𝑅𝑇𝑇𝐴𝐴𝑆𝑆𝐴𝐴𝑆𝑆𝑆𝑆𝑆𝑆𝑠𝑠𝑆𝑆 + 𝑅𝑅𝑆𝑆𝐴𝐴𝐴𝐴𝑅𝑅𝑅𝑅
𝐶𝐶𝑠𝑠ℎ𝑆𝑆𝑆𝑆′𝑆𝑆 𝐾𝐾𝐴𝐴𝑆𝑆𝑆𝑆𝐴𝐴 = 𝑇𝑇0 − 𝑇𝑇𝑒𝑒
1 − 𝑇𝑇𝑒𝑒
𝑀𝑀𝐶𝐶𝐶𝐶 =
(𝑇𝑇𝑇𝑇 × 𝑇𝑇𝑇𝑇) − (𝐹𝐹𝑇𝑇 × 𝐹𝐹𝑇𝑇)
√(𝑇𝑇𝑇𝑇 + 𝐹𝐹𝑇𝑇)(𝑇𝑇𝑇𝑇 + 𝐹𝐹𝑇𝑇)(𝑇𝑇𝑇𝑇 + 𝐹𝐹𝑇𝑇)(𝑇𝑇𝑇𝑇 + 𝐹𝐹𝑇𝑇)
where Po is the observed agreement and Pe is the expected agreement by chance. TP,
TN, FP, and FN represent true positive, true negative, false positive, and false negative,
respectively. The training, validation, and testing datasets were divided at a ratio of
80:10:10.
Agrociencia 2026. DOI: https://doi.org/10.47163/agrociencia.v60i7.3687
Scientific Article 17
RESULTS AND DISCUSSION
Qualitative analysis
The qualitative results obtained using the proposed PDANet are presented (Figure 3).
The preprocessing stage effectively suppresses image noise while preserving lesion
boundaries, enabling accurate lesion segmentation by the proposed DES-UNet. The
Figure 3. Qualitative results of the proposed Plant Fruit Disease Severity Alert Network (PDANet), including input
images, preprocessed images, segmentation masks, and Grad-CAM visualizations for representative fruit diseases.
Disease Type Input image Preprocessed Segmentationmask Grad-CAMvisualization
Alternaria fruit rot
Alternaria fruit rot
Anthracnose
Bacterial blight
Bacterial blight
Agrociencia 2026. DOI: https://doi.org/10.47163/agrociencia.v60i7.3687
Scientific Article 18
corresponding Grad-CAM visualizations indicate that the classification model focuses
primarily on disease-affected regions, demonstrating its ability to learn disease-
relevant features for different fruit diseases.
Quantitative analysis
The quantitative analysis demonstrated the improved performance of the proposed
PDANet compared with the existing methods (Table 1). At 10-fold cross-validation,
the proposed PDANet achieved 98.8 % accuracy, compared with 97.5 % for ResNet50
CNN, 96.8 % for YOLOv10n + Ordinal MobileViT-S, 95.6 % for C-CNN, and 94.2 %
for Hybrid CNN. The proposed PDANet improved accuracy by 1.3 % compared with
ResNet50 CNN. Similar improvements were observed in F1-score, sensitivity, and
specificity, further indicating the gain achieved by the proposed PDANet.
Table 1. Overall performance comparison of the proposed Plant Fruit Disease Severity Alert Network
(PDANet) and benchmark methods across all evaluation metrics.
Methods/metrics Accuracy F1-Score GDR Kappa MCC Sensitivity Specificity
Hybrid CNN 94.2 93.5 0.88 0.91 0.90 92.8 94.0
C-CNN 95.6 94.8 0.90 0.93 0.92 94.2 95.0
YOLOv10n+Ordinal
MobileViT-S 96.8 96.0 0.93 0.95 0.94 95.5 96.2
ResNet50 CNN 97.5 97.0 0.95 0.96 0.96 96.8 97.2
Proposed model 98.8 98.5 0.97 0.98 0.98 98.2 98.6
CNN: Convolutional Neural Network; YOLO: You Only Look Once; MobileViT-S: Mobile Vision
Transformer-Small; F1-score: harmonic mean of precision and recall; GDR: general detection rate; Kappa:
Cohen’s Kappa coefficient; MCC: Matthew’s correlation coefficient.
The proposed PDANet achieved an F1-score of 98.5 %, compared with 97 % for
ResNet50 CNN and 96 % for YOLOv10n + Ordinal MobileViT-S. The scores achieved
by the proposed model indicate a better balance between disease detection and false-
positive control. The sensitivity of 98.2 % shows that fewer diseased samples were
missed, whereas the specificity of 98.6 % indicates improved discrimination between
healthy and diseased fruits. Sensitivity and specificity are particularly important in
agricultural applications because missed infections may delay treatment, whereas
excessive false alarms may lead to unnecessary pesticide applications.
The Kappa and MCC values around 0.98 obtained by the proposed PDANet indicate
strong agreement and correlation between the predicted and reference labels. These
measures further demonstrate that the model’s performance is maintained across the
different components of the classification problem. The MCC is particularly relevant
when class distributions are unequal because it simultaneously considers true-
positive, true-negative, false-positive, and false-negative predictions. The GDR of 0.97
Agrociencia 2026. DOI: https://doi.org/10.47163/agrociencia.v60i7.3687
Scientific Article 19
obtained by the proposed PDANet indicates that the model accurately identifies a
high proportion of disease instances. Overall, these quantitative results demonstrate
the improved classification reliability of the proposed design.
In the proposed PDANet, ADF enhances image quality and boundary preservation,
DES-UNet accurately performs lesion localization, and QC-FL performs distributed
classification. Thus, each module contributes to a different stage of the proposed
model and plays a significant role in its overall performance.
Ablation study
The ablation study demonstrates the role of each component of the proposed PDANet
model in disease detection (Figure 4). Accuracy increased from 93.2 % for ADF + Swin
U-Net + QC-FL to 95 % with the addition of EMCA and to 97.4 % with DC-MLP.
Incorporating the full segmentation module, DES-UNet + QC-FL, further improved
accuracy to 98 %, while the complete PDANet achieved the highest accuracy of 98.8 %.
The inclusion of EMCA for channel-wise feature discrimination, DC-MLP for adaptive
receptive field modeling of irregular disease regions, and DES-UNet for segmentation
with multi-scale lesion representation contributes to the accurate disease detection
achieved by the proposed model.
Figure 4. Ablation study of the proposed the Plant Fruit Disease Severity Alert Network
(PDANet) model based on classification accuracy.
Confusion matrix-based analysis
The confusion matrix of the proposed PDANet model shows a high concentration
of values along the diagonal, indicating a high rate of correct classifications (Figure
5). This performance is attributed to the precise segmentation, which reduces class
Agrociencia 2026. DOI: https://doi.org/10.47163/agrociencia.v60i7.3687
Scientific Article 20
overlap, and the QC-FL classifier, which effectively differentiates among disease
categories. The off-diagonal values indicate that misclassifications were minimized
due to the ability of the proposed PDANet to capture fine inter-class variations and
its exposure to diverse training data through federated learning. However, some
errors occurred due to variations in illumination, lesion maturity, infection severity,
occlusion, and fruit surface texture, which reduce inter-class separability and may
result in misclassification.
Statistical analysis
The statistical analysis based on the cross-validation folds is shown (Table 2). The
null hypothesis for each comparison was that there was no difference in classification
performance between PDANet and the corresponding benchmark model, whereas
the alternative hypothesis was that a difference existed between the two methods.
Statistical significance was evaluated using a two-sided test at α = 0.05.
The paired t-test was used to evaluate the mean difference when the paired observations
satisfied the assumptions of the parametric test. The Wilcoxon signed-rank test was
used as a non-parametric analysis because the number of fold-level observations was
small. For the Wilcoxon analysis, the paired performance values from corresponding
folds of PDANet and each benchmark model were compared. A p-value < 0.05 was
considered statistically significant.
The statistical analysis demonstrates that the proposed model outperforms the existing
methods in terms of classification reliability and consistency. PDANet achieved
the highest mean accuracy (98.075 %), with a relatively low standard deviation
Figure 5. Confusion matrix of the proposed Plant Fruit Disease Severity Alert Network
(PDANet) for fruit disease classification.
Agrociencia 2026. DOI: https://doi.org/10.47163/agrociencia.v60i7.3687
Scientific Article 21
(0.6832), indicating superior performance and stable predictions across multiple
runs. The existing models, including Hybrid CNN, C-CNN, YOLOv10n with Ordinal
MobileViT-S, and ResNet50 CNN, showed lower mean accuracies and varying levels
of dispersion. The t-test results for the existing methods yielded small p-values,
indicating statistically significant differences. However, the Wilcoxon signed-rank test
yielded p = 0.125 for all methods, indicating consistent ranking across experiments but
no statistically significant difference, likely due to the limited sample size. Overall, the
higher mean accuracy and low variability support the robustness and effectiveness of
the proposed model compared with the existing approaches.
Limitations and future scope
The proposed PDANet achieved enhanced classification performance; however,
several limitations should be considered. First, the experiments were conducted using
a publicly available pomegranate fruit dataset with a class distribution that is not
perfectly balanced. Therefore, the demonstrated performance may not fully represent
the model’s behavior under substantially different disease prevalence conditions or
highly imbalanced datasets. Second, the integration of Swin-based segmentation,
deformable convolution, quantum-enhanced learning, federated aggregation, and
RAG-based reasoning introduces additional computational requirements. In addition,
the federated-learning component depends on communication between participating
clients and the aggregation server, meaning that variations in client availability,
network bandwidth, data heterogeneity, and communication latency may affect
practical deployment.
Future research will focus on developing a lightweight version of PDANet to enable
communication-efficient and adaptive federated optimization, as well as facilitate
edge deployment. Multimodal disease diagnosis integrating image and environmental
Table 2. Statistical comparison of the proposed Plant Fruit Disease Severity Alert Network (PDANet)
and benchmark methods.
Method Mean accuracy SD t-statistic p-value (t-test) Wilcoxon statistic p-value (Wilcoxon)
Hybrid CNN 93.55 0.6576 181 3.72 × 10-7 0 0.125
C-CNN 94.75 0.6538 44.3333 2.53 × 10-5 0 0.125
YOLOv10n+Ordinal
MobileViT-S 96.075 0.6832 inf 0 0 0.125
ResNet50 CNN 96.925 0.5629 13.2791 0.0009 0 0.125
Proposed model 98.075 0.6832 - - - -
CNN: Convolutional Neural Network; YOLO: You Only Look Once; MobileViT-S: Mobile Vision
Transformer-Small; SD: standard deviation.
Agrociencia 2026. DOI: https://doi.org/10.47163/agrociencia.v60i7.3687
Scientific Article 22
sensor data, larger multi-location datasets, and real-time field validation will also be
considered. These developments could extend the framework toward more adaptive,
autonomous, and practically deployable agricultural intelligence systems.
CONCLUSION
This research proposed the Plant Fruit Disease Severity Alert Network (PDANet)for
fruit disease detection and severity estimation by integrating the Deformable Enhanced
Multi-Channel Attention Swin U-Net (DES-UNet), Quantum ChronoNet-based
Federated Learning (QC-FL), and a Retrieval-Augmented Generation (RAG)-based
Large Language Model (LLM) for next-generation precision agriculture. The proposed
framework improved disease diagnosis through accurate lesion segmentation,
privacy-preserving distributed classification, and contextual severity estimation to
support early disease management and farmer-centric advisory systems. The DES-
UNet segmentation model enhanced irregular lesion localization using deformable
attention-based segmentation, while the QC-FL classification model enabled secure
collaborative learning among distributed agricultural clients without exposing raw
data. Furthermore, the RAG-based LLM transformed disease predictions into severity-
aware recommendations and actionable alerts, improving interpretability and field
usability. Overall, the proposed framework demonstrated enhanced segmentation
precision, robust classification performance, privacy preservation, explainable severity
estimation, and suitability for practical deployment in smart agriculture.
REFERENCES
Adiani V, Mishra A. 2026. Advanced spectroscopic, imaging, and nanotechnology tools
for diagnosing fungal diseases in fruits. Food Science and Nutrition 14 (3). https://doi.
org/10.1002/fsn3.71611
Alrashdi I, Sharawi M, Ali AM, Sallam KM, Arain B, Abdel-Basset M. 2026. Utilizing deep
learning models for early detection and classification of fruit diseases: towards sustainable
agriculture and enhanced food quality. Scientific Reports 16 (1). https://doi.org/10.1038/
s41598-026-38259-3
Amanova R, Belgibayev B, Mansurova M, Suleimenova M, Amirkhanova G, Tyulepberdinova
G. 2026. A lightweight edge-AI system for disease detection and three-level leaf spot severity
assessment in strawberry using YOLOv10n and MobileViT-S. Computers 15 (1): 63. https://
doi.org/10.3390/computers15010063
Bitto AK, Hasan MZ, Bijoy MHI, Biplob KBB, Hassan MM, Rana MS, Masum AKM. 2026.
BrinjalFruitX: A field-collected image dataset for machine learning and deep learning-based
disease identification in brinjal fruits. Data in Brief 65: 112490. https://doi.org/10.1016/j.
dib.2026.112490
Dey S, Hasan MK, Adhikary A, Akter S, Ejaz MS. 2026. SwinGhost-ClustNet: An explainable
deep ensemble model for papaya leaf disease detection and field deployment in Bangladeshi
agriculture. Smart Agricultural Technology 13: 101824. https://doi.org/10.1016/j.
atech.2026.101824
Agrociencia 2026. DOI: https://doi.org/10.47163/agrociencia.v60i7.3687
Scientific Article 23
El-Saber N, Ibrahim FS, Mohamed IS. 2026. Smart detection techniques for plant leaf diseases
using deep learning: A systematic literature review. International Journal of Computers and
Informatics 10: 1–19.
Faye D, Diop I, Mbaye N, Dione D, Diedhiou MM. 2025. Mango fruit diseases severity estimation
based on image segmentation and deep learning. Discover Applied Sciences 7 (2). https://
doi.org/10.1007/s42452-025-06550-z
Golder S, Sultana H, Noman AA, Khan R, Bairagi AK, Debnath R. 2026. Automated detection,
shape classification, and counting of leaves and fruits from bunch leaf and fruit image using
deep learning models for smart agriculture and forestry. Multimedia Tools and Applications
85 (2): 72. https://doi.org/10.1007/s11042-026-21350-2
Goyal A, Lakhwani K. 2025. An extensive survey on citrus plant disease detection using image
processing and deep learning. In Artificial Intelligence in Medicine and Healthcare. CRC
Press: Boca Raton, FL, USA, pp: 95–119. https://doi.org/10.1201/9781003508595-6
Goyal P, Gill J, Goyal R, Sharma M, Sharma K. 2026. Deep learning-based citrus plant disease
classification using a computationally efficient CNN model. Scientific Reports 16 (1). https://
doi.org/10.1038/s41598-026-50684-y
Goyal P, Verma DK, Kumar S. 2025. Optimal prediction and prevention of active fruit plant
disease monitoring using a deep learning recommendation system for smart agriculture.
Journal of Phytopathology 173 (6). https://doi.org/10.1111/jph.70211
Kaur A, Randhawa GS, Farooque AA, Singh R, Ali M, Zaman QU. 2025. Systematic review of
AI and machine learning approaches for predicting crop diseases in the context of climate
change and the food security. In Climate Change, Food Security, and Land Management.
Springer: Cham, Switzerland, pp: 1–20. https://doi.org/10.1007/978-3-031-71164-0_35-1
Kumaran S, Paranthaman P, Suresh M, Selvam BA, Jackson B, Premalatha L. 2025. Automated
fruit disease diagnosis using edge-deployed Vision Transformers (ViT) and sensor data
fusion. In 2025 IEEE 2nd International Conference on Information Technology, Electronics
and Intelligent Communication Systems. Institute of Electrical and Electronics Engineers:
Bangalore, India. https://doi.org/10.1109/iciteics64870.2025.11341474
Naveen K, Ajitha D. 2025. OptiNet-B3: a lightweight explainable deep learning model for
multiclass classification of fruit and leaf diseases. Scientific Reports 15 (1): 41890. https://doi.
org/10.1038/s41598-025-25888-3
Owais M, Fahmy I, Seneviratne L, Hussain I. 2026. SAMConvFormer+LLM: Exploring synergistic
fusion of Segment Anything Model with joint convolutional transformer and large language
model to advance dense agricultural crop analysis. Computers and Electronics in Agriculture
240: 111192. https://doi.org/10.1016/j.compag.2025.111192
Patel HD, Golande A, Katkar V. 2026. Experiments on peach leaf disease detection using
light weight transfer learning models. In Recent Advances in Computational Intelligence
Applications for Biometrics and Biomedical Devices. Academic Press: Amsterdam,
Netherlands, pp: 239–255. https://doi.org/10.1016/b978-0-443-33012-4.00005-7
Prasad SSE, Rakesh N, Mohankumar N, Vinodha R, Murugan S. 2025. VGG16-based deep
learning approach for accurate detection of fruit diseases in precision agriculture. In 2025
3rd International Conference on Intelligent Data Communication Technologies and Internet
of Things. Institute of Electrical and Electronics Engineers: Bengaluru, India, pp: 1935–1940.
https://doi.org/10.1109/idciot64235.2025.10915084
Ramkumar G. 2026. Smart fruits disease detection system with statistical modelling and feature
construction using machine learning models. In 2026 Fourth International Conference on
Agrociencia 2026. DOI: https://doi.org/10.47163/agrociencia.v60i7.3687
Scientific Article 24
Augmented Intelligence and Sustainable Systems. Institute of Electrical and Electronics
Engineers: Trichy, India, pp: 816–820. https://doi.org/10.1109/icaiss68683.2026.11526312
Reddy KS, Kumari KP. 2026. Fruit disease detection using AI: A review of classical and deep
learning approaches. Indian Journal of Agricultural Research 60 (2): 159–165. https://doi.
org/10.18805/ijare.a-6436
Rupa SA, Arifin KN, Anwar MM. 2026. Robust citrus disease diagnosis: A hybrid CNN for
multi-task classification, severity estimation, and cross-species adaptation. Engineering
Reports 8 (2). https://doi.org/10.1002/eng2.70576
Sai Tejasree K, Surendran R, Rajakumar B, Gomathi RM. 2025. Automated AI-powered fruit
identification using convolutional neural network. In 2025 International Conference on
Multi-Agent Systems for Collaborative Intelligence. Institute of Electrical and Electronics
Engineers: Erode, India, pp: 1843–1848. https://doi.org/10.1109/icmsci62561.2025.10894300
Sajitha P, Andrushia AD, Anand N, Lubloy E. 2026. Channel-attentive YOLOv5 and capsule
auto-encoder for pomegranate disease detection. Egyptian Informatics Journal 33: 100877.
https://doi.org/10.1016/j.eij.2025.100877
Sandhi A, Kumar R, Bhardwaj R, Kumar D. 2026. SAAEffNet: A synthetic-augmented attention
EfficientNet model for mango disease classification. Applied Fruit Science 68 (2). https://doi.
org/10.1007/s10341-026-01801-8
Sifath S, Saha S, Jahan S. 2026. Automatic classification of orange fruit diseases using deep
neural network model. Journal of Agriculture and Food Research 27: 102712. https://doi.
org/10.1016/j.jafr.2026.102712
Srinivasan S, Somasundharam L, Rajendran S, Singh VP, Mathivanan SK, Moorthy U. 2025. DBA-
ViNet: An effective deep learning framework for fruit disease detection and classification
using explainable AI. BMC Plant Biology 25 (1). https://doi.org/10.1186/s12870-025-07015-6
Agrociencia
Agrociencia
论文原文与出版信息
Agrociencia