首页|基于改进YOLOv5s的轻量级葡萄目标检测融合算法

基于改进YOLOv5s的轻量级葡萄目标检测融合算法

扫码查看
针对农业自动采摘机械对目标检测模型准确率、实时性及轻量化的需求,提出了一种轻量级葡萄目标检测网络 YM-GDM(YOLOv5s-MobileNetV3 grape detection model).使用 MobileNetV3 代替CSPDarknet53 作为YOLOv5s的主干网络,以实现模型的轻量化;引入Res2Net_C2f模块和BiFPN(Bi-directional feature pyramid network)结构,以提高模型的多尺度特征融合能力;同时,改用VariFocalLoss损失函数对模型进行训练,以减少正负样本不均带来的影响.使用包含5类食用葡萄的自制数据集与包含5类酿酒葡萄的公开数据集(WGISD)作为试验数据集进行测试.结果表明,YM-GDM网络对10个品种葡萄的目标检测平均精度均值(mAP50)达到90.8%,比YOLOv3-tiny、YOLOv5s分别提升6.2、2.2百分点;模型体积为9.72 MB,相比YOLOv3-tiny、YOLOv5s分别缩小44.4%、32.8%.此外,进一步减少参数量得到了轻量特化模型YM-GDM-tiny,模型体积缩小到4.73 MB,mAP50达到86.8%,以部署于算力更低的移动设备.
Lightweight Grape Object Detection Fusion Algorithm Based on Improved YOLOv5s
A lightweight grape target detection network YM-GDM(YOLOv5s-MobileNetV3 grape detection model)was proposed to meet the requirements of accuracy,real-time performance,and lightweight of target detection models for agricultural automatic harvesting machinery.MobileNetV3 was employed as the backbone network instead of CSPDarknet53 in YOLOv5s to achieve model lightweighting.The introduction of Res2Net_C2f module and BiFPN(Bi-directional feature pyramid network)structure aimed to enhance the model's multi-scale feature fusion capability.Additionally,the VariFocalLoss loss function was adopted to train the model,mitigating the impact of imbalanced positive and negative samples.The self-made data set containing five types of table grapes and the open data set(WGISD)containing five types of wine grapes were used as test data sets.The experimental results showed that the YM-GDM network achieved a mAP50 of 90.8%for the detection of 10 grape classes.Compared to YOLOv3-tiny,and YOLOv5s,it improved by 6.2,and 2.2 percentage points respectively.The model size was 9.73 MB,which was reduced by 44.4%and 32.8%compared to YOLOv3-tiny and YOLOv5s,respectively.Furthermore,by further reducing the number of parameters,a lightweight specialized model,YM-GDM-tiny,was obtained with a model size of 4.73 MB and a mAP50 of 86.8%,suitable for deployment on mobile devices with lower computing power.

GrapeObject detectionYOLOv5sLghtweight networkFeature fusion

胡峻峰、李松青、黄晓文、刘大洋、李柏聪

展开 >

东北林业大学 计算机与控制工程学院,黑龙江 哈尔滨 150040

比亚迪股份有限公司,广东 深圳 518000

葡萄 目标检测 YOLOv5s 轻量化网络 特征融合

国家自然科学基金项目中央高校基本科研专项资金项目

322021472572019BF09

2024

河南农业科学
河南省农业科学院

河南农业科学

CSTPCD北大核心
影响因子:0.787
ISSN:1004-3268
年,卷(期):2024.53(9)