首页|基于改进YOLOv51的田间水稻稻穗识别

基于改进YOLOv51的田间水稻稻穗识别

扫码查看
[目的]引入YOLOv51算法模型并对其进行改进,以实现大田环境下水稻稻穗的精准、高效、无损检测。[方法]以田间水稻为研究对象,通过数码单镜反光相机采集水稻图像样本,人工标注后对原始图像进行离线数据增强扩充,构建田间水稻图像数据集;对YOLOv51算法进行适应性改进,在空间金字塔池化(Spatial pyramid pooling,SPP)层前以及 Cross-stage-sartial-connections(CSP)层中置入有效通道注意力(Efficient channel attention,ECA)机制,并进行对比试验。选取最优算法作为基准模型进行注意力机制和数据增强消融试验,并测试得到性能最优模型。将改进YOLOv51与YOLOv51、YOLOv5x、SSD和Faster R-CNN进行对比试验。[结果]在改进YOLOv51的水稻识别框架中,将ECA置入网络SPP层前有更出色的性能。利用测试集图像检验模型,识别结果的平均精确率为93。63%,平均召回率为90。94%,总体平均精度可达95。05%。与未融合YOLOv51算法相比,改进的YOLOv51算法平均精度高3。03个百分点,图像的检测速率快8。20帧/ms;与YOLOv5x算法相比,改进的YOLOv51算法平均精度提高0。62个百分点,图像的检测速率快5。41帧/ms,内存占用减少74。1MB,在田间水稻稻穗检测方面,改进YOLOv51算法的综合性能优于其他算法。[结论]将改进后的YOLOv51算法引入大田环境下的水稻稻穗检测是可行的,具有较高的精确率、较快的检测速度和较小的内存占用,能够避免传统人工检测的主观性,对稻穗检测和水稻的无损估产具有重要意义。
Rice panicle recognition in field based on improved YOLOv51 model
[Objective]YOLOv51 algorithm model was introduced and improved to realize accurate,efficient and nondestructive detection of rice panicles in field environment.[Method]Taking rice in the field as the research object,rice image samples were collected by digital single-mirror reflex camera.The original image data were augmented and expanded offline after manual labeling,so as to construct an image data set for field rice.The YOLOv51 algorithm was improved adaptively,the effective channel attention(ECA)mechanism was put in front of the spatial pyramid pooling(SPP)layer and in the cross-stage-partial-connections(CSP)layer,and a comparative experiment was conducted.The optimal algorithm was selected as the benchmark model to carry out attention mechanism and data-enhanced ablation experiments,and the optimal performance model was obtained by testing.The improved YOLOv51 was compared with YOLOv51,YOLOv5x,SSD and Faster R-CNN.[Result]In the improved rice recognition framework of YOLOv51,placing ECA before the network SPP layer resulted in better performance.Using test set images to verify the model,the average accuracy of recognition results was 93.63%,the average recall rate was 90.94%,and the overall average accuracy reached 95.05%.Compared with the non-fused YOLOv51 algorithm,the average accuracy of the improved YOLOv51 algorithm was 3.03 percent higher and the detection rate was 8.20 frames per ms faster.Compared with the YOLOv5x algorithm,the average precision of the improved YOLOv51 algorithm was improved by 0.62 percent,the detection rate was faster by 5.41 frames per ms,and the memory occupation was reduced by 74.1 MB.The results showed that the comprehensive performance of the improved YOLOv51 algorithm was better than other algorithms in rice panicle detection in the field.[Conclusion]It is feasible to introduce the improved YOLOv51 algorithm into rice panicle detection in field environment.The algorithm has high accuracy,fast detection speed and small memory occupation,which can avoid the subjectivity of traditional manual detection and is of great significance for rice panicle detection and non-destructive yield estimation.

RiceYield estimationRice panicle detectionYOLOv51Efficient channel attentionAttention mechanism

蔡竹轩、蔡雨霖、曾凡国、岳学军

展开 >

华南农业大学电子工程学院/人工智能学院,广东广州 510642

水稻 估产 稻穗检测 YOLOv51 ECA 注意力机制

广州市科技计划省级大学生创新创业训练计划

202206010088S202210564011

2024

华南农业大学学报
华南农业大学

华南农业大学学报

CSTPCD北大核心
影响因子:0.837
ISSN:1001-411X
年,卷(期):2024.45(1)
  • 27