Adaptive rotation attention network for accurate defect detection on magnetic tile surface
간접 관련 엔지니어링 플라스틱 · (23) 컴파운드 (3) 자동차 인테리어 소재
기본 정보
- 저자
- DOI
- 10.3934/mbe.2023779
- 저널
- Mathematical Biosciences & Engineering
- 발행년도
- 2023
- 발행기관
- Arizona State University
- 피인용수
- 3
- 라이선스
- cc-by
- 논문 유형
- –
- 언어
- –
- 원문 페이지
- https://doi.org/10.3934/mbe.2023779
- 토픽
- Surface Roughness and Optical Measurements
- OpenAlex ID
- W4386717135
평가 내용
- 관련도
- 간접 관련
- 사업분야
- 엔지니어링 플라스틱 · (23) 컴파운드
- 부 분야
- (3) 자동차 인테리어 소재
- R&D 측면
- 분석·모델링
- 확신도
- 0.70
- 근거 용어
- surface defect detection, convolutional neural networks, attention mechanism, magnetic tile, production monitoring
- 판단 근거
- 이 논문은 자석 타일 표면의 결함을 탐지하는 딥러닝 알고리즘(ARA-Net)에 관한 연구입니다. 코오롱인더스트리의 직접적인 제품은 아니나, 제조 공정 중 제품(필름, 섬유, 컴파운드 등)의 표면 결함을 자동 검사하는 스마트 팩토리 및 품질 관리 시스템 구축에 응용 가능한 기술입니다.
- R&D 활용 포인트
- 자동차 인테리어 소재나 필름, 컴파운드 제품의 제조 공정 중 발생하는 미세한 표면 결함(crack, blowhole 등)을 실시간으로 탐지하는 비전 검사 시스템 고도화에 활용 가능합니다.
- 평가 입력
- 본문 34,390자
초록
본문 34,390자
본문 펼치기
섹션 본문 50문단 · 18,421자
(제목 없음)
1Defect detection on magnetic tile surfaces is of great significance for the production monitoring of permanent magnet motors.However, it is challenging to detect the surface defects from the magnetic tile due to these issues: 1) Defects appear randomly on the surface of the magnetic tile; 2) the defects are tiny and often overwhelmed by the background.To address such problems, an Adaptive Rotation Attention Network (ARA-Net) is proposed for defect detection on the magnetic tile surface, where the Adaptive Rotation Convolution (ARC) module is devised to capture the random defects on the magnetic tile surface by learning multi-view feature maps, and then the Rotation Region Attention (RAA) module is designed to locate the small defects from the complicated background by focusing more attention on the defect features.Experiments conducted on the MTSD3C6K dataset demonstrate the proposed ARA-Net outperforms the state-of-the-art methods, further providing assistance for permanent magnet motor monitoring.
Introduction
2In industrial production, magnetic tiles are widely used in the rotor or stator of permanent magnet motors [1][2][3].However, mechanical friction and human unconscious collisions will inevitably lead to surface defects of magnetic tiles [4], adversely affecting the quality of permanent magnet motors, and even causing disasters and accidents [5].Therefore, it is essential to detect the defects on the magnetic tile surface in the production process.Recently, defect detection on magnetic tile surfaces mainly depends on experienced workers [6,7], but it is time-consuming and has low-accuracy.To address this problem, many methods are proposed for defect detection on the magnetic tile surface, including traditional techniques and machine learning-based approaches [8,9].For the traditional methods, Xie et al. propose a surface defect inspection method on magnetic tiles based on shearlet [10].Yang et al. propose an effective method for defect detection in magnetic tiles using a stationary wavelet transform [11].These traditional methods tend to extract representative features from magnetic tiles to perform defect detection, but they are conducted under specific conditions and show low results.Compared to the traditional methods, machine learning-based approaches have achieved better performance on this task.For example, an unsupervised segmentation method is proposed for defect detection based on attention-enhanced flexible U-Net [12].In [13], researchers propose a fusion feature network for detecting surface defect on magnetic tiles using an attention mechanism.Liang et al. propose [14] a feature enhancement and loop-shaped fusion network for surface defects detection on magnetic tiles by enhancing shallow features and fusing loop-shaped features.
3Although these machine learning-based methods have shown good results in detecting surface defects on magnetic tiles, the practice application is still difficult because of these problems.First, most defects randomly appear on the magnetic tile surface (see Figure 1) [15,16], resulting in the difficulty for networks to capture these defects, further degrading the performance of deep learning models.Second, the defects on magnetic tile surfaces vary greatly, such as the long thin cracks and tiny deformation [17,18], and they are always overwhelmed by the background, leading to failure detection by networks, as shown in Figure 1(a)-(c).
4Motivated by these observations, an Adaptive Rotation Attention Network (ARA-Net) is proposed for defect detection on the magnetic tile surface, where the Adaptive Rotation Convolution (ARC) module is devised to capture the random defects on the magnetic tile surface by multi-view learning from rotated feature maps, and the Rotation Region Attention (RAA) module is designed to locate the small defects from the complicated background by focusing more attention on defect features.Our main contributions are summarized as follows.1) The Adaptive Rotation Convolution (ARC) module, which can learn the multi-view features on the feature map, is devised to capture the random defects on the magnetic tile surface.
52) The Rotation Region Attention (RAA) module, which can focus on the attention of defect features, is designed to locate the small defects from the complicated background.
63) Extensive experiments demonstrate the effectiveness of the proposed ARA-Net, and it outperforms the state-of-the-art approaches.
7The rest of this paper is organized as follows: the proposed ARA-Net is described in Section 2, while experiments are discussed in Section 3, and Section 4 shows the conclusions.
Adaptive rotation attention network for defect detection on magnetic tile surface
8In this section, an Adaptive Rotation Attention Network (ARA-Net) is proposed for defect detection on the magnetic tile surface, and it consists of two key parts: the Adaptive Rotation Convolution (ARC) module and Rotation Region Attention (RAA) module, as shown in Figure 2 , and 270 • angles are used as the basic shifted feature maps, and then the offset angles between them are adaptively calculated from the Linear layers, which can capture multi-view details from the feature maps.
Adaptive rotation convolution module for multi-view features learning
9In the production of permanent magnet motors, most of the defects randomly appear on the magnetic tile surface [18], leading to network capture failure and degrading the performance of the deep learning model (Figure 1).Correspondingly, multi-view learning and rotated convolution [19] can provide rich information about feature maps for network training, thus capturing the object from the complicated background [20,21].Inspired by this, an Adaptive Rotation Convolution (ARC) module is developed to capture the random defects on the magnetic tile surface by multi-view features learning, where the rotation convolution can adaptively obtain feature maps from various angles [19,35], as shown in the Adaptive Rotation Convolution Module of Figure 2, defined as
10where BR and AR denote the basic rotation and adaptive rotation, respectively, α is the learnable parameter, and Concat represents the concatenation, which are described as follows:
11• First, the head convolution is utilized to generate the head feature maps (H).
12• Second, the head feature maps (H) are rotated to produce basic multi-view feature maps (M) with four angles: 0 • , 90 • , 180 • and 270 • .
13• Third, the basic multi-view feature maps (M) are adaptively rotated to obtain four different-offset feature maps (O), and the offset angles are calculated by linear layer from the head feature maps (H).Specifically, as shown in Figure 3, (a), (c), (e) and (g) denote the rotated feature maps at 0 • , 90 • , 180 • and 270 • angles, (b), (d), (f) and (h) are rotated from (a), (c), (e), and (g) with any angle, calculated by the linear layer, respectively.
14• Fourth, these four different-offset feature maps (O) are added with the basic multi-view feature maps (M) to generate the rotated feature maps (R).
15• Finally, the summation results of the rotated feature maps (R) are concatenated to produce the output feature maps.
16After these processes, the proposed ARC module can capture multi-view feature maps to locate the random defects on the magnetic tile surface.
Rotation region attention module for defect features attention
17Some small defects, such as the tiny blowhole and the thin crack, always lead to difficulty in defect detection on the magnetic tile surface [22,23].Correspondingly, the attention mechanism has shown excellent performance in object detection [24,25].Motivated by this, the Rotation Region Attention (RAA) module, is designed to locate the small defects from the complicated background by focusing more attention on defect features, as shown in the Rotation Region Attention Module of Figure 2, defined as
18where AT is the self-attention mechanism, and AR denotes the different-offset feature maps (R) obtained from the ARC module, which is shown as follows.
19• First, the feature maps (X) are used as the query (Q), Key (K) and value (V), respectively.
20• Second, the Query (Q) is flattened and transposed at the space dimension, and then multiplied with the flattened Key (K) to generate the attention weight maps (A).
21• Third, the attention weight maps (A) are multiplied with the flattened value (V) to obtain the output feature maps (F).
22• Finally, the output feature maps (F) will spatially flatten and add with the different-offset feature maps (R) to produce efficient feature maps.
23To this end, the proposed RRA module can help the network focus attention on the small defects on the magnetic tile surface, thereby improving the performance of the proposed ARA-Net.
Datasets
24To validate the performance of ARA-Net for defects detection on the magnetic tile surface, the MTSD3C6K dataset [35] is employed to perform experiments, where there are 6450 samples, including 2023 crack images, 2381 normal samples and 2046 blowhole images.In the experiments, this dataset is divided into the training set, validation set, and test set, with the numbers of 3870, 1290 and 1290, respectively.
Evaluation metrics
25To verify the defect detection performance on the magnetic tile surface, Accuracy, Precision, Recall, F1-score, and Kappa score are used as evaluation metrics:
26and
27where CAccuracy denotes the class accuracy, computed by
28in which a i is the actual number of samples for each category, and b i is the number of samples predicted for each class.Moreover, to validate the complexity of models, the model size, i.e., parameters (Params), is applied to compute the space consumption of models, and the frames per second (FPS) are used to measure the actual inference speed of the model.Furthermore, the confusion matrix is provided to show clear insight into the model performance.
Implementation details
29The proposed ARA-Net is constructed by Pytorch 1.9.0 [26] on a server with one NVIDIA GeForce GTX 3090Ti GPU, the SGD optimizer [27] is utilized to obtain the high-performance model, the epoch, batch size, and the initial learning rate are set as 100, 32, and of 1e −3 , respectively, the StepLR is regarded as the learning scheduler, and CrossEntroy is considered as the loss function.
Performances on the MTSD3C6K Dataset
30To validate the performance of the proposed ARA-net, five classical state-of-the-art deep learningbased networks, i.e., DenseNet-121 [28], MobileNetV3 [29], EfficientNet-b0 [30], GhostNet [31], and VGG19 [32], and two vision transformers, including Visformer [33] and HRNet [34], are tested on the MTSD3C6K dataset, where the accuracy, precision, recall, F1-score, and kappa score are used as evaluation metrics.Furthermore, the model efficiency is also explored in this section, which can be seen as follows.
31First, these five classical networks are conducted on the MTSD3C6K dataset [35].Then, the visionbased transformer networks are tested, and the results are recorded in Table 1 and the confusion matrix in Figure 5.We can note that the proposed ARA-Net can achieve the best performance on defect detection, with the 97.05, 97.07, 97.12, 97.08%, and 0.858 of accuracy, precision, recall, F1-score, and kappa, respectively, showing that it can be used as a valuable tool for defect detection for magnetic tiles.
32In addition, two metrics, i.e., Params and FPS, are utilized to evaluate the model efficiency, and the results are listed in Table 1.It can be seen that the proposed ARC-Net can achieve fast calculation speed, achieving an FPS of 37.3 with small capacity parameters (Params) of 0.133 M. Furthermore, compared with the second-best VGG19 method, although the proposed ARA-Net is slower than the VGG19, it can obtain significant improvements on Params, demonstrating the ARA-Net can be used as an effective tool for defect detection on the magnetic tile surface.
Ablation studies
33In this section, we perform a series of ablation experiments to validate the effect of the Adaptive Rotation Convolution (ARC) module, the Rotation Region Attention (RAA) module, learning rate, training epoch, and network optimizer.
Impact of adaptive rotation convolution module
34In section 2.1, the Adaptive Rotation Convolution (ARC) module is devised to capture the random defects on the magnetic tile surface.To verify the effectiveness of the proposed ARC module, several ablation studies are performed on the MTSD3C6K dataset, and the results are listed in Table 2. No.1 is the performance of the baseline without ARC and RRA modules, and it can achieve the performance of 92.47% and 0.787 on accuracy and kappa score, respectively.After adding the ARC module to the baseline, it can obtain better results on defect detection, with 94.51% accuracy and 0.812 kappa score, demonstrating it is beneficial for defect detection.Moreover, from the visualized CAM feature maps in Figure 4, we can observe that these results (A and B) show that the baseline+ARC can pay more attention to the random defects while some defects are ignored by the baseline.These excellent results show that the proposed ARC module can assist the network in capturing more random defects on the magnetic tile surface by multi-view learning.
Impact of rotation region attention module
35Similarly, the proposed Rotation Region Attention (RRA) module, described in Section 2.2, is employed to focus on the defects, especially the tiny defects on the magnetic tile surface.To validate the impact of the proposed RRA module, many experiments are carried out on the magnetic tile surface, and the results are given in Table 2.It can be seen that the performance of the network is increased after adding the RRA module, achieving improvements of 2.28 and 3.87% on accuracy and kappa, respectively, compared to the baseline + ARC, indicating that it is effective for defect detection.In addition, the visualized CAM feature maps are shown in Figure 4.It can be found from C of Figure 4 that adding the ARC module can help the network to expand the perception field of vision to locate random defects on the input images, but shows low sensitivity on the small defects.Furthermore, the RRA module can locate small defects from the magnetic tile surface.Specifically, as can be seen from (a),(c),(f) and (g) in Figure 4, adding the RAA module can further help the network focus on the attention of small defects on the magnetic tile, compared D with C.This demonstrates that the RAA module can weaken the disturbance of the background when detecting defects on the magnetic tile surface.
36Moreover, we also have performed some experiments to validate the effectiveness of the proposed modules by integrating separately single modules into the network.The results are listed in the second row and third one of Table 2.These results also demonstrate the proposed modules can improve the performance of the network for defect detection on the magnetic tile surface.
Impact of learning rate
37To explore the effect of the learning rate, four different learning rates, i.e., 0.01, 0.001, 0.0005, and 0.0001 are used in the experiments on the magnetic tile defect dataset, and the results are given in Table 3.It can be seen that the proposed ARA-Net can achieve the best performance when the learning rate is set to 0.001.Also, we can observe from Figure 6 that the training and validation accuracies are the best while the losses are the lower when the learning rate is equal to 0.001.Therefore, the learning rate is set to 0.001 in the proposed ARA-Net during experiments.
Impact of epoch
38To verify the effect of the epoch, four different epochs, i.e., 30, 50, 80, and 100 are applied to the experiments while other parameters are the same, and the results are shown in Table 3.It can be noted that the proposed ARA-Net shows the best performance when the epoch is set to 100, achieving an accuracy of 97.05%, a precision of 97.07%, a recall of 97.12%, and the F1-score of 97.08% on the magnetic tile defect dataset.Besides, it can be found from Figures 5 and 7 that both accuracy and loss tend to be smooth with only small fluctuations after about 40 epochs, i.e., the overfitting.Similarly, the difference is small between these epochs, i.e., 30, 50, 80, and 100, but the accuracy is the highest when the epoch is set to 100.Therefore, the epoch is set to 100 in the experiments.
Impact of optimizer
39To validate the effect of the optimizer, four different optimizers, i.e., Adagrad, RMSprop, Adam, and SGD are employed to optimize the proposed ARA-Net for magnetic tile defect detection, and the results are listed in Table 3.We can note from Table 3 that the proposed ARA-Net with the SGD optimizer performs better than others.Similarly, Figure 8 shows that the accuracy and loss curves of the SGD optimizer are better and smoother than those of others.For this, the SGD optimizer is used to obtain the high-performance model in the experiments.
Figure 1 .
40Figure 1.Examples of the defect on the magnetic tile surface, where they appears randomly and are tiny, and often overwhelmed by the background.
Figure 2 .
41Figure 2. The framework of the Adaptive Rotation Attention Network (ARA-Net), where the Adaptive Rotation Convolution (ARC) module is devised to capture the random defects on the magnetic tile surface by multi-view learning on the feature map, and then the Rotation Region Attention (RAA) module is developed to locate the small defects from the background by focusing more attention on defect features.Finally, the feature maps are fed into the Feed Forward Networks to perform defect classification on the magnetic tile surface.
Figure 3 .
42Figure 3.The diagram of the adaptive rotation for feature map convolution, where the 0 • , 90 • , 180 • , and 270 • angles are used as the basic shifted feature maps, and then the offset angles between them are adaptively calculated from the Linear layers, which can capture multi-view details from the feature maps.
Figure 4 .
43Figure 4. Examples of class activation mapping (CAM) for defect detection on the magnetic tile.The row denotes the results of the ablation studies of the proposed modules: A. raw images, B. baseline, C. baseline + ARC, D. baseline + ARC + RAA.Besides, (b),(d)-(h) represent the random defects while (a),(c),(f) and (g) denote the tiny defects hidden by background.
Figure 5 .
44Figure 5.The evolutions of training and validation accuracies with epoch and the confusion matrix on the magnetic tile defect.
Figure 6 .
45Figure 6.The accuracy and loss of different learning rates during training and validation on the magnetic tile defect.
Figure 7 .
46Figure 7.The accuracy and loss of different epochs during training and validation on the magnetic tile defect.
Figure 8 .
47Figure 8.The accuracy and loss of different optimizers during training and validation on the magnetic tile defect.
Table 1 .
48The quantitative comparisons on the MTSD3C6K dataset.
Table 2 .
49Ablation studies of proposed modules for defect detection on the magnetic tile surface.
Table 3 .
50The hyper-parameter tuning results tested on the MTSD3C6K dataset.
참고문헌 31건
- A novel surface defect inspection algorithm for magnetic tile Applied Surface Science · Elsevier BV · 2016 10.1016/j.apsusc.2016.03.013
- Defect detection in magnetic tile images based on stationary wavelet transform NDT & E International · Elsevier BV · 2016 10.1016/j.ndteint.2016.04.006
- Optimization Methods for Large-Scale Machine Learning SIAM Review · Society for Industrial and Applied Mathematics · 2018 10.1137/16m1080173
- Densely Connected Convolutional Networks 2017 10.1109/cvpr.2017.243
- Image saliency detection via multi-scale iterative CNN The Visual Computer · Springer Science+Business Media · 2019 10.1007/s00371-019-01734-2
- Searching for MobileNetV3 2021 IEEE/CVF International Conference on Computer Vision (ICCV) · 2019 10.1109/iccv.2019.00140
- FFCNN: A Deep Neural Network for Surface Defect Detection of Magnetic Tile IEEE Transactions on Industrial Electronics · Institute of Electrical and Electronics Engineers · 2020 10.1109/tie.2020.2982115
- Deep High-Resolution Representation Learning for Visual Recognition IEEE Transactions on Pattern Analysis and Machine Intelligence · IEEE Computer Society · 2020 10.1109/tpami.2020.2983686
- GhostNet: More Features From Cheap Operations 2020 10.1109/cvpr42600.2020.00165
- A feature extraction and classification algorithm based on improved sparse auto-encoder for round steel surface defects Mathematical Biosciences & Engineering · Arizona State University · 2020 10.3934/mbe.2020290
- Defect reconstruction from magnetic flux leakage measurements employing modified cuckoo search algorithm Mathematical Biosciences & Engineering · Arizona State University · 2021 10.3934/mbe.2021099
- An efficient dictionary-based multi-view learning method Information Sciences · Elsevier BV · 2021 10.1016/j.ins.2021.06.069
- Diffeomorphic Particle Image Velocimetry IEEE Transactions on Instrumentation and Measurement · Institute of Electrical and Electronics Engineers · 2021 10.1109/tim.2021.3132999
- Multi-view learning with distinguishable feature fusion for rumor detection Knowledge-Based Systems · Elsevier BV · 2022 10.1016/j.knosys.2021.108085
- Unsupervised Anomaly Detection for Surface Defects With Dual-Siamese Network IEEE Transactions on Industrial Informatics · Institute of Electrical and Electronics Engineers · 2022 10.1109/tii.2022.3142326
- EMRA-Net: A Pixel-Wise Network Fusing Local and Global Features for Tiny and Low-Contrast Surface Defect Detection IEEE Transactions on Instrumentation and Measurement · Institute of Electrical and Electronics Engineers · 2022 10.1109/tim.2022.3151926
- Visformer: The Vision-friendly Transformer 2021 IEEE/CVF International Conference on Computer Vision (ICCV) · 2021 10.1109/iccv48922.2021.00063
- Unsupervised Defect Segmentation of Magnetic Tile Based on Attention Enhanced Flexible U-Net IEEE Transactions on Instrumentation and Measurement · Institute of Electrical and Electronics Engineers · 2022 10.1109/tim.2022.3170989
- A pixel-wise framework based on convolutional neural network for surface defect detection Mathematical Biosciences & Engineering · Arizona State University · 2022 10.3934/mbe.2022408
- Magnetic Tile Surface Defect Detection Methodology Based on Self-Attention and Self-Supervised Learning Computational Intelligence and Neuroscience · Hindawi Publishing Corporation · 2022 10.1155/2022/3003810
- Internal defects inspection of arc magnets using multi-head attention-based CNN Measurement · Elsevier BV · 2022 10.1016/j.measurement.2022.111808
- Logit Inducing With Abnormality Capturing for Semi-Supervised Image Anomaly Detection IEEE Transactions on Instrumentation and Measurement · Institute of Electrical and Electronics Engineers · 2022 10.1109/tim.2022.3205674
- Development of a cross-scale weighted feature fusion network for hot-rolled steel surface defect detection Engineering Applications of Artificial Intelligence · Elsevier BV · 2022 10.1016/j.engappai.2022.105628
- Neural Networks-Based Wi-Fi/PDR Indoor Navigation Fusion Methods IEEE Transactions on Instrumentation and Measurement · Institute of Electrical and Electronics Engineers · 2022 10.1109/tim.2022.3223075
- An Adaptive Image Segmentation Network for Surface Defect Detection IEEE Transactions on Neural Networks and Learning Systems · Institute of Electrical and Electronics Engineers · 2022 10.1109/tnnls.2022.3230426
- Application and Research of IoT Architecture for End-Net-Cloud Edge Computing Electronics · Multidisciplinary Digital Publishing Institute · 2022 10.3390/electronics12010001
- A Field High Resolution Measurement Method for Irregular Surface Electrostatic Potential IEEE Transactions on Instrumentation and Measurement · Institute of Electrical and Electronics Engineers · 2023 10.1109/tim.2023.3234080
- Developing the Critical Thinking in University Students while Teaching them Methodological Reading Comprehension Bulletin of Kemerovo State University Series Humanities and Social Sciences · Kemerovo State University · 2023 10.21603/2542-1840-2023-7-1-1-7
- SurfMyoAiR: A Surface Electromyography-Based Framework for Airwriting Recognition IEEE Transactions on Instrumentation and Measurement · Institute of Electrical and Electronics Engineers · 2023 10.1109/tim.2023.3248084
- A domain adaptation YOLOv5 model for industrial defect inspection Measurement · Elsevier BV · 2023 10.1016/j.measurement.2023.112725
- ASA-Net: Adaptive Sparse Attention Network for Robust Electric Load Forecasting IEEE Internet of Things Journal · Institute of Electrical and Electronics Engineers · 2023 10.1109/jiot.2023.3300695