高级检索+

面向复杂大田环境的冬小麦幼苗检测与计数方法

Winter wheat seedling detection and counting method for complex field environments

  • 摘要: 为实现复杂大田环境下冬小麦幼苗的快速检测与计数,获取出苗率等关键苗情信息,该研究提出一种基于改进YOLOv8n的轻量化检测与计数方法。研究以物联网近地面影像、无人机航拍影像和手机获取的可见光图像,构建了两种典型光照条件下不同出苗期的冬小麦图像数据集。设计YOLOv8n-GC-S(ghost-convolutional block attention module-small object detection layer YOLOv8n)模型:1)采用GhostNet轻量化主干网络替换原结构,以降低模型复杂度,使模型参数量降低28.1%;2)在主干与颈部网络间引入卷积注意力模块CBAM(convolutional block attention module),增强模型对幼苗特征的表达能力,在GhostNet轻量化模型基础上,mAP@0.5提高9.4个百分点;3)增加小目标检测层,提升对弱小幼苗的识别能力,在GhostNet轻量化模型基础上,mAP@0.5提高12.6个百分点。试验结果表明,YOLOv8n-GC-S模型的精确率、召回率和平均精度均值mAP@0.5分别达到92.1%、80.0%和86.2%,相较于基线YOLOv8n模型分别提高了2.3、5.9和2.9个百分点,在不同光照条件下平均漏检率下降4.1个百分点。在参数量及模型文件大小分别降低12.5%和8.1%的同时,实现了对小尺度幼苗的精准检测。该研究结果为复杂大田环境下苗情信息获取提供了技术支撑。

     

    Abstract: Accurate and rapid detection and counting of winter wheat seedlings are essential for obtaining key seedling information, including emergence density and emergence rate, and for supporting timely field management under complex field conditions. However, seedling targets are generally small, densely distributed, and easily occluded, while variations in soil background and illumination further reduce the reliability of conventional detection methods. This study proposed a lightweight detection and counting method based on an improved YOLOv8n model. Visible-light images were acquired from a winter wheat experimental field using near-ground Internet of Things (IoT) devices, unmanned aerial vehicles (UAVs), and smartphones. Images collected at four representative emergence stages, namely 5, 9, 14, and 20 days after sowing, covered newly emerged, one-leaf, two-leaf, and three-leaf seedlings under sunny and cloudy conditions. After image cleaning, stratified dataset partitioning, and data augmentation, a multi-source winter wheat seedling dataset containing 4,550 images was obtained, including 3,185 training images, 910 validation images, and 455 test images. A YOLOv8n-GC-S (ghost-convolutional block attention module-small object detection layer YOLOv8n) model was then developed. First, the original YOLOv8n backbone was replaced with the lightweight GhostNet backbone. GhostNet generated additional feature maps through low-cost linear transformations, thereby reducing redundant convolution operations and reducing the number of model parameters by 28.1%. Second, a convolutional block attention module (CBAM) was introduced between the backbone and neck. Channel and spatial attention were used to enhance seedling-related features and suppress interference from soil, crop residues, and other complex background information. Compared with the GhostNet-based lightweight model, the introduction of CBAM increased mAP@0.5 by 9.4 percentage points. Third, a small-object detection branch with a feature-map size of 160 × 160 was added to retain shallow spatial details and strengthen the representation of small-scale seedlings with weak visual features. Compared with the GhostNet-based lightweight model, this branch increased mAP@0.5 by 12.6 percentage points. Ablation experiments were conducted to evaluate the contribution of each modification, and the proposed model was also compared with mainstream object detection models under the same dataset and experimental conditions. The experimental results showed that the precision, recall, and mAP@0.5 of the YOLOv8n-GC-S model reached 92.1%, 80.0%, and 86.2%, respectively, which were 2.3, 5.9, and 2.9 percentage points higher than those of the baseline YOLOv8n model. The final model contained 2.8 million parameters and had a model weight file size of 5.7 MB, representing reductions of 12.5% and 8.1%, respectively, relative to the baseline model. Under cloudy conditions, the missed-detection rate decreased from 8.0% to 4.7%, whereas under sunny conditions it decreased from 12.7% to 7.8%. Across both illumination conditions, the average missed-detection rate decreased from 10.4% to 6.3%, corresponding to a reduction of 4.1 percentage points. Multi-temporal counting validation further showed good agreement between model-predicted and manually counted seedling numbers. The coefficient of determination (R2) ranged from 0.88 to 0.94 across the four emergence stages, and the root mean square error (RMSE) ranged from 4.73 to 7.61 seedlings. The best counting agreement was obtained at the one-leaf stage, with an R2 of 0.94 and an RMSE of 4.73 seedlings. In addition, emergence density and emergence rate were calculated from the model-detected seedling numbers. The model-estimated emergence rate was highly consistent with the manually measured emergence rate, with an R2 of 0.93 and an RMSE of 2.52%. These results demonstrate that YOLOv8n-GC-S achieves a favorable balance between detection performance and lightweight design, improves the detection of small winter wheat seedlings under varying illumination and complex backgrounds, and can support seedling counting and quantitative emergence-rate assessment in field environments.

     

/

返回文章
返回