首页|改进YOLOv3的轻量级铸件焊缝表面缺陷检测

改进YOLOv3的轻量级铸件焊缝表面缺陷检测

扫码查看
针对机械制造行业中铸件焊缝表面缺陷数据集少,被检测物体处于复杂环境下目标检测困难和识别准确率低等问题,提出了一种改进的YOLOv3 算法.使用了有效的数据增强技术,提高了模型的鲁棒性,使其更加适用于真实环境;引入轻量级网络GhostNet替换原始主干网络,降低模型参数量,减少训练时间;在主干网络最后一层输出端加入空间金字塔池化结构,提高模型的感受野和增强模型的抗干扰能力;在FPN(feature pyramid network)中引入1×1 卷积和通道注意力机制,防止维度损失和提高对重要特征的关注度,增强对小目标的特征提取;在训练过程中引入Focal Loss,提高模型对正样本的预测准确率.实验结果表明,与原YOLOv3 相比,改进模型在铸件焊缝缺陷数据集上mAP提升1.55%,小目标气孔AP提升4%,增加小目标识别精度.
Improved YOLOv3 Lightweight Casting Weld Surface Defect Detection
Aiming at the problem that there are few data sets of casting weld surface defects in the mechan-ical manufacturing industry,and the detected objects are in a complex environment,resulting in difficult tar-get detection and low recognition accuracy,an improved YOLOv3 algorithm is proposed.The effective data enhancement technology is used to improve the robustness of the model and make it more suitable for the real environment.The lightweight network GhostNet is introduced to replace the original backbone network to reduce the number of model parameters and training time.The spatial pyramid pooling structure is added to the output end of the last layer of the backbone network to improve the receptive field of the model and enhance the anti-interference ability of the model.In FPN(feature pyramid network),1×1 convolution and channel attention mechanism are introduced to prevent dimension loss and improve the attention to important features,and enhance the feature extraction of small targets.In the training process,Focal Loss is introduced to improve the prediction accuracy of the model for positive samples.The experimental results show that compared with the original YOLOv3,the improved model improves the mAP by 1.55%and the small target pore AP by 4%on the casting weld defect dataset,which increases the recognition accuracy of small targets.

surface defectscasting weldYOLOv3pyramid pooling of spaceGhostNet

李闯、马行、穆春阳、刘永鹿、秦政硕、张弘

展开 >

北方民族大学 电气信息工程学院,银川 750021

北方民族大学 宁夏智能信息与大数据处理重点实验室,银川 750021

北方民族大学 机电工程学院,银川 750021

表面缺陷 铸件焊缝 YOLOv3 空间金字塔池化 GhostNet

银川市科技创新项目自治区科技创新领军人才培养工程项目宁夏回族自治区重点研发计划项目北方民族大学研究生创新项目

2022GX042021GKLRLX082021BEE03002YCX22121

2024

组合机床与自动化加工技术
大连组合机床研究所 中国机械工程学会生产工程分会

组合机床与自动化加工技术

CSTPCD北大核心
影响因子:0.671
ISSN:1001-2265
年,卷(期):2024.(1)
  • 6