基于YOLOv5对花生种子质量的识别研究
Identification of Peanut Seed Quality Based on YOLOv5
DOI: 10.12677/MOS.2023.126527, PDF,    科研立项经费支持
作者: 黄骞瑶, 陆安江*:贵州大学大数据与信息工程学院,贵州 贵阳
关键词: YOLOv5花生质量检测注意力机制轻量级网络YOLOv5 Peanut Quality Inspection Attention Mechanism Lightweight Network
摘要: 针对传统人工种子筛选方式存在的不精准、不完全、效率低等问题。本文提出一种基于改进YOLOv5的花生种子质量的识别研究算法。首先,我们收集了几种不同质量类型的花生种子图片,利用labelImg工具制作数据集。其次,我们使用轻量级网络ShuffleNetV2取代了原始的骨干网络,在不降低精度的状况下提高网络运行速度。然后本文在YOLOv5颈部层引入高效通道注意力ECA来抑制不重要的特征信息,增强网络的特征提取能力。最后,将改进后的YOLOv5模型在自制的花生种子数据集进行实验。结果表明,所提模型与YOLOv4和原YOLOv5相比,mAP分别提升了2.7%和4.1%。另外该模型具有更好的检测速度,FPS为63帧/s。
Abstract: In response to the issues of imprecision, incompleteness, and low efficiency associated with tradi-tional manual seed screening methods. Aiming at the inaccuracy and incompleteness of traditional artificial seed screening methods, this paper proposes an algorithm for detecting the quality of peanut seeds based on the improved YOLOv5 algorithm. Firstly, we collected several images of peanut seeds of different quality types to create the dataset using the labelImg tool. Secondly, we replace the original backbone network with a lightweight network, ShuffleNetV2, to increase the network speed without decreasing the accuracy. The paper then introduces efficient channel atten-tion (ECA) into the neck layer of YOLOv5 to suppress unimportant feature information and enhance the feature extraction capability of the network. Finally, the improved YOLOv5 model is experi-mented on a homemade peanut seed dataset. The results show that the improved YOLOv5 network improves mAP by 2.7% and 4.1% compared to YOLOv4 and the original YOLOv5. The model has a better detection speed and reaches 65 frames per second (FPS).
文章引用:黄骞瑶, 陆安江. 基于YOLOv5对花生种子质量的识别研究[J]. 建模与仿真, 2023, 12(6): 5814-5822. https://doi.org/10.12677/MOS.2023.126527

参考文献

[1] 李珊珊. 花生种子活力的生理学和蛋白表达研究[D]: [硕士学位论文]. 郑州: 河南农业大学, 2019.
[2] 龙利平, 欧阳翠英, 王青, 等. 农作物种子检验的意义、内容与展望[J]. 中国种业, 2020(12): 43-45.
[3] 孙群, 王庆, 薛卫青, 等. 无损检测技术在种子质量检验上的应用研究进展[J]. 中国农业大学学报, 2012, 17(3): 1-6. [Google Scholar] [CrossRef
[4] 彭文, 兰玉彬, 岳学军, 等. 基于深度卷积神经网络的水稻田杂草识别研究[J]. 华南农业大学学报, 2020, 41(6): 75-81.
[5] 薛月菊, 黄宁, 涂淑琴, 等. 未成熟芒果的改进YOLOv2识别方法[J]. 农业工程学报, 2018, 34(7): 173-179.
[6] 成伟, 张文爱, 冯青春, 等. 基于改进YOLOv3的温室番茄果实识别估产方法[J]. 中国农机化学报, 2021, 42(4): 176-182.
[7] 祝诗平, 卓佳鑫, 黄华, 等. 基于CNN的小麦籽粒完整性图像检测系统[J]. 农业机械学报, 2020, 51(5): 36-42.
[8] 王林柏, 刘景艳, 周玉宏等. 基于分水岭算法结合卷积神经网络的玉米种子质量检测[J]. 中国农机化学报, 2021, 42(12): 168-174.
[9] 范晓飞, 王林柏, 刘景艳, 等. 基于改进YOLOv4的玉米种子外观品质检测方法[J]. 农业机械学报, 2022, 53(7): 226-233.
[10] Kundu, N., Rani, G. and Dhaka, V.S. (2021) Seeds Classification and Quality Testing Using Deep Learning and YOLOv5. Proceedings of the International Conference on Data Science, Machine Learning and Artificial Intelligence, New York, 9-12 August 2021, 153-160. [Google Scholar] [CrossRef
[11] 章程军, 胡晓兵, 牛洪超. 基于改进YOLOv5的车辆目标检测研究[J]. 四川大学学报(自然科学版), 2022, 59(5): 79-87.
[12] 路学莹, 孙啸, 田正宏, 等. 基于改进YOLOv5s的塔机危险区域识别方法研究[J]. 水力发电, 2023, 49(2): 68-77.
[13] Yang, Z.M. (2021) Activation Function: Cell Recognition Based on YoLov5s/m. Journal of Computer and Communications, 9, 1-16. [Google Scholar] [CrossRef
[14] Li, S.L., Zhang, S., Xue, J.X., et al. (2022) Lightweight Target Detection for the Field Flat Jujube Based on Improved YOLOv5. Computers and Electronics in Agriculture, 202, 107391. [Google Scholar] [CrossRef
[15] Ma, N., Zhang, X., Zheng, H.T., et al. (2018) Shufflenet v2: Practical Guidelines for Efficient CNN Architecture Design. Proceedings of the European Conference on Computer Vision (ECCV), 11218, 116-131. [Google Scholar] [CrossRef
[16] Wang, Q.L., Wu, B.G., Zhu, P.F., et al. (2020) ECA-Net: Efficient Channel Attention for Deep Convolutional Neural Networks. Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, Seattle, 13-19 June 2020, 11534-1154. [Google Scholar] [CrossRef