원시데이터 수집 시스템
선정목록으로

MeDERT: A Metal Surface Defect Detection Model

관련 모빌리티 소재 · (4) 카시트 모듈

기본 정보

저자
  1. Chenglong Wang — School of Electronic Information and Electrical Engineering Huizhou University, 46 Yanda Road, Huizhou, Guangdong, P.R. China
  2. Heng Xie — School of Electronic Information and Electrical Engineering Huizhou University, 46 Yanda Road, Huizhou, Guangdong, P.R. China
DOI
10.1109/access.2023.3262264
저널
IEEE Access
발행년도
2023
발행기관
Institute of Electrical and Electronics Engineers
피인용수
6
라이선스
cc-by-nc-nd
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.1109/access.2023.3262264
토픽
Surface Roughness and Optical Measurements
OpenAlex ID
W4360995351

평가 내용

관련도
관련
사업분야
모빌리티 소재 · (4) 카시트 모듈
부 분야
–
R&D 측면
–
확신도
–
근거 용어
–
판단 근거
임베딩 유사도 기반 평가로 '모빌리티 소재 > 카시트 모듈' 분야에 선정된 논문입니다.
R&D 활용 포인트
–
평가 입력
–

초록

Defects in various products are unavoidable because of measurement errors and equipment accuracy limitations in the production process. Recent advances in metal surface defect detection have focused on optimizing traditional methods, developing new detection techniques, and exploring deep learning-based algorithms, providing technological support to improve metal manufacturing quality and production efficiency. To ensure the highest yield rate and meet production requirements, all products must undergo defect inspections before leaving the factory. However, Traditional methods for detecting metal surface defects require a lot of manual involvement, are difficult to accurately detect small defects, are susceptible to environmental interference, and lack stability and reliability. To address this issue, we propose the MeDERT model for metal surface defect detection. Our approach involves a new Span-sensitive Texture Fusion (STF) module structure that focuses on multi-headed attention modules to recover lost details and boost inspection speed and on top of that use the Jump-sensitive detail recovery feature fusion module to ensure the validity of the extracted textures. Additionally, we introduce singular value decomposition and pretzel noise to model the noise and enhance model robustness through data augmentation. Our MeDERT model achieved state-of-the-art (SOTA) results on a specified dataset, demonstrating its effectiveness in enhancing inspection efficiency and accuracy.

본문 32,606자

본문 펼치기
Defects in various products are unavoidable because of measurement errors and equipment accuracy limitations in the production process. Recent advances in metal surface defect detection have focused on optimizing traditional methods, developing new detection techniques, and exploring deep learning-based algorithms, providing technological support to improve metal manufacturing quality and production efficiency. To ensure the highest yield rate and meet production requirements, all products must undergo defect inspections before leaving the factory. However, Traditional methods for detecting metal surface defects require a lot of manual involvement, are difficult to accurately detect small defects, are susceptible to environmental interference, and lack stability and reliability. To address this issue, we propose the MeDERT model for metal surface defect detection. Our approach involves a new Span-sensitive Texture Fusion (STF) module structure that focuses on multi-headed attention modules to recover lost details and boost inspection speed and on top of that use the Jump-sensitive detail recovery feature fusion module to ensure the validity of the extracted textures. Additionally, we introduce singular value decomposition and pretzel noise to model the noise and enhance model robustness through data augmentation. Our MeDERT model achieved state-of-the-art (SOTA) results on a specified dataset, demonstrating its effectiveness in enhancing inspection efficiency and accuracy.INDEX TERMSMetal profiles, defect detection, deep learning, salt-and-pepper noise, singular value decomposition, DERT. VOLUME 11, 2023 This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 License. For more information, see https://creativecommons.org/licenses/by-nc-nd/4.0/ 35469 Authorized licensed use limited to the terms of the applicable license agreement with IEEE. Restrictions apply. I. INTRODUCTION Metal products made of aluminum profiles are widely used in people's daily lives, and in many regions, the production of aluminum profiles is considered a pillar industry. Along with the advancement of technology, the production of aluminum profiles has been automated, which has dramatically increased efficiency. Automation is often introduced into all stages of the aluminum profile production process, from the very beginning of the material screening, automatic configuration of production operations, detection of defective products, and finally, sorting and packaging, all of which require monitoring of product quality. However, most aluminum profile product quality inspections are currently manual and prone to errors. Therefore, monitoring product quality during the automation of aluminum profiles is crucial, and practical and accurate assessment is also urgent for modern manufacturing. In this study, we investigated the detection of The associate editor coordinating the review of this manuscript and approving it for publication was Yizhang Jiang . surface defects in aluminum profiles during the production process. I. INTRODUCTION The development of computer vision-based technology has greatly advanced the automated inspection technique. The surface defect detection problem is an object detection problem. The detection task is based on the analysis of images taken by cameras, which aims to identify the location and category of the defects in the images. Therefore, detection precision is the main metric to evaluate the detection method. There have been three types of automated inspection techniques based on production images: 1) image processing [1], [2], [3]. The technique focuses on using image filters to highlight defect instances. 2) machine learning (ML) [4], [5], [6]. Machine learning-based technique uses certain image filters to extract features that are fed into ML algorithms, for example, support vector machine (SVM). 3) deep learning [7], [8], [9]. Deep neural networks (DNN) use convolutional operations for feature learning and extract features during training. It has been widely applied in image classification and object detection tasks. I. INTRODUCTION Deep learning methods have advanced object detection tasks. However, surface defect detection for aluminum profiles has its challenges. First, there are various categories of defects, including scratches and dents. Second, even for the same type of defects, the severity of defect instances brings another challenge, like length, size, shape, orientation, and depth. To address these challenges, we need a model to investigate and distinguish the possible patterns in-depth. Meanwhile, data augmentation will be necessary to enrich the dataset and enhance its diversity. I. INTRODUCTION In the research, we propose a defect detection model for aluminum materials to detect surface defects more quickly. This study is valuable economically and socially. Our proposed model is mainly based on the modification of the classical detector YOLOv4, which is adapted to process image features of aluminum profiles. The main contributions of this research are as follows: I. INTRODUCTION 1) We propose a new network structure called Spansensitive Texture Fusion (STF) module. It can better recover confidence in the detail loss during downsampling. It also focuses on jump points and improves the efficiency of detection. 2) We simulate noises to further enhance the robustness of the model by using Singular Value Decomposition and salt-and-pepper noise when performing data augmentation. This addresses the issue that the noise with a certain degree of false detection may disturb STF, which is highly sensitive to jump points. 3) Furthermore, we design an area strategy-based noise addition strategy to further enhance the model, with the consideration that the amount of noise added should be controlled by the size and how much of the target is in the graph. 4) Finally, the ''Aluminum profile surface defects'' dataset [10], ''Magnetic tile'' dataset [11], and ''Northeastern University surface defect database for defect detection task (NEU-DET)'' dataset [12] are compared with the mainstream targets detection models such as Faster RCNN, YOLOv4, YOLOv5, and DERT. The performance of the proposed model is verified. The proposed MeDERT model becomes the SOTA model for the above three datasets. I. INTRODUCTION In recent years, most of the methods mentioned in other similar research literature have the disadvantages of not being able to process more complex images and the long learning time required upfront through deep learning methods [13], [14], [15], [16], while the new method mentioned in this study has the following advantages: 1) Our proposed MeDERT model outperforms recent models such as YOLOv5 and DERT, becoming the state-of-the-art (SOTA) in aluminum profile defect detection, our proposed modifications have effectively improved the defect detection performance. I. INTRODUCTION 2) The multi-head attention mechanism allows the model to capture different aspects of input for better representation learning. 3) We propose a new noise robust data enhancement strategy and detail recovery network structure based on DERT which enhances the detection networks' robustness. II. RELATED WORK Computer vision has played a significant role in the development of artificial intelligence in the past 20 years. Many applications are related to the development of computer vision, which is noticeable in two ways. First, The field of computer vision has seen tremendous growth in recent years, largely due to the development of various fundamental datasets such as MNIST, Cifar10, Ima-geNet [17], and others. These datasets provide a large amount of data that is essential for training machine learning models and improving their performance. It is well known that the quality of the dataset is a critical factor in determining the effectiveness of the model. The abundance of new datasets is driving the rapid development of computer vision technology, leading to breakthroughs in this field. These datasets provide a wealth of information for researchers to study and understand the real world, and they allow machine learning models to be trained more effectively, resulting in improved performance on various tasks. In conclusion, the development of new datasets is crucial for advancing the field of computer vision and ensuring that machine learning models can be trained to achieve higher accuracy and better results. The quality of the dataset is directly related to the performance of the model, making it a critical factor in the development of computer vision technology. II. RELATED WORK Second, various models have been designed for various computer vision tasks, such as AlexNet, VGGNet [18], and ResNet [19] for classification, as well as UNet [20] and DeepLab [21]series in the semantic segmentation field, which have achieved great performance. Especially for challenging detection tasks, as in this study, classical models like SSD [22], Fast RCNN [23], and Faster RCNN [24] adapted for detection tasks have propelled technical improvement. II. RELATED WORK However, all the above models rely on Convolutional neural networks (CNNs), which have a significant number of downsampling processes that generate several scales of feature maps during forward processing and represent input data in many dimensions. It needs the generation of forecasts for each scale of information to avoid missing important information in the output of the final layer. Currently, the prevailing solution to this issue is to employ multiscale prediction strategies, such as models: SSD [22] and YOLOv3 [25]. The Mask RCNN model [26] uses another strategy called FPN [27] as its backbone to forecast and fuse information from different scales. II. RELATED WORK After the older YOLO [28] and YOLOv2 [29], the YOLO series detection networks have progressed tremendously, from the YOLOv3 mentioned above [25] to the succeeding YOLOv4 [30], YOLOv5 [31], and YOLOX [32], all with considerable increases in efficacy. Proposed in 2015, YOLO [28] has DarkNet as its backbone. It splits an image into an SXS grid and reduces a large amount of computation. However, it demonstrates poor performance in the detection of small objects. YOLOv2 [29] uses batch normalization and introduces anchor boxes to detect multiple objects. YOLOv3 [25] improves the detection performance by incorporating residual blocks and skip connections into DarkNet-53. YOLOv4 [30] adds some more methodologies to the model, including mosaic data augmentation, weighted residual connections, and Mish activation. These modifications made YOLOv4 achieve SOTA on the MS COCO dataset. YOLOv5 uses a different structure as the backbone, which is the Focus structure with CSPdarknet53. YOLOX was proposed in 2021 and adopted a decoupled head to boost performance. It is also an anchor-free model. II. RELATED WORK Computer vision technology has achieved outstanding performance in some fields [33], [34], [35], [36], [37]. Take medical imaging as an example. It can even outperform manual accuracy to a certain extent, reducing patients suffering from misdiagnosis. Many applications in medical services could reduce human input while ensuring or even boosting accuracy to some extent, for example, monitoring patients' daily conditions [38] or using chest X-ray images to identify health conditions [39] and even diabetes diagnosis [40]. II. RELATED WORK However, another issue with computer vision is that its applications in various areas progress quite differently. Especially in the equally important sector of industrial production, no specific models are created. Therefore, we investigate the problem in this research. III. METHODS In this study, we propose a new noise-robust data enhancement strategy and detail recovery network structure based on DERT, enhancing the detection network's robustness. Figure 1 illustrates the proposed method, and Figure 2 shows the network design of MeDERT, which is improved from DERT. The method is described in detail in the following sections. A. DERT DERT is based on the improved language model BERT, which is more suitable for target detection tasks. As a next-generation neural network architecture, the Transformer architecture has been proven to perform well in various task environments, and the target detection domain. It is currently difficult for academics to explain how it performs well in multiple-task environments. Still, it is broadly attributed to two aspects: spanning links and multi-headed attention mechanisms. A. DERT DERT is improved from Transformer, with a few innovations, and dedicated to targeting detection tasks. It is widely believed that Transformer can achieve SOTA not only in the Natural Language Processing (NLP) field but also in other fields, such as semantic segmentation and speech recognition, with some structural changes to achieve higher robustness. 1) MULTI-HEAD ATTENTION Multi-Head Attention splits each feature in the feature map into Q(queries), K(keys), and V(values) and achieves a nonlinear addressing process by backpropagation after alternate operations. 1) MULTI-HEAD ATTENTION The multi-head attention mechanism is a key component in many state-of-the-art NLP models, such as Transformer. It uses three input matrices: Q, K, and V. The goal of the attention mechanism is to compute a weighted sum of values (V) for each query (Q), where the weights are determined based on the similarity between the query and a set of keys (K). The Q matrix is used to compute the attention scores, the K matrix is used for comparison, and the V matrix is used to compute the final attention output. 1) MULTI-HEAD ATTENTION In the multi-head attention mechanism, multiple attention heads are used to perform multiple attention computations in parallel. This allows the model to capture different aspects of the input, leading to better representation learning. The outputs from each head are concatenated and then projected into a lower-dimensional space to obtain the final attention output. This helps the model to attend to different aspects of the input information, leading to improved performance. This process also manifests Attention to alleviate the spatial complexity of deep learning. Instead of inputting all the features into the subsequent network for computation, some task-relevant information is selected for output. The advantages are as follows: 1) MULTI-HEAD ATTENTION • Strengthening the learning ability of a CNN 1) MULTI-HEAD ATTENTION The accuracy of a lightweight CNN could be significantly lowered. Therefore, the learning capability of CNNs needs to be enhanced to achieve good enough accuracy. The structure of CSPNet makes it convenient to be converted to ResNet, ResNeXt, and DenseNet. CSPNet requires 10% to 20% less processing resources when applied to the networks mentioned above while surpassing other classical networks in terms of accuracy. VOLUME 11, 2023 • Removing computational bottlenecks When the model structure is too large, inference requires more GPU memory space. Attention aims at the high-quality application of weights such as Q, K, V, etc., thus effectively increasing the utilization of each computational unit and thus reducing wasteful arrangements. 1) MULTI-HEAD ATTENTION • Reducing memory costs Manufacturing Dynamic Random-Access Memory (DRAM) wafers are expensive and take up a lot of space. The ASIC (Argus Sour Crude Index) costs can be dramatically reduced when the memory costs can be reduced efficiently. Small-size wafers can also be used in a variety of edge computing devices. CSPNet could reduce memory use on PeleeNet by up to 75% while constructing feature pyramids. 1) MULTI-HEAD ATTENTION Multi-head Attention is proposed to solve the heavy inference computation of recursive neural networks in computer natural language tasks (e.g., text classification) and establish semantic relations between the preceding and following texts. It is based on the core concepts of nonlinear operations and reuses, replicating the base layer feature map information and reusing a large amount of gradient information. Multihead Attention maintains the advantage of feature reuse by dividing the feature map of the base layer into three parts but prevents the over-replication of gradient information. One piece will be sent to a dense block and transition layer, while the other part will be combined with the transmitted feature map to the next stage. It successfully allows feature propagation, facilitates the reuse of features by the network, and reduces the number of network parameters. Multi-head Attention is efficiently utilized in the Transformer. In this study, we use DERT as the leading network. With standard training, small objects are detected considerably less effectively than medium and large objects. 1) MULTI-HEAD ATTENTION Surrounding features that could be used to recover information are further losses due to the Patch mechanism in the Transformer. The difference in scale and proportion between training and reality also causes some degree of metric degradation. 1) MULTI-HEAD ATTENTION To address this issue, we modified the enhancement method used by DERT and proposed a new approach to improve detection. B. JUMP-SENSITIVE DETAIL RECOVERY FEATURE FUSION MODULE We need to up-sample twice the size of the feature map due to pooling when fusing information from feature maps of different scales, which ensures the correspondence between pixels and a stable shape of the composed tensor during computation. Meanwhile, interpolation is often used to recover the information on missing points. However, the interpolation method (linear or bilinear) assumes a smooth variation of values between different pixels. A relatively obvious jump in the original data will certainly lead to significant differences between the recovered high-resolution map and the real input. The apparent outliers in the image are mainly caused by two situations. One could be the noise during the image acquisition process. During the detection process, there are multiple convolution and pooling operations that the feature maps have undergone, but it is not guaranteed to eliminate all single noise points. However, there is a great chance to improve the situation. Another kind of outlier corresponds to the predominance of a significant change in pixel value or some feature in the image, which is defined as an edge in computer vision. To distinguish foreground and background, edges provide critical information, which greatly impacts the effectiveness of the detection task. B. JUMP-SENSITIVE DETAIL RECOVERY FEATURE FUSION MODULE To address this problem, we try to retain the outlier lost during each downsampling to improve the detection effect. In our work, we consider the largest or smallest pixel value in each sliding window as the outlier while not considering other statistical metrics, such as the mean value. In order to preserve as much edge information as possible when upsampling, the input feature map is max-pooled and min-pooled by taking negative numbers to obtain both the maximum and minimum values in the current range. The two obtained feature maps, called F_max and F_min, are the same size as the input image. B. JUMP-SENSITIVE DETAIL RECOVERY FEATURE FUSION MODULE For information fusion between different feature maps, we use the concatenation operation instead of the addition operation to alleviate the computational burden. Since different locations in the feature map have different information, the weight parameter in the above concatenation operation has to change corresponding to coordinates and be adaptively adjusted according to the scale between different inputs. In order to fully understand the connection, we design a small network for calculating weights. B. JUMP-SENSITIVE DETAIL RECOVERY FEATURE FUSION MODULE We design the model Span-sensitive Texture Fusion (STF) module as follows: Firstly, the 2× upsample feature map, F_min and F_max are concatenated in the channel dimension, and then two 1 × 1 convolutions are performed to fuse the information from different sources and normalize the weights to obtain the three weights in each coordinate. Figure 3 explains the operation flow in the STF module with 16× downsampled data and 32× downsampled data for fusion. As illustrated in Figure 2, the prediction head is achieved by combining the above feature fusion structure with the original multiscale prediction head. It is more sensitive to jump points strongly correlated with the possible objects, which can better recover details. B. JUMP-SENSITIVE DETAIL RECOVERY FEATURE FUSION MODULE The advantage of the STF fusion method is that it fuses several feature maps of different sizes, giving it the characteristics of pyramidal feature extraction, but with a simpler structure than a pyramid. And this type of feature fusion is more suitable for Transformer architecture. C. DENOISE DATA AUGMENTATION METHOD Based on the above strategy, the model is necessarily driven to focus too much on the jump points in the graph, which can cause some problems: C. DENOISE DATA AUGMENTATION METHOD 1) The model emphasizes too much the regions with drastic changes and ignores most of the pixels with normal changes, resulting in a certain degree of missed detection. C. DENOISE DATA AUGMENTATION METHOD 2) In the image acquisition process, there will be unavoidable noise due to changes in viewpoint, illumination, and shooting tools. The noise has very similar characteristics to the jump location, which becomes an interference for the model to identify and greatly reduces the robustness of the model. 3) It is difficult to define a fixed pattern for the jump points, which can easily lead to missed detection and false alarm. Therefore, the model is strongly dependent on the data, which needs to be decoupled. We use data augmentation to solve the above problem. C. DENOISE DATA AUGMENTATION METHOD Singular Value Decomposition is used in our design to interfere with high-resolution photos and create lowresolution images for training. It dynamically strips a portion of the information in the graph and reflects it in specific pixel values, which is similar to the effect of noise overlay. We keep the first 200 principal components in each image. C. DENOISE DATA AUGMENTATION METHOD To further simulate noise during data augmentation and fully enhance the robustness of the model, we use salt-andpepper noise to perform augmentation and add only the following noise in 0.5% of the pixels to not disturb the original image too much. The data augmentation approach described above provides good simulation capability for noise and enhances the robustness of the model. To a certain extent, it can eliminate the interference of unpredictable noise in the model. Therefore, we call it DeNoise Data Augmentation Method. C. DENOISE DATA AUGMENTATION METHOD There are two strategies for salt-and-pepper noise incorporation. One is to use a fixed proportion. The other uses the proportion of the whole area occupied by the actual target box as the basis for noise incorporation. According to experimental results, the latter achieves a better effect. C. DENOISE DATA AUGMENTATION METHOD We adopt the following strategy for the input image x. The proportion of added salt-and-pepper noise is set to P. Formula 1 explains how the proportion is determined. C. DENOISE DATA AUGMENTATION METHOD A random perturbation γ was introduced into the calculation as a way of improving the accuracy and stability of the calculation. γ is added to the calculation by randomly generated values which can make the results more accurate and reliable. area u is the sum of the areas of all objects, and it is an important indicator for assessing the size of an object. However, in this step, the overlap of different objects corresponding to the bounding boxes is not considered. area n is calculated as the sum of the areas of all bounding boxes, which is an important indicator for assessing the number and distribution of objects. These bounding boxes represent the shape of the objects and can help us to better understand the position and size of the objects. C. DENOISE DATA AUGMENTATION METHOD σ is a Sigmoid function, which is a commonly used nonlinear function widely used in fields such as machine learning and neural networks. It helps to classify and analyze the VOLUME 11, 2023 results by transforming the input data so that the results are between 0 and 1. C. DENOISE DATA AUGMENTATION METHOD Finally, the upper limit of the perturbation is set to 0.2. This means that the range of the perturbation is limited, avoiding excessive fluctuations in the calculated results. This also helps to ensure the reliability and repeatability of the calculated results. C. DENOISE DATA AUGMENTATION METHOD Overall, these concepts and functions are very important and are crucial for improving the accuracy and efficiency of the calculations. C. DENOISE DATA AUGMENTATION METHOD As illustrated in Figure 4, it should be noted that we tried to add artificial noise around the object detection box to affect the accuracy of the detection. However, the experimental results showed very serious overfitting. It is concluded that the model could easily recognize this noise around the detection box as a feature indicating the presence of the detection box, causing unnecessary dependence. IV. EXPERIMENT A. DENOISE In order to fully study the characteristics and detection effectiveness of defects in aluminum profiles, a dataset consisting of samples from the actual production process was obtained by collecting pictures of aluminum profiles, which were obtained at a certain period from a certain production line of an enterprise in Nanhai, Foshan, Guangdong Province, China. There are 4356 samples in the dataset, and 3005 of them contain defects for analysis. Samples without defects are not considered. According to the categories of defects that may occur in the actual production process, a total of 10 different types of defects are included. The dataset is divided into the training set and the data set, with numbers 2505 and 500. Table 1 shows the statistics of the ten defects. IV. EXPERIMENT A. DENOISE After visualizing a number of samples (as shown in Figures 5 and 6), we find that it is difficult to detect surface defects in aluminum profiles due to small differences between defects and background. Meanwhile, there are lots of variations of defects, which means a large number of defect types and their similarities make the detection tasks more challenging. This is also why our research is meaningful and economically beneficial. The results of this research could reduce production costs and accelerate automation innovation in the industry. Figure 7 shows the effect of data augmentation, comparing before and after augmentation. Through Singular Value Decomposition and salt-and-pepper noise, many jump points are recognized in the picture. By doing so, the noise is artificially added to the picture, which drives the model to improve robustness and enhance its anti-interference ability. 35474 VOLUME 11, 2023 Authorized licensed use limited to the terms of the applicable license agreement with IEEE. Restrictions apply. C. TRAINING CONFIG 1) HARDWARE CONFIGS In the surface defect detection experiment, we use Python and PyTorch with version 1.8.0. To accelerate the training, we use GPU RTX2080Ti. 2) TRAINING CONFIGS Here we choose Adam [41] as the optimizer in our experiments. The cross-entropy loss function was used for the optimization objective. We set the learning rate to 0.0005 and β1 and β2 to 0.99 and 0.999, respectively. to make the VOLUME 11, 2023 35475 Authorized licensed use limited to the terms of the applicable license agreement with IEEE. Restrictions apply. calculation efficient, we set the eps parameter to 1e-08 to prevent the denominator from being 0. The attention head branches are 7 and 20,000 Epochs are used to train our model with a learning rate of 1e-5 using the pre-training method of the COCO model. D. METRICS In our experiment, we choose to mean Average Precision(mAP) to measure the effectiveness of detection. First, we arrange all detection results predicted by our proposed model in decreasing order, according to the confidence score. When our prediction and gt get an IoU (Intersection over Union) greater than a certain threshold we predefine, we call them a ''match.'' We use statistics to get the PR (Precision-Recall) curve and further the area under the curve, which is the AP score. Finally, by fusing different AP values, we get mAP. D. METRICS We use AP, AP 50 , and AP 75 , which correspond to different thresholds, to evaluate the effect of the model from different perspectives. They can provide a better comparison between models. When calculating AP 50 and AP 75 , the threshold is used to determine whether the output is positive or negative. Taking the threshold of 50 as an example, when the IoU of the output and the real box is greater than 0.5, it is considered positive. Similarly, 75 corresponds to 0.75. For calculating AP, in the interval [0.5, 0.95], take a value every 0.05 as the threshold and finally average the 10 APs, which is the final AP. E. RESULT We chose Faster RCNN and YOLOv4 as the baseline, which are well-known detectors with superior detection performance. Our model is based on modifications of the YOLOv4 backbone, and we examine its impact on the detection task. E. RESULT We first change the multi-scale feature fusion strategy and then replace the original fusion block with our proposed Span-sensitive Texture Fusion (STF) module. As shown in Table 2-4, our model achieves significant improvement in all AP metrics and beats all other detection models, which fully illustrates the efficiency of our new block. This new structure can effectively recover the details of the original input during upsampling and better capture the jump points to improve object detection. We further add the DeNoise Augmentation strategy that improves all AP metrics by 2%. This fully illustrates that the data augmentation approach in our model effectively alleviates the sensitivity to noise resulting from the STF module and its excessive attention to jump points. It enhances the robustness of the model and allows it to cope with different types of inputs better. At last, the addition of an area strategy further improves the performance and achieves the best results. E. RESULT All experimental results are shown in Table 2-4, with the maximum values in each column marked in bold. Our final model achieves the best metrics in all aspects. Even compared with the latest models, such as DERT or YOLOv5, it demonstrates an obvious advantage. Figures 8,9,10,and 11 show examples of the results. It can be seen that our proposed model achieves better results for different hues, different categories, and different numbers of defects. It provides accurate detection and demonstrates robustness even in cases where there are different defects. V. CONCLUSION In this paper, we propose MeDERT, a new defect detection model for aluminum profiles that aims to improve the performance of the DERT model. To achieve this, we incorporate several modifications to the DERT model and introduce a new structure called the Span-sensitive Texture Fusion (STF) module. This new module enhances the defect detection performance by focusing more attention on jump points and better recovering confidence in detail loss. V. CONCLUSION In addition to the STF module, we also introduce Singular Value Decomposition and salt-and-pepper noise to enhance the robustness of the model through data augmentation. These techniques are designed to simulate real-world noise and balance the high sensitivity to jump points introduced by the STF module. To further improve the robustness of the model, we design an area strategy-based noise addition strategy that adds noise to the input data. V. CONCLUSION Our experimental results show that MeDERT outperforms recent models such as YOLOv5 and DERT and becomes the state-of-the-art (SOTA) model in the field of aluminum profile defect detection. The results demonstrate the advantages of MeDERT over other models, indicating that our proposed modifications have effectively improved the defect detection performance. The results of this study contribute to the advancement of the field and provide valuable insights into the development of future models for aluminum profile defect detection.

섹션 본문 55문단 · 31,175자

(제목 없음)

1Defects in various products are unavoidable because of measurement errors and equipment accuracy limitations in the production process. Recent advances in metal surface defect detection have focused on optimizing traditional methods, developing new detection techniques, and exploring deep learning-based algorithms, providing technological support to improve metal manufacturing quality and production efficiency. To ensure the highest yield rate and meet production requirements, all products must undergo defect inspections before leaving the factory. However, Traditional methods for detecting metal surface defects require a lot of manual involvement, are difficult to accurately detect small defects, are susceptible to environmental interference, and lack stability and reliability. To address this issue, we propose the MeDERT model for metal surface defect detection. Our approach involves a new Span-sensitive Texture Fusion (STF) module structure that focuses on multi-headed attention modules to recover lost details and boost inspection speed and on top of that use the Jump-sensitive detail recovery feature fusion module to ensure the validity of the extracted textures. Additionally, we introduce singular value decomposition and pretzel noise to model the noise and enhance model robustness through data augmentation. Our MeDERT model achieved state-of-the-art (SOTA) results on a specified dataset, demonstrating its effectiveness in enhancing inspection efficiency and accuracy.INDEX TERMSMetal profiles, defect detection, deep learning, salt-and-pepper noise, singular value decomposition, DERT. VOLUME 11, 2023 This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 License. For more information, see https://creativecommons.org/licenses/by-nc-nd/4.0/ 35469 Authorized licensed use limited to the terms of the applicable license agreement with IEEE. Restrictions apply.

I. INTRODUCTION

2Metal products made of aluminum profiles are widely used in people's daily lives, and in many regions, the production of aluminum profiles is considered a pillar industry. Along with the advancement of technology, the production of aluminum profiles has been automated, which has dramatically increased efficiency. Automation is often introduced into all stages of the aluminum profile production process, from the very beginning of the material screening, automatic configuration of production operations, detection of defective products, and finally, sorting and packaging, all of which require monitoring of product quality. However, most aluminum profile product quality inspections are currently manual and prone to errors. Therefore, monitoring product quality during the automation of aluminum profiles is crucial, and practical and accurate assessment is also urgent for modern manufacturing. In this study, we investigated the detection of The associate editor coordinating the review of this manuscript and approving it for publication was Yizhang Jiang . surface defects in aluminum profiles during the production process.

3The development of computer vision-based technology has greatly advanced the automated inspection technique. The surface defect detection problem is an object detection problem. The detection task is based on the analysis of images taken by cameras, which aims to identify the location and category of the defects in the images. Therefore, detection precision is the main metric to evaluate the detection method. There have been three types of automated inspection techniques based on production images: 1) image processing [1], [2], [3]. The technique focuses on using image filters to highlight defect instances. 2) machine learning (ML) [4], [5], [6]. Machine learning-based technique uses certain image filters to extract features that are fed into ML algorithms, for example, support vector machine (SVM). 3) deep learning [7], [8], [9]. Deep neural networks (DNN) use convolutional operations for feature learning and extract features during training. It has been widely applied in image classification and object detection tasks.

4Deep learning methods have advanced object detection tasks. However, surface defect detection for aluminum profiles has its challenges. First, there are various categories of defects, including scratches and dents. Second, even for the same type of defects, the severity of defect instances brings another challenge, like length, size, shape, orientation, and depth. To address these challenges, we need a model to investigate and distinguish the possible patterns in-depth. Meanwhile, data augmentation will be necessary to enrich the dataset and enhance its diversity.

5In the research, we propose a defect detection model for aluminum materials to detect surface defects more quickly. This study is valuable economically and socially. Our proposed model is mainly based on the modification of the classical detector YOLOv4, which is adapted to process image features of aluminum profiles. The main contributions of this research are as follows:

61) We propose a new network structure called Spansensitive Texture Fusion (STF) module. It can better recover confidence in the detail loss during downsampling. It also focuses on jump points and improves the efficiency of detection. 2) We simulate noises to further enhance the robustness of the model by using Singular Value Decomposition and salt-and-pepper noise when performing data augmentation. This addresses the issue that the noise with a certain degree of false detection may disturb STF, which is highly sensitive to jump points. 3) Furthermore, we design an area strategy-based noise addition strategy to further enhance the model, with the consideration that the amount of noise added should be controlled by the size and how much of the target is in the graph. 4) Finally, the ''Aluminum profile surface defects'' dataset [10], ''Magnetic tile'' dataset [11], and ''Northeastern University surface defect database for defect detection task (NEU-DET)'' dataset [12] are compared with the mainstream targets detection models such as Faster RCNN, YOLOv4, YOLOv5, and DERT. The performance of the proposed model is verified. The proposed MeDERT model becomes the SOTA model for the above three datasets.

7In recent years, most of the methods mentioned in other similar research literature have the disadvantages of not being able to process more complex images and the long learning time required upfront through deep learning methods [13], [14], [15], [16], while the new method mentioned in this study has the following advantages: 1) Our proposed MeDERT model outperforms recent models such as YOLOv5 and DERT, becoming the state-of-the-art (SOTA) in aluminum profile defect detection, our proposed modifications have effectively improved the defect detection performance.

82) The multi-head attention mechanism allows the model to capture different aspects of input for better representation learning. 3) We propose a new noise robust data enhancement strategy and detail recovery network structure based on DERT which enhances the detection networks' robustness.

II. RELATED WORK

9Computer vision has played a significant role in the development of artificial intelligence in the past 20 years. Many applications are related to the development of computer vision, which is noticeable in two ways. First, The field of computer vision has seen tremendous growth in recent years, largely due to the development of various fundamental datasets such as MNIST, Cifar10, Ima-geNet [17], and others. These datasets provide a large amount of data that is essential for training machine learning models and improving their performance. It is well known that the quality of the dataset is a critical factor in determining the effectiveness of the model. The abundance of new datasets is driving the rapid development of computer vision technology, leading to breakthroughs in this field. These datasets provide a wealth of information for researchers to study and understand the real world, and they allow machine learning models to be trained more effectively, resulting in improved performance on various tasks. In conclusion, the development of new datasets is crucial for advancing the field of computer vision and ensuring that machine learning models can be trained to achieve higher accuracy and better results. The quality of the dataset is directly related to the performance of the model, making it a critical factor in the development of computer vision technology.

10Second, various models have been designed for various computer vision tasks, such as AlexNet, VGGNet [18], and ResNet [19] for classification, as well as UNet [20] and DeepLab [21]series in the semantic segmentation field, which have achieved great performance. Especially for challenging detection tasks, as in this study, classical models like SSD [22], Fast RCNN [23], and Faster RCNN [24] adapted for detection tasks have propelled technical improvement.

11However, all the above models rely on Convolutional neural networks (CNNs), which have a significant number of downsampling processes that generate several scales of feature maps during forward processing and represent input data in many dimensions. It needs the generation of forecasts for each scale of information to avoid missing important information in the output of the final layer. Currently, the prevailing solution to this issue is to employ multiscale prediction strategies, such as models: SSD [22] and YOLOv3 [25]. The Mask RCNN model [26] uses another strategy called FPN [27] as its backbone to forecast and fuse information from different scales.

12After the older YOLO [28] and YOLOv2 [29], the YOLO series detection networks have progressed tremendously, from the YOLOv3 mentioned above [25] to the succeeding YOLOv4 [30], YOLOv5 [31], and YOLOX [32], all with considerable increases in efficacy. Proposed in 2015, YOLO [28] has DarkNet as its backbone. It splits an image into an SXS grid and reduces a large amount of computation. However, it demonstrates poor performance in the detection of small objects. YOLOv2 [29] uses batch normalization and introduces anchor boxes to detect multiple objects. YOLOv3 [25] improves the detection performance by incorporating residual blocks and skip connections into DarkNet-53. YOLOv4 [30] adds some more methodologies to the model, including mosaic data augmentation, weighted residual connections, and Mish activation. These modifications made YOLOv4 achieve SOTA on the MS COCO dataset. YOLOv5 uses a different structure as the backbone, which is the Focus structure with CSPdarknet53. YOLOX was proposed in 2021 and adopted a decoupled head to boost performance. It is also an anchor-free model.

13Computer vision technology has achieved outstanding performance in some fields [33], [34], [35], [36], [37]. Take medical imaging as an example. It can even outperform manual accuracy to a certain extent, reducing patients suffering from misdiagnosis. Many applications in medical services could reduce human input while ensuring or even boosting accuracy to some extent, for example, monitoring patients' daily conditions [38] or using chest X-ray images to identify health conditions [39] and even diabetes diagnosis [40].

14However, another issue with computer vision is that its applications in various areas progress quite differently. Especially in the equally important sector of industrial production, no specific models are created. Therefore, we investigate the problem in this research.

III. METHODS

15In this study, we propose a new noise-robust data enhancement strategy and detail recovery network structure based on DERT, enhancing the detection network's robustness. Figure 1 illustrates the proposed method, and Figure 2 shows the network design of MeDERT, which is improved from DERT. The method is described in detail in the following sections.

A. DERT

16DERT is based on the improved language model BERT, which is more suitable for target detection tasks. As a next-generation neural network architecture, the Transformer architecture has been proven to perform well in various task environments, and the target detection domain. It is currently difficult for academics to explain how it performs well in multiple-task environments. Still, it is broadly attributed to two aspects: spanning links and multi-headed attention mechanisms.

17DERT is improved from Transformer, with a few innovations, and dedicated to targeting detection tasks. It is widely believed that Transformer can achieve SOTA not only in the Natural Language Processing (NLP) field but also in other fields, such as semantic segmentation and speech recognition, with some structural changes to achieve higher robustness.

1) MULTI-HEAD ATTENTION

18Multi-Head Attention splits each feature in the feature map into Q(queries), K(keys), and V(values) and achieves a nonlinear addressing process by backpropagation after alternate operations.

19The multi-head attention mechanism is a key component in many state-of-the-art NLP models, such as Transformer. It uses three input matrices: Q, K, and V. The goal of the attention mechanism is to compute a weighted sum of values (V) for each query (Q), where the weights are determined based on the similarity between the query and a set of keys (K). The Q matrix is used to compute the attention scores, the K matrix is used for comparison, and the V matrix is used to compute the final attention output.

20In the multi-head attention mechanism, multiple attention heads are used to perform multiple attention computations in parallel. This allows the model to capture different aspects of the input, leading to better representation learning. The outputs from each head are concatenated and then projected into a lower-dimensional space to obtain the final attention output. This helps the model to attend to different aspects of the input information, leading to improved performance. This process also manifests Attention to alleviate the spatial complexity of deep learning. Instead of inputting all the features into the subsequent network for computation, some task-relevant information is selected for output. The advantages are as follows:

21• Strengthening the learning ability of a CNN

22The accuracy of a lightweight CNN could be significantly lowered. Therefore, the learning capability of CNNs needs to be enhanced to achieve good enough accuracy. The structure of CSPNet makes it convenient to be converted to ResNet, ResNeXt, and DenseNet. CSPNet requires 10% to 20% less processing resources when applied to the networks mentioned above while surpassing other classical networks in terms of accuracy. VOLUME 11, 2023 • Removing computational bottlenecks When the model structure is too large, inference requires more GPU memory space. Attention aims at the high-quality application of weights such as Q, K, V, etc., thus effectively increasing the utilization of each computational unit and thus reducing wasteful arrangements.

23• Reducing memory costs Manufacturing Dynamic Random-Access Memory (DRAM) wafers are expensive and take up a lot of space. The ASIC (Argus Sour Crude Index) costs can be dramatically reduced when the memory costs can be reduced efficiently. Small-size wafers can also be used in a variety of edge computing devices. CSPNet could reduce memory use on PeleeNet by up to 75% while constructing feature pyramids.

24Multi-head Attention is proposed to solve the heavy inference computation of recursive neural networks in computer natural language tasks (e.g., text classification) and establish semantic relations between the preceding and following texts. It is based on the core concepts of nonlinear operations and reuses, replicating the base layer feature map information and reusing a large amount of gradient information. Multihead Attention maintains the advantage of feature reuse by dividing the feature map of the base layer into three parts but prevents the over-replication of gradient information. One piece will be sent to a dense block and transition layer, while the other part will be combined with the transmitted feature map to the next stage. It successfully allows feature propagation, facilitates the reuse of features by the network, and reduces the number of network parameters. Multi-head Attention is efficiently utilized in the Transformer. In this study, we use DERT as the leading network. With standard training, small objects are detected considerably less effectively than medium and large objects.

25Surrounding features that could be used to recover information are further losses due to the Patch mechanism in the Transformer. The difference in scale and proportion between training and reality also causes some degree of metric degradation.

26To address this issue, we modified the enhancement method used by DERT and proposed a new approach to improve detection.

B. JUMP-SENSITIVE DETAIL RECOVERY FEATURE FUSION MODULE

27We need to up-sample twice the size of the feature map due to pooling when fusing information from feature maps of different scales, which ensures the correspondence between pixels and a stable shape of the composed tensor during computation. Meanwhile, interpolation is often used to recover the information on missing points. However, the interpolation method (linear or bilinear) assumes a smooth variation of values between different pixels. A relatively obvious jump in the original data will certainly lead to significant differences between the recovered high-resolution map and the real input. The apparent outliers in the image are mainly caused by two situations. One could be the noise during the image acquisition process. During the detection process, there are multiple convolution and pooling operations that the feature maps have undergone, but it is not guaranteed to eliminate all single noise points. However, there is a great chance to improve the situation. Another kind of outlier corresponds to the predominance of a significant change in pixel value or some feature in the image, which is defined as an edge in computer vision. To distinguish foreground and background, edges provide critical information, which greatly impacts the effectiveness of the detection task.

28To address this problem, we try to retain the outlier lost during each downsampling to improve the detection effect. In our work, we consider the largest or smallest pixel value in each sliding window as the outlier while not considering other statistical metrics, such as the mean value. In order to preserve as much edge information as possible when upsampling, the input feature map is max-pooled and min-pooled by taking negative numbers to obtain both the maximum and minimum values in the current range. The two obtained feature maps, called F_max and F_min, are the same size as the input image.

29For information fusion between different feature maps, we use the concatenation operation instead of the addition operation to alleviate the computational burden. Since different locations in the feature map have different information, the weight parameter in the above concatenation operation has to change corresponding to coordinates and be adaptively adjusted according to the scale between different inputs. In order to fully understand the connection, we design a small network for calculating weights.

30We design the model Span-sensitive Texture Fusion (STF) module as follows: Firstly, the 2× upsample feature map, F_min and F_max are concatenated in the channel dimension, and then two 1 × 1 convolutions are performed to fuse the information from different sources and normalize the weights to obtain the three weights in each coordinate. Figure 3 explains the operation flow in the STF module with 16× downsampled data and 32× downsampled data for fusion. As illustrated in Figure 2, the prediction head is achieved by combining the above feature fusion structure with the original multiscale prediction head. It is more sensitive to jump points strongly correlated with the possible objects, which can better recover details.

31The advantage of the STF fusion method is that it fuses several feature maps of different sizes, giving it the characteristics of pyramidal feature extraction, but with a simpler structure than a pyramid. And this type of feature fusion is more suitable for Transformer architecture.

C. DENOISE DATA AUGMENTATION METHOD

32Based on the above strategy, the model is necessarily driven to focus too much on the jump points in the graph, which can cause some problems:

331) The model emphasizes too much the regions with drastic changes and ignores most of the pixels with normal changes, resulting in a certain degree of missed detection.

342) In the image acquisition process, there will be unavoidable noise due to changes in viewpoint, illumination, and shooting tools. The noise has very similar characteristics to the jump location, which becomes an interference for the model to identify and greatly reduces the robustness of the model. 3) It is difficult to define a fixed pattern for the jump points, which can easily lead to missed detection and false alarm. Therefore, the model is strongly dependent on the data, which needs to be decoupled. We use data augmentation to solve the above problem.

35Singular Value Decomposition is used in our design to interfere with high-resolution photos and create lowresolution images for training. It dynamically strips a portion of the information in the graph and reflects it in specific pixel values, which is similar to the effect of noise overlay. We keep the first 200 principal components in each image.

36To further simulate noise during data augmentation and fully enhance the robustness of the model, we use salt-andpepper noise to perform augmentation and add only the following noise in 0.5% of the pixels to not disturb the original image too much. The data augmentation approach described above provides good simulation capability for noise and enhances the robustness of the model. To a certain extent, it can eliminate the interference of unpredictable noise in the model. Therefore, we call it DeNoise Data Augmentation Method.

37There are two strategies for salt-and-pepper noise incorporation. One is to use a fixed proportion. The other uses the proportion of the whole area occupied by the actual target box as the basis for noise incorporation. According to experimental results, the latter achieves a better effect.

38We adopt the following strategy for the input image x. The proportion of added salt-and-pepper noise is set to P. Formula 1 explains how the proportion is determined.

39A random perturbation γ was introduced into the calculation as a way of improving the accuracy and stability of the calculation. γ is added to the calculation by randomly generated values which can make the results more accurate and reliable. area u is the sum of the areas of all objects, and it is an important indicator for assessing the size of an object. However, in this step, the overlap of different objects corresponding to the bounding boxes is not considered. area n is calculated as the sum of the areas of all bounding boxes, which is an important indicator for assessing the number and distribution of objects. These bounding boxes represent the shape of the objects and can help us to better understand the position and size of the objects.

40σ is a Sigmoid function, which is a commonly used nonlinear function widely used in fields such as machine learning and neural networks. It helps to classify and analyze the VOLUME 11, 2023 results by transforming the input data so that the results are between 0 and 1.

41Finally, the upper limit of the perturbation is set to 0.2. This means that the range of the perturbation is limited, avoiding excessive fluctuations in the calculated results. This also helps to ensure the reliability and repeatability of the calculated results.

42Overall, these concepts and functions are very important and are crucial for improving the accuracy and efficiency of the calculations.

43As illustrated in Figure 4, it should be noted that we tried to add artificial noise around the object detection box to affect the accuracy of the detection. However, the experimental results showed very serious overfitting. It is concluded that the model could easily recognize this noise around the detection box as a feature indicating the presence of the detection box, causing unnecessary dependence.

IV. EXPERIMENT A. DENOISE

44In order to fully study the characteristics and detection effectiveness of defects in aluminum profiles, a dataset consisting of samples from the actual production process was obtained by collecting pictures of aluminum profiles, which were obtained at a certain period from a certain production line of an enterprise in Nanhai, Foshan, Guangdong Province, China. There are 4356 samples in the dataset, and 3005 of them contain defects for analysis. Samples without defects are not considered. According to the categories of defects that may occur in the actual production process, a total of 10 different types of defects are included. The dataset is divided into the training set and the data set, with numbers 2505 and 500. Table 1 shows the statistics of the ten defects.

45After visualizing a number of samples (as shown in Figures 5 and 6), we find that it is difficult to detect surface defects in aluminum profiles due to small differences between defects and background. Meanwhile, there are lots of variations of defects, which means a large number of defect types and their similarities make the detection tasks more challenging. This is also why our research is meaningful and economically beneficial. The results of this research could reduce production costs and accelerate automation innovation in the industry. Figure 7 shows the effect of data augmentation, comparing before and after augmentation. Through Singular Value Decomposition and salt-and-pepper noise, many jump points are recognized in the picture. By doing so, the noise is artificially added to the picture, which drives the model to improve robustness and enhance its anti-interference ability. 35474 VOLUME 11, 2023 Authorized licensed use limited to the terms of the applicable license agreement with IEEE. Restrictions apply.

C. TRAINING CONFIG 1) HARDWARE CONFIGS

46In the surface defect detection experiment, we use Python and PyTorch with version 1.8.0. To accelerate the training, we use GPU RTX2080Ti.

2) TRAINING CONFIGS

47Here we choose Adam [41] as the optimizer in our experiments. The cross-entropy loss function was used for the optimization objective. We set the learning rate to 0.0005 and β1 and β2 to 0.99 and 0.999, respectively. to make the VOLUME 11, 2023 35475 Authorized licensed use limited to the terms of the applicable license agreement with IEEE. Restrictions apply. calculation efficient, we set the eps parameter to 1e-08 to prevent the denominator from being 0. The attention head branches are 7 and 20,000 Epochs are used to train our model with a learning rate of 1e-5 using the pre-training method of the COCO model.

D. METRICS

48In our experiment, we choose to mean Average Precision(mAP) to measure the effectiveness of detection. First, we arrange all detection results predicted by our proposed model in decreasing order, according to the confidence score. When our prediction and gt get an IoU (Intersection over Union) greater than a certain threshold we predefine, we call them a ''match.'' We use statistics to get the PR (Precision-Recall) curve and further the area under the curve, which is the AP score. Finally, by fusing different AP values, we get mAP.

49We use AP, AP 50 , and AP 75 , which correspond to different thresholds, to evaluate the effect of the model from different perspectives. They can provide a better comparison between models. When calculating AP 50 and AP 75 , the threshold is used to determine whether the output is positive or negative. Taking the threshold of 50 as an example, when the IoU of the output and the real box is greater than 0.5, it is considered positive. Similarly, 75 corresponds to 0.75. For calculating AP, in the interval [0.5, 0.95], take a value every 0.05 as the threshold and finally average the 10 APs, which is the final AP.

E. RESULT

50We chose Faster RCNN and YOLOv4 as the baseline, which are well-known detectors with superior detection performance. Our model is based on modifications of the YOLOv4 backbone, and we examine its impact on the detection task.

51We first change the multi-scale feature fusion strategy and then replace the original fusion block with our proposed Span-sensitive Texture Fusion (STF) module. As shown in Table 2-4, our model achieves significant improvement in all AP metrics and beats all other detection models, which fully illustrates the efficiency of our new block. This new structure can effectively recover the details of the original input during upsampling and better capture the jump points to improve object detection. We further add the DeNoise Augmentation strategy that improves all AP metrics by 2%. This fully illustrates that the data augmentation approach in our model effectively alleviates the sensitivity to noise resulting from the STF module and its excessive attention to jump points. It enhances the robustness of the model and allows it to cope with different types of inputs better. At last, the addition of an area strategy further improves the performance and achieves the best results.

52All experimental results are shown in Table 2-4, with the maximum values in each column marked in bold. Our final model achieves the best metrics in all aspects. Even compared with the latest models, such as DERT or YOLOv5, it demonstrates an obvious advantage. Figures 8,9,10,and 11 show examples of the results. It can be seen that our proposed model achieves better results for different hues, different categories, and different numbers of defects. It provides accurate detection and demonstrates robustness even in cases where there are different defects.

V. CONCLUSION

53In this paper, we propose MeDERT, a new defect detection model for aluminum profiles that aims to improve the performance of the DERT model. To achieve this, we incorporate several modifications to the DERT model and introduce a new structure called the Span-sensitive Texture Fusion (STF) module. This new module enhances the defect detection performance by focusing more attention on jump points and better recovering confidence in detail loss.

54In addition to the STF module, we also introduce Singular Value Decomposition and salt-and-pepper noise to enhance the robustness of the model through data augmentation. These techniques are designed to simulate real-world noise and balance the high sensitivity to jump points introduced by the STF module. To further improve the robustness of the model, we design an area strategy-based noise addition strategy that adds noise to the input data.

55Our experimental results show that MeDERT outperforms recent models such as YOLOv5 and DERT and becomes the state-of-the-art (SOTA) model in the field of aluminum profile defect detection. The results demonstrate the advantages of MeDERT over other models, indicating that our proposed modifications have effectively improved the defect detection performance. The results of this study contribute to the advancement of the field and provide valuable insights into the development of future models for aluminum profile defect detection.

참고문헌 27건

  1. Adam: A Method for Stochastic Optimization 2014
  2. Fast R-CNN 2015 10.1109/iccv.2015.169
  3. U-Net: Convolutional Networks for Biomedical Image Segmentation Lecture notes in computer science · Springer Science+Business Media · 2015 10.1007/978-3-319-24574-4_28
  4. Detection and classification of surface defects of gun barrels using computer vision and machine learning Measurement · Elsevier BV · 2014 10.1016/j.measurement.2014.10.009
  5. A vision inspection system for the surface defects of strongly reflected metal based on multi-class SVM Expert Systems with Applications · Elsevier BV · 2010 10.1016/j.eswa.2010.11.030
  6. Metal surface defect detection using iterative thresholding technique 2014 10.1109/icctet.2014.6966360
  7. ImageNet: A large-scale hierarchical image database 2009 IEEE Conference on Computer Vision and Pattern Recognition · 2009 10.1109/cvpr.2009.5206848
  8. Deep Residual Learning for Image Recognition 2016 10.1109/cvpr.2016.90
  9. Deep convolutional neural networks for automatic coronary calcium scoring in a screening study with low-dose chest CT Proceedings of SPIE, the International Society for Optical Engineering/Proceedings of SPIE · SPIE · 2016 10.1117/12.2216978
  10. DeepLab: Semantic Image Segmentation with Deep Convolutional Nets, Atrous Convolution, and Fully Connected CRFs IEEE Transactions on Pattern Analysis and Machine Intelligence · IEEE Computer Society · 2017 10.1109/tpami.2017.2699184
  11. Convolutional Neural Networks for Diabetic Retinopathy Procedia Computer Science · Elsevier BV · 2016 10.1016/j.procs.2016.07.014
  12. Feature Pyramid Networks for Object Detection 2017 10.1109/cvpr.2017.106
  13. Light source optimization for automatic visual inspection of piston surface defects The International Journal of Advanced Manufacturing Technology · Springer Science+Business Media · 2016 10.1007/s00170-016-9937-x
  14. YOLO9000: Better, Faster, Stronger 2017 10.1109/cvpr.2017.690
  15. An inspection approach for casting defects detection using image segmentation 2017 10.1109/icmsc.2017.7959451
  16. Autonomous Structural Visual Inspection Using Region‐Based Deep Learning for Detecting Multiple Damage Types Computer-Aided Civil and Infrastructure Engineering · Wiley · 2017 10.1111/mice.12334
  17. Defect detection and classification of galvanized stamping parts based on fully convolution neural network Ninth International Conference on Graphic and Image Processing (ICGIP 2017) · 2018 10.1117/12.2303601
  18. Metal surface defect detection based on MATLAB 2018 10.1109/iaeac.2018.8577540
  19. Weak Micro-Scratch Detection Based on Deep Convolutional Neural Network IEEE Access · Institute of Electrical and Electronics Engineers · 2019 10.1109/access.2019.2894863
  20. An End-to-End Steel Surface Defect Detection Approach via Fusing Multiple Hierarchical Features IEEE Transactions on Instrumentation and Measurement · Institute of Electrical and Electronics Engineers · 2019 10.1109/tim.2019.2915404
  21. You Only Look Once: Unified, Real-Time Object Detection 2016 10.1109/cvpr.2016.91
  22. Mask R-CNN 2017 10.1109/iccv.2017.322
  23. YOLOv4: Optimal Speed and Accuracy of Object Detection arXiv (Cornell University) · Cornell University · 2020 10.48550/arxiv.2004.10934
  24. COVID-19: Automatic detection from X-ray images by utilizing deep learning methods Expert Systems with Applications · Elsevier BV · 2021 10.1016/j.eswa.2021.114883
  25. YOLOX: Exceeding YOLO Series in 2021 arXiv (Cornell University) · Cornell University · 2021 10.48550/arxiv.2107.08430
  26. 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
  27. 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