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

Adaptive rotation attention network for accurate defect detection on magnetic tile surface

간접 관련 엔지니어링 플라스틱 · (23) 컴파운드 (3) 자동차 인테리어 소재

기본 정보

저자
  1. Fang Luo — School of Mechatronics and Automotive Engineering, Qingyuan Polytechnic, Qingyuan 511500, China
  2. Yuan Cui — Department of Intelligent Control, Guangzhou Light Industry Vocational School, Guangzhou 510300, China
  3. Xu Wang — School of Automation, Guangdong University of Technology, Guangzhou 510006, China
  4. Zhiliang Zhang — School of Mechatronics and Automotive Engineering, Qingyuan Polytechnic, Qingyuan 511500, China
  5. Yong Liao — Department of Intelligent Control, Guangzhou Light Industry Vocational School, Guangzhou 510300, China; Microelectronics and Optoelectronics Technology Key Laboratory of Hunan Higher Education, School of Physics and Electronic Electrical Engineering, Xiangnan University, Chenzhou 423000, China; School of Automation, Guangdong University of Technology, Guangzhou 510006, China; School of Mechatronics and Automotive Engineering, Qingyuan Polytechnic, Qingyuan 511500, China
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자

초록

Defect 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.

본문 34,390자

본문 펼치기
[http://www.aimspress.com/journal/mbe](http://http://www.aimspress.com/journal/mbe) _Research article_ MBE, 20(9): 17554–17568. [DOI: 10.3934/mbe.2023779](http://dx.doi.org/10.3934/mbe.2023779) Received: 03 July 2023 Revised: 25 August 2023 Accepted: 30 August 2023 Published: 13 September 2023 ## Adaptive rotation attention network for accurate defect detection on magnetic tile surface Fang Luo <sup>1</sup> , Yuan Cui <sup>2</sup> , Xu Wang <sup>3</sup> , Zhiliang Zhang <sup>1</sup> and Yong Liao <sup>4,*</sup> 1 School of Mechatronics and Automotive Engineering, Qingyuan Polytechnic, Qingyuan 511500, China 2 Department of Intelligent Control, Guangzhou Light Industry Vocational School, Guangzhou 510300, China 3 School of Automation, Guangdong University of Technology, Guangzhou 510006, China 4 Microelectronics and Optoelectronics Technology Key Laboratory of Hunan Higher Education, School of Physics and Electronic Electrical Engineering, Xiangnan University, Chenzhou 423000, China - Correspondence: Email: liaoyongxnxy@gmail.com. Abstract: Defect 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. Keywords: surface defect detection; rotation convolution; attention mechanism; convolutional neural networks 1. Introduction In industrial production, magnetic tiles are widely used in the rotor or stator of permanent magnet motors [1–3]. However, mechanical friction and human unconscious collisions will inevitably lead to 17555 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. (a) (b) (c) (d) Figure 1. Examples of the defect on the magnetic tile surface, where they appears randomly and are tiny, and often overwhelmed by the background. 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. Although 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). Motivated 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 _Mathematical Biosciences and Engineering_ Volume 20, Issue 9, 17554–17568. 17556 main contributions are summarized as follows. Adaptive Rotation Convolution Module Rotation Region Attention Module C Flatten & Transpose Flatten Flatten Feature Maps Head Convolution Magnetic Tile Adaptive Angles R F R Feed Forward Networks A X Q K V 0°/ 90 ° 180°/ 270 ° <u>M</u> <u>O</u> + + + + H C Feature Maps <mark>Blowhole</mark> <mark>Crack</mark> <mark>Free</mark> Adaptive Rotation Attention Network Figure 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. 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. 2) 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. 3) Extensive experiments demonstrate the effectiveness of the proposed ARA-Net, and it outperforms the state-of-the-art approaches. The 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. 2. Adaptive rotation attention network for defect detection on magnetic tile surface In 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, which are shown as follows. _Mathematical Biosciences and Engineering_ Volume 20, Issue 9, 17554–17568. 17557 # h # a b c Adaptive Rotation # g f e # d Figure 3. The diagram of the adaptive rotation for feature map convolution, where the 0 <sup>◦</sup>, 90 <sup>◦</sup>, 180 <sup>◦</sup>, and 270 <sup>◦</sup> 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. _2.1._ _Adaptive rotation convolution module for multi-view features learning_ In 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 ARC(X) =Concat[BR( _F_ ) + α · AR( _F_ )], (2.1) where 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: - First, the head convolution is utilized to generate the head feature maps (H). - Second, the head feature maps (H) are rotated to produce basic multi-view feature maps (M) with four angles: 0 <sup>◦</sup>, 90 <sup>◦</sup>, 180 <sup>◦</sup> and 270 <sup>◦</sup> . _Mathematical Biosciences and Engineering_ Volume 20, Issue 9, 17554–17568. 17558 - 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 <sup>◦</sup>, 90 <sup>◦</sup>, 180 <sup>◦</sup> and 270 <sup>◦</sup> angles, (b), (d), (f) and (h) are rotated from (a), (c), (e), and (g) with any angle, calculated by the linear layer, respectively. - 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). - Finally, the summation results of the rotated feature maps (R) are concatenated to produce the output feature maps. After these processes, the proposed ARC module can capture multi-view feature maps to locate the random defects on the magnetic tile surface. _2.2._ _Rotation region attention module for defect features attention_ Some 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 RRA(X) =AT( _X_ ) ⊙ AR( _X_ ), (2.2) where 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. - First, the feature maps (X) are used as the query (Q), Key (K) and value (V), respectively. - 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). - Third, the attention weight maps (A) are multiplied with the flattened value (V) to obtain the output feature maps (F). - Finally, the output feature maps (F) will spatially flatten and add with the different-offset feature maps (R) to produce efficient feature maps. To 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. 3. Experiments, and results analysis _3.1._ _Datasets_ To 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 _Mathematical Biosciences and Engineering_ Volume 20, Issue 9, 17554–17568. 17559 is divided into the training set, validation set, and test set, with the numbers of 3870, 1290 and 1290, respectively. _3.2._ _Evaluation metrics_ To verify the defect detection performance on the magnetic tile surface, Accuracy, Precision, Recall, F1-score, and Kappa score are used as evaluation metrics: _<u>TP</u>_ <u>+</u> _<u>TN</u>_ Accuracy = _TP_ + _TN_ + _FP_ + _FN_ <sup>,</sup> (3.1) _<u>TP</u>_ Precision = _TP_ + _FP_ <sup>,</sup> (3.2) _<u>TP</u>_ Recall = _TP_ + _FN_ <sup>,</sup> (3.3) F1-score = 2 × PPV <sup><u>PPV</u></sup> + <sup>×</sup> SEN <sup><u>SEN</u></sup> <sup>,</sup> (3.4) and Kappa = <sup><u>Accuracy −</u></sup> <sup><u>CAccuracy</u></sup>, (3.5) 1 − CAccuracy where CAccuracy denotes the class accuracy, computed by - _N_ CAccuracy = _<u>i</u>_ =1 <sup>_aibi_</sup> , (3.6) _N_ <sup>2</sup> in which _ai_ is the actual number of samples for each category, and _bi_ 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. Table 1. The quantitative comparisons on the MTSD3C6K dataset. Model Accuracy (%) Precision (%) Recall (%) F1-score (%) Kappa Params (M) FPS (frames/s) DenseNet-121 88.94 98.32 90.12 94.03 0.663 6.867 35.4 MobileNetV3 89.82 96.73 92.72 94.68 0.661 0.561 115.4 EfficientNet-b0 92.03 95.87 96.86 96.36 0.701 3.969 74.1 Visformer 92.92 97.27 94.22 95.72 0.758 39.186 100.2 HRNet 93.81 97.83 94.78 96.28 0.788 11.143 59.1 GhostNet 93.81 98.89 94.81 96.81 0.793 3.899 56.4 VGG19 95.13 98.92 95.33 97.09 0.836 128.783 196.7 ARANet 97.05 97.07 97.12 97.08 0.858 0.133 37.3 _Mathematical Biosciences and Engineering_ Volume 20, Issue 9, 17554–17568. 17560 Table 2. Ablation studies of proposed modules for defect detection on the magnetic tile surface. <u>No.</u> <u>Baseline</u> <u>ARC</u> <u>RAA</u> <u>Accuracy (%)</u> <u>Kappa</u> 1 ✓ 92.47 0.787 2 ✓ ✓ 94.51 0.812 3 ✓ ✓ 94.77 0.826 <u>4</u> ✓ ✓ ✓ <u>97.05</u> <u>0.858</u> Table 3. The hyper-parameter tuning results tested on the MTSD3C6K dataset. Name Value Accuracy (%) Precision (%) Recall (%) F1-score (%) Kappa 0.01 95.22 96.13 94.89 95.51 0.813 Lr Epoch Optimizer 0.001 97.05 97.07 97.12 97.08 0.858 0.0005 92.38 93.88 92.41 93.14 0.746 0.0001 83.97 84.56 82.91 83.73 0.633 30 94.92 95.47 95.69 95.57 0.813 50 95.81 96.93 96.14 96.53 0.828 80 95.93 96.14 96.22 96.18 0.837 100 97.05 97.07 97.12 97.08 0.858 Adagrad 91.15 92.08 93.11 92.59 0.686 RMSprop 92.03 93.34 94.77 94.05 0.737 Adam 93.45 94.61 95.13 94.87 0.769 SGD 97.05 97.07 97.12 97.08 0.858 _3.3._ _Implementation details_ The 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 1 _e_ <sup>−3</sup>, respectively, the StepLR is regarded as the learning scheduler, and CrossEntroy is considered as the loss function. _3.4._ _Performances on the MTSD3C6K Dataset_ To 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. First, 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 _Mathematical Biosciences and Engineering_ Volume 20, Issue 9, 17554–17568. 17561 kappa, respectively, showing that it can be used as a valuable tool for defect detection for magnetic tiles. In 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. (a) (b) (c) (d) (e) (f) (g) (h) Figure 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. _3.5._ _Ablation studies_ In 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. 3.5.1. Impact of adaptive rotation convolution module In 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 _Mathematical Biosciences and Engineering_ Volume 20, Issue 9, 17554–17568. 17562 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. 3.5.2. Impact of rotation region attention module Similarly, 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. Moreover, 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. 3.5.3. Impact of learning rate To 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. 3.5.4. Impact of epoch To 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 _Mathematical Biosciences and Engineering_ Volume 20, Issue 9, 17554–17568. 17563 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. Figure 5. The evolutions of training and validation accuracies with epoch and the confusion matrix on the magnetic tile defect. Figure 6. The accuracy and loss of different learning rates during training and validation on the magnetic tile defect. _Mathematical Biosciences and Engineering_ Volume 20, Issue 9, 17554–17568. 17564 Figure 7. The accuracy and loss of different epochs during training and validation on the magnetic tile defect. Figure 8. The accuracy and loss of different optimizers during training and validation on the magnetic tile defect. 3.5.5. Impact of optimizer To 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. _Mathematical Biosciences and Engineering_ Volume 20, Issue 9, 17554–17568. 17565 4. Conclusions In this article, 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, and the Rotation Region Attention (RAA) module is designed to locate the small defects from the complicated backgrounds. Experiments conducted on the benchmark dataset demonstrate the effectiveness of the proposed ARA-Net, further assisting in permanent magnet motor production. However, the proposed ARA-Net is conducted on a limited magnetic tile defect dataset. In future works, it is essential to establish a larger magnetic tile dataset to promote its practical application, and it will be further validated in the actual industrial environment. Use of AI tools declaration The authors declare they have not used Artificial Intelligence (AI) tools in the creation of this article. Conflict of interest No potential conflict of interest. Acknowledgements This work was supported in part by the Natural Science Foundation of Hunan Province, China under Grant 2023JJ50066; in part by Guangdong Provincial Department of Education features innovative projects 2022KTSCX356; in part by Guangdong Provincial Department of Education Intelligent Robot Industry-Education Integration Innovation Platform for Higher Vocational Colleges 2020CJPT034; in part by Chenzhou Science and Technology Development Plan Project ZDYF2020161; in part by the Scientific Research Fund of Hunan Provincial Education Department 22B0812; in part by the 2021 Hunan Colleges and Universities Innovation and Entrepreneurship School-Enterprise Cooperation Base 74th; in part by the Innovation and Entrepreneurship Education Center in Ordinary Universities in 2022 70th; in part by the Chenzhou Low Carbon Intelligent Manufacturing Technology Research; in part by the Applied Characteristic Disciplines of Electronic Science and Technology of Xiangnan University XNXY20221210. References 1. D. Zhang, X. Huang, J. Fei, Defect reconstruction from magnetic flux leakage measurements employing modified cuckoo search algorithm, _Math._ _Biosci._ _Eng._, 18 (2021), 1898–1925. [https://doi.org/10.3934/mbe.2021099](http://dx.doi.org/https://doi.org/10.3934/mbe.2021099) 2. X. Yan, X. Huang, G. Liang, A feature extraction and classification algorithm based on improved sparse auto-encoder for round steel surface defects, _Math._ _Biosci._ _Eng._, 17 (2020), 5369–5394. [https://doi.org/10.3934/mbe.2020290](http://dx.doi.org/https://doi.org/10.3934/mbe.2020290) 3. G. Dong, A pixel-wise framework based on convolutional neural network for surface defect detection, _Math. Biosci. Eng._, 19 [(2022), 8786–8803. https://doi.org/10.3934/mbe.2022408](http://dx.doi.org/https://doi.org/10.3934/mbe.2022408) _Mathematical Biosciences and Engineering_ Volume 20, Issue 9, 17554–17568. 17566 4. Q. Wan, L. Gao, X. Li, Logit inducing with abnormality capturing for semisupervised image anomaly detection, _IEEE_ _Trans._ _Instrum._ _Meas._, 71 (2022), 1–12. [https://doi.org/10.1109/TIM.2022.3205674](http://dx.doi.org/https://doi.org/10.1109/TIM.2022.3205674) 5. D. Wang, Y. Pan, Numerical sensing and simulation analysis of three-dimensional flow field and temperature field of submersible motor, _Jour._ _Sen._, 2023 (2023), 1–7. [https://doi.org/10.21603/2542-1840-2023-7-1-1-7](http://dx.doi.org/https://doi.org/10.21603/2542-1840-2023-7-1-1-7) 6. Q. Li, Q. Huang, T. Yang, Y. Zhou, K. Yang, H. Song, Internal defects inspection of arc magnets using multi-head attention-based CNN, _Measurement_, 202 (2022), 1–13. 7. Y. Zhang, W. Wang, Z. Li, S. Shu, X. Lang, T. Zhang, et al., Development of a cross-scale weighted feature fusion network for hot-rolled steel surface defect detection, _Eng. Appl. Art. Int._, 117 (2023), 1–11. 8. X, Ling, Y. Wu, R, Ali, H. Zhu, Magnetic tile surface defect detection methodology based on self-attention and self-supervised learning, _Comput._ _Int._ _Neural_, 2022 (2022), 1–12. [https://doi.org/10.1155/2022/3003810](http://dx.doi.org/https://doi.org/10.1155/2022/3003810) 9. T, Liu, Z. He, Z, Lin, G. Cao, W. Su, S. Xie, An adaptive image segmentation network for surface defect detection, _IEEE Trans. Neural Networks Learn. Syst._, 2022 (2022), 1–14. 10. L. Xie, L. Lin, M. Yin, L. Meng, G. Yin, A novel surface defect inspection algorithm for magnetic tile, _Appl. Surf. Sci._, 375 [(2016), 118–126. https://doi.org/10.1016/j.apsusc.2016.03.013](http://dx.doi.org/https://doi.org/10.1016/j.apsusc.2016.03.013) 11. C. Yang, P. Liu, G. Yin, H. Jiang, X. Li, Defect detection in magnetic tile images based on stationary wavelet transform, _NDT_ _E_ _Int._, 83 (2016), 78–87. [https://doi.org/10.1016/j.ndteint.2016.04.006](http://dx.doi.org/https://doi.org/10.1016/j.ndteint.2016.04.006) 12. X. Cao, B. Chen, W. He, Unsupervised defect segmentation of magnetic tile based on attention enhanced flexible u-net, _IEEE_ _Trans._ _Instrum._ _Meas._, 71 (2022), 1–10. [https://doi.org/10.1109/TIM.2022.3170989](http://dx.doi.org/https://doi.org/10.1109/TIM.2022.3170989) 13. L. Xie, X. Xiang, H. Xu, L. Wang, L. Lin, G. Yin, FFCNN: A deep neural network for surface defect detection of magnetic tile, _IEEE_ _Trans._ _Ind._ _Electron._, 68 (2020), 3506–3516. [https://doi.org/10.1109/TIE.2020.2982115](http://dx.doi.org/https://doi.org/10.1109/TIE.2020.2982115) 14. W. Liang, Y. Sun ELCNN: A deep neural network for small object defect detection of magnetic tile, _IEEE Trans. Instrum. Meas._, 71 [(2022), 1–10. https://doi.org/10.1109/TIM.2021.3132999](http://dx.doi.org/https://doi.org/10.1109/TIM.2021.3132999) 15. Y. Huang, C. Qiu, K. Yuan, Surface defect saliency of magnetic tile, _Vision Comput._, 36 (2020), [85–96. https://doi.org/10.1007/s00371-019-01734-2](http://dx.doi.org/https://doi.org/10.1007/s00371-019-01734-2) 16. Z. Zhong, H. Wang, D. Xiang, Small defect detection based on local structure similarity for magnetic tile surface, _Electronics_, 12 [(2022), 1–17. https://doi.org/10.3390/electronics12010001](http://dx.doi.org/https://doi.org/10.3390/electronics12010001) 17. C. Li, H. Yan, X. Qian, S. Zhu, P. Zhu, C. Liao, A domain adaptation YOLOv5 model for industrial defect inspection, _Measurement_, 213 (2023), 1–9. 18. Q. Lin, J. Zhou, Q. Ma, Y. Ma, L. Kang, J. Wang, EMRA-Net: A pixel-wise network fusing local and global features for tiny and low-contrast surface defect detection, _IEEE Trans. Instrum. Meas._, 71 (2022), 1–14. _Mathematical Biosciences and Engineering_ Volume 20, Issue 9, 17554–17568. 17567 19. Y. Pu, Y. Wang, Z. Xia, Y. Han, Y. Wang, W. Gan, Adaptive rotated convolution for rotated object detection, preprint, arXiv:2303.07820. 20. X. Chen, F. Zhou, G. Trajcevski, M. Bonsangue, Multi-view learning with distinguishable feature fusion for rumor detection, _Knowl. Based. Syst._, 240 (2022), 1–17. 21. B. Liu, X. Chen, Y. Xiao, W. Li, L. Liu, C. Liu, An efficient dictionary-based multi-view learning method, _Inf. Sci._, 576 [(2021), 157–172. https://doi.org/10.1016/j.ins.2021.06.069](http://dx.doi.org/https://doi.org/10.1016/j.ins.2021.06.069) 22. X. Tao, J. Zhang, W. Ma, Z. Hou, Z. Lu, C. Adak, Unsupervised anomaly detection for surface defects with dual-siamese network, _IEEE._ _Trans._ _Ind._ _Inf._, 18 (2022), 7707–7717. [https://doi.org/10.1109/TII.2022.3142326](http://dx.doi.org/https://doi.org/10.1109/TII.2022.3142326) 23. E. Gu, G. Xiao, F. Lian, T. Mu, Jie. Hong, J. Liu, Segmentation and evaluation of crack image from aircraft fuel tank via atrous spatial pyramid fusion and hybrid attention network, _IEEE Trans._ _Instrum. Meas._, 72 [(2023), 1–14. https://doi.org/10.1109/TIM.2022.3223075](http://dx.doi.org/https://doi.org/10.1109/TIM.2022.3223075) 24. Y. Deng, X. Wang, Y. Liao, ASA-Net: Adaptive sparse attention network for robust electric load forecasting, _IEEE Int. Things J._, (2023), 1–12. 25. X. Wang, Z. He, C. Liu, B. Zhang, Z. Lin, J. Guo, S. Xie, CGA-UNet: Category-guide attention U-Net for dental abnormality detection and segmentation from dental-maxillofacial images, _IEEE_ _Trans. Instrum. Meas._, 72 [(2023), 1–11. https://doi.org/10.1109/TIM.2023.3234080](http://dx.doi.org/https://doi.org/10.1109/TIM.2023.3234080) 26. A. Paszke, S. Gross, F. Massa, A. Lerer, J. Bradbury, G. Chanan, et al., Pytorch: An imperative style, high-performance deep learning library, in _Proceedings of the Advances in Neural_ _Information Processing Systems (NIPS)_, (2019), 8026–8037. 27. L. Bottou, F. E. Curtis, J. Nocedal, Optimization methods for large-scale machine learning, Siam Rev., 60 [(2018), 223–311. https://doi.org/10.1137/16M1080173](http://dx.doi.org/https://doi.org/10.1137/16M1080173) 28. G. Huang, Z. Liu, L. Van Der Maaten, K. Q. Weinberger, Densely connected convolutional networks, in _Proceedings_ _of_ _the_ _IEEE_ _Conference_ _on_ _Computer_ _Vision_ _and_ _Pattern_ _Recognition_ _(CVPR)_, 2017, 4700–4708. 29. A. Howard, S. Sandler, G. Chu, L. Chen, Searching for mobilenetv3, in _Proceedings of the IEEE_ _Conference on Computer Vision and Pattern Recognition (CVPR)_, 2019, 1314–1324. 30. M. Tan, Q. Le, Efficientnet: Rethinking model scaling for convolutional neural networks, in _Proceedings of the International Conference on Machine Learning (ICLR)_, 2019, 6105–6114. 31. K. Han, Y. Wang, Q. Tian, J. Guo, Ghostnet: More features from cheap operations, in _Proceedings_ _of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR)_, 2020, 1580–1589. 32. K. Simonyan, A. Zisserman, Very deep convolutional networks for large-scale image recognition, preprint, tarXiv:1409.1556. 33. Z. Chen, L. Xie, J. Niu, X. Liu, Visformer: The vision-friendly transformer, in _Proceedings of the_ _IEEE Conference on Computer Vision and Pattern Recognition (CVPR)_, 2021, 589–598. _Mathematical Biosciences and Engineering_ Volume 20, Issue 9, 17554–17568. 17568 34. J. Wang, K. Sun, T. Cheng, B. Jiang, Deep high-resolution representation learning for visual recognition, _IEEE_ _Trans._ _Pattern_ _Anal._ _Mach._ _Intell._, 43 (2020), 3349–3364. [https://doi.org/10.1109/TPAMI.2020.2983686](http://dx.doi.org/https://doi.org/10.1109/TPAMI.2020.2983686) 35. Y. Zhu, L. Xie, M. Yin, G. Yin, Convolution with rotation invariance for online detection of tiny defects on magnetic tile surface, _IEEE_ _Trans._ _Instrum._ _Meas._, 72 (2023), 1–12. [https://doi.org/10.1109/TIM.2023.3248084](http://dx.doi.org/https://doi.org/10.1109/TIM.2023.3248084) © 2023 the Author(s), licensee AIMS Press. This is an open access article distributed under the terms of the Creative Commons Attribution License [(http://creativecommons.org/licenses/by/4.0)](http://creativecommons.org/licenses/by/4.0) _Mathematical Biosciences and Engineering_ Volume 20, Issue 9, 17554–17568.

섹션 본문 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건

  1. A novel surface defect inspection algorithm for magnetic tile Applied Surface Science · Elsevier BV · 2016 10.1016/j.apsusc.2016.03.013
  2. Defect detection in magnetic tile images based on stationary wavelet transform NDT & E International · Elsevier BV · 2016 10.1016/j.ndteint.2016.04.006
  3. Optimization Methods for Large-Scale Machine Learning SIAM Review · Society for Industrial and Applied Mathematics · 2018 10.1137/16m1080173
  4. Densely Connected Convolutional Networks 2017 10.1109/cvpr.2017.243
  5. Image saliency detection via multi-scale iterative CNN The Visual Computer · Springer Science+Business Media · 2019 10.1007/s00371-019-01734-2
  6. Searching for MobileNetV3 2021 IEEE/CVF International Conference on Computer Vision (ICCV) · 2019 10.1109/iccv.2019.00140
  7. 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
  8. 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
  9. GhostNet: More Features From Cheap Operations 2020 10.1109/cvpr42600.2020.00165
  10. 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
  11. Defect reconstruction from magnetic flux leakage measurements employing modified cuckoo search algorithm Mathematical Biosciences & Engineering · Arizona State University · 2021 10.3934/mbe.2021099
  12. An efficient dictionary-based multi-view learning method Information Sciences · Elsevier BV · 2021 10.1016/j.ins.2021.06.069
  13. Diffeomorphic Particle Image Velocimetry IEEE Transactions on Instrumentation and Measurement · Institute of Electrical and Electronics Engineers · 2021 10.1109/tim.2021.3132999
  14. Multi-view learning with distinguishable feature fusion for rumor detection Knowledge-Based Systems · Elsevier BV · 2022 10.1016/j.knosys.2021.108085
  15. 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
  16. 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
  17. Visformer: The Vision-friendly Transformer 2021 IEEE/CVF International Conference on Computer Vision (ICCV) · 2021 10.1109/iccv48922.2021.00063
  18. 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
  19. A pixel-wise framework based on convolutional neural network for surface defect detection Mathematical Biosciences & Engineering · Arizona State University · 2022 10.3934/mbe.2022408
  20. 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
  21. Internal defects inspection of arc magnets using multi-head attention-based CNN Measurement · Elsevier BV · 2022 10.1016/j.measurement.2022.111808
  22. 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
  23. 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
  24. 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
  25. 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
  26. Application and Research of IoT Architecture for End-Net-Cloud Edge Computing Electronics · Multidisciplinary Digital Publishing Institute · 2022 10.3390/electronics12010001
  27. 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
  28. 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
  29. 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
  30. A domain adaptation YOLOv5 model for industrial defect inspection Measurement · Elsevier BV · 2023 10.1016/j.measurement.2023.112725
  31. 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