College of Agricultural Engineering, Shanxi Agriculture University, Jinzhong 030801, China.
College of Agricultural, Shanxi Agricultural University, Jinzhong 030801, China.
Sensors (Basel). 2022 Oct 26;22(21):8206. doi: 10.3390/s22218206.
In the foxtail millet field, due to the dense distribution of the foxtail millet ears, morphological differences among foxtail millet ears, severe shading of stems and leaves, and complex background, it is difficult to identify the foxtail millet ears. To solve these practical problems, this study proposes a lightweight foxtail millet ear detection method based on improved YOLOv5. The improved model proposes to use the GhostNet module to optimize the model structure of the original YOLOv5, which can reduce the model parameters and the amount of calculation. This study adopts an approach that incorporates the Coordinate Attention (CA) mechanism into the model structure and adjusts the loss function to the Efficient Intersection over Union (EIOU) loss function. Experimental results show that these methods can effectively improve the detection effect of occlusion and small-sized foxtail millet ears. The recall, precision, F score, and mean Average Precision (mAP) of the improved model were 97.70%, 93.80%, 95.81%, and 96.60%, respectively, the average detection time per image was 0.0181 s, and the model size was 8.12 MB. Comparing the improved model in this study with three lightweight object detection algorithms: YOLOv3_tiny, YOLOv5-Mobilenetv3small, and YOLOv5-Shufflenetv2, the improved model in this study shows better detection performance. It provides technical support to achieve rapid and accurate identification of multiple foxtail millet ear targets in complex environments in the field, which is important for improving foxtail millet ear yield and thus achieving intelligent detection of foxtail millet.
在谷子田间,由于谷子穗密集分布、穗型间差异小、茎秆和叶片严重遮光以及背景复杂,谷子穗的识别较为困难。针对这些实际问题,本研究提出了一种基于改进 YOLOv5 的轻量化谷子穗检测方法。改进后的模型提出使用 GhostNet 模块优化原始 YOLOv5 的模型结构,从而减少模型参数和计算量。本研究采用在模型结构中加入 Coordinate Attention(CA)机制,并将损失函数调整为 Efficient Intersection over Union(EIOU)损失函数的方法。实验结果表明,这些方法可以有效地提高遮挡和小尺寸谷子穗的检测效果。改进模型的召回率、精度、F 分数和平均精度(mAP)分别为 97.70%、93.80%、95.81%和 96.60%,每张图像的平均检测时间为 0.0181s,模型大小为 8.12MB。将本研究中的改进模型与三种轻量化目标检测算法:YOLOv3_tiny、YOLOv5-Mobilenetv3small 和 YOLOv5-Shufflenetv2 进行比较,本研究中的改进模型显示出更好的检测性能。它为在田间复杂环境中实现对多个谷子穗目标的快速、准确识别提供了技术支持,对提高谷子穗产量、实现谷子的智能化检测具有重要意义。