|
基于YOLOv5s的神经网络麦穗识别算法研究
|
Abstract:
神经网络算法在人工智能领域有着广泛的应用,如本文中智慧农业中的麦穗识别。本研究采用YOLOv5s 算法研究麦穗的目标检测,将目标检测算法和神经网络算法相结合。研究的数据集来自Global Wheat Head detection (GWHD) dataset2020和AI crowd中GWHD dataset 2021,利用LabelImg软件进行标注,将标注后的数据先采用PIL中的旋转、翻转、亮度提升等对数据进行增强预处理,其次,选用YOLO系列算法对预处理后的数据集进行目标检测。增大麦穗训练集的规模,提高模型的泛化能力。通过YOLO算法进行麦穗检测,确保对数据集进行目标检测的准确性。利用该模型对麦穗图像进行检测。其中YOLOv5算法在输入端增加了Mosaic数据增强、自适应anchor以及图像缩放板块。并在neck上使用FPN和PAN结合板块,其精确率、召回率和平均精度在测试集上的精度分别为78.1%、85%、52.1%,比YOLOv3的检验结果高,该方法可以高效地检测并标注麦穗。
Neural network algorithm has a wide range of applications in the field of artificial intelligence, such as wheat ear recognition in Intelligent Agriculture in this paper. In this study, YOLOv5s algorithm is used to study the target detection of wheat ears, which combines the target detection algorithm with neural network algorithm. The data sets studied are from global wheat head detection (GWHD) dataset 2020 and GWHD dataset 2021 in AI crowd. LabelImg software is used to label the marked data. Firstly, the rotation, turnover and brightness improvement in PIL are used to enhance the preprocessing of the data. Secondly, YOLO series algorithms are selected to detect the target of the preprocessed data set, increase the scale of wheat ear training set and improve the generalization ability of the model. The ear of wheat is detected by YOLO algorithm, and the target of the data set is detected accurately. The model is used to detect the wheat ear image. Among them, YOLOv5 algorithm adds mosaic data enhancement, adaptive anchor and image scaling plates at the input. Using FPN and pan combined plates on neck, the accuracy, recall and average accuracy on the test set are 78.1%, 85% and 52.1% respectively, which is higher than the test result of YOLOv3. This method can detect and label wheat ears efficiently.
[1] | 侯英鱼, 王健林, 毛留喜, 宋迎波. 美国玉米和小麦产量动态预测遥感模型[J]. 生物学杂志, 2009, 28(10): 2141-2146. |
[2] | 甘肃省科学院生物所. 小麦测产新方法[P]. 中国专利, CN88102447.3. 1989-03-01. |
[3] | 王佳方. 智慧农业时代大数据的发展态势研究[J]. 技术经济与管理研究, 2020(2): 124-128. |
[4] | 杜颖, 蔡义承, 谭昌伟, 李振海, 杨贵军, 冯海宽, 韩东. 基于超像素分割的田间小麦穗数统计方法[J]. 中国农业科学, 2019, 52(1): 21-33. |
[5] | 谢元澄, 何超, 于增源, 沈毅, 姜海燕, 梁敬东. 复杂大田场景中麦穗检测级联网络优化方法[J]. 农业机械学报, 2020, 51(12): 212-219. |
[6] | 刘云玲, 张品戈, 王千航, 周睿琪, 赵佳, 肖永贵, 马韫韬. 基于多列空洞卷积神经网络的麦穗计数方法研究[J]. 吉林农业大学学报, 2021, 43(2): 171-180. |
[7] | 杜世伟, 李毅念, 姚敏, 李玲, 丁启朔, 何瑞银. 基于小麦穗部小穗图像分割的籽粒计数方法[J]. 南京农业大学学报, 2018, 41(4): 742-751. |
[8] | 任泽民, 王洪珂, 葛永新, 王晓峰, 王伟. 自适应的非局部总变分图像复原算法[J]. 小型微型计算机系统, 2017, 38(9): 2086-2089. |
[9] | 张路遥, 韩华. 基于YOLOv5s的人脸是否佩戴口罩检测[J]. 智能计算机与应用, 2021, 11(9): 196-199. |
[10] | 王淑青, 顿伟超, 黄剑锋, 王年涛. 基于YOLOv5的瓷砖表面缺陷检测[J/OL]. 包装工程: 1-10.
http://kns.cnki.net/kcms/detail/50.1094.TB.20220218.1422.010.html, 2022-02-24. |
[11] | 郝帅, 杨磊, 马旭, 马瑞泽, 文虎. 基于注意力机制与跨尺度特征融合的YOLOv5输电线路故障检测[J/OL]. 中国电机工程学报: 1-12. http://kns.cnki.net/kcms/detail/11.2107.tm.20220126.1718.008.html, 2022-02-24. |
[12] | 杨永波, 李栋. 改进YOLOv5的轻量级安全帽佩戴检测算法[J/OL]. 计算机工程与应用: 1-8.
http://kns.cnki.net/kcms/detail/11.2127.TP.20220118.1827.006.html, 2022-02-24. |
[13] | 赵睿, 刘辉, 刘沛霖, 雷音, 李达. 基于改进YOLOv5s的安全帽检测算法[J/OL]. 北京航空航天大学学报: 1-16.
https://doi.org/10.13700/j.bh.1001-5965.2021.0595, 2022-02-24. |
[14] | 田庆, 胡蓉, 李佐勇, 蔡远征, 余兆钗. 基于SE-YOLOv5s的绝缘子检测[J]. 智能科学与技术学报, 2021, 3(3): 312-321. |
[15] | 谭显东, 彭辉. 改进YOLOv5的SAR图像舰船目标检测[J]. 计算机工程与应用, 2022, 58(4): 247-254. |
[16] | 田港, 张鹏, 邹金霖, 赵晓林. 基于改进YOLOv4的无人机目标检测方法[J]. 空军工程大学学报(自然科学版), 2021, 22(4): 9-14. |