《计算机应用》唯一官方网站 ›› 2022, Vol. 42 ›› Issue (8): 2601-2608.DOI: 10.11772/j.issn.1001-9081.2021060971

• 多媒体计算与计算机仿真 • 上一篇    

基于深度学习的型钢表面多形态微小缺陷检测算法

刘亚姣1, 于海涛1(), 王江1, 于利峰2, 张春晖2   

  1. 1.天津大学 电气自动化与信息工程学院,天津 300072
    2.河北津西钢铁集团股份有限公司,河北 唐山 064302
  • 收稿日期:2021-06-08 修回日期:2021-09-08 接受日期:2021-09-28 发布日期:2021-10-18 出版日期:2022-08-10
  • 通讯作者: 于海涛
  • 作者简介:刘亚姣(1992—),女,河北张家口人,博士研究生,主要研究方向:缺陷检测;
    于海涛(1985—),男,河北唐山人,副教授,博士生导师,博士,主要研究方向:视觉检测、深度学习;
    王江(1964—),男,河北唐山人,教授,博士生导师,博士,主要研究方向:类脑计算、智能控制;
    于利峰(1976—),男,河北唐山人,工程师,主要研究方向:型钢质量检测;
    张春晖(1978—),男,河北唐山人,工程师,主要研究方向:钢铁冶金。
  • 基金资助:
    天津市自然科学基金资助项目(19JCYBJC18800)

Surface detection algorithm of multi-shape small defects for section steel based on deep learning

Yajiao LIU1, Haitao YU1(), Jiang WANG1, Lifeng YU2, Chunhui ZHANG2   

  1. 1.School of Electrical and Information Engineering,Tianjin University,Tianjin 300072,China
    2.Hebei Jinxi Iron and Steel Group Company Limited,Tangshan Hebei 064302,China
  • Received:2021-06-08 Revised:2021-09-08 Accepted:2021-09-28 Online:2021-10-18 Published:2022-08-10
  • Contact: Haitao YU
  • About author:LIU Yajiao, born in 1992, Ph. D. candidate. Her research interests include defect detection.
    YU Haitao, born in 1985, Ph. D., associate professor. His research interests include visual inspection, deep learning.
    WANG Jiang, born in 1964, Ph. D., professor. His research interests include brain-like computing, intellectual control.
    YU Lifeng, born in 1976, engineer. His research interests include quality inspection of section steel.
    ZHANG Chunhui, born in 1978, engineer. His research interests include ferrous metallurgy.
  • Supported by:
    Tianjin Natural Science Foundation(19JCYBJC18800)

摘要:

为了解决由于型钢表面缺陷形态多样、微小缺陷众多所带来的检测效率低与检测精度差的问题,提出一种基于可变形卷积与多尺度-密集特征金字塔的型钢表面缺陷检测算法——Steel-YOLOv3。首先,使用可变形卷积代替Darknet53网络部分残差单元的卷积层,从而强化特征提取网络对型钢表面多类型缺陷的特征学习能力;其次,设计了多尺度-密集特征金字塔模块:在原有YOLOv3算法的3层预测尺度上增加1层更浅层的预测尺度,再对多尺度特征图进行跨层密集连接,从而增强对密集微小缺陷的表征能力;最后,针对型钢缺陷尺寸分布特点,使用K-means维度聚类方法优化先验框尺寸并将先验框平均分配到4个对应预测尺度上。实验结果表明:Steel-YOLOv3算法具有89.24%的检测平均精度均值(mAP),与Faster R-CNN(Faster Region-based Convolutional Neural Network)、SSD(Single Shot MultiBox Detector)、YOLOv3和YOLOv5算法相比分别提高了3.51%、26.46%、12.63%和5.71%,且所提算法显著提升了微小剥落缺陷的检出率。另外,所提算法的每秒检测图像数量达到25.62张,满足实时检测的要求,可实际应用于型钢表面缺陷的在线检测。

关键词: 型钢, 表面缺陷检测, 多形态微小缺陷, 深度学习, YOLOv3

Abstract:

In order to solve the problems of low detection efficiency and poor detection precision caused by various surface defects and numerous small defects of section steel, a detection algorithm for surface defects of section steel, namely Steel-YOLOv3, was proposed on the basis of the deformable convolution and multi-scale dense feature pyramid. Firstly, the deformable convolution was used to replace the convolutional layers of part of the residual units in Darknet53 network, which strengthened the feature learning ability of feature extraction network for multi-type defects on the surface of section steel. Secondly, a multi-scale dense feature pyramid module was designed, which means that a shallower prediction scale was added to the 3 prediction scales of the original YOLOv3 algorithm and the multi-scale feature maps were connected across layers, thereby enhancing the ability to characterize dense small defects. Finally, according to the defect size distribution characteristics of section steel, the K-means dimension clustering method was used to optimize the scales of anchor boxes, and the anchor boxes were evenly distributed to 4 corresponding prediction scales. Experimental results show that Steel-YOLOv3 algorithm has a detection mean Average Precision (mAP) of 89.24%, which is improved by 3.51%, 26.46%, 12.63% and 5.71% compared with those of Faster Region-based Convolutional Neural Network (Faster R-CNN), Single Shot multibox Detector (SSD), YOLOv3 and YOLOv5 algorithms respectively. And the detection rate of tiny spalling defects is significantly improved by the proposed algorithm. Moreover, the proposed algorithm can detect 25.62 images per second, which means the requirement of real-time detection can be met and the algorithm can be applied to the online detection for the surface defects of section steel.

Key words: section steel, surface defect detection, multi-shape small defect, deep learning, You Only Look Once v3 (YOLOv3)

中图分类号: