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

Surface defect detection model of laser cutting polycrystalline cubic boron nitride tool based on asymptotic fusion strategy

간접 관련 엔지니어링 플라스틱 · (23) 컴파운드 (19) 석유수지(21) 에폭시수지

기본 정보

저자
  1. Анфу Жу — North China University of Water Resources and Electric Power, Zhengzhou, 450045, China. zhuanfu@ncwu.edu.cn|||North China University of Water Resources and Electric Power, Zhengzhou, 450045, China
  2. Jiaxiao Xie — North China University of Water Resources and Electric Power, Zhengzhou, 450045, China
  3. Heng Guo — North China University of Water Resources and Electric Power, Zhengzhou, 450045, China
  4. Jie Wang — North China University of Water Resources and Electric Power, Zhengzhou, 450045, China
  5. Zilong Guo — North China University of Water Resources and Electric Power, Zhengzhou, 450045, China
  6. Lei Xu — North China University of Water Resources and Electric Power, Zhengzhou, 450045, China
  7. Siyu Zhu — North China University of Water Resources and Electric Power, Zhengzhou, 450045, China
  8. Zhanping Yang — Science and Technology Research Institute of China Railway Zhengzhou Group Co., Ltd, Zhengzhou, 450045, China
  9. Bin Wang — North China University of Water Resources and Electric Power, Zhengzhou, 450045, China
DOI
10.1038/s41598-024-77676-0
저널
Scientific Reports
발행년도
2024
발행기관
Nature Portfolio
피인용수
1
라이선스
cc-by-nc-nd
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.1038/s41598-024-77676-0
토픽
Laser Material Processing Techniques
OpenAlex ID
W4404039646

평가 내용

관련도
간접 관련
사업분야
엔지니어링 플라스틱 · (23) 컴파운드
부 분야
(19) 석유수지, (21) 에폭시수지
R&D 측면
분석·모델링
확신도
0.70
근거 용어
surface defect detection, deep learning, YOLO, laser cutting, polycrystalline cubic boron nitride
판단 근거
본 논문은 레이저 가공된 공구의 표면 결함을 딥러닝(YOLO)으로 검출하는 모델 연구이나, 이러한 비전 기반 결함 검출 기술은 코오롱인더스트리의 컴파운드 및 화학 수지 제조 공정 중 품질 관리(QC) 자동화에 응용될 수 있습니다.
R&D 활용 포인트
고분자 컴파운드나 필름, 수지 제품의 제조 공정 중 발생하는 표면 결함(스크래치, 기포 등)을 실시간으로 자동 검출하는 AI 검사 시스템 구축에 활용 가능합니다.
평가 입력
본문 40,942자 중 30,032자 발췌

초록

Due to the polycrystalline cubic boron nitride tool has the characteristics of high hardness, brittleness, etc., it is easy to break the tool or produce defects in the laser cutting process, which affects the cutting performance of the tool. Traditional defect detection methods can no longer meet the needs of modern manufacturing. Aiming at the problems of low accuracy and poor real-time detection of surface defects on laser-cutting polycrystalline cubic boron nitride tools, this study proposes the surface defect detection model of laser cutting polycrystalline cubic boron nitride tool based on asymptotic fusion strategy, which fills the gap in the field. In the backbone network, the C3SE module is constructed by modeling the correlation between feature channels to improve the model's focus on key features in order to enhance the feature extraction and processing capability of the backbone network; In the neck network, adaptive spatial fusion operation and direct interaction of non-adjacent layers are utilized for multi-scale information fusion, and the asymptotic feature pyramid network for object detection (AFPN) is used instead of the FPN structure to improve the detection performance; In the head network, a soft suppression mechanism is introduced to reduce the overlapping frame score using a decay function, thus improving the detection accuracy. The experimental results based on the self-constructed laser-cutting polycrystalline cubic boron nitride tool surface defects dataset show that the average accuracy of the AFFS-YOLO model is improved by 5.6% compared with that of the YOLOv5 model, reaching 86.1%, and the detection effect is better than that of the original network and other classical target detection networks.

본문 40,942자

본문 펼치기
## OPEN # Surface defect detection model of laser cutting polycrystalline cubic boron nitride tool based on asymptotic fusion strategy Anfu Zhu <sup>1</sup> <sup></sup> , Jiaxiao Xie <sup>1</sup> , Heng Guo <sup>1</sup> , Jie Wang <sup>1</sup> , Zilong Guo <sup>1</sup> , Lei Xu <sup>1</sup> , SiXin Zhu <sup>1</sup> , Zhanping Yang <sup>2</sup> & Bin Wang <sup>1</sup> Due to the polycrystalline cubic boron nitride tool has the characteristics of high hardness, brittleness, etc., it is easy to break the tool or produce defects in the laser cutting process, which affects the cutting performance of the tool. Traditional defect detection methods can no longer meet the needs of modern manufacturing. Aiming at the problems of low accuracy and poor real-time detection of surface defects on laser-cutting polycrystalline cubic boron nitride tools, this study proposes the surface defect detection model of laser cutting polycrystalline cubic boron nitride tool based on asymptotic fusion strategy, which fills the gap in the field. In the backbone network, the C3SE module is constructed by modeling the correlation between feature channels to improve the model’s focus on key features in order to enhance the feature extraction and processing capability of the backbone network; In the neck network, adaptive spatial fusion operation and direct interaction of non-adjacent layers are utilized for multi-scale information fusion, and the asymptotic feature pyramid network for object detection (AFPN) is used instead of the FPN structure to improve the detection performance; In the head network, a soft suppression mechanism is introduced to reduce the overlapping frame score using a decay function, thus improving the detection accuracy. The experimental results based on the self-constructed laser-cutting polycrystalline cubic boron nitride tool surface defects dataset show that the average accuracy of the AFFS-YOLO model is improved by 5.6% compared with that of the YOLOv5 model, reaching 86.1%, and the detection effect is better than that of the original network and other classical target detection networks. As a new tool material in the 21st century, polycrystalline cubic boron nitride tools are becoming an important and indispensable tool in modern manufacturing <sup>1</sup> . Polycrystalline cubic boron nitride tools, due to its high hardness and brittle characteristics, are prone to burst, cracking, ablation and other defects on the surface due to improper power parameters during laser cutting, which in turn affects its cutting performance and service life. Therefore, in the process of rapid development of modern manufacturing industry, it is particularly important to realize fast and high-precision laser cutting polycrystalline cubic boron nitride tool surface defect detection. Traditional surface defect detection methods rely on the original characteristics of the local defects, roughly through the manual visual inspection method, mechanical device contact detection method and machine vision inspection method and other stages <sup>2</sup> . These traditional methods work in limited environmental conditions, limiting efficiency. In recent years, the research and application of deep learning convolutional neural networks have developed rapidly and achieved remarkable results in the field of computer vision, and the deep learning method has gradually taken a dominant position in the field due to the excellent performance advantages it shows when dealing with industrial images with complex backgrounds and insignificant defects <sup>3</sup> . However, samples with surface defects in industrial cutting processes are often difficult to obtain and suffer from problems such as class imbalance, making it difficult to train deep learning models. The current mainstream practice of algorithmic improvement around the surface defect detection accuracy problem of deep learning algorithms is to optimize the network structure, introduce the attention mechanism, improve the loss function and so on. In the research on defect detection based on deep learning technology, in 2015, Ren et al. <sup>4</sup> introduced the regional proposal network as an “attention” mechanism for the first time to guide the network to locate targets, enhance 1North China University of Water Resources and Electric Power, Zhengzhou 450045, China. 2Science and Technology Research Institute of China Railway Zhengzhou Group Co., Ltd, Zhengzhou 450045, China. <sup></sup> email: zhuanfu@ncwu.edu.cn feature extraction, capabilities, and improve detection accuracy; In the same year, Joseph et al. <sup>5</sup> proposed the YOLO algorithm, which solves object detection as a regression problem. Unlike the Faster R-CNN, which requires repeated training of the RPN network and the Fast R-CNN <sup>6</sup> network, the YOLO algorithm is trained and detected in a separate network, achieving fast detection with high accuracy. Subsequently, scholars proposed algorithms such as YOLOv2-9 <sup>7–12</sup> to further improve the accuracy and detection speed of the model. YOLO algorithm with its real-time processing advantages and defect detection capabilities can meet the industrial realtime inspection needs, is widely used in various fields, and has been continuously optimized and developed. Su et al. <sup>13</sup> improved the yolov3 model by introducing the SE attention mechanism and the spatial pyramid pooling module for detecting apparent bridge damage in complex contexts; Li et al. <sup>14</sup> improved the yolov4 model by introducing a dual-channel feature enhancement module to ameliorate the local information loss and gradient propagation blockage caused by four-chain convolution in PANet networks for detecting fabric surface defects; Zhu et al. <sup>15</sup> proposed the MFF-YOLO model by constructing a multi-scale feature fusion network and designing a reweighting screening method for achieving accurate detection of tunnel defects; Xu et al. <sup>16</sup> improved the yolov7 algorithm by introducing the Le-HorBlock module to the CBS module and the Coordinate Attention module to construct a surface defect detection model for pipeline welds. Although deep learning methods have achieved a large number of research results in the field of target detection, not much research has been done in the field of defect detection in laser-cut polycrystalline cubic boron nitride tools. Therefore, it is prospective to investigate the application of deep learning in defect detection of laser-cut polycrystalline cubic boron nitride tools. This study aims at the problem of low detection accuracy of laser cutting polycrystalline cubic boron nitride tool defect detection. Firstly, a proprietary dataset is produced through electron microscope acquisition; Second, in terms of data processing, the AFFS-YOLO model is proposed. The model can effectively improve the accuracy and reliability of polycrystalline cubic boron nitride tool surface defect detection, which is of positive academic significance for advancing the development of the fusion of deep learning and laser cutting polycrystalline cubic boron nitride tool defect detection. The main contributions of this paper are as follows: (1) Compiled a proprietary dataset of laser-cut polycrystalline cubic boron nitride tool defects, which can meet the detection of common surface defects; (2) In the backbone network, the C3SE module is constructed by modeling the correlation between feature channels to enhance the feature extraction and processing capability of the backbone network; (3) In the neck network, the adaptive spatial fusion operation of the AFPN network structure as well as the direct interaction of disjoint layers are used for multi-scale information fusion to improve the detection performance; (4) In the head network, the soft suppression mechanism is introduced to reduce the overlapping frame scores using the attenuation function to improve the detection accuracy. The rest of the article is structured as follows: In the Methods section, the process of building the AFFSYOLO model is described; In the Experimental section, the details of the self-constructed defect dataset and the configurations and hyperparameters used in the experimental training are presented; In the Results and discussion section, the evaluation performance of the model, the results obtained and the interpretation of the detailed data from the ablation experiments are presented in detail; In the Conclusion section, the key role of the experiments in the detection of surface defects on laser-cut polycrystalline cubic boron nitride tools, including the existing limitations, is discussed and summarized in the last section. Methods Yolov5s detection model The Yolo family of target detection algorithms is a single-stage end-to-end real-time target detection method, and the Yolov5 target detection network is highly regarded in the field of target detection due to its accuracy and fast detection capability. Yolov5s is the network with the shallowest network depth and smallest network width among the official 4 versions, and its network structure consists of four parts: Input, Backbone <sup>17</sup>, Neck <sup>18</sup> and Head <sup>19</sup>, which is shown in Fig. 1. Backbone network adopts the CSPDarknet53 structure, introduces the CSP <sup>20</sup> structure to enhance the information flow through cross-stage connections, and employs residual connections to effectively solve the gradient vanishing and gradient explosion problems in deep networks through constant mapping. Neck network with the help of Feature Pyramid Network (FPN) architecture, the network is able to fuse multi-scale feature information by means of shared feature maps, enabling the model to utilize both high-level semantic information and low-level detail information. In addition, Head network partially follows the YOLOv3 like detection head structure, which includes three different scales of detection layers to accurately predict the class and location of defects at different scales, enabling the model to perform well in the target detection task. This is the reason why we chose to improve the yolov5s model for defect detection on the surface of the laser-cut Polycrystalline Cubic Boron Nitride Tool after integrating real-time and accuracy considerations. After introducing the basic model of yolov5s, we will describe the advantages of each improved module over the original module in the Improved methodology. Improved methodology _C3SE module_ In the backbone network of YOLOv5s, the C3 module is the key component, which extracts useful information from the input feature map through multiple convolutional layers and utilizes the Bottleneck module and residual connections to achieve effective fusion of features at different levels. However, the C3 module pays Fig. 1 . Yolov5 detection model structure diagram. Fig. 2 . C3SE module structure diagram. equal attention to different feature channels and does not consider the correlation between different feature channels sufficiently. In this study, the Squeeze-and-Excitation (SE) <sup>21</sup> attention mechanism is combined with the C3 <sup>22</sup> module to construct the C3SE module as in Fig. 2. On the one hand, the core of the SE attention mechanism is to learn and redistribute the weights among the feature channels, and when combined with the C3 module, the model is able to adaptively adjust the feature weights of the different channels and learn the correlations among the different channels by explicitly modeling the interdependencies among the feature channels, thus enhancing the feature extraction and processing capabilities of the backbone network. On the other hand, the SE attention mechanism is embedded into the C3 module, and when the input image reaches the C3SE through multiple convolutional layers, the Bottleneck module of the original C3 module is utilized to solve the gradient vanishing and exploding problems, and then the depth of the network is extended by stacking the convolutional layers, and the idea of cross-layer connectivity is adopted to capture more contextual information, and then two operations of squeezing and excitation are carried out immediately to improve model expressiveness of the model. The flowchart for performing the two operations of squeezing and excitation is shown in Fig. 3. _s_ _FU_ sq _c_ =( _U Vc_ ) = _c ∗_ _XH×_ <u>1=</u> _W_ <sup><u>�</u></sup> <sup>_C_</sup> _i_ <sup>_′_</sup> - _H_ _s_ =1 <sup>_V_</sup> <sup>_s_</sup> _c_ _j_ =1 <sup>_uc_</sup> <sup>(</sup> <sup>_i, j_</sup> <sup>)</sup> (2) - _H_ _c_ <sup>_s_</sup> <sup>_∗_</sup> <sup>_X_</sup> <sup>_s_</sup> (1) _Zc_ = _F_ sq( _Uc_ ) = <u>1</u> _H× W_ _i_ =1 - _H_ _F_ tr : _X_ _→_ _U_, After _F_ tr feature map X becomes feature map U. The formula is defined as in Eq. 2. _F_ sqis to use the global average pooling of channels to directly compress the W × H × C feature map containing global information into a 1 × 1 × C feature vector Z. The channel features of the C feature maps are all compressed into a single value, which makes the generated channel-level statistics Z contain contextual information and alleviates the problem of channel dependency, where _Zc_ in Eq. 2 is the cth element of Z. In order to utilize the information aggregated in the compression operation, the channel dependencies are fully captured by the Excitation operation, which yields the weight s of Eq. 3: _s_ = _F_ ex ( _z, W_ ) = _σ_ ( _g_ ( _z, W_ )) = _σ_ ( _W_ 2 _σ_ ( _W_ 1 _z_ )) (3) Finally, the attentional weights obtained earlier are weighted to the features of each channel by the Scale operation. _X∼_ _c_ = _F_ scale ( _UC, SC_ ) = _SCUC_ (4) _AFPN module_ In the yolov5s algorithm, the neck network adopts a combination of SPPF and CSP-PAN structures, which effectively improves the model’s detection performance for targets of different scales. However, this structure may adopt a more fixed method in feature fusion and cannot adaptively adjust the fusion strategy according to the scale of the target, and at the same time, this structure may not be able to balance the computational efficiency well while pursuing the performance improvement. The introduced AFPN <sup>23</sup> network structure is shown in Fig. 4, which improves the accuracy and robustness of target detection by adaptively adjusting the feature fusion method and adopting an incremental fusion strategy to incrementally fuse low-level features, high-level features, and top-level features to the neck network. The AFPN progressively integrates Low-Level, High-Level, and top-level features in the bottom-up feature extraction process of Backbone network. In the multi-level feature fusion process, ASFF is utilized to assign different spatial weights to features at different Levels, which enhances the importance of key Levels and mitigates the effect of contradictory information from different targets. The key idea of ASFF is to adaptively learn the fusion spatial weights for each scale feature map in two steps: constant scaling and adaptive fusion. Its feature vector is represented as: _ij_ + _γ_ <sup>_l_</sup> <sup>2</sup> <sup>_→_</sup> <sup>_l_</sup> <sup>_l_</sup> _ij_ _ij_ <sup>_·_</sup> <sup>_x_</sup> <sup>2</sup> <sup>_→_</sup> <sup>_l_</sup> <sup>_l_</sup> _ij_ _ij_ <sup>_·_</sup> <sup>_x_</sup> <sup>3</sup> <sup>_→_</sup> <sup>_l_</sup> _yij_ <sup>_l_</sup> _yij_ <sup>_l_</sup> <sup>=</sup> <sup>_α_</sup> <sup>_l_</sup> _ij_ <sup>_l_</sup> _ij_ <sup>_·_</sup> <sup>_x_</sup> _ij_ <sup>1</sup> <sup>_→_</sup> <sup>_l_</sup> _ij_ + _β_ <sup>_l_</sup> <sup>1</sup> <sup>_→_</sup> <sup>_l_</sup> _ij_ <sup>3</sup> <sup>_→_</sup> <sup>_l_</sup> (5) In Fig. 4, the links from level1, 2, 3, 4 to ASFF1, 2, 3, 4 are fully connected. The feature map is resized before fusion. the process of fusing level1, 2, 3, 4 into ASFF-3 is to perform up-sampling, down-sampling, and pooling operations on level1, 2, 3, and 4 to make the size of level1, 2, 3, and 4 the same before fusion operation. _x_ <sup>_n_</sup> _ij_ <sup>_→_</sup> <sup>_l_</sup> represents the feature vector at (i, j) after resize from level n to level l. The fused ASFF-L needs to satisfy the following constraints: <sup>_l_</sup> _ij_ <sup>+</sup> <sup>_β_</sup> _ij_ <sup>_l_</sup> <sup>_l_</sup> _ij_ <sup>= 1</sup> _α_ <sup>_l_</sup> <sup>_l_</sup> _ij_ <sup>_∈_</sup> <sup>(0</sup> <sup>_,_</sup> <sup>1)</sup> (6) _α_ <sup>_l_</sup> _ij_ <sup>_l_</sup> <sup>+</sup> <sup>_γ_</sup> <sup>_l_</sup> <sup>_l_</sup> _ij_ <sup>_, β_</sup> <sup>_l_</sup> _ij_ <sup>_l_</sup> <sup>_, γ_</sup> <sup>_l_</sup> <sup>_l_</sup> _β_ <sup>_,_</sup> <sup>_λ_</sup> _γ_ <sup>_l_</sup> This constraint is satisfied by _x_ <sup>1</sup> _ij_ <sup>_→_</sup> <sup>_l_</sup> This constraint is satisfied by _x_ <sup>1</sup> _ij_ <sup>_→_</sup> <sup>_l_</sup> _,_ _x_ <sup>2</sup> _ij_ <sup>_→_</sup> <sup>_l_</sup> _,_ _x_ <sup>3</sup> _ij_ <sup>_→_</sup> <sup>_l_</sup>, after 1∗1 convolution to get _λ_ <sup>_l_</sup> _α_ <sup>_,_</sup> <sup>_λ_</sup> <sup>_l_</sup> _β_ <sup>_,_</sup> <sup>_λ_</sup> _γ_ <sup>_l_</sup> <sup>and then soft-max</sup> to output _y_ <sup>1</sup> _,_ _y_ <sup>2</sup> _,_ _y_ <sup>3</sup> . <sup>2</sup> _ij_ <sup>_→_</sup> <sup>_l_</sup> _,_ _x_ <sup>3</sup> _ij_ <sup>_→_</sup> <sup>_l_</sup> <sup>1</sup> _ij_ <sup>_→_</sup> <sup>_l_</sup> _,_ _x_ <sup>2</sup> _ij_ <sup>_→_</sup> <sup>_l_</sup> <sup>3</sup> _ij_ <sup>_→_</sup> <sup>_l_</sup>, after 1∗1 convolution to get _λ_ <sup>_l_</sup> <sup>_l_</sup> _α_ <sup>_,_</sup> <sup>_λ_</sup> <sup>_l_</sup> _β_ Fig. 3 . Squeeze-and-Excitation module. Fig. 4 . AFPN module structure diagram. _Soft-NMS module_ The target detection model generates multiple possible target bounding boxes, each of which has a corresponding confidence level indicating the probability that the bounding box contain the target, and a large number of overlapping boxes are generated because the target may be detected multiple times at different scales or different locations. The role of NMS is to filter these overlapping bounding boxes, removing those with lower confidence and retaining only those with the highest confidence, thus obtaining more accurate target detection results. Traditional NMS methods may incorrectly remove some bounding boxes with high confidence due to the use of hard thresholds when dealing with overlapping target boxes, leading to a decrease in detection accuracy. In contrast, Soft-NMS <sup>24</sup> selects the best bounding boxes more efficiently by introducing a decay function that reduces the scores of overlapping bounding boxes instead of deleting them directly, as shown in the flowchart in Fig. 5. The functional relationship is expressed as: _si_ = _si, iou_ ( _M, bi_ ) _< Nt_ (7) - _si_ (1 _−_ _iou_ ( _M, bi_ )) _, iou_ ( _M, bi_ ) _< Nt_ _AFFS-YOLO module_ The structural features of the improved model are shown in Fig. 6. The model improvement has three main parts: First, the C3SE structure of Backbone network, which enhances the feature extraction and processing capability of the backbone network; Second, the AFPN structure of Neck network, which utilizes adaptive spatial fusion operation and direct interaction of non-adjacent layers for multi-scale information fusion; Third, the introduction of Soft-NMS soft suppression mechanism, which utilizes the attenuation function to reduce the overlapping frame score and improve the detection accuracy. Experimental Data acquisition and processing The laser cutting polycrystalline cubic boron nitride tool dataset was constructed by collecting contour images of polycrystalline cubic boron nitride tools processed by Covington fiber laser cutting machine using an AOHD208C electron microscope. Table 1 is the experimental environment parameters for data set production. The product samples in this dataset are all from the same batch of products processed by the same processing equipment under the same factory environmental conditions. Combining the data collected in the experiment with expert experience and industrial demand, we made a proprietary data set for the 4 identified defects by manual annotation, and conducted the defect detection algorithm research by offline processing. The Ablation defect is caused by the local melting, evaporation or Fig. 5 . SOFT-NMS module flow chart. chemical decomposition of the surface or sub-surface of the material when the high temperature laser beam interacts with the material; Burst defects are the material breaking phenomena caused by the sudden release of energy in the laser cutting process due to the uneven or excessive internal stress of the material; Adulterant is the presence of unintended ingredients or foreign substances in the material; Cracks are linear defects on the surface or inside the material due to factors such as thermal stress or material inhomogeneity. Figure 7 illustrates some typical examples of these defects. The final nearly 3000 images obtained by Labelimg software labeling comprise the dataset of this study, and the defect images are categorized into four categories such as AB (ablation), BU (burst), AD (adulterant), and CR Fig. 6 . AFFS-YOLO module structure diagram. <u>Device name</u> <u>parameter</u> <u>value</u> <u>Camera model</u> <u>SN-60R</u> <u>Sensor type</u> <u>20 megapixels</u> <u>Output resolution</u> <u>Hd output 1920*1080P</u> AO-HD208C Electron microscope Covington fiber laser cutting machine <u>Output frame rate</u> <u>60FPS/S</u> <u>Exposure method</u> <u>line by line exposure</u> <u>Shutter</u> <u>electronic shutter</u> <u>Light source color</u> <u>white</u> <u>Cutting speed</u> <u>2000 mm/min</u> <u>Pulse width</u> <u>0.2ms</u> <u>frequency</u> <u>180 Hz</u> <u>Laser power</u> <u>300 W</u> <u>Operating ambient temperature</u> <u>30–35℃</u> Table 1 . The experimental environment parameters for data set production. (crack), which denote four types of defects, namely, ablation, burst, adulterant, and crack, respectively. Table 2 demonstrates the distribution of the dataset species defect images. The deep learning simulation experiments are built on a Linux system with a deep learning framework using Python and PyTorch, and the hardware setup shown in Table 3 includes components such as CPU, GPU, memory, and storage. The experiment consists of 50 epoches with a learning rate of 0.01, a weight decay factor set to 0.0005, and a gradient optimization algorithm of SGD. The default image size is 640 × 640 and the batch size is 16 threads. Results and discussion Evaluation indicators In this study, the experiments use precision (P), recall (R), and mean accuracy (mAP) to evaluate the effectiveness of the model in detecting defects in polycrystalline cubic boron nitride cutting tools. mAP can reflect the stability and consistency of the model under different thresholds, so as to more accurately evaluate the performance of the model. In this experiment, two indicators, mAP@0.5% and mAP@0.5:0.95%, are used as the performance reference indexes, in which the recall rate indicates the proportion of all positive cases that are detected as positive cases, and the average accuracy value indicates the proportion of samples that are detected as positive cases that are truly positive cases, which can be computed from the Precision and the Recall rate. The formulae for each indicator are as follows: Fig. 7 . Examples of typical defects. <u>Defect type</u> <u>Training set</u> <u>Validation set</u> <u>Test set</u> <u>Label</u> <u>ablation</u> <u>435</u> <u>125</u> <u>63</u> <u>0</u> <u>burst</u> <u>140</u> <u>40</u> <u>20</u> <u>1</u> <u>adulterant</u> <u>225</u> <u>64</u> <u>32</u> <u>2</u> <u>crack</u> <u>1075</u> <u>307</u> <u>156</u> <u>3</u> Table 2 . Distribution of defective images in the dataset. <u>Name</u> <u>Configure</u> <u>Operating System</u> <u>Linux</u> <u>Video Card</u> <u>NVIDIA RTX3090</u> <u>Video Memory</u> <u>24G</u> <u>Processor</u> <u>Intel(R) Core i3-8100</u> <u>Programming Language</u> <u>Python</u> <u>Deep training framework</u> <u>PyTorch</u> <u>Programming Platforms</u> <u>Pycharm</u> Table 3 . Simulation Experiment Configuration. _Precision_ = <u>TPTP+FP</u> (8) _Recall_ = <u>TPTP+FN</u> (9) _mAP_ = <u>i=1</u> <sup><u>APi</u></sup> <u>�</u> NN (10) mAP[@0 _._ 5 _,_ @0 _._ 95] = <sup><u>mAP@0</u></sup> <sup>_<u>.</u>_</sup> <sup><u>5+mAP@0</u></sup> 10 <sup>_<u>.</u>_</sup> <sup><u>55+</u></sup> <sup>_<u>...</u>_</sup> <sup><u>+mAP@0</u></sup> <sup>_<u>.</u>_</sup> <sup><u>95</u></sup> (11) The Fig. 8 shows the confusion matrix generated by the AFFS-YOLO model in the laser-cut polycrystalline cubic boron nitride tool surface defects dataset, and the results show that the detection accuracies of CR and BU reach 91% and 92%, respectively, while the detection accuracies of AD and AB are 64% and 77%, respectively, and mAP@0.5 reaches 86.1%, and the precision-recall curve is shown in Fig. 9. In practical scenarios, laser cutting is Fig. 8 . The confusion matrix generated by the AFFS-YOLO model. supposed to utilize high-energy laser beam irradiation, which will form a texture on the material surface. During image acquisition using an electron microscope, the texture features produced by cutting are easily confused with ablation defects, which means that the model shows limitations in recognizing multi-scale objects as well as image details. The study used the AFFS-YOLO model for the surface defect detection of laser-cutting polycrystalline cubic boron nitride tools, and successfully detected a variety of types and sizes of defects, and some of the results are shown in Fig. 10. The training data is represented as a scatter plot to obtain the curve shown in Fig. 11, which is the loss function curve. It can be seen through observation that: in the 20th round, the loss function begins to converge and then tends to be stable, the decline of the loss function value indicates that the model is gradually optimized during the training process, while the convergence and stability of the loss function value indicates that the model has reached the optimal state. In order to test the effectiveness of each model for various types of defect detection to highlight the importance of each module, the study has counted the results of different types of accuracies as shown in Fig. 12; Table 4. The four parts in Fig. 12 represent four types of defects, and different modules are added to each part from left to right, where the original model is shown in blue and the improved AFFS-YOLO model is shown in red. The results show that the improved model proposed in this paper outperforms the original model in all types, which further validates the effectiveness of the model in detecting defects in laser-cut polycrystalline cubic boron nitride tools. Fig. 9 . PR curve. Fig. 10 . Defect detection results. Fig. 11 . Comparison of loss function curves of each frame. Ablation experiment In order to evaluate the performance of the AFFS-YOLO model proposed in this paper more accurately, the study conducted ablation tests and obtained the experimental results as shown in Fig. 13; Table 4. The results show that the model AFFS-YOLO achieves 86.1% accuracy. The study in Table 5 shows that the mAP, Recall and Gflops of the model are significantly improved by adding AFPN through the deep fusion extraction of feature information. After the model adds to reprocess the prediction frames, the accuracy is improved by 5.6% compared to the base model, although the Gflops is slightly decreased compared to adding AFPN. In this study, when the three modules are combined together to construct the AFFS-YOLO model, the result is a synergistic effect that outperforms the effect of each module acting individually and raises the upper limit of the total performance of the model. Conclusion In the field of deep learning, there are differences and uniqueness of target detection models for different scenarios. In this study, the AFFS-YOLO model is proposed for the specific scenario of defect detection in lasercut polycrystalline cubic boron nitride tools. After simulation experiments, it is verified that the improved model can meet the current laser-cutting polycrystalline cubic boron nitride tool defect detection requirements, and the average accuracy rate reaches 86.1%. Compared with the yolov5s base model and other inspection models, the accuracy of this method is higher. Although the dataset provided in this paper contains four defect types, there are some defect types that are not included. The defect dataset is difficult to obtain during industrial processing, resulting in a small number of samples. Therefore, the proposed defect detection method still has some limitations. In our future work, we will try to investigate small-sample defect detection techniques to effectively improve the effect of small dataset on detection accuracy. In addition, we note that in the industrial field mostly deployed with edge mobile devices, and deep learning models usually have a large number of parameters, which makes the Fig. 12 . The accuracy of each framework is compared in the absence of defect types. Type <u>Model</u> Average Accuracy <u>Rate (%)</u> <u>AB</u> <u>BU</u> <u>AD</u> <u>CR</u> <u>Yolov5</u> <u>74.4</u> <u>91.6</u> <u>64.7</u> <u>91.3</u> <u>Yolov5 + CA</u> <u>74.7</u> <u>91.6</u> <u>66.0</u> <u>90.9</u> <u>Yolov5s + CBAM</u> <u>74.2</u> <u>91.6</u> <u>65.9</u> <u>91.2</u> <u>Yolov5s + ECA</u> <u>74.6</u> <u>91.7</u> <u>67.3</u> <u>90.8</u> <u>Yolov5s + SE</u> <u>74.9</u> <u>91.6</u> <u>66.3</u> <u>90.7</u> <u>Yolov5s + C3CA</u> <u>74.8</u> <u>91.7</u> <u>66.1</u> <u>90.7</u> <u>Yolov5s + C3CBAM</u> <u>75.5</u> <u>91.5</u> <u>66.3</u> <u>92.4</u> <u>Yolov5s + C3ECA</u> <u>74.6</u> <u>92.0</u> <u>66.1</u> <u>90.8</u> <u>Yolov5s + C3SE</u> <u>74.7</u> <u>91.7</u> <u>65.3</u> <u>93.9</u> <u>Yolov5s + GFPN</u> <u>73.3</u> <u>91.6</u> <u>65.1</u> <u>91.6</u> <u>Yolov5s + BiFPN</u> <u>74.5</u> <u>91.6</u> <u>63.8</u> <u>92.1</u> <u>Yolov5s + AFPN</u> <u>74.7</u> <u>91.6</u> <u>68.1</u> <u>92</u> <u>AFFS-YOLO</u> <u>76.2</u> <u>93.6</u> <u>81.0</u> <u>93.6</u> Table 4 . Comparative experiments of Improved algorithms. Fig. 13 . Performance comparison of typical target detection frameworks. <u>Name</u> mAP <u>@0.5(%)</u> <u>Recall(%)</u> <u>Layers</u> <u>Parameters</u> <u>Gflops</u> <u>Yolov5</u> <u>80.5</u> <u>84.0</u> <u>214</u> <u>7,030,417</u> <u>16.0</u> <u>Yolov5 + CA</u> <sup>25</sup> <u>80.8</u> <u>82.0</u> <u>224</u> <u>7,819,409</u> <u>16.8</u> <u>Yolov5s + CBAM</u> <sup>26</sup> <u>80.7</u> <u>82.0</u> <u>226</u> <u>7,031,444</u> <u>16.0</u> <u>Yolov5s + ECA</u> <sup>27</sup> <u>81.1</u> <u>82.0</u> <u>218</u> <u>7,030,938</u> <u>16.2</u> <u>Yolov5s + SE</u> <sup>21</sup> <u>80.9</u> <u>82.0</u> <u>220</u> <u>7,554,705</u> <u>16.4</u> <u>Yolov5s + C3CA</u> <u>80.8</u> <u>84.0</u> <u>277</u> <u>6,431,065</u> <u>14.2</u> <u>Yolov5s + C3CBAM</u> <u>80.7</u> <u>85.0</u> <u>291</u> <u>6,426,278</u> <u>14.2</u> <u>Yolov5s + C3ECA</u> <u>80.9</u> <u>81.0</u> <u>235</u> <u>6,410,118</u> <u>14.1</u> <u>Yolov5s + C3SE</u> <u>81.4</u> <u>83.0</u> <u>249</u> <u>6,425,585</u> <u>14.1</u> <u>Yolov5s + GFPN</u> <sup>28</sup> <u>80.4</u> <u>81.0</u> <u>284</u> <u>9,249,809</u> <u>19.5</u> <u>Yolov5s + BiFPN</u> <sup>29</sup> <u>80.5</u> <u>82.0</u> <u>214</u> <u>7,095,962</u> <u>16.2</u> <u>Yolov5s + AFPN</u> <sup>23</sup> <u>81.6</u> <u>86.0</u> <u>300</u> <u>7,570,086</u> <u>20.4</u> <u>AFFS-YOLO</u> <u>86.1</u> <u>86.0</u> <u>315</u> <u>7,524,998</u> <u>19.7</u> Table 5 . Performance comparison of target detection frameworks. models complex and difficult to deploy to resource-limited devices, so we will also consider using methods such as knowledge distillation to reduce the model size and explore lightweight target detection algorithms. In summary, the improved AFFS-YOLO model in this study performs well in detecting defects in laser-cut polycrystalline cubic boron nitride tools, providing new ideas and methods for research in this field. We hope that these works can provide useful references and guidance for practical applications and future research. Data Availability Data supporting the results of this study are available from the corresponding author upon reasonable request. Received: 25 May 2024; Accepted: 24 October 2024 References 1. Jarosz, K. et al. Laser ablation and processing of polycrystalline cubic boron nitride cutting tool material. _Int. J. Adv. Manuf._ _Technol._ 118, 785–800 (2021). 2. Pang, S., Zhao, W., Wang, S., Zhang, L. & Wang, S. Permute-MAML: exploring industrial surface defect detection algorithms for few-shot learning. _Complex. Intell. Syst._ 10 (1), 1473–1482 (2024). 3. Chen, X., Lv, J., Fang, Y. & Du, S. Online detection of Surface defects based on improved YOLOV3. _Sensors_ . 22 [(3), 817. ​h​t​t​p​s​:​/​/​d​o​](https://doi.org/10.3390/s22030817) [i​.​o​r​g​/​1​0​.​3​3​9​0​/​s​2​2​0​3​0​8​1​7 (2022).](https://doi.org/10.3390/s22030817) ​ 4. Ren, S., He, K., Girshick, R. & Sun, J. Faster r-cnn: towards real-time object detection with region proposal networks. _IEEE Trans._ _Pattern Anal. Mach. Intell._ 39 (6), 1137–1149 (2017). 5. Redmon, J. et al. _You Only Look once: Unified, Real-Time Object Detection_ ( Computer Vision & Pattern Recognition IEEE, 2016). [6. Girshick, R. R-CNN[J].Computer Science, 2015. https://doi.org/10.1109/ICCV.2015.169.](https://doi.org/10.1109/ICCV.2015.169) 7. Redmon, J., Farhadi, A. & Recognition, P. IEEE Conference on Computer Vision and YOLO9000: Better, Faster, Stronger, (CVPR), [Honolulu, HI, USA, 2017, pp. 6517–6525, doi: (2017). https://doi.org/10.1109/CVPR.2017.690](https://doi.org/10.1109/CVPR.2017.690) 8. Redmon, J. & Farhadi, A. _Yolov3: An Incremental Improvement_ (arXiv e-prints, 2018). [9. Bochkovskiy, A., Wang, C. Y. & Liao, H. Y. M. .YOLOv4: optimal speed and accuracy of object Detection[J]. DOI: (2020). ​h​t​t​p​s​:​/​/​](https://doi.org/10.48550/arXiv.2004.10934) [d​o​i​.​o​r​g​/​1​0​.​4​8​5​5​0​/​a​r​X​i​v​.​2​0​0​4​.​1​0​9​3​4](https://doi.org/10.48550/arXiv.2004.10934) ​ 10. Li, C. et al. YOLOv6: A Single-Stage Object Detection Framework for Industrial Applications. ArXiv, abs/2209.02976. (2022). 11. Wang, C. Y., Bochkovskiy, A. & Liao, H. Y. M. YOLOv7: Trainable Bag-of-Freebies Sets New State-of-the-Art for Real-Time Object Detectors, 2023 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), Vancouver, BC, Canada, 2023, pp. [7464–7475, https://doi.org/10.1109/CVPR52729.2023.00721](https://doi.org/10.1109/CVPR52729.2023.00721) 12. Wang, C., Yeh, I. & Liao, H. YOLOv9: learning what you want to learn using programmable gradient information. Preprint at [https://arxiv.org/abs/2402.13616 (2024).](https://arxiv.org/abs/2402.13616) 13. Su, H. et al. Enhanced YOLO v3 for precise detection of apparent damage on bridges amidst complex backgrounds. _Sci. Rep._ 14, 8627 (2024). 14. Li, Y. et al. Research on fabric surface defect detection algorithm based on improved Yolo_v4. _Sci. Rep._ 14 [, 5537. ​h​t​t​p​s​:​/​/​d​o​i​.​o​r​g​/​1​](https://doi.org/10.1038/s41598-023-50671-7) [0​.​1​0​3​8​/​s​4​1​5​9​8​-​0​2​3​-​5​0​6​7​1​-​7 (2024).](https://doi.org/10.1038/s41598-023-50671-7) ​ 15. Zhu, A., Wang, B., Xie, J. & Ma, C. MFF-YOLO: an Accurate Model for detecting tunnel defects based on Multi-scale Feature Fusion. _Sensors_ . 23 [(14), 6490. https://doi.org/10.3390/s23146490 (2023).](https://doi.org/10.3390/s23146490) 16. Xu, X. & Li, X. Research on surface defect detection algorithm of pipeline weld based on YOLOv7. _Sci. Rep._ 14 [, 1881. ​h​t​t​p​s​:​/​/​d​o​i​.​o​](https://doi.org/10.1038/s41598-024-52451-3) [r​g​/​1​0​.​1​0​3​8​/​s​4​1​5​9​8​-​0​2​4​-​5​2​4​5​1​-​3 (2024).](https://doi.org/10.1038/s41598-024-52451-3) ​ 17. Huang, H. et al. Small object detection method with shallow feature fusion network for chip surface defect detection. _Sci. Rep._ 12, [3914. https://doi.org/10.1038/s41598-022-07654-x (2022).](https://doi.org/10.1038/s41598-022-07654-x) 18. Liu, Z. & Lv, H. YOLO_Bolt: a lightweight network model for bolt detection. _Sci. Rep._ 14 [, 656. ​h​t​t​p​s​:​/​/​d​o​i​.​o​r​g​/​1​0​.​1​0​3​8​/​s​4​1​5​9​8​-​0​2​](https://doi.org/10.1038/s41598-023-50527-0) [3​-​5​0​5​2​7​-​0 (2024).](https://doi.org/10.1038/s41598-023-50527-0) ​ 19. Wang, J. et al. Toward surface defect detection in electronics manufacturing by an accurate and lightweight YOLO-style object detector. _Sci. Rep._ 13 [, 7062. https://doi.org/10.1038/s41598-023-33804-w (2023).](https://doi.org/10.1038/s41598-023-33804-w) 20. Wang, C. et al. CSPNet: A New Backbone that can Enhance Learning Capability of CNN. 2020 IEEE/CVF Conference on Computer Vision and Pattern Recognition Workshops (CVPRW), 1571–1580. (2019). 21. Hu, J., Shen, L. & Sun, G. Squeeze-and-Excitation Networks, 2018 IEEE/CVF Conference on Computer Vision and Pattern [Recognition, Salt Lake City, UT, USA, pp. 7132–7141, doi: (2018). https://doi.org/10.1109/CVPR.2018.00745](https://doi.org/10.1109/CVPR.2018.00745) 22. Park, H. et al. _C3: Concentrated-Comprehensive Convolution and its Application to Semantic Segmentation_ (Computer Vision and Pattern Recognition, 2018). 23. Yang, G. et al. AFPN: Asymptotic Feature Pyramid Network for Object Detection. 2023 IEEE International Conference on Systems, Man, and Cybernetics (SMC), 2184–2189. (2023). 24. Bodla, N., Singh, B., Chellappa, R. & Davis, L. S. — Improving Object Detection with One Line of Code. 2017 IEEE International Conference on Computer Vision (ICCV), 5562–5570. (2017). 25. Hou, Q., Zhou, D. & Feng, J. Coordinate Attention for Efficient Mobile Network Design. 2021 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), 13708–13717. (2021). [26. Woo, S., Park, J., Lee, J. & Kweon, I. CBAM: Convolutional Block Attention Module. (2018). arXiv:1807.06521.](http://arxiv.org/abs/1807.06521) 27. Wang, Q., Wu, B., Zhu, P., Li, P. & Hu, Q. ECA-Net: Efficient Channel Attention for Deep Convolutional Neural Networks. 2020 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR). IEEE. (2020). [28. Xiao, W., Xu, M. & Lin, Y. Global Feature Pyramid Network. arXiv:2312.11231. (2023).](http://arxiv.org/abs/2312.11231) 29. Tan, M., Pang, R., Le, Q. V. & Recognition, P. EfficientDet: Scalable and Efficient Object Detection, 2020 IEEE/CVF Conference on [Computer Vision and (CVPR), Seattle, WA, USA, pp. 10778–10787, doi: (2020). https://doi.org/10.1109/CVPR42600.2020.01079](https://doi.org/10.1109/CVPR42600.2020.01079) Author contributions Conceptualization, A.F.Z.; Methodology, J.X.X.; Software, J.X.X. and H.G.; Validation, J.X.X. and B.W.; Formal analysis, J.W.; Investigation, L.X. and S.Z.; Resources, H.G.; Data curation, J.W.; Writing—original draft, J.X.X.; Writing—review & editing, J.X.X.; Supervision, A.F.Z. and Z.Y.; Project administration, H.G. and A.F.Z. All authors have read and agreed to the published version of the manuscript. Declarations Competing interests The authors declare no competing interests. The corresponding author is responsible for submitting a competing interests statement on behalf of all authors of the paper. Additional information Correspondence and requests for materials should be addressed to A.Z. Reprints and permissions information is available at www.nature.com/reprints. Publisher’s note Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations. Open Access This article is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License, which permits any non-commercial use, sharing, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if you modified the licensed material. You do not have permission under this licence to share adapted material derived from this article or parts of it. The images or other third party material in this article are included in the article’s Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article’s Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to [obtain permission directly from the copyright holder. To view a copy of this licence, visit ​h​t​t​p​:​/​/​c​r​e​a​t​i​v​e​c​o​m​m​o​](http://creativecommons.org/licenses/by-nc-nd/4.0/) [n​s​.​o​r​g​/​l​i​c​e​n​s​e​s​/​b​y​-​n​c​-​n​d​/​4​.​0​/.](http://creativecommons.org/licenses/by-nc-nd/4.0/) ​​ © The Author(s) 2024

섹션 본문 68문단 · 24,393자

(제목 없음)

1Due to the polycrystalline cubic boron nitride tool has the characteristics of high hardness, brittleness, etc., it is easy to break the tool or produce defects in the laser cutting process, which affects the cutting performance of the tool.Traditional defect detection methods can no longer meet the needs of modern manufacturing.Aiming at the problems of low accuracy and poor real-time detection of surface defects on laser-cutting polycrystalline cubic boron nitride tools, this study proposes the surface defect detection model of laser cutting polycrystalline cubic boron nitride tool based on asymptotic fusion strategy, which fills the gap in the field.In the backbone network, the C3SE module is constructed by modeling the correlation between feature channels to improve the model's focus on key features in order to enhance the feature extraction and processing capability of the backbone network; In the neck network, adaptive spatial fusion operation and direct interaction of non-adjacent layers are utilized for multi-scale information fusion, and the asymptotic feature pyramid network for object detection (AFPN) is used instead of the FPN structure to improve the detection performance; In the head network, a soft suppression mechanism is introduced to reduce the overlapping frame score using a decay function, thus improving the detection accuracy.The experimental results based on the self-constructed laser-cutting polycrystalline cubic boron nitride tool surface defects dataset show that the average accuracy of the AFFS-YOLO model is improved by 5.6% compared with that of the YOLOv5 model, reaching 86.1%, and the detection effect is better than that of the original network and other classical target detection networks.

2As a new tool material in the 21st century, polycrystalline cubic boron nitride tools are becoming an important and indispensable tool in modern manufacturing 1 .Polycrystalline cubic boron nitride tools, due to its high hardness and brittle characteristics, are prone to burst, cracking, ablation and other defects on the surface due to improper power parameters during laser cutting, which in turn affects its cutting performance and service life.Therefore, in the process of rapid development of modern manufacturing industry, it is particularly important to realize fast and high-precision laser cutting polycrystalline cubic boron nitride tool surface defect detection.

3Traditional surface defect detection methods rely on the original characteristics of the local defects, roughly through the manual visual inspection method, mechanical device contact detection method and machine vision inspection method and other stages 2 .These traditional methods work in limited environmental conditions, limiting efficiency.In recent years, the research and application of deep learning convolutional neural networks have developed rapidly and achieved remarkable results in the field of computer vision, and the deep learning method has gradually taken a dominant position in the field due to the excellent performance advantages it shows when dealing with industrial images with complex backgrounds and insignificant defects 3 .However, samples with surface defects in industrial cutting processes are often difficult to obtain and suffer from problems such as class imbalance, making it difficult to train deep learning models.The current mainstream practice of algorithmic improvement around the surface defect detection accuracy problem of deep learning algorithms is to optimize the network structure, introduce the attention mechanism, improve the loss function and so on.In the research on defect detection based on deep learning technology, in 2015, Ren et al. 4 introduced the regional proposal network as an "attention" mechanism for the first time to guide the network to locate targets, enhance feature extraction, capabilities, and improve detection accuracy; In the same year, Joseph et al. 5 proposed the YOLO algorithm, which solves object detection as a regression problem.Unlike the Faster R-CNN, which requires repeated training of the RPN network and the Fast R-CNN 6 network, the YOLO algorithm is trained and detected in a separate network, achieving fast detection with high accuracy.Subsequently, scholars proposed algorithms such as YOLOv2-9 [7][8][9][10][11][12] to further improve the accuracy and detection speed of the model.YOLO algorithm with its real-time processing advantages and defect detection capabilities can meet the industrial realtime inspection needs, is widely used in various fields, and has been continuously optimized and developed.Su et al. 13 improved the yolov3 model by introducing the SE attention mechanism and the spatial pyramid pooling module for detecting apparent bridge damage in complex contexts; Li et al. 14 improved the yolov4 model by introducing a dual-channel feature enhancement module to ameliorate the local information loss and gradient propagation blockage caused by four-chain convolution in PANet networks for detecting fabric surface defects; Zhu et al. 15 proposed the MFF-YOLO model by constructing a multi-scale feature fusion network and designing a reweighting screening method for achieving accurate detection of tunnel defects; Xu et al. 16 improved the yolov7 algorithm by introducing the Le-HorBlock module to the CBS module and the Coordinate Attention module to construct a surface defect detection model for pipeline welds.

4Although deep learning methods have achieved a large number of research results in the field of target detection, not much research has been done in the field of defect detection in laser-cut polycrystalline cubic boron nitride tools.Therefore, it is prospective to investigate the application of deep learning in defect detection of laser-cut polycrystalline cubic boron nitride tools.

5This study aims at the problem of low detection accuracy of laser cutting polycrystalline cubic boron nitride tool defect detection.Firstly, a proprietary dataset is produced through electron microscope acquisition; Second, in terms of data processing, the AFFS-YOLO model is proposed.The model can effectively improve the accuracy and reliability of polycrystalline cubic boron nitride tool surface defect detection, which is of positive academic significance for advancing the development of the fusion of deep learning and laser cutting polycrystalline cubic boron nitride tool defect detection.

6The main contributions of this paper are as follows:

7(1) Compiled a proprietary dataset of laser-cut polycrystalline cubic boron nitride tool defects, which can meet the detection of common surface defects;

8(2) In the backbone network, the C3SE module is constructed by modeling the correlation between feature channels to enhance the feature extraction and processing capability of the backbone network;

9(3) In the neck network, the adaptive spatial fusion operation of the AFPN network structure as well as the direct interaction of disjoint layers are used for multi-scale information fusion to improve the detection performance;

10(4) In the head network, the soft suppression mechanism is introduced to reduce the overlapping frame scores using the attenuation function to improve the detection accuracy.

11The rest of the article is structured as follows: In the Methods section, the process of building the AFFS-YOLO model is described; In the Experimental section, the details of the self-constructed defect dataset and the configurations and hyperparameters used in the experimental training are presented; In the Results and discussion section, the evaluation performance of the model, the results obtained and the interpretation of the detailed data from the ablation experiments are presented in detail; In the Conclusion section, the key role of the experiments in the detection of surface defects on laser-cut polycrystalline cubic boron nitride tools, including the existing limitations, is discussed and summarized in the last section.

Yolov5s detection model

12The Yolo family of target detection algorithms is a single-stage end-to-end real-time target detection method, and the Yolov5 target detection network is highly regarded in the field of target detection due to its accuracy and fast detection capability.Yolov5s is the network with the shallowest network depth and smallest network width among the official 4 versions, and its network structure consists of four parts: Input, Backbone 17 , Neck 18 and Head 19 , which is shown in Fig. 1.

13Backbone network adopts the CSPDarknet53 structure, introduces the CSP 20 structure to enhance the information flow through cross-stage connections, and employs residual connections to effectively solve the gradient vanishing and gradient explosion problems in deep networks through constant mapping.Neck network with the help of Feature Pyramid Network (FPN) architecture, the network is able to fuse multi-scale feature information by means of shared feature maps, enabling the model to utilize both high-level semantic information and low-level detail information.In addition, Head network partially follows the YOLOv3 like detection head structure, which includes three different scales of detection layers to accurately predict the class and location of defects at different scales, enabling the model to perform well in the target detection task.This is the reason why we chose to improve the yolov5s model for defect detection on the surface of the laser-cut Polycrystalline Cubic Boron Nitride Tool after integrating real-time and accuracy considerations.

14After introducing the basic model of yolov5s, we will describe the advantages of each improved module over the original module in the Improved methodology.

C3SE module

15In the backbone network of YOLOv5s, the C3 module is the key component, which extracts useful information from the input feature map through multiple convolutional layers and utilizes the Bottleneck module and residual connections to achieve effective fusion of features at different levels.However, the C3 module pays equal attention to different feature channels and does not consider the correlation between different feature channels sufficiently.

16In this study, the Squeeze-and-Excitation (SE) 21 attention mechanism is combined with the C3 22 module to construct the C3SE module as in Fig. 2. On the one hand, the core of the SE attention mechanism is to learn and redistribute the weights among the feature channels, and when combined with the C3 module, the model is able to adaptively adjust the feature weights of the different channels and learn the correlations among the different channels by explicitly modeling the interdependencies among the feature channels, thus enhancing the feature extraction and processing capabilities of the backbone network.On the other hand, the SE attention mechanism is embedded into the C3 module, and when the input image reaches the C3SE through multiple convolutional layers, the Bottleneck module of the original C3 module is utilized to solve the gradient vanishing and exploding problems, and then the depth of the network is extended by stacking the convolutional layers, and the idea of cross-layer connectivity is adopted to capture more contextual information, and then two operations of squeezing and excitation are carried out immediately to improve model expressiveness of the model.

17The flowchart for performing the two operations of squeezing and excitation is shown in Fig. 3.

18F tr : X → U , After F tr feature map X becomes feature map U.The formula is defined as in Eq. 2. F sq is to use the global average pooling of channels to directly compress the W × H × C feature map containing global information into a 1 × 1 × C feature vector Z.The channel features of the C feature maps are all compressed into a single value, which makes the generated channel-level statistics Z contain contextual information and alleviates the problem of channel dependency, where Z c in Eq. 2 is the cth element of Z.

19In order to utilize the information aggregated in the compression operation, the channel dependencies are fully captured by the Excitation operation, which yields the weight s of Eq. 3:

20Finally, the attentional weights obtained earlier are weighted to the features of each channel by the Scale operation.

AFPN module

21In the yolov5s algorithm, the neck network adopts a combination of SPPF and CSP-PAN structures, which effectively improves the model's detection performance for targets of different scales.However, this structure may adopt a more fixed method in feature fusion and cannot adaptively adjust the fusion strategy according to the scale of the target, and at the same time, this structure may not be able to balance the computational efficiency well while pursuing the performance improvement.

22The introduced AFPN 23 network structure is shown in Fig. 4, which improves the accuracy and robustness of target detection by adaptively adjusting the feature fusion method and adopting an incremental fusion strategy to incrementally fuse low-level features, high-level features, and top-level features to the neck network.

23The AFPN progressively integrates Low-Level, High-Level, and top-level features in the bottom-up feature extraction process of Backbone network.In the multi-level feature fusion process, ASFF is utilized to assign different spatial weights to features at different Levels, which enhances the importance of key Levels and mitigates the effect of contradictory information from different targets.

24The key idea of ASFF is to adaptively learn the fusion spatial weights for each scale feature map in two steps: constant scaling and adaptive fusion.Its feature vector is represented as:

25In Fig. 4, the links from level1, 2, 3, 4 to ASFF1, 2, 3, 4 are fully connected.The feature map is resized before fusion.the process of fusing level1, 2, 3, 4 into ASFF-3 is to perform up-sampling, down-sampling, and pooling operations on level1, 2, 3, and 4 to make the size of level1, 2, 3, and 4 the same before fusion operation.x n→ l ij represents the feature vector at (i, j) after resize from level n to level l.The fused ASFF-L needs to satisfy the following constraints:

26This constraint is satisfied by x 1→ l ij , x 2→ l ij , x 3→ l ij , after 1 * 1 convolution to get λ l α , λ l β , λ l γ and then soft-max to output y 1 , y 2 , y 3 .The role of NMS is to filter these overlapping bounding boxes, removing those with lower confidence and retaining only those with the highest confidence, thus obtaining more accurate target detection results.

27Traditional NMS methods may incorrectly remove some bounding boxes with high confidence due to the use of hard thresholds when dealing with overlapping target boxes, leading to a decrease in detection accuracy.In contrast, Soft-NMS 24 selects the best bounding boxes more efficiently by introducing a decay function that reduces the scores of overlapping bounding boxes instead of deleting them directly, as shown in the flowchart in Fig. 5.

28The functional relationship is expressed as:

AFFS-YOLO module

29The structural features of the improved model are shown in Fig. 6.The model improvement has three main parts: First, the C3SE structure of Backbone network, which enhances the feature extraction and processing capability of the backbone network;

30Second, the AFPN structure of Neck network, which utilizes adaptive spatial fusion operation and direct interaction of non-adjacent layers for multi-scale information fusion;

31Third, the introduction of Soft-NMS soft suppression mechanism, which utilizes the attenuation function to reduce the overlapping frame score and improve the detection accuracy.

Data acquisition and processing

32The laser cutting polycrystalline cubic boron nitride tool dataset was constructed by collecting contour images of polycrystalline cubic boron nitride tools processed by Covington fiber laser cutting machine using an AO-HD208C electron microscope.Table 1 is the experimental environment parameters for data set production.

33The product samples in this dataset are all from the same batch of products processed by the same processing equipment under the same factory environmental conditions.

34Combining the data collected in the experiment with expert experience and industrial demand, we made a proprietary data set for the 4 identified defects by manual annotation, and conducted the defect detection algorithm research by offline processing.The Ablation defect is caused by the local melting, evaporation or chemical decomposition of the surface or sub-surface of the material when the high temperature laser beam interacts with the material; Burst defects are the material breaking phenomena caused by the sudden release of energy in the laser cutting process due to the uneven or excessive internal stress of the material; Adulterant is the presence of unintended ingredients or foreign substances in the material; Cracks are linear defects on the surface or inside the material due to factors such as thermal stress or material inhomogeneity.Figure 7 illustrates some typical examples of these defects.

35The final nearly 3000 images obtained by Labelimg software labeling comprise the dataset of this study, and the defect images are categorized into four categories such as AB (ablation), BU (burst), AD (adulterant), and CR (crack), which denote four types of defects, namely, ablation, burst, adulterant, and crack, respectively.Table 2 demonstrates the distribution of the dataset species defect images.

36The deep learning simulation experiments are built on a Linux system with a deep learning framework using Python and PyTorch, and the hardware setup shown in Table 3 includes components such as CPU, GPU, memory, and storage.The experiment consists of 50 epoches with a learning rate of 0.01, a weight decay factor set to 0.0005, and a gradient optimization algorithm of SGD.The default image size is 640 × 640 and the batch size is 16 threads.

Evaluation indicators

37In this study, the experiments use precision (P), recall (R), and mean accuracy (mAP) to evaluate the effectiveness of the model in detecting defects in polycrystalline cubic boron nitride cutting tools.mAP can reflect the stability and consistency of the model under different thresholds, so as to more accurately evaluate the performance of the model.In this experiment, two indicators, mAP@0.5% and mAP@0.5:0.95%, are used as the performance reference indexes, in which the recall rate indicates the proportion of all positive cases that are detected as positive cases, and the average accuracy value indicates the proportion of samples that are detected as positive cases that are truly positive cases, which can be computed from the Precision and the Recall rate.The formulae for each indicator are as follows:

38mAP [@0.5,@0.95]= mAP @0.5 +mAP @0.55 +... +mAP @0.95 10

39The Fig. 8 shows the confusion matrix generated by the AFFS-YOLO model in the laser-cut polycrystalline cubic boron nitride tool surface defects dataset, and the results show that the detection accuracies of CR and BU reach 91% and 92%, respectively, while the detection accuracies of AD and AB are 64% and 77%, respectively, and mAP@0.5 reaches 86.1%, and the precision-recall curve is shown in Fig. 9.In practical scenarios, laser cutting is supposed to utilize high-energy laser beam irradiation, which will form a texture on the material surface.During image acquisition using an electron microscope, the texture features produced by cutting are easily confused with ablation defects, which means that the model shows limitations in recognizing multi-scale objects as well as image details.

40The study used the AFFS-YOLO model for the surface defect detection of laser-cutting polycrystalline cubic boron nitride tools, and successfully detected a variety of types and sizes of defects, and some of the results are shown in Fig. 10.

41The training data is represented as a scatter plot to obtain the curve shown in Fig. 11, which is the loss function curve.It can be seen through observation that: in the 20th round, the loss function begins to converge and then tends to be stable, the decline of the loss function value indicates that the model is gradually optimized during the training process, while the convergence and stability of the loss function value indicates that the model has reached the optimal state.

42In order to test the effectiveness of each model for various types of defect detection to highlight the importance of each module, the study has counted the results of different types of accuracies as shown in Fig. 12; Table 4.The four parts in Fig. 12

Ablation experiment

43In order to evaluate the performance of the AFFS-YOLO model proposed in this paper more accurately, the study conducted ablation tests and obtained the experimental results as shown in Fig. 13; Table 4.The results show that the model AFFS-YOLO achieves 86.1% accuracy.

44The study in Table 5 shows that the mAP, Recall and Gflops of the model are significantly improved by adding AFPN through the deep fusion extraction of feature information.

45After the model adds to reprocess the prediction frames, the accuracy is improved by 5.6% compared to the base model, although the Gflops is slightly decreased compared to adding AFPN.

46In this study, when the three modules are combined together to construct the AFFS-YOLO model, the result is a synergistic effect that outperforms the effect of each module acting individually and raises the upper limit of the total performance of the model.

Conclusion

47In the field of deep learning, there are differences and uniqueness of target detection models for different scenarios.In this study, the AFFS-YOLO model is proposed for the specific scenario of defect detection in lasercut polycrystalline cubic boron nitride tools.After simulation experiments, it is verified that the improved model can meet the current laser-cutting polycrystalline cubic boron nitride tool defect detection requirements, and the average accuracy rate reaches 86.1%.Compared with the yolov5s base model and other inspection models, the accuracy of this method is higher.

48Although the dataset provided in this paper contains four defect types, there are some defect types that are not included.The defect dataset is difficult to obtain during industrial processing, resulting in a small number of samples.Therefore, the proposed defect detection method still has some limitations.

49In our future work, we will try to investigate small-sample defect detection techniques to effectively improve the effect of small dataset on detection accuracy.In addition, we note that in the industrial field mostly deployed with edge mobile devices, and deep learning models usually have a large number of parameters, which makes the models complex and difficult to deploy to resource-limited devices, so we will also consider using methods such as knowledge distillation to reduce the model size and explore lightweight target detection algorithms.In summary, the improved AFFS-YOLO model in this study performs well in detecting defects in laser-cut polycrystalline cubic boron nitride tools, providing new ideas and methods for research in this field.We hope that these works can provide useful references and guidance for practical applications and future research.

Fig. 2 .

50Fig. 2. C3SE module structure diagram.

Fig. 1 .

51Fig. 1.Yolov5 detection model structure diagram.

Fig. 3 .

52Fig. 3. Squeeze-and-Excitation module.

Fig. 4 .

53Fig. 4. AFPN module structure diagram.

Fig. 5 .

54Fig. 5. SOFT-NMS module flow chart.

Fig. 6 .

55Fig. 6.AFFS-YOLO module structure diagram.

Fig. 7 .

56Fig. 7. Examples of typical defects.

57represent four types of defects, and different modules are added to each part from left to right, where the original model is shown in blue and the improved AFFS-YOLO model is shown in red.The results show that the improved model proposed in this paper outperforms the original model in all types, which further validates the effectiveness of the model in detecting defects in laser-cut polycrystalline cubic boron nitride tools.

Fig. 8 .

58Fig. 8.The confusion matrix generated by the AFFS-YOLO model.

Fig. 10 .

59Fig. 10.Defect detection results.

Fig. 9 .

60Fig. 9. PR curve.

Fig. 11 .

61Fig. 11.Comparison of loss function curves of each frame.

Fig. 12 .

62Fig. 12.The accuracy of each framework is compared in the absence of defect types.

Fig. 13 .

63Fig. 13.Performance comparison of typical target detection frameworks.

Table 1 .

64The experimental environment parameters for data set production.

Table 3 .

65Simulation Experiment Configuration.

Table 2 .

66Distribution of defective images in the dataset.

Table 4 .

67Comparative experiments of Improved algorithms.

Table 5 .

68Performance comparison of target detection frameworks.

참고문헌 30건

  1. 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
  2. Fast R-CNN 2015 10.1109/iccv.2015.169
  3. YOLO9000: Better, Faster, Stronger 2017 10.1109/cvpr.2017.690
  4. Squeeze-and-Excitation Networks 2018 10.1109/cvpr.2018.00745
  5. CBAM: Convolutional Block Attention Module Lecture notes in computer science · Springer Science+Business Media · 2018 10.1007/978-3-030-01234-2_1
  6. You Only Look Once: Unified, Real-Time Object Detection 2016 10.1109/cvpr.2016.91
  7. Soft-NMS — Improving Object Detection with One Line of Code 2017 10.1109/iccv.2017.593
  8. CSPNet: A New Backbone that can Enhance Learning Capability of CNN arXiv (Cornell University) · Cornell University · 2019 10.48550/arxiv.1911.11929
  9. YOLOv4: Optimal Speed and Accuracy of Object Detection arXiv (Cornell University) · Cornell University · 2020 10.48550/arxiv.2004.10934
  10. 2020 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR) 2022 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR) · 2020 10.1109/cvpr42600.2020
  11. Orthogonal Convolutional Neural Networks 2022 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR) · 2020 10.1109/cvpr42600.2020.01152
  12. EfficientDet: Scalable and Efficient Object Detection 2020 10.1109/cvpr42600.2020.01079
  13. CSPNet: A New Backbone that can Enhance Learning Capability of CNN 2020 10.1109/cvprw50498.2020.00203
  14. Coordinate Attention for Efficient Mobile Network Design 2021 10.1109/cvpr46437.2021.01350
  15. Laser ablation and processing of polycrystalline cubic boron nitride cutting tool material The International Journal of Advanced Manufacturing Technology · Springer Science+Business Media · 2021 10.1007/s00170-021-07996-2
  16. Online Detection of Surface Defects Based on Improved YOLOV3 Sensors · Multidisciplinary Digital Publishing Institute · 2022 10.3390/s22030817
  17. Small object detection method with shallow feature fusion network for chip surface defect detection Scientific Reports · Nature Portfolio · 2022 10.1038/s41598-022-07654-x
  18. 2017 IEEE International Conference on Computer Vision (ICCV) 2017 10.1109/iccv37128.2017
  19. YOLOv6: A Single-Stage Object Detection Framework for Industrial Applications arXiv (Cornell University) · Cornell University · 2022 10.48550/arxiv.2209.02976
  20. Toward surface defect detection in electronics manufacturing by an accurate and lightweight YOLO-style object detector Scientific Reports · Nature Portfolio · 2023 10.1038/s41598-023-33804-w
  21. AFPN: Asymptotic Feature Pyramid Network for Object Detection arXiv (Cornell University) · Cornell University · 2023 10.48550/arxiv.2306.15988
  22. MFF-YOLO: An Accurate Model for Detecting Tunnel Defects Based on Multi-Scale Feature Fusion Sensors · Multidisciplinary Digital Publishing Institute · 2023 10.3390/s23146490
  23. YOLOv7: Trainable Bag-of-Freebies Sets New State-of-the-Art for Real-Time Object Detectors 2023 10.1109/cvpr52729.2023.00721
  24. Permute-MAML: exploring industrial surface defect detection algorithms for few-shot learning Complex & Intelligent Systems · Springer Science+Business Media · 2023 10.1007/s40747-023-01219-9
  25. YOLO_Bolt: a lightweight network model for bolt detection Scientific Reports · Nature Portfolio · 2024 10.1038/s41598-023-50527-0
  26. Research on surface defect detection algorithm of pipeline weld based on YOLOv7 Scientific Reports · Nature Portfolio · 2024 10.1038/s41598-024-52451-3
  27. AFPN: Asymptotic Feature Pyramid Network for Object Detection 2022 IEEE International Conference on Systems, Man, and Cybernetics (SMC) · 2023 10.1109/smc53992.2023.10394415
  28. Research on fabric surface defect detection algorithm based on improved Yolo_v4 Scientific Reports · Nature Portfolio · 2024 10.1038/s41598-023-50671-7
  29. Enhanced YOLO v3 for precise detection of apparent damage on bridges amidst complex backgrounds Scientific Reports · Nature Portfolio · 2024 10.1038/s41598-024-58707-2
  30. YOLOv9: Learning What You Want to Learn Using Programmable Gradient Information Lecture notes in computer science · Springer Science+Business Media · 2024 10.1007/978-3-031-72751-1_1