An Efficient Network for Surface Defect Detection
간접 관련 산업용 섬유 · (17) 스펀본드 부직포 (3) 자동차 인테리어 소재(11) 배리어 필름(12) 증착 필름
기본 정보
- 저자
- DOI
- 10.3390/app10176085
- 저널
- Applied Sciences
- 발행년도
- 2020
- 발행기관
- Multidisciplinary Digital Publishing Institute
- 피인용수
- 42
- 라이선스
- cc-by
- 논문 유형
- –
- 언어
- –
- 원문 페이지
- https://doi.org/10.3390/app10176085
- 토픽
- Surface Roughness and Optical Measurements
- OpenAlex ID
- W3082184285
평가 내용
- 관련도
- 간접 관련
- 사업분야
- 산업용 섬유 · (17) 스펀본드 부직포
- 부 분야
- (3) 자동차 인테리어 소재, (11) 배리어 필름, (12) 증착 필름
- R&D 측면
- 분석·모델링
- 확신도
- 0.70
- 근거 용어
- Surface Defect Detection, Convolutional neural networks, MobileNet-v2-dense, Asymmetric loss function, Multi-scale cascade structure
- 판단 근거
- 논문은 표면 결함 검출을 위한 딥러닝 네트워크 연구로, 코오롱인더스트리의 필름, 부직포, 인공피혁 등 고분자 소재 제조 공정 중 품질 관리(QC) 자동화에 적용 가능한 기술입니다.
- R&D 활용 포인트
- 필름, 부직포, 인공피혁 등 연속 생산 공정에서 발생하는 표면 결함을 실시간으로 자동 검출하는 AI 비전 검사 시스템 고도화에 활용 가능합니다.
- 평가 입력
- 초록 956자
초록
본문 37,586자
본문 펼치기
섹션 본문 81문단 · 36,060자
(제목 없음)
1Convolutional neural networks (CNN) have achieved promising performance in surface defect detection recently.Although many CNN-based methods have been proposed, most of them are limited by the few samples available for training, and the imbalance of positive and negative samples.Hence, their detection performance needs to be further improved.To this end, we propose a multi-scale cascade CNN called MobileNet-v2-dense to detect defects more efficiently.Specifically, the multi-scale cascade structure used in our network can help capture the weak defect semantics that may be lost in the deep network.Then, we propose a novel asymmetric loss function to further improve detection performance.Lastly, a two-stage augmentation method effectively enlarges the training dataset.Experimental results show that, compared to the state-of-the-art, the area under the receiver-operating characteristic curve (AUC-ROC) score of our method increased by 0.16.
Introduction
2Surface defect detection aims to recognize samples that exhibit dissimilar properties when compared with defect-free samples.Surface defect detection commonly occurs in many industrial applications, such as steel defect detection [1], textile defect detection [2], and glass bottle bottom defect detection [3].The defects of industrial products that occur during manufacturing have negative effects on the product quality and even functionality in certain cases.To guarantee the quality of final products, the defective products must be detected and removed manually or automatically.
3In the past decades, many traditional methods of surface defect detection have been developed such as statistics-based methods [4][5][6][7], spectrum-based methods [8][9][10], and model-based methods [11][12][13].These traditional detection algorithms rely on the features of artificial design, which are limited to specific defect modes.Therefore, they cannot handle detection of texture defects that involve complex textures or any new defect mode.
4Recently, Convolutional Neural Networks (CNN) have been widely applied in industrial defect detection task and achieved promising performance.Jonathan et al. [14] applied CNN for the first time to detection of steel surface defects.Later, more and more methods based on CNN have been proposed.The CNN-based methods have reached better defect detection results than traditional algorithms through the design of efficient network structure.However, their network structures were streamlined which cannot extract the information of the input image completely.In addition, although they used some data augmentation methods to increase the number of training samples, these methods are too simple to significantly improve the detection performance.Most importantly, they did not consider the imbalance of positive and negative samples.Generally speaking, the number of negative samples (defect-free samples) is much larger than positive samples (defective samples).In this case, the network learns more features of negative samples, resulting in a decrease in the detection accuracy of positive samples.
5To tackle these problems, this paper makes the following contributions:
61.
7an efficient network called MobileNet-v2-dense is proposed.It starts from MobileNet-v2 and innovates on a multi-scale cascade structure to improve defect detection performance; 2.
8a two-stage data augmentation method is proposed for network training.This method can effectively increase the number of data sets and improve detection performance; 3. to solve the imbalance between positive and negative samples, an asymmetric loss function is proposed, which can make the network pay more attention to the loss of positive samples.
9The rest of the paper is organized as follows.Section 2 reviews some related work on surface defect detection.Section 3 describes the proposed MobileNet-v2-dense network in detail, including the data augmentation method and asymmetric loss function.To evaluate the model and compare the overall performance, the experimental results are presented in Section 4. Section 5 summarizes the work.
Related Work
10Traditional Surface Defect Detection Methods.The traditional methods for surface defect detection can be categorized into three classes according to the image processing techniques.(a) Statistics-based methods; (b) spectrum-based methods; (c) model-based methods.Statistics-based methods commonly use the grayscale distributions of image regions to describe texture characteristics, such as the gray-level co-occurrence matrix method [4], the autocorrelation method [5], the morphology method [6], and the histogram feature statistics [7].Spectrum-based methods focus on finding the textural structure of the texture image and are particularly suitable for textures with an obvious structure, such as the Fourier feature method [8], Gabor feature method [9], and wavelet feature method [10].Model-based methods describe texture patterns by modeling special distributions or other attributes with certain models, such as the fractal body model [11], random field model [12], and back scattering model [13], and so on.
11CNN-based Surface Defect Detection Methods.Many CNN-based methods have emerged in recent years.Jonathan et al. [14] applied CNN for the first time to detection of steel surface defects and proved that the method of CNN was superior to the traditional SVM classifier.Soukup et al. [15] gathered the image of the rail surface and experimented with classical CNN, and the result showed that classical CNN already distinctly outperforms the model-based methods.Faghih et al. [16] used deeper convolutional neural networks (DCNNs) to detect railway surface defects.Ren et al. [17] proposed a supervised CNN architecture for image patch classification.Weimer et al. [18] and Park et al. [19] also proposed novel DCNNs architectures that obviously improved the performance of automated defect detection.Wang et al. [20] cut defect images into patches for detection.Benjamin et al. [21] proposed deep metric learning using triplet networks for defect detection.
12Multi-scale Cascade Network.As CNN becomes deeper, a new research problem emerges: after the information of input images passes through many layers, it can vanish when it reaches the end of the network.Highway Networks [22] bypasses the signal from one layer to the next layer via identity connections.FractalNet [23] repeatedly combines several parallel layer sequences with a different number of convolutional blocks to obtain a large nominal depth while maintaining many short paths in the network.Although these different approaches vary in network topology, they all have common characteristics: they create short paths from the early layers to later layers.In [24][25][26][27], the use of multi-scale features in CNNs through skip connections has been found to be effective for various vision tasks.However, in the task of using CNN for defect detection [15][16][17][18][19], the network structure of CNN is usually streamlined, and does not use shallow network information.
13MobileNet-v2.To extract richer features, current convolutional neural networks tend to increase the width and depth of the network.These methods have resulted in large network parameters and are difficult to apply on hardware devices with limited resources.MobileNet [28] was proposed to solve this problem.MobileNet-v1 [28] replaces standard convolution with depth separable convolution and divides the traditional convolution process into two steps: filtering and merging.This convolution approach greatly reduces the computational cost and model size and is easier to deploy in resource-constrained environments.The design of MobileNet-v2 [29] is based on MobileNet-v1 and borrows ideas from ResNet [30] to add the residual structure of the shortcut.
Proposed Methods
14In this section, the proposed MobileNet-v2-dense model is described in detail.The overall architecture of the model is shown in Figure 1.In the training phase, training data are augmented with a two-stage augmentation method.Furthermore, the improved loss function, called asymmetric loss function, is introduced.In the testing phase, the learning-completed model is used to detect whether an image is defective or not.Specific illustrations are given as follows.
15are difficult to apply on hardware devices with limited resources.MobileNet [28] was proposed to solve this problem.MobileNet-v1 [28] replaces standard convolution with depth separable convolution and divides the traditional convolution process into two steps: filtering and merging.This convolution approach greatly reduces the computational cost and model size and is easier to deploy in resource-constrained environments.The design of MobileNet-v2 [29] is based on MobileNet-v1 and borrows ideas from ResNet [30] to add the residual structure of the shortcut.
16In this section, the proposed MobileNet-v2-dense model is described in detail.The overall architecture of the model is shown in Figure 1.In the training phase, training data are augmented with a two-stage augmentation method.Furthermore, the improved loss function, called asymmetric loss function, is introduced.In the testing phase, the learning-completed model is used to detect whether an image is defective or not.Specific illustrations are given as follows.
A Multi-Scale MobileNet-v2-Dense Network
17Considering the limited storage and computing power of the hardware in practical applications, we chose a network with fewer parameters called MobileNet-v2 as our backbone.
18As stated above, the transmission of multi-scale information can prevent the feature vanish when the network goes deeper.Therefore, we incorporated multi-scale design into MobileNet-v2 and designed our defect detection network MobileNet-v2-dense.The network structure is shown in Figure 1.The main component of the network is composed of multiple cascaded inverted residual blocks with downsampling.The structure of the inverted residual block is shown in Figure 2. The inverted residual block takes a low-dimensional compressed representation as an input, which first expanded to high dimension and filtered with lightweight depthwise convolution.Features are subsequently projected back to a low-dimensional representation.The dense concatenation is used between inverted residual blocks to carry shallow features to deeper layers of the network, which is the fusion of multi-scale information.The network structure of MobileNet-v2-dense is formed by dense Where the block names correspond to Table 1.Solid lines in a diagram are concatenation from a shallow feature map to the deep one.
19Considering the limited storage and computing power of the hardware in practical applications, we chose a network with fewer parameters called MobileNet-v2 as our backbone.
20As stated above, the transmission of multi-scale information can prevent the feature vanish when the network goes deeper.Therefore, we incorporated multi-scale design into MobileNet-v2 and designed our defect detection network MobileNet-v2-dense.The network structure is shown in Figure 1.
21The main component of the network is composed of multiple cascaded inverted residual blocks with downsampling.The structure of the inverted residual block is shown in Figure 2. The inverted residual block takes a low-dimensional compressed representation as an input, which first expanded to high dimension and filtered with lightweight depthwise convolution.Features are subsequently projected back to a low-dimensional representation.The dense concatenation is used between inverted residual blocks to carry shallow features to deeper layers of the network, which is the fusion of multi-scale information.The network structure of MobileNet-v2-dense is formed by dense cascades between multi-scale channels, with six cascades. 1 2, and 3 are cascades of feature maps with the same scale, 4 and 5 are cascades of feature maps with 1/4 down sampling, and 6 is a cascade of feature maps with 1/16 down sampling.
22cascades between multi-scale channels, with six cascades.① ②, and ③ are cascades of feature maps with the same scale, ④ and ⑤ are cascades of feature maps with 1/4 down sampling, and ⑥ is a cascade of feature maps with 1/16 down sampling.The network topology can transfer and fuse multi-scale features via shortcuts from the shallow to deep layers to avoid the feature missing of selected samples in the streamlined network.The experimental results in Section 4 show that the structure improves the detection accuracy.
Two-Stage Augmentation Method
23In this section, we introduce the two-stage data augmentation method, which can effectively increase the number of data sets and improve detection performance.
24Currently, training of CNNs often uses static augmentation [28] or dynamic augmentation [31] to expand the dataset.Static augmentation refers to the dataset is augmented with image processing methods before feeding into the convolutional neural network.Dynamic augmentation is that the original data remains the same and augmentation operations are performed per mini-batch during the training process.However, the static augmentation pattern typically increases the samples exponentially, thus the training time is also increased exponentially.In the experiment, we found that for a small number of data sets, only use dynamic augmentation is not helpful to improve the detection performance.
25Therefore, this paper proposes a two-stage augmentation method for data augmentation during the training process via static augmentation and dynamic augmentation.Barret et al. [31] indicated that the operation most commonly used in good strategies they search out is rotate.Therefore, under the premise of ensuring regular texture of the defect image, static augmentation of first stage only performs five types of operation: horizontal flip, vertical flip, 90 • rotation, 180 • rotation, and 270 • rotation.These operations preserve the global texture of the original image.The statically expanded dataset is subsequently used to train the neural network.When the loss value stops decreasing and begins to jitter, the dynamic augmentation process of second stage is applied to further enhance the statically augmentation data set during the training process.Dynamic augmentation operations are performed per mini-batch.The operations modes are listed in Table 2, and these operations occur with a certain probability for each batch.The probability of enhanced operation is determined by our prior knowledge.We think that first stage augmentation data is always more important, and the second stage augmentation method may damage data original texture structure and lead to model degradation, so the probability of enhanced operation is set below 30%.The intensity of the occurrence is random within a certain range, and the augmentation types can occur in combination.The one-stage augmentation is only trained once, and the training data is dynamically augmented based on static augmentation during training.The proposed augmentation method helps to expand the dataset more efficiently, reduce the training time, and improve the convergence of the neural network training and the robustness of the trained model.This method can also be used to fine-tune the network and improve the accuracy further.
Asymmetric Loss Function
26Class imbalance is common in detection problems.To solve this problem, we propose an asymmetric loss function.This section will introduce the loss in detail.
27In the field of defect detection, the number of positive samples (defective images) is usually smaller than the number of negative samples (defect-free images).This imbalance will cause two problems: (1) the training efficiency is low because negative samples take up a large portion of time during the training process; and (2) the training performance is poor because the network learns features from a large number of negative samples instead of the effective defect features, which leads to model degradation.A common solution is to perform a form of hard negative mining [32] or to give different weights to different classes during training [33].In contrast, certain scholars attempted to solve the problem by designing special loss functions to allow efficient training on all examples without sampling or weights.The most common loss function used for binary classification is cross-entropy (CE), which expression as follows:
28where y is the prediction and y is the expected value.y = 1 is a positive sample, y = 0 is a negative sample.However, whether the ground truth of the sample is defective or not, the attenuation degree on CE loss is the same.The focal loss function [34] modified the CE-loss function to reduce the relative loss of well-classified samples and placed more attention on bad-classified samples.A remarkable characteristic of both CE-loss and focal loss is that although the loss of defective samples is large, since the number of defective samples is less, network training does not focus on defective samples.Thus, we redesigned the loss to give more attention to the loss value of the defective sample by using the exponential function as the attention mechanism.It is written as: A common solution is to perform a form of hard negative mining [32] or to give different weights to different classes during training [33].In contrast, certain scholars attempted to solve the problem by designing special loss functions to allow efficient training on all examples without sampling or weights.The most common loss function used for binary classification is cross-entropy (CE), which expression as follows:
29where y' is the prediction and is the expected value.y = 1 is a positive sample, y = 0 is a negative sample.However, whether the ground truth of the sample is defective or not, the attenuation degree on CE loss is the same.The focal loss function [34] modified the CE-loss function to reduce the relative loss of wellclassified samples and placed more attention on bad-classified samples.A remarkable characteristic of both CE-loss and focal loss is that although the loss of defective samples is large, since the number of defective samples is less, network training does not focus on defective samples.Thus, we redesigned the loss to give more attention to the loss value of the defective sample by using the exponential function as the attention mechanism.It is written as:
Experimental and Algorithm Setup
30In order to verify the effectiveness of our proposed multi-scale cascaded network structure, asymmetric loss, and two-stage data augmentation, we use the network structure of Figure 1 to train and test on the DAGM data set [35], and compare it with the other three advanced defect detection algorithms.
31All experiments were trained on a single NVIDIA GeForce GTX 1060 6 GB graphics card.We use the Adam optimizer [36] with a mini-batch size of 8.While the network is training, the training set is processed by our two-stage augmentation method.Network is trained to minimize asymmetric loss.The learning rate (LR) is set to 1e-4 and is decayed by a factor 10 when the loss does not decrease within 10 epochs.
32In order to verify the effectiveness of our proposed multi-scale cascaded network structure, asymmetric loss, and two-stage data augmentation, we use the network structure of Figure 1 to train and test on the DAGM data set [35], and compare it with the other three advanced defect detection algorithms.
33All experiments were trained on a single NVIDIA GeForce GTX 1060 6 GB graphics card.We use the Adam optimizer [36] with a mini-batch size of 8.While the network is training, the training set is processed by our two-stage augmentation method.Network is trained to minimize asymmetric loss.The learning rate (LR) is set to 1e-4 and is decayed by a factor 10 when the loss does not decrease within 10 epochs.
Evaluation Indicators
34TPR and TNR.True positive rate (TPR) means that the classifier predicts the proportion of correct positive samples to all positive samples.Similarly, true negative rate (TNR) represents the proportion of correct negative samples predicted by the classifier to all negative samples.TPR and TNR are defined as Equations ( 3) and ( 4), TPR = TP/(TP + FN),
35TNR = TN/(FP + TN) (4) where TN refers to the defect-free samples that are identified as defect free, FP denotes those that are identified as defective, TP refers to the defective samples that are identified as defective, and FN represents those that are identified as defect-free.TPR and TNR are values between 0 and 1, higher is better.AUC-ROC.AUC-ROC is the area under the receiver-operating characteristic (ROC) curve.ROC is an important evaluation metric for assessing the performance of classification models.The ROC curve demonstrates the relationship between false positive rate (FPR) and TPR.FPR is defined as:
36where FPR represents the proportion of false positive samples predicted by the classifier to all negative samples.A notable advantage of the ROC curve is that when the distribution of positive and negative samples changes, its shape can remain generally unchanged.In other words, in the case of an unbalanced number of positive and negative samples, the ROC curve is a more stable indicator for reflecting the quality of the model.The ROC curve is closer to the (0, 1) point, the model performance is better.The AUC-ROC score is closer to 1, the model performance is better.
Data Sets
37We perform experiments on DAGM data sets.The German DAGM 2007 dataset includes 10 types of woven fabrics, as shown in Figure 4.These texture defects usually exist on the surface of textile cloth and wallpaper.The red lines in the figures indicate the defect.There are 8050 training and testing sets each, and the ratio of positive and negative samples for each type is approximately 1:7.This dataset is often used in industrial optical defect detection.
38Appl.Sci.2020, 10, x FOR PEER REVIEW 7 of 12
Evaluation Indicators
39TPR and TNR.True positive rate (TPR) means that the classifier predicts the proportion of correct positive samples to all positive samples.Similarly, true negative rate (TNR) represents the proportion of correct negative samples predicted by the classifier to all negative samples.TPR and TNR are defined as Equations ( 3) and ( 4), TPR = TP/(TP+FN),
40where TN refers to the defect-free samples that are identified as defect free, FP denotes those that are identified as defective, TP refers to the defective samples that are identified as defective, and FN represents those that are identified as defect-free.TPR and TNR are values between 0 and 1, higher is better.AUC-ROC.AUC-ROC is the area under the receiver-operating characteristic (ROC) curve.ROC is an important evaluation metric for assessing the performance of classification models.The ROC curve demonstrates the relationship between false positive rate (FPR) and TPR.FPR is defined as:
41where FPR represents the proportion of false positive samples predicted by the classifier to all negative samples.A notable advantage of the ROC curve is that when the distribution of positive and negative samples changes, its shape can remain generally unchanged.In other words, in the case of an unbalanced number of positive and negative samples, the ROC curve is a more stable indicator for reflecting the quality of the model.The ROC curve is closer to the (0, 1) point, the model performance is better.The AUC-ROC score is closer to 1, the model performance is better.
Data Sets
42We perform experiments on DAGM data sets.The German DAGM 2007 dataset includes 10 types of woven fabrics, as shown in Figure 4.These texture defects usually exist on the surface of textile cloth and wallpaper.The red lines in the figures indicate the defect.There are 8050 training and testing sets each, and the ratio of positive and negative samples for each type is approximately 1:7.This dataset is often used in industrial optical defect detection.
Experimental Results
43Visual Evaluation.The visual result of the model evaluation is shown in the Figure 5.We can accurately identify whether the surface of the object is defective and display its label on the image.Good means that the surface is free of defects; bad means that there are defects.
44Visual Evaluation.The visual result of the model evaluation is shown in the Figure 5.We can accurately identify whether the surface of the object is defective and display its label on the image.Good means that the surface is free of defects; bad means that there are defects.
45In addition, in order to verify the effectiveness of the proposed MobileNet-v2-dense model, we compare the performance of the model to other latest three CNN-based defect detection algorithms, in terms of TNR/TPR and AUC-ROC indicators.AUC-ROC Evaluation.We compare the AUC-ROC of defect detection results to Benjamin's method [21] on the task of detecting defects in DAGM test dataset, which is part of the DAGM dataset.The results are shown in Table 3. From these results, we see that our model has higher AUC-ROC scores for the ten classes of defects in the DAGM data set, so the performance of our model is better than Benjamin.
46Furthermore, Figure 6 presents the ROC curves for the 10 classes of defects in the DAGM test data set.According to the ROC curve, the model achieves good classification performance in all classes except the second and eighth classes.The reason for the not perfect performance of the second and eighth classes of defects may be that their defects and textures are too similar.It should be noted that far fewer positive samples exist than negative samples in each class of DAGM dataset and that the proportion of positive and negative samples is approximately 1:7.So it can be concluded that our model performs well on ROC and can perform well even when positive and negative samples are unbalanced, benefitting from our asymmetric loss function.AUC-ROC Evaluation.We compare the AUC-ROC of defect detection results to Benjamin's method [21] on the task of detecting defects in DAGM test dataset, which is part of the DAGM dataset.The results are shown in Table 3. From these results, we see that our model has higher AUC-ROC scores for the ten classes of defects in the DAGM data set, so the performance of our model is better than Benjamin.Furthermore, Figure 6 presents the ROC curves for the 10 classes of defects in the DAGM test data set.According to the ROC curve, the model achieves good classification performance in all classes except the second and eighth classes.The reason for the not perfect performance of the second and eighth classes of defects may be that their defects and textures are too similar.It should be noted that far fewer positive samples exist than negative samples in each class of DAGM dataset and that the proportion of positive and negative samples is approximately 1:7.So it can be concluded that our model performs well on ROC and can perform well even when positive and negative samples are unbalanced, benefitting from our asymmetric loss function.
47TPR/TNR Evaluation.We calculate the TPR/TNR scores of defect detection results of our network, Weimer's [18] and Wang's [20].
48As shown in Table 4, we detect all 10 classes of defects in DAGM dataset, whereas other methods only performed defect detection for six classes.The experimental results show that our method get the highest TPR/TNR mean values, which means that the detect results of our method have best detect performance in this three methods.The reason why TPR is slightly lower than TNR might be that texture of the sample is irregular, and selected positive samples with defects are mistaken for defect-free.TPR/TNR Evaluation.We calculate the TPR/TNR scores of defect detection results of our network, Weimer's [18] and Wang's [20].
49As shown in Table 4, we detect all 10 classes of defects in DAGM dataset, whereas other methods only performed defect detection for six classes.The experimental results show that our method get the highest TPR/TNR mean values, which means that the detect results of our method have best detect performance in this three methods.The reason why TPR is slightly lower than TNR might be that texture of the sample is irregular, and selected positive samples with defects are mistaken for defect-free.
50Parameters Comparison.In practical applications, network models with too many parameters are difficult to use in resource-constrained hardware.In order to prove that our model is more convenient to apply in practical, we compared the parameters of our network to the three networks mentioned above.The experimental results are shown in Table 5.The parameters of the convolution filter in our model and other three methods are 2.12M, 6.07M, 6.98M, 135.59M.This result shows that our model has the fewest parameters, thus it is more convenient to apply on hardware with limited resources.We tested the speed of our model on small devices, and the detection rate can reach 24 ms per image on the NVIDIA Jetson Nano platform, which can meet industrial demands.Parameters Comparison.In practical applications, network models with too many parameters are difficult to use in resource-constrained hardware.In order to prove that our model is more convenient to apply in practical, we compared the parameters of our network to the three networks mentioned above.The experimental results are shown in Table 5.The parameters of the convolution filter in our model and other three methods are 2.12M, 6.07M, 6.98M, 135.59M.This result shows that our model has the fewest parameters, thus it is more convenient to apply on hardware with limited resources.We tested the speed of our model on small devices, and the detection rate can reach 24 ms per image on the NVIDIA Jetson Nano platform, which can meet industrial demands.
Ablation Study
51The ablation experiment is to verify the effectiveness of each innovation point.The idea of ablation experiment is to control variables and experiment on innovation points one by one.
52Two-stage augmentation.In order to show the effectiveness of our two-stage augmentation, we performed the following ablation study.In this ablation study, we train the MobileNet-v2 without data augmentation, with dynamic augmentation, with static augmentation, with one-stage augmentation.Results are shown in Table 6.Our two-stage augmentation method has the highest TPR/TNR, which means that our augmentation method is the best and can effectively improve the performance of defect detection.Multi-scale cascade.In order to verify the performance improvement of multi-scale cascade, we conducted a performance comparison experiment between our multi-scale cascade network MobileNet-v2-dense and MobileNet-v2.It should be noted that the accuracy of network changes is basically unchanged if no data augmentation is used.Therefore, we train the network based on the two-stage augmentation, and the loss function is the CE loss.The experimental results are shown in Table 7.Compared with MobileNet-v2, the TPR/TNR of our MobileNet-v2-dense is improved.Asymmetric loss.In experiment 3, we train with CE loss, focal loss, and asymmetric loss in the same MobileNet-v2-dense and two-stage data augmentation.The results are listed in Table 8.It can be seen that the asymmetric loss function can improve the TNR to 99.93% for the DAGM data set, with an increase of 2.28% compared to Focal loss.
Conclusions
53This paper proposes a surface defect detection method based on MobileNet-v2-dense.A new multi-scale cascade is proposed, i.e., the lightweight convolutional neural network structure MobileNet-v2-dense, which can be used on small embedded systems.A two-stage augmentation method is proposed to enlarge the training dataset, such that the robustness of the defect detection model is improved and training time is conserved.Moreover, an asymmetric loss function is introduced
Figure 1 .
54Figure 1.The structure of the MobileNet-v2-dense network.Where the block names correspond to Table1.Solid lines in a diagram are concatenation from a shallow feature map to the deep one.
55Figure 1.The structure of the MobileNet-v2-dense network.Where the block names correspond to Table1.Solid lines in a diagram are concatenation from a shallow feature map to the deep one.
Figure 2 .
56Figure 2. The inverted residual block in MobileNet-v2.It has two structures, and when the stride = 2, the size of the feature map is downsampled by two times.Dwise is a deep-wise separable convolution proposed by MobileNet.
57Figure 2. The inverted residual block in MobileNet-v2.It has two structures, and when the stride = 2, the size of the feature map is downsampled by two times.Dwise is a deep-wise separable convolution proposed by MobileNet.The configuration of MobilNet-v2-dense is shown in Table 1.BN indicates batch normalization layer, and LRelu denotes leaky relu layer.All the activation functions of the network are leaky_relu.Additionally, C1/4 means 4 times downsampling of the C1 layer.Inverted Residual Block x2 states there are two inverted residual blocks in Block2.The input image size of the network is 224 × 224, and the resolution of the feature image changes to 112 × 112 after Conv1.Subsequently, features are extracted through several blocks.The "Concat layer" concatenate the features of the shallow layer.Finally, after aggregation by a Pooling layer, global features are fed into a softmax layer to obtain the final probability scores, which indicate the possibility that the image is a defect.The network topology can transfer and fuse multi-scale features via shortcuts from the shallow to deep layers to avoid the feature missing of selected samples in the streamlined network.The experimental results in Section 4 show that the structure improves the detection accuracy.
Figure 3
58Figure 3 compares three kinds of loss functions.Intuitively, they are symmetric in the center of (a) and (b), which means that no matter the positive sample or the negative sample, their loss value is the same.Thereby, it pays more attention to the samples of minority class, alleviating the imbalance of positive and negative samples.
Appl. Sci. 2020 ,
5910, x FOR PEER REVIEW 6 of 12
Figure 3
60Figure 3 compares three kinds of loss functions.Intuitively, they are symmetric in the center of (a) and (b), which means that no matter the positive sample or the negative sample, their loss value is the same.Thereby, it pays more attention to the samples of minority class, alleviating the imbalance of positive and negative samples.
Figure 3 .
61Figure 3.Comparison between different loss functions.
62Figure 3.Comparison between different loss functions.
Figure 4 .
63Figure 4. Defects detect data set.
64Figure 4. Defects detect data set.
Figure 5 .
65Figure 5.The surface defect detection result of our model.
66Figure 5.The surface defect detection result of our model.In addition, in order to verify the effectiveness of the proposed MobileNet-v2-dense model, we compare the performance of the model to other latest three CNN-based defect detection algorithms, in terms of TNR/TPR and AUC-ROC indicators.AUC-ROC Evaluation.We compare the AUC-ROC of defect detection results to Benjamin's method[21] on the task of detecting defects in DAGM test dataset, which is part of the DAGM dataset.The results are shown in Table3.From these results, we see that our model has higher AUC-ROC scores for the ten classes of defects in the DAGM data set, so the performance of our model is better than Benjamin.
Figure 6 .
67Figure 6.ROC curve and AUC-ROC for 10 classes of data in DAGM dataset.
68Figure 6.ROC curve and AUC-ROC for 10 classes of data in DAGM dataset.
Table 1 .
69Mobilenet-v2-Dense configuration.("Conv" and "Concat" denote convolution and concatenation, respectively).
70Block7 7 × 7 × 160 Inverted Residual Block × 1 C3 7 × 7 × 320 Concat (C1/16, C2/4, Block6, Block7)
71Mobilenet-v2-Dense configuration.("Conv" and "Concat" denote convolution and concatenation, respectively).
Table 2 .
72Second stage augmentation operation.
Table 3 .
73Area under the receiver-operating characteristic (AUC-ROC) curve performance comparison, higher mean is better.
74Area under the receiver-operating characteristic (AUC-ROC) curve performance comparison, higher mean is better.
Table 4 .
75True negative rate (TNR) and true positive rate (TPR) performance comparison.
76True
77negative rate (TNR) and true positive rate (TPR) performance comparison.
Table 5 .
78Parameters of different networks.
Table 6 .
79Comparison of TPR/TNR of different augmentation methods.
Table 7 .
80Comparison of TPR/TNR of different networks.
Table 8 .
81Comparison of TPR/TNR of different loss functions.
참고문헌 27건
- Advances in Visual Computing Lecture notes in computer science · Springer Science+Business Media · 2014 10.1007/978-3-319-14249-4
- Fully convolutional networks for semantic segmentation 2015 10.1109/cvpr.2015.7298965
- Steel defect classification with Max-Pooling Convolutional Neural Networks 2022 International Joint Conference on Neural Networks (IJCNN) · 2012 10.1109/ijcnn.2012.6252468
- Deep Residual Learning for Image Recognition 2016 10.1109/cvpr.2016.90
- Design of deep convolutional neural network architectures for automated feature extraction in industrial inspection CIRP Annals · Elsevier BV · 2016 10.1016/j.cirp.2016.04.072
- Machine learning-based imaging system for surface defect inspection International Journal of Precision Engineering and Manufacturing-Green Technology · Springer Science+Business Media · 2016 10.1007/s40684-016-0039-x
- Deep convolutional neural networks for detection of rail surface defects 2016 10.1109/ijcnn.2016.7727522
- A Generic Deep-Learning-Based Approach for Automated Surface Inspection IEEE Transactions on Cybernetics · Institute of Electrical and Electronics Engineers · 2017 10.1109/tcyb.2017.2668395
- A fast and robust convolutional neural network-based defect detection model in product quality control The International Journal of Advanced Manufacturing Technology · Springer Science+Business Media · 2017 10.1007/s00170-017-0882-0
- An Embedded Cloud Database Service Method for Distributed Industry Monitoring IEEE Transactions on Industrial Informatics · Institute of Electrical and Electronics Engineers · 2017 10.1109/tii.2017.2773644
- Fabric Defect Detection Using a Hybrid and Complementary Fractal Feature Vector and FCM-based Novelty Detector Fibres and Textiles in Eastern Europe · Index Copernicus International S.A. · 2017 10.5604/01.3001.0010.5370
- Automatic Visual Detection System of Railway Surface Defects With Curvature Filter and Improved Gaussian Mixture Model IEEE Transactions on Instrumentation and Measurement · Institute of Electrical and Electronics Engineers · 2018 10.1109/tim.2018.2803830
- An Unsupervised-Learning-Based Approach for Automated Defect Inspection on Textured Surfaces IEEE Transactions on Instrumentation and Measurement · Institute of Electrical and Electronics Engineers · 2018 10.1109/tim.2018.2795178
- Pedestrian detection with unsupervised multispectral feature learning using deep neural networks Information Fusion · Elsevier BV · 2018 10.1016/j.inffus.2018.06.005
- Fabric Defect Detection Adopting Combined GLCM, Gabor Wavelet Features and Random Decision Forest 3D Research · Springer Science+Business Media · 2019 10.1007/s13319-019-0215-1
- Anomaly detection with convolutional neural networks for industrial surface inspection Procedia CIRP · Elsevier BV · 2019 10.1016/j.procir.2019.02.123
- Stacked convolutional sparse denoising auto-encoder for identification of defect patterns in semiconductor wafer map Computers in Industry · Elsevier BV · 2019 10.1016/j.compind.2019.04.015
- AutoAugment: Learning Augmentation Strategies From Data 2019 10.1109/cvpr.2019.00020
- Focal Loss for Dense Object Detection 2017 10.1109/iccv.2017.324
- Loss Max-Pooling for Semantic Image Segmentation 2017 10.1109/cvpr.2017.749
- A Surface Defect Detection Framework for Glass Bottle Bottom Using Visual Attention Model and Wavelet Transform IEEE Transactions on Industrial Informatics · Institute of Electrical and Electronics Engineers · 2019 10.1109/tii.2019.2935153
- Robust Dislocation Defects Region Segmentation for Polysilicon Wafer Image With Random Texture Background IEEE Access · Institute of Electrical and Electronics Engineers · 2019 10.1109/access.2019.2942218
- A New Self-Reference Image Decomposition Algorithm for Strip Steel Surface Defect Detection IEEE Transactions on Instrumentation and Measurement · Institute of Electrical and Electronics Engineers · 2019 10.1109/tim.2019.2952706
- Improved Block Sparse Bayesian Learning Method Using K-Nearest Neighbor Strategy for Accurate Tumor Morphology Reconstruction in Bioluminescence Tomography IEEE Transactions on Biomedical Engineering · Institute of Electrical and Electronics Engineers · 2019 10.1109/tbme.2019.2953732
- Multi-scale Recognition with DAG-CNNs 2015 10.1109/iccv.2015.144
- Circumferential defect detection using ultrasonic guided waves Engineering Computations · Emerald Publishing Limited · 2020 10.1108/ec-06-2019-0260
- Fabric Defect Detection Based on Membership Degree of Regions IEEE Access · Institute of Electrical and Electronics Engineers · 2020 10.1109/access.2020.2978900