A multi-scale attention mechanism for detecting defects in leather fabrics
간접 관련 모빌리티 소재 · (2) 샤무드(인공피혁) (3) 자동차 인테리어 소재
기본 정보
- 저자
- DOI
- 10.1016/j.heliyon.2024.e35957
- 저널
- Heliyon
- 발행년도
- 2024
- 발행기관
- Elsevier BV
- 피인용수
- 3
- 라이선스
- 0
- 논문 유형
- –
- 언어
- –
- 원문 페이지
- https://doi.org/10.1016/j.heliyon.2024.e35957
- 토픽
- Color Science and Applications
- OpenAlex ID
- W4401432397
평가 내용
- 관련도
- 간접 관련
- 사업분야
- 모빌리티 소재 · (2) 샤무드(인공피혁)
- 부 분야
- (3) 자동차 인테리어 소재
- R&D 측면
- 공정·제조
- 확신도
- 0.90
- 근거 용어
- leather defect detection, synthetic leather, quality control, automated detection, multi-scale attention mechanism
- 판단 근거
- 이 논문은 인공피혁(synthetic leather) 제조 공정 중 발생하는 결함을 딥러닝 기반의 어텐션 메커니즘으로 자동 검출하는 기술을 다루고 있습니다.
- R&D 활용 포인트
- 코오롱인더스트리의 샤무드(인공피혁) 및 자동차 인테리어 소재 생산 공정에서 품질 관리(QC) 자동화 및 불량률 감소를 위한 비전 검사 시스템 구축에 활용 가능합니다.
- 평가 입력
- 본문 75,558자 중 30,032자 발췌
초록
초록이 없습니다.
본문 75,558자
본문 펼치기
섹션 본문 80문단 · 51,133자
(제목 없음)
1Defect detection is critical to industrial quality control in leather production engineering.The various sizes and locations of defects in leather, as well as significant differences within the same class and indistinctive variations between different classes of defects, contribute to the complexity of the problem.To address this challenge, we propose a Multi-Layer Residual Convolutional Attention (MLRCA) approach.MLRCA enhances its ability to capture both intra-class and interclass differences by enhancing the semantic feature representation in the backbone network.To improve multiscale fusion effects, we also incorporate the MLRCA module into the feature pyramid network (FPN) and propose a new multi-layer residual convolution attention feature pyramid network (ML-FPN).This approach enables more accurate identification of leather defects at a more detailed level by selectively capturing contextual information from different domains.We then implement the Side-Aware Boundary Localization (SABL) detection head, which accurately locates defects and helps the network distinguish between similar defect categories for more precise positioning.To validate the effectiveness of our approach, we conducted ablation experiments on the created leather dataset.Comparative experiments demonstrate the excellent capability of our model to detect minor defects.The model achieved 83.4,89.7, and 85.6 for the AP, AP 50 , and AP 75 evaluation metrics.In addition, the model achieves 71.3, 89.9, and 88.9 for AP S , AP M , and AP L .Our approach has been confirmed feasible through experimentation and provides new insights for automated leather defect detection methods.
Introduction
2Leather products are essential in daily life and are extensively used in various industries, including clothing, footwear, furniture, and luggage [1].As living standards continue improving, consumers increasingly demanding higher quality and more aesthetically pleasing leather products [2].However, defects are inevitable in manufacturing synthetic leather goods, and they directly affect the price and quality of the leather products.The generation of further leather waste can be prevented by early detection of defects in leather production.Manual defect detection suffers from high costs, low efficiency, and unavoidable errors, automating the detection of leather defects has practical value in the leather industry [3].For industrial applications, it is crucial to develop an accurate and robust leather defect detection algorithm, which faces significant challenges due to variations in defect appearance and dimensions.Additionally, the lack of available data for benchmarking algorithms is a significant issue.Therefore, it is crucial to develop datasets to assess the generalizability of the technology.
3Traditional methods introduce machine learning to detect leather defects to accommodate variations in the appearance and size of defects on the surface of leather goods.Kwon et al. [4] conducted pioneering research in leather detection, focusing on collecting discriminative features from smaller data samples, including holes, pinholes, scratches, and folds.Jian et al. [5] extracted leather surface defect features using Feed Forward Neural Network (FNN) analysis, followed by a decision tree for classification.Villar et al. [6] presented an automated classification procedure for wet blue leather defects using multi-layer perceptrons.Jawahar et al. [7] used high-dimensional statistics based on wavelets and co-occurrence characteristics to classify leather defects.Pereira et al. [8] employed K-nearest neighbors, Multi-Layer Perceptron, and Support Vector Machine (SVM) to classify goat leather-based on ten different types of defects.Viana et al. [9] used SVM to detect the presence of ticks, brand marks, wounds, and scabies defects.Bong et al. [10] presented a six-step inspection approach that aims to detect scars, scratches, pinholes, and non-defect images while maintaining stable cameras and performing locked-down shots.Despite making some progress, traditional methods are only effective in identifying leather defects with clearly defined features, such as holes.They struggle to handle complex scenarios where defect features are less noticeable.
4Many researchers have turned to deep learning methods for detection and classification to address the challenge of identifying subtle leather defects.Aslam et al. [11,12] introduced integrated deep-learning modeling techniques for classifying defective and non-defect leather samples.They created a high-resolution dataset containing various types of leather defects.They demonstrated that active knowledge transfer helps detect leather defects by fusing knowledge across domains.Khanal et al. [13] constructed a fully automated leather defect detection system from hardware to software.They used ResNet as the backbone network for semantic segmentation modeling.Zhang et al. [14] introduced KMDNet, a novel leather segmentation network incorporating the KPCL layer as a new semantic information extraction layer.For defects with distinct features, the network achieved higher results.Despite significant advances, deep learning-based methods perform poorly on leather defects with variance changes between and within classes, and they may struggle with accurate defect location.
5To address the problem of the interclass and intraclass variance changes in leather defects, the attention mechanism that plays a crucial role in human perception is introduced [15][16][17].Zhang et al. [18] and Li et al. [19] have explored the application of attention in general object detection and defect localization and found that attention enables the detection network to focus more on the target object.Inspired by Woo et al. [20], Multi-Layer Residual Convolutional Attention (MLRCA), specifically designed to address the problems of significant feature variance within and slight feature variance between leather defect classes, is proposed.The residual structure strengthens the channel attention to enhance the representation of semantic features, which makes the network more accurate in distinguishing and recognizing leather detects with different manifestations within various classes.To address the challenge of slight feature variance between leather defect classes, spatial attention operations using two different-sized filter kernels allow the network to better extract and enhance spatial information between features, allowing the network to distinguish between different leather defect categories more accurately.To better detect leather defects of different sizes and reduce computational complexity, the feature pyramid network (FPN) is employed [21] for multiscale feature fusion.Introducing a new Multi-Layer Residual Convolutional Attention FPN (ML-FPN) helps reduce the information loss caused by downsampling during the fusion.Thus, more accurate detection of defects of different sizes is achieved.It helps the network to discriminate between similar and different defect categories and achieve more accurate localization when coupled with the side-aware boundary localization (SABL) [22] detection head, which focuses on the precise location of leather defects.
Fig. 1.
6Comparison of small defects detection results.The "knife wound" class is represented by dark blue bounding boxes, and the "depression" class is represented by dark red bounding boxes.
7H. Li et al.In this study, a leather image dataset containing six categories of leather defects is constructed for defect detection and classification to address the issue of scarce leather image data.The detection results are shown in Fig. 1.Major contributions of this research include.
81.A multi-layer residual convolutional attention (MLRCA) approach is proposed to account for inter-class and intra-class variances of leather defects.Integrating MLRCA into the backbone network enhances the capability to represent semantic features.2. A novel multi-layer residual convolutional attention feature pyramid network (ML-FPN) is proposed to improve the feature representation.This approach selectively captures the contextual information from different domains, which strengthens the semantic information in the feature map, and effectively detects the defects of different sizes.Furthermore, it minimizes information loss caused by downsampling during fusion.3. To improve the accuracy of leather defect localization, the Side-aware Boundary Localization (SABL) detection head replaces the traditional detection head.As a result, the positioning of each side of the bounding box is based on its surrounding context.This contextual information allows for the precise localization of leather defects.
9The rest of this paper is organized as follows.In Section 2 the recent related studies is presented.Section 3 provides a detailed introduction to the proposed leather defect detection method.Section 4 covers the experimental setup, evaluation criteria, and performance evaluation and compares the proposed method with other state-of-the-art networks.Finally, Section 6 summarizes the paper.
Related studies
10The researchers initially used traditional methods and machine learning techniques to identify leather defects.Kumar et al. proposed a method based on color processing to enhance the precision of leather defect detection.This approach uses a multi-level threshold function to find leather defects.It then finds the color range of the defective region with a color histogram.Finally, it finds defects with specific color attributes [23].However, this method only applies to color leather images.It does not work for grayscale images with more texture information.Jawahar et al. studied an algorithm that combines multiple features, these including histogram of oriented gradients (HOG) and gray-level co-occurrence matrix (GLCM) features.Among them, the gray level co-occurrence matrix along the Hu moment, HSV color feature and random forest classifier have the best classification accuracy [24].However, this method is not end-to-end and cannot directly obtain visual defect detection results.Gan et al. proposed a method based on grayscale histogram analysis to detect leather defects.The method involves the extraction of histogram features, such as the mean and standard deviation, as well as the application of the statistical Kolmogorov-Smirnov two-sample test for feature selection.Finally, the extracted features are classified through the use of a classifier [25].But, Kolmogorov-Smirnov's cannot classify similar but different defects well.
11The limitations of traditional methods and machine learning approaches have prompted researchers to explore the potential of deep learning techniques for automated the detection of leather defects.Liong et al. proposed a machine vision method utilizing ResNet-101 as the backbone network of Mask R-CNN for the identification and localization of defects on leather.Due to the depth of the backbone network, they observed an increase in false positives in the test results [26].This shows that the network's depth does not always improve leather defect detection, and it may even cause more false positives.In contrast, Gan et al. employed Faster R-CNN for precise defect localization through instance segmentation.AlexNet was utilized as the feature descriptor, and SVM was employed as the classifier.The experimental results demonstrated that the effect was superior to that of YOLOv2 [27].However, the data set was relatively limited, comprising only 560 images, and its applicability was constrained by the lack of sufficient diversity in the defect types and the complexity of the scenes.Chen et al. employed the most advanced detection model, YOLO, to identify and localize defects on leather surfaces.A collection of images depicting tanned leather surface defects was assembled, and YOLOv8 was utilized to Fig. 2. Proposed Multi-Layer Residual Convolutional Attention architecture.
12H. Li et al. conduct defect detection experiments.This approach enabled the simultaneous detection of multiple types of defects present in each leather image [28].However, this method does not take into account that large intra-class variance and small inter-class variance of leather defects may lead to poor detection results.
Multi-layer residual convolutional attention
13In the leather industry, images are oftentimes big in size, but the same class of leather defect can be very different in appearance.Moreover, different leather defect classes show some similarity.As shown in Fig. 2, we propose a Multi-Layer Residual Convolutional Attention (MLRCA) module to address these challenges.This module consists of two parts: channel attention and spatial attention.We designed the channel attention component to better differentiate between these leather defects within a class.It also aimed to improve the ability to represent semantic features.In the spatial attention, we apply parallel spatial attention using filtering kernels of 7 and 3.This parallel strategy aims to discriminate defects with similar appearance but belonging to different classes.It also enhances the spatial features among different classes of leather defects.In this study, the main purpose is to incorporate the attention mechanism module.Adding attention to the network will enhance relevant information regions, suppress irrelevant regions, and enhance semantic information.Channel attention and spatial attention improves the representability of features.This approach can improve the accuracy of leather defect detection.It allows the model to effectively capture crucial features related to defective areas.
14Given an initial feature map as an input, the MLRCA algorithm infers a 1D channel attention map and a 2D spatial attention map in a sequential manner.As shown in Fig. 2, the attention map is subsequently combined.The whole attention process can be summarized as (1).
15Where ⊗ is the element-wise multiplication and F ʹ is the feature descriptor after channel attention.While multiplying, the channel attention values are propagated along the spatial dimension and vice-versa.The improved performance, denoted by F ʹʹ , results from multiplying the spatial and channel attention per element, which improves the capacity to capture semantic information.
Channel attention
16Channel attention is used to establish connections between features, especially defects.This attention approach minimizes differences within the same class of leather defects.It aims at identifying relevant parts of the input image [20].Differences in different feature channels may be noticed when there is significant variation between the same defects within a class of leather defects.Improving channel attention can help to identify intraclass differences better while improving representability.Mean pool features address similarities among class defects.Max pool features capture the maximum differences among class defects.Combining both operations ensures that the network is guided to distinguish and recognize different within-class flaws more accurately.The entire process can be summarized as (2).
17Where F is the feature map, sigmoid is a function labeled σ, F c avg is the feature obtained using average pooling, F c max is the feature obtained using max pooling, W 0 is the weights of the fully connected layer, and W 1 is the output layer.
Spatial attention
18Spatial attention complements channel attention by focusing on spatial regions with available information.We compute average pooling and max pooling along the channel axis for spatial attention.These processes are later merged to form a highly efficient feature descriptor [20].The spatial attention performed with a filter size of 7 prioritizes global features of defects.The spatial attention with a filter size of 3 emphasizes local features.Combining both elements addresses the issue of minor inter-class differences in leather defects.This combining strategy improves the network's ability to distinguish between various classifications of leather defects more accurately.It also improves the ability to detect defects of different sizes.
19The Spatial Attentiveness Map is a 2D spatial attention map, which is generated by compressing the feature map F ∈ R H×W into the average pooling F s avg ∈ R 1×H×W and the max pooling F s max ∈ R 1×H×W .The entire process can be summarized as (3).
20Where F represents the feature map, σ is the sigmoid function, f 7×7 represents the 7 kernel size convolution operation, f 3×3 represents the 3 kernel size convolution operation, F f7 represents the features obtained by 7 kernel size convolution, and F f3 represents the features obtained by 3 kernel size convolution.
21H. Li et al.
Leather defect detection method
22The overall architecture of the proposed leather defect detection method is shown in Fig. 3. First, the backbone network extracts feature maps from the input leather defect images.Second, the feature maps are fused at different scales.Third, the feature maps are predicted at different scales to detect and localize leather defects.
23The leather images are fed into the backbone network in the first step.Global semantic features are extracted from the images.ResNet [29] is selected as a backbone network, and its accuracy is improved by introducing residual blocks.We incorporated the Multi-Layer Residual Convolution Attention (MLRCA) module.This module better guides the network.Adding attention to the network improves the backbone network's ability to extract features.It helps the network discriminate and capture differences within the same class and enhances differences between classes.Its specific structure is shown in the backbone structure in Fig. 3, and the MLRCA module is placed inside each residual block.The introduction of MLRCA enhances the model's perception of leather defects.The feature map's adaptive weight of channels and spatial locations allows the network to focus on critical leather defect features selectively.Adding MLRCA to the backbone improves the perception of both local, global information and the backbone's ability to extract leather defect features.
24In the second step, we perform multi-scale information fusion on the features extracted from the backbone network.The Feature Pyramid Network (FPN) [21] efficiently reuses common features across scales.It is employed to represent leather defect features effectively at different scales.The architecture, called ML-FPN, uses Multi-Layer Residual Convolution Attention (MLRCA).Its specific structure is shown in Fig. 4. We enhance channel attention to facilitate multi-scale feature extraction.This enhances strategy will minimize information loss caused by downsampling during fusion.Residual structures improve the semantic representation capability.The model can learn more comprehensive feature representations progressively.Comprehensive feature is because our network contains multi-scale feature information.Multi-scale information ensures the accurate detection of leather defects of different sizes.It captures both large and small features in the images.This better differentiates and captures intra-class differences in defects.It enhances the detection of smaller inter-class differences in defects.
25In the third stage, the combined features from different scales are fed into the region proposal network (RPN) [30].This generates object proposals.Then, these proposals are sent to the detection head.It performs leather defect classification and localizing, culminating in leather defect detection.The Side-aware Boundary Localization (SABL) [22] detection head.This improves the localization accuracy, enabling more precise defect localization.Localization errors due to unclear or fuzzy leather defect boundaries are reduced by the SABL detection head.SABL helps minimize inter-defect interference.It improves performance in dense target scenarios with multi-object.Classification, region proposal network (RPN), and regression loss functions implement SABL proposed by Wang et al. [22].Our experiments showed that a ratio coefficient of 14 buckets and 1.7 gives optimal performance.Our loss is a combination of RPN and bucketing-based bounding box loss of SABL.The overall loss is shown as: L = L RPN cls + L RPN bbox reg + L cls + L bbox cls + L bbox reg where the first two terms represent RPN loss and last three terms represent SABL loss.
Dataset
26We collected and filtered 309 images from leather industry production lines.These images have a resolution of 4096 × 4096.They reflect a wide range of surface defects found on leather.The goal is to capture a wide range of leather characteristics in production line environments.The defect types in the leather images were manually labeled using labelme software and the labeled images were uniformly converted to MS-COCO [31] format.They were later resized to 640 × 640.Various strategies were used to enhance the dataset to ensure sample diversity.These strategies included vertical and horizontal flipping, random scaling within the range of [0, Fig. 3. Architecture diagram of the proposed leather defect detection method.
H. Li et al.
2710], and brightness adjustments from [− 10,10], as shown in Fig. 6.Using these methods, we successfully generated a total of 2549 images.The dataset details are shown in Table 1.
28For a greater understanding of these defect types, Fig. 5 shows representative images for each of the six types, emphasizing the characteristics of each.For example, the "depression" class represents deep indentations or craters on the leather's surface, typically caused by external pressure or shock.The "crease mark" class refers to distinct creases or folds on the leather surface, usually caused by bending or folding during processing, storage, or use.The "stain" class refers to color changes or discoloration on the surface of the leather that liquids, food, chemicals, or other external factors may cause.The "scratch" class represents linear or curvilinear scratches on the leather surface, often caused by friction or the scraping of objects.The "seam" class refers to linear structures at the joints of leather products that combine different leather sections.The "knife wound" class refers to cuts or incisions on the leather's surface, typically caused by sharp tools or objects.For this reason, we need highly accurate automated visual detection.It must handle intraclass and inter-class variability, scaling, and textural complexity.
29The Northeastern University (NEU) metal surface defect dataset [32], a public dataset, was employed to assess the model's generalizability.The objective was to ascertain the applicability of the proposed defect detection method to other materials.This dataset collects six typical surface defects on hot-rolled strip.These are rolled-in scale (RS), plaques (Pa), crazing (Cr), pitted (PS), inclusion (In), and scratches (Sc).The database contains 1800 grayscale images, with 300 samples of each of six different types of typical surface defects.However, the data set is not divided into training and test sets.Therefore, the first 90 samples of each type are used for testing, while the remaining 210 samples are used for training.The distribution of the data set is as follows: the number of samples in the verification set is 1,260, and the number of samples in the test set is 540.The MVTec leather anomaly dataset [33], a public dataset, includes original images and mask images.They are stored in separate folders with matching names.The size of each image is 1024 × 1024 pixels.The proposed method will be subjected to external validation on the MVTec leather anomaly data set and the NEU metal surface defect dataset.
Experimental Preparation
30Evaluating the performance of the target detection model on the dataset we constructed is the primary goal of this study.With respect to the achievement of high average precision (AP), we are particularly interested in the effect of target (leather defect) size on the results.Achieving high AP (Equation ( 4)) is harder for relatively uniform targets than for targets that vary widely.First calculate the accuracy P (Equation ( 5)) for a specific IoU (Equation ( 6)) threshold as shown below.
P = TP S TP S + FP S
31(5)
32Where B 1 is the coordinate position of the labeling box, and B 2 is the predicted coordinate position.Area(B 1 ∩B 2 ) represents the area of the overlapping part of the two boxes, and Area(B 1 ∪B 2 ) represents the total area covered by the two boxes.TP s is the number of samples that are actually defective and are predicted by the model to be defective.It is the number of positive samples.FP s is the number of samples that are actually normal but are predicted by the model to be defective.cls represents leather defect categories.These are cutting, etched surface, brand stains, holes, and bleaching.P is the accuracy rate for each category.N cls represents the number of defect categories.AP represents the average AP with an IoU of 0.5-0.95.The above equation evaluates the model's accuracy in detecting leather damage.It is used to judge subsequent experiments.When the IoU threshold is set at 0.75, AP 75 is used as a measure of performance, and when the IoU threshold is set at 0.50, AP 50 is used as a measure of performance.In addition, we consider the AP measurements of small (AP S ), medium (AP M ), and large (AP L ) destinations.These are the AP measurements of destination boxes with pixel areas less than 32 2 , pixel areas in the range [32 2 ,96 2 ], and pixel areas greater than 96 2 , respectively.For a more detailed evaluation of the leather defect detection model, the Average Recall (AR) and F1-Score metrics are also employed.AR (Equation ( 7)) indicates the proportion of defective targets that the model detects.A high AR indicates that the model has fewer false positives when predicting positive samples.F1-Score (Equation ( 8)) is an important indicator to measure the accuracy of the model.A high F1-Score indicates that the accuracy of the model is higher and the performance is better.During the model training process, we used the code base called mmdetection, which was proposed by Chen et al. [34].An NVIDIA GeForce RTX 4080 graphics card was used for all experiments.An initial learning rate of 0.002 and a weight decay rate of 0.0001 were used for model training.In the experiments, the SGDM optimization was used with the following specific parameters: a learning rate of 0.001, an impulse value of 0.9, and a weight decay rate of 0.0001.The batch size was set to 6 to account for GPU memory limitations.Weights from the MS-COCO dataset [31] were used to train all detectors.
Ablation study
33Ablation experiments were performed so that we could further understand how MLRCA contributes.First, in Fig. 7, we compared the framework using Grad-CAM [35] to coarsely localize components.Three attention-based variants were contrasted with the baseline ResNet50 (as show in Fig. 7 (b)): ResNet50+CA (as show in Fig. 7 (c)), ResNet50+MLRCA (CA + SA), ResNet50+CBAM, and ResNet50+SCSE [36].Note that the ML-FPN and SABL methods were not combined with the baseline and attention variants to improve localization performance.For these four classes of methods, we have provided rough visualizations of representative examples.Fig. 7 (d) shows that the MLRCA based approach highlights the defect regions better.This is due to the enhancement of channel-guided features and spatial localization.This enhances both semantic and spatial information, resulting in more prominent defect regions.From the images in columns 1, 2, 3 and 5, it can be seen that ResNet50+MLRCA achieves more accurate defect localization for Fig. 7 (a).
34To contrast the advantages of MLRCA (as show in Fig. 8 (d)) over other attention methods, a comparison is presented with two other methods, Spatial and Channel Squeezing and Excitation (SCSE) [36] attention and the original CBAM (as show in Fig. 8 (b)).The comparison chart is visualized using Grad-CAM and is shown in Fig. 8.Among them, from the first row of Fig. 8 (a), it can be seen that the coverage area of CBAM and MLRCA's attention to defects is larger than that of SCSE (as show in Fig. 8 (c)).This can be attributed to SCSE not paying enough attention to channel information and requiring channel attention to reduce the redundancy of information.As can be seen from the second row, SCSE pays better attention to defects than CBAM, but is still not as good as MLRCA.This difference is because MLRCA's residual structure mixes channel and spatial information.A comparison of the third row shows that MLRCA focuses on finding defects with similar backgrounds.And it also uses a strategy of focusing on key points for more obvious defects.In contrast, SCSE employs the opposite approach.
35Table 2 compares the proposed methods in terms of Average Precision (AP).Several important findings can be derived from Table 1 The quantization results of the baseline and attention-based variants validate the visual representation results shown in Fig. 7. (2) The proposed ResNet50+MLRCA outperforms CBAM, achieving improvements of 2.7 %, 0.9 %, and 1.6 % in AP, AP 50 , and AP 75 , respectively.The improved feature expression capability of MLRCA can be attributed to this.(3) The MLRCA-based method improves 8.5 %, 0.3, and 5.8 % on AP, AP 50 and AP 75 , respectively, compared to SCSE.
36We performed ablation experiments on different parts of the method to better understand the contribution of each component in the proposed method.Table 3 compares the baseline method, Cascade RCNN (R50) [37], with three variants.Each variant is equivalent to the proposed method in improving the base network, the multi-scale fusion, and the detection head.
37The results of the proposed method's different component ablation experiments are presented in Table 3.The quantitative results show that each component contributes to the leather defect detection performance to a different extent.The results are for the baseline and the three variants.Base on Fig. 9 (a) compares the performance of the conventional FPN and the MLRCA-transformed ML-FPN.In the illustration, the light-colored rows in Fig. 9 (b) represent the transformed procedure, while the dark-colored rows represent the conventional FPN.In particular, both methods show overlapping defect detection results with similar effects in detecting the "knife wound" category, the deep blue part in Fig. 9 (c).However, additional coverage by the traditional FPN in certain regions can be seen in the combination of red and light blue in (c).Fig. 9 shows that the conventional FPN only provides precise boundary boxes for some flaws, while the transformed ML-FPN provides precise boundary boxes for all flaws.
Performance comparison of leather fabric dataset
38Comparison of our proposed approach with the state of the art and basic methods, such as the Fast RCNN, YOLOv3 [38], Cascade RCNN [37], YOLOX [39], and DAB-DETR [40] detection networks.
39Normalizing the confusion matrix allows us to gain a more complete understanding of the model's performance.This is especially true in the context of multi-class classification problems.A singular accuracy metric cannot show each class's precision and recall.However, the normalized confusion matrix can reveal performance differences between different categories.As shown in Fig. 10, in addition to our proposed method, other networks struggle to detect crease marks and depressions with lower accuracy.At the same time, these networks face challenges in discriminating between the two classes.In contrast, our method effectively distinguishes between these two categories.It also demonstrates high accuracy in discriminating against other defects.
40The different models were tested on the validation set and their performance was evaluated using AP, AP 50 , AP 75 , AP S , AP M and AP L .The results in Table 4 show that our proposed method significantly improved leather defect detection performance.This improvement is especially remarkable for the AP and AP S parameters.The AP is 83.4,AP 50 is 89.7, and AP 75 is 85.6.It is evident that there is a remarkable improvement of 13.4 % in the overall AP, although our proposed method shows a 1.6 % improvement over DAB-DETR in AP 50 .In addition, compared to DAB-DETR, significant improvements in small, medium and large target detection are observed.Our proposed method improves small target detection by 32.0 %, medium target detection by 38.1 %, and large target detection by 19.5 %.There is a remarkable improvement in performance with our proposed method compared to the baseline network.
41The AP has increased from the original value of 60.8-83.4,the AP 50 has increased from 84.4 to 89.7, and the AP 75 has increased from 69.2 to 85.6.There has been a significant improvement in detection efficiency for small, medium and large targets.It is evident that, especially in the detection of small and medium-sized defects, our method significantly improves the ability to detect leather defects.Parameter comparisons through additional baseline network variants are also conducted.As seen in rows 4 and 6, when the backbone network grows from 50 to 101 layers, despite having a better FPN, there is still a drop in detection.Among them, AP, AP 50 and AP 75 dropped from the original 59.7, 83.7 and 68.0 to 57.9, 82.1 and 66.1.When the backbone network is at the same depth, the proposed method is still better than the baseline network.This can be attributed to the joint effect of the multi-scale feature fusion network ML-FPN and SABL, which are more suitable for the detection of defects in leather.
42A more detailed comparison of all models on the test set was performed using the two parameters AR and F1-Score.And the F1-Score parameter takes into account both recall and precision, so it can indicate the overall performance of the model.As seen in Table 5, among the Cascade-RCNN variants, the lowest AR and F1-Score are in the network with R101 as the backbone.This shows that deeper networks do not always have better defect detection.The proposed method has the highest performance scores in both AR and F1-Score, reaching 74.5 and 77.5 respectively.Compared with the highest score of Cascade-RCNN, it has increased by 6.3 % and 8.5 % respectively.It shows that the proposed method has good accuracy and performance in the task of leather defect detection.Accuracy may be a good measure to evaluate the training process, but it may only partially represent the quality.Thus, another important measure is to compare the model losses.Smoother and lower loss trends often indicate better model performance.For a comprehensive evaluation, we have compared our proposed method with the Faster RCNN, the Cascade RCNN, the YOLOv3, the YOLOX, and the DAB-DETR networks.We plot a line graph of the loss values during the training process to visualize the changes.As shown in Fig. 11, all the algorithms have similar loss values.However, our proposed method has a smoother loss reduction trend.Smoother loss indicates better stability and convergence during the training process.
43The proposed method can effectively discriminate between crease marks and depression defects.The detection comparison in Fig. 12 shows that we do not miss any defects or have any false positives.In the second row, our method significantly improves the detection of knife wounds.It provides results almost identical to the detection boxes in the original image.Additionally, it demonstrates more accurate detection of small-sized defects.Compared to the baseline + CBAM, our proposed method reduces the number of false positive boxes in the third row.Compared to DAB-DETR, it also detects the red bounding boxes representing the crease mark class more accurately.Our method's target localization is closest to the detection boxes in the original image for the deep blue bounding boxes representing the knife wound class.On the fourth line, our method performs better than other models concerning the false negative rate for the small, deep blue targets.It also outperforms other models for the dark red depression class with no false negatives.In the fifth row, our method has the lowest false positive rate among all the models with false positives or false negatives.
44A comparison with other methods was performed on a data set containing small defects to further demonstrate the superiority of our method.The results of the detection algorithms on the small defect dataset are shown in Fig. 13.The proposed method excels in detecting a larger number of small defects in a scenario where all detection models have false positives.
Performance comparison of public dataset
45In order to verify the generality of the model, the verification of the proposed method is completed using the Northeastern University (NEU) metal surface defect dataset [32].As can be seen from Table 6, compared with the baseline network, the proposed method has improved by 6.9 %, 1.1 % and 42.4 % on AP, AP 50 and AP 75 respectively.And the detection effects of large, medium and small defects have been improved to varying degrees.Combining the baseline network with CBAM caused an unexpected drop in AP and AP50.They fell from the original 40.7 and 83.6 to 40.4 and 82.4.But, AP75 rose from the original 31.9 to 33.6.This shows that in the NEU metal surface defect dataset, CBAM did not improve the baseline network's ability to find defects.But, it improved the network's accuracy in locating defects.And the network can only achieve accurate defect location, but cannot distinguish some specific classes more finely.The method improves positioning accuracy and the ability to distinguish defects.This shows that the combination of MLRCA, ML-FPN, and SABL in the method can detect defects on different materials on production lines.
46From the 2nd, 4th, and 6th columns in Fig. 14, it can be seen that the defect localization effect and annotation of the proposed method are almost the same compared to the baseline network.In column 3, all models see the middle black normal part as the rolledin scale category.And the proposed method does the best at duplicate detection, with only one duplicate.As can be seen in column 4, the black dot in the lower right corner of the original label and the gray part in the lower right corner are not considered defects.However, the gray parts are incorrectly detected as defects by the baseline and classified as surface types.And the normal black spot in the lower right corner is incorrectly detected as a rolled-in defect by baseline + CBAM.However, the proposed method avoids this misdetection well.This shows that it can also detect surface defects in other production lines and get good results.
47The proposed method has been externally verified on the MVTec leather anomaly dataset.Previously, the method was trained only on the constructed dataset and did not include any MVTec data.As can be seen from Fig. 15, the proposed method can still accurately locate the defect location.In addition, the leather fabric surface used to construct the dataset is quite different from the leather surface image in the MVTec leather anomaly dataset.This is due to different image acquisition equipment and different leather materials.Although the data of the MVTec leather anomaly dataset are color images and the constructed dataset is grayscale images.And the proposed method can still be adapted to the data, which can be attributed to the good portability of the proposed method.
48To test the method's generalizability, it will also be verified on the NEU steel surface defect dataset.For this verification, the method was only trained on the leather fabric defect dataset, and other data did not train or verify the model before this.The materials used to detect surface defects differ.And from an appearance point of view, a defect on leather may not be a defect on metal.Therefore, this proposed method may find false defects on the NEU metal defect dataset.They look like defects, but are not defects according to the definition of material.This conclusion can also be drawn from Fig. 16.Although the proposed method has well detected all parts that look like defects, due to the lack of prior knowledge of the proposed method, it can only be based on defect characteristics.However, considering the test results, it remains remarkable that all abnormal sites were detected, owing to the method's good generalizability.And it can be used to detect defects on surfaces of different materials in other industrial lines.
Discussion of ablation study results
49After analyzing Fig. 7 and Table 2, we found that our MLRCA method has better focusing than the others.It is better at highlighting defects like the background.MLRCA's attention is focused on the upper part of column 3. It successfully intensifies defects, especially those that are not obvious.The main attribution for this is the utilization of different sizes of convolution kernels for spatial attention in MLRCA.Among them, the convolution kernel size is 3, which pays more attention to the detailed features of defects, while the convolution kernel size is 7, which pays more attention to defects and the overall context.The relationship between the two, and the weighted fusion of the two can amplify the small gap between the leather defect categories obtained by the network.And spatial attention narrows the gaps within defect classes using channel attention.It better distinguishes subtle differences between classes.Then, channel attention weighting and spatial attention are integrated to prevent the loss of intra-defect class features while focusing on inter-defect class features.MLRCA has one extra residual structure and one more kernel than CBAM.In MLRCA, residual channel attention and spatial attention are combined to boost the defect's intra-class features.And a convolution kernel with more spatial attention is used to focus on global defect features.Table 2 shows that MLRCA is much more accurate than CBAM.This is due to adding an attention fusion and spatial convolution kernel.But the calculation amount is slightly larger than CBAM.However, since MLRCA are not calculated element by element, the calculation amounts of the two are of the same order of magnitude.Compared with SCSE, MLRCA both perform combined output on spatial information and channel information, but they are different in strategy, which can be seen from the third row of Fig. 8. MLRCA first obtains channel information and then utilizes it as the input for spatial information.Finally, it integrates the channel into the spatial to prevent losing it.SCSE extracts channel and spatial information separately for fusion.Compared with MLRCA, the increase of spatial information by channel information is less.That is, when spatial attention is applied, the intra-class differences of leather defects are not reduced, which may affect the classification accuracy.The impact on the above, Table 2 also supports this point.
50Analyzing Fig. 9, it can see that ML-FPN is more accurate in positioning than the original FPN, and has good accuracy for defects of different sizes.The main reason is that ML-FPN adds MLRCA with a residual structure at each scale.This ensures rich information can flow between upper and lower scales, and it gets rich features before it fuses scale information.And fusing the attention results with the original features keeps the information at each scale intact.It also preserves the information within and between leather defect classes, and in order to obtain more accurate detection results.By combining R50+MLRCA, ML-FPN, and SBAL, the features are strengthened step by step.This increases detection robustness and accuracy, and they finally achieved the results in Table 3.
Discussion of performance comparison results
51Analyzing Fig. 10, it can see that other defect detection models have poor effects on the crease mark and depression classes.They also misclassify the two defect categories.The proposed method can distinguish these two defect categories very well, and the accuracy of classifying other defect categories has also been greatly improved.This is mainly because MLRCA adds to the backbone network.It can get targeted feature information on the characteristics of each defect category from the source.It can also tell apart similar but not unified defect categories, and this ensures the accuracy of defect classification.Analyzing Tables 4 and it can see that the proposed method not only has higher accuracy than other models, but also has a good detection effect on large, medium and small defective targets.This is mainly due to ML-FPN, it lets feature information of various defects types flow and fuse between different scales.And this helps features adapt to leather defects of different sizes, it improves detection of large, medium, and small defects.And it can also be seen that when the backbone network becomes deeper, it won't necessarily work better or may even work worse.
52Analyzing Fig. 12, the third row shows that proposed method leather defect positioning is almost as accurate as the labeling box.There are no false detections or missed detections, mainly due to the combination of ML-FPN and SBAL detection heads.They can finely locate defects of different sizes, as observed in rows 2 and 4. Analyzing the first row of Fig. 12, it can see the leather defect on the right side of the picture.Other models show different errors, including missed detection, false detection, and incomplete detection.The proposed method can detect defects on the right side very well, as evidenced by line 5.This is mainly because proposed method can better tell apart defects.Although they may appear similar, they are not the same type.Additionally, proposed method can distinguish defects that are similar to the background, which reduces the possibility of false detection.
53It can be observed from the 5th row in Fig. 12 that all models have missed or false detections.However, the proposed method still performs best.But it is still shortcomings because scratch was mistakenly detected as depression.This is because under poor light, these two types of defects may have noise or the outliers may coincide with part of the defect feature.This can lead to errors by the model.Table 6 and Fig. 14 show the improved accuracy of proposed method and its versatility for defect detection on other materials.This is mainly due to the feature extraction ability of the proposed leather defect detection network.Metal and leather have different materials and looks.But, they may have similar visual features and unevenness.The proposed method can better fit the common characteristics of surface defects in these materials, thus showcasing versatility.
Research limitations and future Directions
54The proposed method has achieved good results.It is somewhat versatile and can be used to detect defects on other materials.But, it still has some existence insufficiency: 1) The proposed method needs many images to extract enough characteristics.It needs images of different leather imperfections to get the best results.In the future, the use of GAN to generate defect samples can ensure improved defect detection with small samples.2) The proposed method still has a certain degree of misdetection under poor lighting conditions.Dark light will cause some noise or outliers to be similar to defect features, which will lead to network misjudgment.In is anticipated that in the future, a low-light module will become available for use with this method.It corrects dark light to ensure network accuracy.
553) The dataset consists of grayscale images, which may limit the ability to distinguish between two different defect types reliant on color features.Consequently, judgments must rely on alternative features alone, resulting in decreased detection accuracy.In future research, utilizing color images for color feature extraction and grayscale images for contour and texture feature extraction could enhance defect detection effectiveness.
Conclusion
56The paper presents a new technique for detecting flaws in leather during production and creates an industrial leather dataset.The proposed method uses an innovative Multi-Layer Residual Convolutional Attention (MLRCA) mechanism.It effectively distinguishes and captures intra-class differences in defects, enhancing inter-class disparities.The MLRCA methodology reinforces channel attention.It uses residual structures to improve semantic feature representation.Two filters of varying sizes are used to conduct spatial attention operations.This spatial attention operations increases the network's capability to extract both semantic and spatial information.In addition, A novel multi-layer residual convolutional attention feature pyramid network (ML-FPN) is proposed to improve the feature representation.This approach effectively uses cross-channel and multi-scale feature information to improve semantic understanding.It also captures contextual information from different domains to produce more discriminative features.Finally, integrating the SABL detection head improves the accuracy of leather defect localization.Our approach selectively preserves essential features and achieves robust detection and localization.It effectively differentiates and captures differences within classes while H. Li et al. emphasizing differences between classes.It also eliminates redundant information.Our method shows competitive solid performance when compared to current state-of-the-art detection networks.
Fig. 4 .
57Fig. 4. Feature pyramid based on channel and spatial attention (ML-FPN).
Fig. 5 .
58Fig. 5. Six defect categories of representative annotated images.
Fig. 6 .
59Fig. 6.Image effects with enhanced data.
Fig. 7 .
60Fig. 7.The role of attentional mechanisms in defect localization is suggested using (a) the original images, (b) the baseline network ResNet, (c) ResNet + CA, and (d) ResNet + MLRCA (CA + SA).
H
61.Li et al.
Fig. 8 .
62Fig. 8.The role of attentional mechanisms in defect localization is suggested using (a) the original images, (b) ResNet + CBAM, (c) ResNet + SCSE, and (d) ResNet + MLRCA.
Fig. 9 .
63Fig. 9. Comparing traditional FPN and FPN based multi-layer residual convolutional attention localization.(a) original image, (b) original image detection frame, (c) comparative localization.
Fig. 10 .
64Fig. 10.Different model normalized confusion matrix plots.
Fig. 11 .
65Fig. 11.The loss of each model in the training process.
H
66.Li et al.
Fig. 12 .
67Fig. 12.Comparison of defect detection in different networks.A red detection box represents the crease mark class.A dark red detection box represents the depression class.A dark blue detection box represents the knife wound class.A light blue detection box represents the scratch class.
Fig. 13 .
68Fig. 13.Comparison of small defect detection models.A dark blue detection box represents the knife wound class.
H
69.Li et al.
Fig. 14 .
70Fig. 14.Comparison of the baseline network and the proposed method on the NEU metal surface defect dataset.A red detection box represents the rolled-in scale class.A dark red detection box represents the patches class.A dark blue detection box represents the surface class.
Fig. 15 .
71Fig. 15.External validation of the proposed method on the MVTec leather anomaly dataset.
Fig. 16 .
72Fig. 16.External validation of the proposed method on the NEU metal surface defect dataset.
Table 1
73Description of leather dataset.
74H.Li et al.
Table 2
75Ablation experiments on the proposed MLRCA.
Table 3
76Different components of the proposed method will be subjected to ablation experiments.
Table 4
77Detection network AP comparison.
Table 5
78Detection network AR and F1-Score comparison.
79H.Li et al.
Table 6
80Detection Network AP Comparison on NEU dataset.
참고문헌 20건
- Faster R-CNN: Towards Real-Time Object Detection with Region Proposal Networks IEEE Transactions on Pattern Analysis and Machine Intelligence · IEEE Computer Society · 2016 10.1109/tpami.2016.2577031
- A model of saliency-based visual attention for rapid scene analysis IEEE Transactions on Pattern Analysis and Machine Intelligence · IEEE Computer Society · 1998 10.1109/34.730558
- Development of leather quality discrimination system by texture analysis 2004 10.1109/tencon.2004.1414423
- Vision-based Inspection System for Leather Surface Defect Detection and Classification 2021 8th NAFOSTED Conference on Information and Computer Science (NICS) · 2018 10.1109/nics.2018.8606836
- Automatic Defect Segmentation on Leather with Deep Learning arXiv (Cornell University) · Cornell University · 2019 10.48550/arxiv.1903.12139
- Recurrent reverse attention guided residual learning for saliency object detection Neurocomputing · Elsevier BV · 2020 10.1016/j.neucom.2019.12.109
- A Multi-Level Colour Thresholding Based Segmentation Approach for Improved Identification of the Defective Region in Leather Surfaces Engineering Journal · Chulalongkorn University · 2020 10.4186/ej.2020.24.2.101
- Cluster heatmap for detection of good tolerance trait on doubled-haploid rice lines under hydroponic salinity screening IOP Conference Series Earth and Environmental Science · IOP Publishing · 2020 10.1088/1755-1315/484/1/012001
- Ensemble Convolutional Neural Networks With Knowledge Transfer for Leather Defect Classification in Industrial Settings IEEE Access · Institute of Electrical and Electronics Engineers · 2020 10.1109/access.2020.3034731
- Automated leather defect inspection using statistical approach on image intensity Journal of Ambient Intelligence and Humanized Computing · Springer Science+Business Media · 2020 10.1007/s12652-020-02631-6
- Learning to Recognize Irregular Features on Leather Surfaces Journal of the American Leather Chemists Association · American Leather Chemists Association · 2021 10.34314/jalca.v116i5.4291
- Triplet-Graph Reasoning Network for Few-Shot Metal Generic Surface Defect Segmentation IEEE Transactions on Instrumentation and Measurement · Institute of Electrical and Electronics Engineers · 2021 10.1109/tim.2021.3083561
- YOLOX: Exceeding YOLO Series in 2021 arXiv (Cornell University) · Cornell University · 2021 10.48550/arxiv.2107.08430
- Detection and localization of defects on natural leather surfaces Journal of Ambient Intelligence and Humanized Computing · Springer Science+Business Media · 2021 10.1007/s12652-021-03396-2
- Putting Current State of the art Object Detectors to the Test: Towards Industry Applicable Leather Surface Defect Detection 2021 10.1109/dicta52665.2021.9647409
- MMDetection: Open MMLab Detection Toolbox and Benchmark arXiv (Cornell University) · Cornell University · 2019 10.48550/arxiv.1906.07155
- A Multi-Modal Distributed Real-Time IoT System for Urban Traffic Control (Invited Paper) DROPS (Schloss Dagstuhl – Leibniz Center for Informatics) · Schloss Dagstuhl – Leibniz Center for Informatics · 2024 10.4230/oasics.ng-res.2024.2
- Lightweight network study of leather defect segmentation with Kronecker product multipath decoding Mathematical Biosciences & Engineering · Arizona State University · 2022 10.3934/mbe.2022642
- Leather Defect Detection Using Semantic Segmentation: A Hardware platform and software prototype Procedia Computer Science · Elsevier BV · 2022 10.1016/j.procs.2022.08.070
- Experimental Study on YOLO-Based Leather Surface Defect Detection IEEE Access · Institute of Electrical and Electronics Engineers · 2024 10.1109/access.2024.3369705