论文信息
论文解读
AI 辅助整理- 方法
- 关键方法:轻量骨干、特征融合、注意力、检测头、损失函数与训练策略改进。
- 发现
- YOLO检测性能提升但存在数据集单一、泛化不足、标注不确定与部署差距。
- 机会点
- 可研究跨作物跨环境泛化、标注不确定性建模及面向真实部署的轻量模型评估。
论文摘要
基于计算机视觉的叶片病害检测已成为智慧农业和农业巡检服务中的一项重要技术途径。近年来,人工智能(AI)与深度学习的进展为自动化叶片病害监测提供了有效解决方案,其中基于You Only Look Once(YOLO)的检测器因在检测精度与推理速度之间取得平衡而受到越来越多的关注。然而,叶片病害检测仍面临诸多挑战,因为病斑通常占据较小区域、具有细微的视觉特征、边界模糊,并且出现在复杂背景中,在田间条件下还存在相当大的变化。为应对这些挑战,大量研究对轻量级骨干网络、特征融合机制、注意力模块、检测头、损失函数和训练策略进行了改进。本批判性叙述综述考察了基于YOLO的叶片病害检测,按任务特征对已报道的改进进行组织,并结合数据集、标注和评估条件解释其结果。代表性研究报告了检测性能、模型紧凑性或实测推理速度方面的提升,同时也揭示了取决于任务和配置的权衡。尽管如此,仍存在若干挑战,包括数据集多样性有限、跨作物和跨环境泛化能力不足、对标注不确定性考虑不充分、仅基于参数减少对轻量级模型进行有偏评估,以及基准性能与实际部署之间的差距。未来研究应聚焦于面向任务的优化、鲁棒的视觉感知、改进的模型泛化能力以及面向智能农业监测系统的高效部署。
全文
ElectronicsElectronics 2026, 15, 4699 https://doi.org/10.3390/electronics15204699
Review
YOLO-Based Leaf Disease Detection in Smart Agriculture:
Evolution, Task Adaptation, and Deployment Challenges
Xinyi Sun, Liyang Liu and Baoquan Yin *
Yantai Institute, China Agricultural University, Yantai 264670, China; 2023505440309@cau.edu.cn (X.S.);
lly315@cau.edu.cn (L.L.)
- Correspondence: yinbaoquan@cau.edu.cn
Abstract
Computer vision -based leaf disease detection has become an important technical ap-
proach in smart agriculture and agricultural inspection services. Recent advances in arti-
ficial intelligence (AI) and deep learning have provided effective solutions for automated
leaf disease monitoring, and You Only Look Once (YOLO)-based detectors have attracted
increasing attention for balancing detection accuracy and inference speed. However, leaf
disease detection remains challenging because lesions often occupy small regions, exhibit
subtle visual features, have blurred boundaries, and appear against complex back-
grounds, with considerable variation under field conditions. To address these challenges,
numerous studies have improved lightweight backbones, feature fusion mechanisms, at-
tention modules, detection heads, loss functions, and training strategies. This critical nar-
rative review examines YOLO-based leaf disease detection, organizing reported adapta-
tions by task characteristics and interpreting their outcomes in relation to datasets, anno-
tations, and evaluation conditions. Representative studies repor t gains in detection per-
formance, model compactness, or measured inference speed, together with trade-offs that
depend on the task and configuration. Nevertheless, several challenges remain, including
limited dataset diversity, insufficient cross-crop and cross-environment generalization, in-
adequate consideration of annotation uncertainty, biased evaluation of lightweight mod-
els based only on parameter reduction, and the gap between benchmark performance and
real-world deployment. Future research should focus on task -oriented optimization, ro-
bust visual perception, improved model generalization, and efficient deployment toward
intelligent agricultural monitoring systems.
Keywords: YOLO; object detection; computer vision; deep learning; edge intelligence;
leaf disease detection
- Introduction
Leaf disease is a major factor affecting crop yield, quality, and agricultural benefits.
Traditional manual inspection has shortcomings such as low efficiency, strong subjectiv-
ity, and difficulty in continuous monitoring, these shortcomings have motivated auto-
matic recognition research based on computer vision. In computer vision tasks, object de-
tection can identify the disease type while simultaneously determining lesion location and
extent. Therefore, with advances in deep learning, object detection has gradually become
an important technical route for leaf disease identification. Related methods have evolved
Academic Editor: Manohar Das
Received: 4 September 2026
Revised: 8 October 2026
Accepted: 10 October 2026
Published: 13 October 2026
Copyright: © 2026 by the authors.
Licensee MDPI, Basel, Switzerland.
This article is an open access article
distributed under the terms and con-
ditions of the Creative Commons At-
tribution (CC BY) license.
Electronics 2026, 15, 4699 2 of 44
https://doi.org/10.3390/electronics15204699
from two-stage detection to single -stage detection, and then to the integration of Trans-
former mechanisms [1]. Methods such as Faster Region-based Convolutional Neural Net-
work (Faster R-CNN) [2] achieve high accuracy, but the real -time performance and de-
ployment efficiency are limited; early single-stage methods, such as Single Shot MultiBox
Detector (SSD), have improved speed, but they still have shortcomings in detecting tiny
lesions. In recent years, new methods such as Detection Transformer (DETR) and Real-
Time Detection Transformer (RT-DETR) have shown advantages in global modeling, but
their application in agricultural scenarios remains limited [3]. Weakly supervised and ori-
ented object detection offer additional perspectives on the task. Image -level supervision
motivates approaches that reduce reliance on bounding -box annotations, while oriented
boxes can represent the direction of elongated targets. For leaf disease detection, these
ideas warrant evaluation against lesion -level annotation requirements and the target
shapes present in the data. The You Only Look Once (YOLO) series offers a single -stage
detection framework with multiple architectural variants and options for lightweight ad-
aptation, making it relevant to automated leaf disease detection. YOLO is not the only
available framework. Two-stage detectors such as Faster R-CNN provide higher localiza-
tion accuracy, but inference is slower and deployment is more complex. Early single-stage
detectors such as SSD offer faster inference but are less sensitive to tiny lesions. Trans-
former-based approaches such as DETR and Swin Transformer are effective at global context
modeling, but require higher training and deployment costs. YOLO itself still has limitations
in detecting tiny lesions, weak textures, and blurred boundaries in complex field backgrounds.
Considering these trade-offs, this review focuses on the YOLO series because it provides the
most mature and widely validated solution for balancing detection accuracy and edge deploy-
ment in leaf disease detection. These design choices indicate that applying YOLO to leaf dis-
ease detection requires task-specific evaluation. The structural mismatch between the general
YOLO framework and the visual characteristics of leaf lesions requires targeted task adapta-
tion. In recent years, YOLO has evolved continuously in terms of feature fusion, attention
modules, detection head optimization, and lightweight design.
Recent reviews have provided a basis for understanding the application of deep
learning to plant disease detection by examining model categories, datasets, evaluation,
and practical application challenges [3–6]. Among them, the closely related review by
Gupta et al. [7] examines YOLO-based leaf disease detection in terms of architectural evo-
lution, dataset characteristics, performance comparison, and deployment. These studies
highlight the importance of data quality, generalization, and computational constraints.
Table 1 compares the scope and analytical emphasis of the selected reviews with those of
the present review.
Table 1. Comparison with recent reviews on plant disease detection.
Review Main Scope Organization and Analytical Emphasis Complementary Analysis in the Present Review
[3]
Deep learning for
plant disease and
pest detection
Model families, hyperspectral imaging,
Transformer methods, and application
challenges
Connects YOLO modifications to foliar localiza-
tion requirements
[4]
Plant disease de-
tection across
methods and ap-
plication settings
Datasets, evaluation, generalization,
and practical deployment
Relates YOLO-specific adaptations to the condi-
tions under which their results are interpreted
[5]
CNN-based crop
leaf disease recog-
nition and detec-
tion
Classification of disease type and sever-
ity; one- and two-stage detectors; field
challenges
Maps YOLO improvement strategies to lesion
scale, weak features, boundary ambiguity, and
background interference
Electronics 2026, 15, 4699 3 of 44
https://doi.org/10.3390/electronics15204699
[7]
YOLO-based plant
leaf disease detec-
tion
Version evolution, dataset limitations,
performance comparisons, and deploy-
ment considerations
Organizes analysis around task–method relation-
ships and the influence of annotation and evalua-
tion settings
[6]
Leaf-image-based
crop disease clas-
sification and ex-
plainable AI
Learning architectures, interpretability,
dataset bias, and field constraints
Examines localization-specific issues involving de-
tection layers, bounding-box supervision, and
evaluation
Present
review
YOLO-based fo-
liar disease detec-
tion
Task characteristics linked to model ad-
aptation, experimental conditions, and
practical trade-offs
Integrates these relationships to guide interpreta-
tion of reported detection gains
The contribution of this review is an integrated task-oriented analysis of YOLO-based
leaf disease detection. First, it connects lesion scale, weak visual features, boundary ambi-
guity, background interference, and deployment constraints with the adaptation strate-
gies discussed in Sections 2.2 and 4. Second, Section 3 analyzes how dataset characteris-
tics, annotation granularity, and evaluation metrics affect the interpretation of detection
results. Third, Section 5 discusses the trade-offs between feature retention and model com-
pression, localization targets and annotation uncertainty, and computational complexity
and actual deployment.
The overall framework of this paper is illustrated in Figure 1.
Introduction: Importance of Leaf Disease Detection-Advantages Of YOLO Framework
Adaptability Analysis
Chapter 2
YOLO
Evolution
Data Basis: Annotation and Evaluation Chapter 3
Systematic Analysis of YOLO Improvement Strategies Chapter 4
Critical Discussion
Chapter 5
Conclusion and Outlook: From Local Compensation to System Adaptation
Chapter 6
Figure 1. Research framework of this paper.
Literature Sources and Scope of the Review
This paper is a critical narrative review of YOLO-based plant disease detection, with
a focus on foliar disease tasks. References were retrieved from Web of Science, EI Com-
pendex through the Engineering Village platform, and the China National Knowledge
Infrastructure (CNKI). The initial searches were conducted approximately between Janu-
ary and March 2026, with additional publicatio ns included during manuscript prepara-
tion. Search topics included computer vision, disease and pest recognition, and leaf dis-
ease recognition. Earlier foundational studies were also retained to introduce the devel-
opment of detection architectures and datasets.
Electronics 2026, 15, 4699 4 of 44
https://doi.org/10.3390/electronics15204699
Reference synthesis focuses on studies reporting the use of YOLO to localize diseased
leaves or foliar symptoms, including structural improvements, version comparisons, an-
notation strategies, and domain adaptation. The cited publications are organized accord-
ing to their reported tasks, models, and experimental evaluations. For studies involving
combined disease and pest detection or multiple plant organs, the discussion distin-
guishes leaf-disease-related results from overall mixed-task results. Studies on image clas-
sification, non-YOLO methods, pest-only detection, and other plant organs provide back-
ground and methodological context. Related plant disease studies also inform the discus-
sion of model design and deployment, with their evidential role limited to the task s re-
ported in the publications.
During revision, the cited publications were checked using titles and bibliographic
information, together with accessible original papers, author abstracts, and descriptions
of methods and datasets, to establish their roles in the analysis.
The reference list contains 100 distinct publications, of which 56 are used to discuss
YOLO-based foliar disease detection and 44 provide background or related-task evidence.
Research results are synthesized in relation to task characteristics, model adaptations, and
the corresponding experimental evidence, with conclusions limited to the selected publi-
cations and their reported experimental conditions.
2. Task Adaptability Analysis of YOLO for Leaf Disease Detection
2.1. Evolution and Technical Characteristics of the YOLO Series
Since the YOLO series was proposed [8], it has gradually evolved from early detec-
tion frameworks aimed at improving detection speed and real -time performance into
more complete object detection systems that consider detection accuracy, inference speed,
and deployment efficiency. In this review, the development of YOLO is divided into three
stages: the early versions adopted a single-stage end-to-end detection framework to unify
object classification and bounding box regression within the same process, reducing re-
gion proposal generation and redundant computation, thus significantly improving de-
tection speed while initially possessing multi -scale prediction capability; the mid -term
versions focused on optimizing training strategies, fe ature fusion, and engineering de-
ployment to further improve the overall performance balance of the model; the recent
versions have further evolved toward anchor-free and end-to-end detection, attention
modeling, and edge-prioritized deployment. For leaf disease detection, the significance of
this evolutionary process is that YOLO not only provides an efficient baseline detection
framework but also provides a technical bas is for continuously expanding task require-
ments, such as small object perception, complex background suppression, and real -time
deployment at the edge.
The major evolution of the YOLO series has mainly occurred in general object detec-
tion tasks, such as multi-scale detection, post-processing simplification, feature represen-
tation enhancement, and deployment efficiency improvement. These developments have
laid the necessary technical foundation for leaf disease detection, but the general YOLO
framework cannot be directly applied to leaf disease detection tasks. For example, multi-
scale prediction in v3 corresponds to lesion-scale heterogeneity, the anchor-free design in
v8 corresponds to irregular lesion shapes, and STAL in v26 corresponds to tiny -lesion
recall. However, these imp rovements are distributed across different versions and pri-
marily serve general object detection; they have not yet formed a systematic adaptation
scheme for leaf disease detection. Leaf diseases exhibit distinct characteristics in terms of
lesion size distribution, texture representation, boundary morphology, background com-
plexity, and deployment environment. Therefore, it is generally difficult to directly ad-
dress the challenging problems in act ual detection by relying solely on version updates.
In summary, understanding the structural mismatch between YOLO and the leaf disease
Electronics 2026, 15, 4699 5 of 44
https://doi.org/10.3390/electronics15204699
detection task has become a prerequisite for analyzing subsequent improvement research.
Table 2 summarizes the core technological innovations of the main versions of the YOLO
series, their potential significance for leaf disease detection, and the typical limitations of
their application in agricultural scenarios. As shown in Table 2, although YOLO has con-
tinuously improved in multi-scale detection, post-processing simplification, and deploy-
ment efficiency, task -related problems such as lesion scale mismatch, insufficient repre-
sentation of weak features, and blurred boundaries have no t been fully solved through
version updates. Table 2 further lists the correspondence between all major versions and
leaf disease characteristics.
Table 2. Core improvements of major YOLO series versions and their potential impact on leaf dis-
ease detection.
Version Core Technical Innovations Potential Significance for Leaf Disease Detection Typical Limitations
v3 [9]
Feature Pyramid Network
(FPN)-based multi-scale Predic-
tion
First addresses lesion-scale heterogeneity through
multi-scale prediction, but anchor priors poorly
match irregular lesions
Low matching de-
gree between preset
anchor boxes and
lesion shapes
v5 [10] Engineering improvement, adap-tive anchor boxes Lowers the barrier to agricultural deployment, but missed tiny lesions remain prominent and weak-fea-ture limitations are unresolved False negatives of tiny lesions remain prominent
v8 [11,12] Anchor-free, decoupled detection head
The anchor-free design reduces dependence on pri-
ors for irregular lesion shapes, but the increased pa-
rameter count of the decoupled head conflicts with
lightweight edge deployment
Impact of increased
parameter count
from decoupled
head on lightweight
deployment re-
mains to be evalu-
ated
v10 [13]
Non-Maximum Suppression
(NMS)-free training, consistent
dual assignment
Eliminates post-processing latency to support edge
deployment, but training stability with small agri-
cultural datasets remains unresolved
Training stability
under agricultural
data scale needs
verification
v11 [14]
C3k2 feature-extraction blocks,
C2PSA attention, and a light-
weight classification branch
Enhances task adaptability, but false positive rates
remain high in complex field backgrounds with
weeds, shadows, and insect damage
False positive rate
remains high in
complex back-
grounds
v12 [15,16] Area Attention and FlashAtten-tion
Models long-range dependencies at low computa-
tional cost, theoretically distinguishing lesions from
background interference, but the applicability of at-
tention in agricultural scenarios remains unclear
Adaptability of at-
tention mechanism
in agricultural sce-
narios needs re-
search
v26 [17]
Distribution Focal Loss (DFL)re-
moval + native NMS-free + Pro-
gLoss + STAL + MuSGD
Native end-to-end inference and CPU acceleration
substantially improve edge deployment feasibility;
STAL directly targets tiny-lesion recall, but practical
benefits for ultra-small field lesions lack systematic
evaluation
Practical gains for
ultra-small field le-
sions and conver-
gence characteristics
under agricultural
small samples still
lack systematic
evaluation
Electronics 2026, 15, 4699 6 of 44
https://doi.org/10.3390/electronics15204699
2.2. Structural Adaptation Problems of YOLO in Leaf Disease Detection
Leaf disease detection presents five related adaptation challenges: small targets,
weak visual features, ambiguous boundaries, background interference, and deployment
constraints. The following subsections examine each challenge and its implications for
YOLO-based detection.
2.2.1. Mismatch Between Lesion Scale Distribution and the Receptive Field of Detection
Layers
Leaf diseases exhibit considerable scale heterogeneity. Some lesions may expand into
large-area necrotic spots during the middle and late stages, but when infection first occurs,
lesions often present only as pinpoint chlorosis or a slight local color change. Such lesions
occupy only a small pixel region in the image. Although the standard YOLO model has
multi-scale detection capability, the configuration of its detection layer s and downsam-
pling strategy is mainly designed for the generic object scale distribution. For numerous
tiny lesions in leaf disease image s, information attenuation may still occur in the early
stage of feature extraction. Previous studies [18] have reported that in real agricultural
disease scenarios, the proportion of small -scale lesions is relatively high, whereas their
detection performance is significantly lower than that of medium- and large-scale lesions,
indicating that “multi-scale detection” and “natural sensitivity to ultra-small lesions” are
not equivalent [19]. Therefore, missed detection of early small lesions is related not only
to the small size and weak contrast of the lesions themselves, but also to the attenuation
of detailed information caused by multiple downsampling operations during the one -
stage inference process of YOLO.
This mismatch is prevalent from YOLOv3 through YOLOv8 and stems from the
downsampling rate design of detection layers, which mainly serves the generic object
scale distribution. It is worth noting that the introduction of the STAL mechanism at the
label assignment stage of YOLOv26 has increased attention to small objects. However, this
improvement mainly takes effect at the training level and does not fundamentally change
the receptive field limitation caused by the downsampling rate. Therefore , the mismatch
between scale distribution and the receptive field of detection layer s remains one of the
adaptation problems when applying YOLO to leaf disease detection [20].
2.2.2. Mismatch Between Weak Lesion Features and the Representation Capacity of
Standard Convolution
Unlike natural objects with clear contours and stable structures, such as vehicles and
pedestrians, leaf lesions usually do not have distinct shape boundaries and significant
texture contrast. The weak features of lesions mainly manifest as low contrast, w eak tex-
ture differences, and localized, gradually changing abnormalities. Many diseases show
only slight chlorosis, mild yellowing at the edges, and elongated streaks or discontinuous
lesions extending along leaf veins in the early stage. The visual cues with significant diag-
nostic value are usually very weak. Therefore, a leaf disease detection model not only
needs to locate the lesion region but also needs to be sensitive enough to subtle color
changes, texture differences, and local spatial relationships. The fixed convolution sam-
pling strategy used by standard YOLO is more suitable for regular local pattern extraction,
but for lesions with prominent directionality, subtle texture differences, and blurred
boundaries, its representational capacity may be insufficient [21], leading to weak model
response to key pathological clues in the front-end feature extraction stage.
Many studies focusing on the detection of leaf diseases have tried to use dynamic
convolution [22], deformable convolution, or attention mechanisms [23] to improve the
model’s adaptive representation capability for weak lesion features. YOLOv12 enhances
long-range dependency modeling capability through Area Attention. Theoretically, it
Electronics 2026, 15, 4699 7 of 44
https://doi.org/10.3390/electronics15204699
plays a role in distinguishing between the lesion region and the interference region in
complex backgrounds. In YOLOv3 and subsequent mainstream versions, fixed convolu-
tion has remained the core unit of front-end feature extraction, and the regular sampling
method has inherent representational limitations for lesions with prominent directionality
and fine texture. However, in essence, whether the weak features of the disease can be
stably detected still depends on whether the model truly retains the subtle but important
pathological information, and this fundamental requirement has not been met through
version iterations.
2.2.3. Mismatch Between Blurred Lesion Boundaries and IoU-Based Loss Functions
Plant lesions generally do not have strict physical boundaries. Many lesions are com-
posed of necrotic centers, chlorotic halos, and transition zones. Their edges generally ex-
hibit gradual diffusion. Different annotators may perceive lesion extent different ly. The
object detection method used by YOLO usually approximates lesions with rectangular
bounding boxes and seeks to make the predicted box and the ground -truth box as con-
sistent as possible through Complete IoU (CIoU), SIoU, and other Intersection over Union
(IoU)-based loss functions. This method is more effective for regular object detection, but
it has inherent limi tations in leaf disease detection. Models generally learn how to ap-
proach the annotation box rather than how to recognize the true morphology of the lesion.
IoU-based loss function s have been continuously refined since YOLOv3, but their
optimization goal has always been to make the predicted box and the annotation box co-
incide as much as possible. When the annotation itself is an approximate representation
of blurred lesions, excessive pu rsuit of high IoU may amplify the annotation errors and
subjective differences. Simplifying a regression branch changes its implementation, while
the meaning of a localization score remains determined by the annotated target and eval-
uation threshold.
2.2.4. Mismatch Between Complex Field Backgrounds and Data Augmentation
Strategies
Field images contain potential distractors such as reflections, shadows, insect damage,
weeds, soil, and surrounding plant tissues. Some can resemble disease symptoms, particularly
when lesion contrast is low. These conditions make it important to distinguish lesion features
from their visual context and can contribute to false positives or missed detections.
Augmentation strategies such as Mosaic and MixUp, which are commonly used in
YOLO training, can improve sample diversity in general object detection but may not
yield positive results in leaf disease detection. Random stitching and mixing may disrupt
the original spatial relationship between lesions and leaf tissue s and increase the proba-
bility of combining background interference elements, causing the model to learn spuri-
ous patterns that deviate from the real pathological distribution. According to previous
studies [24,25], after adjusting or disabling some general augmentation strategies on some
agricultural disease datasets, the false positive rate decreases, indicating that the augmen-
tation strategies themselves also pose problems for task adaptation. The complex back-
ground in the field is not only a difficulty at the detection level, but also requires task -
based restructuring of the training strategy itself, which is not naturally accomplished by
updating the YOLO version.
2.2.5. Mismatch Between Edge Deployment Requirements and Model Scale Control
Important application scenarios for leaf disease identification include drone inspec-
tion, mobile diagnosis, agricultural robot operation, and edge -side real -time warning.
These scenarios generally require the model to maintain high detection accuracy and low
inference latency under limited computing power, storage, and power consumption. In
Electronics 2026, 15, 4699 8 of 44
https://doi.org/10.3390/electronics15204699
agricultural applications, the key is not only the highest performance metric of the model
in the experimental environment, but also whether it can operate quickly, continuously,
and stably under real-world equipment conditions.
The YOLO series algorithms have high real-time performance and deployment con-
venience, but many current improvement studies [26–28], while pursuing higher mean
average precision (mAP) or recall, introduce more attention modules, complex feature fu-
sion structures, and additional detection branches, resulting in increased parameter count,
computational cost, and inference latency. Such performance upgrades, which are diffi-
cult to deploy, significantly conflict with the requirements of lightweight design and real-
time performance in agricultural edge scenarios. More importantly, the lightweight pro-
cess is generally prone to poor perception of tiny lesions and weak feature s, and these
objects happen to be the highest-priority information to identify in early agricultural
warning. Edge deployment problems persist with the iteration of YOLO versions, and the
conflict between accuracy improvement and model lightweighting has never disap-
peared. The improvement of YOLOv26’s CPU inference efficiency provides new possibil-
ities for edge deployment, but the structural conflict between lightweight design and the
ability to perceive tiny lesions remains a key factor restricting its field application.
It should be noted that newer versions, such as YOLOv10, YOLOv12, and YOLOv26,
respond to the above problems to different degrees in terms of end-to-end detection, at-
tention modeling, and edge-priority deployment [29], but these improvements are more
of a phased mitigation than fundamental solutions to leaf disease task adaptation. The
main challenge of leaf disease detection is not only choosing which YOLO version to use
but also how to carry out targeted reconstruction and optimization of the general frame-
work around task-specific conflicts. However, the degree and specific manifestation of the
above adaptation problems are highly dependent on the dataset type, the granularity of
lesion annotation, and the performance evaluation metric adopted in the research. Out-
side this experimental context, it is easy to draw a biased conclusion by simply comparing
the mAP levels of different YOLO improvement models [28]. Therefore, before systemat-
ically sorting out the improvement strategies, this study first analyzes the data basis, an-
notation methods, and evaluation system for leaf disease detection research to clarify the
boundary conditions for subsequent discussion.
3. Data Basis, Annotation Methods, and Evaluation System for Leaf
Disease Detection
The analysis of YOLO development and adaptability shows that the adaptation difficul-
ties of YOLO in leaf disease detection are not determined solely by the model structure itself.
Adaptation problems such as false negatives for small objects, difficulty in learning weak fea-
tures, and blurred boundaries are highlighted under specific data distributions, annotation
granularities, and evaluation criteria. In other words, there may be significant differences in
the performance of the same model under different datasets or evaluation systems [4,30,31],
and it is difficult to comprehensively judge the quality of a method solely by the level of mAP.
Therefore, before sorting out the specific improvement strategies of YOLO, this section first
clarifies three fundamental aspects: the dataset (the type of image on which the model recog-
nizes lesions), the annotation method (the lesion definition that the model is required to learn),
and the evaluation metrics (how model performance is measured).
Based on the existing research practice [32,33], there is no standard data context that
can represent all agricultural scenarios in leaf disease detection. The datasets adopted by
different research groups differ significantly in terms of collection conditions, crop types,
disease categories, background complexity, and annotation methods, resulting in a lack
of direct comparability in the performance of the same YOLO framework across different
Electronics 2026, 15, 4699 9 of 44
https://doi.org/10.3390/electronics15204699
papers. At the same time, lesions naturally exhibit characteristics such as small size, irreg-
ular boundaries, morphological discreteness, and continuous changes during disease pro-
gression, which makes the annotation and performance evaluation of lesions highly task-
dependent [34,35].
Based on the above considerations, this section analyzes the three dimensions of the
dataset, annotation method, and evaluation metrics, which together constitute the exper-
imental conditions for judging the effectiveness of the YOLO improvement methods. The
five categories of adaptation problems analyzed in this paper are closely related to the da-
taset type, annotation method, and evaluation metrics adopted in the study. Table 3 sum-
marizes the correspondence of the five categories of adaptation problems. For example, the
scale mismatch problem is most obvious in real-field data and is particularly sensitive to
stringent evaluation metrics such as per-lesion fine-grained annotations and mAP@0.5:0.95.
The background interference problem mainly manifests under complex field backgrounds,
which is more suitable for evaluation using precision and cross-domain generalization er-
ror. The following subsections will conduct an analysis based on this table.
Table 3. Correspondence of five types of adaptability problems.
Adaptability
Problems Most Relevant Dataset Type Most Sensitive Annotation Method Most Suitable Evaluation Metrics
Scale Mismatch Real-field data (high proportion of tiny le-sions) Per-lesion fine-grained annotation mAP@0.5:0.95, small object specific re-call
Weak Feature Conflict Real environment data (weak contrast be-tween diseased and healthy) Annotation covers key pathological clues Recall Low confidence analysis
Boundary Ambiguity All types, especially in field conditions Bounding box annotation mAP@0.5 vs. mAP@0.5:0.95
Background Interfer-
ence Real-field data Precision, cross-domain generalization error
Edge Deployment Con-
straint Edge/mobile/UAV field deployment data Same annotation standard across de-vices and scenarios FPS, latency, model size, FLOPs, memory usage, power consumption
3.1. Dataset Types and Characteristics
In leaf disease detection, the dataset determines what the model can see, and to a large
extent, what problems the model will focus on. This paper bases its analysis on task challenge
level and scene realism and divides the existing datasets into three levels: controlled-environ-
ment datasets, real-environment datasets with relatively uniform backgrounds, and real-field
datasets with complex backgrounds, which correspond to the model’s basic recognition abil-
ity, background suppression ability, and complex scenario robustness, respectively. The hier-
archical pyramid of the three types of data is shown in Figure 2.
Controlled Environment (PlantVillage)
— Basic Recognition Capability
Real Environment Single-crop
—Background Suppression, Multi-
scale Perception
Complex Field Background (PlantDoc)
— Comprehensive Robustness
Figure 2. Pyramid diagram of dataset types.
Electronics 2026, 15, 4699 10 of 44
https://doi.org/10.3390/electronics15204699
3.1.1. Controlled Datasets Represented by PlantVillage
Controlled-environment datasets generally exhibit the characteristics of a simple
background, stable lighting, intact leaf blades, and high lesion contrast. PlantVillage [36]
is a representative public dataset of this type. Given its high image quality, relatively
standardized category organization, and ease of experimental replication, PlantVillage
[37,38] has been widely used for basic verification and horizontal comparison of leaf dis-
ease identification algorithms for a long time, which has played an important role in pro-
moting the early development of agricultural disease visual recognition.
In terms of task applicability, the advantages of such datasets are also their limita-
tions. Imaging conditions are relatively ideal, background noise is substantially reduced,
and lesion regions can be distinguished from leaf blades by clear differences in color, tex-
ture, or morphology, making it easier for the model to learn stable and salient visual dis-
ease features. Achieving high accuracy on PlantVillage-type data indicates that the model
has better basic disease identification capability, but it does not directly show that the
model achieves the same detection performance under real-field conditions.
The challenges that such datasets pose to the YOLO model are relatively limited, and
they can more easily conceal some of the key adaptation problems identified above. The
lack of complex background texture weaken s the difference in the model’s actual back-
ground suppression capability. Clear and relatively intact lesion morphology alleviates
the identification challenges caused by weak feature lesions and blurred boundary le-
sions. Favorable imaging conditions will make it difficult to fully expose the problem of
the model’s insufficient cross-scene generalization ability [39]. PlantVillage data are more
suitable as a basic performance validation platform. To evaluate model performance un-
der real-field conditions, more complex datasets are needed. Figure 3 provides a PlantVil-
lage example of the controlled-background images discussed here.
Figure 3. Example image of corn brown spot disease from the PlantVillage controlled-environment
dataset. The image was collected under conditions with a clean background and stable illumination,
where the lesions present as brown necrotic spots and irregular disease patches on the leaf. This
figure illustrates that in such data from the basic recognition scenario under controlled environ-
ments, disease symptoms are relatively distinct with weak background interference, making it eas-
ier for the model to learn stable and salient visual features of the disease.
3.1.2. Single-Crop Datasets in Real Environments
The second type of dataset generally originates from real imaging environments, but
crop type, imaging target, and background composition are still relatively controllable; exam-
ples include image data of rice [40–42], tomatoes [23,43], greenhouse crops [44,45], and other
disease images collected by multiple research teams. Compared with PlantVillage, such data
better reflect actual observation conditions in agricultural production. These datasets can par-
Electronics 2026, 15, 4699 11 of 44
https://doi.org/10.3390/electronics15204699
tially incorporate real-world factors, such as changes in natural lighting, different leaf pos-
tures, partial occlusion, and non-pathological mottling, but their background complexity and
cross-scene disturbance are generally lower than those of open-field data.
Their research value lies in their ability to clearly reveal several key issues of YOLO
during the transition to real-world application. Firstly, the number of interference factors,
such as leaf vein texture, reflective regions, insect bite traces, and local mechanical damage
increases, requiring the model to possess better background suppression and false posi-
tive control capability. Secondly, at different stages of the disease progression, the differ-
ences in the area, color, and morphology are more pronounced, which is also more likely
to cause problems such as inadequate multi -scale detection and insufficient retention of
weak features. For disease types with a tiny lesion area, no prominent color difference, or
high similarity to the natural leaf texture, it is generally difficult for the standard YOLO
framework to achieve stable identification relying only on general convolutional features.
In leaf disease detection research, datasets from real environments with relatively simple
backgrounds play a transitional role. Unlike controlled-environment data, they do not stack
all the difficulties at the same time, as in real open-field conditions. Instead, they are more
suitable for evaluating the model in background suppression, small object perception, and
weak symptom identification. In terms of research logic, such datasets provide a clear window
for problem exposure in subsequent method improvement and are also more conducive to
analyzing which capabilities are enhanced by a specific YOLO improvement strategy.
To further illustrate the image characteristics of real -environment single -crop da-
tasets, this paper selects images from a self-constructed coffee brown spot disease dataset
as examples. These images were collected in a natural field environment by the aut hors.
This dataset has not been publicly released and is used only as an illustrative example in
this review; it has not been used for model training or quantitative performance evalua-
tion. It is included in Table 4 because it represents a real-environment single-crop dataset
and helps illustrate the transitional challenges from controlled -environment images to
real-field detection. It serves as a qualitative illustration rather than a quantitative bench-
mark. Figure 4 shows selected coffee images used to illustrate these acquisition conditions.
Figure 4. The examples in this figure are coffee brown spot disease images from our self-constructed
real-environment single-crop image dataset. The images were collected under natural field condi-
tions, are standard visible -light RGB images, and are used solely as i llustrative examples in this
paper. The lesions in the figure present as brown -spotted necrotic regions, localized chlorotic re-
gions, and irregular lesion boundaries. Compared with controlled -environment datasets, this type
of image contains more real -scene interference factors, including natural illumination variations,
variations in leaf posture, partial occlusion, and background interference.
Electronics 2026, 15, 4699 12 of 44
https://doi.org/10.3390/electronics15204699
3.1.3. Real-Field Complex Background Datasets: Robustness Testing Platform
Represented by PlantDoc
The third type of dataset is mainly collected from real open -field conditions, with
complex backgrounds, occlusion and overlap, unstable lighting, marked differences in
disease stage, and uneven distribution of disease scales. PlantDoc is one of the more rep-
resentative public datasets of this type, containing about 2600 field -shot images. Com-
pared with the previous two types of data, this type of data is closer to the real image
distribution of agricultural sites and can therefore better measure the comprehensive ro-
bustness of the model in actual deployment. Its detection results therefore concern leaf
localization and class recognition; testing within this collection does not by itself establish
transfer to an independently acquired field dataset.
For the YOLO model, complex background data in real-field conditions usually am-
plify multiple structural adaptation problems at the same time. Tiny lesions and weak -
symptom lesions in the early stage are more likely to be submerged by the downsampling
process in complex backgrounds, which further aggravates the mismatch between lesion
scale and the detection-layer receptive field. Lesions generally exhibit strong pseudo-sim-
ilarity to vein shadows, soil textures, insect damage regions, and other plant tissues, re-
sulting in a substantial increase in false positives. Blurred lesion boundaries, cluttered
shapes, and the concurrent occurrence of multiple diseases will further aggravate the im-
pact of annotation approximation and uncertainty in localization evaluation.
Real-field complex-background datasets are more suitable as an important platform
for evaluating the upper limit of the application value of YOLO improvement methods.
Figure 5 provides a PlantDoc example of heterogeneous imaging conditions.
Figure 5. The examples in this figure are grape black rot disease images from the PlantDoc real-field
complex-background dataset. The images show dark necrotic lesions and irregular disease spots on
grape leaves, and the collection environment presents distinct characteristics of complex field back-
grounds. Compared with controlled-environment datasets or single-crop datasets, PlantDoc images con-
tain more diverse background interference, leaf occlusion, uneven illumination, and variations in lesion
scale, making them more suitable for evaluating the robustness of models in real agricultural scenarios.
Different types of datasets correspond to completely different research contexts at the
level of task challenges. When comparing existing research conclusions on leaf disease
detection, the quality of a method cannot be judged solely by the level of mAP or the type
of dataset used. Some methods have been significantly improved over controlled -envi-
ronment data, which may mainly reflect their ability to fit the characteristics of clear le-
sions. Some methods show little improvement in absolute metrics on open-field data but
are more valuable in practical agricultural applications. Differences in the datasets them-
selves are an important prerequisite for explaining the differences in the research conclu-
sions of different YOLO improvement methods ; this is the background condition that
Electronics 2026, 15, 4699 13 of 44
https://doi.org/10.3390/electronics15204699
should be distinguished first when analyzing specific methods of leaf disease identifica-
tion. Table 4 summarizes the acquisition settings, annotation units, and image character-
istics of the datasets discussed in this section.
Table 4. Comparison of Representative Leaf Disease Detection Datasets and Their Image Technical
Characteristics.
Item PlantVillage [36] Self-Constructed Coffee Brown Spot Disease Image Dataset PlantDoc [46]
Dataset Name PlantVillage Self-constructed Coffee Brown Spot Disease Image Dataset PlantDoc
Data Type Controlled-environment leaf disease dataset Real-environment single-crop dis-ease image dataset Real-environment/uncontrolled-environment plant disease dataset
Crop/Plant Species
14 crop species in total; the
example in Figure 3 of this
paper is corn
Coffee
13 plant species in total; the exam-
ple in Figure 5 of this paper is
grape
Disease Type/Cate-
gory
Including 17 fungal dis-
eases, 4 bacterial diseases,
2 oomycete diseases, 2 vi-
ral diseases, and 1 mite
damage; 12 crop species
include healthy leaf cate-
gories; the example in Fig-
ure 3 of this paper is corn
brown spot disease
Coffee brown spot disease;
mainly used for coffee leaf disease
classification tasks
27 categories in total, including 17
disease categories and 10 healthy
categories; the example in Figure 5
of this paper is grape black rot dis-
ease
Number of Images 54,309 images 23,267 images 2598 images; 9216 annotated leaf objects
Image Source/Collec-
tion Environment
Images were collected at
experimental research sta-
tions affiliated with Land
Grant Universities in the
United States; leaves were
detached from plants,
placed on gray or black
paper backgrounds, and
photographed under out-
door natural light condi-
tions
Images were collected under nat-
ural field conditions, including
real illumination variations, dif-
ferences in leaf posture, partial
occlusion, and background inter-
ference
Images downloaded from Google
Images and Ecosia, belonging to
real-scene internet images; includ-
ing natural backgrounds, different
illumination conditions, complex
background noise, and multi-leaf
scenes
Image Modality/Spec-
tral Range
Visible-light Red, Green,
Blue (RGB) images col-
lected by ordinary digital
cameras; the original pa-
per did not separately re-
port the specific spectral
range
Ordinary visible-light RGB im-
ages
Ordinary internet images, which
can be regarded as visible-light
RGB images; the original paper
did not explicitly report the spe-
cific spectral collection range
Image Resolu-
tion/Spatial Infor-
mation
The original paper states
that a Sony DSC-RX100/13
standard digital camera
with 20.2 megapixels was
used; however, no unified
image pixel size was re-
ported
Non-uniform original image reso-
lution
Original image dimensions vary.
The source’s 100 × 100 setting re-
fers to a classification experiment
Electronics 2026, 15, 4699 14 of 44
https://doi.org/10.3390/electronics15204699
Annotation Method
Disease status confirmed
by plant pathology ex-
perts; mainly image-level
classification labels
Image-level category labels,
mainly used for disease classifica-
tion; currently no lesion bounding
box annotations or pixel-level seg-
mentation annotations have been
performed
Leaf bounding box annotation us-
ing the LabelImg tool; all leaves in
the images are explicitly annotated
with corresponding categories,
and bounding box coordinates and
category labels are saved as XML
files
Main Advantages
High image quality, rela-
tively simple background,
stable illumination condi-
tions, and clear organiza-
tion of disease categories;
suitable for verifying basic
model recognition capabil-
ities and conducting clas-
sification task research
Derived from real-field environ-
ments, capable of reflecting the
real performance of coffee leaf
diseases under conditions of natu-
ral illumination, complex back-
grounds, different leaf postures,
and partial occlusion
Closer to real agricultural scenar-
ios, capable of reflecting complex
backgrounds, natural illumination
variations, multi-leaf interference,
and real-scene noise; suitable for
evaluating the robustness of mod-
els in uncontrolled environments
Main Limitations
Large discrepancy from
complex real-field back-
grounds; less occlusion,
background interference,
and natural scene noise,
which tends to overesti-
mate the generalization
ability of models in real
agricultural environments;
if used for object detection
tasks, additional annota-
tions of lesion or leaf
bounding boxes are re-
quired
Relatively single crop and disease
types, with limited cross-crop and
cross-disease generalization abil-
ity; currently mainly uses image-
level category labels, which can-
not directly evaluate the detection
ability of YOLO models for lesion
position, lesion size, and lesion
boundaries
Complex image sources, non-uni-
form original resolution and im-
age quality; presence of back-
ground noise, low-resolution leaf
images, and potential category an-
notation errors; the number of
samples per category is still lim-
ited, so there are still certain limi-
tations in fine disease recognition
and cross-scene generalization
evaluation
Note: The self -constructed coffee brown spot disease dataset has not been publicly released. It is
included in Table 4 only as a qualitative illustration of real-environment single-crop data and is not
used for quantitative comparisons.
This paper selects PlantVillage, a self-constructed coffee brown spot disease image
dataset, and PlantDoc as representative datasets, which correspond to controlled-environ-
ment data, real -environment single-crop data, and real -field complex-background data,
respectively, to illustrate the impacts of different image collection conditions, annotation
methods, and technical characteristics on YOLO-based leaf disease detection research.
3.2. Annotation Methods and Their Impacts
The dataset defines the problems that the model needs to solve, while the annotation
method defines what the model needs to learn. In research on leaf disease detection, an-
notation not only provides training supervision information but also directly affects the
definition of the lesion object, the purpose of model optimization, and the boundaries of
result interpretation. Owing to characteristics such as blurred boundaries, morphological
discreteness, large-scale gaps, and continuous changes during disease progression, the
impact of different annotation strategies on model learning behavior is particularly sig-
nificant. Therefore, when analyzing YOLO improvement methods, the annotation method
itself is a variable that can have an important impact on the research conclusion.
Electronics 2026, 15, 4699 15 of 44
https://doi.org/10.3390/electronics15204699
3.2.1. Classification Annotation and Detection Annotation
In current visual research of leaf diseases, common annotation methods can be di-
vided into two categories: classification task annotation and detection task annotation [5].
Classification task annotation mainly addresses whether a leaf is diseased and what type
of disease it has, whereas object detection annotation further focuses on the location, num-
ber, and distribution of lesions. As for an object detection framework such as YOLO, it is
more consistent with the essential requirements of the task, because it focuses not only on
category discrimination but also on determining the spatial location of lesions.
In practical research, a considerable amount of leaf disease data was not originally con-
structed for detection tasks but was instead collected for image classification research [47];
therefore, the category organization of these datasets is relatively clear. However, detailed de-
scriptions of the spatial location and extent of lesions are missing. When these data are reused
for object detection, lesion annotations often need to be supplemented. Annotation rules, le-
sion classification standards, and object definition methods vary across studies. When multi-
ple lesions, complex diseases, or continuously changing disease progression occur on the same
leaf, it is difficult to convert classification dataset annotations into highly consistent detection
annotations, which affects comparability across studies [48].
3.2.2. Advantages and Limitations of Bounding Box Annotation
In current leaf disease detection research, rectangular bounding box annotation re-
mains the predominant annotation method [49]. The rectangular box is naturally compat-
ible with mainstream object detection frameworks such as YOLO, which facilitates train-
ing, evaluation, and method reproduction. Compared with pixel -level segmentation an-
notation, bounding box annotation has a lower cost and is more suitable for constructing
large-scale datasets. However, lesions do not naturally form regular rectangular objects.
Many diseases show discrete lesions, elongated stripes, edge infection, ring necrosis, or
gradient diffusion regions, and their actual spatial morphology generally has obvious ir-
regularities and vague characteristics. The boun ding box only approximates the lesion
region, not the true restoration of the disease contours. Especially when lesions are small,
discretely distributed, or adjacent to one another, annotators may differ markedly regard-
ing whether these clustered lesions should be annotated as a single object or divided into
several individual objects [49]. Therefore, during training, YOLO learns not the true
boundary of the lesion but a regression fit to the manually annotated rectangular box.
When the annotation itself is an approximate representation, the localization error of the
model is not necessarily equivalent to its actual lack of disease identification ability.
3.2.3. Impact of Annotation Granularity
In addition to the annotation form, annotation granularity is also an often overlooked
issue with a considerable impact. Annotation granularity is mainly reflected in the follow-
ing aspects: whole-leaf annotation versus per-lesion annotation; coarse category annota-
tion versus disease progression subdivision; merging versus separating adjacen t lesions;
single-type single-box versus multi -type multi-box annotation. Annotations at different
granularities alter the object distribution of training samples and directly affect the learn-
ing preferences of the model.
If whole-leaf annotation is adopted, the model is more likely to learn the abnormal
appearance of the entire leaf and may not focus primarily on the local texture and patho-
logical structure of the lesion. If per -lesion fine-grained annotation is adopted, it is more
conducive to the model learning lesion details, but it also imposes higher requirements on
small object detection ability, feature fidelity level, and annotation consistency. If disease
progression is not divided, the model can more easily learn the common characteristics of
Electronics 2026, 15, 4699 16 of 44
https://doi.org/10.3390/electronics15204699
disease categories. If disease progression is subdivided in a stepwise manner, it may in-
troduce the problem of inter-class boundary ambiguity and sample imbalance. Some stud-
ies [49] have pointed out that performance changes attributed to differences in model
structure may actually be affected by different annotation granularities.
In summary, the annotation method is not an auxiliary description of the research
but an important prerequisite for determining whether subsequent method comparisons
are valid. The scale mismatch problem is significantly amplified under per -lesion fine-
grained annotation conditions. The learning effect of weak feature conflicts also depends
on whether the annotation region accurately covers the key pathological clues. The opti-
mization difficulties caused by the blurred lesion boundaries are closely related to the ap-
proximation of rectangular box annotations. Therefore, when reviewing YOLO improve-
ment methods, one should consider not only which modules are added to the model and
what improvements they provide but also the annotation granularity and object definition
methods. Otherwise, performance differences caused by different annotation standards
may easily be misjudged as an absolute advantage of the algorithm itself. The quantitative
comparison in Section 4.5 identifies the annotated target for each study, distinguishing
whole-leaf localization from localization of specified diseased regions.
3.3. Evaluation Metrics
Evaluation metrics determine how researchers define performance improvement and
also largely determine the optimization direction of method improvement. In the field of
object detection, metrics such as precision, recall, IoU, mAP, and frames per second (FPS)
have established a relatively common evaluation framework. However, in leaf disease
detection, these metrics cannot be directly transferred from general scenarios but need to
be reinterpreted in combination with the morphological characteristic s, application re-
quirements, and deployment environment of lesions.
3.3.1. Re-Evaluation of General Detection Metrics
The basic metrics commonly used in object detection include precision, recall, and IoU.
Precision and recall reflect the model’s ability to control false positives and false neg-
atives and have clear practical significance in leaf disease detection. A low precision value
indicates that the model easily mistakes leaf vein texture, shadow reflection, insect bite
traces, or non-pathological mottling for lesions. A low recall value means that the model
is more likely to miss early tiny lesions, low-contrast lesions, or densely distributed small
objects. From the perspective of agricultural application, the costs of these two types of
errors differ. Early warning scenarios generally focus more on prevention and control de-
lays caused by false negatives, while field inspection and auxiliary diagnosis scenarios
should control the burden of manual review caused by false positives. Therefore, evalu-
ating model performance with a single metric can hardly fully reflect the practical appli-
cation demands of leaf disease detection.
Localization accuracy is as important as detection ability. As a fundamental metric
for localization evaluation, IoU cannot be decoupled from the unique characteristics of
lesion objects. Because a vague transition range generally exists at the lesion boun dary,
the rectangular box is only a general representation of the lesion range. A lower IoU does
not necessarily mean that the model has not found the lesion; it may also indicate uncer-
tainty in the annotation boundary itself. For tiny lesions, a slight offset of the predicted
box may significantly reduce the IoU value, indicating that IoU is a necessary general ob-
ject localization metric, but it cannot be mechanically equated with the cognitive ability of
lesions in the leaf disease detection task.
Electronics 2026, 15, 4699 17 of 44
https://doi.org/10.3390/electronics15204699
3.3.2. Limitations of mAP@0.5
In the current research on leaf disease detection, mAP@0.5 is still one of the most
commonly used primary metrics. It offers two key advantages: clear calculation logic for
straightforward cross-model comparison and higher metric scores that better highlight
model improvements. When only mAP@0.5 is used as the main evaluation standard for
lesion detection tasks, it generally overestimates the model ’s true ability in fine localiza-
tion. When the IoU threshold is set to 0.5, a rough overlap between the predicted box and
the ground-truth box may be recorded as a correct detection. For lesions with irregular
boundaries, small areas, or gradient contours, it is difficult to demonstrate that the model
has effectively achieved high-quality localization. Especially when identifying tiny lesions
and early weak dis ease symptoms, the key is not only to determine whether lesions are
bounded but also to identify the main body of the lesions more accurately. If the model
can only detect coarse-grained features and cannot accurately locate the core region of the
lesion, then its interpretability in agricultural applications is limited. Therefore, in leaf
disease detection tasks, mAP@0.5 is more suitable as a basic detection ability metric. It
should not be used alone as the core basis for measuring the quality of model localization.
3.3.3. Advantages of mAP@0.5:0.95
Compared with mAP@0.5, mAP@0.5:0.95 evaluates the model comprehensively across
multiple IoU thresholds, which is more sensitive to localization errors, and can also distin-
guish the difference between rough detection and fine localization. For leaf disease detection,
this metric provides greater reference value. Owing to the small scale, irregular boundaries,
and substantial morphological changes in lesions, a model that can roughly locate the lesion
region may not maintain stable performance under stricter localization requirements.
If a method shows significant improvement only in mAP@0.5 while its improvement
in mAP@0.5:0.95 is not significant, it means that the improvement may be mainly reflected
in object recognition but may not effectively improve the localization accuracy of lesions.
A method that maintains a stable advantage across stricter IoU threshold s is more likely
to achieve substantial improvement in addressing boundary ambiguity, small object fi-
delity, and multi-scale localization. Therefore, for leaf disease detection, mAP@0.5:0.95 can
better reflect the model’s effectiveness in actual tasks than a single mAP@0.5.
3.3.4. Speed Metrics for Edge Deployment
Inference speed is also an important evaluation aspect in leaf disease detection re-
search. In scenarios such as unmanned aerial vehicle (UAV) inspection, agricultural robot
navigation, mobile diagnosis, and real-time edge warning, whether the model can operate
stably under limited computing power directly affects its practical value. Existing research
often measures speed in FPS, but when the hardware platform, input resolution, and in-
ference framework are not specified and only the highest FPS in a particular experimental
environment is reported, the reference value is generally limited.
The operating speed of the same model on server graphics processing units (GPUs),
embedded GPUs, CPUs, or mobile neural processing units (NPUs) may differ signifi-
cantly, and model quantization, inference library version, batch size, and image input size
also affect the final results . In the deployment scenario related to the agricultural edge,
more meaningful speed considerations should be comprehensively interpreted by com-
bining device-side latency, model size, parameter count, computational cost, memory us-
age, and power consumption constraints. Crucially, the practical value lies not in the fast-
est inference speed in laboratory conditions, but in the model ’s ability and deployability
to operate stably on actual agricultural equipment. Therefore, this paper classifies param-
eter count, FLOPs, and GPU-based FPS as theoretical computational complexity metrics,
while treating latency, power consumption, memory usage, and long -term stability on
Electronics 2026, 15, 4699 18 of 44
https://doi.org/10.3390/electronics15204699
edge devices as actual deployment efficiency metrics. These metrics are reported sepa-
rately in the quantitative comparison in Section 4.5.
3.3.5. Influence of Evaluation Systems on Method Comparison
The evaluation system not only acts as a measurement tool for results, but also influences
the researcher’s judgment of whether the research is valuable. If the research mainly focuses
on mAP@0.5, strategies for improving the object detection rate are more likely to be promoted.
If the research also considers mAP@0.5:0.95, it will focus more on capabilities related to fine
localization and boundary alignment of lesions [50]. If the research further takes into account
model complexity, device-side latency, and power consumption constraints, its focus will shift
significantly toward lightweight design and deployment-friendly features.
The subsequent analysis of the YOLO improvement methods cannot be understood
independently of the evaluation system on which it relies. Some methods show significant
improvement in accuracy, which may rely on looser evaluation standards. The overall
mAP growth of some other methods is limited, but if the compl exity of the model is sig-
nificantly reduced and the deployability on the edge is improved, these methods have
more practical significance in agricultural applications. The evaluation system is an im-
portant bridge between experimental results and judgments of method value.
This section analyzes the experimental situation of leaf disease detection and research
from three aspects : data basis, annotation method, and evaluation system. Apart from
specific scenarios, there is no unified experimental standard for leaf disease detection. The
dataset category, annotation granularity, and performance evaluation scale of lesion an-
notation adopted by each research institute will significantly affect the learning focus, per-
formance, and research conclusions of the model. The controlled -environment dataset is
more suitable for verifying the basic recognition ability of the model, but it can easily con-
ceal problems such as complex background s, cross-scene generalization, and weak -fea-
ture lesion identification. Real -environment single -crop data are better able to test the
model’s background suppression and multi -scale perception under limited interference
conditions. Real-field complex-background data can more systematically reveal compre-
hensive adaptation shortcomings under conditions involving tiny lesions, blurred bound-
aries, and complex backgrounds.
Although rectangular box annotation is the most common method in the current leaf
disease detection research, it has a natural deficiency in representing the true morphology
of lesions. The interpretation of general evaluation metrics such as mAP, IoU, and FPS in
leaf disease-related tasks must also be reconsidered in combination with the characteris-
tics of lesions and the needs of edge deployment. The YOLO adaptation problems de-
scribed above are not merely abstract; they are manifested, amplified, and empi rically
verified under specific data distributions, annotation paradigms, and evaluation systems.
The subsequent review of YOLO improvement methods should not remain at the
level of module replacement and structural innovation, but should further examine which
data challenges, annotation constraints, and evaluation goals these methods address.
4. Improvement Strategies for YOLO in Leaf Disease Detection
4.1. Logical Framework of Current Improvements
Analysis shows that although YOLO exhibits strong real-time performance and high
detection accuracy in general object detection tasks, in specific scenarios such as leaf dis-
ease detection, its performance bottleneck lies not only in insufficient accuracy, but also in
the structural complexity of the task object itself. Leaf lesions typically exhibit character-
istics such as small object size, weak features, irregular boundaries, and complex back-
Electronics 2026, 15, 4699 19 of 44
https://doi.org/10.3390/electronics15204699
ground interference simultaneously, and real-world applications further impose field de-
ployment constraints on model size, inference latency, and energy consumption. This
shows that improving YOLO in leaf disease detection cannot be understood merely as a
partial repair of the general detection framework, but should be regarded as a systematic
adaptation process tailored to the characteristics of agricultural tasks.
As discussed in the adaptability analysis, the general YOLO framework in leaf dis-
ease detection often faces five types of structural conflicts: lesion scale mismatch, insuffi-
cient representation of weak features, blurred boundaries, complex background inte rfer-
ence, and edge deployment constraints. The following improvement paths represent tar-
geted adaptation to these conflicts.
Given the research progress in recent years [7], related work has roughly formed sev-
eral relatively stable improvement paths: first, lightweight design and feature compensa-
tion around the backbone network can alleviate the pressure of edge deployment while
retaining the representation ability of lesion s as much as possible; second, optimizing
multi-scale integration and context modeling around the neck network can improve coor-
dination between shallow details and deep semantics; third, strengthening the response
of the lesion region through attention mechanisms can suppress pseudo-similar interfer-
ence in complex background s; fourth, improving the detection head structure and loss
function can enhance the stability of lesion localization and classification discrimination;
and fifth, combining data augmentation, annotation organization, and training verifica-
tion strategies can alleviate the problems of insufficient samples, distribution shift, and
evaluation instability. In practice, these strategies are often not used in isolation, but in
combination to determine whether lesions can be seen, distinguished, and accurately lo-
cated and whether they can be deployed stably.
To avoid simply enumerating existing studies based only on YOLO version evolution
or single module replacement, this paper further starts from the task requirements of leaf
disease detection and constructs a task -adaptive classification framework for YOLO im-
provement strategies. This framework categorizes existing studies into directions includ-
ing backbone network improvement, feature fusion improvement, attention mechanism
introduction, detection head and loss function optimization, lightweight design, and data
augmentation and training strategy optimization. Different improvement directions do
not exist in isolation; instead, they co rrespond to key problems in leaf disease detection,
including small lesion detection, weak feature representation, blurred boundaries, com-
plex background interference, annotation uncertainty, and edge deployment constraints.
Through this classification method, this paper no longer merely compares the perfor-
mance of different YOLO versions, but further analyzes the mechanisms, applicable con-
ditions, and potential limitations of different improvement strategies in agricultural dis-
ease detection tasks. Table 5 organizes these improvement strategies by their task objec-
tives, representative modules, and limitations.
Table 5. Classification framework of YOLO improvement strategies for leaf disease detection tasks.
Improvement
Direction
Representative Method
Modules
Main
Corresponding
Problems
Role in Leaf Disease
Detection Main Limitations
Backbone Net-
work Improve-
ment
MobileNet, GhostNet,
FasterNet, PConv
Insufficient feature
extraction, high
model computa-
tional cost
Preserve key features such
as lesion color, texture,
and edges, and reduce
model complexity
Excessive lightweighting
may lead to loss of early
small lesion and weak tex-
ture information
Feature Fusion
Improvement
FPN, Path Aggregation
Network (PAN), Bidi-
Large differences
in lesion scales,
Fuse shallow spatial de-
tails and deep semantic
information, and improve
Complex fusion structures
may increase inference cost
Electronics 2026, 15, 4699 20 of 44
https://doi.org/10.3390/electronics15204699
rectional Feature Pyra-
mid Network (BiFPN),
multi-scale fusion struc-
tures
high missed detec-
tion rate for small
targets
detection capability for le-
sions of different scales
Attention Mecha-
nism
Squeeze-and-Excitation
(SE), Convolutional
Block Attention Module
(CBAM), Coordinate At-
tention (CA), Triplet At-
tention, Efficient Multi-
scale Attention (EMA)
Strong back-
ground interfer-
ence, inconspicu-
ous lesion features
Enhance response to le-
sion regions, and suppress
interference from leaf
veins, shadows, weeds,
etc.
Attention gain is scenario-
dependent and may be over-
estimated on simple datasets
Detection Head
and Loss Function
Optimization
Decoupled head, CIoU,
SIoU, MPDIoU, DFL
Blurred bounda-
ries, localization
errors, annotation
uncertainty
Improve lesion localiza-
tion accuracy, and en-
hance regression perfor-
mance for small and irreg-
ular lesions
Performance depends on an-
notation quality, and cannot
fully represent real lesion
morphology
Lightweight De-
sign
Pruning, quantization,
knowledge distillation,
lightweight backbone
networks
Deployment con-
straints on mobile
devices, UAVs,
and edge devices
Reduce parameter count
and computational load,
and improve the feasibil-
ity of real-time detection
Lightweighting does not
equal actual deployability,
and hardware-based empiri-
cal verification is still re-
quired
Data Augmenta-
tion and Training
Strategies
Mosaic, MixUp, transfer
learning, class rebalanc-
ing
Insufficient sam-
ples, class imbal-
ance, large scene
variations
Improve data diversity
and enhance model ro-
bustness
Unreasonable augmentation
may destroy the real spatial
relationship between lesions
and leaf tissues
To clarify the logic of this section, Figure 6 summarizes the overall context of current
YOLO improvement research at three levels: “problem, strategy, and goal”. The left shows
the core task conflict in leaf disease detection, the middle shows the main technical path,
and the right shows the goals of these improvements. In practice, strategies often work in
combination rather than in isolation. The following analysis is based on this framework.
Small target/Scale difference Multi-scale feature fusion Improve small target recall
Weak feature/Low contrast Attention mechanism Enhance feature representation
Irregular/Fuzzy boundary Loss function improvement Improve localization accuracy
Complex background interference Decoupled detection head Suppress background false detection
Deployment resource constraints Backbone lightweighting Reduce deployment cost
Problem Layer Strategy Layer Objective Layer
System Adaptation: From Partial Compensation to Task Orientation
Figure 6. Correspondence diagram of problems–strategies–objectives.
Electronics 2026, 15, 4699 21 of 44
https://doi.org/10.3390/electronics15204699
Based on existing research, the YOLO improvement strategy for leaf disease detec-
tion can be broadly divided into two levels. The first involves improvements to the net-
work structure, including design optimization of the backbone network, neck network,
and attention mechanism; the second involves improvement s at the detection head and
training levels, including adjustments to the detection head structure, loss function, and
training strategy. At the network structure level, the improvement efforts mainly focus on
the path of extracting, integrating, and screening features.
4.2. Network-Level Structural Improvements
Based on the detection process, improvement s to the backbone network, neck net-
work, and attention mechanism are not isolated from one another, but revolve around the
information processing chain in leaf disease identification layer by layer. Specifically, im-
provements to the backbone network mainly address whether lesion characteristics can be
fully extracted. Improvements to the neck network further address whether the lesion infor-
mation at different scales and levels can be effectively integrated, and the attention mechanism
attempts to determine which regions and channels with greater diagnostic value should be
prioritized by the model in a complex context. Therefore, this section does not regard the rel-
evant research as simple module replacement, but understands it as a task adaptation path
characterized by a progression from extraction to fusion to screening. The corresponding po-
sition of each improvement in the YOLO architecture is shown in Figure 7.
Input Image
Backbone Network
Lightweight design
Feature retention and compensation
Extract multi-level features
Neck Network
Multi-scale fusion
Context modeling
Information transmission and integration
Detection Head
Classification and localization decoupling
Bounding box regression optimization
Loss and assignment strategy
Output
Lightweighting and Feature
Compensation Multi-scale Fusion Detection Head and Training
Attention Mechanism
Strengthen key regions and channels, suppress interference background, improve robustness in complex scenes
Feature Extraction
Backbone Network
Feature Fusion
Neck Network
Feature Selection and Prediction
Detection Head
Figure 7. Schematic diagram of improvement locations in YOLO architecture.
4.2.1. Backbone Network: Lightweight Design and Feature Compensation
The backbone extracts the features used by later fusion and detection stages. For leaf
disease detection, lightweight design aims to reduce computational cost while retaining
useful color, texture, and spatial detail. The design question is therefore how to allocate a
limited computing budget without losing information needed for the annotated targets.
Existing research can be roughly divided into two main approaches. The first replaces
selected convolutional operators with lower -cost alternatives while retaining the overall
backbone structure [51,52]. Kang et al. [53] and Wang et al. [54] have introduced Ghost
modules into the backbone network to generate redundant feature maps at a lower cost,
while maintaining good detection performance and compressing the parameter count and
computational cost. In microscopic wheat-pathogen spore detection, PConv and PPBlock
Electronics 2026, 15, 4699 22 of 44
https://doi.org/10.3390/electronics15204699
provide a related example of reducing convolutional overhead [55]. A common feature of
these methods is that they do not attempt to fundamentally rewrite the feature extraction
logic of YOLO, but rather allow the model to perform the approximate characterization
task at a lower cost through a more streamlined operator design.
The second approach replaces the backbone with a more efficient architecture [56]. It
changes feature extraction more broadly through choices such as network depth, channel
width, and grouped convolution. Resource allocation can also prioritize high -resolution
features relevant to small targets [57]. MobileNetV3, GhostNet, FasterNet, PP-LCNet, and
other structures follow this principle. Liu et al. [58] replaced the lightweight backbones
and related modules, maintaining good wheat disease detection performance while re-
ducing complexity. Li et al. [59] demonstrated through lightweight transformation of
YOLOv8s that, in leaf disease detection, compression does not necessarily lead to signifi-
cant accuracy degradation. Zhu [60] also shows that this direction has gradually shifted
from compression feasibility to more reasonable compression.
Compression and feature adaptation address related but distinct design objectives.
Lightweight operators reduce computational cost, whereas adaptive sampling and feature
enhancement seek to retain relevant visual information. Standard convolution uses a reg-
ular sampling grid, which motivates investigation of mechanisms that adapt feature ex-
traction to lesion appearance.
Regarding this problem, the existing research generally follows two directions: one
acts on the convolutional kernel sampling and receptive field adjustment process, empha-
sizing lesion contour alignment capability; the other acts on the stage of feature recovery
and scale reconstruction, emphasizing the fidelity of weak lesion information during in-
ter-layer transmission. The C2f -SAC module proposed by Wang et al. [61] combines
switchable dilated convolution with an attention mechanism, enabling the receptive field
to be adjusted more flexibly according to changes in lesion scale. Feng et al. [62] intro-
duced dynamic response and attention compensation into relevant modules, which also
reflects this trend.
In general, the goal of backbone network improvement is to retain and enhance the
initial representation capability of lesions as much as possible under a limited computa-
tional budget [63].
It should be noted that lightweight design is not an optimization requirement unique
to the YOLO framework. Previously, SSD, Faster R-CNN, and other detection frameworks
have also reduced computational costs by introducing lightweight backbone networks
such as MobileNet and EfficientNet. However, because YOLO has end-to-end single-stage
detection characteristics, the benefits of lightweight design can generally be translated into
improvements in inference speed and deployment convenience. Therefore, lightweight de-
sign does not simply aim to reduce the parameter count for YOLO leaf disease detection;
more importantly, it can meet the requirements of rapid identification in agricultural pro-
duction. It should be noted that this translation primarily concerns theoretical computa-
tional complexity; whether a corresponding reduction in latency can be achieved on a spe-
cific edge device also depends on operator implementation, quantization compatibility, and
inference framework support. Table 6 contrasts local operator replacement with backbone-
level redesign in terms of representative methods, design objectives, and limitations.
Electronics 2026, 15, 4699 23 of 44
https://doi.org/10.3390/electronics15204699
Table 6. Two main paths of YOLO backbone lightweighting in leaf disease detection.
Path Representative Methods Core Idea Advantages Limitations
Local Operator
Replacement
GhostConv, PConv,
GSConv
Approximate standard convo-
lution with low-cost opera-
tions; reduce redundancy
within convolution units
Small changes, easy
deployment, can be
quickly embedded into
existing frameworks
Limited compression
rate; overall architec-
ture unchanged
Global Backbone
Replacement
MobileNetV3,
FasterNet,
GhostNet
Replace YOLO original back-
bone with lightweight net-
work as a whole; reconstruct
feature extraction architecture
More thorough com-
pression; significant re-
duction in the parame-
ter count and the com-
putational cost
Requires retraining or
fine-tuning; high
transfer cost
4.2.2. Neck Network: Multi-Scale Fusion and Context Modeling
If backbone network improvement focuses more on whether information extraction
is sufficient, then neck network improvement focuses more on whether transmission and
integration are effective. The lesions in leaf disease identification not only exhibit a wide
scale range, but also often show the characteristics of weak local details and complex over-
all distribution at the same time, which means that the model cannot rely solely on a sin-
gle-layer feature to make the judgment. Especially for early tiny lesions, dense lesions, or
complex background scenes, only by integrating shallow spatial details with deep seman-
tic information in a high-quality manner can the model be more likely to take into account
localization accuracy and disease detection capability. Therefore, in recent years, optimi-
zation around the neck network is no longer just about mechanically increasing the inte-
gration path, but it has gradually turned to improving the quality of integration, enhanc-
ing context modeling ability, and reducing ineffective information transmission.
A common practice is to transform the key fusion modules in the traditional
FPN/PAN structure to improve the interaction between features at different scales [64,65].
Xu et al. [66] replaced the original SPP module with the SPP-CSP-CG module to enhance
the model’s adaptability to images with different resolutions by integrating SPP, CSP, and
GC mechanisms. Liang et al. [67] replaced the C2f module with the C3Ghost module,
which improved small -object disease detection performance while controlling the com-
putational cost. Reference [68] used the improved C2f_Star module to enhance the repre-
sentation capability of the neck. LTYOLOv10n [69] combines CBAM, C3f modules, and
lightweight depth–width scaling. This reflects the idea of reducing ineffective computa-
tion and strengthening key integration.
Another line of research found that relying solely on convolutional local fusion is
insufficient to solve the long -range dependency problem between lesions and complex
backgrounds. Especially in field images, lesions and pseudo-similar background regions are
often not locally adjacent, but exhibit cross-regional texture similarity or color confusion,
which requires the model to possess some global context modeling capability. Yuan et al.
[70] transformed the original module into the PMSS Block with a Phase -Modular SSM
structure and preserved local details as much as possible while expanding the receptive field
through CE Block and FG Block collaboration. Such work shows that the focus of neck op-
timization has shifted from simply splicing more layered features to how to prevent lesion
information from being overwhelmed by the background in the process of fusion.
It should be noted that the more emphasis is placed on context modeling and global
dependencies, the more likely the model is to introduce additional computational over-
head, which conflicts with the edge deployment requirements of leaf disease detection.
Neck network optimization is not about being more complex, but about whether it signif-
Electronics 2026, 15, 4699 24 of 44
https://doi.org/10.3390/electronics15204699
icantly improves the circulation efficiency of disease lesion-related characteristics. In gen-
eral, this direction has gradually shifted from intuitive improvement of the integration
path in the early stage to the task -oriented design for improving integrat ion quality and
information selectivity. In the future, more attention should be paid to the coordination
between lightweight neck structure s and lesion-aware fusion mechanisms, rather than
simply superimposing more complex modules.
4.2.3. Attention Mechanisms: Lesion Feature Screening
After the basic feature representation enhancement of the backbone network and the
multi-scale fusion of the neck network, although the model possesses rich region proposal
features, it remains difficult to stably focus on lesion regions of diagnostic significance in
complex backgrounds. Especially in scenes with fluctuating natural lighting, leaf occlu-
sion, cluttered background s, or subtle disease differences, the model often disperses its
limited representational capacity across numerous irrelevant textures. The introduction
of the attention mechanism is precisely to further complete feature recalibration and pri-
ority allocation at this stage, so that the model can evolve from extracting i nformation to
focusing more accurately on key information.
For leaf disease detection, the attention mechanism is important not only because it can
improve accuracy, but also because it provides the model with dynamic feature recalibra-
tion capability. The real lesion region in leaf images often occupies only a limited space, and
numerous background regions, such as leaf veins, shadows, reflections, or non-pathological
pigment lesions, may compete with lesion response intensity during convolutional trans-
mission. If the model cannot prioritize lesion-related regions at the feature level, even if it
has a sufficiently deep network structure, it may waste a large amount of computing re-
sources on irrelevant regions. Therefore, the essential role of the attention mechanism in the
identification of leaf diseases should not be simply understood as adding an additional en-
hancement module, but as a feature scheduling method for complex scenarios.
Based on existing research, the attention mechanism mainly serves two functions.
One is to redistribute spatial locations and channel weights to highlight the lesion region
and its key texture, and the other is to cooperate with multi -scale structures, dynamic
convolution, or lightweight modules as compensation for compression losses [71–73]. In
the related task of lemon fruit disease detection, Wang et al. [61] combined switchable
dilated convolution and attention in the C2f -SAC module to accommodate variation in
symptom scale. Feng et al. [62] enhanced feature screening capability under complex field
conditions through Triplet Attention. Such studies show that when the lesions are weak,
background interference is strong, and textures are similar, the attention mechanism can
often provide significant benefits.
The contribution of attention should be evaluated alongside its computational cost
and stability under changes in imaging conditions. In other words, the value of the atten-
tion mechanism in leaf disease identification does not lie in its being a universal perfor-
mance enhancer, but in whether it can help the model more effectively distinguish lesion
characteristics that are critically worthy of attention from background disturbances that
appear similar but are unimportant in specific scenarios [74].
In terms of detection technology development, the concept of attention does not ap-
pear only in improvements to YOLO. Constructed by external information modeling, self-
attention, window attention, and other means, DETR, Swin Transformer, and other mod-
els can better address the problem of lesion detection in complex environments. The ap-
pearance of attention in YOLO does not mean that it will inevitably lead to a completely
pure Transformer structure, but rather reflects the feature fusion in its neck and the selec-
tion of lesions. It can also be introduced into this part of the overall dependency model to
strengthen the stability and perception ability under complex field conditions.
Electronics 2026, 15, 4699 25 of 44
https://doi.org/10.3390/electronics15204699
Overall, improvements to the backbone network, neck network, and attention mech-
anism have enhanced YOLO’s perception of leaf diseases at the three levels of basic fea-
ture representation, multi -scale integration, and key region strengthening, respectively.
However, these structural optimizations still mainly answer the question of how the
model can better detect disease lesions and do not fully address how the model can output
more appropriate classification and localization results. For leaf disease tasks with blurred
lesion boundaries, high category similarity, and sensitivity to small object localization,
stronger feature representation alone is insufficient. Detection head design, bounding box
regression mode, and training supervision targets also determine the final detection qual-
ity. Therefore, related research further extends the focus of improvement to the detection
head and optimization targets.
4.3. Improvement Strategies for Detection Heads and Training
4.3.1. Structural Improvement of Detection Heads
Compared with the aforementioned structural improvements, which mainly focus on
how features are extracted, fused, and strengthened, improvements to the detection head and
the optimization targets are more directly related to how the model ultimately makes predic-
tions. In leaf disease identification, lesions often have problems such as similar texture be-
tween categories, unstable boundary representation, and low fault tolerance of small object
localization, which makes the conflict between classification and regression tasks more prom-
inent than in general natural object detection. Therefore, in recent years, researchers have not
only focused on optimizing the main network structure, but also have gradually shifted their
perspective to problems closer to the supervision side, such as detection head decoupling, loss
function design, label assignment, and training mechanism coordination.
In leaf disease detection, the detection head lies at the end of the object detection process,
but it is not merely a subsidiary component responsible for outputting results; it determines
how the characteristics extracted and integrated before will eventually be organized, decoded,
and transformed into the detection results. For objects such as lesions, which exhibit large-
scale differences, irregular boundaries, weak local features, and are often accompanied by in-
ter-category similarities, the design of the detection head not only affects the final accuracy of
classification and localization, but it is also directly related to whether the characteristics
learned by the preceding network effectively contribute to the final result.
Based on existing research, the optimization of the detection head generally revolves
around two problems. The first is how to improve decoupling between classification and
localization tasks, enabling the model to more stably handle the dual challenges of easily
confused lesion types and locations that are difficult to determine accurately. The second
is how to improve the utilization efficiency of characteristics at the output edge for tiny
lesions and irregular lesions. Reference [75] adopts a decoupled head structure to more
clearly separate the learning focus of classification branches and regression branches,
thereby improving lesion identification in complex contexts. In MGA -YOLO [54,76], the
additional P6 prediction head addresses large whole -leaf targets, illustrating that detec-
tion-head scale should follow the annotated object size.
The functional layering of classification and localization is not unique to the YOLO
system. Compared with early two -stage detection methods, Faster R-CNN has achieved
the classification of region proposals and the division of regression tasks to a certain ex-
tent. DETR organizes detection results in a set -based manner. In comparison, the decou-
pled detection head in YOLO pays more attention to real-time performance while improv-
ing the independence of classification and localization. It is a kind of rebalancing under
the high-efficiency detection paradigm, rather than simply repeating existing ideas.
The meaning of detection head optimization should not be narrowly understood as
final fine -tuning. In the leaf disease task, many detection failures are not because the
Electronics 2026, 15, 4699 26 of 44
https://doi.org/10.3390/electronics15204699
model fails to see the lesions at all, but because the characteristics are not properly orga-
nized at the output stage. For example, the classification branch pays too much attention
to the similar textured background, and the regression branch has difficulty stably fitting
the diffuse boundary, which ultimately leads to lesion detection that is neither accurate
nor correctly bounded. Therefore, detection head optimization essentially redefines how
the model uses previously learned features. From th is perspective, the detection head is
not disconnected from the backbone and neck, but a key interface for the final screening
and representation of lesion information.
4.3.2. Adaptability Improvement of Bounding Box Regression Loss Function
Based on recent research, loss function optimization has shown a clear evolutionary
trajectory. From the early stage of simply relying on IoU overlap area, it gradually shifted
to a multi-dimensional optimization path focusing on geometric constraint modeling and
distribution similarity measurement.
Geometric regression losses optimize agreement with the annotated boxes. DM -
YOLO [77] applies MPDIoU to whole-leaf boxes in tomato images, so its localization re-
sults concern the leaf extent. In the maize study [59], replacing CIoU with ECIoU within
the tested configuration changes mAP@0.5 from 91.3% to 91.4%. This experiment provides
a metric-level comparison but does not quantify localization errors for elongated lesions.
ShapeIoU, proposed by Zhang [40] and Zhang [78], was used by Pan et al. for rice leaf
disease detection and further incorporates the boundary curvature and topological con-
nection of lesions into the constraints.
Another type of work turns to loss design based on distribution similarity to address
the problem that small object lesions are extremely sensitive to pixel-level offsets. Yuan et
al. [70] use the Normalized Wasserstein Distance (NWD) as the regression loss and model
the bounding box as a probability distribution, thereby maintaining a stable gradient
under sub-pixel-level offsets and significantly improving the localization robustness of
early tiny lesions. The BGM -YOLO proposed by Yu [79] reduces computational costs
through the GSC2f module and designs the MECS attention mechanism to integrate me-
dian-pooled information, thereby improving the model’s ability to capture multi-scale le-
sion characteristics. Feng et al. [62] combine sample-quality-dependent weighting, auxil-
iary-box overlap, and corner-distance penalties in Wise-Inner-MPDIoU for citrus leaf dis-
ease detection. Wang & Liu [80] construct Focal-EIoU, combining Focal Loss ideas to as-
sign higher weight to difficult samples (such as edge blur and low-contrast lesions), effec-
tively alleviating the localization deviation under class imbalance.
In addition, the category imbalance handling idea commonly used in YOLO does not
originate entirely from the YOLO system. For example, Focal Loss was first proposed by
RetinaNet, which aims to solve the problem of training bias when the foreground and
background samples are extremely imbalanced. Subsequently, the idea was inherited and
adjusted by various versions of the YOLO series and various improvement studies. It can
be seen that in the detection of leaf diseases, the optimization of the loss function not only
reflects the internal evolution of the YOLO framework, but also addresses common prob-
lems in the field of object detection that continue to extend to agricultural tasks.
It should be emphasized that loss function improvement should not be simplified
into a more complex IoU variant. The key question is whether loss design is closely cou-
pled with the pathological characteristics of leaf diseases. For example, should the model
overemphasize the geometric integrity of the bounding box for lesions with diffuse d
boundaries? Is it necessary to require higher center alignment sensitivity than general ob-
ject detection for latent lesions with diameters smaller than 10 pixels? At present, most
loss functions still follow the assumption of general object detection and do not carry out
targeted calibration for the morphological diversity of lesions.
Electronics 2026, 15, 4699 27 of 44
https://doi.org/10.3390/electronics15204699
Detection head design and loss function optimization address whether the prediction
form is reasonable and whether the error is finely characterized. Whether the model can finally
learn these abilities also depends on the distribution method of the supervision signal in the
training stage. For leaf disease data characterized by small disease objects, uneven class distri-
bution, and a high proportion of difficult cases, if positive and negative samples are improp-
erly matched and learning focus is imbalanced, even if the detection head and regression loss
are finely designed, these designs are difficult to stably translate into final performance im-
provement. Therefore, research has further extended to supervision and coordination, such as
label assignment, sample balance, and training optimization.
4.3.3. Data Augmentation and Training Strategies
Compared with network structure improvements, the role of data augmentation and
training strategies is often underestimated. However, for leaf disease detection, this part is not
a simple training aid, but largely determines whether the model finally learns the disease char-
acteristics or the background preference under certain specific collection conditions. Leaf dis-
ease datasets often have problems such as limited sample size
论文原文与出版信息
Electronics