Computer Engineering and Applications ›› 2023, Vol. 59 ›› Issue (16): 150-158.DOI: 10.3778/j.issn.1002-8331.2210-0249

• Graphics and Image Processing • Previous Articles     Next Articles

Improved DeepLabv3+ Model for Surface Defect Detection on Steel Plates

FAN Yaoyao, WANG Xingfen, LIU Yahui   

  1. 1.Computer School, Beijing Information Science and Technology University, Beijing 100101, China
    2.School of Information Management, Beijing Information Science and Technology University, Beijing 100192, China
  • Online:2023-08-15 Published:2023-08-15

改进DeepLabv3+网络的钢板表面缺陷检测研究

范瑶瑶,王兴芬,刘亚辉   

  1. 1.北京信息科技大学 计算机学院,北京 100101
    2.北京信息科技大学 信息管理学院,北京 100192

Abstract: To address problems of rough edge segmentation, missed detection and high false detection rate in steel surface defect detection, a multi-scale feature fusion detection method based on DeepLabv3+ with attention mechanism is proposed. Firstly, in the decoding region of the DeepLabv3+ network, the multi-scale feature information is fully utilized and the leap-frog feature fusion is optimized to retain the shallow features, while a more refined up-sampling operation on the deep features is performed to obtain finer defect edges. Secondly, a coordinate attention mechanism is introduced into the coding region backbone network ResNet101 to enhance the capability of the feature extraction and improve the segmentation accuracy. In addition, an optimized loss function combining weighted Dice loss and binary cross entropy loss(BCEloss) is designed to alleviate the problem of sample imbalance and improve segmentation accuracy. The Dice coefficient and mIoU values of the advanced DeepLabv3+ network are improved by 6.0% and 7.92% respectively, with more accurate edge segmentation of scratch defects and significant improvement in the segmentation of pits, edge cracks and iron oxide defects. The experimental results validate the effectiveness of the method in dealing with the steel surface defect problem.

Key words: surface defect detection, DeepLabv3+ network, coordinate attention mechanism, image semantic segmentation, image enhancement

摘要: 针对钢板表面缺陷检测中存在的边缘分割粗糙、漏检和误检率高等问题,提出了一种引入注意力机制的多尺度特征融合的DeepLabv3+检测方法。在DeepLabv3+网络的解码区中,充分利用多尺度特征信息,对跃层特征融合进行优化,保留浅层特征并对深层特征进行了细化的上采样操作,获得更精细的缺陷边缘;在编码区主干网络ResNet101中引入坐标注意力机制,增强特征提取能力,提高分割准确率。设计了加权Dice损失和二元交叉熵损失(BCEloss)结合的优化损失函数来缓解样本不均衡的问题,提高分割精度。改进DeepLabv3+网络的Dice系数和mIoU值分别提高了6.0%和7.92%,刮痕缺陷边缘分割更准确,对凹坑、边缘裂纹与氧化铁皮缺陷的分割效果提升明显,实验结果验证了该方法处理钢板表面缺陷问题的有效性。

关键词: 表面缺陷检测, DeepLabv3+网络, 坐标注意力机制, 图像语义分割, 图像增强