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

基于改进YOLOv5的金属工件表面缺陷检测
引用本文:王一,龚肖杰,程佳,苏皓.基于改进YOLOv5的金属工件表面缺陷检测[J].包装工程,2022,43(15):54-60.
作者姓名:王一  龚肖杰  程佳  苏皓
作者单位:华北理工大学 电气工程学院,河北 唐山 063210;唐山市金属构件产线智能化技术创新中心,河北 唐山 063210;华北理工大学 电气工程学院,河北 唐山 063210;唐山市半导体集成电路重点实验室,河北 唐山 063210
基金项目:河北省高等学校科学技术研究项目(ZD2022114);唐山市科技计划项目(21130212C)
摘    要:目的 针对金属工件表面小尺寸缺陷检测精度低的问题,提出以YOLOv5网络为基础,结合注意力机制与Ghost卷积的表面缺陷检测算法。方法 首先,在原网络中增加SE通道注意力模块,增加缺陷有关信息的权重,减少无用特征的干扰,从而提高目标的检测精度。然后,将网络中空间金字塔池化模块的池化方式由最大池化替换为软池化,使得在下采样激活映射中保留更多的特征信息,获得更好的检测精度。最后,采用Ghost卷积块替换主干网络中的常规卷积模块,提取丰富特征及冗余特征,以此提高模型效率。结果 改进后网络平均精度均值达到0.997 8,相比原网络提高了7.07个百分点。结论 该网络显著提高了金属工件表面缺陷检测的精度。

关 键 词:表面缺陷检测  YOLOv5模型  通道注意力  软池化  Ghost卷积

Surface Defect Detection of Metal Workpiece Based on Improved YOLOv5
WANG Yi,GONG Xiao-jie,CHENG Ji,SU Hao.Surface Defect Detection of Metal Workpiece Based on Improved YOLOv5[J].Packaging Engineering,2022,43(15):54-60.
Authors:WANG Yi  GONG Xiao-jie  CHENG Ji  SU Hao
Affiliation:College of Electrical Engineering, North China University of Science and Technology, Hebei Tangshan 063210, China;Tangshan Technology Innovation Center of Intellectualization of Metal Component Production Line, Hebei Tangshan 063210, China; College of Electrical Engineering, North China University of Science and Technology, Hebei Tangshan 063210, China;Tangshan Key Laboratory of Semiconductor Integrated Circuits, Hebei Tangshan 063210, China
Abstract:The work aims to propose a surface defect detection method based on YOLOv5 network by combining attention mechanism and Ghost convolution to solve problem of low detection accuracy of small size defects on metal workpiece surface. First, the SE channel attention module was added to the original network. The weight of the defect-related information was increased and the interference of useless features was reduced to improve the detection accuracy of the target. Then, the maxpool module of the spatial pyramid pooling module in the network was replaced with Softpool so as to retain more feature information in the down sampling activation map and obtain a better classification accuracy. Finally, Ghost convolutional blocks were used to replace the conventional convolutional modules in the backbone network to extract rich and redundant features and improve the efficiency of the model. The mean average accuracy of the improved network reached 0.997 8, increased by 7.07% over the original network. The proposed network significantly improves the accuracy of surface defect detection in metal workpieces.
Keywords:surface defect detection  YOLOv5 model  channel attention  Softpool  Ghost convolution
点击此处可从《包装工程》浏览原始摘要信息
点击此处可从《包装工程》下载全文
设为首页 | 免责声明 | 关于勤云 | 加入收藏

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