《计算机应用》唯一官方网站 ›› 2023, Vol. 43 ›› Issue (1): 232-241.DOI: 10.11772/j.issn.1001-9081.2021111940

所属专题: 多媒体计算与计算机仿真

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

基于级联神经网络的型钢表面缺陷检测算法

于海涛1, 李健升1, 刘亚姣1, 李福龙1, 王江1, 张春晖2, 于利峰2   

  1. 1.天津大学 电气自动化与信息工程学院,天津 300072
    2.河北津西钢铁集团股份有限公司,河北 唐山 064302
  • 收稿日期:2021-11-14 修回日期:2022-04-20 发布日期:2023-01-12
  • 通讯作者: 于海涛(1985—),男,河北唐山人,副教授,博士生导师,博士,主要研究方向:视觉检测、深度学习htyu@tju.edu.cn
  • 作者简介:李健升(1998—),男,山西大同人,硕士研究生,主要研究方向:视觉检测、深度学习;刘亚姣(1992—),女,河北张家口人,博士研究生,主要研究方向:缺陷检测;李福龙(1997—),男,河南周口人,硕士研究生,主要研究方向:深度学习、图像处理;王江(1964—),男,河北唐山人,教授,博士生导师,博士,主要研究方向:类脑计算、智能控制;张春晖(1978—),男,河北唐山人,工程师,主要研究方向:钢铁冶炼;于利峰(1976—),男,河北唐山人,工程师,硕士,主要研究方向:钢铁冶炼;
  • 基金资助:
    天津市自然科学基金资助项目(19JCYBJC18800)。

Section steel surface defect detection algorithm based on cascade neural network

YU Haitao1, LI Jiansheng1, LIU Yajiao1, LI Fulong1, WANG Jiang1, ZHANG Chunhui2, YU Lifeng2   

  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-11-14 Revised:2022-04-20 Online:2023-01-12
  • Contact: YU Haitao, born in 1985, Ph. D., associate professor. His research interests include visual inspection, deep learning.
  • About author:LI Jiansheng, born in 1998, M. S. candidate. His research interests include visual inspection, deep learning;LIU Yajiao, born in 1992, Ph. D. candidate. Her research interests include defect detection;LI Fulong, born in 1997, M. S. candidate. His research interests include deep learning, image processing;WANG Jiang, born in 1964, Ph. D., professor. His research interests include brain-inspired computing, intellectual control;ZHANG Chunhui, born in 1978, engineer. His research interests include iron and steel smelting;YU Lifeng, born in 1976, M. S., engineer. His research interests include iron and steel smelting;
  • Supported by:
    This work is partially supported by Natural Science Foundation of Tianjin (19JCYBJC18800).

摘要: 深度学习在缺陷检测方面具有优越性能,然而在工业应用过程中由于缺陷概率低,无缺陷图像的检测过程占据了大部分计算时间,严重限制了整体上的有效检测速度。针对上述问题,提出一种基于级联网络的型钢表面缺陷检测算法SDNet。该算法分为两个阶段:预检阶段和精检阶段。预检阶段采用基于深度可分离卷积(DSC)以及多尺度并行卷积的轻量化ResNet预检网络,判断型钢表面图像是否存在缺陷;精检阶段以YOLOv3作为基准网络对图像中的缺陷进行准确分类与定位,并在主干特征提取网络以及预测分支中引入改进空洞空间金字塔池化(ASPP)模块以及对偶注意力模块,以提升网络的检测性能。实验结果表明,SDNet在1 024像素×1 024像素图像上的检测速度达到每秒120.63帧,准确率达到92.1%。与原YOLOv3算法相比,所提算法的检测速度是原YOLOv3算法的3.7倍,检测精度提高了10.4个百分点,可应用于型钢表面缺陷的快速检测。

关键词: 缺陷检测, 级联神经网络, ResNet, YOLOv3

Abstract: Deep learning has superior performance in defect detection, however, due to the low defect probability, the detection process of defect-free images occupies most of the calculation time, which seriously limits the overall effective detection speed. In order to solve the above problem, a section steel surface defect detection algorithm based on cascade network named SDNet (Select and Detect Network) was proposed. The proposed algorithm was divided into two stages: the pre-inspection stage and the precise detection stage. In the pre-inspection stage, the lightweight ResNet pre-inspection network based on Depthwise Separable Convolution (DSC) and multi-scale parallel convolution was used to determine whether there were defects in the surface image of the section steel. In the precise detection stage, the YOLOv3 was used as the baseline network to accurately classify and locate the defects in the image. In addition, the improved Atrous Spatial Pyramid Pooling (ASPP) module and dual attention module were introduced in the backbone feature extraction network and prediction branches to improve the network detection performance. Experimental results show that the detection speed and the accuracy of SDNet on 1 024 pixel×1 024 pixel images reach 120.63 frames per second and 92.1% respectively. Compared to the original YOLOv3 algorithm, the proposed algorithm has the detection speed of about 3.7 times and the detection precision improved by 10.4 percentage points. The proposed algorithm can be applied to the rapid detection of section steel surface defects.

Key words: defect detection, cascade neural network, ResNet, YOLOv3

中图分类号: