Surface defect detection plays an increasingly important role in manufacturing industry to guarantee the product quality. Many deep learning methods have been widely used in surface defect detection tasks, and have been proven to perform well in defects classification and location. However, deep learning-based detection methods often require plenty of data for training, which fail to apply to the real industrial scenarios since the distribution of defect categories is often imbalanced. In other words, common defect classes have many samples but rare defect classes have extremely few samples, and it is difficult for these methods to well detect rare defect classes. To solve the imbalanced distribution problem, in this paper we propose TL-SDD: a novel Transfer Learning-based method for Surface Defect Detection. First, we adopt a two-phase training scheme to transfer the knowledge from common defect classes to rare defect classes. Second, we propose a novel Metric-based Surface Defect Detection (M-SDD) model. We design three modules for this model: (1) feature extraction module: containing feature fusion which combines high-level semantic information with low-level structural information. (2) feature reweighting module: transforming examples to a reweighting vector that indicates the importance of features. (3) distance metric module: learning a metric space in which defects are classified by computing distances to representations of each category. Finally, we validate the performance of our proposed method on a real dataset including surface defects of aluminum profiles. Compared to the baseline methods, the performance of our proposed method has improved by up to 11.98% for rare defect classes.
翻译:地表缺陷检测在制造业中发挥着越来越重要的作用,以保障产品质量。许多深层次的学习方法已被广泛用于表面缺陷检测任务,并证明在缺陷分类和位置方面效果良好。然而,深层次的学习检测方法往往需要大量的培训数据,这些数据不适用于真正的工业情景,因为缺陷类别分布往往不平衡。换句话说,常见的缺陷类别有许多样本,但稀有的缺陷类别有极少的样本,这些方法很难很好地发现稀有的缺陷类别。为了解决不平衡的分布问题,我们在本文件中提议TL-SDD:一种基于地面缺陷检测的新型转移学习方法。首先,我们采用两阶段的培训计划将知识从普通缺陷类别转移到罕见的缺陷类别。第二,我们提出一种新的基于地面缺陷检测(M-SDDD)模型。我们为这一模型设计了三个模块:(1) 特征提取模块:包含将高层次的语义信息与低层次结构信息相结合的特征组合。(2) 特征再加权模块:将示例转换为重新加权的源数据转换为11级的地面缺陷检测方法;我们提出的地面缺陷测试模型的精确度分析方法。