高级检索+

基于YOLOv11n-BIP的水稻小目标虫害检测方法

A small-target rice pest detection method based on YOLOv11n-BIP

  • 摘要: 为解决精准农业中水稻虫害自动检测面临的小目标在密集分布与复杂田间背景下容易出现检测精度下降、漏检率升高和定位偏移等问题,该研究提出一种针对小目标虫害的平衡信息保留金字塔检测模型 YOLOv11n-BIP(balanced information-preserving pyramid)。模型从特征提取、下采样与注意力机制3个维度进行优化:1)引入CSPHet异构卷积模块,以增强多尺度纹理特征表达能力;2)设计ADown 信息保留型下采样路径,以减轻下采样过程中的语义信息丢失;3)在检测头前嵌入EMA(efficient multi-scale attention)高效多尺度注意力模块,以抑制背景噪声、提升小目标聚焦能力。试验结果表明:在包含11类水稻害虫的数据集上,YOLOv11n-BIP 的精确率由 79.6% 提升至 82.5%,mAP@0.5 由 76.8% 提升至 79.9%,分别较 YOLOv11n 基线模型提升 2.9 和 3.1 个百分点;模型参数量为 2.604 M,在统一推理环境下检测速度达到46.8帧/s。该模型在小目标检测任务中实现了精度与效率的平衡,为稻田虫害的智能监测和识别提供了高效、可部署的技术方案,对智慧农业中边缘计算平台的应用具有推广价值。

     

    Abstract: In modern precision agriculture, rapid and reliable rice pest detection is essential for reducing yield loss, supporting timely field management, and decreasing excessive chemical pesticide application. However, automatic pest detection in paddy fields remains challenging because rice pests usually appear as small targets with weak texture, limited pixel occupancy, irregular posture, and dense spatial distribution. In real field images, dynamic natural illumination, overlapping rice leaves, water-surface reflection, motion blur, and background textures similar to pest bodies often cause missed detections, false detections, and localization deviation. Existing agricultural object detection models have achieved promising progress, but many methods improve accuracy by introducing complex attention mechanisms or heavy detection heads, which may increase computational cost and limit deployment on edge devices. Lightweight models, on the other hand, may lose fine-grained target features during downsampling, resulting in insufficient representation of small rice pests. To address these problems, this study proposes a lightweight small-target rice pest detection model named YOLOv11n-BIP, where BIP denotes a Balanced Information-preserving Pyramid designed to coordinate feature extraction, information-preserving downsampling, and pre-detection feature recalibration.The proposed YOLOv11n-BIP model is constructed on the YOLOv11n baseline and optimized from three complementary aspects. First, a Cross Stage Partial Heterogeneous convolution module (CSPHet) is introduced into the backbone and neck feature extraction units. By combining heterogeneous convolution kernels with cross-stage information fusion, CSPHet enhances multi-scale texture representation while maintaining a compact structure, which helps the network distinguish small pest bodies from rice leaves and complex field backgrounds. Second, an ADown information-preserving downsampling path is designed for the bottom-up feature aggregation process. Compared with standard stride-2 convolution or pooling, ADown uses parallel convolution and pooling branches to retain local edge responses and salient texture information during spatial resolution reduction, thereby reducing the risk that small pest features disappear in deeper feature layers. Third, an Efficient Multi-scale Attention (EMA) module is embedded before the detection heads at the P3, P4, and P5 scales. EMA does not replace the prediction head or participate in final decoding; instead, it recalibrates the neck output features before classification and regression, suppressing non-target activations caused by water reflection, leaf occlusion, and background noise while strengthening responses in pest regions.Experiments were conducted on a rice pest image dataset containing 4 553 images and 11 pest categories, with the data divided into training, validation, and test sets by stratified random sampling at an approximate ratio of 7:2:1. All compared models were trained under the same input resolution, training epochs, optimization settings, and data augmentation strategies to ensure fairness. The experimental results show that YOLOv11n-BIP achieves better detection accuracy while preserving lightweight characteristics. Compared with the original YOLOv11n baseline, the proposed model improves precision by 2.9 percentage points and mAP@0.5 by 3.1 percentage points, increasing mAP@0.5 from 76.8% to 79.9%. The model contains only 2.604 M parameters and reaches 46.8 FPS under the same inference environment. Ablation experiments further demonstrate that CSPHet, ADown, and EMA contribute complementary improvements: CSPHet strengthens fine-grained feature extraction, ADown improves information retention during feature transmission, and EMA enhances robustness under complex backgrounds. Confusion matrix analysis also indicates improved recognition for small targets and relatively scarce categories, such as Phlaeothripidae, Chloropidae, and Ephydridae.In summary, YOLOv11n-BIP achieves a favorable balance between detection accuracy, model size, and inference efficiency. The model provides an effective technical solution for small-target rice pest detection in complex paddy-field scenarios and offers practical support for intelligent pest monitoring, edge deployment, and precision pest control in smart agriculture.

     

/

返回文章
返回