首页 | 官方网站   微博 | 高级检索  
     

利用改进的YOLOv5s检测莲蓬成熟期
引用本文:范万鹏,刘孟楠,马婕,刘国海,卢安舸,马秋成.利用改进的YOLOv5s检测莲蓬成熟期[J].农业工程学报,2023,39(18):183-191.
作者姓名:范万鹏  刘孟楠  马婕  刘国海  卢安舸  马秋成
作者单位:江苏大学电气信息与工程学院, 镇江 212013;智能农业动力装备全国重点实验室, 洛阳 471039;湘潭大学机械工程与力学学院, 湘潭 411105
基金项目:国家自然科学基金项目(52205285,52175255);智能农业动力装备全国重点实验室开放基金项目(SKLIAPE2023010);复杂轨迹加工工艺及装备教育部工程研究中心开放基金项目(FZGJ2020-007); 中国博士后科学基金面上资助(2023M731374)
摘    要:为解决莲田环境下不同成熟期莲蓬的视觉感知问题,该研究提出了一种改进YOLOv5s的莲蓬成熟期检测方法。首先,通过在主干特征网络中引入BoT(bottleneck transformer)自注意力机制模块,构建融合整体与局部混合特征的映射结构,增强不同成熟期莲蓬的区分度;其次,采用高效交并比损失函数EIoU(efficient IoU)提高了边界框回归定位精度,提升模型的检测精度;再者,采用K-means++聚类算法优化初始锚框尺寸的计算方法,提高网络的收敛速度。试验结果表明,改进后YOLOv5s模型在测试集下的精确率P、召回率R、平均精度均值mAP分别为98.95%、97.00%、98.30%,平均检测时间为6.4ms,模型尺寸为13.4M。与YOLOv3、 YOLOv3-tiny、 YOLOv4-tiny、 YOLOv5s、YOLOv7检测模型对比,平均精度均值mAP分别提升0.2、1.8、1.5、0.5、0.9个百分点。基于建立的模型,该研究搭建了莲蓬成熟期视觉检测试验平台,将改进YOLOv5s模型部署在移动控制器Raspberry Pi 4B中,对4种距离范围下获取的莲蓬场景图像...

关 键 词:图像处理  深度学习  莲蓬  YOLOv5s  成熟期检测  自注意力机制
收稿时间:2023/5/17 0:00:00
修稿时间:2023/8/31 0:00:00

Detecting Lotus maturation using improved YOLOv5s
FAN Wanpeng,LIU Mengnan,MA Jie,LIU Guohai,LU Ange,MA Qiucheng.Detecting Lotus maturation using improved YOLOv5s[J].Transactions of the Chinese Society of Agricultural Engineering,2023,39(18):183-191.
Authors:FAN Wanpeng  LIU Mengnan  MA Jie  LIU Guohai  LU Ange  MA Qiucheng
Affiliation:School of Electrical and Information Engineering, Jiangsu University, Zhenjiang 212013, China;National Key Laboratory of Intelligent Agricultural Equipment, Luoyang 471039, China;School of Mechanical Engineering and Mechanics, Xiangtan University, Xiangtan 411105, China
Abstract:An accurate detection has been a great challenge at the varying maturity stages of lotus seedpods within the dynamic field environments. In this study, a groundbreaking approach was proposed to robustly detect and distinguish the maturity levels of lotus seedpods. The improved YOLOv5s model was also selected for computer vision and precision agriculture. The Bottleneck Transformer (BoT) self-attention mechanism module was first incorporated into the core feature network. The global and local features were then integrated into the mapping structure. This fusion also amplified the discernibility between different maturity stages of lotus seedpods under the ever-changing visual conditions within the lotus fields. Intersection over Union (EIoU) loss function was used to enhance the precision of bounding box regression. The improved model was then optimized to precisely delineate the contours and boundaries of lotus seedpods. A substantial elevation of detection was found in precision agriculture. K-means++ clustering was introduced to enhance the network convergence, in order to recalibrate the calculation of initial anchor box sizes. A more accurate and efficient learning process was then achieved to ultimately enhance the performance of the improved model more accessible for practical applications. The results show that outstanding performance was achieved in the improved YOLOv5s model on the test dataset, with the boasting precision (P) rates of 98.95%, recall (R) rates of 97.00%, and an impressive mean average precision (mAP) score of 98.30%. Notably, the average detection time remained at 6.4 ms, with a compact model size of 13.4 megabytes. The improved YOLOv5s model performed better than most detection models, including YOLOv3, YOLOv3-tiny, YOLOv4-tiny, YOLOv5s, and YOLOv7. There were substantial improvements of 0.2%, 1.8%, 1.5%, 0.5%, and 0.9% in mAP, respectively, indicating better detection of the lotus seedpod maturity. Furthermore, a real-time detection system of lotus seedpod maturity was established to integrate the improved YOLOv5s model into a Raspberry Pi 4B mobile controller. Additionally, four distance ranges were tested to verify the improved model. The better performance was obtained in the 0.5-meter to 1.0-meter detection ranges, compared with the YOLOv5 and YOLOv3-tiny models. This YOLOv5s-based approach can be expected to detect the maturity of lotus seedpods for the development of intelligent harvesting equipment. The applicability of the improved model can also be extended to the defying gravity during growth for sustainable and efficient crop management in the frontiers of precision agriculture and industry practices. In summary, modern computer vision can greatly contribute to agricultural needs, such as the improved YOLOv5s model. The accurate and rapid detection of lotus seedpod maturity was achieved for better efficiency, sustainability, and productivity in precision agriculture and smart farming, as well as the crop maturity detection in gravity-defying plants.
Keywords:image processing  deep learning  Lotus seedpod  YOLOv5s  maturation detection  self-attention mechanism
点击此处可从《农业工程学报》浏览原始摘要信息
点击此处可从《农业工程学报》下载全文
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司    京ICP备09084417号-23

京公网安备 11010802026262号