论文信息

Shun He / Sifan Li / Xinjian Li 等 11 人

Frontiers in Plant Science

论文解读

AI 辅助整理
方法
多尺度金字塔池化MSPP、分层特征融合HFFB、辅助分类头与Focal Loss
发现
模型准确率97.63%、参数量仅1.21M,在随机初始化模型中精度最高且参数最少。
机会点
可探索轻量多尺度网络在边缘设备部署及跨作物害虫迁移识别,结合类不平衡与复杂背景的鲁棒性研究。

论文摘要

引言 烟草是全球重要的经济作物,虫害侵染是导致其产量和品质下降的主要因素之一。然而,烟草害虫种类繁多,形态和尺度差异显著。田间采集的图像常受到复杂背景干扰和类别不平衡的影响,给自动化识别带来了相当大的挑战。现有深度学习方法在此类条件下进行多尺度特征提取和判别性特征表示的能力仍然有限。为应对这些挑战,本研究提出了一种用于烟草害虫识别的多尺度特征聚合网络(Multi-Scale Feature Aggregation Network,MSFANet),并将其形式化为单标签图像分类任务。方法 针对尺度变化和复杂田间背景,开发了两个面向任务的模块。多尺度金字塔池化(Multi-Scale Pyramid Pooling,MSPP)模块通过并行特征提取和自适应跨分支融合,聚合多个感受野的上下文信息。分层特征融合模块(Hierarchical Feature Fusion Block,HFFB)随后通过空间门控和部分卷积对特征表示进行细化。训练过程中引入辅助分类头和Focal Loss,分别提供中间监督和处理类别不平衡。结果 在包含13个烟草相关害虫及天敌类别的数据集上评估了MSFANet的有效性。模型的准确率、精确率、召回率和F1分数分别为97.63%、97.89%、97.59%和97.71%,参数量为1.21 M。在随机初始化训练的模型中,MSFANet以最少的参数量取得了最高准确率。讨论 通过结合多尺度上下文聚合与分层特征细化,MSFANet在复杂田间条件下实现了对13个烟草相关类别的准确分类。所提方法为烟草田间害虫的自动化和精准监测提供了有效的技术支持,对推进精准害虫管理和智慧农业的更广泛发展具有实用价值。

全文

Frontiers in Plant Science

MSFANet: a multi-scale feature
aggregation network for
tobacco pest recognition
Shun He1,2, Sifan Li1, Xinjian Li3, Qianqian Luo3, Sufen Dong1*,
Lu Lei2, Xingjiang Chen2, Liuti Cai2, Jianyu Meng2, Ning Lu2
and Hancheng Wang2*
1College of Information Science and Technology, Hebei Agricultural University, Baoding, China,
2Guizhou Academy of Tobacco Science, Guiyang, China, 3Qiannan Branch of Guizhou Tobacco
Company, Duyun, China
Introduction: Tobacco is a globally signi ficant economic crop, and pest
infestation represents one of the primary factors contributing to declines in
both yield and quality. However, tobacco pests encompass a wide variety of
species that differ substantially in morphology and scale. Field-captured images
are frequently subject to complex background interference and class imbalance,
presenting considerable challenges for automated recognition. Existing deep
learning approaches remain limited in their capacity for multi-scale feature
extraction and discriminative feature representation under such conditions. To
address these challenges, this study proposes a Multi-Scale Feature Aggregation
Network (MSFANet) for tobacco pest recognition, formulated here as a single-
label image classi fication task.
Methods: To address scale variation and complex field backgrounds, two task-
oriented modules were developed. The Multi-Scale Pyramid Pooling (MSPP)
module aggregates contextual info rmation across multiple receptive fields
through parallel feature extraction and adaptive cross-branch fusion. The
Hierarchical Feature Fusion Block (HFFB) subsequently re fines the feature
representations through spatial gatin g and partial convolution. An auxiliary
classification head and Focal Loss were incorporated during training to provide
intermediate supervision and address class imbalance, respectively.
Results: The effectiveness of MSFANet was evaluated on a dataset comprising 13
tobacco-associated pest and natural-enemy categories. The model achieved
accuracy, precision, recall, and F1-score of 97.63%, 97.89%, 97.59%, and 97.71%,
respectively, with a parameter count of 1.21 M. Among the models trained from
random initialization, MSFANet shared the highest accuracy while using the
fewest parameters.
Discussion: By combining multi-scale contextual aggregation with hierarchical
feature re finement, MSFANet achieved accurate classi fication across the 13
tobacco-associated categories under complex field conditions. The proposed
method provides effective technical support for automated and precision-
oriented pest monitoring in tobacco fields, offering practical value for
advancing precise pest management and the broader development of
smart agriculture.
KEYWORDS
deep learning, intelligent plant protection, multi-scale feature fusion, real-world
images, tobacco pests
Frontiers in Plant Science frontiersin.org01
OPEN ACCESS
EDITED BY
Sojung Kim,
Dongguk University Seoul, Republic of Korea
REVIEWED BY
Junyan Wang,
Sun Yat-sen University, China
Hongxu Li,
Southwest Forestry University, China
*CORRESPONDENCE
Sufen Dong
xxdsf@hebau.edu.cn
Hancheng Wang
xiaobaiyang126@hotmail.com
RECEIVED 03 May 2026
REVISED 20 August 2026
ACCEPTED 23 September 2026
PUBLISHED 16 October 2026
CITATION
He S, Li S, Li X, Luo Q, Dong S, Lei L,
Chen X, Cai L, Meng J, Lu N and Wang H
(2026) MSFANet: a multi-scale
feature aggregation network for
tobacco pest recognition.
Front. Plant Sci. 17:1871587.
doi: 10.3389/fpls.2026.1871587
COPYRIGHT
©2 0 2 6H e ,L i ,L i ,L u o ,D o n g ,L e i ,C h e n ,
Cai, Meng, Lu and Wang. 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 16 October 2026
DOI 10.3389/fpls.2026.1871587

1 Introduction
Tobacco is one of the most economically signi ficant crops
worldwide, cultivated extensively across numerous countries.
China alone accounts for approximately 35% of global tobacco
production, making it a critical agricultural commodity for the
national economy ( Liu et al., 2024 ). Guizhou Province, one of
China’s four major tobacco-producing regions, has a cultivated
tobacco area of approximately 135, 260 hectares (ha), playing a
pivotal role in local economic development ( Guizhou Provincial
Department of Agriculture and Rural Affairs, 2024 ). Throughout
the growing season, tobacco plants are attacked by diverse sap-
feeding, foliage-feeding, and soil-dwelling pests. Their feeding can
remove photosynthetic tissue, cause leaf perforation and deforma-
tion, and injure seedlings or roots, thereby reducing tobacco yield
and the commercial quality of tobacco leaves ( Sun et al., 2024; Rabb
et al., 1976 ). Because different pest groups require different man-
agement strategies, accurate field classification is essential for timely
and targeted pest control. Conventional pest identi fication methods
rely predominantly on manual field surveys, in which trained
personnel periodically inspect c rops to identify pest species.
However, given the vast diversity of pest species, the considerable
variation in individual body size, and the morphological similarity
among different species, manual identi fication is inherently time-
consuming, labor-intensive, and inef ficient, and is further prone to
subjective bias ( Wang et al., 2020a ).
With the rapid advancement of computer vision technology,
image recognition-based approaches for the precise identi fication of
crop diseases and pests have emerged as a prominent research
direction in this field. Related studies have primarily focused on two
methodological categories: traditional machine learning (ML) and
deep learning (DL) ( Upadhyay et al., 2025 ). Traditional ML-based
methods typically involve preprocessing pest images through op-
erations such as image enhancement, segmentation, and edge
detection, followed by the extraction of handcrafted features —
including Histogram of Oriented Gradients (HOG), Local Binary
Patterns (LBP), and Scale-Invariant Feature Transform (SIFT) —
which are subsequently fed into classi fiers such as Support Vector
Machines (SVM), K-Nearest Neighbors (KNN), and Random
Forests (RF) to achieve pest classi fication ( Xiao et al., 2018 ;
Pattnaik and Parvathi, 2022 ; Kasinathan and Uyyala, 2021 ). For
instance, Ebrahimi et al. (2017) extracted regional indices and color
features to detect thrips in strawberry canopy images using an SVM
classifier, achieving a mean classi fication error of less than 2.25%.
Faithpraise et al. (2013) applied K-means clustering to segment
plant pest images, and subsequently identi fied different pest types
through manually extracted features combined with correspon-
dence filters, enabling automated plant pest detection and recogni-
tion. Aravind et al. (2018) extracted bag-of-features and texture
descriptors based on statistical histograms and employed SVM for
disease classi fication, attaining a peak recognition accuracy of
83.7%. Nevertheless, these approaches universally rely on extensive
handcrafted feature engineering and labor-intensive image preproc-
essing pipelines, rendering them time-consuming and computa-
tionally demanding, with limited generalization capability under
complex real-world field conditions.
In contrast, deep learning (DL) methods can learn hierarchical
feature representations directly from image data, reducing their
dependence on handcrafted feature extraction and preprocessing.
Consequently, DL has been increasingly applied to crop disease and
pest analysis. For example, Lin et al. (2022a) integrated residual
learning and attention mechanisms in GrapeNet to improve grape
disease classi fication, whereas Ye et al. (2023) combined genetic
algorithms with stochastic gradient descent to optimize small-pest
detection models under field conditions. These studies demonstrate
the capacity of DL to extract discriminative visual features from
agricultural images and provide a methodological basis for auto-
mated pest classi fication.
The rapid advancement of DL h as driven the widespread
application of convolutional neural networks (CNNs) in crop
disease and pest recognition, with these models demonstrating
strong performance across a variety of related tasks ( Wang et al.,
2025a). Within pest image classi fication, recent studies have ex-
plored hierarchical feature learning, multi-scale feature fusion,
transfer learning, multi-task learning, and model ensembles. Lin
et al. (2023) proposed the Hierarchical Complementary Network,
which integrates fine-grained shallow features with high-level
semantic representations and achieved a Top-1 accuracy of 75.3%
on the IP102 dataset. Wei et al. (2022) developed a lightweight CNN
that combines multi-scale feature fusion with deep semantic rep-
resentations, obtaining an accuracy of 98.2% across 12 pest cate-
gories. Liu et al. (2022a) combined VGG16 and Inception-ResNet-
v2 through weighted integration to classify six categories of rice and
wheat pests, whereas Dong et al. (2024) introduced a multi-task
discriminative-attention framework to improve pest classi fication
on IP102. Nanni et al. (2022) further demonstrated that ensembles
of diverse CNN architectures and optimizer variants could improve
performance across the Deng, IP102, and Xie2 benchmarks.
Collectively, these studies establish the effectiveness of DL for
general or crop-speci fic pest classi fication. However, because their
evaluations were conducted on public benchmarks or non-tobacco-
specific pest datasets, they do not directly establish performance for
tobacco pest classi fication under field conditions.
Tobacco-oriented computer vision studies have addressed re-
lated but distinct tasks. Lin et al. (2022b) developed CAMFFNet for
tobacco disease image classi fication under field conditions, using
multi-depth feature fusion and coordinate attention to reduce
feature loss and background interference. Sun et al. (2024) subse-
quently proposed an enhanced YOLOv8 model for detecting and
localizing four common tobacco pest categories in complex envi-
ronments while reducing model complexity. Although these studies
demonstrate the potential of DL for tobacco protection, tobacco
disease classi fication primarily distinguishes symptom patterns
expressed on plant tissues, whereas object detection requires
bounding-box annotations and jointly predicts pest locations and
categories. Neither setting therefore directly evaluates single-label
image classi fication across multiple tobacco pest categories.
Accordingly, evidence remains limited for lightweight, end-to-
end image classification across multiple tobacco pest categories under
field conditions. In addition to the domain-specificp e s tc o m p o s i t i o n
and imbalanced class distribution, this task requires the model to
accommodate variations in pest scale and developmental appearance,
He et al. 10.3389/fpls.2026.1871587
Frontiers in Plant Science frontiersin.org02

distinguish visually similar categories, and suppress interference from
complex field backgrounds. To address this gap, this study proposes a
Multi-Scale Feature Aggregation Network (MSFANet) for tobacco
pest classification. Its Multi-Scale Pyramid Pooling (MSPP) module
captures local and contextual information across multiple receptive
fields, whereas the Hierarchical Feature Fusion Block (HFFB) refines
fine-grained pest features while limiting computational overhead.
Focal Loss and an auxiliary classi fication head are further incorpo-
rated during training to address class imbalance and enhance
intermediate supervision, respectively. The main contributions of
this study are summarized as follows:

  1. Designing the MSPP with parallel dilated convolutional
    branches and multi-scale adaptive pooling branches to
    simultaneously capture local texture details and multi-gran-
    ularity contextual information, and introducing a light-
    weight cross-attention mechanism to adaptively fuse the
    dual-stream features, enhancing the network ’s representa-
    tional capacity for pest targets across varying scales.
  2. Proposing the HFFB, which integrates a Spatial Gating
    Feature Modulation (SGFM) sub-module for local spatial
    feature modeling and a Partial Convolutional Feed-
    forward Network (PCFN) for improved feature representa-
    tion ef ficiency, enabling effective feature interaction and
    fusion under a residual connection framework to strengthen
    fine-grained pest feature representation in complex field
    backgrounds.
  3. Introducing Focal Loss and an auxiliary classifi cation head
    as training components, and evaluating their individual and
    combined effects through controlled ablation experiments.
  4. Constructing a dataset comprising 13 tobacco-associated
    categories and conducting comprehensive experiments to
    validate the effectiveness of MSFANet, which achieves a
    classification accuracy of 97.63% with only 1.21 M param-
    eters, demonstrating a favorable balance between classifi ca-
    tion performance and model complexity.
    2 Materials and methods
    2.1 Image acquisition
    The 15 principal county-level image-collection areas were
    distributed across nine prefecture-level administrative regions of
    Guizhou Province ( Figure 1; Table 1) and ranged in altitude from
    628.4 to 2, 115.1 m. Guizhou has a humid subtropical monsoon
    climate, with a mean annual temperature of approximately 15 °C,
    long-term mean annual precipitation of approximately 1, 178 mm,
    and predominantly mountainous and hilly terrain ( Han et al.,
    2024). Yunyan 87 was the predominant cultivar, while K326,
    Guiyan 20, and other cultivars were grown at smaller scales.
    The dataset comprised 10, 968 images representing 12 pest
    categories and one natural-enemy category. The images represented
    adult, larval, or juvenile stages, as applicable to each category. The
    category-wise image counts were 364 for green rice bug ( Nezara
    viridula), 847 for cutworm ( Agrotis spp.), 1, 552 for locust ( Locusta
    migratoria), 766 for scarab beetle ( Anomala corpulenta), 1, 035 for
    slug ( Deroceras reticulatum ), 400 for mole cricket ( Gryllotalpa
    orientalis), 527 for hover fly( Episyrphus balteatus), 968 for snail
    (Achatina fulica), 787 for tobacco cutworm ( Spodoptera litura), 787
    for tobacco budworm (Helicoverpa assulta), 1, 041 for aphid (Myzus
    persicae ), 1, 039 for long-winged tree cricket ( Oecanthus
    longicauda), and 855 for katydid ( Tettigonia viridissima ). Figure 1
    also presents a representative tobacco- field scene, and representa-
    tive images from each category are shown in Figure 2.
    2.2 Image preprocessing
    A total of 10, 968 images were acquired under field conditions
    by multiple collectors using different smartphones and digital
    cameras, with device models an d acquisition settings varying
    across images. All images were individually reviewed by plant
    protection experts to verify image quality and class labels. Each
    image was assigned one of 13 predefi ned category labels. Most
    FIGURE 1
    Image acquisition area. (A) Geographic distribution of the 15 principal county-level image-collection areas across Guizhou Province, China. Red dots
    indicate tobacco pest image-collection sites, and the inset shows the location of Guizhou Province within China. Adapted from Standard Map Service of
    Ministry of Natural Resources of China. Citation: GS(2016)1600号; Source: http://bzdt.ch.mnr.gov.cn/; License: Free for academic use with attribution.
    (B) Representative tobacco- field scene.
    He et al. 10.3389/fpls.2026.1871587
    Frontiers in Plant Science frontiersin.org03

images contained a single individual, whereas some contained
multiple individuals belonging to the same category; no image
contained individuals from diff erent categories. Accordingly,
each image constituted one sample in the single-label classifi cation
task, irrespective of the number of individuals present. Images
from each category were strati fied into training, validation, and
test sets at an 8:1:1 ratio, with the resulting distribution reported
in Table 2.
Deep learning models typically rely on data augmentation tech-
niques to increase the diversity of training samples, thereby improving
model accuracy, generalization ability, and robustness, while effec-
tively alleviating overfitting (Jia et al., 2017). To improve robustness to
variations in pest scale, orientation, illumination, color, and partial
occlusion, the training images were resized to 252 × 252 pixels and
randomly cropped to 224 × 224 pixels using a scale range of 0.88–1.00
and an aspect-ratio range of 0.75 –1.33. Random horizontal and
TABLE 1 Geographic information for the 15 image collection sites in Guizhou Province, China.
Prefecture-level region Image collection site Coordinates (WGS 84) Altitude (m)
Zunyi Wuchuan Gelao and Miao Autonomous County 28.639531° N, 107.986831° E 628.4
Zunyi Bozhou District 27.640789° N, 106.676031° E 1215.7
Zunyi Tongzi County 28.214050° N, 106.752136° E 1100.0
Zunyi Daozhen Gelao and Miao Autonomous County 28.734275° N, 107.608947° E 1319.9
Tongren Sinan County 28.017919° N, 108.142731° E 969.4
Qiandongnan Miao and Dong Autonomous Prefecture Shibing County 27.085000° N, 108.163692° E 800.3
Qiannan Buyei and Miao Autonomous Prefecture Fuquan City 26.745697° N, 107.497389° E 1010.8
Qiannan Buyei and Miao Autonomous Prefecture Weng’an County 27.317850° N, 107.246819° E 968.1
Guiyang Kaiyang County 27.303458° N, 106.961908° E 860.7
Anshun Pingba District 26.461019° N, 106.238944° E 1317.7
Qianxinan Buyei and Miao Autonomous Prefecture Xingyi City 25.131047° N, 105.052956° E 1272.7
Liupanshui Shuicheng District 26.453528° N, 104.942950° E 1790.7
Bijie Weining Yi, Hui and Miao Autonomous County 26.753564° N, 103.996586° E 2115.1
Bijie Dafang County 27.032369° N, 105.774200° E 1278.0
Bijie Jinsha County 27.496647° N, 106.219906° E 938.9
Coordinates represent the administrative centres of the corresponding county-level collection areas rather than the exact locations of individual tobacco fields; altitudes refer to the sampled
tobacco fields.
FIGURE 2
Representative images of the tobacco-associated categories: (A) green rice bug. (B) cutworm. (C) locust. (D) scarab beetle. (E) slug. (F) mole cricket.
(G) hoverfly. (H) snail. (I) tobacco cutworm. (J) aphid. (K) tobacco budworm. (L) long-winged tree cricket. (M) katydid.
He et al. 10.3389/fpls.2026.1871587
Frontiers in Plant Science frontiersin.org04

vertical flips were applied with probabilities of 0.50 and 0.25, respec-
tively, together with random rotations within ±12°. Color jitter was
applied to brightness, contrast, and saturation using a factor of 0.12
and to hue using a factor of 0.06. Random erasing was applied with a
probability of 0.20, an area range of 0.02 –0.12, and an aspect-ratio
range of 0.30 –3.30. Images were subsequently converted to tensors
and normalized using ImageNet means of (0.485, 0.456, 0.406) and
standard deviations of (0.229, 0.224, 0.225). Validation and test images
were resized directly to 224 × 224 pixels and normalized identically,
without stochastic augmentation. All stochastic transformations were
applied online during data loading rather than used to generate afixed
augmented copy of the dataset. Therefore, nofixed post-augmentation
dataset size existed.
3 Proposed method
3.1 Overall architecture of MSFANet
Tobacco pests encompass a wide variety of species that differ
substantially in morphology and scale across individual specimens.
Moreover, field-captured images are frequently subject to interfer-
ence from varying illumination conditions, cluttered backgrounds,
and partial occlusion. To address these challenges, this study
proposes MSFANet, whose overall architecture is illustrated in
Figure 3. The network consists of three principal components: a
Stem module, a multi-scale feature aggregation backbone, and a
channel-spatial attention module.
Within this architecture, the stem transforms an input image of
3 × 224 × 224 into an 80 × 56 × 56 feature representation through
three consecutive 3 × 3 convolutions, two of which use a stride of 2.
The resulting representation is subsequently processed by five
sequential MSFA blocks, each comprising MSPP, two-dimensional
dropout (Dropout2d; rate = 0.15), and HFFB. Each block also
incorporates a learnable residual scaling factor g, initialized to 10 /C06.
Because no further strided operations are applied, the backbone
maintains a feature dimension of 80 × 56 × 56 throughout the five
blocks. The subsequent feature-enhancement module increases the
channel dimension from 80 to 160 while preserving the spatial
resolution. Global average pooling and the main classi fier then map
the enhanced representation to the 13 tobacco-associated catego-
ries. During training, an auxiliary classi fier branches from the
output of the third MSFA block to provide intermediate supervi-
sion. The layer-wise con figuration of MSFANet is summarized
in Table 3.
The main and auxiliary classifi cation outputs are jointly opti-
mized using Focal Loss, and the resulting training objective is
defined as Equation 1:
TABLE 2 Distribution of image data by category.
Category Train Valid Test
green rice bug 292 36 36
cutworm 678 84 85
locust 1242 155 155
scarab beetle 613 76 77
slug 828 103 104
mole cricket 320 40 40
hoverfly 422 52 53
snail 775 96 97
tobacco cutworm 630 78 79
aphid 833 104 104
tobacco budworm 631 78 78
long-winged tree cricket 832 103 104
katydid 684 85 86
Total 8780 1090 1098
RE 3FIGU
MSFANet architecture.
He et al. 10.3389/fpls.2026.1871587
Frontiers in Plant Science frontiersin.org05

Ltotal = Lmain + l · Laux (1)
where Lmain and Laux denote the Focal Loss outputs of the
primary classi fication head and the auxiliary classi fication head,
respectively, and l represents the balancing coef ficient for the
auxiliary loss. The auxiliary-loss weight l was fixed at 0.30 through-
out training, and no decay schedule was applied.
3.2 Multi-scale pyramid pooling
Convolutional operations with a single receptive field are inher-
ently limited in their ability to simultaneously capture both fine-
grained textural details of small-bodied pests and the macroscopic
morphological characteristics of large-bodied species. Existing meth-
ods typically employ fixed-scale convolutional kernels for feature
extraction, which are ill-suited to the substantial target scale varia-
tion present in tobacco pest images ( Yang et al., 2025 ). To address
this limitation, this study designs the MSPP module, whose archi-
tecture is illustrated in Figure 4 . MSPP comprises four synergistic
components: a dilated convolutional branch, a pooling branch, a
global average pooling branch, and a lightweight cross-attention
fusion mechanism. Following the final feature fusion, the aggregated
representations are sequentially re fined through Ef ficient Channel
Attention (ECA) and Spatial Attention (SA) for dual-stage feature
enhancement, enabling the network to extract discriminative cross-
scale feature representations under complex field backgrounds.
The dilated convolutional branch, as shown in Figure 4a ,
consists of four parallel sub- branches with dilation rates d ∈
1, 2, 4, 6fg . Here, X ∈ RB/C2C/C2H/C2W denotes the input feature map
of MSPP, where B,  C,  H, and W represent the batch size, channels,
height, and width, respectively. It is produced by the stem for the
first MSFA block and by the preceding MSFA block thereafter;
throughout the backbone, C = 80 and H = W = 56. Dilated con-
volution effectively enlarges the receptive field without increasing
the number of parameters ( Chen et al., 2018 ; Hu et al., 2024 ),
enabling the model to simultaneously capture fine-grained textural
features of small-bodied pests (e.g., aphids) and macroscopic
morphological characteristics of large-bodied species (e.g., locusts).
Within each sub-branch, the feature extraction pipeline consists of
depthwise separable convolution, Batch Normalization (BN), GELU
activation, 1 /C2 1 pointwise convolution, BN, and ECA channel
attention applied in sequence. The feature extraction process of
the d-th sub-branch is formulated as Equation 2 :
Fd = ECA BN Conv 1/C21 GELU BN DWConv d3/C23(X)/C16/C17/C16/C17/C16/C17/C16/C17/C16/C17 , 
d ∈ 1, 2, 4, 6fg
(2)
where DWConvd3/C23 denotes the 3 /C2 3 depthwise separable
convolution with dilation rate d, Conv1/C21 denotes pointwise con-
volution, BN denotes batch normalization, and GELU denotes the
activation function. The output features of the four sub-branches
are concatenated along the channel dimension and subsequently
compressed to C channels via a 1 /C2 1 convolutional layer, yielding
the fused feature representation of the dilated convolutional branch.
The pooling branch, illustrated in Figure 4b , consists of three
parallel adaptive average pooling sub-branches operating at pooling
scales s ∈ 1, 2, 4fg . By performing spatial compression at varying
degrees, this branch is capable of capturing multi-scale regional
semantic information ranging from fine-grained to coarse-grained
representations, which facilitates the representation of pest-relevant
regions against complex field backgrounds ( Wang et al., 2024b ).
Within each sub-branch, the spatial resolution is first reduced via
adaptive average pooling, followed sequentially by 1 /C2 1 convolu-
tion, BN, and GELU activation. The resulting feature maps are then
restored to the original spatial resolution through bilinear interpo-
lation upsampling. The output of the s-th sub-branch is formulated
as Equation 3 :
Ps = Upsample(GELU(BN(Conv 1/C21(AdaPools(X))))),  
s ∈ 1;  2;  4fg
(3)
TABLE 3 Configuration of the MSFANet model.
Layer name Input shape Output shape Con figuration
Input – 3 × 224 × 224 –
3 × 3 Conv 3 × 224 × 224 40 × 112 × 112 Conv(s = 2, p = 1), BN, GELU
3 × 3 Conv 40 × 112 × 112 40 × 112 × 112 Conv(s = 1, p = 1), BN, GELU
3 × 3 Conv 40 × 112 × 112 80 × 56 × 56 Conv(s = 2, p = 1), BN, GELU
MSFA Block 1 80 × 56 × 56 80 × 56 × 56 MSPP → HFFB; DropPath = 0
MSFA Block 2 80 × 56 × 56 80 × 56 × 56 MSPP → HFFB; DropPath = 0.0375
MSFA Block 3 80 × 56 × 56 80 × 56 × 56 MSPP → HFFB; DropPath = 0.075
Auxiliary classi fier¹ 80 × 56 × 56 13 BN, GAP, Flatten, Dropout (0.15), FC (80 →13)
MSFA Block 4 80 × 56 × 56 80 × 56 × 56 MSPP → HFFB; DropPath = 0.1125
MSFA Block 5 80 × 56 × 56 80 × 56 × 56 MSPP → HFFB; DropPath = 0.15
3 × 3 Conv 80 × 56 × 56 160 × 56 × 56 Conv(s = 1, p = 1), BN, GELU
1 × 1 Conv, ECA, SA 160 × 56 × 56 160 × 56 × 56 Conv(s = 1), BN, ECA, SA
Global pooling 160 × 56 × 56 160 BN, GAP, Flatten
Main classi fier 160 13 Dropout (0.30), FC (160 →80), GELU, Dropout (0.15), FC (80 →13)
¹The auxiliary classi fier branches from MSFA Block 3 and is used only during training.
He et al. 10.3389/fpls.2026.1871587
Frontiers in Plant Science frontiersin.org06

The output features of the three sub-branches are concatenated
along the channel dimension and subsequently compressed via a
1 /C2 1 convolutional layer, yielding the fused feature representation
of the pooling branch, denoted as Fpool . Additionally, a global
average pooling branch compresses the input feature map into a
global semantic vector, which is then spatially expanded to C /C2
H /C2 W through a 1 /C2 1 convolutional layer, producing the global
contextual feature Fɡap to provide image-level semantic information
for subsequent feature fusion.
The dilated convolutional branch focuses on capturing local
multi-scale texture information, while the pooling branch special-
izes in extracting regional semantic information; the two branches
are thus naturally complementary to one another. However, simple
static fusion strategies such as element-wise addition or channel
concatenation are unable to adaptively adjust the contribution
weights of each branch according to the semantic differences
across spatial positions. To this end, a lightweight Cross-
Attention mechanism is introduced to achieve dynamic and mu-
tually complementary fusion of the two-branch features, as illus-
trated in Figure 4c. Specifically, Fdil and Fpool , each with dimensions
C /C2 H /C2 W, are concatenated along the channel dimension to
obtain a 2C /C2 H /C2 W representation. The gating network com-
prises two bias-free 1 × 1 convolutions. The first convolution
reduces the channel dimension from 2C to C g =  max(C=4,  16),
followed by BN and GELU, whereas the second restores the channel
dimension to 2C and applies sigmoid activation. For C = 80, this
bottleneck implements a channel mapping of 160 → 20 → 160.
The resulting representation is divided into two C-channel gating
maps, G1 and G2, which perform complementary modulation of the
two feature streams as expressed in Equations 4 , 5:
^F dil = Fdil ⊙ G1 + Fpool ⊙ (1 − G1) (4)
^F pool = Fpool ⊙ G2 + Fdil ⊙ (1 − G2) (5)
where ⊙ denotes element-wise multiplication, and G1, G2
represent the spatially adaptive gating weights. This dynamic
gating design enables the network to adaptively suppress back-
ground interference and highlight target region features according
to the semantic response intensity at each spatial position, making it
better suited for tobacco pest classifi cation under complex field
conditions. Finally, the three feature representations ^F dil , ^F pool , and
Fɡap are concatenated along the channel dimension and sequentially
refined through ECA and SA modules to produce the final output
features of MSPP. By maintaining the input spatial resolution and
channel dimensionality, MSPP effectively integrates multi-scale
contextual semantics and cross-branch complementary informa-
tion, providing high-quality input representations for the subse-
quent hierarchical feature re finement performed by the HFFB.
3.3 Hierarchical feature fusion block
Following multi-scale feature aggregation by the MSPP module,
the resulting feature representations require further hierarchical
refinement to enhance the network ’s discriminative capacity for
subtle morphological differences among pest species. To this end,
this study designs a HFFB, whose structure is illustrated in Figure 5.
The HFFB consists of a Spatial Gating Feature Modulation (SGFM)
module and a Partial Convolutional Feed-forward Network (PCFN)
connected in series, both of which adopt residual connections,
forming a hierarchical feature enhancement mechanism following
the paradigm of “spatial modulation — partial mapping — residual
fusion”. This design enables the network to effectively capture subtle
textural variations and local morphological characteristics in to-
bacco pest images.
The structure of SGFM is illustrated in Figure 5b. Conventional
feed-forward feature transformations typically process all spatial
positions uniformly, making it dif ficult to adaptively focus on the
key discriminative regions of pest targets (Wang et al., 2025b). SGFM
addresses this limitation by performing adaptive information filter-
ing and modulation of feature maps through a spatial gating
mechanism. Speci fically, the channel dimensionality of the input
features is first expanded to 2C, after which the expanded features are
evenly split along the channel dimension into two streams, Y and Z.
Here, Y is retained as a bypass branch, whereasZ is processed by two
sequential 3 /C2 3 depthwise convolutions to obtain Zdw. The result-
ing feature is processed by a 1 /C2 1 convolution followed by GELU to
generate the gating response, as formulated in Equation 6:
Zdw = BN(DConv3/C23(GELU(BN(DConv3/C23(Z))))),  
Zgate = Zdw ⊙ GELU(Conv1/C21(Zdw))
(6)
FIGURE 4
Structure of multi-scale pyramid pooling.
He et al. 10.3389/fpls.2026.1871587
Frontiers in Plant Science frontiersin.org07

The gating-modulated feature Z ɡate is then added to the gating
branch Y and subsequently projected through a 1 /C2 1 convolutional
layer to complete channel mapping, yielding the output of SGFM as
formulated in Equation 7. This gating design enables the network to
dynamically highlight pest target region features according to the
response intensity at each spatial position, effectively suppressing
interference from complex field backgrounds.
FSGFM = Conv1/C21(Zɡate + Y) (7)
Inspired by the concept of partial convolution ( Liu et al., 2023 ),
this study designs a PCFN, as illustrated in Figure 5c . Unlike
standard feed-forward networks that apply convolutional transfor-
mations to all channels, PCFN processes only a subset of the
expanded features. Speci fically, the 80-channel input is expanded
to 212 channels using an expansion factor of 2.66. With the partial-
convolution ratio set to C p   ¼  0 :5, 106 channels are processed by
the partial pathway, which comprises a 3 × 3 depthwise convolution
followed by a 1 × 1 pointwise convolution, while the remaining 106
channels bypass this operation. The two feature subsets are subse-
quently concatenated and projected back to 80 channels, as formu-
lated in Equation 8:
FPCFN = Conv1/C21(½Fconvp ;F r /C138) (8)
where Fconvp denotes the features of the first Cp channels
processed through the partial convolutional pathway, F r denotes
the directly preserved residual channel features, and ½·; ·/C138 denotes
channel-wise concatenation. This selective convolution strategy
reduces redundant computation while preserving feature expres-
siveness, enabling the model to perform suf ficient nonlinear trans-
formation of high-dimensional features in pest images under
lightweight constraints ( Liu et al., 2022b ).
Through the cascaded collaboration of SGFM and PCFN, HFFB
accomplishes gating-enhanced reinforcement of spatially discrimi-
native features and efficient nonlinear mapping of high-dimensional
representations, while leveraging residual connections to ensure
stable gradient propagation during deep network training. This
design offers targeted advantages for the tobacco pest classi fication
task: the spatial gating modulation of SGFM enables the model to
adaptively focus on key discriminative regions such as wing venation
textures and body color markings, while the partial convolution
strategy of PCFN maintains suf ficient expressive capacity for fine-
grained morphological features while simultaneously constraining
model complexity, thereby enhancing the practical utility of the
model in resource-constrained field deployment scenarios.
3.4 Channel-spatial attention module
During feature extraction, CNNs inevitably capture redundant
information from background clutter and noise, which can impair
pest classification performance. Attention mechanisms can mitigate
this issue by directing the network to focus on informative feature
representations while suppressing irrelevant background and noise
signals, thereby improving classi fication accuracy. Within each
MSPP module, ECA is placed at the end of each of the four
dilated-convolution sub-branches, followed by sequential ECA
and SA re finement after the final MSPP feature fusion. An addi-
tional ECA–SA sequence is placed after the 1 × 1 convolution and
BN in the feature-enhancement module.
The structure of the ECA module is illustrated in Figure 6.
Compared to the SE module ( Hu et al., 2018 ), which relies on two
fully connected layers for channel recalibration, ECA ( Wang et al.,
2020b) introduces a lightweight one-dimensional convolution to
FIGURE 5
Structure of the hierarchical feature fusion block (HFFB). (a) Overall architecture of the HFFB. (b) Detailed structure of the SGFM. (c) Detailed
structure of the PCFN.
He et al. 10.3389/fpls.2026.1871587
Frontiers in Plant Science frontiersin.org08

model local cross-channel interactions, substantially reducing pa-
rameter count while preserving channel attention modeling capa-
bility. Given its high efficiency and low computational cost, the ECA
module is integrated into the proposed network. Speci fically, ECA
first applies global average pooling to the input feature map to
compress spatial information into a channel descriptor vector. The
resulting vector is then reshaped and transposed before being fed
into a one-dimensional convolutional layer with kernel size k, which
captures local interaction information between adjacent channels.
The kernel size k is adaptively determined based on the number of
channels C, as formulated in Equation 9:
k = max log2 C +12/C12/C12/C12/C12 /C12/C12/C12/C12odd,3/C18/C19 (9)
where ·jj odd denotes rounding to the nearest odd number.
Following the one-dimensional convolution, a Sigmoid activation
function is applied to generate the channel attention weights, which
are then multiplied channel-wise with the input feature map to
complete channel-wise feature recalibration.
The structure of the SA module is illustrated in Figure 7. Unlike
the standard CBAM ( Woo et al., 2018 ), which employs a two-
pathway spatial descriptor strategy using only global average
pooling and global max pooling, the SA module in this study
introduces a four-pathway spatial descriptor strategy. Speci fically,
the global channel average, global channel maximum, local 3 /C2 3
average pooling response, and local 3 /C2 3 max pooling response are
concatenated along the channel dimension to construct a four-
channel spatial descriptor map. Compared to the two-pathway
approach, the four-pathway strategy is capable of simultaneously
capturing both global and local spatial saliency information, making
it more effective for localizing small-bodied or partially occluded
pest targets. The resulting descriptor map is subsequently processed
through a 7 /C2 7 convolutional layer, BN, and Sigmoid activation to
generate the spatial attention weights. The core computation is
formulated as Equation 10 :
Ms(F)= s (Conv7/C27(Concat½Fsavɡ, Fsmax, Fsavɡpool , Fsmaxpool /C138)) (10)
where Fsavɡ and Fsmax denote the global channel average and
maximum statistics maps, respectively, Fsavɡpool and Fsmaxpool denote
the local 3 /C2 3 average and max pooling response maps, respec-
tively, and Conv7/C27 denotes the 7 /C2 7 convolutional operation.
Following dual attention re finement by the ECA and SA modules,
the network is able to selectively identify the most discriminative
feature responses for the tobacco-associated categories along the
channel dimension, while simultaneously concentrating spatial
attention on the target-organism regions. This effectively suppresses
FIGURE 6
Structure of ECA.
FIGURE 7
Structure of SA.
He et al. 10.3389/fpls.2026.1871587
Frontiers in Plant Science frontiersin.org09

redundant information introduced by background interference,
providing high-quality feature representations for the classi fication
head.
4 Experimental results and analysis
4.1 Experiment details
Model training and the primary classi fication experiments were
implemented in Python 3.9.0 with PyTorch 1.12.1 under Windows
10. The hardware platform comprised a 12th-generation Intel Core
i5-12600KF CPU and an NVIDIA GeForce RTX 4060 Ti GPU with
16 GB of VRAM. To address class imbalance, Focal Loss ( Lin et al.,
2017) was used with a = 0.25, g = 1.5, and label smoothing of 0.05.
The remaining training hyperparameters, including the optimizer,
learning rate, batch size, and number of epochs, are summarized
in Table 4 .
Except for the transfer-learning baselines reported in Table 5, all
models in this study were trained from random initialization. For
the transfer-learning comparison, MobileNetV3, Ef ficientNet-B0,
DenseNet121, and ViT-Base were initialized with ImageNet-1K
pretrained weights. Their classi fication layers were replaced for the
13-class task, and no backbone layers were frozen during fine-
tuning. The pretrained models were trained using the same dataset
partition and data augmentation procedure for up to 120 epochs
with AdamW, a batch size of 32, an initial learning rate of 8 /C2 10−4,
a weight decay of 2 /C2 10−4, five warm-up epochs, and cosine-
annealing learning-rate scheduling.
Model classification performance was comprehensively evaluated
using four metrics: accuracy (Acc), precision (P), recall (R), and F1-
score (F1). Accuracy measures the proportion of all samples correctly
classified; precision measures the proportion of samples predicted as
belonging to a given category that truly belong to that category; recall
measures the proportion of samples that truly belong to a given
category that are correctly identi fied as such; and F1 represents the
harmonic mean of precision and recall, providing an overall measure
of classification performance. The computational formulas for each
metric are given in Equations 11–14:
Acc = TP + TNTP + TN + FP + FN (11)
P = TPTP + FP (12)
R = TPTP + FN (13)
F1= P /C2 RP + R /C2 2( 1 4 )
where TP denotes the number of samples truly belonging to a
given category and correctly predicted as such; FP denotes the
number of samples that do not truly belong to a given category but
are incorrectly predicted as belonging to it; FN denotes the number
of samples truly belonging to a given category but incorrectly
predicted as belonging to another category; and TN denotes the
number of samples that do not truly belong to a given category and
are correctly predicted as not belonging to it.
4.2 Performance of MSFANet
The loss curves and accuracy curves of MSFANet on the
training and validation sets are presented in Figure 8. As illustrated,
both the training loss and validation loss exhibit a consistent
downward trend with increasing training epochs, while the accu-
racy curve rises steadily and converges after approximately 40
epochs. The training and valid ation curves followed similar
trends, with no marked divergence over the observed epochs,
indicating stable optimization under the adopted data split.
MSFANet was evaluated on the test set and achieved an
accuracy of 97.63%, a macro-precision of 97.89%, a macro-recall
of 97.59%, and a macro-F1 score of 97.71%, with a test loss of
0.0659. These results indicate stable classi fication performance
across the 13 tobacco-associated categories. Figure 9 presents the
confusion matrix, in which the vertical and horizontal axes repre-
sent the true and predicted categories, respectively. The
TABLE 4 Hyperparameter con figuration for model training.
Parameter Value
Optimizer AdamW
Loss Function Focal Loss ( a=0.25, g=1.5)
Training Epochs 120
Warmup Epochs 5
Initial Learning Rate 8e-4
Learning Rate Scheduler Cosine Annealing
Batch size 32
Weight Decay 2e-4
TABLE 5 Comparison of MSFANet trained from scratch and ImageNet-pretrained models on the test set.
Model Initialization Accuracy Precision Recall F1 Param(M)
MSFANet Random 0.9763 0.9789 0.9759 0.9771 1.21
MobileNetV3 ImageNet-1K 0.9845 0.9869 0.9843 0.9855 1.53
EfficientNet-B0 ImageNet-1K 0.9818 0.9838 0.9814 0.9825 4.02
DenseNet121 ImageNet-1K 0.9872 0.9887 0.9874 0.9879 6.97
ViT-Base ImageNet-1K 0.9463 0.9486 0.9480 0.9468 85.81
MSFANet was trained from random initialization, whereas the comparison models were initialized with ImageNet-1K pretrained weights. Their classi fication layers were replaced for the 13-class
task, and no backbone layers were frozen during fine-tuning.
He et al. 10.3389/fpls.2026.1871587
Frontiers in Plant Science frontiersin.org10

predominantly diagonal distribution indicates that most test images
were correctly classi fied. Tobacco budworm showed a relatively
lower classifi cation accuracy than the other categories, which may
be associated with its morphological and chromatic similarity to the
larval stages of other pests. Overall, the results indicate strong test-
set performance across the 13 tobacco-associated categories.
Despite the strong overall classi fication performance, a small
number of test images remained misclassi fied. As shown in
Figure 10 , four representative cases were selected to characterize
these residual errors. Confusion between tobacco budworm and
tobacco cutworm was associated with similar larval body profiles and
longitudinal markings. The aphid sample provided limited discrim-
inative information because the target occupied a small image region
and exhibited low contrast against the leaf surface. In the slug and
cutworm samples, coarse body contours and textures were more
visually prominent than category-speci fic diagnostic features, par-
ticularly against soil backgrounds or in curled postures. These
examples suggest that residual errors mainly occurred in visually
ambiguous cases involving fine-grained inter-class resemblance,
small effective target size, or reduced target –background contrast.
4.3 Comparison with different models
To evaluate the classi fication performance and model compact-
ness of MSFANet, comparative experiments were conducted using
representative CNN, Transformer-, and lightweight architectures.
The original comparison models included ResNet50, DenseNet121,
EfficientNet-B0, MobileNe tV2, MobileNetV3, Shuf fleNetV2,
ConvNeXt-Base, and ViT-Base. In response to recent advances in
mobile-oriented network design, four additional lightweight archi-
tectures were evaluated: FasterNet-T0 ( Chen et al., 2023 ), StarNet-
S150 ( Ma et al., 2024 ), RepViT-M0.9 ( Wang et al., 2024a ), and
MobileNetV4 (Qin et al., 2024). All models reported in Table 6 were
trained from random initialization and evaluated using the same
dataset partition, an input resolution of 224 × 224 pixels, data
augmentation strategy, training protocol, and evaluation metrics.
The ImageNet-pretrained models were evaluated separately under
the transfer-learning protocol described in Section 4.1.
Figure 11 presents the validation accuracy curves of the models
trained from random initialization over 120 training epochs.
Differences in early-stage convergence were observed among the
comparison models, whereas most models gradually entered a stable
region during the later training stage. MSFANet showed a steady
improvement in validation accuracy and remained within the upper-
performing group after approximately 50 epochs. As shown in the
enlarged region from epochs 80 to 120, its validation accuracy was
generally maintained above 96%, with relatively limited epoch-to-
epoch fluctuations. These results indicate that MSFANet achieved
stable convergence under the adopted training protocol.
The test-set results are summarized in Table 6. Among the four
newly added lightweight architectures, RepViT-M0.9 achieved the
highest accuracy and macro-F1 score, reaching 0.9681 and 0.9685,
respectively, with 4.72 M parameters. FasterNet-T0 and StarNet-
S150 both achieved an accuracy of 0.9563, whereas MobileNetV4
achieved an accuracy of 0.9508. MSFANet achieved an accuracy of
0.9763 and a macro-F1 score of 0.9771 with 1.21 M parameters.
Compared with RepViT-M0.9, MSFANet improved accuracy and
macro-F1 by 0.82 and 0.86 percentage points, respectively, while
reducing the parameter count by approximately 74.4%.
Across all evaluated models, MSFANet and DenseNet121
achieved the same highest accuracy of 0.9763, while their macro-
F1 scores were nearly identical (0.9771 and 0.9772, respectively).
However, MSFANet required only 1.21 M parameters, compared
with 6.97 M for DenseNet121, corresponding to an approximately
82.6% reduction. MSFANet also had the lowest parameter count
among all models included in the comparison. These results show
that MSFANet maintained competitive classi fication performance
while providing a favorable balance between predictive perfor-
mance and model compactness.
A separate transfer-learning comparison is reported in Table 5.
ImageNet-pretrained DenseNet121 achieved the highest accuracy
of 0.9872, while pretrained MobileNetV3 and Ef ficientNet-B0 also
achieved higher accuracy than MSFANet. In contrast, ViT-Base
achieved a lower accuracy of 0.9463. MSFANet nevertheless
achieved an accuracy of 0.9763 without external pretraining and
retained the lowest parameter count of 1.21 M. Because the models
were evaluated under different initialization and training regimes,
these results are presented as a complementary transfer-learning
benchmark rather than a controlled architectural comparison.
4.4 Ablation studies
To isolate the contributions of the architectural components
and training strategies, two sets of controlled ablation experiments
FIGURE 8
Training details of the model. (A) Training loss and validation loss of the model. (B) Training accuracy and validation accuracy of the model.
He et al. 10.3389/fpls.2026.1871587
Frontiers in Plant Science frontiersin.org11

were conducted under the same data split, preprocessing pipeline,
and optimization settings ( Table 7). Panel A evaluates the archi-
tectural components. In the strict baseline, the MSPP and HFFB
operations in all five MSFA blocks were replaced with identity
mappings, without introducing surrogate convolutional layers. The
remaining network and training strategy, including Focal Loss and
the auxiliary classifi cation head, were unchanged. Panel B retains
the complete MSFANet architecture while varying the loss function
and auxiliary classifi cation head. Cross-entropy loss used the same
label-smoothing factor of 0.05 as Focal Loss.
As shown in Table 7, Panel A, the strict baseline achieved an
accuracy of 94.81% and a macro-F1 score of 95.01% with 0.202 M
parameters. Introducing MSPP alone increased the accuracy and
macro-F1 score to 97.18% and 97.19%, respectively. HFFB alone
achieved corresponding values of 97.09% and 97.18%. The compa-
rable improvements obtained by the two single-module variants are
consistent with their intended but distinct functions. MSPP aggre-
gates contextual information across multiple receptive fields,
whereas HFFB re fines feature representations through spatial
gating and partial convolution. The complete MSFANet achieved
the highest accuracy of 97.63% and macro-F1 score of 97.71%. It
exceeded the MSPP-only variant by 0.45 and 0.52 percentage points
and the HFFB-only variant by 0.55 and 0.53 percentage points,
respectively. These results indicate that both modules contributed
to the final performance and that retaining them jointly was more
effective than using either module alone.
Panel B evaluates the effects of Focal Loss and the auxiliary
classification head. Without auxiliary supervision, replacing cross-
entropy loss with Focal Loss increased the accuracy from 96.81% to
97.09% and the macro-F1 score from 96.91% to 97.04%. Under
Focal Loss, introducing the auxiliary head further increased the
accuracy to 97.63% and the macro-F1 score to 97.71%. In contrast,
the auxiliary head did not improve accuracy or macro-F1 when
combined with cross-entropy loss. The effect of auxiliary supervi-
sion therefore depended on the loss formulation rather than being
uniform across all training settings. Among the evaluated
FIGURE 9
Confusion matrix for the 13 tobacco-associated categories on the test set.
He et al. 10.3389/fpls.2026.1871587
Frontiers in Plant Science frontiersin.org12

configurations, the combination of Focal Loss and auxiliary super-
vision achieved the best overall performance.
Because green rice bug was the least represented category, with
36 images in the test set, its classi fication results were examined
separately. All four training con figurations correctly classifi ed 35 of
the 36 green rice bug images, corresponding to a recall of 97.22%.
Both cross-entropy con figurations and the complete MSFANet
achieved a precision of 100% and an F1 score of 98.59%. Focal
Loss without auxiliary supervision produced a precision of 94.59%
and an F1 score of 95.89% because two samples from other
categories were incorrectly predicted as green rice bug. Thus,
Focal Loss alone did not provide a consistent class-speci fic
FIGURE 10
Representative misclassi fication cases on the test set. GT, ground truth; Pred, model prediction. (A) Tobacco budworm misclassi fied as tobacco
cutworm. (B) Slug misclassi fied as snail. (C) Aphid misclassi fied as long-winged tree cricket. (D) Cutworm misclassi fied as slug.
TABLE 6 Performance and parameter comparison of models trained from random initialization on the test set.
Model Accuracy Precision Recall F1 Param (M)
ConvNeXt-Base 0.9572 0.9588 0.9590 0.9588 87.58
EfficientNet-B0 0.9636 0.9675 0.9619 0.9642 4.02
MobileNetV2 0.9554 0.9592 0.9548 0.9566 2.24
MobileNetV3 0.9590 0.9635 0.9592 0.9608 1.53
ResNet50 0.9727 0.9743 0.9704 0.9720 23.53
ShuffleNetV2 0.9608 0.9662 0.9612 0.9635 1.27
DenseNet121 0.9763 0.9792 0.9757 0.9772 6.97
ViT-Base 0.9208 0.9162 0.9170 0.9163 85.81
FasterNet-T0 0.9563 0.9603 0.9573 0.9584 2.64
StarNet-S150 0.9563 0.9606 0.9573 0.9584 1.37
RepViT-M0.9 0.9681 0.9686 0.9689 0.9685 4.72
MobileNetV4 0.9508 0.9550 0.9514 0.9524 2.51
MSFANet 0.9763 0.9789 0.9759 0.9771 1.21
Precision, recall, and F1 are unweighted macro-averages across the 13 classes; macro-F1 was obtained by averaging the class-wise F1 scores rather than from macro-precision and macro-recall.
Values were rounded to four decimal places after aggregation. Bold values indicate the highest value, whereas underlined values indicate the second-highest value for each metric.
He et al. 10.3389/fpls.2026.1871587
Frontiers in Plant Science frontiersin.org13

advantage for green rice bug, although it produced modest im-
provements in the overall macro-averaged metrics.
4.5 Visualization analysis and feature
interpretability
To further interpret the discriminative basis of each model,
Grad-CAM ( Selvaraju et al., 2017 ) was employed to visualize the
feature activation regions of different models. ResNet50,
MobileNetV3, and ViT-Base were selected as representative com-
parison models, and test samples were chosen to cover typical
scenarios including simple backgrounds, complex backgrounds,
and visually similar categories. The resulting activation maps are
presented in Figure 12. The heatmaps of ResNet50 and
MobileNetV3 exhibit broadly diffuse high-activation regions with
dispersed energy distributions and noticeable background interfer-
ence responses, indicating inherent limitations in feature focusing
for both models. Although ViT-Base possesses global modeling
capability, its activation regions exhibit fragmented and discrete
distributions, with particularly unstable responses to small pest
targets, suggesting insufficient capacity for fine-grained local feature
capture. In contrast, the activation heatmaps of MSFANet
consistently concentrate high-response regions precisely on the
pest body across all test samples. Compared with the selected
baselines, the MSFANet heatmaps were more concentrated on
visible pest regions in these examples, consistent with more local-
ized feature responses. Nevertheless, Grad-CAM provides qualita-
tive rather than quantitative evidence.
Furthermore, t-SNE dimensionality reduction ( Zhao et al.,
2022) was applied to the test-set features to qualitatively examine
intra-class compactness and inter-class separability. As shown in
Figure 13 , most categories formed relatively compact clusters with
limited overlap. Tobacco budworm and tobacco cutworm remained
relatively close in the two-dimensional projection, consistent with
their morphological similarity and the confusion observed for
tobacco budworm in Figure 9 . Because t-SNE is a nonlinear
visualization method, these patterns are interpreted qualitatively
rather than as quantitative evidence of class separability.
Based on the above results, MSFANet, through the multi-scale
feature aggregation of the MSPP module and the hierarchical
feature re finement of the HFFB module, is capable of forming
clearly separable category structures in the feature space, providing
discriminative feature representations for classifi cation across the
13 tobacco-associated categories.
FIGURE 11
Validation accuracy curves of MSFANet and the comparison models over 120 training epochs. (a) Complete training trajectories; (b) enlarged view of
the transition stage from epochs 20 to 60; and (c) enlarged view of the final convergence stage from epochs 80 to 120.
He et al. 10.3389/fpls.2026.1871587
Frontiers in Plant Science frontiersin.org14

4.6 PC-based deployment benchmark and
dynamic quantization analysis
To assess deployment-oriented inference under controlled CPU
c o n d i t i o n s ,M S F A N e t ,M o b i l eNetV2, MobileNetV3, and
ShuffleNetV2 were independently evaluated in PyTorch FP32,
ONNX FP32, and partially quantized ONNX formats on the same
1, 098-image test set. The experiment used PyTorch 2.2.2, ONNX
1.19.1, ONNX Runtime 1.19.2 with CPUExecutionProvider, and
ONNX opset 13. Inference-only latency was measured on an Intel
TABLE 7 Ablation results for the architectural components and training strategies of MSFANet.
A. Architectural component ablation
MSPP HFFB Loss Aux. Accuracy Precision Recall F1 Param (M)
–– Focal ✓ 0.9481 0.9529 0.9489 0.9501 0.202
✓ – Focal ✓ 0.9718 0.9722 0.9720 0.9719 0.838
– ✓ Focal ✓ 0.9709 0.9736 0.9707 0.9718 0.578
✓✓ Focal ✓ 0.9763 0.9789 0.9759 0.9771 1.213
B. Training-strategy ablation
✓✓ CE – 0.9681 0.9702 0.9683 0.9691 1.212
✓✓ CE ✓ 0.9663 0.9719 0.9668 0.9690 1.213
✓✓ Focal – 0.9709 0.9711 0.9704 0.9704 1.212
✓✓ Focal ✓ 0.9763 0.9789 0.9759 0.9771 1.213
In Panel A, Focal Loss and the auxiliary classification head were retained for all variants. In Panel B, the complete MSFANet architecture was retained. The configuration containing MSPP, HFFB,
Focal Loss, and the auxiliary classi fication head represents the full MSFANet and is repeated as the common reference in both panels. CE denotes cross-entropy loss.
FIGURE 12
Grad-CAM visualizations for MSFANet and the comparison models. Red regions indicate higher model responses.
He et al. 10.3389/fpls.2026.1871587
Frontiers in Plant Science frontiersin.org15

Core i5-12600KF x86 CPU using 224 × 224 inputs, batch size 1, and
one CPU thread. Dynamic quantization was performed using
onnxruntime.quantization.qua ntize_dynamic with per-tensor
signed QInt8 weights, targeting MatMul/Gemm operators. Graph
inspection identifi ed two DynamicQuantizeLinear and two
MatMulInteger operators in MSFANet and MobileNetV3, and one
of each in MobileNetV2 and ShuffleNetV2. No convolution operators
were quantized; hence, this procedure represents partial dynamic
QInt8 quantization rather than full-network INT8 quantization.
As shown in Table 8, MSFANet retained the highest accuracy but
showed higher latency than the three lightweight baselines. ONNX
export reduced its mean latency from 446.12 to 276.71 ms, while
partial dynamic quantization further reduced it to 190.11 ms.
Although this latency remained higher than those of the three
lightweight baselines, the sub-second inference time suggests poten-
tial for photo-based, single-image pest identi fication, where contin-
uous video-rate processing is not required. All three runtime formats
produced identical top-1 predictions for each model in the deploy-
ment benchmark. Accordingly, accuracy and the independently
recalculated macro-precision, macro-recall, and macro-F1 remained
unchanged. Relative to ONNX FP32, the quantized models produced
zero changed predictions and 100% agreement. Nevertheless, their
outputs were not numerically identical. The mean/maximum abso-
lute logit deviations were 0.00660/0.07131 for MSFANet, 0.00944/
0.05575 for MobileNetV2, 0.00400/0.03485 for MobileNetV3, and
0.00896/0.08979 for Shuf fleNetV2. These results con firm indepen-
dent execution while explaining the unchanged classification metrics.
Partial quantization affected model storage and latency differ-
ently across these convolution-dominated networks. For MSFANet,
the model size increased slightly from 4.950 to 5.050 MiB after
quantization. Only two classi fier-side matrix multiplications were
quantized, whereas 167 convolution operators remained in FP32.
The limited reduction in quantized weights, together with the
additional quantization nodes, likely explains the small increase
in file size. The MobileNetV3 CPU evaluation correctly classi fied
one more image than the original GPU mixed-precision evaluation
in Table 6, although the checkpoint, dataset, model architecture,
class mapping, and preprocessing were identical. Table 8 therefore
reports the independently measured CPU result. Finally, these
measurements were obtained on a desktop x86 CPU and do not
represent ARM-based or on-device mobile performance. Evaluation
of device-specific latency, memory consumption, and energy use on
physical mobile hardware remains necessary.
5 Discussion
The performance gains of MSFANet are consistent with distinct
contributions from MSPP and HFFB. MSPP aggregates contextual
information across multiple receptive fields through parallel dilated
FIGURE 13
t-SNE visualization of MSFANet feature distributions on the test set.
He et al. 10.3389/fpls.2026.1871587
Frontiers in Plant Science frontiersin.org16

convolution and multi-scale pooling branches. Such operations can
expand the effective receptive field and improve the representation
of objects with substantial scale variation ( Chen et al., 2018 ; Qian
et al., 2025 ; Deng et al., 2025 ). HFFB further re fines feature
representations through spatial gating and partial convolution,
which may help suppress irrelevant background responses and
preserve discriminative pest features. The concentrated activation
regions observed in the Grad-CAM visualizations are consistent
with this intended re finement function. Importantly, both single-
module variants substantially outperformed the strict baseline,
while the complete con figuration achieved the highest overall
performance. The results therefore support contributions from
both modules but do not indicate that HFFB is effective only in
the presence of MSPP. Because the two single-module variants
achieved similar results, no claim is made that either module
contributed more strongly than the other.
The training-strategy ablation provides a more quali fied assess-
ment of Focal Loss and auxiliary supervision. Focal Loss produced
modest improvements in the overall macro-averaged metrics when
compared with cross-entropy loss without auxiliary supervision.
However, the auxiliary head did not improve accuracy or macro-F1
under cross-entropy loss, whereas its combination with Focal Loss
achieved the best overall results. Moreover, the identical green rice
bug recall across all training settings indicates that the overall
improvement cannot be interpreted as a uniform gain for every
minority category. These findings support the selected training
configuration for overall classi fication performance while also
defining the limits of its class-speci fic benefit.
Multi-scale feature extraction has emerged as an important
research direction in the field of agricultural pest recognition. Wang
et al. (2024b) extracted multi-scale fe atures using a dilated
Inception module combined with an attention mechanism, achiev-
ing a detection accuracy of 92.16% on the IP102 dataset. Peng et al.
(2023) introduced Selective Kernel units to dynamically adjust
receptive fields, attaining a classi fication accuracy of 75.28% on
the HQIP102 dataset. Qian et al. (2025) integrated multi-scale
feature fusion with a hybrid attention mechanism and incorporated
a Transformer module to model global contextual dependencies,
achieving a classi fication accuracy of 75.74% on the IP102 dataset.
Lv et al. (2024) constructed a self-built rice pest and disease dataset
and proposed a Lightweight Multi-scale Feature Extraction
Network, achieving an average classi fication accuracy of 95.38%
with only 1.4 M parameters. Suzauddola et al. (2025) proposed
CMPestNet, validated on the self-constructed jute pest dataset
Jute17 and the Pest24 dataset, where its Generalized Multi-Scale
Feature Extraction module captures fine-grained cross-scale feature
relationships, achieving an mAP of 78.22% on Pest24. Collectively,
these studies demonstrate the value of multi-scale feature extraction
across pest-related computer vision tasks. In comparison, MSFANet
was developed for image-level classi fication across 13 tobacco-
associated categories under field conditions. By integrating the
multi-scale contextual aggregation of MSPP with the hierarchical
feature re finement of HFFB, it achieved an accuracy of 97.63% on
the 13-class task with only 1.21 M parameters.
The present study has three main limitations. First, the dataset
remains class-imbalanced and was collected from speci fic tobacco-
growing environments with limited temporal and climatic coverage.
Generalization under underrepresented conditions, such as intense
illumination, rain, and fog, therefore requires further validation.
Second, the dataset contains multi-individual images and includes
different developmental stages for several categories, but these
attributes were not independently annotated. Their effects on
classification performance could therefore not be evaluated sepa-
rately according to developmental stage, instance count, overlap, or
occlusion severity. Robustness in real-time video streams also
remains unveri fied. Third, MSFANet is a closed-set, single-label
image classifier. This formulation permits multiple individuals from
the same category to share one image-level label, but it cannot
localize or count individuals, distinguish co-occurring categories, or
reject organisms outside the 1 3 trained categories. Anomaly
TABLE 8 Deployment-oriented inference performance under the PC-based x86 CPU setting.
Model Runtime format File size (MiB) Accuracy Latency (ms)
MSFANet
PyTorch FP32 5.025 0.9763 446.12 ± 123.02
ONNX FP32 4.950 0.9763 276.71 ± 6.00
ONNX dynamic QInt8 5.050 0.9763 190.11 ± 79.07
MobileNet V2
PyTorch FP32 8.782 0.9554 45.28 ± 4.44
ONNX FP32 8.524 0.9554 15.05 ± 1.68
ONNX dynamic QInt8 8.491 0.9554 9.29 ± 4.48
MobileNet V3
PyTorch FP32 5.970 0.9599 10.16 ± 1.10
ONNX FP32 5.858 0.9599 2.24 ± 0.28
ONNX dynamic QInt8 4.147 0.9599 2.18 ± 0.27
ShuffleNet V2
PyTorch FP32 5.002 0.9608 11.69 ± 0.91
ONNX FP32 4.869 0.9608 3.56 ± 0.40
ONNX dynamic QInt8 4.857 0.9608 3.59 ± 0.55
Latency is reported as the mean ± standard deviation from three technical timing passes over the 1, 098-image test set, corresponding to 3, 294 inferen ce-only observations per runtime format
after 20 warm-up runs. Measurements were performed using batch size 1 and one CPU thread, excluding image loading and preprocessing. PyTorch file sizes correspond to weights-only state
dictionaries and do not include optimizer states or other training metadata. Dynamic QInt8 denotes partial dynamic quantization of MatMul/Gemm ope rations; convolution operations
remained in FP32.
He et al. 10.3389/fpls.2026.1871587
Frontiers in Plant Science frontiersin.org17

detection or calibrated con fidence thresholds are therefore needed
to reject unfamiliar or uncertain inputs before practical deployment
(Batz et al., 2023 ; Shen et al., 2024 ).
The deployment benchmark was conducted on a desktop x86
CPU and should not be interpreted as an ARM-device simulation.
Runtime, memory use, and model compatibility may differ across
ARM CPUs, embedded NPUs, and Jetson platforms because hard-
ware backends support different operators. Future work will first
enrich the dataset with stage- and instance-level annotations and
more challenging field images or video sequences. MSFANet will
then be extended to detection or segmentation frameworks, together
with con fidence calibration and open-set rejection. Convolution-
aware static quantization, quantization-aware training, and struc-
tured pruning will also be investigated for platform-speci fic acceler-
ation (Zhang and Lv, 2024). The optimized models will be evaluated
on physical edge devices using latency, peak memory, energy
consumption, and prediction stability as deployment criteria.
6 Conclusions
This study presents MSFANet, a multi-scale feature aggregation
network for tobacco pest recognition, which is formulated as single-
label image classification in this work. The network was designed to
address substantial variation in pest scale, complex field back-
grounds, and class imbalance. The core architecture of the proposed
model combines two task-oriented modules: MSPP, which captures
cross-scale spatial contextual features in images of tobacco-associ-
ated organisms through parallel feature extraction via dilated con-
volutional branches and multi-scale pooling branches, combined
with a lightweight cross-attention fusion mechanism; and HFFB,
which achieves efficient hierarchical feature re finement under light-
weight constraints through the cascaded integration of SGFM and
PCFN. MSFANet achieved a classification accuracy of 97.63% on the
13-class task with only 1.21 M parameters and without external
pretraining, demonstrating a favorable balance between classification
performance and model compactness. These findings support its
potential use in automated monitoring of tobacco pests and natural
enemies. The current dataset was collected from speci fic tobacco
field environments, and both the number of tobacco-associated
categories and the diversity of field scenarios remain limited,
warranting further expansion. Future work will expand the dataset
across more diverse field environments and investigate convolution-
aware static quantization, quantization-aware training, and struc-
tured pruning. These approaches will subsequently be evaluated on
physical ARM-based mobile and edge devices to characterize latency,
memory consumption, energy ef ficiency, and classi fication stability
under realistic deployment conditions.
Data availability statement
The original contributions presented in the study are included
in the article/supplementary material. Further inquiries can be
directed to the corresponding authors.
Author contributions
SH: Writing – original draft, Conceptu alization, Software,
Methodology, Validation, Data curation. SL: Software, Writing –
original draft, Methodology, Formal analysis. XL: Data curation,
Investigation, Resources, Writing – review & editing. QL:
Methodology, Data curation, Formal analysis, Visualization, Writing–
original draft. SD: Writing – review & editing, Con ceptualization,
Methodology, Project administration, Supervision. LL: Investigation,
Writing – review & editing, Data curation, Formal analysis,
Visualization. XC: Resources, Writing – review & editing,
Investigation, Supervision. LC: I nvestigation, Resources, Writing –
review & editing, Data curat i o n .J M :R e s o u r c e s ,W r i t i n g– review &
editing, Data curation, Investigation. NL: Writing– review & editing,
Data curation, Resources, Investigation. HW: Data curation, Formal
analysis, Project administration, Resources, Writing– review & editing.
Funding
The author(s) declared thatfinancial support was received for this
work and/or its publication. This research was financed by Guizhou
Tobacco Pest and Disease Intelligent Diagnosis and Forecasting
System Construction Project, Guizhou Tobacco Company
Foundation (2026XM23, 2024XM06), National Natural Science
Foundation of China (3246069 8, 32160522), China National
Tobacco Corporation Fou ndation [110202101048(LS-08)],
‘Hundred’ Level Innovative Talent Foundation of Guizhou Province
[GCC(2022)028-2, GCC(2023)108], Guizhou Science Technology
Foundation [Qiankehe Talent Platform-CXTD(2023)021], Guizhou
Province Applied Technology Research and Development Funding
Post-subsidy Project. The author(s) declared that this work received
funding from Guizhou Tobacco Company Foundation and China
National Tobacco Corporation Foundation. The funders were not
involved in the study design, collection, analysis, interpretation of data,
the writing of this article, or the decision to submit it for publication.
Conflict of interest
Authors XL and QL were employed by Qiannan Branch of
Guizhou Tobacco Company.
The remaining 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
intelligence and reasonable e fforts have been made to ensure
accuracy, including review by the authors wherever possible. If
you identify any issues, please contact us.
He et al. 10.3389/fpls.2026.1871587
Frontiers in Plant Science frontiersin.org18

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
organizations, 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.
References
Aravind, K., Raja, P., Mukesh, K., Aniirudh, R., Ashiwin, R., and Szczepanski, C. (2018).
“Disease classification in maize crop using bag of features and multiclass support vector
machine,” in Proceedings of the 2018 2nd International Conference on Inventive Systems
and Control (ICISC) (Piscataway, NJ: IEEE), 1191 –1196.
Batz, P., Will, T., Thiel, S., Ziesche, T. M., and Joachim, C. (2023). From identi fication
to forecasting: the potential of image recognition and arti ficial intelligence for aphid
pest monitoring. Front. Plant Sci. 14, 1150748. doi: 10.3389/fpls.2023.1150748
Chen, J., Kao, S.-H., He, H., Zhuo, W., Wen, S., Lee, C.-H., et al. (2023). “Run, don ’t
walk: chasing higher FLOPS for faster neural networks, ” in Proceedings of the IEEE/
CVF Conference on Computer Vision and Pattern Recognition (CVPR) (Piscataway, NJ:
IEEE), 12021 –12031. doi: 10.1109/CVPR52729.2023.01157
Chen, L.-C., Zhu, Y., Papandreou, G., Schroff, F., and Adam, H. (2018). “Encoder-
decoder with atrous separable convolution for semantic image segmentation, ” in
Proceedings of the European Conf erence on Computer Vision (ECCV) (Cham:
Springer), 801 –818.
Deng, L., Fang, D., Ullah, A., Hou, Q., and Yu, H. (2025). AMS-YOLO: multi-scale
feature integration for intelligent plant protection against maize pests. Front. Plant Sci.
16, 1640405. doi: 10.3389/fpls.2025.1640405
Dong, Z., Wei, X., Wu, Y., Guo, J., and Zeng, Z. (2024). Enhanced pest recognition
using multi-task deep learning with the discriminative attention multi-network. Appl.
Sci. 14, 5543. doi: 10.3390/app14135543
Ebrahimi, M. A., Khoshtaghaza, M. H., Minaei, S., and Jamshidi, B. (2017). Vision-
based pest detection based on SVM classification method. Comput. Electron. Agric. 137,
52–58. doi: 10.1016/j.compag.2017.03.016
Faithpraise, F., Birch, P., Young, R., Obu, J., Faithpraise, B., and Chatwin, C. (2013).
Automatic plant pest detection and recognition using k-means clustering algorithm
and correspondence filters. Int. J. Adv. Bio/Technol. Res. 4, 189 –199.
Guizhou Provincial Department of Agriculture and Rural Affairs (2024). Statistical
Bulletin of Guizhou Tobacco Production in 2023. Available online at: https://hgk.
guizhou.gov.cn/publish/tj/2024/zk/indexch.htm (Accessed March 30, 2026).
Han, S.-L., Zhang, P.-F., Lu, Y., Zhang, J.-J., Liu, G., Dai, Y.-Y., et al. (2024).
Optimization of crop planting structure in Guizhou based on the water-energy-food
nexus. Chin. J. Agrometeorol. 45, 1426–1437. doi: 10.3969/j.issn.1000-6362.2024.12.004
Hu, J., Shen, L., and Sun, G. (2018). “Squeeze-and-excitation networks,” in Proceedings
of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR)
(Piscataway, NJ: IEEE), 7132 –7141. doi: 10.1109/CVPR.2018.00745
Hu, H., Yu, C., Zhou, Q., Guan, Q., and Feng, H. (2024). HDConv: heterogeneous
kernel-based dilated convolutions. Neural Networks 179, 106568. doi: 10.1016/
j.neunet.2024.106568
Jia, S., Wang, P., and Jia, P. (2017). “Research on data augmentation for image
classification based on convolution neural networks, ” in Proceedings of the 2017
Chinese Automation Congress (CAC) (Piscataway, NJ: IEEE), 4165 –4170.
doi: 10.1109/CAC.2017.8243510
Kasinathan, T., and Uyyala, S. R. (2021). Machine learning ensemble with image
processing for pest identification and classification in field crops. Neural Comput. Appl.
33, 7491 –7504. doi: 10.1007/s00521-020-05497-z
Lin, J., Chen, X., Cai, J., Pan, R., Cernava, T., Migheli, Q., et al. (2023). Looking from
shallow to deep: hierarchical complementary networks for large scale pest identi fica-
tion. Comput. Electron. Agric. 214, 108342. doi: 10.1016/j.compag.2023.108342
Lin, J., Chen, X., Pan, R., Cao, T., Cai, J., Chen, Y., et al. (2022a). GrapeNet: a
lightweight convolutional neural network model for identi fication of grape leaf
diseases. Agriculture 12, 887. doi: 10.3390/agriculture12060887
Lin, J., Chen, Y., Pan, R., Cao, T., Cai, J., Yu, D., et al. (2022b). CAMFFNet: a novel
convolutional neural network model for tobacco disease image recognition. Comput.
Electron. Agric. 202, 107390. doi: 10.1016/j.compag.2022.107390
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) (Piscataway, NJ: IEEE), 2980 –2988.
Liu, G., Dundar, A., Shih, K. J., Wang, T. C., Reda, F. A., Sapra, K., et al. (2023). Partial
convolution for padding, inpainting, and image synthesis. IEEE Trans. Pattern Anal.
Mach. Intell. 45, 6096 –6110. doi: 10.1109/TPAMI.2022.3209702
Liu, C., Liu, Y., Li, F., Wang, J., Liu, Z., Nie, W., et al. (2024). Intelligent recognition of
tobacco leaf diseases based on YOLOv5. Chin. Tobacco Sci. 45, 93–101. doi: 10.13496/
j.issn.1007-5119.2024.03.013
Liu, Z., Mao, H., Wu, C. Y., Feichtenhofer, C., Darrell, T., and Xie, S. (2022b). “A
convnet for the 2020s,” in Proceedings of the IEEE/CVF Conference on Computer Vision
and Pattern Recognition (CVPR) (Piscataway, NJ: IEEE), 11976 –11986.
Liu, Y., Zhang, X., Gao, Y., Qu, T., and Shi, Y. (2022a). Improved CNN method for crop
pest identification based on transfer learning. Comput. Intell. Neurosci. 2022, 9709648.
doi: 10.1155/2022/9709648
Lv, P., Xu, H., Zhang, Y., Zhang, Q., Pan, Q., Qin, Y., et al. (2024). An improved multi-
scale feature extraction network for rice disease and pest recognition. Insects 15, 827.
doi: 10.3390/insects15110827
Ma, X., Dai, X., Bai, Y., Wang, Y., and Fu, Y. (2024). “Rewrite the stars,” in Proceedings
of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR)
(Piscataway, NJ: IEEE), 5694 –5703. doi: 10.1109/CVPR52733.2024.00544
Nanni, L., Manfè, A., Maguolo, G., Lumini, A., and Brahnam, S. (2022). High
performing ensemble of convolutional neural networks for insect pest image detection.
Ecol. Inform. 67, 101515. doi: 10.1016/j.ecoinf.2021.101515
Pattnaik, G., and Parvathi, K. (2022). Machine learning-based approaches for tomato
pest classi fication. TELKOMNIKA Telecommun. Comput. Electron. Control 20, 321 –
328. doi: 10.12928/TELKOMNIKA.v20i2.19740
Peng, H., Xu, H., Gao, Z., Zhou, Z., Tian, X., Deng, Q., et al. (2023). Crop pest image
classification based on improved densely connected convolutional network. Front.
Plant Sci. 14, 1133060. doi: 10.3389/fpls.2023.1133060
Qian, Y., Xiao, Z., and Deng, Z. (2025). Fine-grained crop pest classi fication based on
multi-scale feature fusion and mixed attention mechanisms. Front. Plant Sci. 16,
1500571. doi: 10.3389/fpls.2025.1500571
Qin, D., Leichner, C. H., Delakis, M., Fornoni, M., Luo, S., Yang, F., et al. (2024).
“MobileNetV4: universal models for the mobile ecosystem, ” in Computer Vision –
ECCV 2024, Lecture Notes in Computer Science , vol. 15098. (Springer, Cham), 78 –96.
doi: 10.1007/978-3-031-73661-2_5
Rabb, R. L., Todd, F. A., and Ellis, H. C. (1976). “Tobacco pest management, ” in
Integrated Pest Management . Eds. J. L. Apple and R. F. Smith (Springer, Boston, MA),
71–106.
Selvaraju, R. R., Cogswell, M., Das, A., Vedantam, R., Parikh, D., and Batra, D. (2017).
“Grad-CAM: visual explanations from deep networks via gradient-based localization, ”
in Proceedings of the IEEE International Conference on Computer Vision (ICCV)
(Piscataway, NJ: IEEE), 618 –626. doi: 10.1109/ICCV.2017.74
Shen, Y., Hossain, M. Z., Ahmed, K. A., and Rahman, S. (2024). An open set model for
pest identi fication. Comput. Biol. Chem. 108, 108002. doi: 10.1016/
j.compbiolchem.2023.108002
Sun, D., Zhang, K., Zhong, H., Xie, J., Xue, X., Yan, M., et al. (2024). Ef ficient tobacco
pest detection in complex environments using an enhanced YOLOv8 model.
Agriculture 14, 353. doi: 10.3390/agriculture14030353
Suzauddola, M., Zhang, D., Zeb, A., Chen, J., Wei, L., and Rayhan, A. B. M. S. (2025).
Advanced deep learning model for crop-speci fic and cross-crop pest identi fication.
Expert Syst. Appl. 274, 126896. doi: 10.1016/j.eswa.2025.126896
Upadhyay, A., Chandel, N. S., and Singh, K. P. (2025). Deep learning and computer
vision in plant disease detection: a comprehensive review of techniques, models, and
trends in precision agriculture.Artif. Intell. Rev. 58, 92. doi: 10.1007/s10462-024-11100-x
Wang, A., Chen, H., Lin, Z., Han, J., and Ding, G. (2024a). “RepViT: revisiting mobile
CNN from ViT perspective, ” in Proceedings of the IEEE/CVF Conference on Computer
Vision and Pattern Recognition (CVPR) (Piscataway, NJ: IEEE), 15909 –15920.
doi: 10.1109/CVPR52733.2024.01506
Wang, X., Hu, C., Wang, X., Zha, H., Chen, X., Yuan, S., et al. (2025b). Research on
multi class pests identification and detection based on fusion attention mechanism with
Mask-RCNN-CBAM. Front. Agron. 7, 1578412. doi: 10.3389/fagro.2025.1578412
Wang, J., Li, Y., Feng, H., Ren, L., Du, X., and Wu, J. (2020a). Common pests image
recognition based on deep convolutional neural network. Comput. Electron. Agric. 179,
105834. doi: 10.1016/j.compag.2020.105834
Wang, Q., Wu, B., Zhu, P., Li, P., Zuo, W., and Hu, Q. (2020b). “ECA-Net: efficient
channel attention for deep convolutional neural networks, ” in Proceedings of the IEEE/
CVF Conference on Computer Vision and Pattern Recognition (CVPR) (Piscataway, NJ:
IEEE), 11534–11542.
Wang, S., Xu, D., Liang, H., Bai, Y., Li, X., Zhou, J., et al. (2025a). Advances in deep
learning applications for plant disease and pest detection: a review. Remote Sens. 17,
698. doi: 10.3390/rs17040698
He et al. 10.3389/fpls.2026.1871587
Frontiers in Plant Science frontiersin.org19

Wang, X., Zhang, S., and Zhang, T. (2024b). Crop insect pest detection based on dilated
multi-scale attention U-Net. Plant Methods 20, 34. doi: 10.1186/s13007-024-01163-w
Wei, D., Chen, J., Luo, T., Long, T., and Wang, H. (2022). Classi fication of crop pests
based on multi-scale feature fusion. Comput. Electron. Agric. 194, 106736. doi: 10.1016/
j.compag.2022.106736
Woo, S., Park, J., Lee, J.-Y., and Kweon, I. S. (2018). “CBAM: convolutional block
attention module, ” in Proceedings of the European Conference on Computer Vision
(ECCV), Lecture Notes in Computer Science , vol. 11211. (Springer, Cham), 3 –19.
doi: 10.1007/978-3-030-01234-2_1
Xiao, D., Feng, J., Lin, T., Pang, C., and Ye, Y. (2018). Classi fication and recognition
scheme for vegetable pests based on the BOF-SVM model. Int. J. Agric. Biol. Eng. 11,
190–196. doi: 10.25165/j.ijabe.20181103.3477
Yang, C., Wang, Y., Yun, L., Wang, H., Han, Y., and Chen, Z. (2025). IP-YOLOv8: a
multi-scale pest detection algorithm for field-scale applications. Horticulturae 11, 1109.
doi: 10.3390/horticulturae11091109
Ye, Y., Huang, Q., Rong, Y., Yu, X., Liang, W., Chen, Y., et al. (2023). Field detection of
small pests through stochastic gradient descent with genetic algorithm. Comput.
Electron. Agric. 206, 107694. doi: 10.1016/j.compag.2023.107694
Zhang, Y., and Lv, C. (2024). TinySegformer: a lightweight visual segmentation model
for real-time agricultural pest detection. Comput. Electron. Agric. 218, 108740.
doi: 10.1016/j.compag.2024.108740
Zhao, S., Liu, J., Bai, Z., Hu, C., and Jin, Y. (2022). Crop pest recognition in real
agricultural environment using convolutional neural networks by a parallel attention
mechanism. Front. Plant Sci. 13, 839572. doi: 10.3389/fpls.2022.839572
He et al. 10.3389/fpls.2026.1871587
Frontiers in Plant Science frontiersin.org20

论文原文与出版信息

Frontiers in Plant Science
查看论文原文

继续探索