论文信息

论文解读

AI 辅助整理
方法
构建1035张田间图像数据集,改进YOLO11n轻量检测模型。
发现
BM-Net平均mAP50达0.6656,优于基线0.6387,仅156万参数。
机会点
可探索遮挡与密集籽粒场景下的检测,并融合多光谱提升成熟度判别精度。

论文摘要

构建1035张田间图像、10027个标注籽粒数据集,提出改进YOLO11n的BM-Net。207张测试集九种子平均mAP50为0.6656±0.0130,优于基线0.6387;模型156万参数、12.2 GFLOPs。结果限于可见籽粒。

全文

Frontiers in Plant Science

BM-Net for buckwheat grain
maturity and aborted-grain
detection in field RGB images
Jiawei Wang1,2*, Xuchen Jia1,2, Lei Li1,2, Darui Li1,2, Zhi Wang1,2
and Hongze Yu1,2
1College of Agricultural Engineering, Shanxi Agricultural University, Jinzhong, China, 2Dryland Farm
Machinery Key Technology and Equipment Key Laboratory of Shanxi Province, Taigu, China
Asynchronous grain maturation complicates the assessment of buckwheat ma-
turity in the field. Smartphone RGB imaging offers an accessible means of
assessing individual grains, but small targets, dense clustering, occlusion, and
the similar appearance of aborted and mature grains make reliable detection
difficult. This study proposes BM-Net, an improved YOLO11n network for local-
izing and classifying visible buckwheat grains as aborted, immature, or mature.
The three classes denote different biological outcomes: immature and mature
grains describe developmental stage, whereas aborted grains are those that
ceased development and remain empty or shrivelled; their proportion is therefore
informative for yield estimation and is reported separately throughout. The
network incorporates a high-resolution detection output, a DyHead detection
head, spatial–frequency selective deformable attention blocks in the neck, and a
mixed spatial-attention module at the backbone output. A dataset of 1035 field
images with 10,027 annotated grains was constructed. The values reported here
are means over nine independent random seeds; on the 207-image test set, BM-
Net achieved mAP50 and mAP50 –95 values of 0.6656 ± 0.0130 and 0.4104 ±
0.0111, exceeding the YOLO11n-P2 baseline (0.6387 ± 0.0086 and 0.3833 ±
0.0074) in all nine seeds (paired difference +0.0269 and +0.0271; p < 0.001 for
both). The model contained 1.560 million parameters and required 12.2 GFLOPs
at an input resolution of 640 × 640. These findings support the use of smartphone
RGB images for individual-grain detection and classi fication within the evaluated
field setting, providing a basis for subsequent image-based maturity assessment.
KEYWORDS
buckwheat, deformable attention, dense small-object detection, individual-grain
detection, maturity detection, YOLO11n
1 Introduction
Buckwheat contains starch, minerals, dietary fiber, and a distinctive amino acid pro file
and is processed into foods such as pancakes and noodles ( Li-oiu et al., 2025 ). Grain color
provides a visible indicator of maturity, changing from green to brown during ripening
(Gubbels and Campbell, 1985 ).
Buckwheat has indeterminate flowering and asynchronous grain maturation ( Funatsuki
et al., 2000). Immature and mature grains can therefore coexist on the same plant, alongside
a substantial proportion of aborted grains. Reported flower or embryo abortion rates in
common buckwheat reach 50 –70% ( Płażek et al., 2023 ). Grain maturity is important for
Frontiers in Plant Science frontiersin.org01
OPEN ACCESS
EDITED BY
Jean-Pierre Chanet,
National Research Institute of Science
and Technology for Environment and
Agriculture (IRSTEA), France
REVIEWED BY
Shuo Kang,
Shandong Agricultural University, China
Huang Junjie,
Northeast Agricultural University, China
Dianyang Sun,
Nanjing Agricultural University, China
*CORRESPONDENCE
Jiawei Wang
wjwzzz@sxau.edu.cn
RECEIVED 17 October 2026
REVISED 03 November 2026
ACCEPTED 03 November 2026
PUBLISHED 25 November 2026
CITATION
Wang J, Jia X, Li L, Li D, Wang Z and
Yu H (2026) BM-Net for buckwheat
grain maturity and aborted-grain
detection in field RGB images.
Front. Plant Sci. 17:2032669.
doi: 10.3389/fpls.2026.2032669
COPYRIGHT
© 2026 Wang, Jia, Li, Li, Wang and Yu.
This is an open-access article distributed
under the terms of the Creative
Commons Attribution License (CC BY).
The use, distribution or reproduction in
other forums is permitted, provided the
original author(s) and the copyright
owner(s) are credited and that the
original publication in this journal is
cited, in accordance with accepted
academic practice. No use, distribution
or reproduction is permitted which does
not comply with these terms.
TYPE Original Research
PUBLISHED 25 November 2026
DOI 10.3389/fpls.2026.2032669

determining harvest timing and assessing yield and quality. Early
harvesting increases the proportion of immature grains and can
reduce grain weight and quality ( Gubbels and Campbell, 1985 ),
whereas delayed harvesting increases shattering losses ( Morishita
and Suzuki, 2017). Characterizing the distribution of grain maturity
can thus inform harvest decisions and the evaluation of cultivars
and cultivation practices.
Conventional maturity assessment relies primarily on visual
inspection, particularly the proportion of brown grains. A previous
study recommended windrowing when approximately 75% of
grains had turned brown ( Gubbels and Campbell, 1985 ). Such
assessments depend on grower experience and may vary between
observers or across sampling occasions. Weather and illumination
further affect visual judgments, while manual inspection is labor-
intensive and dif ficult to standardize at scale. These limitations
motivate rapid, nondestructive methods that provide quantitative
information about grain maturity.
Deep learning has become widely used for agricultural object
detection and classi fication ( Jiang and Li, 2020 ; Kamilaris and
Prenafeta-Boldú, 2018a ; Kamilaris and Prenafeta-Boldu ́, 2018b ; Sa
et al., 2016 ). Li et al. (2024) incorporated Ghost modules and a
bidirectional feature pyramid network into YOLOv5s for buck-
wheat seed damage detection, reporting 99.7% precision across four
appearance classes. That task concerned physical integrity rather
than developmental status. Related applications include soybean
seed defect detection using YOLOv9 with Ghost modules and wheat
seed counting using YOLOv8-HD ( Liu et al., 2025 ; Ma N et al.,
2024). Improved YOLO-based detectors have likewise been applied
to multi-stage apple fruit detection in orchards ( Ma B et al., 2024 )
and to wheat grain detection and counting (Qiu et al., 2024; Wang X
et al., 2025 ). These studies illustrate the potential of YOLO models
to balance detection performance and computational ef ficiency. For
buckwheat maturity classi fication, Wang H et al., 2025 combined
near-infrared spectroscopy with conditional WGAN-GP data aug-
mentation. Their random forest classi fier achieved 97% accuracy
using real and synthetic samples representing different harvest
stages and hulled or dehulled conditions. Wu et al. (2022) used
UAV RGB imagery and recursive feature elimination with cross-
validation to predict canopy maturity. Improved DeepLabV3+ and
MSU-Net models have also been applied to buckwheat seedling
segmentation and weed recognition in UAV multispectral imagery,
respectively ( Wu et al., 2024 , Wu J et al., 2025 ). These approaches
characterize buckwheat using spectral measurements or canopy
imagery. Individual-grain localization and classi fication in natural
field RGB images involve different inputs, sampling conditions, and
outputs. Small grain size, dense clustering, occlusion, and the visual
similarity between aborted and mature grains remain challenges in
this setting. A detector that addresses these difficulties while limiting
computational cost is therefore needed.
The trade-off between detection accuracy and deployment cost
has been examined repeatedly in agricultural vision. Lightweight
multi-scale designs reduce the parameter count while retaining
accuracy in complex field scenes ( Luo et al., 2026 ), and pruning
combined with distillation has been used to compress detectors for
the early detection of disease in seedlings ( Huang et al., 2025 ).
Dynamic attention and adaptive feature fusion have likewise been
introduced to recover accuracy that is otherwise lost when a model
is compressed ( Wu Y et al., 2025 ). These studies have a common
structure: accuracy, parameters and computational cost are re-
ported together, so that the price of each accuracy gain is visible.
The present work follows the same convention. BM-Net is a small
model by construction, with 1.56 M parameters and 12.2 GFLOPs,
and the accuracy difference it produces is reported together with the
associated parameter and computation cost, so that the trade-off
can be judged rather than assumed.
We developed BM-Net for buckwheat grain maturity detection
using YOLO11n as the underlying framework. The network retains
the single-stage detection paradigm while modifying the detection
head, neck feature processing, and backbone attention. The main
design elements and the evidence for them are as follows.

  1. DyHead is incorporated into the detection head to adapt
    feature processing to spatial content and detection tasks,
    with the aim of reducing missed detections in densely
    clustered grains.
  2. SDAB is evaluated at the neck fusion nodes as a parameter-
    efficient replacement of the C3k2 block. It was retained after
    a single-run screening comparison; the nine-seed compar-
    ison does not resolve an independent gain for this module.
  3. MSAS is evaluated at the backbone output, where it mixes
    spatial and channel information. Its independent gain is not
    resolved by the nine-seed comparison, and SDAB and
    MSAS are retained as architectural choices rather than as
    demonstrated sources of improvement.
    2 Materials and methods
    2.1 Buckwheat dataset
    2.1.1 Image acquisition
    Images were acquired in the Taigu trial field of Shanxi
    Agricultural University, Taigu District, Jinzhong, Shanxi Province,
    China (Figure 1). The buckwheat cultivar was ‘Hongshan’. A total of
    1035 JPEG images were collected on 14 days between 2 and 20 July
    2026, covering different stages of grain maturation. Images were
    captured with the rear main camera of a Redmi K30 Ultra
    smartphone (model M2006J10C) at a resolution of 4624 × 3472
    pixels. Close-range photographs were taken under natural illumi-
    nation from varying viewing angles. Grains were imaged in situ
    without detachment or dehulling, and the background was not
    cleared. The images therefore retained the inflorescences, surround-
    ing vegetation, and naturally occurring occlusion. Each image
    contained 1 –48 grains, with a mean of 9.7 grains. Plant, plot, and
    acquisition-sequence identi fiers were not recorded during image
    collection, so their independent counts cannot be relia-
    bly reconstructed.
    Wang et al. 10.3389/fpls.2026.2032669
    Frontiers in Plant Science frontiersin.org02

2.1.2 Annotation and dataset partitioning
All 1035 images were annotated in Label Studio using axis-
aligned bounding boxes and class labels for visible grains whose
class could be determined. Three classes were de fined: immature,
mature, and aborted grains. Immature and mature describe the
developmental status of normal grains; aborted grains form a
separate abnormal-development class rather than a stage in
normal maturation. Labels were assigned using color and morphol-
ogy. Immature grains were lighter, whereas aborted and mature
grains were darker. Aborted grains were distinguished by their
shriveled or wrinkled appearance, while mature grains were plump.
Severely occluded grains that could not be classi fied reliably were
left unannotated. Representative examples of the three classes, and
of grains excluded because their status could not be determined, are
provided in the Supplementary Material . Of the 12,253 candidate
grains identifi ed during annotation, 2,226 (18.2%) were excluded
because their developmental status could not be determined under
these criteria; the retained 10,027 grains form the dataset analysed
here. Excluded grains carry no label and are therefore treated as
background during both trainin g and evaluation: a detection
overlapping one of them is counted as a false positive, whereas
nothing is counted as a missed object, so precision is penalised by
these grains while recall is not, and the two metrics should not be
read as uniformly conservative. Annotation reliability was assessed
on a subset of 100 images, annotated independently by a second
annotator who had access only to the images and to the criteria
above. The subset was not drawn at random: it was selected from
the images with the fewest annotated grains across the three splits,
with class-balancing substitutions to keep all three classes repre-
sented, and averaged 2.9 boxes per image; this kept the annotation
workload tractable but limits the representativeness of the estimate.
The original annotation of these images contained 285 boxes and
the second annotation 261; 260 boxes matched at IoU ≥ 0.3, with 25
present only in the original annotation and 1 only in the second.
Cohen’s k was calculated on the 260 matched boxes only ( k = 0.96;
per-class k = 0.92, 0.99 and 0.96 for aborted, immature and mature;
mean matched-box IoU = 0.89). Differences in whether an object
was annotated at all are given by the unmatched counts above and
are not included in k.
The dataset contained 10,027 annotated grains: 2565 aborted,
3797 immature, and 3665 mature grains (Table 1). Class frequencies
were reasonably balanced, and every image contained at least one
annotated object. The dataset contains no duplicated image files:
each of the 1,035 photographs is a distinct acquisition. The same
plants were, however, photograp hed repeatedly from different
viewing angles and at different times, so several images can depict
the same target. Because the partition was made at the level of
individual images, images of the same plant may fall into different
subsets, and the partition therefore does not guarantee indepen-
dence at the plant, in florescence or acquisition-sequence level.
Because repeated target views can in flate a random split, all
1,035 images were screened with file-level content hashes and local
feature matching, and each candidate pair was then inspected at full
resolution. The screen identifi ed 13 candidate pairs of repeated
targets, 11 of which were con firmed; the sensitivity of the reported
comparison to excluding these images is quantifi ed in Section 4.
The identifiers of the 10 con firmed and 12 candidate test images are
provided alongside the fixed split lists in the project repository
(splits directory). The reduced-set metrics are provided in the
Supplementary Material.
FIGURE 1
Study area and representative RGB images: (A) China; (B) Shanxi Province; (C) Jinzhong City, with Taigu District in red and the experimental field
marked (112.5945° E, 37.4249° N); (D) aborted, immature and mature grains, from top to bottom; (E) grains that were excluded because their
developmental status could not be determined, mainly owing to occlusion or ambiguous colour.
TABLE 1 Composition of the buckwheat grain maturity dataset.
Class Grains Proportion (%)
Aborted 2565 25.6
Immature 3797 37.9
Mature 3665 36.5
Total 10,027 100.0
The 1035 images were stratified by acquisition date and randomly partitioned within each date
stratum into training, validation, and test sets containing 725, 103, and 207 images,
respectively (approximately 7:1:2). This image-level split does not ensure plant-level inde-
pendence; the sensitivity of the reported comparison to the exclusion of identi fied repeated
target views is quanti fied in Section 4. The fixed split lists and the excluded-image identi fiers
are provided in the project repository.
Wang et al. 10.3389/fpls.2026.2032669
Frontiers in Plant Science frontiersin.org03

Relative grain-size distributions overlapped substantially across
the three classes. A single threshold on relative size distinguished
immature from mature grains with only 53.5% accuracy. Relative
size alone was therefore insuf ficient for this classi fication task,
motivating the use of color and texture information ( Figure 2).
2.2 BM-net architecture
BM-Net was developed from YOLO11n to detect small, densely
clustered, and partially occluded buckwheat grains in field images.
Figure 3 presents the overall architecture.
At the network input resolution, grains occupy only a few tens
of pixels along their longer side (24 –29 px at the 640 × 640 input).
Downsampling to P3/8 therefore leaves the median grain only
about three to four feature-map cells, limiting the spatial detail
available for localization and motivating the higher-resolution P2/4
output. We recon figured the outputs by removing the P5 detection
branch and introducing P2 from backbone layer 2, yielding P2/4,
P3/8, and P4/16 outputs. SPPF and C2PSA were also relocated from
the P5 stage to the P4 stage. This recon figuration was shared by the
modified baseline and its subsequent variants to support controlled
comparisons. Table 2 compares four output con figurations. The
FIGURE 2
Relative grain size distribution of the annotated grains: (A) all grains split by maturity class; (B) within-class distribution, normalized to 100% per class.
FIGURE 3
Overall architecture of the proposed BM-Net.
Wang et al. 10.3389/fpls.2026.2032669
Frontiers in Plant Science frontiersin.org04

three-scale configuration with SPPF and C2PSA at P4 achieved the
highest mAP50 –95, 0.3962, and was adopted as the baseline. It
required 0.873 M parameters and 8.8 GFLOPs, compared with
2.659 M parameters and 10.2 GFLOPs for the four-
scale con figuration.
BM-Net introduces three changes to this baseline. First,
Detect_DyHead adds adaptive feature processing before classi fica-
tion and regression prediction, as detailed in Section 2.2.1. Second,
SDAB is incorporated at three neck fusion nodes to re fine grain
shape and texture features under overlap, as described in Section
2.2.2. Third, MSAS replaces the attention module following SPPF at
the end of the backbone to model local contextual interactions, as
described in Section 2.2.3. These are architectural choices; the
SDAB screening comparisons that motivated its placement are
single-run observations (Sections 3.2.2 and 3.3.2), and the addi-
tional contributions of both modules are tested over nine seeds in
Section 3.3.3.
2.2.1 DyHead detection head
The original YOLO11 head uses separate classi fication and
regression branches, both opera ting on shared input features
through convolutions with fixed sampling grids. In densely clus-
tered buckwheat images, fixed sampling positions may fall on the
background or neighboring grains, complicating localization. We
therefore use Detect_DyHead ( Dai et al., 2021 ) to apply spatially
adaptive sampling, cross-level aggregation, and channel-wise dy-
namic activation before prediction. Figure 4 illustrates the sampling
and aggregation stages; the subsequent dynamic activation is
defined in Equation 3.
Detect_DyHead receives three neck outputs, each projected by a
1 × 1 convolution to a common channel dimension Ch, set to 64.
Spatial, scale, and task attention then perform adaptive sampling,
cross-level aggregation, and dyn amic activation, respectively.
Spatial attention predicts an offset and a modulation coef ficient
for each kernel sampling position. Let X denote the input feature
map and pkfg the regular kernel sampling positions, with k =
1, …, K and K = 9. For sampling position k, a 3 × 3 convolution
applied to X predicts the offset Dpk and modulation coefficient Dmk.
Its 27 output channels comprise two offset components and one
modulation coefficient for each of the nine positions. The modula-
tion coefficients are mapped to (0, 1) by a sigmoid function, giving
the sampled output in Equation 1.
Y(p)= o
K
k=1
wk · Dmk(p) ·X (p + pk + Dpk(p)) (1)
where Y is the sampled output, wk is the kernel weight at
position k, and Dpk is the corresponding offset for position k.
Equation 1 replaces fixed sampling coordinates with input-depen-
dent coordinates, allowing sampling to adapt to irregular grain
boundaries. Modulation adjusts the contribution of each sampled
response. After deformable sampling and spatial alignment, scale
TABLE 2 Effect of the detection output scales and SPPF/C2PSA position on the baseline architecture.
Configuration Params (M) GFLOPs P R mAP50 mAP50 –95
P2-P5 2.659 10.2 0.6811 0.6190 0.6595 0.3928
P2-P4, SPPF/C2PSA at P5 1.933 9.6 0.6430 0.6134 0.6475 0.3904
P2-P4, SPPF/C2PSA removed 0.769 8.4 0.6050 0.6230 0.6369 0.3797
P2-P4, SPPF/C2PSA at P4 (ours) 0.873 8.8 0.6156 0.6392 0.6508 0.3962
Values are single-run results from the detection-output-scale screening at random seed 5; multi-seed means for the selected confi guration are given in Table 3. All variants share the same dataset
split and training hyperparameters; only the detection output scales and the position of SPPF/C2PSA differ.
FIGURE 4
Spatially adaptive sampling and cross-level, scale-aware aggregation in Detect_DyHead.
Wang et al. 10.3389/fpls.2026.2032669
Frontiers in Plant Science frontiersin.org05

attention assigns a scalar weight to each participating feature map
and aggregates the weighted responses as in Equation 2:
Fagg = 1L oLl=1wl Fl (2)
Here, Fagg denotes the aggregated feature map, and L is the
number of valid branches for the current output scale: three for the
middle scale and two for either boundary scale. Fl denotes the
sampled and aligned feature from level l. The higher-resolution
neighboring feature is downsampled using a stride-2 deformable
convolution ( Equations 4 and 5); the lower-resolution feature is
processed by deformable convo lution and then bilinearly
upsampled. The scalar weight wl for level l is generated by global
average pooling, a 1 × 1 convolution, ReLU, and a hard-sigmoid
activation. Task attention then applies channel-wise dynamic acti-
vation to the aggregated feature. Global average pooling compresses
Fagg into a channel descriptor, from which two fully connected
layers and a hard-sigmoid-based transformation generate two sets
of affine coefficients:
Z = max
i∈ 1,2fg
(ai ⊙ Fagg + bi) (3)
Here, Z denotes the output of task attention. ai, bi ∈ RCh are
two sets of channel-wise scale and shift coef ficients (i = 1, 2),
generated from the input descriptor through fully connected layers,
activation, and coefficient rescaling. Both sets depend on the input,
and ⊙ denotes channel-wise multiplication with spatial broadcast-
ing. The maximum is taken element-wise over the two af fine
responses, rather than over classi fication and regression branches.
Detect_DyHead thus combines content-adaptive sampling with
channel-wise dynamic activation before prediction. Its quantitative
evaluation is reported in Section 3.
2.2.2 SDAB
The three neck fusion nodes combine deep semantic features
with shallow spatial detail and are implemented using C3k2 in the
baseline. Its internal convolutions use regular sampling grids
without explicit channel-attention recalibration. In dense grain
clusters, these grids may span adjacent grain boundaries.
Distinguishing aborted from mature grains is particularly dif ficult
because similar coloration places greater importance on subtle
differences in shape. We introduce the spatial–frequency selective
deformable attention block (SDAB) at these fusion nodes to re fine
the fused representation. Figure 5A shows its structure and its
integration into C3k2.
SDAB-C3k2 retains a split–cascade–aggregate structure. A 1 × 1
convolution produces features that are split into two branches. One
is retained directly, while the other passes sequentially through n
SDAB units, with n = 1 in this study. The two initial branches and
the outputs of all SDAB units are concatenated along the channel
dimension and fused by a 1 × 1 convolution. Within each SDAB, a
hidden-channel ratio of 0.5 reduces the intermediate width.
SFSConv, DeformConvV4 ( Xiong et al., 2024), and
ChannelAttention are applied sequentially, and the resulting feature
is added to the unit input through an identity shortcut.
SFSConv combines spatial and frequency-selective responses
using globally derived channel weights. Two independent 1 × 1
convolutions project the same input X into separate branches,
followed by the spatial processing unit (SPU) and frequency
processing unit (FPU). These produce spatially re fined features Ys
and frequency-re fined features Yf . Their channel-wise concatena-
tion ~X is globally averaged and normalized by softmax to obtain
channel weights w. The spatial and frequency portions of these
weights are denoted by g and b, respectively. The weighted branch
outputs are added element-wise and fused by a final 1 × 1
convolution:
w = Softmax(GAP(~X)) (4)
XSFS = PWCo(g ⊙ Ys + b ⊙ Yf ) (5)
Here, XSFS denotes the SFSConv output, and PWCo is the
output pointwise convolution, including batch normalization and
FIGURE 5
The SDAB module and its position within the C3k2 unit: (A) the C3k2 unit with the SDAB module in place; (B) the internal structure of the SDAB module.
Wang et al. 10.3389/fpls.2026.2032669
Frontiers in Plant Science frontiersin.org06

SiLU activation. GAP denotes global average pooling. Ys and Yf are
the SPU and FPU outputs, respectively, and ~X ∈ R2C/C2H/C2W is
their channel-wise concatenation. The slicing operators ( · )1: C
and ( · )C+1 : 2C select the first C and last C channels, respectively.
Thus, Ys = ~X1: C and Yf = ~XC+1 : 2C recover the spatial and frequency
responses. w ∈ (0, 1)2C denotes the channel weights; its spatial
portion g = w1: C and frequency portion b = wC+1 : 2C correspond
to g and b in Figure 5B. Softmax is applied over all channels of the
concatenated descriptor. SPU splits its input into two channel
groups. The first passes through a 3 × 3 depthwise convolution
and is added to the second before a 5 × 5 depthwise convolution.
These responses are concatenated and fused. FPU divides its input
into four groups and applies a shared Gabor-modulated convolu-
tion. Its trainable modulation kernels are initialized from combi-
nations of four angle parameters and four scale parameters at a fixed
fractional order. The modulated kernels provide frequency-selective
responses that adapt during training. DeformConvV4 then projects
the SFSConv output to the required channel width using a 1 × 1
convolution and performs input-dependent deformable sampling.
Like Equation 1 , it uses adaptive sampling locations, although
DCNv4 and DCNv2 have different aggregation mechanisms.
Finally, ChannelAttention globally averages the output, generates
channel weights through a 1 × 1 convolution and sigmoid, and
multiplies these weights into the feature map.
The four angle parameters are 0, 45, 90 and 135 degrees, the
four scale parameters are 1, 2, 3 and 4, and the fractional order is
0.25. These values determine how the filter bank is constructed, but
the resulting kernels are registered as trainable parameters, and the
modulation tensor applied to them is initialised from a normal
distribution, so this branch does depend on the random seed.
Two deformable operators are used, in different modules. SDAB
uses the of ficial DCNv4 CUDA implementation (OpenGVLab,
Apache-2.0), compiled locally as a PyTorch extension.
Detect_DyHead instead uses the modulated deformable convolu-
tion supplied by MMCV (ModulatedDeformConv2d, the DCNv2
formulation), because the head follows the original
DyHead implementation.
The split–cascade–aggregate operation of SDAB-C3k2 is formal-
ized below. After the initial 1 × 1 convolution, one channel branch is
retained and the other passes through n SDAB units (n = 1).
Equations 6 , 7 define the residual update and its initial state;
Equation 8 defines the final channel aggregation.
H(j) = H(j−1)

  • ChannelAttention½DeformConvV4(SFSConv(H(j−1)))/C138 (6)
    H(0) = Xb (7)
    YSDAB−C3k2 = Conv1/C21(½Xa, H(0), H(1), …, H(n)/C138)( 8 )
    Here, Xa is the branch retained after the initial projection and
    channel split, while Xb enters the cascade and serves as H(0). H(j)
    denotes the output of SDAB unit j, and n is the number of units.
    Square brackets denote channel-wise concatenation, and YSDAB−C3k2
    is the output of the complete SDAB-C3k2 module.
    SDAB combines space –frequency selection, deformable sam-
    pling, and channel recalibration within the neck fusion nodes. This
    sequence is designed to re fine features under dense clustering and
    occlusion. Section 3.2.2 reports the single-run screening compari-
    son that motivated its placement, and Section 3.3.3 reports the nine-
    seed controls, which do not resolve an independent gain from
    this module.
    2.2.3 MSAS
    Before features enter the neck, the final backbone stage must
    integrate spatial context while retaining local grain morphology.
    The baseline uses C2PSA, whose attention operates across the
    feature map with a learnable positional component, followed by
    channel mixing. For small grains, local interactions may provide a
    useful constraint when surrounding in florescences and foliage
    dominate the scene. Explicit spatial guidance may also help channel
    mixing retain shape and texture cues that distinguish aborted from
    mature grains. We therefore introduce mixed spatial-attention and
    SEFN (MSAS) at the end of the backbone. Following the
    MetaFormer organization ( Yu et al., 2022 ), MSAS uses sequential
    token-mixing and channel-mixing stages to model spatial and
    channel relationships ( Figure 6 ).
    In the Mona adapter the per-channel scale is initialised to 1.0
    and the bias to 0.0, both trainable ( Yin et al., 2024 ).
    MSAS comprises two sequential residual stages. Each stage
    normalizes its input with LayerNorm2d, applies its mixer, adds
    the result to the stage input, and passes the sum through a Mona
    adapter (Yin et al., 2024 ). The first stage uses window-based multi-
    head self-attention (W-MSA) with 4 × 4 windows and eight heads.
    A cyclic shift of two feature-map positions changes the window
    partition before attention, followed by window merging and the
    reverse shift. The second stage uses SEFN with a hidden dimension
    twice the input channel width. SEFN receives both the normalized
    first-stage output and the original module input, which provides
    spatial guidance. Stochastic depth and the outer layer-scaling
    options are disabled. Local window attention constrains spatial
    interactions, while spatially guided channel mixing re fines the
    resulting representation.
    Equations 9–12 describe window attention and the two residual
    stages. Xw denotes the window sequence obtained after normaliza-
    tion, cyclic shifting, and window partitioning. B is the relative
    position bias, and Mw is the attention mask associated with the
    cyclic shift:
    Q = XwWQ, K = Xw WK, V = XwWV (9)
    Ar = Softmax QrKTr
    √ d
  • Br + Mw
    /C18/C19
    Vr (10)
    U1 = X +W − MSA(ln(X)), X1 = Mona(U1) (11)
    U2 = X1 + SEFN(ln(X1), X), X2 = Mona(U2) (12)
    Here, Q, K, and V denote the query, key, and value matrices,
    and WQ, WK , and WV are their linear projection matrices. d is the
    dimension of each attention head, and r indexes the heads. W-MSA
    Wang et al. 10.3389/fpls.2026.2032669
    Frontiers in Plant Science frontiersin.org07

(·) denotes the complete eight-head window-attention operation
with 4 × 4 windows. Equation 10 describes a single head within one
window. Head outputs are concatenated and linearly projected,
after which windows are merged and the cyclic shift is reversed. LN
denotes LayerNorm2d, and Mona denotes the adapter; the two
stages use separate normalization and adapter parameters. SEFN is
the channel mixer, whose second input provides spatial guidance
from the original module input. X denotes the module input; U1
and U2 are the two residual sums. X1 is the output of the first Mona
adapter, and X2 is the output of the second adapter and of the
complete module.
The nine-seed controls for MSAS are reported in Section 3.3.3
(Table 3 ); they do not resolve an independent gain from
this module.
Provenance of the components. Detect_DyHead, DCNv4, the
MetaFormer block and the Mona adapter are adopted from their
original publications ( Dai et al., 2021 ; Xiong et al., 2024 ; Yu et al.,
2022; Yin et al., 2024 ) and retain their standard operation sets. Our
modifications are limited to four points: (i) the output scales are
rearranged to P2/4, P3/8 and P4/16, and SPPF and C2PSA are
moved from the P5 stage to P4; (ii) Detect_DyHead is placed on
these three outputs with a hidden width of 64 channels, whereas the
original formulation uses a wider hidden dimension; (iii) SFSConv,
DeformConvV4 and channel attention are composed into a single
SDAB unit, and this unit is embedded inside the C3k2 split –
cascade–aggregate structure at the three neck fusion nodes; and
(iv) window self-attention is composed with a spatially guided
SEFN channel mixer and a Mona adapter in MSAS, with a two-
position cyclic shift. No new attention or convolution operator is
introduced; the novelty claimed is the composition and placement
of established operators, whi ch is evaluated empirically in
Section 3.3.
TABLE 3 Effect of all combinations of the three modules on the buckwheat grain maturity test set (207 images, 1879 instances).
Model DyHead SDAB MSAS Params (M) GFLOPs P R mAP50 mAP50 –95
Baseline 0.873 8.8 0.6220 0.6167 0.6387 ± 0.0086 bcde 0.3833 ± 0.0074 b
A √ 1.017 11.2 0.6448 0.6227 0.6592 ± 0.0054 a 0.4040 ± 0.0055 a
B √ 0.860 8.6 0.6199 0.6161 0.6375 ± 0.0091 b 0.3856 ± 0.0048 b
C √ 1.430 9.8 0.6168 0.6146 0.6381 ± 0.0065 be 0.3812 ± 0.0056 b
A+B √√ 1.003 11.1 0.6416 0.6338 0.6573 ± 0.0109 acd 0.4066 ± 0.0106 a
A+C √√ 1.573 12.3 0.6368 0.6354 0.6582 ± 0.0107 ace 0.4040 ± 0.0077 a
B+C √√ 1.417 9.7 0.6273 0.6115 0.6379 ± 0.0071 bd 0.3853 ± 0.0054 b
BM-Net (ours) √√ √ 1.560 12.2 0.6509 0.6364 0.6656 ± 0.0130 a 0.4104 ± 0.0111 a
Values are mean ± SD over nine independent random seeds. Values sharing a letter are not signi ficantly different (paired t-test across seeds, Holm correction over the 28 pairwise comparisons); a
value carrying multiple letters is not signi ficantly different from any of the groups those letters denote. BM-Net is numerically highest but shares the letter a with the other DyHead-containing
variants; with DyHead present, no additional module combination differs signi ficantly from DyHead alone. These nine-seed means are distinct from the single-run values in Table 2, 6, 7 and 8
and Figure 7 and are not directly comparable with them. Bold values indicate the best result in each column.
FIGURE 6
Structure of the MSAS module: (A) the Mona adapter; (B) the overall MSAS layout, in which W-MSA acts as the token mixer; (C) the SEFN channel
mixer. DWC denotes a depthwise convolution, used consistently in (A, C) .
Wang et al. 10.3389/fpls.2026.2032669
Frontiers in Plant Science frontiersin.org08

3 Experiments and results
3.1 Experimental setup and evaluation
metrics
3.1.1 Experimental setup
Table 4 lists the hardware and software environment, and
Table 5 summarizes the training hyperparameters. All models
used the same dataset partition. BM-Net and the ablation variants
were trained using the hyperparameters and random seed speci fied
in Table 5. All models were trained from random initialisation: no
pre-trained weights were loaded, and no layer was frozen at
any stage.
3.1.2 Evaluation metrics
Detection performance was evaluated using precision (P), recall
(R), the F1 score, and mean average precision (mAP). Model
complexity was characterized by parameter count and floating-
point operations, reported in GFLOPs. The detection metrics are
defined in Equations 13–18 as follows
P = TPTP + FP (13)
R = TPTP + FN (14)
F1= 2PRP + R (15)
AP =
Z 1
0
P(R) dR (16)
mAP50 = 1N oNi=1APi (17)
mAP50 /C0 95 = 110 ot∈ 0:50,0:55,⋯,0:95fg mAPt (18)
TP, FP, and FN denote true positives, false positives, and false
negatives, respectively. N is the number of classes, and i indexes the
classes. Average precision (AP) is the area under the precision –
recall curve for one class at a speci fied intersection-over-union
(IoU) threshold. mAP50 averages class-wise AP at an IoU threshold
of 0.50. mAP50 –95 additionally averages over ten IoU thresholds
from 0.50 to 0.95 in increments of 0.05. Because accurate bounding-
box localization is important for densely clustered small objects,
mAP50–95 was the primary metric, with mAP50 used as a com-
plementary measure. P, R and F1 in the main tables are reported at
the F1-maximising con fidence threshold of the evaluated split,
which is the default of the validation routine used here; they are
therefore optimistic relative to any fixed operating point and are not
used to compare models. When the threshold is instead fixed on the
validation split and then applied unchanged to the test split, the two
models reach F1 = 0.613 ± 0.009 and 0.633 ± 0.012, respectively, so
the ranking is unchanged. All comparisons rest on mAP50 and
mAP50–95, which integrate over the precision –recall curve and do
not depend on the con fidence threshold.
Model complexity was calculated at the input resolution used by
each model. Parameter count reflects storage requirements, whereas
GFLOPs reflect the number of multiply –accumulate operations; the
two need not vary together. The reported GFLOPs follow the
convention of each framework and do not capture the memory-
access cost of the custom deformable and attention operators, and
should therefore be read as an indicator of architectural scale rather
than of inference cost. In addition, the pro filer used for the YOLO-
family models accumulates standard convolution and linear layers
but has no handler for the deformable sampling operations, so the
reported GFLOPs do not include the arithmetic of the DCNv4
TABLE 4 Experimental environment con figuration.
Item Con figuration
Operating system Ubuntu 22.04.3 LTS
CPU AMD EPYC 7K62 (48 cores × 2)
Memory 90 GB
GPU NVIDIA GeForce RTX 4090 D (24 GB)
CUDA 12.1
cuDNN 8.9.2
Python 3.10.16
PyTorch 2.2.2
Ultralytics 8.4.11
TABLE 5 Training hyperparameter settings.
Parameter Value
Input size 640 × 640
Training epochs 300(maximum; early stopping may terminate earlier)
Batch size 16
Early stopping patience 50
Optimizer SGD
Initial learning rate 0.01
Final learning rate factor 0.01
Momentum 0.937
Weight decay 0.0005
Cosine learning rate Disabled
Mixed precision (AMP) Enabled
Dataloader workers 4
Close-mosaic epoch 0
Random seed 5
Mosaic augmentation was enabled throughout training (close-mosaic epoch = 0). The random
seed in Table 5 (5) is the seed used for all single-run screening results in Table 2, 6 and 7, for
the part (a) models in Table 8, and for the part (a) models in Figure 7; the multi-seed results
use seeds 5, 10, 13, 15, 20, 22, 25, 33 and 34. The part (b) runs follow the of ficial released
configurations; their training seed is not available from the retained records and is therefore
not reported.
Wang et al. 10.3389/fpls.2026.2032669
Frontiers in Plant Science frontiersin.org09

branch and represent a lower bound on the cost of the
added modules.
3.1.3 Model selection protocol
All design decisions were made using training and validation
data only. The validation set was used to (i) select the detection-
head variant and the DyHead hidden-channel width, ranked by
validation mAP50 –95, and (ii) determine the training checkpoint,
defined as the epoch with the highest validation fitness (in the
version used here, the sum of validation mAP50 and mAP50 –95),
and to trigger early stopping (p atience 50). The test set was
evaluated once, after all components had been frozen. Ranked by
validation mAP50–95, the candidates reached 0.4163 (LQE), 0.4029
(LSPCD), 0.4240 (DyHead with 64 hidden channels), 0.4114 (96
channels) and 0.4179 (128 channels), so DyHead with 64 hidden
channels was selected. The precision, recall and F1 values in
Tables 6 –12 are reported at the F1-maximising con fidence thresh-
old of the evaluated split. This makes them optimistic relative to a
fixed operating point, and they are therefore not used to compare
models; all model comparisons rest on mAP, which is independent
of the operating threshold.
All principal comparisons were repeated over nine independent
random seeds (seeds 5, 10, 13, 15, 20, 22, 25, 33 and 34) with the
data split, training parameters, and evaluation settings held un-
changed. Results are reported as mean ± standard deviation, and
letters in Table 3 denote statistical-signi ficance groups: values
sharing a letter are not signi ficantly different, whereas values
sharing no letter are signi ficantly different (paired t-test across
seeds with Holm correction). Letter-based grouping is applied only
to configurations evaluated with nine seeds; Tables 2, 6, 9–11 report
single-run results from the screening stages and carry no letters.
3.2 Comparative experiments
3.2.1 Comparison of detection heads
We compared the original YOLO11 decoupled head (Detect)
with LQE, LSPCD, and DyHead to evaluate the effect of detection-
head design. All four variants shared the baseline architecture,
dataset partition, and training hyperparameters. Table 6 summa-
rizes their results.
In a single run at random seed 5, relative to Detect, LQE and
LSPCD reduced mAP50 –95 by 0.0088 and 0.0084 and mAP50 by
0.0127 and 0.0136, respectively. DyHead was the only alternative to
improve both metrics, increasing mAP50 –95 by 0.0140 to 0.4102
and mAP50 by 0.0176 to 0.6684. LSPCD reduced parameter count
by 0.234 M and computation by 3.3 GFLOPs, but detection
performance declined. LQE had a parameter count similar to
Detect and also performed less well. These comparisons show
that parameter count alone did not track performance across the
tested heads. They support the use of DyHead but do not isolate the
contribution of each attention mechanism. The DyHead entry in
Table 6 uses h = 128 and has higher computational cost than the
other entries. This is not the final setting used in BM-Net; the effect
of h is examined in the ablation experiments below.
TABLE 6 Comparison of different detection heads on the buckwheat grain maturity test set (207 images, 1879 instances).
Head Params (M) GFLOPs mAP50 mAP50 –95
Detect (original) 0.873 8.8 0.6508 0.3962
LQE 0.877 8.8 0.6381 0.3874
LSPCD 0.639 5.5 0.6372 0.3878
DyHead (ours) 1.584 16.7 0.6684 0.4102
Values are single-run results from the detection-head comparison at random seed 5; multi-seed means for the selected con figuration are given in Table 3. Bold values indicate the best result in
each column.
TABLE 7 Comparison of different building blocks replacing the inner block of the C3k2 module at the neck fusion nodes, evaluated on the buckwheat
grain maturity test set (207 images, 1879 instances).
Block Params (M) GFLOPs P R mAP50 mAP50 –95
C3k2 (original) 1.017 11.2 0.6400 0.6482 0.6691 0.4137
DBlock 1.013 11.2 0.6421 0.6296 0.6626 0.4079
DiverseBranchBlock 1.092 11.7 0.6483 0.6352 0.6629 0.4076
EBlock 1.014 11.1 0.6466 0.6485 0.6653 0.4073
Faster_Block 0.989 11.1 0.6048 0.6560 0.6600 0.4073
iRMB 0.987 11.1 0.6466 0.6204 0.6508 0.4054
RepConvBlock 1.036 11.3 0.6621 0.6083 0.6561 0.4035
Star_Block 1.030 11.3 0.6287 0.6284 0.6482 0.3996
SDAB (ours) 1.003 11.1 0.6668 0.6245 0.6729 0.4193
All variants share the same baseline framework, dataset split, training hyperparameters and random seed; only the block inside the neck C3k2 module i s replaced. P, R and F1 are reported at the
F1-maximising confidence threshold of the evaluated split; this makes them optimistic relative to a fixed operating point and they are not used to compare models. Values are single-run results at
random seed 5. Bold values indicate the best result in each column.
Wang et al. 10.3389/fpls.2026.2032669
Frontiers in Plant Science frontiersin.org10

3.2.2 Comparison of neck modules
Neck fusion nodes combine deep semantic information with
shallow spatial detail, making them important for separating nearby
grain features. To evaluate SDAB, we replaced the internal block of
C3k2 at these nodes with eight candidate structures. The candidates
were DBlock, DiverseBranchBlock, EBlock, Faster_Block, iRMB,
RepConvBlock, Star_Block, and SDAB. The baseline architecture,
DyHead configuration, dataset partition, training hyperparameters,
and random seed were held constant (Table 7). All values are from a
single run at random seed 5.
All seven alternatives other than SDAB scored below the
original C3k2 on both metrics (mAP50 = 0.6691; mAP50 –
95 = 0.4137). Among these alternatives, EBlock achieved the highest
mAP50, 0.6653, whereas DBlock achieved the highest mAP50 –95,
0.4079. DiverseBranchBlock and RepConvBlock increased
parameter count but reduced detection performance. Greater
model size therefore did not necessarily improve detection in
this setting.
In this single-run comparison (random seed 5), SDAB was the
only replacement to exceed the original C3k2 on both metrics,
achieving mAP50 = 0.6729 and mAP50 –95 = 0.4193. These values
represent differences of 0.0038 and 0.0056 from C3k2 and 0.0076
and 0.0120 from EBlock, respectively. SDAB required 1.003 M
parameters and 11.1 GFLOPs, compared with 1.017 M and 11.2
GFLOPs for C3k2. This screening result motivated retaining SDAB
for the multi-seed evaluation; it is not evidence of a statistically
established gain. In the nine-seed controls ( Table 3), adding SDAB
directly to the baseline changed mAP50 –95 by +0.0024 ± 0.0068 (p
= 0.33), and adding it with DyHead present changed it by +0.0026 ±
0.0103 (p = 0.47); neither difference is signi ficant.
3.2.3 Comparison with established detectors
BM-Net was compared with 14 established detectors using the
same dataset partition and metric de finitions (Table 8). Single-stage
comparators comprised SSD300, RetinaNet-R50, FCOS-R50, and
ATSS-R50; two-stage comparators comprised Faster R-CNN-R50,
Cascade R-CNN-R50, and DetectoRS-R50. We also evaluated
Y O L O v 5 n u ,Y O L O v 8 n ,Y O L O v10n, YOLO11n, YOLO12n,
YOLO26n, and the Transformer-based RT-DETR-l.
At the single run used for the screening comparisons (random
seed 5), BM-Net achieved mAP50 = 0.691 and mAP50 –95 = 0.434.
These are single-run values, not the nine-seed means reported in
TABLE 8 Comparison with mainstream object detection models on the buckwheat grain maturity test set (207 images, 1879 instances).
Category Model Input size Params (M) GFLOPs P R mAP50 mAP50 –95
(a) Retrained in this study: identical split, input size and training schedule
YOLO series
YOLOv5nu 640 × 640 2.503 7.1 0.625 0.608 0.623 0.355
YOLOv8n 640 × 640 3.006 8.1 0.663 0.601 0.640 0.375
YOLOv10n 640 × 640 2.266 6.5 0.601 0.572 0.603 0.357
YOLO11n 640 × 640 2.583 6.3 0.640 0.606 0.643 0.377
YOLO12n 640 × 640 2.557 6.3 0.621 0.613 0.634 0.370
YOLO26n 640 × 640 2.375 5.2 0.650 0.599 0.636 0.364
Transformer RT-DETR-l 640 × 640 31.990 103.4 0.678 0.608 0.613 0.383
Proposed BM-Net (ours) 640 × 640 1.560 12.2 0.655 0.648 0.691 0.434
(b) Of ficial configurations: input size and schedule differ; context only
One-stage
SSD300 (VGG-16) 300 × 300 24.013* 30.527* 0.302 0.283 0.248 0.081
RetinaNet-R50 640 × 512 36.371* 65.536* 0.243 0.415 0.224 0.109
FCOS-R50 640 × 512 32.118* † 62.895* 0.623 0.600 0.625 0.340
ATSS-R50 640 × 512 32.118* † 64.412* 0.613 0.577 0.603 0.313
Two-stage
Faster R-CNN-R50 640 × 512 41.358* 75.509* 0.651 0.597 0.654 0.354
Cascade R-CNN-R50 640 × 512 69.158* 103.0* 0.623 0.645 0.661 0.372
DetectoRS-R50 640 × 512 123.654* —† 0.664 0.600 0.665 0.377
All values are single-run results. Part (a) uses random seed 5; part (b) uses of ficial configurations, and its training seed is not available from the retained records and is therefore not reported.
Within part (a), BM-Net has the highest mAP50 and mAP50 –95. *Input sizes, training schedules and complexity analyzers differ by framework (see text); Params and GFLOPs are indicative
only. All models share the same training split, test set and metric de finitions. † FCOS-R50 and ATSS-R50 have the same reported parameter count. The GFLOPs value for DetectoRS-R50 could
not be verified and is shown as a dash. Model references: SSD300 ( Liu et al., 2016); RetinaNet-R50 (Lin et al., 2017); FCOS-R50 (Tian et al., 2019); ATSS-R50 (Zhang et al., 2020); Faster R-CNN-
R50 (Ren et al., 2015 ); Cascade R-CNN-R50 ( Cai and Vasconcelos, 2018 ); DetectoRS-R50 ( Qiao et al., 2021 ); YOLOv5nu ( Ultralytics, n.d); YOLOv8n ( Jocher et al., 2023 ); YOLOv10n ( Wang
et al., 2024 ); YOLO11n ( Jocher and Qiu, 2024 ); YOLO12n ( Tian et al., 2025 ); YOLO26n ( Jocher et al., 2026 ); RT-DETR-l ( Zhao et al., 2024 ).
Bold values indicate the best result in each column.
TABLE 9 Effect of the number of hidden channels (h) of Detect_DyHead
on the buckwheat grain maturity test set (207 images, 1879 instances).
h Params (M) GFLOPs mAP50 mAP50 –95
64 1.017 11.2 0.6691 0.4137
96 1.265 13.8 0.6643 0.4111
128 1.584 16.7 0.6684 0.4102
Only h is varied; all other settings are identical to those in the head comparison above. Values
are single-run results at random seed 5.
Bold values indicate the best result in each column.
Wang et al. 10.3389/fpls.2026.2032669
Frontiers in Plant Science frontiersin.org11

Table 3 (0.6656 ± 0.0130 and 0.4104 ± 0.0111); Table 12 gives the
corresponding class-wise means. The seed-5 run is the highest of
the nine runs for both metrics, and the means are therefore lower.
Within part (a) of Table 8 , which contains the models retrained
under the same protocol, BM-Net had the highest mAP50 and
mAP50–95. Comparisons with part (b) are contextual only, because
those detectors were evaluated with their of ficial configurations; no
ranking across the two parts is claimed. Compared with standard
YOLO11n (0.643 and 0.377), the seed-5 differences were 0.048 and
0.057, respectively. Among the other detectors, DetectoRS-R50 had
the highest mAP50 (0.665), whereas RT-DETR-l had the highest
mAP50–95 (0.383). Figure 7 compares mAP50 and mAP50 –95 for
six representative models: SSD300, Faster R-CNN-R50, YOLOv8n,
YOLO11n, RT-DETR-l, and BM-Net. It uses the same single-run
values as Table 8 ; SSD300 and Faster R-CNN-R50 are part (b)
detectors shown with their of ficial con figurations, for which the
training seed is not available from the retained records and is
therefore not reported.
The detectors were implemented in different frameworks and did
not share identical input resolutions, training schedules, or complex-
ity-analysis tools. SSD300 used 300 × 300 inputs; the other conven-
tional detectors used 640 × 512 inputs. The YOLO models, RT-
DETR-l, and BM-Net used 640 × 640 inputs. Complexity was
measured with MMEngine for the conventional detectors and
Ultralytics for the YOLO models, RT-DETR-l, and BM-Net.
Conventional detectors used a default 1× training schedule, whereas
the YOLO models and BM-Net used a 300-epoch training schedule.
Parameter counts and GFLOPs therefore provide approximate com-
parisons of model size and computation. P and R were evaluated at
the F1-maximising con fidence threshold of each model on the
evaluated split, and consequent ly describe different operating
points. Cross-model comparisons therefore emphasize mAP50 and
mAP50–95, which summarize performance over the precision–recall
curve rather than at one confidence threshold. The low performance
of SSD300 and RetinaNet-R50 may partly re flect dif ficulties in
resolving small grains, although input resolution alone cannot explain
the differences. All values inTable 8 are single-run results; the part (a)
models use random seed 5, whereas the part (b) detectors use their
official con figurations, for which the training seed is not available
from the retained records and is therefore not reported.
Class-wise results are given in Table 12, which reports nine-seed
means; Table 8 reports a single run. The aborted class is the most
difficult for both models (AP50 –95 of 0.2026 for the baseline and
0.2311 for BM-Net, against 0.48 –0.51 for the other two classes) and
receives the largest absolute improvement (+0.0443 AP50), followed
by immature (+0.0184) and mature (+0.0182); the paired difference
is positive in all nine seeds for AP50 –95 of every class.
Decomposing the errors at each model ’s maximum-F1 operat-
ing point shows that missed objects dominate: excluding correct
detections, they account for 58.2% of all errors for the baseline and
TABLE 10 Effect of the position of the SDAB module in the network on the buckwheat grain maturity test set (207 images, 1879 instances).
Position Params (M) GFLOPs P R mAP50 mAP50 –95
None 1.017 11.2 0.6400 0.6482 0.6691 0.4137
Backbone 0.994 11.1 0.6385 0.6233 0.6522 0.3957
Neck 1.003 11.1 0.6668 0.6245 0.6729 0.4193
Both 0.981 11.0 0.6411 0.6481 0.6614 0.4107
“None” denotes the baseline with DyHead but without SDAB. Values are single-run results at random seed 5.
Bold values indicate the best result in each column.
TABLE 11 Effect of the dilation rate (d) of the deformable convolution in the main path of SDAB on the buckwheat grain maturity test set (207 images,
1879 instances).
d Params (M) GFLOPs P R mAP50 mAP50 –95
1 (3×3) 1.003 11.1 0.6668 0.6245 0.6729 0.4193
2 (5×5) 1.003 11.1 0.6527 0.6143 0.6610 0.4031
3 (7×7) 1.003 11.1 0.6555 0.6349 0.6663 0.4117
Parenthesized sizes indicate the regular sampling-grid span before learned offsets; the kernel size remains 3 × 3. Values are single-run results at r andom seed 5.
Bold values indicate the best result in each column.
TABLE 12 Class-wise AP50 and AP50 –95 for the baseline and BM-Net (mean ± SD over nine random seeds). These are nine-seed means and are not
directly comparable with the single-run values in Table 8 .
Class Baseline AP50 BM-Net AP50 D Baseline AP50 –95 BM-Net AP50 –95 D
Aborted 0.3869 ± 0.0138 0.4313 ± 0.0191 +0.0443 0.2026 ± 0.0105 0.2311 ± 0.0154 +0.0284
Immature 0.7993 ± 0.0102 0.8177 ± 0.0097 +0.0184 0.4828 ± 0.0104 0.5102 ± 0.0122 +0.0274
Mature 0.7297 ± 0.0091 0.7479 ± 0.0147 +0.0182 0.4643 ± 0.0040 0.4897 ± 0.0116 +0.0254
D = BM-Net − baseline. Values are mean ± SD over the same nine seeds used in Table 3 and are taken from the same YOLO validator output, so the mean of the three class AP values reproduces
the overall mAP of Table 3 (0.6387 and 0.3833 for the baseline, 0.6656 and 0.4104 for BM-Net). The paired difference is positive in all nine seeds for AP50 of the aborted and immat ure classes and
for AP50 –95 of all three classes. The seed-5 single-run values in Table 8 are not these means.
Wang et al. 10.3389/fpls.2026.2032669
Frontiers in Plant Science frontiersin.org12

54.0% for BM-Net, whereas classi fication errors (13.2% versus
14.1%), localization errors (5.6% versus 5.7%) and duplicate detec-
tions (6.4% versus 5.5%) are similar, and background false positives
rise from 16.6% to 20.6%. The gain is therefore mainly a reduction
in missed grains rather than better discrimination between classes.
Stratified by ground-truth box width and by grains per image, the
improvement is largest for the smallest grains (+0.0254 AP50) and
for images containing 6 –10 grains (+0.0392), and smallest in the
densest subset (+0.0030). These trends are visible in Figure 8. In the
heavily clustered scene (C) the baseline leaves much of the cluster
undetected, and in the dense scene (B) several of its boxes fall on
flowers rather than on grains, whereas in (A) it misses most of the
lower in florescence. In (D), where several in florescences are adja-
c e n t ,b o t hm o d e l sd e t e c tas i m i l a rn u m b e ro fg r a i n sa n dt h e
difference lies mainly in how tightly the boxes fit.
3.3 Ablation experiments
Ablation experiments examined the DyHead hidden-channel
width, the placement and dilation rate of SDAB, and all combina-
tions of the three modules. All experiments used the same training,
validation, and test partitions. Settings other than the factor under
investigation were held constant within each comparison. The
DyHead-width and SDAB placement/dilation sweeps are single-
run selection experiments; the nine-seed module comparison is
reported in Section 3.3.3.
3.3.1 Effect of DyHead hidden-channel width
Table 9 compares three hidden-channel widths, h. The ranges of
both mAP50 and mAP50 –95 were below 0.005, whereas parameter
count and GFLOPs increased monotonically with h. Increasing h
from 64 to 128 added 0.567 M parameters and 5.5 GFLOPs. We
adopted h = 64, which gave the highest validation mAP50 –95 at the
lowest computational cost among the tested settings; the test values
are reported here for reference. This configuration required 1.017 M
parameters and 11.2 GFLOPs and achieved mAP50 = 0.6691 and
mAP50–95 = 0.4137. These are single-run values at random seed 5
and are treated as a selection screen, not as established differences.
3.3.2 Effect of SDAB placement and dilation rate
In this single-run placement screen (random seed 5), with
DyHead fixed, SDAB was placed at backbone layers 2, 4, and 6;
neck fusion layers 11, 17, and 20; or both sets of locations
(Table 10 ). Only neck placement gave higher values than the
configuration without SDAB, increasing mAP50/mAP50 –95 from
0.6691/0.4137 to 0.6729/0.4193. Backbone-only placement reduced
the metrics by 0.0169/0.0180, while placement in both regions
reduced them by 0.0077/0.0030. Both metrics ranked the settings
in the same order: neck only, both regions, and backbone only.
Neck-only placement exceeded backbone-only placement by 0.0207
in mAP50 and 0.0236 in mAP50 –95.
FIGURE 7
Comparison of six representative detectors on the buckwheat grain maturity test set in terms of precision, recall, mAP50 and mAP50 –95. Values are
single-run results. The models retrained in this study use random seed 5; the part (b) detectors (SSD300 and Faster R-CNN-R50) use their of ficial
configurations, and their training seed is not available from the retained records and is therefore not reported. These are not nine-seed means
(Table 3 and 12). P and R are shown at each model ’s F1-maximising threshold and are descriptive only.
Wang et al. 10.3389/fpls.2026.2032669
Frontiers in Plant Science frontiersin.org13

These single-run values motivated placing SDAB at neck fusion
nodes within the tested baseline. These nodes combine deep
semantic features with shallow spatial detail, matching the intended
role of the SDAB processing sequence. This is a selection observa-
tion speci fic to the evaluated module and architecture, not an
established improvement; it does not establish a general advantage
of neck placement for other modules, and the nine-seed controls in
Table 3 do not resolve an independent gain from SDAB.
The dilation rate d controls the regular sampling-grid spacing in
DeformConvV4 along the SDAB main path. Table 11 compares d =
1, 2, and 3, all with 1.003 M parameters and 11.1 reported GFLOPs.
In this single-run sweep (random seed 5), d = 1 gave the highest
mAP50/mAP50–95 (0.6729/0.4193), above d = 2 (0.6610/0.4031)
and d = 3 (0.6663/0.4117). The differences were not tested across
seeds; d = 1 was adopted on the basis of validation mAP50 –95 as a
selection choice, not as a demonstrated improvement.
3.3.3 Module combination ablation
Table 3 reports the effect of all eight combinations of the three
modules over nine seeds; these are the multi-seed results, distinct
from the single-run screening values in Table 2 , 6, 7 and 8
and Figure 7.
Read as targeted controls, the same nine-seed results address the
question of individual module contributions. MSAS added directly
to the baseline changes mAP50 –95 by -0.0020 ± 0.0091 (p = 0.52),
SDAB added directly to the baseline by +0.0024 ± 0.0068 (p = 0.33),
and removing SDAB from the final model by -0.0063 ± 0.0146 (p =
0.23); none of these differences reaches signifi cance.
Added alone, DyHead increased mAP50 and mAP50 –95 from
0.6387 ± 0.0086 and 0.3833 ± 0.0074 to 0.6592 ± 0.0054 and 0.4040
± 0.0055, whereas SDAB (0.6375 ± 0.0091 and 0.3856 ± 0.0048) and
MSAS (0.6381 ± 0.0065 and 0.3812 ± 0.0056) left both metrics
essentially unchanged. Every co mbination containing DyHead
exceeded the baseline on average: DyHead + SDAB reached
0.6573 ± 0.0109 and 0.4066 ± 0.0106, DyHead + MSAS reached
0.6582 ± 0.0107 and 0.4040 ± 0.0077, and the full combination
(BM-Net) reached 0.6656 ± 0.0130 and 0.4104 ± 0.0111. SDAB +
MSAS without DyHead gave 0.6379 ± 0.0071 and 0.3853 ± 0.0054.
Relative to DyHead alone, adding SDAB changed mAP50 –95 by
+0.0026 ± 0.0103 (p = 0.47), adding MSAS by 0.0000 ± 0.0088 (p =
0.99), and adding both by +0.0064 ± 0.0100 (p = 0.093) over nine
FIGURE 8
Detection results on four test scenes: (A) typical, (B) dense, (C) heavily clustered, (D) multiple in florescences. Each row shows the ground truth (left),
the baseline (middle) and BM-Net (right). Boxes are drawn at conf ≥ 0.25; red, cyan and yellow denote aborted, immature and mature grains.
Wang et al. 10.3389/fpls.2026.2032669
Frontiers in Plant Science frontiersin.org14

seeds; none of these differences reached signi ficance. Relative to the
baseline, BM-Net improved mAP50 by 0.0269 and mAP50 –95 by
0.0271, positive in all nine seeds (paired t-test, p < 0.001 for both).
Parameter count increased from 0.873 M to 1.560 M (+79%), and
computation increased from 8.8 to 12.2 GFLOPs (+39%), indicating
a trade-off between detection performance and computational cost.
Differences of a few thousandths are therefore within seed-to-seed
variability rather than established effects. Although BM-Net had the
numerically highest mean, Table 3 shows that it did not differ
significantly from the other DyHead-containing variants.
3.4 Sensitivity analysis of repeated target
views
This is a single-checkpoint analysis: it used one checkpoint per
model, namely the seed-5 baseline and BM-Net checkpoints whose
per-seed results are given in the Supplementary Material , and it is
not a nine-seed summary. After excluding 10 test images with clear
visual correspondence to targets in the training or validation set,
197 images remained. On this reduced set the seed-5 BM-Net
checkpoint achieved mAP50 and mAP50 –95 of 0.6904 and
0.4318, compared with 0.6490 and 0.3953 for the baseline.
Excluding all 12 candidate images, including uncertain cases, left
195 images and retained the same ranking. The full before/after
values are provided in the Supplementary Material .T h e s er e -
validations of frozen checkpoints show that the ranking is stable
under the identified exclusions. They do not establish plant- or plot-
level independence, and they do not show generalization to previ-
ously unseen plants or plots.
3.5 Qualitative analysis
3.5.1 Comparison of detection results
Figure 8 compares the two models on four test scenes that differ
in grain density and in background complexity. Each row shows the
ground truth, the baseline and BM-Net for the same crop. In the
typical scene (A) the baseline misses most of the lower in flores-
cence, which BM-Net recovers. In the dense scene (B) several
baseline boxes fall on flowers rather than on grains. In the heavily
clustered scene (C) the difference is largest, with the baseline leaving
much of the cluster undetected. In (D), where several in florescences
are adjacent, both models detect a similar number of grains but BM-
Net localizes them more tightly.
Read together, the four rows show that BM-Net improves the
detection in all of them, recovering grains that the baseline misses
and placing fewer boxes on flowers and leaves. They also show the
residual failure mode: in (C) and (D) both models still miss grains
that are partly hidden within the flower cluster, and the class of a
few heavily shadowed grains remains ambiguous in both. These
observations are qualitative; the strati fication of the gain by grain
size and by grains per image is reported in Section 3.2.
3.5.2 Visualization of feature responses
We visualized high-level feature responses to examine their
spatial correspondence with visible grains. The baseline and BM-
Net were compared with FCOS-R50, Faster R-CNN-R50, and RT-
DETR-l using EigenCAM. This method projects activations from a
selected layer onto a principal-component direction and does not
require gradients or a target class. Activations were taken from layer
20 (the P4/16 neck fusion output) for the baseline and BM-Net, and
from the final backbone stage (C5) for FCOS-R50, Faster R-CNN-
R50, and RT-DETR-l. Figure 9 shows three test scenes containing 4,
9, and 8 grains from top to bottom, with progressively darker
backgrounds. Maps were normalized separately for each image;
comparisons therefore concern the spatial distribution of responses
rather than their absolute magnitude.
In the examples shown, high responses from the baseline
extended into leaves, flower clusters, and other background regions,
whereas BM-Net responses were more concentrated around grains.
The comparator models showed more dispersed responses. FCOS-
R50 and Faster R-CNN-R50 produced relatively diffuse maps, while
RT-DETR-l retained responses on foliage and background areas.
EigenCAM describes activations at the selected layer and cannot
establish a causal contribution from an individual module. These
visualizations provide qualitative context for the detection results in
Section 3.2 rather than an independent test of mechanism.
4 Discussion
This study formulates buckwheat grain assessment as the
detection of three classes, aborted, immature, and mature grains,
in RGB images acquired in situ. Averaged over nine random seeds,
BM-Net achieved test-set mAP50 and mAP50 –95 values of 0.6656
± 0.0130 and 0.4104 ± 0.0111, exceeding the baseline (0.6387 ±
0.0086 and 0.3833 ± 0.0074) by 0.0269 and 0.0271 in all nine seeds.
Unlike spectral classi fication of detached samples or canopy-level
prediction from UAV images, the present approach localizes and
classifies individual visible grains using smartphone RGB images.
Its outputs could support subsequent image-level class counting
and maturity assessment. Field-scale proportion estimates and
harvest decisions would require separate validation.
The three modi fications target different parts of the network:
adaptive processing in the head, fused-feature representation in the
neck, and spatial –channel interaction at the backbone output. All
eight combinations were evaluated ( Table 3). The full combination
gave the numerically highest mean mAP50 –95 (0.4104), but with
DyHead present the differences among the variants were small and
not statistically significant over nine seeds (+0.0026 with SDAB, p =
0.47; 0.0000 with MSAS, p = 0.99; +0.0064 with both, p = 0.093).
The ablation therefore supports the contribution of Detect_DyHead
rather than an additive gain from the other two modules. Neither
SDAB nor MSAS alone produced a statistically signi ficant improve-
ment over the baseline: SDAB reached a marginally higher mAP50 –
95 than the baseline (0.3856 against 0.3833) but the paired differ-
ence is not signi ficant (p = 0.33), and MSAS was slightly lower.
Module order was not varied, so the experiments do not establish
independent contributions or additive interactions. Likewise, ag-
gregate mAP improvements cannot be uniquely attributed to better
classi fication, more accurate localization, or fewer missed
Wang et al. 10.3389/fpls.2026.2032669
Frontiers in Plant Science frontiersin.org15

detections. The letters in Table 3 confirm that it did not differ
significantly from the other DyHead-containing variants.
SSD300 and RetinaNet-R50 performed poorly, with mAP50/
mAP50–95 values of 0.248/0.081 and 0.224/0.109, respectively. Their
input resolutions of 300 × 300 and 640 × 512 may restrict the grain
detail available for detection. The mismatch between RetinaNet ’s
approximately 32-pixel minimum anchor scale and the small grains
may also contribute. Nevertheless, FCOS-R50 and ATSS-R50 achieved
0.625/0.340 and 0.603/0.313 at the same 640 × 512 input resolution,
indicating that resolution alone is insufficient to explain performance.
Faster R-CNN-R50, Cascade R-CNN-R50, and DetectoRS-R50
achieved 0.654/0.354, 0.661/0.372, and 0.665/0.377, respectively.
DetectoRS-R50 required 123.654 M parameters, approximately 79
times the parameter count of BM-Net. Relative to standard
YOLO11n (2.583 M parameters, 6.3 GFLOPs), BM-Net uses 40%
f e w e rp a r a m e t e r sb u t1 . 9 4t i m e st h eG F L O P s ;t h ei n c r e a s ei sa t t r i b u t -
able to the added P2/4 output, which is retained because it was the
largest single source of accuracy gain in the single-run screening
(Table 2 ). Because input sizes, traini ng schedules, and complexity-
analysis methods differed across frameworks, these comparisons pro-
vide context rather than a fully controlled ranking. The principal
evidence for the proposed modifi cations remains the matched com-
parison with the baseline, whose mAP50/mAP50 –95, averaged over
nine seeds, increased from 0.6387/0.3833 to 0.6656/0.4104.
Several limitations de fine the scope of these findings and their
practical use.
Annotations covered visible grains whose classes could be
determined reliably. Grains that were severely occluded by foliage
and could not be classi fied were excluded, so the model was not
trained specifically to detect them. The class labels are appearance-
based and were not validated against a biological reference such as
grain filling; such measurements define a different target and are not
available at the decision point the method is intended to support.
The dataset was collected from one experimental field, one
cultivar, and one season using a single smartphone under natural
illumination. Plant identities were not recorded, and repeated target
views occurred across subsets. A screen of all 1,035 images, using
file-level content hashes for every pair within a date and local-
feature comparison for cross-date candidates, identifi ed 13 candi-
date near-duplicate pairs involving 12 test images; comparison of
the full-resolution pairs con firmed a common target cluster in 11
pairs (10 test images) and was inconclusive in 2. Re-validating the
seed-5 checkpoints on the reduced test sets, as a single-checkpoint
analysis rather than a nine-seed summary, changed BM-Net
mAP50 from 69.07% to 69.04% with the 10 con firmed images
excluded and to 69.18% with all 12 candidates excluded, and its
advantage over the baseline from 3.99 to 4.14 and 4.20 percentage
points; mAP50 –95 changed from 43.35% to 43.18% and 43.42%.
The ranking and the magnitude of the difference are therefore
unchanged under the identi fied exclusions, but this does not
establish plant-level independence or generalization to unseen
plants, plots, or other acquisition conditions, which
remain unveri fied.
Aborted and mature grains have similar coloration, making
shape
and surface texture important for discrimination. Because
grains occupy a small portion of each image, resizing to 640 × 640
FIGURE 9
EigenCAM visualizations of the compared detectors on three test scenes.
Wang et al. 10.3389/fpls.2026.2032669
Frontiers in Plant Science frontiersin.org16

leaves limited fine detail. Confusion between these two classes
therefore remains a challenge. Aborted grains are not a develop-
mental stage but a failed set: they remain empty or shrivelled and
contribute little to grain yield, so separating them from mature
grains is what allows the remaining classes to be read as maturity.
Their proportion is also the quantity most directly related to yield
loss in years with poor pollination.
Further validation should use plant- or plot-level separation and
external test images from different locations, cultivars, years, and
devices to assess transfer across acquisition conditions. We make no
claim regarding deployment ef ficiency: no latency, memory or
energy measurements are reported here, and the parameter and
computational figures above describe architectural scale only.
Deployment studies should measure inference latency, memory
use, and energy consumption on target hardware and evaluate the
trade-offs introduced by compression and quantization.
Applications involving maturity proportions or harvest decisions
would additionally require independent comparisons with manual
counts or field surveys. The images analysed here were acquired
with a handheld smartphone at close range under natural illumi-
nation, whereas a camera mounted on a harvester would work at a
different distance, viewing angle and occlusion pattern, with vibra-
tion and dust and possibly arti ficial lighting; none of these condi-
tions was tested. The present results are therefore a basis for later
machine-vision deployment rather than a validation under
mechanised field conditions, and applications involving maturity
proportions or harvest decisions require separate validation against
manual counts or yield records.
5 Conclusions
We developed BM-Net to localize and classify small, densely
clustered buckwheat grains in naturalfield RGB images. The network
combines a DyHead detection head, SDAB neck modules, and an
MSAS backbone module within a YOLO11n framework using P2, P3,
and P4 outputs. It detects aborted, immature, and mature grains.
On the 207-image test set, averaged over nine random seeds,
BM-Net achieved mAP50 = 0.6656 ± 0.0130 and mAP50 –
95 = 0.4104 ± 0.0111. These values exceeded the baseline values
of 0.6387 ± 0.0086 and 0.3833 ± 0.0074 by 0.0269 and 0.0271,
respectively, in all nine seeds. BM-Net required 1.560 M parameters
and 12.2 GFLOPs. The combination ablation indicated that the
reproducible gain is attributable chie fly to the DyHead module; the
additional contributions of SDAB and MSAS were not statistically
significant. In single-run screening (random seed 5), neck place-
ment of SDAB and a dilation rate of 1 gave the highest values
among the tested con figurations; because these comparisons were
not repeated across seeds, they are reported as selection choices
rather than as established improvements.
BM-Net provides a method for individual-grain detection and
classification in natural buckwheat field images. Its applicability
across acquisition conditions and its performance on deployment
hardware remain to be evaluated using independent data and
device-level measurements.
Data availability statement
The original contributions presented in the study are included in the
article/Supplementary Material.T h er a w field images are not publicly
available and can be obtained from the corresponding author upon
reasonable request. The grain annotations (label files), the model
configuration files, the custom module code, the dependency list, the
fixed train/validation/test split lists and the identifiers of the excluded test
images are publicly available athttps://github.com/jiaxc8253-ui/BM-Net.
Author contributions
XJ: Conceptualization, Resources, Methodology, Writing– original
draft, Writing– review & editing. LL: Conceptualization, Data curation,
Writing – r e v i e w&e d i t i n g .D L :S o f t w a r e ,V i s u a l i z a t i o n ,W r i t i n g–
r e v i e w&e d i t i n g .Z W :V a l i d a t i o n ,F o r m a la n a l y s i s ,W r i t i n g– review &
editing. HY: Investigation, Supervision, Writing– review & editing. JW:
Validation, Project administration, Funding acquisition, Writing –
review & editing.
Funding
The author(s) declared that financial support was received for
this work and/or its publication. This research was funded by the
Fundamental Research Program of Shanxi Province (grant number
202403021211050), the Central Government Guidance Fund for
Local Science and Technology Development (grant number
YDZJSX20231C009), and the Academic Recovery Special Project
of Shanxi Agricultural University (grant number 2023XSHF2).
Acknowledgments
The authors gratefully acknowledge thefinancial support from the
funding programs listed above and thank all those who assisted with the
experiments and contributed to discussions of the manuscript.
Conflict of interest
The author(s) declared that this work was conducted in the
absence of any commercial or financial relationships that could be
construed as a potential con flict of interest.
Generative AI statement
The author(s) declared that generative AI was not used in the
creation of this manuscript.
Any alternative text (alt text) provided alongside figures in this
article has been generated by Frontiers with the support of arti ficial
Wang et al. 10.3389/fpls.2026.2032669
Frontiers in Plant Science frontiersin.org17

intelligence and reasonable efforts have been made to ensure
accuracy, including review by the authors wherever possible. If
you identify any issues, please contact us.
Publisher’s note
All claims expressed in this article are solely those of the authors
and do not necessarily represent those of their af filiated organiza-
tions, or those of the publisher, the editors and the reviewers. Any
product that may be evaluated in this article, or claim that may be
made by its manufacturer, is not guaranteed or endorsed by
the publisher.
Supplementary material
The Supplementary Material for this article can be found online
at: https://www.frontiersin.org/articles/10.3389/fpls.2026.2032669/
full#supplementary-material
References
Cai, Z., and Vasconcelos, N. (2018). “Cascade R-CNN: delving into high quality object
detection”, in: Proceedings of the IEEE/CVF Conference on Computer Vision and
Pattern Recognition (CVPR) ( S a l tL a k eC i t y ,U T ,U S A :I E E E ) ,6 1 5 4–6162.
doi: 10.1109/CVPR.2018.00644
Dai, X., Chen, Y., Xiao, B., Chen, D., Liu, M., Yuan, L., et al. (2021). “Dynamic head:
unifying object detection heads with attentions ”, in: Proceedings of the IEEE/CVF
Conference on Computer Vision and Pattern Recognition (CVPR) (Nashville, TN, USA:
IEEE), 7373 –7382.
Funatsuki, H., Maruyama-Funatsuki, W., Fujino, K., and Agatsuma, M. (2000). Ripening
habit of buckwheat.Crop Sci. 40, 1103–1108. doi: 10.2135/cropsci2000.4041103x
Gubbels, G. H., and Campbell, C. G. (1985). Visual indicators for determining the
optimum windrowing time for buckwheat. Can. J. Plant Sci. 65, 207–209. doi: 10.4141/
cjps85-028
Huang, J., Ma, Z., Wu, Y., Bao, Y., Wang, Y., Su, Z., et al. (2025). YOLOv8-DDS: a
lightweight model based on pruning and distillation for early detection of root mold in
barley seedling. Inf. Process. Agric. 12, 581 –594. doi: 10.1016/j.inpa.2025.07.004
Jiang, Y., and Li, C. (2020). Convolutional neural networks for image-based high-throughput
plant phenotyping: a review.Plant Phenomics2020, 4152816. doi: 10.34133/2020/4152816
Jocher, G., Chaurasia, A., and Qiu, J. (2023). Ultralytics Yolov8, Version 8.0.0
(Ultralytics). Available online at: https://github.com/ultralytics/ultralytics (Accessed
October 15, 2026).
Jocher, G., and Qiu, J. (2024). Ultralytics Yolo11 (Ultralytics). Available online at:
https://docs.ultralytics.com/models/yolo11 (Accessed October 15, 2026).
Jocher, G., Qiu, J., Liu, M., Lyu, S., Akyon, F. C., and Kalfaoglu, M. E. (2026). Ultralytics
YOLO26: unified real-time end-to-end vision models. arXiv:2606.03748. doi: 10.48550/
arXiv.2606.03748
Kamilaris, A., and Prenafeta-Boldú,F .X .( 2 0 1 8 a ) .Ar e v i e wo ft h eu s eo fc o n v o l u t i o n a ln e u r a l
networks in agriculture.J. Agric. Sci. 156, 312–322. doi: 10.1017/S0021859618000436
Kamilaris, A., and Prenafeta-Boldu ́, F. X. (2018b). Deep learning in agriculture: a
survey. Comput. Electron. Agric. 147, 70–90. doi: 10.1016/j.compag.2018.02.016
Li, X., Niu, W., Yan, Y., Ma, S., Huang, J., Wang, Y., et al. (2024). Detection of broken
Hongshan buckwheat seeds based on improved YOLOv5s model. Agronomy 14, 37.
doi: 10.3390/agronomy14010037
Li-oiu, A. A., Pa ̆ucean, A., Lung, C., Zmuncila ̆, A., and Chis, M. S. (2025). An overview
of buckwheat —a superfood with applicability in human health and food packaging.
Plants 14, 2200. doi: 10.3390/plants14142200
Lin, T.-Y., Goyal, P., Girshick, R., He, K., and Dolla ́r, P. (2017). “Focal loss for dense
object detection ”, in: Proceedings of the IEEE International Conference on Computer
Vision (ICCV) (Venice, Italy: IEEE), 2980 –2988. doi: 10.1109/ICCV.2017.324
Liu, W., Anguelov, D., Erhan, D., Szegedy, C., Reed, S., Fu, C.-Y., et al. (2016). “SSD:
single shot MultiBox detector ”, in: Computer vision—ECCV 2016 (Cham, Switzerland:
Springer), 21 –37. doi: 10.1007/978-3-319-46448-0_2
Liu, C., Shen, Y., Mu, F., Long, H., Bilal, A., Yu, X., et al. (2025). Detection of surface
defects in soybean seeds based on improved YOLOv9. Sci. Rep. 15, 12631. doi: 10.1038/
s41598-025-92429-3
Luo, Z., Huang, J., Zhang, H., Huang, Y., Wu, Y., Huang, W., et al. (2026). LMD-Net: a
lightweight multi-scale detection model for rice disease detection in complex field
environments. Comput. Electron. Agric. 254, 112246. doi: 10.1016/j.compag.2026.112246
Ma, B., Hua, Z., Wen, Y., Deng, H., Zhao, Y., Pu, L., et al. (2024). Using an improved
lightweight YOLOv8 model for real-time detection of multi-stage apple fruit in
complex orchard environments. Artif. Intell. Agric. 11, 70 –82. doi: 10.1016/
j.aiia.2024.02.001
Ma, N., Su, Y., Yang, L., Li, Z., and Yan, H. (2024). Wheat seed detection and counting
method based on improved YOLOv8 model. Sensors 24, 1654. doi: 10.3390/s24051654
Morishita, T., and Suzuki, T. (2017). The evaluation of harvest loss occurring in the
ripening period using a combine harvester in a shattering-resistant line of common
buckwheat. Jpn. J. Crop Sci. 86, 62 –69. doi: 10.1626/jcs.86.62
Płażek, A., Kopec ́, P., Dziurka, M., and S łomka, A. (2023). The yield of common
buckwheat (Fagopyrum esculentum Moench) depends on the genotype but not on the
pin-to-thrum ratio. Sci. Rep. 13, 16022. doi: 10.1038/s41598-023-43059-0
Qiao, S., Chen, L.-C., and Yuille, A. L. (2021). “DetectoRS: detecting objects with
recursive feature pyramid and switchable atrous convolution ”, in: Proceedings of the
IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR) (Nashville,
TN, USA: IEEE), 10213 –10224. doi: 10.1109/CVPR46437.2021.01008
Qiu, Z., Wang, F., Wang, W., Li, T., Jin, X., Qing, S., et al. (2024). YOLO-SDL: a
lightweight wheat grain detection technology based on an improved YOLOv8n model.
Front. Plant Sci. 15, 1495222. doi: 10.3389/fpls.2024.1495222
Ren, S., He, K., Girshick, R., and Sun, J. (2015). “Faster R-CNN: towards real-time
object detection with region proposal networks ”, in: Proceedings of the Advances in
Neural Information Processing Systems (NeurIPS) (Montreal, QC, Canada: Curran
Associates), 91–99. doi: 10.5555/2969239.2969250
S a ,I . ,G e ,Z . ,D a y o u b ,F . ,U p c r o f t ,B . ,P e r e z ,T . ,a n dM c C o o l ,C .( 2 0 1 6 ) .D e e p F r u i t s :af r u i t
detection system using deep neural networks.Sensors16, 1222. doi: 10.3390/s16081222
Tian, Z., Shen, C., Chen, H., and He, T. (2019). “FCOS: fully convolutional one-stage
object detection ”,i n : Proceedings of the IEEE/CVF International Conference on
Computer Vision (ICCV) (Seoul, Republic of Korea: IEEE), 9627 –9636. doi: 10.1109/
ICCV.2019.00972
Tian, Y., Ye, Q., and Doermann, D. (2025). “YOLOv12: attention-centric real-time
object detectors ”, in: Proceedings of the Advances in Neural Information Processing
Systems (NeurIPS) (San Diego, CA, USA: Curran Associates), 87151 –87175.
doi: 10.52202/085713-2627
Ultralytics Yolov5u. Available online at: https://docs.ultralytics.com/models/yolov5/
(Accessed October 15, 2026).
Wang, H., Che, X., Nan, J., Miao, Y., Wang, Y., Zhang, W., et al. (2025). Enhancing
buckwheat maturity classi fication with generative adversarial networks for spectros-
copy data augmentation. Front. Plant Sci. 16, 1604088. doi: 10.3389/fpls.2025.1604088
Wang, A., Chen, H., Liu, L., Chen, K., Lin, Z., Han, J., et al. (2024). “YOLOv10: real-
time end-to-end object detection ”,i n : Proceedings of the Advances in Neural
Information Processing Systems (NeurIPS) (Vancouver, BC, Canada: Curran
Associates), 107984 –108011. doi: 10.52202/079017-3429
Wang, X., Li, C., Zhao, C., Jiao, Y., Xiang, H., Wu, X., et al. (2025). GrainNet: ef ficient
detection and counting of wheat grains based on an improved YOLOv7 modeling.
Plant Methods 21, 44. doi: 10.1186/s13007-025-01363-y
Wu, Y., Huang, J., Wang, Y., Bao, Y., Liu, Z., Cao, X., et al. (2025). “YOLO-DCS: a brain
tumor detection algorithm based on dynamic self-attention mechanism and adaptive
fusion”, in: 2025 IEEE International Conference on Bioinformatics and Biomedicine
(BIBM), Wuhan, China: IEEE, 6503 –6510. doi: 10.1109/BIBM66473.2025.11356083
Wu, J., Wu, H., Li, H., Lei, X., and Song, H. (2024). Research on segmentation and
recognition method of buckwheat seedling UAV remote sensing images based on
improved DeepLabV3+. Trans. Chin. Soc Agric. Mach. 55, 186 –195. doi: 10.6041/
j.issn.1000-1298.2024.05.017
Wang et al. 10.3389/fpls.2026.2032669
Frontiers in Plant Science frontiersin.org18

Wu, J., Wu, X., and Miao, R. (2025). Research on buckwheat weed recognition in multispectral
UAV images based on MSU-Net.Agriculture15, 1471. doi: 10.3390/agriculture15141471
Wu, J., Zheng, D., Wu, Z., Song, H., and Zhang, X. (2022). Prediction of buckwheat
maturity in UAV-RGB images based on recursive feature elimination cross-validation:
a case study in Jinzhong, northern China. Plants 11, 3257. doi: 10.3390/plants11233257
Xiong, Y., Li, Z., Chen, Y., Wang, F., Zhu, X., Luo, J., et al. (2024). “Efficient deformable
ConvNets: rethinking dynamic and sparse operator for vision applications ”,i n :
Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern
Recognition (CVPR) (Seattle, WA, USA: IEEE), 5652 –5661.
Yin, D., Hu, L., Li, B., Zhang, Y., and Yang, X. (2024). 5%>100%: breaking performance
shackles of full fine-tuning on visual recognition tasks. arXiv:2408.08345. doi: 10.48550/
arXiv.2408.08345
Yu, W., Luo, M., Zhou, P., Si, C., Zhou, Y., Wang, X., et al. (2022). “MetaFormer is
actually what you need for vision ”, in: Proceedings of the IEEE/CVF Conference on
Computer Vision and Pattern Recognition (CVPR) (New Orleans, LA, USA: IEEE),
10819–10829.
Zhang, S., Chi, C., Yao, Y., Lei, Z., and Li, S. Z. (2020). “Bridging the gap between
anchor-based and anchor-free detection via adaptive training sample selection ”, in:
Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition
(CVPR) (Seattle, WA, USA: IEEE), 9759 –9768. doi: 10.1109/CVPR42600.2020.00978
Zhao, Y., Lv, W., Xu, S., Wei, J., Wang, G., Dang, Q., et al. (2024). “DETRs beat YOLOs
on real-time object detection ”,i n : Proceedings of the IEEE/CVF Conference on
Computer Vision and Pattern Recognition (CVPR) (Seattle, WA, USA: IEEE), 16965 –
16974. doi: 10.1109/CVPR52733.2024.01605
Wang et al. 10.3389/fpls.2026.2032669
Frontiers in Plant Science frontiersin.org19

论文原文与出版信息

Frontiers in Plant Science
查看论文原文

继续探索