农业大数据学报 ›› 2026, Vol. 8 ›› Issue (3): 296-304.doi: 10.19788/j.issn.2096-6369.000141

• 数据处理与分析 • 上一篇    下一篇

基于多阶特征聚合的小样本虫害检测

曹佩佩(), 李贺*(), 任保见*()   

  1. 商丘学院计算机工程学院, 河南 商丘 476000

Few-Shot Pest Detection via Multi-Order Feature Aggregation

CAO PeiPei(), LI He*(), REN BaoJian*()   

  1. ShangQiu University, College of Computer Engineering, Shangqiu 476000, Henan, China
  • Received:2025-11-23 Accepted:2025-12-08 Published:2026-09-26 Online:2026-10-08

摘要:

在实际农田场景中,部分虫害因难以采集而导致样本数量稀少,传统检测方法难以在小样本条件下获得可靠的检测与分类效果。本研究旨在针对小样本虫害检测问题,提升模型的泛化能力与检测性能。构建了包含13类虫害的AgriPest-13数据集,其中包括11类常见虫害与2类少样本虫害(分别仅含10张与30张图像)。在此基础上,提出改进的小样本检测方法FSD-MOGA(Few-Shot Detection with Multi-Order Gated Aggregation)。该方法以小样本检测模型MPSR为基础,引入多阶门控聚合模块(MOGA)以增强复杂背景下的特征表征能力,并加入中心损失(Center Loss)以优化分类特征分布。实验表明,FSD-MOGA在小样本场景下表现优异,尤其在仅有极少样本的类别中表现更为稳定和准确:10-shot实验中mAP达到37.0%,较基线模型MPSR提升9.4%,AP50、AP75分别达到57.8%和29.9%;30-shot实验中mAP进一步提升至44.0%,较MPSR提高2.6%,AP50、AP75升至73.6%和45.5%。FSD-MOGA能有效缓解虫害样本稀缺带来的检测困难,为实际农田场景下的小样本虫害智能检测提供了一种可行且有效的技术方案。

关键词: 小样本检测, 虫害识别, 特征聚合, Center Loss, 智慧农业

Abstract:

In real farmland scenarios, some pest species are difficult to collect, resulting in very limited sample sizes. Traditional detection methods struggle to achieve reliable detection and classification performance under such few-shot conditions. This study aims to address the problem of few-shot pest detection by improving the model’s generalization ability and detection performance. A dataset named AgriPest-13 containing 13 pest categories was constructed, including 11 common pest species and 2 few-shot pests with only 10 and 30 images respectively. Based on this dataset, an improved few-shot detection method, FSD-MOGA (Few-Shot Detection with Multi-Order Gated Aggregation), is proposed. The method is developed upon the classic few-shot detection model MPSR, integrating a Multi-Order Gated Aggregation (MOGA) module to enhance feature representation under complex backgrounds and incorporating Center Loss to optimize the distribution of classification features. Compared with the original MPSR model, FSD-MOGA achieves significant performance improvements in few-shot pest detection tasks, particularly demonstrating more stable and accurate detection for categories with extremely limited samples. FSD-MOGA effectively alleviates the detection challenges caused by scarce pest samples and provides a feasible and efficient solution for intelligent pest detection in real agricultural environments with limited data.

Key words: few-shot detection, pest recognition, feature aggregation, Center Loss, smart agriculture