SFCE-VT: Spatial feature fusion and contrast-enhanced visual transformer for fine-grained agricultural pests visual classification

IF 7.7 1区 农林科学 Q1 AGRICULTURE, MULTIDISCIPLINARY
JianPing Liu , Lulu Sun , Guomin Zhou , Jian Wang , Jialu Xing , Chenyang Wang
{"title":"SFCE-VT: Spatial feature fusion and contrast-enhanced visual transformer for fine-grained agricultural pests visual classification","authors":"JianPing Liu ,&nbsp;Lulu Sun ,&nbsp;Guomin Zhou ,&nbsp;Jian Wang ,&nbsp;Jialu Xing ,&nbsp;Chenyang Wang","doi":"10.1016/j.compag.2025.110371","DOIUrl":null,"url":null,"abstract":"<div><div>Climate change has led to the intensification of agricultural pests, which are diverse and difficult to identify accurately, and fine-grained classification of agricultural pests is an important method to effectively prevent and control the increasing number of pests, and to ensure the stability and sustainable development of agricultural production. Agricultural pest species can be accurately recognized using deep learning, but current problems such as the small scale agricultural pest data, single scene, and relatively coarse classification results bring challenges to fine-grained image classification of agricultural pests. Therefore, a visual transformer based on spatial feature fusion and contrast enhancement (SFCE-VT) is proposed for fine-grained image classification(FGIC) methods for agricultural pests. First, to accurately localize to the target location, two images, the foreground target, and the occluded background, are cropped using the self-attention mechanism to form three image inputs to complement the detail representation. To further distinguish the foreground target from the background noise, the inputs of three different images are utilized to compare the loss values to enhance the model’s ability to distinguish the foreground target from the background. In addition, to address the challenge of pest recognition from different viewpoints, a self-attention mechanism and graph convolutional network (GCN) are utilized to extract spatial contextual information of the pest region and learn the spatial gesture features of the pests. The experimental results achieved significant performance improvement on both CUB-200-2011 and A-pests, a reconstructed agricultural fine-grained pest dataset, by 1.95% and 3.23% compared to the base vit, respectively. The effectiveness of the cropping contrast enhancement and spatial information learning modules in paying attention to fine-grained features and enriching pest feature information is demonstrated. The source code is publicly available at <span><span>https://github.com/193lulu/SFCE-VT</span><svg><path></path></svg></span>.</div></div>","PeriodicalId":50627,"journal":{"name":"Computers and Electronics in Agriculture","volume":"236 ","pages":"Article 110371"},"PeriodicalIF":7.7000,"publicationDate":"2025-04-19","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Computers and Electronics in Agriculture","FirstCategoryId":"97","ListUrlMain":"https://www.sciencedirect.com/science/article/pii/S0168169925004776","RegionNum":1,"RegionCategory":"农林科学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q1","JCRName":"AGRICULTURE, MULTIDISCIPLINARY","Score":null,"Total":0}
引用次数: 0

Abstract

Climate change has led to the intensification of agricultural pests, which are diverse and difficult to identify accurately, and fine-grained classification of agricultural pests is an important method to effectively prevent and control the increasing number of pests, and to ensure the stability and sustainable development of agricultural production. Agricultural pest species can be accurately recognized using deep learning, but current problems such as the small scale agricultural pest data, single scene, and relatively coarse classification results bring challenges to fine-grained image classification of agricultural pests. Therefore, a visual transformer based on spatial feature fusion and contrast enhancement (SFCE-VT) is proposed for fine-grained image classification(FGIC) methods for agricultural pests. First, to accurately localize to the target location, two images, the foreground target, and the occluded background, are cropped using the self-attention mechanism to form three image inputs to complement the detail representation. To further distinguish the foreground target from the background noise, the inputs of three different images are utilized to compare the loss values to enhance the model’s ability to distinguish the foreground target from the background. In addition, to address the challenge of pest recognition from different viewpoints, a self-attention mechanism and graph convolutional network (GCN) are utilized to extract spatial contextual information of the pest region and learn the spatial gesture features of the pests. The experimental results achieved significant performance improvement on both CUB-200-2011 and A-pests, a reconstructed agricultural fine-grained pest dataset, by 1.95% and 3.23% compared to the base vit, respectively. The effectiveness of the cropping contrast enhancement and spatial information learning modules in paying attention to fine-grained features and enriching pest feature information is demonstrated. The source code is publicly available at https://github.com/193lulu/SFCE-VT.
SFCE-VT:空间特征融合和对比度增强视觉变压器用于细粒度农业害虫视觉分类
气候变化导致农业害虫加剧,害虫种类繁多且难以准确识别,农业害虫精细化分类是有效防控日益增多的害虫、保障农业生产稳定和可持续发展的重要方法。利用深度学习可以准确识别农业害虫种类,但目前存在农业害虫数据规模小、场景单一、分类结果相对粗糙等问题,给农业害虫图像精细分类带来了挑战。因此,本文提出了一种基于空间特征融合和对比度增强的视觉变换器(SFCE-VT),用于农业害虫的细粒度图像分类(FGIC)方法。首先,为了精确定位目标位置,利用自注意机制对前景目标和遮挡背景这两幅图像进行裁剪,形成三幅图像输入,以补充细节表示。为了进一步区分前景目标和背景噪声,利用三幅不同图像的输入来比较损失值,以增强模型区分前景目标和背景的能力。此外,针对从不同视角识别害虫的挑战,利用自注意机制和图卷积网络(GCN)提取害虫区域的空间上下文信息,并学习害虫的空间手势特征。实验结果表明,在 CUB-200-2011 和 A-pests(一种重建的农业细粒度害虫数据集)上的性能有了显著提高,与基础 vit 相比,分别提高了 1.95% 和 3.23%。这证明了作物对比度增强模块和空间信息学习模块在关注细粒度特征和丰富害虫特征信息方面的有效性。源代码可通过 https://github.com/193lulu/SFCE-VT 公开获取。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
Computers and Electronics in Agriculture
Computers and Electronics in Agriculture 工程技术-计算机:跨学科应用
CiteScore
15.30
自引率
14.50%
发文量
800
审稿时长
62 days
期刊介绍: Computers and Electronics in Agriculture provides international coverage of advancements in computer hardware, software, electronic instrumentation, and control systems applied to agricultural challenges. Encompassing agronomy, horticulture, forestry, aquaculture, and animal farming, the journal publishes original papers, reviews, and applications notes. It explores the use of computers and electronics in plant or animal agricultural production, covering topics like agricultural soils, water, pests, controlled environments, and waste. The scope extends to on-farm post-harvest operations and relevant technologies, including artificial intelligence, sensors, machine vision, robotics, networking, and simulation modeling. Its companion journal, Smart Agricultural Technology, continues the focus on smart applications in production agriculture.
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术官方微信