论文解读

AI 辅助整理
方法
手机与无人机多年多点影像构建数据集,采用多尺度特征融合的MSAF-DETR检测模
发现
常规测试集精确率81.23%、mAP50为78.76%,参数量与算力较基线分别降38.8%和35.3
机会点
可探索跨生育期、跨平台泛化能力,并融合时序影像提升苗情监测鲁棒性。

论文摘要

以手机与无人机多年多点影像构建数据集,提出MSAF-DETR检测小麦苗叶尖。常规测试集精确率81.23%、mAP50为78.76%,参数量与算力较基线降38.8%和35.3%。结论限于所采环境、生育期与成像平台。

全文

Agriculture (MDPI)

Academic Editors: Adrian
Gracia-Romero and Riccardo Rossi
Received: 23 October 2026
Revised: 24 November 2026
Accepted: 24 November 2026
Published: 27 November 2026
Copyright: © 2026 by the authors.
Licensee MDPI, Basel, Switzerland.
This article is an open access article
distributed under the terms and
conditions of the Creative Commons
Attribution (CC BY) license.
Article
Field Wheat Seedling Leaf Tip Detection Based on Multi-Scale
Feature Fusion of Ground and UA V Images
Borui Liu 1 , † , Fu Hou 2 , † , Caili Guo 1 , Leilei Liu 1
, Xia Yao 1
, Tao Cheng 1
, Chongya Jiang 1 , Weixing Cao 1 ,
Hengbiao Zheng 1 and Yan Zhu 1 , *
1 National Engineering and Technology Center for Information Agriculture (NETCIA), MARA Key Laboratory
of Crop System Analysis and Decision Making, MOE Engineering Research Center of Smart Agriculture,
Jiangsu Key Laboratory for Smart Agriculture, Institute of Smart Agriculture, Nanjing Agricultural University,
666 Binjiang, Nanjing 211800, China; zhenghb@njau.edu.cn (H.Z.)
2 Huaiyin Institute of Agricultural Sciences of Xuhuai Region in Jiangsu, Huai’an 223001, China

  • Correspondence: yanzhu@njau.edu.cn
    † These authors contributed equally to this work.
    Abstract
    The population size and growth density of wheat during the seedling stage are directly
    linked to emergence quality, population structure, and subsequent field management deci-
    sions. To address the challenges of separating densely overlapped wheat seedlings, differ-
    ences in imaging conditions between smartphone and UA V images, and severe background
    interference in complex field environments, this study used seedling leaf tips as the detec-
    tion target and developed a field wheat seedling leaf-tip detection method. Wheat seedling
    images were collected in the field using smartphones and unmanned aerial vehicles (UA Vs)
    across multiple years, sites and experiments, and a wheat seedling leaf-tip dataset was
    constructed. With RT-DETR as the baseline, a Multi-Scale Adaptive Feature Fusion DETR
    model, termed MSAF-DETR, was proposed for wheat seedling leaf-tip detection. MultiBack-
    bone was designed to preserve shallow high-resolution spatial information; a Small-Object
    Enhanced Feature Pyramid was constructed to achieve the aligned fusion of multi-scale
    features; and Shape-IoU loss was introduced to strengthen shape and scale constraints
    for tiny and slender targets. On the regular test set, MSAF-DETR achieved a Precision of
    81.23% and a mean average precision (mAP50 ) of 78.76%. Compared with the baseline
    model, the number of parameters and computational cost were reduced by 38.8% and
    35.3%, respectively. Under scenario-specific test conditions involving complex environmen-
    tal interference, variable illumination and soil backgrounds, and temporal changes across
    growth stages, it also maintained the optimal overall detection performance. The results
    demonstrate that MSAF-DETR can effectively detect and count visible wheat seedling leaf
    tips under the evaluated field conditions, growth stages, and imaging platforms, offering a
    technical basis for leaf-number estimation and seedling monitoring.
    Keywords: wheat seedling; leaf-tip detection; multi-scale feature fusion; object detection;
    Transformer; machine vision
  1. Introduction
    The population size and leaf developmental status of wheat at the seedling stage are
    critical indicators for evaluating emergence quality, the suitability of planting density, and
    early seedling status, which directly influence the formation of population structure, tillering,
    and subsequent yield components [1,2]. In field production and breeding trials, parameters
    Agriculture 2026, 16, 2613 https://doi.org/10.3390/agriculture16232613

Agriculture 2026, 16, 2613 2 of 24
such as seedling and leaf counts typically rely on manual field surveys. This approach is
time-consuming, labor-intensive, prone to subjective errors, and difficult to implement for
continuous monitoring, failing to meet the demands for rapid seedling evaluation across
large areas, multiple varieties, and diverse treatments [3,4]. With the development of
visible light imaging, low-altitude unmanned aerial vehicle (UA V) remote sensing, and
deep learning technologies, the image-based automatic extraction of phenotypic parameters
at the seedling stage has provided a novel technical approach for monitoring wheat seedling
status.
Early studies on crop seedling counting primarily relied on image segmentation and
object counting based on color, texture, and morphological features [5]. Liu et al. [6]
achieved automatic counting of wheat seedlings in the field using the Excess Green index
and a skeleton optimization method. Jin et al. [7] extracted vegetation coverage and texture
features from high-resolution, low-altitude UA V imagery, and estimated wheat plant density
at emergence through regression models. Liu et al. [4] further investigated a method for
calculating the number of wheat seedlings from the one-leaf to three-leaf stages by utilizing
the morphological features of leaf skeletons, endpoints, and overlapping regions. While such
methods can achieve satisfactory performance under relatively stable imaging conditions
with distinct contrast between crop targets and the background, they typically rely on
hand-crafted features or thresholds. Consequently, they are susceptible to variations in soil
background, illumination, sowing density, and leaf overlap, leading to limited generalization
ability in complex field environments.
In recent years, deep learning methods have increasingly been applied to object de-
tection and counting at the crop seedling stage [8,9]. For field crops such as wheat, plants
are densely distributed in the field, making it challenging to reliably extract whole-plant
boundaries. Consequently, local morphological features, such as leaves and leaf tips, have
gradually become important targets for seedling counting and phenotypic analysis. Wang
et al. [10] proposed a local annotation strategy for wheat seedling detection to mitigate the
interference of background information during model training. Jiang et al. [11] developed
a model for maize seedling counting and leaf age monitoring using near-ground and UA V
RGB images, and applied lightweight pruning to reduce model parameters. Their study
indicates that phenotypic monitoring at the seedling stage is evolving from single-scenario
detection towards multi-platform, lightweight, and real-time field applications. Studies on
crops such as rice have also demonstrated that deep learning-based leaf-tip detection can be
used to count leaves and support further crop phenotypic analysis [12,13]. Hou et al. [14]
used an improved YOLOv8 model to detect wheat leaf tips and estimate the number of
leaves per seedling from the detected leaf tips. The model achieved an mAP50 of 85.1%,
demonstrating the potential of leaf-tip detection for estimating wheat leaf number under
field conditions. However, the wheat in their study was established via low-density broad-
cast sowing, with single images typically containing only one or two isolated seedlings. This
fails to adequately represent the planting patterns and population morphological structures
typical of actual field production. The aforementioned studies indicate that transforming
the complex task of whole-plant or leaf number estimation into localized leaf-tip detection
is both agronomically rational and algorithmically feasible.
However, detecting wheat seedlings in field images remains challenging. Under field
conditions of drill seeding or dense planting, individual seedlings are small and densely
distributed, with prevalent leaf crossing and occlusion. When directly targeting whole
seedlings or intact leaves for detection, the model is required to simultaneously perform
individual plant separation, boundary localization, and counting, making it highly suscep-
tible to false positives and missed detections. Moreover, leaf-tip targets inherently possess
characteristics such as a small scale and boundary sensitivity, meaning that fine-grained
https://doi.org/10.3390/agriculture16232613

Agriculture 2026, 16, 2613 3 of 24
spatial information can be lost during deep feature extraction. Images captured at close
range with smartphones differ substantially from low-altitude UA V images in spatial res-
olution, target pixel proportion, and background scope, further increasing the difficulty
of cross-platform detection. Transformer-based object detection methods offer advantages
in end-to-end prediction and global feature modeling [15,16]. However, when general-
purpose detection models are directly applied to field images, they remain susceptible
to complex field environments and cross-platform scale variations, resulting in limited
network adaptability.
To address these challenges, this study uses field wheat seedling leaf tips as the detec-
tion target. A wheat seedling leaf tip dataset comprising both smartphone and UA V images
was constructed. Building upon the RT-DETR framework, this study proposes MSAF-
DETR (Multi-Scale Adaptive Feature Fusion DETR) for wheat seedling leaf-tip detection.
The model uses MultiBackbone, a dual-branch fusion backbone, to extract spatial details
and semantic information; introduces SOEP (Small-Object Enhanced Feature Pyramid)
to strengthen the fusion of shallow high-resolution features; and employs the Shape-IoU
loss to improve bounding-box regression accuracy for slender leaf-tip targets. This study
further evaluates the model on a regular test set and on challenging datasets covering
complex field environments, different growth stages, and multi-platform images, aiming to
provide a technical basis for automated, non-destructive leaf-tip detection and image-based
assessment of visible wheat seedling leaf traits.
2. Materials and Methods
2.1. Study Area and Image Acquisition
All data used in this study were collected from field wheat experiments conducted in
2022 at the Rugao Base of the National Engineering and Technology Center for Information
Agriculture in Rugao, Jiangsu Province (32°15′ N, 120°45′ E), and in 2024 at the Dancheng
Base of the Wheat Technology Innovation Center in Zhoukou, Henan Province (33°41′ N,
115°07′ E) (Figure 1). The Rugao experiment included a combination trial of varieties, sow-
ing densities, and nitrogen levels, as well as a wheat breeding material trial, which adopted
manual row sowing and manual spot sowing, respectively. The Dancheng experiment
included a regional trial of high-quality wheat varieties, a variety-sowing rate-nitrogen
combination trial, a variety-nitrogen-sulfur level combination trial, and a variety-nitrogen-
phosphorus level combination trial, all of which employed mechanical row sowing. The
experimental designs are summarized in Table 1.
Figure 1. Experimental site of this study. (a) Rugao Experiment 1. (b) Rugao Experiment 2.
(c) Zhoukou Experiment 1. (d) Zhoukou Experiment 2. (e) Zhoukou Experiment 3. (f) Zhoukou
Experiment 4.
Visible-light images of wheat seedlings were collected concurrently from all plots in
the aforementioned experiments using both smartphone and UA V platforms. For the smart-
https://doi.org/10.3390/agriculture16232613

Agriculture 2026, 16, 2613 4 of 24
phone platform, a OnePlus Ace 3 (Shenzhen Wanpuulasi Technology Co., Ltd., Shenzhen,
China) was used, equipped with a 50-megapixel main camera (focal length of 5.59 mm). Im-
ages were saved at a resolution of 3072 × 3072 pixels. For the UA V platform, a DJI Phantom
4 RTK (SZ DJI Technology Co., Ltd., Shenzhen, China) was used, featuring a 1-inch CMOS
sensor with 20 megapixels and a focal length of 8.8 mm (24 mm equivalent in 35 mm format).
Images were saved at a resolution of 5472 × 3648 pixels. Data collection began after wheat
emergence and was conducted multiple times during key seedling growth stages, from the
one-leaf stage to the four-leaf stage. The stages were determined based on the main stem
leaf development status according to the Haun scale. Smartphone images were acquired by
hand with the camera oriented vertically downward, at approximately 60–80 cm above the
canopy. UA V images were captured manually at a flight altitude of 5 m with the camera
oriented vertically downward; since each sampling location was photographed only once,
no flight-line-based image overlap rate was applicable. DJI’s built-in distortion correction
was enabled during image acquisition. Image acquisition was conducted under various
weather conditions (cloudy, overcast, and sunny) and at different times of day (morning,
midday, and afternoon). The data acquisition equipment and methods are summarized in
Table 2.
Table 1. Overview of wheat field experimental design.
Experiment Number Experimental Design Materials/Treatments
Rugao Experiment 1 Combined trial on varieties, sowing densities, and nitrogen levels 2 varieties, 3 sowing densities, and 3 nitrogen levels;18 treatments in total
Rugao Experiment 2 Wheat breeding material trial 1029 wheat breeding materials
Zhoukou Experiment 1 Regional trial of high-quality wheat varieties 30 high-quality wheat varieties
Zhoukou Experiment 2 Combined trial on varieties, seeding rates, and nitrogen levels 2 varieties, 3 seeding rates, and 3 nitrogen levels;18 treatments in total
Zhoukou Experiment 3 Combined experiment on varieties and nitrogen–sulfur levels 2 varieties and 6 nitrogen–sulfur levels;12 treatments in total
Zhoukou Experiment 4 Combined experiment on varieties and nitrogen–phosphorus levels 15 varieties and 6 nitrogen–phosphorus levels
Table 2. Data acquisition equipment and methods.
Equipment OnePlus Ace 3 Smartphone DJI Phantom 4 RTK
Effective Pixels 50-megapixel 20-megapixel
Resolution 3072 × 3072 pixels 5472 × 3648 pixels
Capture height 60 to 80 cm from the canopy 5 m
Capture Method 90°downward shooting
Capture Time Daylight, different illumination conditions
2.2. Image Preprocessing and Annotation
To address the issue that single images acquired by the UA V platform have a large
coverage area while the wheat leaf-tip targets are relatively small, patch-based cropping was
performed on the UA V images. This approach was intended to retain leaf-tip details when
UA V image patches were resized for model training and inference. The cropping described
here was focused on seedling-containing regions rather than providing complete coverage
of each original UA V image. During cropping, the number of patches N was determined
based on the original image width W, height H, and the predefined stride S, as shown in
Equation (1). After cropping, data cleaning was conducted on images acquired by both the
UA V and smartphone platforms to remove low-quality samples. UA V patches containing
predominantly bare ground were also excluded before image annotation.
𝑁 = (⌊𝑊 − 640𝑆 ⌋ + 1) × (⌊𝐻 − 640𝑆 ⌋ + 1) (1)
https://doi.org/10.3390/agriculture16232613

Agriculture 2026, 16, 2613 5 of 24
Wheat seedling leaf tips were defined as the detection targets and annotated using
rectangular bounding boxes. Annotations were created with the LabelImg tool in YOLO
format, using “leafapex” as the class label. Each leaf-tip region in an image was annotated
individually. One corner of each bounding box was placed just above the leaf apex, and the
box was positioned so that its diagonal coincided with or ran parallel to the leaf midrib,
extending along the direction of leaf growth. Each bounding box was drawn around the
visible leaf-tip region, including only a short segment of the adjacent leaf blade and ex-
cluding the rest of the leaf. The same anatomical criterion was applied across images from
different acquisition platforms. Box dimensions were determined by the visible target rather
than by fixed physical or pixel dimensions and could therefore vary with image scale. The
diagonal length of each bounding box represented the longitudinal extent of the leaf-tip
region. The short side of the rectangle was adjusted according to the actual width of the
leaf tip, ensuring the complete coverage of the leaf-tip contour. All visually identifiable
leaf tips in each image were annotated. Partially occluded or overlapping leaf tips were
annotated separately when their tip locations could be distinguished. Four annotators par-
ticipated in image annotation. One of them reviewed the work of the other three annotators,
corrected any identified issues, and made the final decision on any disagreements regard-
ing leaf-tip identification or bounding-box placement, following the annotation criteria
described above.
2.3. Dataset Construction
The dataset comprised visible-light images of wheat seedlings acquired using both
smartphone and UA V platforms. The images were randomly divided into a Training Set,
a Validation Set, and Test Set 1 at a ratio of 8:1:1. The training set, validation set, and
Test Set 1 contained 3488, 436, and 436 images, respectively. Images from both plat-
forms were included in all three subsets. This primary split was used as a common
in-distribution benchmark for model development and controlled comparison among
different detection architectures, and all models were trained and evaluated using the
same subsets.
Before splitting the data for training and validation, the images were categorized by
scenario based on the challenging conditions observed in complex field environments.
Images were then randomly selected from these scenarios to construct three scenario-
specific test sets of 400 images each. Test Set 2 comprised images including scenes with
straw, weeds, straw and weeds, and images captured after weeding. Test Set 3 comprised
images covering sunny and cloudy conditions combined with different soil backgrounds.
Test Set 4 comprised images of wheat at different growth stages, from the one-leaf to the
four-leaf stage, classified according to main-stem leaf development on the Haun scale. Each
of Test Sets 2–4 comprised four subsets of 100 images each. The selected images were
excluded from the training set, validation set, and Test Set 1; other images from the same
scenarios could still be included in the training and validation sets. The dataset composition
is summarized in Table 3.
Table 3. Construction and division of the dataset.
Data Train Set Validation Set Test Set 1 Test Set 2 Test Set 3 Test Set 4
Smartphone 2325 290 290 300 300 300
UA V 1163 146 146 100 100 100
In addition to the primary image-level random split, we conducted a plot-grouped
split to assess the impact of potential correlations among observations. Each experimental
plot was treated as an independent group, and all images collected from the same plot
were assigned to the same subset. The plots were allocated to the training, validation, and
https://doi.org/10.3390/agriculture16232613

Agriculture 2026, 16, 2613 6 of 24
grouped test sets at the same ratio of 8:1:1. The training, validation, and grouped test sets
contained 3510, 430, and 420 images, respectively, with no overlap in experimental plots
among the three subsets.
2.4. MSAF-DETR Model Construction
To achieve accurate detection of wheat seedling leaf tips in complex field environ-
ments, this study improves upon RT-DETR, a Transformer-based real-time object detection
model. RT-DETR is an end-to-end object detection framework with strong global feature
modeling capabilities, providing a solid foundational architecture for multi-scale object
detection. Building on this framework, this study proposed a Multi-Scale Adaptive Fea-
ture Fusion DETR model, termed MSAF-DETR, for detecting wheat seedling leaf tips in
field images.
The overall architecture of MSAF-DETR comprises a feature extraction network, a
feature fusion network, and a prediction network arranged in sequence. Rather than
proposing entirely new fundamental operators, the technical novelty of MSAF-DETR lies in
the targeted architectural reconfiguration of established modules to address the specific task
of field wheat seedling leaf-tip detection. First, a dual-branch feature extraction network
(MultiBackbone) was constructed in which the C2f (Cross-Stage Partial Feature Fusion) and
HGBlock (Hierarchical Graph Block) pathways extract features in parallel, with MASAG
(Multi-Scale Adaptive Spatial Attention Gate) performing stage-wise feature fusion. Second,
we introduced the high-resolution S2 feature into the feature-fusion stage to construct the
Small-Object Enhanced Feature Pyramid (SOEP). SPDConv (Space-to-Depth Convolution)
and Cross-Stage Partial Omni-Kernel Module (CSP-OKM), which adapts the Omni-Kernel
Module (OKM) by incorporating a Cross-Stage Partial structure, are used to fuse shallow,
high-resolution spatial details. Third, we adopted Shape-IoU loss to improve bounding-box
regression at the prediction stage. The input image first passes through MultiBackbone to
extract multi-scale features. SOEP then incorporates shallow features rich in spatial detail
and generates multi-scale features for prediction through cross-layer fusion. Finally, the
prediction network uses a Transformer decoder and a decoupled prediction head to output
leaf-tip class confidence scores and bounding-box coordinates. The network architecture is
shown in Figure 2.
2.4.1. MultiBackbone
Building upon the feature extraction network of RT-DETR, this study constructs the
MultiBackbone to extract multi-scale features containing both spatial details and semantic
information from input images. The input image first passes through the HGStem layer
for initial feature mapping and downsampling. The HGStem extracts local features and
global salient information through a convolutional module and a max-pooling branch,
respectively. Their outputs are concatenated along the channel dimension, thereby reducing
the computational load in shallow layers while preserving low-level visual information.
After initial feature extraction, the feature map is fed in parallel into heterogeneous
feature extraction branches built from C2f and HGBlock modules. To produce the high-
resolution S2 feature layer for targeting small objects, this study used a heterogeneous
routing strategy. Specifically, the output of the C2f branch is used directly as the high-
resolution S2 feature layer for subsequent feature fusion, whereas the output of the HGBlock
branch is passed to deeper network layers for further feature extraction.
In the subsequent deep feature extraction process, the network stacks multiple Spatial-
Semantic Adaptive Fusion Modules (SSAFM). The SSAFM comprises a spatial detail branch
and a semantic enhancement branch, with a Multi-Scale Adaptive Spatial Attention Gate
(MASAG) at the end of the module to align and fuse features from the two branches. For
https://doi.org/10.3390/agriculture16232613

Agriculture 2026, 16, 2613 7 of 24
clarity, Figure A1 in Appendix A illustrates the stage-wise feature extraction and fusion
pattern of the backbone. SSAFM is used only as a descriptive grouping for these stages
and does not represent a separately implemented module. The branch configurations and
parameters vary across stages. MASAG uses multi-scale feature fusion, spatial selection,
spatial interaction, and attention recalibration to enhance feature responses in key leaf-tip
regions while suppressing complex background noise. The structure of MASAG is shown
in Figure A2 in Appendix A. After processing through multiple SSAFM layers, the network
outputs four feature layers, [S2, S3, S4, S5], for subsequent feature fusion.
Figure 2. MSAF-DETR model structure.
2.4.2. Small-Object Enhanced Feature Pyramid
In field images, wheat seedling leaf tips occupy a small proportion of pixels. The
original feature pyramid network of RT-DETR mainly fuses features from levels S3 to
S5, leaving high-resolution information from shallower layers underused. After multiple
downsampling, information such as the edge contours and geometric morphology of the
leaf tips is highly susceptible to loss in deeper network layers. To address this limitation,
MSAF-DETR constructs the SOEP , introducing the shallow, high-resolution features of the
S2 layer into the feature fusion process. The architecture of SOEP , including the feature
connections and corresponding tensor dimensions, is shown in Figure A3 in Appendix A.
SOEP takes the multi-scale feature layers [S2, S3, S4, S5] produced by the feature
extraction network as input. A Space-to-Depth Convolution (SPDConv) is introduced to
downsample the high-resolution feature layer S2. It rearranges features from neighboring
spatial positions into the channel dimension, followed by a stride-one convolution for feature
fusion. Because S2 has twice the height and width of S3, the SPDConv output matches
S3 in spatial dimensions; the two feature maps are then concatenated along the channel
dimension to form the enhanced feature F3. The deeper feature S5 is flattened and passed
through an intra-scale feature interaction module comprising multi-head attention and a
feed-forward network to generate F5, as described in Equations (2) and (3).
Q = K = V = Flatten(𝑆5) (2)
𝐹5 = Reshape(FFN(Attn(Q, K, V))) (3)
At the cross-layer feature fusion nodes, SOEP incorporates CSP-OKM, a Cross-Stage
Partial adaptation of the Omni-Kernel Module (OKM). To reduce the computational cost
https://doi.org/10.3390/agriculture16232613

Agriculture 2026, 16, 2613 8 of 24
of the original OKM while preserving gradient flow for shallow-layer details, CSP-OKM
was redesigned using a Cross-Stage Partial structure. The structure of CSP-OKM is shown
in Figure A4 in Appendix A. One portion of the input features is passed through directly
to preserve gradient flow and shallow-layer details, while the other enters the OKM for
multi-receptive field feature extraction. The two feature streams are then concatenated
and fused by convolution for the final output. The features [F3, S4, F5] are then uniformly
mapped to 256 dimensions and aggregated through a bidirectional weighted path featuring
both top-down and bottom-up connections. The network ultimately produces a set of
multi-scale prediction features [P3, P4, P5] characterized by scale consistency and semantic
alignment, which are passed to the subsequent Transformer decoder.
2.4.3. Shape-IoU Loss
Wheat seedling leaf tips are slender and small, and boundary-sensitive. Traditional
bounding box regression losses emphasize box overlap and the distance between box centers;
meaning even a slight offset in the predicted box can therefore substantially affect detection
results, while constraints on target shape and aspect ratio remain limited. This study
adopted Shape-IoU loss into the prediction network. The loss function incorporates target-
box shape and scale into the regression penalty, with particular emphasis on aspect ratio. It
uses adaptive weighting coefficients to calculate the relative differences in width and height
between predicted and ground-truth boxes. The loss is defined in Equations (4)–(9).
IoU = ∣𝐵 ∩ 𝐵gt∣∣𝐵 ∪ 𝐵gt∣ (4)
ww = 2 × (𝑤gt)scale
(𝑤gt)scale + (ℎgt)scale (5)
hh = 2 × (ℎgt)scale
(𝑤gt)scale + (ℎgt)scale (6)
distanceshape = hh × (𝑥𝑐 − 𝑥gt𝑐 )2
𝑐2 + ww ×
(𝑦𝑐 − 𝑦gt𝑐 )2
𝑐2 (7)
Ωshape =
𝜃
∑
𝑡=𝑤,ℎ
(1 − 𝑒𝜔𝑡), 𝜃 = 4 (8)
𝐿shape−IoU = 1 − IoU + distanceshape + 0.5 × Ωshape (9)
where B and Bgt denote the predicted and ground-truth bounding boxes, respectively; b
and bgt represent their respective center coordinates; and c defines the diagonal length of
the minimum bounding box that encloses both the predicted and ground-truth boxes. In
the distanceshape , ww and hh are adaptive weighting coefficients introduced to account for
variations in target scale. In the Ωshape , 𝜔t measures the relative differences in width and
height between the predicted and ground-truth boxes, while 𝜃 controls the sensitivity of
the shape penalty and was set to 4 in this model.
2.5. Experimental Settings
This study was conducted on the Ubuntu 24.04.3 operating system. The hardware
configuration included an Intel Xeon Platinum CPU (20 cores), an NVIDIA GeForce RTX
4090 GPU (24 GB of VRAM), and 100 GB of RAM. The model training environment included
Python 3.10, PyTorch 2.2.2, and CUDA 12.1. Both model training and validation were
conducted using the Ultralytics open-source object detection framework. The input image
size was set to 640 × 640 pixels. No additional offline resizing or augmentation was applied
https://doi.org/10.3390/agriculture16232613

Agriculture 2026, 16, 2613 9 of 24
after dataset preparation; online data augmentation was handled by the Ultralytics pipeline
(8.0.201) using its default configuration. Models were trained for 300 epochs with a batch
size of 4 and an initial learning rate of 0.001 using the AdamW optimizer. The Ultralytics
linear learning-rate schedule was used, with a final learning-rate factor of 0.9 and a weight
decay of 1 × 10−4 . No pretrained weights were loaded. Early stopping was not used, and
all models completed 300 epochs. The best.pt checkpoint saved during each training run
was used for validation. No model-specific hyperparameter tuning was conducted, and all
competing models followed the same training budget and common settings.
2.6. Evaluation Metrics
The primary evaluation metrics employed in this study include Precision, Recall, mean
Average Precision (mAP), Parameters, GFLOPs, and Speed. The calculation formulas are
defined in Equations (10)–(12).
Precision = TPTP + FP (10)
Recall = TPTP + FN (11)
mAP = 1𝑛 𝑛∑𝑖=1 ∫10 𝑃(𝑅)dR (12)
where TP , TN, FP , and FN denote the number of true positives, true negatives, false positives,
and false negatives, respectively; P and R stand for Precision and Recall. Specifically, mAP50
represents the mean Average Precision at an Intersection over Union (IoU) threshold of 0.5,
while mAP50-95 denotes the average mAP computed across IoU thresholds ranging from 0.5
to 0.95 in increments of 0.05. Given that this study involves only one class, mAP and AP
have the same value; however, to maintain standardized terminology, “mAP” is uniformly
utilized throughout the manuscript. The parameters (Params) is used to quantify the size of
the model, whereas GFLOPs were used to measure computational complexity and resource
requirements. Speed was defined as the per-image inference time reported by Ultralytics
under laboratory conditions; preprocessing and postprocessing times were not included.
In addition, to evaluate counting performance, the leaf-tip predictions of all models
were filtered using a confidence threshold of 0.4, followed by non-maximum suppression
(NMS) with an IoU threshold of 0.4 to remove duplicate detections; both thresholds were
empirically set based on preliminary visual inspection of model predictions and fixed before
evaluation and applied uniformly to all models. For each image, the number of remaining
leaf-tip bounding boxes was taken as the predicted count and compared with the manually
annotated count. Counting performance was assessed using the coefficient of determination
(R2 ), root mean square error (RMSE), and relative RMSE (rRMSE).
3. Results
3.1. Comparison of Detection Performance Among Different Models
Table 4 presents a comparison of the detection performance among MSAF-DETR, the
improved baseline model RT-DETR, and the YOLO series models on Test Set 1. In terms of
detection performance, MSAF-DETR achieved optimal performance among the evaluated
models for all four metrics: Precision (81.23%), Recall (74.65%), mAP50 (78.76%), and
mAP50–95 (38.21%). Compared with RT-DETR, these metrics showed relative increases of
6.8%, 7.3%, 7.4%, and 5.3%, respectively. Compared with YOLOv8M, the best-performing
model in the YOLO series, MSAF-DETR showed larger gains, with increases of 15.1%, 20.4%,
17.3%, and 42.6% across the four metrics, respectively. In addition, YOLOv8M, RT-DETR,
https://doi.org/10.3390/agriculture16232613

Agriculture 2026, 16, 2613 10 of 24
and MSAF-DETR were trained and evaluated using the plot-grouped data split and the
same training settings. Their results on the grouped test set are shown in Table A1.
Table 4. Model comparison results.
Model Precision Recall mAP50 mAP50-95 Params (M) GFLOPs Speed (ms)
YOLOv8S 69.02% 59.34% 64.61% 25.11% 11.13 28.4 8.9
YOLOv10S 67.23% 59.13% 64.63% 28.18% 8.10 24.8 15.6
YOLOv5M 67.91% 59.22% 63.84% 23.77% 21.18 49.0 9.8
YOLOv8M 70.55% 61.98% 67.17% 26.80% 25.84 78.7 15.8
YOLOv10M 68.62% 61.23% 66.61% 29.26% 16.54 63.9 14.8
RT-DETR 76.08% 69.55% 73.33% 36.28% 20.18 58.6 12.3
MSAF-DETR 81.23% 74.65% 78.76% 38.21% 12.35 37.9 11.6
In terms of model complexity, compared to RT-DETR, the parameters of MSAF-DETR
was reduced from 20.18 M to 12.35 M, and its computational complexity decreased from 58.6
GFLOPs to 37.9 GFLOPs under laboratory conditions. According to the design conventions
of the Ultralytics framework, models with 10–40 GFLOPs and 5–15 M parameters are
categorized as small-model, whereas those with 40–100 GFLOPs and 15–30 M parameters
are classified as medium-model. The comparison reveals that MSAF-DETR possesses fewer
parameters and lower computational complexity, placing it in the small-model category. This
demonstrates a favorable balance between detection accuracy and computational efficiency.
3.2. Ablation Study
Table 5 presents the results of the ablation study, detailing the progressive integration of
different improvement modules into the baseline model. Using RT-DETR as the foundation,
the modules were incrementally added as follows: Model 1 represents the baseline RT-
DETR; Model 2 replaces the original backbone of Model 1 with MultiBackbone; Model 3
introduces the SOEP to Model 2; and Model 4 adopts the Shape-IoU loss based on Model 3,
constituting the final proposed MSAF-DETR. To further justify the choice of Shape-IoU, we
compared it with other bounding box regression losses while keeping the model architecture
and training settings unchanged. The comparative results are shown in Table A2.
With MultiBackbone replacing the original backbone, Model 2 achieved Precision,
Recall, and mAP50 values of 77.95%, 71.16%, and 74.98%, respectively, all higher than those of
Model 1. This backbone replacement reduced the parameters and computational complexity
to 16.77 M and 40.2 GFLOPs, respectively. Following the incorporation of SOEP , Model 3
showed further improvements in Precision, Recall, and mAP50 , although mAP50–95 decreased
by 0.89 percentage points; its parameters and computational complexity decreased further.
Finally, upon adopting the Shape-IoU loss, Model 4 achieved the highest values across all
accuracy metrics. To evaluate performance stability under training randomness, RT-DETR
and MSAF-DETR were additionally trained across three independent random seeds under
identical settings, and the results are shown in Table A3.
Table 5. Model ablation results.
Model Precision Recall mAP50 mAP50-95 Params (M) GFLOPs Speed (ms)
Model 1 76.08% 69.55% 73.33% 36.28% 20.18 58.6 12.3
Model 2 77.95% 71.16% 74.98% 36.06% 16.77 40.2 12.9
Model 3 80.52% 73.94% 76.15% 35.17% 12.35 37.9 11.5
Model 4 81.23% 74.65% 78.76% 38.21% 12.35 37.9 11.6
With the progressive integration of the modules, the final model achieved better
detection performance than the baseline, while the structural modifications reduced the
number of parameters and computational complexity. Compared to Model 1, Model 4
achieved a 38.8% reduction in parameters and a 35.3% decrease in computational complexity,
https://doi.org/10.3390/agriculture16232613

Agriculture 2026, 16, 2613 11 of 24
while simultaneously improving Precision, mAP50 , and mAP50-95 by 6.8%, 7.4%, and 5.3%,
respectively.
3.3. Comparison of Counting Performance Among Different Models
Figure 3 shows the correlation between the counts of visible leaf tips predicted by
different models and the corresponding counts obtained from manual annotation in Test
Set 1. R2 was calculated relative to the 1:1 line. Demonstrating the best counting regression
performance, MSAF-DETR achieved an R2 of 0.8822, an RMSE of 21.03, and an rRMSE of
15.20%. It achieved the highest R2 and the lowest RMSE and rRMSE among all models,
with relative improvements of 4.2–53.7% in R2 , while RMSE and rRMSE were reduced by
14.0–55.4% and 11.8–55.4%, respectively. When evaluated alongside the detection results in
Table 5, these findings show that MSAF-DETR achieved the best performance in both object
detection and image-level leaf-tip counting. The two sets of metrics assess detection quality
and count estimation performance, respectively.
Figure 3. Correlation between manually annotated counts and model-predicted counts.
3.4. Detection Performance in Complex Field Environments
To validate the detection performances of the model under non-ideal field conditions,
models were evaluated on the scenario-specific datasets (Test Sets 2 and 3), which covered
interference from ground cover, variations in illumination, and differences in soil texture.
https://doi.org/10.3390/agriculture16232613

Agriculture 2026, 16, 2613 12 of 24
Table 6 presents the detection results of YOLOv8M, RT-DETR, and MSAF-DETR on
Test Set 2. Test Set 2 covers four field scenarios: straw, weeds, both straw and weeds, and
post-weeding. In the straw scenario, MSAF-DETR achieved higher Precision(76.24%), Re-
call(70.36%), mAP50 (73.49%), and mAP50–95 (32.70%) than RT-DETR. In the weeds scenario,
MSAF-DETR achieved an mAP50 of 74.84%, compared with 47.22% for YOLOv8M; in the
combined straw-and-weeds scenario, the corresponding values were 78.39% and 68.17%.
MSAF-DETR also achieved the highest mAP50–95 values in these two scenarios. In the
post-weeding scenario, its mAP50 was 79.32%, 0.03 percentage points lower than RT-DETR’s
79.35%, while its Precision, Recall, and mAP50–95 were higher. Although MSAF-DETR’s
advantages over RT-DETR varied across conditions, it markedly outperformed YOLOv8M
across the detection metrics. Results across the four scenarios indicate that MSAF-DETR is
robust under complex field environments. The detection results are shown in Figure 4.
Table 6. Test results under complex field environments.
Environment Model Precision Recall mAP50 mAP50-95
Straw
YOLOv8M 70.65% 67.41% 71.68% 27.57%
RT-DETR 72.63% 67.18% 71.16% 29.16%
MSAF-DETR 76.24% 70.36% 73.49% 32.70%
Weeds
YOLOv8M 51.29% 54.32% 47.22% 11.24%
RT-DETR 75.82% 76.41% 73.79% 24.26%
MSAF-DETR 73.07% 76.93% 74.84% 24.98%
Straw and Weeds
YOLOv8M 69.90% 69.18% 68.17% 23.72%
RT-DETR 78.87% 73.30% 76.97% 29.91%
MSAF-DETR 79.66% 72.21% 78.39% 31.60%
Post-weeding
YOLOv8M 74.65% 70.32% 70.76% 29.99%
RT-DETR 77.18% 71.95% 79.35% 34.67%
MSAF-DETR 80.35% 74.15% 79.32% 35.40%
Figure 4. Detection results under complex field environments.
Table 7 presents the detection results of YOLOv8M, RT-DETR, and MSAF-DETR on
Test Set 3. Based on the experimental site and the weather conditions at image acquisition,
https://doi.org/10.3390/agriculture16232613

Agriculture 2026, 16, 2613 13 of 24
images in Test Set 3 comprise four combinations of illumination and soil backgrounds:
sunny with loam soil, sunny with clay soil, overcast with loam soil, and overcast with clay
soil. These combinations allowed model performance to be assessed under concurrent
changes in illumination and soil background. Under sunny conditions, MSAF-DETR out-
performed YOLOv8M across all four detection metrics on both loam and clay soils. In the
sunny with loam soil scenario, MSAF-DETR achieved the highest Precision (79.90%), Recall
(80.17%), and mAP50 (78.16%); its mAP50–95 was slightly lower than that of RT-DETR. In
the sunny with clay soil scenario, MSAF-DETR achieved the highest Precision (78.91%),
while its mAP50 was slightly below that of RT-DETR; its Recall and mAP50–95 also ranked
second among the models. Under overcast conditions, MSAF-DETR led all four metrics on
both soil backgrounds, achieving mAP50 values of 72.09% on loam and 77.35% on clay, com-
pared with 68.45% and 75.95% for RT-DETR. Overall, the results indicate that MSAF-DETR
detection performance varied across field images acquired under different combinations of
illumination conditions and soil backgrounds. Figure 5 shows the detection results.
Table 7. Test results under different illumination and soil backgrounds.
Background Model Precision Recall mAP50 mAP50-95
Sunny and Loam
YOLOv8M 58.14% 55.23% 52.63% 17.26%
RT-DETR 79.51% 72.53% 75.26% 29.29%
MSAF-DETR 79.90% 80.17% 78.16% 29.01%
Sunny and Clay
YOLOv8M 63.93% 58.66% 60.52% 19.15%
RT-DETR 77.92% 75.56% 76.56% 26.78%
MSAF-DETR 78.91% 74.22% 75.91% 26.44%
Overcast and Loam
YOLOv8M 73.26% 60.41% 64.70% 21.84%
RT-DETR 77.53% 70.35% 68.45% 23.59%
MSAF-DETR 79.54% 71.40% 72.09% 23.72%
Overcast and Clay
YOLOv8M 73.04% 71.24% 69.77% 20.74%
RT-DETR 80.06% 74.08% 75.95% 29.35%
MSAF-DETR 80.27% 78.84% 77.35% 29.38%
Figure 5. Detection results under different illumination and soil backgrounds.
https://doi.org/10.3390/agriculture16232613

Agriculture 2026, 16, 2613 14 of 24
3.5. Detection Performance at Different Wheat Growth Stages
Table 8 presents the detection results of YOLOv8M, RT-DETR, and MSAF-DETR at
different wheat seedling stages in Test Set 4. The test set encompasses four image categories
based on the main stem leaf status (Haun scale): the one-leaf, two-leaf, three-leaf, and four-
leaf stages of wheat. MSAF-DETR outperformed both YOLOv8M and RT-DETR, achieving
the highest values for all detection metrics. MSAF-DETR achieved its highest Precision
(80.90%), Recall (74.47%), mAP50 (78.43%), and mAP50–95 (37.82%) at the two-leaf stage.
Its mAP50 declined to 74.26% and 69.87% at the three- and four-leaf stages, respectively,
but at the four-leaf stage it remained above RT-DETR (69.24%) and YOLOv8M (53.85%).
Overall, the results indicate that MSAF-DETR maintained a consistent advantage over the
various morphological stages of wheat seedlings. The visual detection results are illustrated
in Figure 6.
Table 8. Test results at different growth stages.
Stage Model Precision Recall mAP50 mAP50-95
One-leaf Stage
YOLOv8M 52.64% 55.86% 49.98% 14.68%
RT-DETR 71.44% 70.17% 72.67% 28.12%
MSAF-DETR 75.59% 73.30% 76.68% 30.15%
Two-leaf Stage
YOLOv8M 70.63% 65.76% 68.34% 23.75%
RT-DETR 77.39% 71.64% 75.83% 35.04%
MSAF-DETR 80.90% 74.47% 78.43% 37.82%
Three-leaf Stage
YOLOv8M 73.60% 62.68% 68.95% 27.72%
RT-DETR 75.06% 63.11% 70.03% 32.86%
MSAF-DETR 78.92% 67.79% 74.26% 34.61%
Four-leaf Stage
YOLOv8M 60.51% 53.53% 53.85% 16.97%
RT-DETR 69.10% 64.71% 69.24% 26.43%
MSAF-DETR 70.68% 66.74% 69.87% 27.12%
Figure 6. Detection results at different growth stages.
Figure 7 further visualizes how the detection metrics of MSAF-DETR and the com-
parison models varied across wheat seedling stages. The compared models had markedly
https://doi.org/10.3390/agriculture16232613

Agriculture 2026, 16, 2613 15 of 24
lower metric values at the one- and four-leaf stages than at the intermediate stages, produc-
ing a low–high–low pattern. In contrast, MSAF-DETR’s detection metrics varied less and
remained relatively high across all four stages. Particularly at the one- and four-leaf stages,
the detection metrics of MSAF-DETR exceeded those of all compared models. These visual
trends indicate that MSAF-DETR maintained a more stable detection performance across
wheat seedling stages.
Figure 7. Visualization of detection performance of models at different growth stages.
3.6. Detection Performance on Different Platforms
Table 9 presents the detection results of YOLOv8M, RT-DETR, and MSAF-DETR on
smartphone and UA V images in Test Set 1. For smartphone images, MSAF-DETR achieved
Precision, Recall, mAP50 , and mAP50–95 values of 81.70%, 74.63%, 80.43%, and 35.48%,
respectively; the corresponding values for UA V images were 78.20%, 70.67%, 72.37%, and
32.29%. Overall, although the detection metrics of MSAF-DETR were lower on UA V images
than on smartphone images, it achieved the highest overall detection performance among
the evaluated models on both platform-specific subsets.
Table 9. Test results for different platforms.
Platform Model Precision Recall mAP50 mAP50-95
Smartphone
YOLOv8M 68.32% 60.54% 63.76% 21.62%
RT-DETR 77.44% 70.71% 78.05% 32.65%
MSAF-DETR 81.70% 74.63% 80.43% 35.48%
UA V
YOLOv8M 65.83% 60.45% 62.35% 20.12%
RT-DETR 74.18% 64.85% 68.54% 30.20%
MSAF-DETR 78.20% 70.67% 72.37% 32.29%
Figure 8 illustrates the visual detection results of MSAF-DETR on images acquired by
smartphone and UA V platforms. The MSAF-DETR model successfully outputs predicted
bounding boxes for wheat seedling leaf tips across both image platforms. This performance
https://doi.org/10.3390/agriculture16232613

Agriculture 2026, 16, 2613 16 of 24
is maintained whether processing near-ground smartphone images, where individual
seedlings occupy a larger pixel scale, or UA V aerial images, which cover a broader field area
and contain small-scale, extremely dense leaf-tip targets.
Figure 8. Visualization of detection results from smartphone and UA V images.
4. Discussion
4.1. Rationale for Using Leaf Tips as the Detection Target in Wheat Seedlings
The population size and growth density of wheat during the seedling stage are di-
rectly linked to emergence quality, population structure, and subsequent field management
decisions.
Under complex field environments, variation in seedling morphology, background
interference, and leaf occlusion and overlap increase the difficulty of automated detection
and counting [1,17]. Under conditions involving drill sowing or dense planting, wheat
seedlings appear small and densely distributed, and frequently subject to intersection and
occlusion with neighboring plants [18]. Detecting whole seedlings therefore requires the
model to separate and count individual plants, making the task challenging [2].
Compared with extracting the contours of entire wheat seedlings, focusing on more
localized and well-defined morphological features offers clear geometric and biological
advantages. Wheat seedling leaves are slender and taper toward their distal ends to form tips.
Although leaves may overlap, their tips have relatively distinct positions on the leaves and
characteristic local morphology, making them more suitable as detection targets in seedling
images [3]. Previous studies have shown that the number of leaf tips in gramineous crops,
https://doi.org/10.3390/agriculture16232613

Agriculture 2026, 16, 2613 17 of 24
such as wheat, rice, and barley, can represent the number of visible leaves to some extent.
Building upon this, leaf count has been adopted as a key image trait in rice phenotyping,
and deep learning-based leaf-tip detection has been applied to count leaves [4]. This further
supports leaf-tip detection as a feasible approach to estimating leaf number in crops.
Accordingly, this study selected wheat seedling leaf tips as detection targets, trans-
forming the problem of estimating the number of visible leaves in seedling images into a
localized leaf tip detection and counting task. This strategy reduces the reliance on intact
leaf contours and mitigates the effects of leaf overlapping, occlusion of lower leaves, and
complex soil backgrounds on image annotation and detection. Furthermore, the number of
detected leaf-tip bounding boxes can also be used directly to count leaf tips in each image,
thereby supporting image-based assessment of seedling leaf traits.
4.2. Improvement Mechanisms of MSAF-DETR
Wheat seedling leaf tips appear as small, slender targets in images, and boundary
sensitivity. Their scale and appearance vary considerably across different data acquisition
platforms and seedling growth stages, while fine-grained spatial information can be lost
during network downsampling [10]. Previous research has shown that leaf-tip density
and its dynamic variation can reflect the early growth status of crops; however, detection
performance is affected by target scale and the degree of leaf expansion [19]. DETR uses the
Transformer architecture to model global object relationships [15], and RT-DETR further
optimizes this architecture for real-time detection [16]. For wheat leaf-tip detection, how-
ever, multi-scale feature fusion and high-resolution feature enhancement are still needed.
Furthermore, multi-scale spatial attention and multi-receptive field feature extraction can
also enhance target feature representations and suppress background interference [20,21].
Accordingly, MSAF-DETR was modified in three areas: feature extraction, feature fusion,
and bounding-box regression.
At the feature extraction stage, MultiBackbone uses its C2f and HGBlock branches to
form heterogeneous feature extraction paths. The C2f branch output is taken directly as
the high-resolution S2 feature layer, allowing shallow spatial information to contribute to
subsequent feature fusion. The SSAFM further aligns spatial details with deep semantic
features, which helps to preserve the edge, orientation, and local morphological features of
the leaf tips. Similar multi-scale spatial attention structures can emphasize target regions by
dynamically adjusting their receptive fields, thereby reducing interference from irrelevant
background [20].
At the cross-layer feature fusion stage, SOEP was introduced to incorporate the high-
resolution S2 feature map into the fusion process. Space-to-Depth Convolution was used
to downsample S2 while retaining pixel-level information. Previous research has shown
that, compared with whole-plant detection, leaf-tip detection can mitigate the difficulties
caused by target clustering and occlusion, but is more sensitive to image resolution and local
details [19]. The CSP-OKM module introduced at the cross-layer fusion nodes combines
feature extraction across multi-receptive field feature with computational efficiency, which
helps to enhance the discriminative ability between leaf tip targets and complex background
textures [21]. The resulting multi-scale prediction features provide representations at
different spatial resolutions for leaf-tip detection.
At the prediction stage, MSAF-DETR uses Shape-IoU loss to incorporate width and
height scale differences and shape constraints into bounding-box regression, improving
localization accuracy for slender leaf-tip targets. In the ablation study, mAP50–95 declined
slightly after the addition of MultiBackbone and SOEP , but increased after Shape-IoU was
introduced, suggesting that Shape-IoU may have contributed to improved localization
performance. Previous studies focusing on wheat leaf tip detection has also shown that
https://doi.org/10.3390/agriculture16232613

Agriculture 2026, 16, 2613 18 of 24
optimizing the loss function and adding a small-object detection layer can reduce the
missed detection rate of leaf tips [12]. The ablation results showed that with the progressive
integration of MultiBackbone, SOEP , and Shape-IoU loss improved the detection accuracy
metrics while reducing the parameters and computational complexity. This indicates
that the modifications increased leaf-tip detection accuracy and achieved a better balance
between model complexity and detection performance.
4.3. Reasons for Performance Differences Under Complex Field Environments
In complex field environments, factors such as straw, weeds, soil texture, and changes
in illumination can alter the contrast between leaf-tip targets and the background, making
detection models more susceptible to false positives, missed detections, and bounding-box
localization errors [6]. Previous studies have indicated that illumination intensity, soil
reflectance, weed interference, and changes in image acquisition conditions are critical
factors affecting crop detection in the field [22,23]; furthermore, studies on crop counting
based on UA V imagery also shown that complex field environments can substantially
increase the difficulty of target recognition [24]. In this study, YOLOv8M’s detection
performance declined markedly in scenarios involving weeds or both straw and weeds,
suggesting that mainstream object detection models may struggle to identify small leaf-tip
targets reliably against complex backgrounds.
In complex field environments, MSAF-DETR generally maintains strong detection
performance, to its use of high-resolution features from shallow network layers and multi-
scale feature fusion mechanism. Research on wheat leaf-tip detection in complex field
environments has shown that attention mechanisms can enhance leaf-tip boundary features
and reduce background interference [12]; multi-scale attention and multi-receptive-field
structures also contribute to improving the model’s ability to detect targets at different
scales [20,21]. The results indicate that MSAF-DETR substantially outperformed YOLOv8M,
whereas its advantages over RT-DETR varied across field environments. In the straw and
post-weeding scenarios, MSAF-DETR achieved the best results for most detection metrics.
In weeds or both straw and weeds scenarios, a few metrics were slightly lower than those of
RT-DETR, but MSAF-DETR still achieved the highest mAP50 and mAP50–95 values, indicating
a favorable balance between localization quality and overall detection performance.
The combinations of different illumination conditions and soil backgrounds further
provide a scenario-specific comparison of model performance. Previous research on UA V-
based crop detection has shown that combined changes in illumination, soil background,
and imaging methods can make crop recognition more difficult [25]; studies on multi-
spectral UA V imagery have also revealed that variations in imaging conditions and field
backgrounds can affect crop density estimation accuracy [26]. In the sunny with clay soil
background, certain metrics of MSAF-DETR were slightly lower than those of RT-DETR,
suggesting that shadows under bright sunlight and the strong contrast associated with the
clay background may still cause certain interference with the extraction of local boundary
details of leaf tips. However, under overcast with either loam or clay soil background,
MSAF-DETR achieved the best results across all detection metrics, indicating stronger
performance in these evaluated overcast subsets. Across the evaluated combinations of
different illumination conditions and soil backgrounds, MSAF-DETR’s relative performance
varied by subset and metric. These results should be interpreted as performance on the
evaluated image subsets, rather than as evidence of isolated effects of soil background
or illumination.
https://doi.org/10.3390/agriculture16232613

Agriculture 2026, 16, 2613 19 of 24
4.4. Evaluation of Model Adaptability
As wheat seedlings develop, leaf number, leaf posture, and the extent of leaf occlusion
within the stand change over time. Previous research has shown that leaf overlap and target
occlusion become more severe as leaf number increases [27], and that leaf-tip density and
its temporal variation are affected by growth stage and the degree of leaf expansion [19].
Earlier work on wheat plant density estimation likewise found that image resolution and
seedling morphology influence detection and counting results [28]. At the one-leaf stage,
leaf-tip targets were relatively few and small, making them susceptible to soil background
interference. During the two-leaf stage, the seedlings were more developed and their
leaves were moderately expanded, making leaf-tip morphology more distinct; detection
performance was therefore highest at this stage. By the three- and four-leaf stages, increased
leaf overlap made detection more difficult. Across the evaluated growth-stage subsets,
MSAF-DETR achieved an mAP50 of 78.43% at the two-leaf stage and 69.87% at the four-
leaf stage, a difference of 8.56 percentage points. The corresponding range for RT-DETR
was 6.59 percentage points. Although MSAF-DETR achieved a higher mAP50 than RT-
DETR at the four-leaf stage (69.87% vs. 69.24%), these results do not demonstrate that its
detection performance fluctuated less across growth stages. They indicate higher detection
accuracy in the evaluated stage-specific subsets, while the relative stability of the models
remains inconclusive.
Differences in image acquisition between smartphone and UA V platforms may also
affect leaf-tip detection. Previous research has indicated that variations in image scale,
illumination conditions, and crop appearance can affect crop detection and counting perfor-
mance [29]. UA V platforms also enable high-throughput collection of crop phenotypic data
over large areas [25,30]. Both near-ground and UA V RGB images can be used for seedling
counting and growth status monitoring [11,31]. Moreover, research on UA V semantic seg-
mentation and pixel-to-area mapping has also supported the feasibility of multi-platform
crop phenotyping [32]. Studies on UA V-based seedling monitoring for other crops further
demonstrate that UA V images can support the evaluation of early-stage population size and
sowing quality [33]. In this study, smartphone images were acquired close to the canopy,
whereas UA V images covered a wider field area and were cropped before analysis. By con-
structing a multi-source dataset using both smartphone and UA V images and incorporating
high-resolution features from shallow network layers and multi-scale fusion into the model,
this study enabled MSAF-DETR to capture local details and detect small targets in images
from both platforms. Using both platforms may support leaf-tip detection across differ-
ent spatial scales and the image-based assessment of visible seedling leaf traits. Because
UA V images were cropped from high-resolution source imagery before the random split,
spatially adjacent patches may retain partially correlated background, illumination, and
canopy characteristics. Therefore, performance on primary test set should be interpreted
primarily as an in-distribution benchmark for model comparison, rather than as a direct
estimate of generalization to entirely unseen fields.
4.5. Limitations and Future Research
This study constructed a wheat seedling leaf-tip detection dataset encompassing multi-
ple locations, multiple platforms, and diverse field scenarios, and validated the effectiveness
of MSAF-DETR in the leaf-tip detection task. However, certain limitations remain. First,
this study is primarily based on visible-light RGB images, and the model’s adaptability to
strong backlighting, severe shadowing, extensive leaf overlap, and pronounced changes
in soil background requires further evaluation. In addition, MSAF-DETR and its baseline
model were trained using three different random seeds on the primary data split. Although
the results provide a preliminary estimate of model performance variability, the number of
https://doi.org/10.3390/agriculture16232613

Agriculture 2026, 16, 2613 20 of 24
runs remains limited, and they are therefore not used as a basis for drawing conclusions
regarding statistical significance. Future research could consider integrating multispectral
images, depth images, or temporal image sequences to further improve the model’s robust-
ness and anti-interference capabilities in highly complex field environments, while also
conducting additional repeated training runs or group-based bootstrap confidence interval
analyses to further evaluate statistical robustness.
Secondly, although leaf-tip counting effectively reflects the number of visible leaves in
the images, further research is needed to establish its relationship with the actual number of
emerged seedlings, main-stem leaf age, and overall seedling structure. Accordingly, leaf-tip
counts are interpreted as counts of visible tips, not as direct measures of seedling population
size, emergence rate, or stand density. The current results reflect the model’s performance
on the evaluated subsets and do not establish that it generalizes to independently acquired
field data. Deviations between leaf-tip counts and specific agronomic indicators may occur
when tillering is present, leaves are heavily occluded, or some leaf tips are not visible.
Future studies should combine manual field surveys to establish quantitative relationships
between leaf-tip detection results and agronomic indicators such as seedling count, leaf age,
population uniformity, and emergence quality, and further validate model performance
across growth stages using independent field acquisitions from different plots, dates, sites,
or years.
In addition, although MSAF-DETR has fewer parameters and lower computational
complexity than the baseline model, these results were obtained under laboratory condi-
tions and reflect only model-level computational efficiency. This study has not evaluated
the model’s deployment on mobile or edge devices, nor has it assessed its practical field
application in terms of factors such as device computing capacity, image transmission,
batch-processing speed, and user workflows. Future work should evaluate the model on
representative mobile and edge devices and explore model compression and inference opti-
mization to accommodate their computational constraints. These efforts will help establish
the model’s deployment feasibility and support its application in the field.
5. Conclusions
This study constructed a wheat seedling image dataset comprising smartphone and
UA V images, with wheat seedling leaf tips as the detection targets, and proposed MSAF-
DETR, a leaf-tip detection and counting model based on multi-scale feature fusion. Through
the integration of MultiBackbone, SOEP , and Shape-IoU loss, MSAF-DETR achieved Pre-
cision, Recall, mAP50 , and mAP50–95 values of 81.23%, 74.65%, 78.76%, and 38.21%, re-
spectively, on the standard test set. Its detection performance exceeded that of the YOLO
and the RT-DETR models evaluated in this study. Compared with the RT-DETR baseline,
MSAF-DETR had 38.8% fewer parameters and 35.3% lower computational complexity while
achieving better detection performance.
Further evaluation on the scenario-specific test sets showed that MSAF-DETR main-
tained robust detection performance under complex field environments. Under straw and
weed interference, varying illumination and soil backgrounds, and across the one- to four-
leaf stages, MSAF-DETR achieved better detection performance than the comparison models.
In the leaf-tip counting task, the R2 between predicted and manually annotated leaf-tip
counts reached 88.22%. The proposed method mitigated the detection interference caused
by complex field backgrounds and variation in target scale, providing an image-based ap-
proach to automated, non-destructive leaf-tip counting and assessment of visible seedling
leaf traits. From a practical agronomic perspective, automating leaf-tip counting across
near-ground and UA V imagery offers a labor-saving tool for high-throughput phenotyping
in breeding and agronomic trials, supporting efficient monitoring of early leaf emergence
https://doi.org/10.3390/agriculture16232613

Agriculture 2026, 16, 2613 21 of 24
dynamics and canopy development across seedling stages. Furthermore, when combined
with multi-temporal observation and appropriate field calibration, visible leaf-tip counts
and their spatial distributions can serve as an auxiliary phenotypic basis for assessing early
seedling growth status, emergence quality, and stand uniformity. In turn, such spatial
phenotypic information can provide objective reference data to support timely early-stage
field management practices, including precision fertilization and pesticide application.
Author Contributions: Conceptualization, H.Z., W.C. and Y.Z.; methodology, H.Z., W.C. and Y.Z.;
software, B.L.; validation, B.L., F.H. and C.G.; formal analysis, B.L. and F.H.; investigation, B.L., F.H.
and C.G.; resources, F.H., W.C., Y.Z. and H.Z.; data curation, B.L.; writing—original draft preparation,
B.L. and F.H.; writing—review and editing, L.L., X.Y., T.C., C.J., W.C., Y.Z. and H.Z.; visualization,
B.L.; supervision, L.L., X.Y., T.C., C.J., W.C., Y.Z. and H.Z.; project administration, L.L., X.Y., T.C., C.J.,
W.C., Y.Z. and H.Z.; funding acquisition, H.Z., W.C. and Y.Z. All authors have read and agreed to the
published version of the manuscript.
Funding: This research was supported by the National major agricultural science and technology
projects (0305).
Data Availability Statement: The original contributions presented in this study are included in the
article. Further inquiries can be directed to the corresponding author.
Acknowledgments: The authors thank the Rugao Base of the National Engineering and Technology
Center for Information Agriculture and the Dancheng Base of the Wheat Technology Innovation
Center for their assistance with field experiments and image acquisition. The authors used ChatGPT
(OpenAI, GPT-5.5) to assist with translation and language editing during manuscript preparation. The
authors reviewed and edited the output and take full responsibility for the content of this publication.
Conflicts of Interest: The authors declare no conflicts of interest. The funders had no role in the design
of the study; in the collection, analyses, or interpretation of data; in the writing of the manuscript; or
in the decision to publish the results.
Appendix A
Figure A1. Stage-wise schematic of the backbone feature extraction and fusion structure.
https://doi.org/10.3390/agriculture16232613

Agriculture 2026, 16, 2613 22 of 24
Figure A2. Architecture of the Multi-Scale Adaptive Spatial Attention Gate (MASAG).
Figure A3. Architecture of the Small-Object Enhanced Feature Pyramid (SOEP).
Figure A4. Architecture of the Cross-Stage Partial Omni-Kernel Module (CSP-OKM).
https://doi.org/10.3390/agriculture16232613

Agriculture 2026, 16, 2613 23 of 24
Table A1. Model comparison results under the plot-grouped data split.
Model Precision Recall mAP50 mAP50-95 Params (M) GFLOPs Speed (ms)
YOLOv8M 68.22% 60.64% 65.77% 25.06% 25.84 78.7 15.5
RT-DETR 74.78% 67.66% 72.50% 32.25% 20.18 58.6 13.6
MSAF-DETR 80.32% 72.99% 77.28% 36.92% 12.35 37.9 11.8
Table A2. Comparison of bounding box regression losses using the Model 3 architecture.
IoU Category Precision Recall mAP50 mAP50-95
CIoU 80.41% 73.72% 76.11% 34.83%
GIoU 80.52% 73.94% 76.15% 35.17%
SIoU 80.72% 73.89% 77.21% 35.97%
Shape-IoU 81.23% 74.65% 78.76% 38.21%
Table A3. Model comparison results across different random seeds.
Model Run (Seed) Precision Recall mAP50 mAP50-95
RT-DETR
Run 1 (seed = 0) 76.08% 69.55% 73.33% 36.28%
Run 2 (seed = 100) 75.42% 70.18% 73.05% 35.94%
Run 3 (seed = 200) 76.64% 68.86% 73.68% 36.51%
Mean ± SD 76.05 ± 0.61% 69.53 ± 0.66% 73.35 ± 0.32% 36.24 ± 0.29%
MSAF-DETR
Run 1 (seed = 0) 81.23% 74.65% 78.76% 38.21%
Run 2 (seed = 100) 80.69% 75.12% 78.42% 37.96%
Run 3 (seed = 200) 81.61% 74.09% 78.95% 38.39%
Mean ± SD 81.18 ± 0.46% 74.62 ± 0.52% 78.71 ± 0.27% 38.19 ± 0.22%
References

  1. Ferrante, A.; Cartelle, J.; Savin, R.; Slafer, G.A. Yield determination, interplay between major components and yield stability in a
    traditional and a contemporary wheat across a wide range of environments. Field Crops Res. 2017, 203, 114–127. [CrossRef]
  2. Kipp, S.; Mistele, B.; Baresel, P .; Schmidhalter, U. High-throughput phenotyping early plant vigour of winter wheat. Eur. J. Agron.
    2014, 52, 271–278. [CrossRef]
  3. Araus, J.L.; Cairns, J.E. Field high-throughput phenotyping: The new crop breeding frontier. Trends Plant Sci. 2014, 19, 52–61.
    [CrossRef] [PubMed]
  4. Liu, T.; Yang, T.; Li, C.; Li, R.; Wu, W.; Zhong, X.; Sun, C.; Guo, W. A method to calculate the number of wheat seedlings in the 1st
    to the 3rd leaf growth stages. Plant Methods 2018, 14, 101. [CrossRef] [PubMed]
  5. Liu, Z.; Wu, W.; Zhang, S.; Cui, Q.; Li, R. Estimating Wheat Planting Density Based on Multiple Ridge Regression. J. Agric. Sci.
    Technol. 2020, 22, 72–80. (In Chinese)
  6. Liu, T.; Wu, W.; Chen, W.; Sun, C.; Zhu, X.; Guo, W. Automated image-processing for counting seedlings in a wheat field. Precis.
    Agric. 2016, 17, 392–406. [CrossRef]
  7. Jin, X.; Liu, S.; Baret, F.; Hemerlé, M.; Comar, A. Estimates of plant density of wheat crops at emergence from very low altitude
    UA V imagery. Remote Sens. Environ. 2017, 198, 105–114. [CrossRef]
  8. Ribera, J.; Chen, Y.; Boomsma, C.; Delp, E.J. Counting plants using deep learning. In Proceedings of the 2017 IEEE Global
    Conference on Signal and Information Processing (GlobalSIP), Montreal, QC, Canada, 14–16 November 2017; pp. 1344–1348.
  9. Aich, S.; Stavness, I. Leaf counting with deep convolutional and deconvolutional networks. In Proceedings of the 2017 IEEE
    International Conference on Computer Vision Workshops (ICCVW), Venice, Italy, 22–29 October 2017; pp. 2080–2089.
  10. Wang, S.; Zhao, J.; Cai, Y.; Li, Y.; Qi, X.; Qiu, X.; Yao, X.; Tian, Y.; Zhu, Y.; Cao, W.; et al. A method for small-sized wheat seedlings
    detection: From annotation mode to model construction. Plant Methods 2024, 20, 15. [CrossRef] [PubMed]
  11. Jiang, T.; Li, L.; Zhang, Z.; Yu, X.; Zhu, Y.; Li, L.; Liu, Y.; Bai, Y.; Tang, Z.; Liu, S.; et al. YOLO-light-pruned: A lightweight model
    for monitoring maize seedling count and leaf age using near-ground and UA V RGB images. Artif. Intell. Agric. 2026, 16, 164–186.
    [CrossRef]
  12. Vishal, M.K.; Saluja, R.; Aggrawal, D.; Banerjee, B.; Raju, D.; Kumar, S.; Chinnusamy, V .; Sahoo, R.N.; Adinarayana, J. Leaf count
    aided novel framework for rice (Oryza sativa L.) genotypes discrimination in phenomics: Leveraging computer vision and deep
    learning applications. Plants 2022, 11, 2663. [CrossRef] [PubMed]
    https://doi.org/10.3390/agriculture16232613

Agriculture 2026, 16, 2613 24 of 24
13. Xie, X.; Ge, Y.; Walia, H.; Yang, J.; Yu, H. Leaf-counting in monocot plants using deep regression models. Sensors 2023, 23, 1890.
[CrossRef] [PubMed]
14. Hou, Y.; Rao, Y.; Song, H.; Nie, Z.; Wang, T.; He, H. A rapid detection method for wheat seedling leaf number in complex field
scenarios based on improved YOLOv8. Smart Agric. 2024, 6, 128–137. (In Chinese)
15. Carion, N.; Massa, F.; Synnaeve, G.; Usunier, N.; Kirillov, A.; Zagoruyko, S. End-to-end object detection with transformers. In
Proceedings of the European Conference on Computer Vision (ECCV), Virtual Event, 23–28 August 2020; Springer: Cham, Switzerland,
2020; pp. 213–229.
16. Zhao, Y.; Lv, W.; Xu, S.; Wei, J.; Wang, G.; Dang, Q.; Liu, Y.; Chen, J. DETRs beat YOLOs on real-time object detection. In
Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), Seattle, WA, USA, 17–21 June
2024; pp. 16965–16974.
17. Zhang, B. A Study on Deep Learning-Based Methods for Wheat Seedling Detection. Master’s Thesis, Henan Agricultural
University, Zhengzhou, China, May 2025.
18. Huang, Y.; Qian, Y.; Wei, H.; Lu, Y.; Ling, B.; Qin, Y. A survey of deep learning-based object detection methods in crop counting.
Comput. Electron. Agric. 2023, 215, 108425. [CrossRef]
19. Yang, T.; Jay, S.; de Solan, B.; Li, Y.; Zhu, C.; Liu, S.; Baret, F. Estimating small-grain cereal plant density at early growth stages
using leaf tip density dynamics derived from submillimeter-scale RGB imagery. Comput. Electron. Agric. 2025, 239, 111053.
[CrossRef]
20. Kolahi, S.G.; Chaharsooghi, S.K.; Khatibi, T.; Bozorgpour, A.; Azad, R.; Heidari, M.; Hacihaliloglu, I.; Merhof, D. MSA2Net:
Multi-scale adaptive attention-guided network for medical image segmentation. In Proceedings of the 35th British Machine Vision
Conference (BMVC), Glasgow, UK, 25–28 November 2024; Paper 787. Available online: https://bmvc2024.org/proceedings/787/
(accessed on 12 October 2026).
21. Cui, Y.; Ren, W.; Knoll, A. Omni-kernel network for image restoration. Proc. AAAI Conf. Artif. Intell. 2024, 38, 1426–1434.
[CrossRef]
22. Anuar, M.M.; Halin, A.A.; Perumal, T.; Kalantar, B. Aerial imagery paddy seedlings inspection using deep learning. Remote Sens.
2022, 14, 274. [CrossRef]
23. Shrestha, D.S.; Steward, B.L. Automatic corn plant population measurement using machine vision. Trans. ASAE 2003, 46, 559–565.
[CrossRef]
24. Wu, J.; Yang, G.; Yang, X.; Xu, B.; Han, L.; Zhu, Y. Automatic counting of in situ rice seedlings from UA V images based on a deep
fully convolutional neural network. Remote Sens. 2019, 11, 691. [CrossRef]
25. Wilke, N.; Siegmann, B.; Postma, J.A.; Muller, O.; Krieger, V .; Pude, R.; Rascher, U. Assessment of plant density for barley and
wheat using UA V multispectral imagery for high-throughput field phenotyping. Comput. Electron. Agric. 2021, 189, 106380.
[CrossRef]
26. Banerjee, B.P .; Sharma, V .; Spangenberg, G.; Kant, S. Machine learning regression analysis for estimation of crop emergence using
multispectral UA V imagery. Remote Sens. 2021, 13, 2918. [CrossRef]
27. Xu, X.; Li, H.; Feng, Y.; Ma, X.; Shen, S.; Qiao, X. Wheat Seedling Identification Based on K-means and Harris Corner Detection. J.
Henan Agric. Sci. 2020, 49, 164–171. (In Chinese)
28. Liu, S.; Baret, F.; Andrieu, B.; Burger, P .; Hemmerlé, M. Estimation of wheat plant density at early stages using high resolution
imagery. Front. Plant Sci. 2017, 8, 739. [CrossRef] [PubMed]
29. Liu, L.; Lu, H.; Li, Y.; Cao, Z. High-throughput rice density estimation from transplantation to tillering stages using deep networks.
Plant Phenomics 2020, 2020, 1375957. [CrossRef] [PubMed]
30. Xu, X.; Wang, L.; Liang, X.; Zhou, L.; Chen, Y.; Feng, P .; Yu, H.; Ma, Y. Maize Seedling Leave Counting Based on Semi-Supervised
Learning and UA V RGB Images. Sustainability 2023, 15, 9583. [CrossRef]
31. Reza, M.N.; Na, I.S.; Lee, K.-H. Automatic counting of rice plant numbers after transplanting using low altitude UA V images. Int.
J. Contents 2017, 13, 1–8.
32. Zhou, H.; Li, Q.; Qin, B.; Min, H.; Liang, S.; Wang, X.; Cai, J.; Zhou, Q.; Huang, M.; Jiang, D.; et al. High-throughput wheat
seedling phenotyping via UA V-based semantic segmentation and ground sample distance driven pixel-to-area mapping. Comput.
Electron. Agric. 2025, 238, 110819. [CrossRef]
33. Zhao, B.; Zhang, J.; Yang, C.; Zhou, G.; Ding, Y.; Shi, Y.; Zhang, D.; Xie, J.; Liao, Q. Rapeseed seedling stand counting and seeding
performance evaluation at two early growth stages based on unmanned aerial vehicle imagery. Front. Plant Sci. 2018, 9, 1362.
[CrossRef] [PubMed]
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual
author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury
to people or property resulting from any ideas, methods, instructions or products referred to in the content.
https://doi.org/10.3390/agriculture16232613

论文原文与出版信息

Agriculture (MDPI)
查看论文原文

继续探索