首页 | 本学科首页   官方微博 | 高级检索  
     检索      

基于改进YOLOv5s的自然环境下猕猴桃花朵检测方法
引用本文:龚惟新,杨珍,李凯,郝伟,何智,丁辛亭,崔永杰.基于改进YOLOv5s的自然环境下猕猴桃花朵检测方法[J].农业工程学报,2023,39(6):177-185.
作者姓名:龚惟新  杨珍  李凯  郝伟  何智  丁辛亭  崔永杰
作者单位:1. 西北农林科技大学机械与电子工程学院,杨凌 712100;2. 农业农村部农业物联网重点实验室,杨凌 712100;3. 陕西省农业信息感知与智能服务重点实验室,杨凌 712100
基金项目:国家自然科学基金项目(31971805);国家重点研发计划项目(2019YFD1002401);陕西省重点研发计划项目(2019ZDLNY02-04)
摘    要:为实现对猕猴桃花朵的快速准确检测,该研究提出了一种基于改进YOLOv5s的猕猴桃花朵检测模型YOLOv5s_S_N_CB_CA,并通过对比试验进行了精度验证。在YOLOv5s基础上引入C3HB模块和交叉注意力(criss-cross atte ntion,CCA)模块增强特征提取能力,结合样本切分和加入负样本处理方法进一步提升模型精度。改进模型的检测精确率为85.21%,召回率为90%,模型大小为14.6 MB,交并比(intersection over union,IoU)为0.5下的均值平均精度(mAP0.5)为92.45%,比仅进行样本缩放处理的原始YOLOv5s提高了31.91个百分点,检测速度为35.47帧/s,比原始YOLOv5s提高了34.15%。使用改进模型对自然环境下不同天气、晴天不同时段光照强度下的猕猴桃花朵进行检测,结果表明模型检测晴天、阴天下猕猴桃花朵的mAP0.5分别为91.96%、91.15%,比原始YOLOv5s分别高出2.55、2.25个百分点;检测晴天9:00-11:00、15:00-17:00光强下猕猴桃花...

关 键 词:图像处理  模型  目标检测  猕猴桃花朵  改进YOLOv5s  自然环境
收稿时间:2023/1/7 0:00:00
修稿时间:2023/2/7 0:00:00

Detecting kiwi flowers in natural environments using an improved YOLOv5s
GONG Weixin,YANG Zhen,LI Kai,HAO Wei,HE Zhi,DING Xinting,CUI Yongjie.Detecting kiwi flowers in natural environments using an improved YOLOv5s[J].Transactions of the Chinese Society of Agricultural Engineering,2023,39(6):177-185.
Authors:GONG Weixin  YANG Zhen  LI Kai  HAO Wei  HE Zhi  DING Xinting  CUI Yongjie
Institution:1. College of Mechanical and Electronic Engineering, Northwest A&F University, Yangling 712100, China; 2. Key Lab of Agricultural Internet of Things, Ministry of Agriculture and Rural Affairs, Yangling 712100, China; 3. Shaanxi Key Laboratory of Agricultural Information Perception and Intelligence Service, Yangling 712100, China
Abstract:Abstract: Artificial pollination can be essential to improve the fruit quality in kiwifruit production. An efficient detection of kiwifruit flowers is one of the key technologies in the automatic pollination machinery. In this study, an improved YOLOv5s model (YOLOv5s_S_N_CB_CA) was proposed to rapidly and accurately detect the kiwifruit flowers. The C3HB module and criss-cross attention (CCA) were added into the YOLOv5s. The sample slicing was combined to add the negative sample processing, in order to enhance the feature extraction of the model for the kiwifruit flowers, particularly for the detection accuracy and detection speed of the model. A total of 1032 images of kiwifruit flowers were collected from a trellised kiwifruit orchard grown in a natural environment, including 779 images on sunny days and 253 images on cloudy days. Two periods of light conditions under sunny days were considered, including 726 images of kiwifruit flowers under the 9:00-11:00 hours and 378 images of kiwifruit flowers under the 15:00-17:00 hours. Two occlusion cases were selected, with 726 images of kiwi flowers with occlusion and 306 images of kiwi flowers without occlusion. The captured images of kiwifruit flowers were classified into three categories, including kiwifruit buds, kiwifruit flowers, and pollinated kiwifruit flowers. Three targets were labelled separately, and then sent to the improved YOLOv5s model for training. A total of 300 iterations of training were implemented for the improved model. The results showed that the improved model shared the detection accuracy of 85.21%, the recall of 90%, the mean average precision (mAP) of 92.45% at an intersection over union (IoU) ratio of 0.5, a model size of 14.6 MB, and a detection speed of 35.47 fps. Compared with the four improved YOLOv5s models with only sample scaling or two resolutions, sample slicing, and adding negative samples, the C3HB-CCA module and focal loss function, the mAP0.5 were improved 31.91, 38.32, 2.55, and 1.08 percentage points, respectively, while the mean average accuracy at IoU of 0.5-0.95 ( mAP0.5-0.95) by 34.38, 42.93, 1.92, and 1.37 percentage points, respectively. The improved model increased the recall by 2, 7, and 12 percentage points, compared with the original, YOLOv4, and SSD model, respectively, while the mAP0.5 was improved by 2.55, 9.95, 13.64 percentage points, and 34.15%, 144.62%, and 20.03% improvement in the detection speed, respectively. The original and improved models were then used to detect the kiwifruit flowers under different weather light intensities, or under different light intensities at the different times of the day on sunny days. The results showed that the improved model had 85.17% and 83.88% accuracy, 90% and 89% recall, and 91.96% and 91.15% mAP0.5 for the detection of the kiwifruit flowers under sunny and cloudy skies, respectively. The improved model shared 84.47% and 84.79% accuracy, 89% and 89% recall, and 92.11% and 92.10% mAP0.5 for the detection of kiwifruit flowers in the hours of 9:00-11:00 and 15:00-17:00 on sunny days, respectively. The better performance was achieved in the improved model, compared with the original. Therefore, the improved YOLOv5s-based detection model was achieved in the rapid and accurate detection of kiwifruit flowers with the high robustness while maintaining lightweight. The finding can also provide the technical support to develop the automated pollination equipment for kiwifruit.
Keywords:image processing  model  target detection  kiwi flowers  improved YOLOv5s  natural environments
点击此处可从《农业工程学报》浏览原始摘要信息
点击此处可从《农业工程学报》下载免费的PDF全文
设为首页 | 免责声明 | 关于勤云 | 加入收藏

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