基于YOLOv8的钢结构焊缝表面缺陷检测系统

Steel structure weld surface defect detection system based on YOLOv8

  • 摘要:
    目的 为了提高焊缝表面质量检测的效率和精度,该文提出了基于YOLOv8深度学习模型的钢结构焊缝表面缺陷检测系统。
    方法 该模型通过改进网络结构与训练策略,优化了工业场景下的检测性能。采用CSPDarknet53骨干网络融合C2f模块,增强多尺度特征融合能力;引入无锚点解耦检测头结构,将分类与回归任务解耦,减少模型对先验参数的依赖;结合Varifocal Loss(VFL)与Distribution Focal Loss(DFL)优化损失函数,提升小目标缺陷的检测灵敏度。
    结果 试验采用ZEDmini相机采集真实样本,自建钢结构焊缝数据集,其中良好焊缝识别准确率为96.2%,不良焊缝检测精度82.5%。训练过程曲线表明,box_loss和cls_loss分别在120和150轮次后收敛,验证集mAP50指标稳定在76.7%,mAP50-95指标稳定在65.5%。测试结果显示,模型在640×640分辨率图像中推理速度达45帧/秒,即每张图像的推理时间约为22.2 ms。
    结论 基于YOLOv8深度学习模型的钢结构焊缝表面缺陷检测系统能够满足实时检测需求,为焊接质量智能检测提供了可靠技术支撑。

     

    Abstract: Objective To improve efficiency and accuracy of weld surface quality inspection, a steel structure weld surface defect detection system based on YOLOv8 deep learning model is proposed in the paper. Methods By improving network structure and training strategy, the model optimizes detection performance in industrial scenarios. It adopts CSPDarknet53 backbone network integrated with C2f module to enhance multi-scale feature fusion capability. It introduces an anchor-free decoupled detection head structure to decouple classification and regression tasks, reducing the model’s dependence on prior parameters. It combines Varifocal Loss (VFL) and Distribution Focal Loss (DFL) to optimize loss function, improving detection sensitivity for small target defects. Results In the experiment, ZEDmini camera was used to collect real samples, and a self-built steel structure weld dataset was created. Among them, recognition accuracy of good welds reached 96.2%, and detection accuracy of defective welds stood at 82.5%. The training process curves show that box_loss and cls_loss converged after 120 and 150 epochs respectively. The mAP50 index of validation set stabilized at 76.7%, and mAP50-95 index stabilized at 65.5%. Test results indicate that the model achieves an inference speed of 45 frames per second in 640×640 resolution images, inference time per image is approximately 22.2 ms. Conclusion The steel structure weld surface defect detection system based on YOLOv8 deep learning model can meet requirements of real-time detection and provide reliable technical support for intelligent inspection of welding quality.

     

/

返回文章
返回