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

ConvLSTM-Att: An Attention-Based Composite Deep Neural Network for Tool Wear Prediction

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

기본 정보

저자
  1. Renwang Li — School of Mechanical Engineering, Zhejiang Sci-Tech University, Hangzhou 310018, China
  2. Xiaolei Ye — School of Mechanical Engineering, Zhejiang Sci-Tech University, Hangzhou 310018, China
  3. Fangqing Yang — School of Mechanical Engineering, Zhejiang Sci-Tech University, Hangzhou 310018, China
  4. Ke-Lin Du — Department of Electrical and Computer Engineering, Concordia University, Montreal, QC H3G 1M8, Canada
DOI
10.3390/machines11020297
저널
Machines
발행년도
2023
발행기관
Multidisciplinary Digital Publishing Institute
피인용수
19
라이선스
cc-by
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.3390/machines11020297
토픽
Gear and Bearing Dynamics Analysis
OpenAlex ID
W4321253252

평가 내용

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

초록

In order to improve the accuracy of tool wear prediction, an attention-based composite neural network, referred to as the ConvLSTM-Att model (1DCNN-LSTM-Attention), is proposed. Firstly, local multidimensional feature vectors are extracted with the help of a one-dimensional convolutional neural network (1D-CNN), which avoids the loss of wear features caused by manual feature extraction. Then the temporal relationship learning between multidimensional feature vectors is performed by introducing a long short-term memory (LSTM) network to make up for the lack of long-short distance dependence of the captured sequence of the CNN network. Finally, an attention mechanism is applied to strengthen the ability to extract key information from tool-wearing temporal features. The proposed ConvLSTM-Att model is trained with the measured tool wear data and then performs as a tool wear predictor. The model is compared with several state-of-the-art models on the PHM tool wear data sets. It significantly outperforms the other models in terms of prediction accuracy, but with similar computational complexity.

본문 36,594자

본문 펼치기
In order to improve the accuracy of tool wear prediction, an attention-based composite neural network, referred to as the ConvLSTM-Att model (1DCNN-LSTM-Attention), is proposed.Firstly, local multidimensional feature vectors are extracted with the help of a one-dimensional convolutional neural network (1D-CNN), which avoids the loss of wear features caused by manual feature extraction.Then the temporal relationship learning between multidimensional feature vectors is performed by introducing a long short-term memory (LSTM) network to make up for the lack of long-short distance dependence of the captured sequence of the CNN network.Finally, an attention mechanism is applied to strengthen the ability to extract key information from tool-wearing temporal features.The proposed ConvLSTM-Att model is trained with the measured tool wear data and then performs as a tool wear predictor.The model is compared with several state-of-the-art models on the PHM tool wear data sets.It significantly outperforms the other models in terms of prediction accuracy, but with similar computational complexity. Introduction As a result of China's vigorous promotion of the Manufacturing Industry 2025, the machinery manufacturing industry has increasingly higher requirements for intelligence [1,2].As an important part of machinery production and processing, the degree of wear and tear on tools severely affects the accuracy of workpieces and the manufacturing costs of enterprises.Most of the traditional tool changing methods are based on experience, determining the timing of tool stopping and tool changing.Changing a tool too early will cause wastage of the tool [3], whereas changing a tool too late will reduce the quality of a workpiece and lead to scrapping.During the machining process, timely and accurate prediction of tool wear is beneficial to both improving the machining accuracy of products and reducing the manufacturing and labor costs of enterprises.Therefore, intelligent and accurate prediction of tool wear has become an important topic. Introduction Direct and indirect measurements are the two main approaches to tool wear prediction [4].The direct measurement approach requires off-line measurement of the tool between machining intervals, which greatly affects the coherence of machining and is difficult to apply in production practice.The indirect measurement method is primarily used to predict tool wear by mining and analyzing the relationship between the data taken during machining and the tool wear data.However, the data acquired during machining is subject to noise in the industrial environment, which reduces the validity of the data [5]. Introduction Traditional machine learning approaches, such as artificial neural networks [6], fuzzy logic [7], the hidden Markov model and support vector machine, as well as metaheuristic approaches [8,9], can be implemented for tool wear prediction, but the prediction accuracy is generally low [10].It is difficult for traditional machine learning approaches to predict the true data directly from the measured data [11].Therefore, some preprocessing methods Machines 2023, 11, 297 2 of 13 such as time-frequency domain analysis [12], principal component analysis (PCA) [13], and empirical modal decomposition (EMD) [14] are usually required for the data.However, extracted features are easy to underweight in the data that reflect tool wear, and the tool wear data are essentially time series, so the above approaches cannot tap the time-series features between different data samples. Introduction In recent years, deep learning [6], with its excellent ability to automatically learn features, has provided a new idea for dealing with large-scale mechanical data [15].It is widely used in the fields of computer vision [16], speech recognition [17], natural language processing [18], and mechanical fault diagnosis [19].The tool wear prediction model based on deep learning has significantly improved the accuracy of tool wear prediction by virtue of its powerful data processing as well as feature extraction capability [19]. Introduction Convolutional neural networks (CNN) have excellent performance in processing data, text, and image recognition.They can analyze the original data and extract highdimensional hidden features, effectively circumventing the problems that arise from handcrafted feature extraction.Kothuru et al. [20] established a CNN-based tool condition prediction model for tool wear prediction by analyzing the spectral characteristics of the acoustic signals during machining.Xu et al. [21] used CNN to extract features from the collected vibration data during machining and designed an extended convolutional residual block and fully connected layer to achieve effective prediction of tool wear.The long short-term memory (LSTM) network is a type of recurrent neural network that effectively avoids the vanishing gradient problem in the recurrent neural network and better mines the temporal features between different temporal data sets [22].In order to capture the long-term dependence of tool wear data, Zhao et al. [23] presented a deep LSTM model to predict tool wear by regression, confirming that LSTM has certain advantages compared with conventional recurrent neural networks in processing temporal data.Cai et al. [24] proposed a hybrid model based on LSTM to extract the temporal features from the raw sequence data through a designed stacked LSTM and finally in a nonlinear regression model to obtain the predicted tool wear.Chan et al. [25] combined CNN and LSTM and proposed an LSTM-CNN model.It uses CNN to extract tool wear features, and then mines the temporal features of tool wear by LSTM, to achieve effective prediction of tool wear.Schwendemann et al. [26] propose a deep learning method based on transfer learning.This method uses the windowed envelope, de-noising, and normalization processing of low-frequency sensor data to form the intermediate domain image and uses CNN and LSTM to perform the estimation of remaining useful life and realize effective transfer learning between different bearing types.Qiao et al. [27] collected vibration and current signals as well as tool wear as input to construct a training data set and input the features extracted by the multi-scale convolutional LSTM model to a bidirectional LSTM model to predict tool wear.It meets the requirements of high accuracy and low latency.Attention is a weight assignment mechanism that improves learning accuracy by learning to continuously update the attention weights corresponding to different features and to ignore unimportant signals [28].Huang et al. [29] combined CNN with attention and proposed a multiscale CNN based on attention fusion, which will improve the accuracy of tool wear prediction by extracting tool wear data through multi-layer convolution as input and passing them to a multilayer attention mechanism. Introduction The above methods consider, to some extent, the feature extraction of tool wear data in spatial and temporal dimensions and the contribution of different data to tool wear in the spatial dimension, respectively.However, they do not consider the different specifics of different data features fused with spatial and temporal dimensions for tool wear prediction.In order to enhance the extraction of key information while fusing different dimensional features of the measured data, we propose a composite neural network model based on an attention mechanism.The model uses a 1D-CNN neural network to extract multidimensional feature data.Then, in order to fuse the features in the temporal dimension, an LSTM network is introduced to extract sequential features by learning the temporal relationship between multidimensional features through an LSTM layer.Finally, the ability of the model to obtain key wear data features is improved with the help of the attention mechanism, resulting in an efficient and accurate prediction of tool wear. Composition of the Prediction Model The CNNs are feedforward neural networks with special structures that excel at image and speech recognition.Among them, the one-dimensional convolutional neural network (1D-CNN) has excellent performance in processing text data [30].The 1D-CNN structure is shown in Figure 1, which is composed of three major layers, namely, the convolutional layer, the pooling layer, and the fully connected layer [31].The convolutional layer slides with the elements in the perceptual field at a prespecified step and makes a nonlinear mapping through the activation function to extract the feature vectors.It is the core layer of the whole network.The pooling layer reduces the dimensions of the feature vectors outputted from the convolutional layer and keeps the most significant ones locally to reduce operations.The fully connected layer is a fully connected neural network, which does a nonlinear transformation of the feature vectors to generate the specified dimensions and passes them on to generate the classification result [32]. Composition of the Prediction Model sion, an LSTM network is introduced to extract sequential features by learning the temporal relationship between multidimensional features through an LSTM layer.Finally, the ability of the model to obtain key wear data features is improved with the help of the attention mechanism, resulting in an efficient and accurate prediction of tool wear. One-Dimensional Convolutional Neural Network (1D-CNN) The CNNs are feedforward neural networks with special structures that excel at image and speech recognition.Among them, the one-dimensional convolutional neural network (1D-CNN) has excellent performance in processing text data [30].The 1D-CNN structure is shown in Figure 1, which is composed of three major layers, namely, the convolutional layer, the pooling layer, and the fully connected layer [31].The convolutional layer slides with the elements in the perceptual field at a prespecified step and makes a nonlinear mapping through the activation function to extract the feature vectors.It is the core layer of the whole network.The pooling layer reduces the dimensions of the feature vectors outputted from the convolutional layer and keeps the most significant ones locally to reduce operations.The fully connected layer is a fully connected neural network, which does a nonlinear transformation of the feature vectors to generate the specified dimensions and passes them on to generate the classification result [32]. Long Short-Term Memory (LSTM) Network The LSTM is a recurrent neural network with long-term and short-term memories between feature vectors, and the memories can be dynamically adjusted with the input, which greatly solves problems such as memory degradation caused by too long sequences [33].At the same time, LSTM can also solve the problem of vanishing gradients that exists in conventional recurrent neural networks and can better exploit the temporal relationship between tool and feature vectors.The core idea of LSTM is to introduce input gates, forgetting gates, and output gates for each memory unit [34].The structure of LSTM is shown in Figure 2. Long Short-Term Memory (LSTM) Network The LSTM is a recurrent neural network with long-term and short-term memories between feature vectors, and the memories can be dynamically adjusted with the input, which greatly solves problems such as memory degradation caused by too long sequences [33].At the same time, LSTM can also solve the problem of vanishing gradients that exists in conventional recurrent neural networks and can better exploit the temporal relationship between tool and feature vectors.The core idea of LSTM is to introduce input gates, forgetting gates, and output gates for each memory unit [34].The structure of LSTM is shown in Figure 2. Long Short-Term Memory (LSTM) Network The forget gate decides what is deleted from the memory cell according to the previous hidden layer state h t−1 ∈ R n , n is the LSTM number of hidden layer neurons, with the current input d t ∈ R k , k being the number of convolution kernels, by the sigmoid function.The input gate decides what to save from the previous hidden state h t−1 with the current input d t according to the sigmoid function and gets a candidate parameter c t ∈ R n according to the tanh function.Combining the forget gate with the input gate, the current state c t ∈ R n of the memory cell is updated.The output gate uses the sigmoid function to determine what is output from h t−1 and d t .The outputs of the output gate are combined with c t which is processed by the tanh function to selectively output the hidden layer state h t at the current time.The LSTM model is given by Long Short-Term Memory (LSTM) Network where f t ∈ R n is the forget gate output at the time t, i t ∈ R n is the input gate output at time t, c t is the state of the memory cell at the time t, o t ∈ R n is the output gate output at the time t, σ 1 (•) is the sigmoid function, σ 2 (•) is usually selected as the tanh function, h t is the hidden layer state at time t, d t is the input at time t, Attention Mechanism The attention mechanism is a bionic mechanism in deep learning, whose essence is to give more weight to the parts that need to be focused on [35].The essential idea of the attention mechanism is shown in Figure 3. Attention Mechanism The calculation of the attention mechanism can be divided into two steps.First, the degree of correlation between the state output h t of the hidden layer of the LSTM layer and the query vector q ∈ R n is calculated using the attention score function s(.), and the corresponding attention weight α t is obtained using the softmax function.Second, the output ŷ t ∈ R t of the attention layer is obtained by weighted summation based on the attention weights.The steps are given by Attention Mechanism where m is the number of time steps. Attention Mechanism Then, input ŷ t into the regression layer to get the predicted tool wear at the current time.where is the number of time steps.Then, input into the regression layer to get the predicted tool wear at the time. ConvLSTM-Att Model Construction According to Zhou et al. [36], the most frequently used sensors in the study o process sensor configurations are force, vibration, and acoustic sensors. ConvLSTM-Att Model Construction According to Zhou et al. [36], the most frequently used sensors in the study of milling process sensor configurations are force, vibration, and acoustic sensors.Therefore, in this paper, the cutting force and vibration along the x-, y-, and z-axes, and the acoustic emission at time t, x i t ∈ R 1×7 , i ∈ {1, 2, . . . ,m} being the tap index, are selected as the inputs of the model for training the ConvLSTM-Att model, ConvLSTM-Att Model Construction . A one-dimensional CNN is first used to extract the high-dimensional features in the measured time-domain data through multiple convolutional layers.The weights of the CNN are updated by backpropagating the error calculated by the loss function.As the number of network layers increases, the problem of the vanishing gradient becomes increasingly obvious.To reduce the impact of vanishing gradients, each convolutional layer is followed by a connection layer, which includes batch normalization, ReLU, and max-pooling layers.The structure is shown in Figure 4.The calculation of the attention mechanism can be divided into two steps.First, the degree of correlation between the state output of the hidden layer of the LSTM layer and the query vector ∈ is calculated using the attention score function (.), and the corresponding attention weight is obtained using the softmax function.Second, the output ∈ of the attention layer is obtained by weighted summation based on the attention weights.The steps are given by ConvLSTM-Att Model Construction where is the number of time steps.Then, input into the regression layer to get the predicted tool wear at the current time. ConvLSTM-Att Model Construction According to Zhou et al. [36], the most frequently used sensors in the study of milling process sensor configurations are force, vibration, and acoustic sensors.Therefore, in this paper, the cutting force and vibration along the -, -, and -axes, and the acoustic emission at time , ∈ , ∈ 1,2, … , being the tap index, are selected as the inputs of the model for training the ConvLSTM-Att model, = ( , ⋯ , ), ∈ .A one-dimensional CNN is first used to extract the high-dimensional features in the measured time-domain data through multiple convolutional layers.The weights of the CNN are updated by backpropagating the error calculated by the loss function.As the number of network layers increases, the problem of the vanishing gradient becomes increasingly obvious.To reduce the impact of vanishing gradients, each convolutional layer is followed by a connection layer, which includes batch normalization, ReLU, and maxpooling layers.The structure is shown in Figure 4.As shown in Figure 5, the ConvLSTM-Att model first automatically mines the features in the tool wear data x t through the 1D-CNN layer and uses them as the input of the LSTM layer.Then, through the LSTM layer, it learns the temporal relationship between the multidimensional vectors and gets the corresponding hidden layer state vector h t .Finally, through the attention layer, the attention weight α t of each input is calculated, and the predicted tool wear ŷt ∈ R t is obtained through the nonlinear regression layer. ConvLSTM-Att Model Construction tures in the tool wear data through the 1D-CNN layer and uses them as the the LSTM layer.Then, through the LSTM layer, it learns the temporal relation tween the multidimensional vectors and gets the corresponding hidden layer sta .Finally, through the attention layer, the attention weight of each input is ca and the predicted tool wear ∈ is obtained through the nonlinear regression ConvLSTM-Att Model Construction where ŷi is the predicted wear and y i ∈ R t is the measured wear.The accuracy indices are the mean absolute error (MAE), root mean square error (RMSE) and coefficient of determination R2, given by ConvLSTM-Att Model Construction where y is the average of all measured wear. Experimental Setting The proposed method was validated using the tool wear data set published by the PHM Association in 2010 [37].The experimental parameters are shown in Table 1.The tool used for the experiments was a three-tooth end mill, and the material machined was HRC52 stainless steel.The experiments were conducted at room temperature with dry cutting-that is, no cutting fluid was used.The force and vibration data in the x-, yand z-axes during each machining process and the acoustic emission data during the tool move process were collected using a Kistler force gauge, an acceleration sensor, and an acoustic emission sensor, respectively.During each machining process, the tool cut in the x-direction had a length of 108 mm.After each tool move, the wear of the rear face of each tool cutter flute was measured with a LEICA MZ12 microscope to get the wear of each tool move.The sensor setup is shown in Figure 6. Experimental Setting A total of three tools (C1, C4, and C6) were used to collect data for the experiments, each acquiring 315 samples for a total of 945 samples.Each sample contains seven components: cutting force F x , F y , F z , vibration Z x , Z y , Z z , acoustic emission β as input, and the wear of three cutter flutes as output.According to the recommendations of ISO 8688-2 (1989), the average of the wears of the three cutter flutes was taken as the measured wear of that sample, which was used as the output in the data set.Take the tool C1 as an example, as shown in Figure 7.According to the trend of tool wear, 0~50 tool moves (wear < 90 µm) were classified as the initial wear stage, 51~190 tool moves (wear < 120 µm) as the normal wear stage, and 191~315 tool moves (wear < 173 µm) as the severe wear stage. Experimental Setting The experiments were conducted at a sampling frequency of 50 kHz, resulting in up to 200,000 data points per sample.In order to exclude the interference of the incoming and outgoing cutters and simplify the computation, three segments of 5000 data-points were selected, as shown in Figure 8.It can be seen from Figure 8 that the maximum and minimum values of the data in each segment are similar.In order to retain the data characteristics of each segment, the average value of the three segments was taken as the model input for training, so that each wear corresponded to tool wear data with a size of 5000 × 7.In order to obtain a reliable and stable model, cross validation was used, and data sets were divided.Among the C1, C4, and C6 data sets, two of the data sets are divided into a training set and a validation set for model training and model parameter adjustment.The ratio of the training set to the verification set is 8:2.The third data set was used as a test set for model evaluation. 2 (1989), the average of the wears of the three cutter flutes was taken as the measur of that sample, which was used as the output in the data set.Take the tool C1 as a ple, as shown in Figure 7.According to the trend of tool wear, 0~50 tool moves (w μm) were classified as the initial wear stage, 51~190 tool moves (wear < 120 μm normal wear stage, and 191~315 tool moves (wear < 173 μm) as the severe wear s The experiments were conducted at a sampling frequency of 50 kHz, resultin to 200,000 data points per sample.In order to exclude the interference of the incom outgoing cutters and simplify the computation, three segments of 5000 data-poin selected, as shown in Figure 8.It can be seen from Figure 8 that the maximum an mum values of the data in each segment are similar.In order to retain the data ch istics of each segment, the average value of the three segments was taken as th input for training, so that each wear corresponded to tool wear data with a size of 7. In order to obtain a reliable and stable model, cross validation was used, and d were divided.Among the C1, C4, and C6 data sets, two of the data sets are divide Experimental Design and Parameter Setting In order to verify the accuracy as well as the effectiveness of the tool wear prediction based on the proposed ConvLSTM-Att model, experiments were conducted using the same CNN, CNN-LSTM, and ConvLSTM-Att data set. Experimental Design and Parameter Setting In the convolutional model, a small convolutional kernel can reduce the complexity of the model computation, and a small convolutional step size can improve the accuracy of the feature extraction results.Therefore, the size of the convolution kernel is set to (3,7), the step length is set to 2, and the boundary fill is 1.To avoid losing too many features in the downscaling process, the pooling layer is selected as max-pooling, and the pooling size is set (4,4).The number of epochs is 500, the initial parameter of the learning rate is 0.001, which decays as the epoch increases, and the optimizer is Adam.To improve the robustness and generalization ability of the model, a dropout layer is added to the regression layer, and the retention rate is set to 0.5.The number of LSTM hidden layer neurons is 128.The maximum error is 6.3. Comparison and Analysis of Experimental Results The models are trained on the training set, the trained model parameters are adjusted on the validation set, and the models are evaluated on the test set.For each model, RMSE, MAE, and R2 are calculated on each test set separately.If the error is large, it means that the model is not properly fitted, and we need to readjust the parameters or train the model structure.The smaller the error, the higher the accuracy of the model.The prediction errors of tool wear for different models on different test sets are shown in Table 2 Experimental Design and Parameter Setting In order to verify the accuracy as well as the effectiveness of the tool wear prediction based on the proposed ConvLSTM-Att model, experiments were conducted using the same CNN, CNN-LSTM, and ConvLSTM-Att data set. Experimental Design and Parameter Setting In the convolutional model, a small convolutional kernel can reduce the complexity of the model computation, and a small convolutional step size can improve the accuracy of the feature extraction results.Therefore, the size of the convolution kernel is set to (3, 7), the step length is set to 2, and the boundary fill is 1.To avoid losing too many features in the downscaling process, the pooling layer is selected as max-pooling, and the pooling size is set (4,4).The number of epochs is 500, the initial parameter of the learning rate is 0.001, which decays as the epoch increases, and the optimizer is Adam.To improve the robustness and generalization ability of the model, a dropout layer is added to the regression layer, and the retention rate is set to 0.5.The number of LSTM hidden layer neurons is 128.The maximum error is 6.3. Comparison and Analysis of Experimental Results The models are trained on the training set, the trained model parameters are adjusted on the validation set, and the models are evaluated on the test set.For each model, RMSE, MAE, and R2 are calculated on each test set separately.If the error is large, it means that the model is not properly fitted, and we need to readjust the parameters or train the model structure.The smaller the error, the higher the accuracy of the model.The prediction errors of tool wear for different models on different test sets are shown in Table 2.The calculation times of the 1D-CNN, CNN-LSTM, and ConvLSTM-Att models are shown in Table 3.The performance results of different models for tool wear prediction on different test sets are shown in Figures 9-11.It can be seen that the 1D-CNN model has the worst overall performance, which is shown in Figure 9.The model-fitting results are poor, and the predicted results of this model at the initial and severe wear stages of the tool have a large gap with the measured wear, which leads to model errors that are generally large.Then, as shown in Figure 10, the accuracy of the CNN-LSTM model is substantially improved compared with that of the 1D-CNN model, and the predicted wear of the model basically fits the measured wear.Due to the fact that the measured time-domain data of tool wear are essentially sequential data, adding the learning of temporal features to the 1D-CNN can improve the accuracy of the model's prediction.However, there is still a large error in predicting the wear at the initial and severe wear stages of the tool, especially at the severe wear stage for tool C6.From Figure 11, the tool wear predicted using the ConvLSTM-Att model is closer to the measured one.The model improves the ability to extract the key features of tool wear and thus has achieved a higher level of accuracy in predicting the normal and severe wear stages of the tool.Although the prediction of the initial tool wear phase still has some errors, it has been improved compared to the CNN-LSTM model. Comparison and Analysis of Experimental Results From Table 3, the CNN-LSTM model has a complexity that is slightly higher than 1D-CNN and CNN-LSTM due to the extra structural components in the model.Its complexity is higher than 1D-CNN and CNN-LSTM by 91.6% and 14.8%, respectively.RNN and 1D-CNN models have similar complexity, but the 1D-CNN model has better prediction accuracy.The CNN-LSTM and TDconvLSTM models have similar complexity and prediction accuracy.Compared with the CNN-LSTM model, the ConvLSTM-Att model has similar complexity but better prediction accuracy. Comparison and Analysis of Experimental Results On the three different test sets, the ConvLSTM-Att model reduced the RMSE by 60.8%, 67.4%, and 63.7%, and the MAE by 61.7%, 71.3%, and 68.8%, respectively, compared with the 1D-CNN model.When compared with the CNN-LSTM model, the RMSE was reduced by 34.4%, 37.1%, and 46.3%, respectively, and the MAE decreased by 39.6%, 37.6%, and 47.7%, respectively.The results of the ConvLSTM-Att model are also compared with several state-of-the-art models using the same data sets, as shown in Table 2. Compared with these models, the ConvLSTM-Att model has the smallest RMSE and MAE in predicting tool wear, which further confirms the effectiveness and superiority of the ConvLSTM-Att model. Conclusions In this paper, a tool wear prediction model based on an attentional composite neural network is proposed.Based on a large amount of tool wear data, the original time-domain data in the tool machining state is used as input, and the wear features are mined by 1D-CNN.Using LSTM and attention mechanisms to learn the important tool wear features, the measured wear is approximated by regression.By comparing the predicted tool wear and the measured tool wear, it is confirmed that the ConvLSTM-Att model can well reflect It can be seen that the 1D-CNN model has the worst overall performance, which is shown in Figure 9.The model-fitting results are poor, and the predicted results of this model at the initial and severe wear stages of the tool have a large gap with the measured wear, which leads to model errors that are generally large.Then, as shown in Figure 10, the accuracy of the CNN-LSTM model is substantially improved compared with that of the 1D-CNN model, and the predicted wear of the model basically fits the measured wear.Due to the fact that the measured time-domain data of tool wear are essentially sequential data, adding the learning of temporal features to the 1D-CNN can improve the accuracy of the model's prediction.However, there is still a large error in predicting the wear at the initial and severe wear stages of the tool, especially at the severe wear stage for tool C6.From Figure 11, the tool wear predicted using the ConvLSTM-Att model is closer to the measured one.The model improves the ability to extract the key features of tool wear and thus has achieved a higher level of accuracy in predicting the normal and severe wear stages of the tool.Although the prediction of the initial tool wear phase still has some errors, it has been improved compared to the CNN-LSTM model. Conclusions From Table 3, the CNN-LSTM model has a complexity that is slightly higher than 1D-CNN and CNN-LSTM due to the extra structural components in the model.Its complexity is higher than 1D-CNN and CNN-LSTM by 91.6% and 14.8%, respectively.RNN and 1D-CNN models have similar complexity, but the 1D-CNN model has better prediction accuracy.The CNN-LSTM and TDconvLSTM models have similar complexity and prediction accuracy.Compared with the CNN-LSTM model, the ConvLSTM-Att model has similar complexity but better prediction accuracy. Conclusions On the three different test sets, the ConvLSTM-Att model reduced the RMSE by 60.8%, 67.4%, and 63.7%, and the MAE by 61.7%, 71.3%, and 68.8%, respectively, compared with the 1D-CNN model.When compared with the CNN-LSTM model, the RMSE was reduced by 34.4%, 37.1%, and 46.3%, respectively, and the MAE decreased by 39.6%, 37.6%, and 47.7%, respectively.The results of the ConvLSTM-Att model are also compared with several state-of-the-art models using the same data sets, as shown in Table 2. Compared with these models, the ConvLSTM-Att model has the smallest RMSE and MAE in predicting tool wear, which further confirms the effectiveness and superiority of the ConvLSTM-Att model. Conclusions In this paper, a tool wear prediction model based on an attentional composite neural network is proposed.Based on a large amount of tool wear data, the original time-domain data in the tool machining state is used as input, and the wear features are mined by 1D-CNN.Using LSTM and attention mechanisms to learn the important tool wear features, the measured wear is approximated by regression.By comparing the predicted tool wear and the measured tool wear, it is confirmed that the ConvLSTM-Att model can well reflect the trend of aggravating tool wear during machining.Under the same test set, the error rate in the tool wear prediction using the ConvLSTM-Att model has decreased significantly compared with other state-of-the-art models.For different test sets, the prediction Figure 1 . Figure 1.Network structure of the 1D-CNN. is the number of the convolution-pooling layers Figure 1 . Figure 1.Network structure of the 1D-CNN.n c is the number of the convolution-pooling layers. 1 Figure 2 . Figure 2. LSTM network structure Figure 2 . Figure 2. LSTM network structure. Machines 2023 ,Figure 3 . Figure 3.The attention mechanism Machines 2023 ,Figure 3 . Therefor paper, the cutting force and vibration along the -, -, and -axes, and the acous sion at time , ∈ , ∈ 1,2, … , being the tap index, are selected as the i the model for training the ConvLSTM-Att model, = ( , ⋯ , ), ∈ .A one-dimensional CNN is first used to extract the high-dimensional featur measured time-domain data through multiple convolutional layers.The weigh CNN are updated by backpropagating the error calculated by the loss function Figure 3 . Figure 3.The attention mechanism. Figure 3 . Figure 3.The attention mechanism Figure 4 . Figure 4.A connection layer following each convolutional layer. Figure 5 .Algorithm 1 . Figure 5. ConvLSTM-Att model Figure 5 . Figure 5. ConvLSTM-Att model. 3. 2 .Algorithm 1 . The ConvLSTM-Att Model for Predicting the Tool Wear Process All data are first normalized and processed, and then divided into different data sets.Train the ConvLSTM-Att model using the training set data.The accuracy of the model is improved by adjusting the model parameters and structure according to the validation results from the validation set.Apply the optimal ConvLSTM-Att model to the test set and output the predicted wear to evaluate the model's performance.The specific operations are given in Algorithm 1. Training of the ConvLSTM-Att model Input: Tool wear data set D, learning rate η, epoch T, LSTM neuron number n, maximum error ε. 1.All data are processed by max-min normalization.2. Divide D into the training set D tr , validation set D v and test set D te .3. Perform training with D tr : do Adjust η, T, n, ε.Train ConvLSTM-Att model with D tr .Validate the currently trained model using D v .while (Loss ŷ, y does not converges && Loss > ε) return the current training model.End 4. Applying the optimal model to D te .Output: ŷ for D te The loss function of the model is the mean square error (MSE) function, Machines 2023 ,Figure 6 . Figure 6.Experimental setup Figure 6 . Figure 6.Experimental setup. Figure 6 . Figure 6.Experimental setup Figure 7 . Figure 7. Division of tool wear stages Figure 7 . Figure 7. Division of tool wear stages.The model is built with the PyTorch deep learning library.It is coded in python and runs on Python 3.7, CUDA 11.4, and Windows with an Intel Core i7 CPU and an NVIDIA GeForce Mx350 GPU. Figure 7 . 11, x FOR PEER REVIEW 9 of 13 ratio of the training set to the verification set is 8:2.The third data set was used as a test set for model evaluation. Figure 8 . Figure 8.A close-up of the measured data Figure 8 . . The calculation times of the 1D-CNN, CNN-LSTM, and ConvLSTM-Att models are shown in Table 3.The performance results of different models for tool wear prediction on different test sets are shown in Figures 9-11. Figure 8 . Figure 8.A close-up of the measured data. Figure 9 . Figure 9. Predicted results of 1D-CNN model on the C1, C4 and C6 test sets Figure 10 . Figure 10.Predicted results of CNN-LSTM model on the C1, C4 and C6 test sets Figure 9 . Figure 9. Predicted results of 1D-CNN model on the C1, C4 and C6 test sets. Figure 9 . Figure 9. Predicted results of 1D-CNN model on the C1, C4 and C6 test sets Figure 10 . 10 . Figure 10.Predicted results of CNN-LSTM model on the C1, C4 and C6 test sets Figure 10.Predicted results of CNN-LSTM model on the C1, C4 and C6 test sets. Figure 11 . Figure 11.Predicted results of ConvLSTM-Att model on the C1, C4 and C6 test sets Figure 11 . Figure 11.Predicted results of ConvLSTM-Att model on the C1, C4 and C6 test sets. Table 1 . Experimental parameters. Table 2 . Error performance of different models on different test sets. Table 3 . The calculation time of the 1D-CNN, CNN-LSTM and ConvL-Att models. Table 2 . Error performance of different models on different test sets Table 3 . The calculation time of the 1D-CNN, CNN-LSTM and ConvL-Att models Table 2 . Error performance of different models on different test sets Table 3 . The calculation time of the 1D-CNN, CNN-LSTM and ConvL-Att models

섹션 본문 76문단 · 34,899자

(제목 없음)

1In order to improve the accuracy of tool wear prediction, an attention-based composite neural network, referred to as the ConvLSTM-Att model (1DCNN-LSTM-Attention), is proposed.Firstly, local multidimensional feature vectors are extracted with the help of a one-dimensional convolutional neural network (1D-CNN), which avoids the loss of wear features caused by manual feature extraction.Then the temporal relationship learning between multidimensional feature vectors is performed by introducing a long short-term memory (LSTM) network to make up for the lack of long-short distance dependence of the captured sequence of the CNN network.Finally, an attention mechanism is applied to strengthen the ability to extract key information from tool-wearing temporal features.The proposed ConvLSTM-Att model is trained with the measured tool wear data and then performs as a tool wear predictor.The model is compared with several state-of-the-art models on the PHM tool wear data sets.It significantly outperforms the other models in terms of prediction accuracy, but with similar computational complexity.

Introduction

2As a result of China's vigorous promotion of the Manufacturing Industry 2025, the machinery manufacturing industry has increasingly higher requirements for intelligence [1,2].As an important part of machinery production and processing, the degree of wear and tear on tools severely affects the accuracy of workpieces and the manufacturing costs of enterprises.Most of the traditional tool changing methods are based on experience, determining the timing of tool stopping and tool changing.Changing a tool too early will cause wastage of the tool [3], whereas changing a tool too late will reduce the quality of a workpiece and lead to scrapping.During the machining process, timely and accurate prediction of tool wear is beneficial to both improving the machining accuracy of products and reducing the manufacturing and labor costs of enterprises.Therefore, intelligent and accurate prediction of tool wear has become an important topic.

3Direct and indirect measurements are the two main approaches to tool wear prediction [4].The direct measurement approach requires off-line measurement of the tool between machining intervals, which greatly affects the coherence of machining and is difficult to apply in production practice.The indirect measurement method is primarily used to predict tool wear by mining and analyzing the relationship between the data taken during machining and the tool wear data.However, the data acquired during machining is subject to noise in the industrial environment, which reduces the validity of the data [5].

4Traditional machine learning approaches, such as artificial neural networks [6], fuzzy logic [7], the hidden Markov model and support vector machine, as well as metaheuristic approaches [8,9], can be implemented for tool wear prediction, but the prediction accuracy is generally low [10].It is difficult for traditional machine learning approaches to predict the true data directly from the measured data [11].Therefore, some preprocessing methods Machines 2023, 11, 297 2 of 13 such as time-frequency domain analysis [12], principal component analysis (PCA) [13], and empirical modal decomposition (EMD) [14] are usually required for the data.However, extracted features are easy to underweight in the data that reflect tool wear, and the tool wear data are essentially time series, so the above approaches cannot tap the time-series features between different data samples.

5In recent years, deep learning [6], with its excellent ability to automatically learn features, has provided a new idea for dealing with large-scale mechanical data [15].It is widely used in the fields of computer vision [16], speech recognition [17], natural language processing [18], and mechanical fault diagnosis [19].The tool wear prediction model based on deep learning has significantly improved the accuracy of tool wear prediction by virtue of its powerful data processing as well as feature extraction capability [19].

6Convolutional neural networks (CNN) have excellent performance in processing data, text, and image recognition.They can analyze the original data and extract highdimensional hidden features, effectively circumventing the problems that arise from handcrafted feature extraction.Kothuru et al. [20] established a CNN-based tool condition prediction model for tool wear prediction by analyzing the spectral characteristics of the acoustic signals during machining.Xu et al. [21] used CNN to extract features from the collected vibration data during machining and designed an extended convolutional residual block and fully connected layer to achieve effective prediction of tool wear.The long short-term memory (LSTM) network is a type of recurrent neural network that effectively avoids the vanishing gradient problem in the recurrent neural network and better mines the temporal features between different temporal data sets [22].In order to capture the long-term dependence of tool wear data, Zhao et al. [23] presented a deep LSTM model to predict tool wear by regression, confirming that LSTM has certain advantages compared with conventional recurrent neural networks in processing temporal data.Cai et al. [24] proposed a hybrid model based on LSTM to extract the temporal features from the raw sequence data through a designed stacked LSTM and finally in a nonlinear regression model to obtain the predicted tool wear.Chan et al. [25] combined CNN and LSTM and proposed an LSTM-CNN model.It uses CNN to extract tool wear features, and then mines the temporal features of tool wear by LSTM, to achieve effective prediction of tool wear.Schwendemann et al. [26] propose a deep learning method based on transfer learning.This method uses the windowed envelope, de-noising, and normalization processing of low-frequency sensor data to form the intermediate domain image and uses CNN and LSTM to perform the estimation of remaining useful life and realize effective transfer learning between different bearing types.Qiao et al. [27] collected vibration and current signals as well as tool wear as input to construct a training data set and input the features extracted by the multi-scale convolutional LSTM model to a bidirectional LSTM model to predict tool wear.It meets the requirements of high accuracy and low latency.Attention is a weight assignment mechanism that improves learning accuracy by learning to continuously update the attention weights corresponding to different features and to ignore unimportant signals [28].Huang et al. [29] combined CNN with attention and proposed a multiscale CNN based on attention fusion, which will improve the accuracy of tool wear prediction by extracting tool wear data through multi-layer convolution as input and passing them to a multilayer attention mechanism.

7The above methods consider, to some extent, the feature extraction of tool wear data in spatial and temporal dimensions and the contribution of different data to tool wear in the spatial dimension, respectively.However, they do not consider the different specifics of different data features fused with spatial and temporal dimensions for tool wear prediction.In order to enhance the extraction of key information while fusing different dimensional features of the measured data, we propose a composite neural network model based on an attention mechanism.The model uses a 1D-CNN neural network to extract multidimensional feature data.Then, in order to fuse the features in the temporal dimension, an LSTM network is introduced to extract sequential features by learning the temporal relationship between multidimensional features through an LSTM layer.Finally, the ability of the model to obtain key wear data features is improved with the help of the attention mechanism, resulting in an efficient and accurate prediction of tool wear.

Composition of the Prediction Model

8The CNNs are feedforward neural networks with special structures that excel at image and speech recognition.Among them, the one-dimensional convolutional neural network (1D-CNN) has excellent performance in processing text data [30].The 1D-CNN structure is shown in Figure 1, which is composed of three major layers, namely, the convolutional layer, the pooling layer, and the fully connected layer [31].The convolutional layer slides with the elements in the perceptual field at a prespecified step and makes a nonlinear mapping through the activation function to extract the feature vectors.It is the core layer of the whole network.The pooling layer reduces the dimensions of the feature vectors outputted from the convolutional layer and keeps the most significant ones locally to reduce operations.The fully connected layer is a fully connected neural network, which does a nonlinear transformation of the feature vectors to generate the specified dimensions and passes them on to generate the classification result [32].

9sion, an LSTM network is introduced to extract sequential features by learning the temporal relationship between multidimensional features through an LSTM layer.Finally, the ability of the model to obtain key wear data features is improved with the help of the attention mechanism, resulting in an efficient and accurate prediction of tool wear.

One-Dimensional Convolutional Neural Network (1D-CNN)

10The CNNs are feedforward neural networks with special structures that excel at image and speech recognition.Among them, the one-dimensional convolutional neural network (1D-CNN) has excellent performance in processing text data [30].The 1D-CNN structure is shown in Figure 1, which is composed of three major layers, namely, the convolutional layer, the pooling layer, and the fully connected layer [31].The convolutional layer slides with the elements in the perceptual field at a prespecified step and makes a nonlinear mapping through the activation function to extract the feature vectors.It is the core layer of the whole network.The pooling layer reduces the dimensions of the feature vectors outputted from the convolutional layer and keeps the most significant ones locally to reduce operations.The fully connected layer is a fully connected neural network, which does a nonlinear transformation of the feature vectors to generate the specified dimensions and passes them on to generate the classification result [32].

Long Short-Term Memory (LSTM) Network

11The LSTM is a recurrent neural network with long-term and short-term memories between feature vectors, and the memories can be dynamically adjusted with the input, which greatly solves problems such as memory degradation caused by too long sequences [33].At the same time, LSTM can also solve the problem of vanishing gradients that exists in conventional recurrent neural networks and can better exploit the temporal relationship between tool and feature vectors.The core idea of LSTM is to introduce input gates, forgetting gates, and output gates for each memory unit [34].The structure of LSTM is shown in Figure 2.

12The LSTM is a recurrent neural network with long-term and short-term memories between feature vectors, and the memories can be dynamically adjusted with the input, which greatly solves problems such as memory degradation caused by too long sequences [33].At the same time, LSTM can also solve the problem of vanishing gradients that exists in conventional recurrent neural networks and can better exploit the temporal relationship between tool and feature vectors.The core idea of LSTM is to introduce input gates, forgetting gates, and output gates for each memory unit [34].The structure of LSTM is shown in Figure 2.

13The forget gate decides what is deleted from the memory cell according to the previous hidden layer state h t−1 ∈ R n , n is the LSTM number of hidden layer neurons, with the current input d t ∈ R k , k being the number of convolution kernels, by the sigmoid function.The input gate decides what to save from the previous hidden state h t−1 with the current input d t according to the sigmoid function and gets a candidate parameter c t ∈ R n according to the tanh function.Combining the forget gate with the input gate, the current state c t ∈ R n of the memory cell is updated.The output gate uses the sigmoid function to determine what is output from h t−1 and d t .The outputs of the output gate are combined with c t which is processed by the tanh function to selectively output the hidden layer state h t at the current time.The LSTM model is given by

14where f t ∈ R n is the forget gate output at the time t, i t ∈ R n is the input gate output at time t, c t is the state of the memory cell at the time t, o t ∈ R n is the output gate output at the time t, σ 1 (•) is the sigmoid function, σ 2 (•) is usually selected as the tanh function, h t is the hidden layer state at time t, d t is the input at time t,

Attention Mechanism

15The attention mechanism is a bionic mechanism in deep learning, whose essence is to give more weight to the parts that need to be focused on [35].The essential idea of the attention mechanism is shown in Figure 3.

16The calculation of the attention mechanism can be divided into two steps.First, the degree of correlation between the state output h t of the hidden layer of the LSTM layer and the query vector q ∈ R n is calculated using the attention score function s(.), and the corresponding attention weight α t is obtained using the softmax function.Second, the output ŷ t ∈ R t of the attention layer is obtained by weighted summation based on the attention weights.The steps are given by

17where m is the number of time steps.

18Then, input ŷ t into the regression layer to get the predicted tool wear at the current time.where is the number of time steps.Then, input into the regression layer to get the predicted tool wear at the time.

ConvLSTM-Att Model Construction

19According to Zhou et al. [36], the most frequently used sensors in the study o process sensor configurations are force, vibration, and acoustic sensors.

20According to Zhou et al. [36], the most frequently used sensors in the study of milling process sensor configurations are force, vibration, and acoustic sensors.Therefore, in this paper, the cutting force and vibration along the x-, y-, and z-axes, and the acoustic emission at time t, x i t ∈ R 1×7 , i ∈ {1, 2, . . . ,m} being the tap index, are selected as the inputs of the model for training the ConvLSTM-Att model,

21. A one-dimensional CNN is first used to extract the high-dimensional features in the measured time-domain data through multiple convolutional layers.The weights of the CNN are updated by backpropagating the error calculated by the loss function.As the number of network layers increases, the problem of the vanishing gradient becomes increasingly obvious.To reduce the impact of vanishing gradients, each convolutional layer is followed by a connection layer, which includes batch normalization, ReLU, and max-pooling layers.The structure is shown in Figure 4.The calculation of the attention mechanism can be divided into two steps.First, the degree of correlation between the state output of the hidden layer of the LSTM layer and the query vector ∈ is calculated using the attention score function (.), and the corresponding attention weight is obtained using the softmax function.Second, the output ∈ of the attention layer is obtained by weighted summation based on the attention weights.The steps are given by

22where is the number of time steps.Then, input into the regression layer to get the predicted tool wear at the current time.

23According to Zhou et al. [36], the most frequently used sensors in the study of milling process sensor configurations are force, vibration, and acoustic sensors.Therefore, in this paper, the cutting force and vibration along the -, -, and -axes, and the acoustic emission at time , ∈ , ∈ 1,2, … , being the tap index, are selected as the inputs of the model for training the ConvLSTM-Att model, = ( , ⋯ , ), ∈ .A one-dimensional CNN is first used to extract the high-dimensional features in the measured time-domain data through multiple convolutional layers.The weights of the CNN are updated by backpropagating the error calculated by the loss function.As the number of network layers increases, the problem of the vanishing gradient becomes increasingly obvious.To reduce the impact of vanishing gradients, each convolutional layer is followed by a connection layer, which includes batch normalization, ReLU, and maxpooling layers.The structure is shown in Figure 4.As shown in Figure 5, the ConvLSTM-Att model first automatically mines the features in the tool wear data x t through the 1D-CNN layer and uses them as the input of the LSTM layer.Then, through the LSTM layer, it learns the temporal relationship between the multidimensional vectors and gets the corresponding hidden layer state vector h t .Finally, through the attention layer, the attention weight α t of each input is calculated, and the predicted tool wear ŷt ∈ R t is obtained through the nonlinear regression layer.

24tures in the tool wear data through the 1D-CNN layer and uses them as the the LSTM layer.Then, through the LSTM layer, it learns the temporal relation tween the multidimensional vectors and gets the corresponding hidden layer sta .Finally, through the attention layer, the attention weight of each input is ca and the predicted tool wear ∈ is obtained through the nonlinear regression

25where ŷi is the predicted wear and y i ∈ R t is the measured wear.The accuracy indices are the mean absolute error (MAE), root mean square error (RMSE) and coefficient of determination R2, given by

26where y is the average of all measured wear.

Experimental Setting

27The proposed method was validated using the tool wear data set published by the PHM Association in 2010 [37].The experimental parameters are shown in Table 1.The tool used for the experiments was a three-tooth end mill, and the material machined was HRC52 stainless steel.The experiments were conducted at room temperature with dry cutting-that is, no cutting fluid was used.The force and vibration data in the x-, yand z-axes during each machining process and the acoustic emission data during the tool move process were collected using a Kistler force gauge, an acceleration sensor, and an acoustic emission sensor, respectively.During each machining process, the tool cut in the x-direction had a length of 108 mm.After each tool move, the wear of the rear face of each tool cutter flute was measured with a LEICA MZ12 microscope to get the wear of each tool move.The sensor setup is shown in Figure 6.

28A total of three tools (C1, C4, and C6) were used to collect data for the experiments, each acquiring 315 samples for a total of 945 samples.Each sample contains seven components: cutting force F x , F y , F z , vibration Z x , Z y , Z z , acoustic emission β as input, and the wear of three cutter flutes as output.According to the recommendations of ISO 8688-2 (1989), the average of the wears of the three cutter flutes was taken as the measured wear of that sample, which was used as the output in the data set.Take the tool C1 as an example, as shown in Figure 7.According to the trend of tool wear, 0~50 tool moves (wear < 90 µm) were classified as the initial wear stage, 51~190 tool moves (wear < 120 µm) as the normal wear stage, and 191~315 tool moves (wear < 173 µm) as the severe wear stage.

29The experiments were conducted at a sampling frequency of 50 kHz, resulting in up to 200,000 data points per sample.In order to exclude the interference of the incoming and outgoing cutters and simplify the computation, three segments of 5000 data-points were selected, as shown in Figure 8.It can be seen from Figure 8 that the maximum and minimum values of the data in each segment are similar.In order to retain the data characteristics of each segment, the average value of the three segments was taken as the model input for training, so that each wear corresponded to tool wear data with a size of 5000 × 7.In order to obtain a reliable and stable model, cross validation was used, and data sets were divided.Among the C1, C4, and C6 data sets, two of the data sets are divided into a training set and a validation set for model training and model parameter adjustment.The ratio of the training set to the verification set is 8:2.The third data set was used as a test set for model evaluation. 2 (1989), the average of the wears of the three cutter flutes was taken as the measur of that sample, which was used as the output in the data set.Take the tool C1 as a ple, as shown in Figure 7.According to the trend of tool wear, 0~50 tool moves (w μm) were classified as the initial wear stage, 51~190 tool moves (wear < 120 μm normal wear stage, and 191~315 tool moves (wear < 173 μm) as the severe wear s The experiments were conducted at a sampling frequency of 50 kHz, resultin to 200,000 data points per sample.In order to exclude the interference of the incom outgoing cutters and simplify the computation, three segments of 5000 data-poin selected, as shown in Figure 8.It can be seen from Figure 8 that the maximum an mum values of the data in each segment are similar.In order to retain the data ch istics of each segment, the average value of the three segments was taken as th input for training, so that each wear corresponded to tool wear data with a size of 7. In order to obtain a reliable and stable model, cross validation was used, and d were divided.Among the C1, C4, and C6 data sets, two of the data sets are divide

Experimental Design and Parameter Setting

30In order to verify the accuracy as well as the effectiveness of the tool wear prediction based on the proposed ConvLSTM-Att model, experiments were conducted using the same CNN, CNN-LSTM, and ConvLSTM-Att data set.

31In the convolutional model, a small convolutional kernel can reduce the complexity of the model computation, and a small convolutional step size can improve the accuracy of the feature extraction results.Therefore, the size of the convolution kernel is set to (3,7), the step length is set to 2, and the boundary fill is 1.To avoid losing too many features in the downscaling process, the pooling layer is selected as max-pooling, and the pooling size is set (4,4).The number of epochs is 500, the initial parameter of the learning rate is 0.001, which decays as the epoch increases, and the optimizer is Adam.To improve the robustness and generalization ability of the model, a dropout layer is added to the regression layer, and the retention rate is set to 0.5.The number of LSTM hidden layer neurons is 128.The maximum error is 6.3.

Comparison and Analysis of Experimental Results

32The models are trained on the training set, the trained model parameters are adjusted on the validation set, and the models are evaluated on the test set.For each model, RMSE, MAE, and R2 are calculated on each test set separately.If the error is large, it means that the model is not properly fitted, and we need to readjust the parameters or train the model structure.The smaller the error, the higher the accuracy of the model.The prediction errors of tool wear for different models on different test sets are shown in Table 2

Experimental Design and Parameter Setting

33In order to verify the accuracy as well as the effectiveness of the tool wear prediction based on the proposed ConvLSTM-Att model, experiments were conducted using the same CNN, CNN-LSTM, and ConvLSTM-Att data set.

34In the convolutional model, a small convolutional kernel can reduce the complexity of the model computation, and a small convolutional step size can improve the accuracy of the feature extraction results.Therefore, the size of the convolution kernel is set to (3, 7), the step length is set to 2, and the boundary fill is 1.To avoid losing too many features in the downscaling process, the pooling layer is selected as max-pooling, and the pooling size is set (4,4).The number of epochs is 500, the initial parameter of the learning rate is 0.001, which decays as the epoch increases, and the optimizer is Adam.To improve the robustness and generalization ability of the model, a dropout layer is added to the regression layer, and the retention rate is set to 0.5.The number of LSTM hidden layer neurons is 128.The maximum error is 6.3.

Comparison and Analysis of Experimental Results

35The models are trained on the training set, the trained model parameters are adjusted on the validation set, and the models are evaluated on the test set.For each model, RMSE, MAE, and R2 are calculated on each test set separately.If the error is large, it means that the model is not properly fitted, and we need to readjust the parameters or train the model structure.The smaller the error, the higher the accuracy of the model.The prediction errors of tool wear for different models on different test sets are shown in Table 2.The calculation times of the 1D-CNN, CNN-LSTM, and ConvLSTM-Att models are shown in Table 3.The performance results of different models for tool wear prediction on different test sets are shown in Figures 9-11.It can be seen that the 1D-CNN model has the worst overall performance, which is shown in Figure 9.The model-fitting results are poor, and the predicted results of this model at the initial and severe wear stages of the tool have a large gap with the measured wear, which leads to model errors that are generally large.Then, as shown in Figure 10, the accuracy of the CNN-LSTM model is substantially improved compared with that of the 1D-CNN model, and the predicted wear of the model basically fits the measured wear.Due to the fact that the measured time-domain data of tool wear are essentially sequential data, adding the learning of temporal features to the 1D-CNN can improve the accuracy of the model's prediction.However, there is still a large error in predicting the wear at the initial and severe wear stages of the tool, especially at the severe wear stage for tool C6.From Figure 11, the tool wear predicted using the ConvLSTM-Att model is closer to the measured one.The model improves the ability to extract the key features of tool wear and thus has achieved a higher level of accuracy in predicting the normal and severe wear stages of the tool.Although the prediction of the initial tool wear phase still has some errors, it has been improved compared to the CNN-LSTM model.

36From Table 3, the CNN-LSTM model has a complexity that is slightly higher than 1D-CNN and CNN-LSTM due to the extra structural components in the model.Its complexity is higher than 1D-CNN and CNN-LSTM by 91.6% and 14.8%, respectively.RNN and 1D-CNN models have similar complexity, but the 1D-CNN model has better prediction accuracy.The CNN-LSTM and TDconvLSTM models have similar complexity and prediction accuracy.Compared with the CNN-LSTM model, the ConvLSTM-Att model has similar complexity but better prediction accuracy.

37On the three different test sets, the ConvLSTM-Att model reduced the RMSE by 60.8%, 67.4%, and 63.7%, and the MAE by 61.7%, 71.3%, and 68.8%, respectively, compared with the 1D-CNN model.When compared with the CNN-LSTM model, the RMSE was reduced by 34.4%, 37.1%, and 46.3%, respectively, and the MAE decreased by 39.6%, 37.6%, and 47.7%, respectively.The results of the ConvLSTM-Att model are also compared with several state-of-the-art models using the same data sets, as shown in Table 2. Compared with these models, the ConvLSTM-Att model has the smallest RMSE and MAE in predicting tool wear, which further confirms the effectiveness and superiority of the ConvLSTM-Att model.

Conclusions

38In this paper, a tool wear prediction model based on an attentional composite neural network is proposed.Based on a large amount of tool wear data, the original time-domain data in the tool machining state is used as input, and the wear features are mined by 1D-CNN.Using LSTM and attention mechanisms to learn the important tool wear features, the measured wear is approximated by regression.By comparing the predicted tool wear and the measured tool wear, it is confirmed that the ConvLSTM-Att model can well reflect It can be seen that the 1D-CNN model has the worst overall performance, which is shown in Figure 9.The model-fitting results are poor, and the predicted results of this model at the initial and severe wear stages of the tool have a large gap with the measured wear, which leads to model errors that are generally large.Then, as shown in Figure 10, the accuracy of the CNN-LSTM model is substantially improved compared with that of the 1D-CNN model, and the predicted wear of the model basically fits the measured wear.Due to the fact that the measured time-domain data of tool wear are essentially sequential data, adding the learning of temporal features to the 1D-CNN can improve the accuracy of the model's prediction.However, there is still a large error in predicting the wear at the initial and severe wear stages of the tool, especially at the severe wear stage for tool C6.From Figure 11, the tool wear predicted using the ConvLSTM-Att model is closer to the measured one.The model improves the ability to extract the key features of tool wear and thus has achieved a higher level of accuracy in predicting the normal and severe wear stages of the tool.Although the prediction of the initial tool wear phase still has some errors, it has been improved compared to the CNN-LSTM model.

39From Table 3, the CNN-LSTM model has a complexity that is slightly higher than 1D-CNN and CNN-LSTM due to the extra structural components in the model.Its complexity is higher than 1D-CNN and CNN-LSTM by 91.6% and 14.8%, respectively.RNN and 1D-CNN models have similar complexity, but the 1D-CNN model has better prediction accuracy.The CNN-LSTM and TDconvLSTM models have similar complexity and prediction accuracy.Compared with the CNN-LSTM model, the ConvLSTM-Att model has similar complexity but better prediction accuracy.

40On the three different test sets, the ConvLSTM-Att model reduced the RMSE by 60.8%, 67.4%, and 63.7%, and the MAE by 61.7%, 71.3%, and 68.8%, respectively, compared with the 1D-CNN model.When compared with the CNN-LSTM model, the RMSE was reduced by 34.4%, 37.1%, and 46.3%, respectively, and the MAE decreased by 39.6%, 37.6%, and 47.7%, respectively.The results of the ConvLSTM-Att model are also compared with several state-of-the-art models using the same data sets, as shown in Table 2. Compared with these models, the ConvLSTM-Att model has the smallest RMSE and MAE in predicting tool wear, which further confirms the effectiveness and superiority of the ConvLSTM-Att model.

41In this paper, a tool wear prediction model based on an attentional composite neural network is proposed.Based on a large amount of tool wear data, the original time-domain data in the tool machining state is used as input, and the wear features are mined by 1D-CNN.Using LSTM and attention mechanisms to learn the important tool wear features, the measured wear is approximated by regression.By comparing the predicted tool wear and the measured tool wear, it is confirmed that the ConvLSTM-Att model can well reflect the trend of aggravating tool wear during machining.Under the same test set, the error rate in the tool wear prediction using the ConvLSTM-Att model has decreased significantly compared with other state-of-the-art models.For different test sets, the prediction

Figure 1 .

42Figure 1.Network structure of the 1D-CNN. is the number of the convolution-pooling layers

43Figure 1.Network structure of the 1D-CNN.n c is the number of the convolution-pooling layers.

1 Figure 2 .

44Figure 2. LSTM network structure

Figure 2 .

45Figure 2. LSTM network structure.

Machines 2023 ,Figure 3 .

46Figure 3.The attention mechanism

47Therefor paper, the cutting force and vibration along the -, -, and -axes, and the acous sion at time , ∈ , ∈ 1,2, … , being the tap index, are selected as the i the model for training the ConvLSTM-Att model, = ( , ⋯ , ), ∈ .A one-dimensional CNN is first used to extract the high-dimensional featur measured time-domain data through multiple convolutional layers.The weigh CNN are updated by backpropagating the error calculated by the loss function

Figure 3 .

48Figure 3.The attention mechanism.

49Figure 3.The attention mechanism

Figure 4 .

50Figure 4.A connection layer following each convolutional layer.

Figure 5 .Algorithm 1 .

51Figure 5. ConvLSTM-Att model

Figure 5 .

52Figure 5. ConvLSTM-Att model.

3. 2 .Algorithm 1 .

53The ConvLSTM-Att Model for Predicting the Tool Wear Process All data are first normalized and processed, and then divided into different data sets.Train the ConvLSTM-Att model using the training set data.The accuracy of the model is improved by adjusting the model parameters and structure according to the validation results from the validation set.Apply the optimal ConvLSTM-Att model to the test set and output the predicted wear to evaluate the model's performance.The specific operations are given in Algorithm 1. Training of the ConvLSTM-Att model Input: Tool wear data set D, learning rate η, epoch T, LSTM neuron number n, maximum error ε. 1.All data are processed by max-min normalization.2. Divide D into the training set D tr , validation set D v and test set D te .3. Perform training with D tr : do Adjust η, T, n, ε.Train ConvLSTM-Att model with D tr .Validate the currently trained model using D v .while (Loss ŷ, y does not converges && Loss > ε) return the current training model.End 4. Applying the optimal model to D te .Output: ŷ for D te The loss function of the model is the mean square error (MSE) function,

Machines 2023 ,Figure 6 .

54Figure 6.Experimental setup

Figure 6 .

55Figure 6.Experimental setup.

56Figure 6.Experimental setup

Figure 7 .

57Figure 7. Division of tool wear stages

58Figure 7. Division of tool wear stages.The model is built with the PyTorch deep learning library.It is coded in python and runs on Python 3.7, CUDA 11.4, and Windows with an Intel Core i7 CPU and an NVIDIA GeForce Mx350 GPU.

5911, x FOR PEER REVIEW 9 of 13 ratio of the training set to the verification set is 8:2.The third data set was used as a test set for model evaluation.

Figure 8 .

60Figure 8.A close-up of the measured data

61. The calculation times of the 1D-CNN, CNN-LSTM, and ConvLSTM-Att models are shown in Table 3.The performance results of different models for tool wear prediction on different test sets are shown in Figures 9-11.

62Figure 8.A close-up of the measured data.

Figure 9 .

63Figure 9. Predicted results of 1D-CNN model on the C1, C4 and C6 test sets

Figure 10 .

64Figure 10.Predicted results of CNN-LSTM model on the C1, C4 and C6 test sets

Figure 9 .

65Figure 9. Predicted results of 1D-CNN model on the C1, C4 and C6 test sets.

66Figure 9. Predicted results of 1D-CNN model on the C1, C4 and C6 test sets

Figure 10 . 10 .

67Figure 10.Predicted results of CNN-LSTM model on the C1, C4 and C6 test sets Figure 10.Predicted results of CNN-LSTM model on the C1, C4 and C6 test sets.

Figure 11 .

68Figure 11.Predicted results of ConvLSTM-Att model on the C1, C4 and C6 test sets

69Figure 11.Predicted results of ConvLSTM-Att model on the C1, C4 and C6 test sets.

Table 1 .

70Experimental parameters.

Table 2 .

71Error performance of different models on different test sets.

Table 3 .

72The calculation time of the 1D-CNN, CNN-LSTM and ConvL-Att models.

Table 2 .

73Error performance of different models on different test sets

Table 3 .

74The calculation time of the 1D-CNN, CNN-LSTM and ConvL-Att models

Table 2 .

75Error performance of different models on different test sets

Table 3 .

76The calculation time of the 1D-CNN, CNN-LSTM and ConvL-Att models

참고문헌 36건

  1. Neural Network Implementations for PCA and Its Extensions ISRN Artificial Intelligence · Hindawi Publishing Corporation · 2012 10.5402/2012/847305
  2. Multisensory fusion based virtual tool wear sensing for ubiquitous manufacturing Robotics and Computer-Integrated Manufacturing · Elsevier BV · 2016 10.1016/j.rcim.2016.05.010
  3. Machine health monitoring with LSTM networks 2016 10.1109/icsenst.2016.7796266
  4. The influence of concentration of hydroxyl radical on the chemical mechanical polishing of SiC wafer based on the Fenton reaction Precision Engineering · Elsevier BV · 2017 10.1016/j.precisioneng.2017.12.011
  5. Early Fault Detection of Machine Tools Based on Deep Learning and Dynamic Identification IEEE Transactions on Industrial Electronics · Institute of Electrical and Electronics Engineers · 2018 10.1109/tie.2018.2807414
  6. Review of tool condition monitoring methods in milling processes The International Journal of Advanced Manufacturing Technology · Springer Science+Business Media · 2018 10.1007/s00170-018-1768-5
  7. Deep Learning for Computer Vision: A Brief Review Computational Intelligence and Neuroscience · Hindawi Publishing Corporation · 2018 10.1155/2018/7068349
  8. Tool wear monitoring using an online, automatic and low cost system based on local texture Mechanical Systems and Signal Processing · Elsevier BV · 2018 10.1016/j.ymssp.2018.04.035
  9. Deep learning and its applications to machine health monitoring Mechanical Systems and Signal Processing · Elsevier BV · 2018 10.1016/j.ymssp.2018.05.050
  10. Fundamentals of Recurrent Neural Network (RNN) and Long Short-Term Memory (LSTM) network Physica D Nonlinear Phenomena · Elsevier BV · 2020 10.1016/j.physd.2019.132306
  11. A Time-Distributed Spatiotemporal Feature Learning Method for Machine Health Monitoring with Multi-Sensor Time Series Sensors · Multidisciplinary Digital Publishing Institute · 2018 10.3390/s18092932
  12. Application of deep visualization in CNN-based tool condition monitoring for end milling Procedia Manufacturing · Elsevier BV · 2019 10.1016/j.promfg.2019.06.096
  13. Tool wear predicting based on multi-domain feature fusion by deep convolutional neural network in milling operations Journal of Intelligent Manufacturing · Springer Science+Business Media · 2019 10.1007/s10845-019-01488-7
  14. English speech recognition based on deep learning with multiple features Computing · Springer Science+Business Media · 2019 10.1007/s00607-019-00753-0
  15. Research on a Real-Time Monitoring Method for the Wear State of a Tool Based on a Convolutional Bidirectional LSTM Model Symmetry · Multidisciplinary Digital Publishing Institute · 2019 10.3390/sym11101233
  16. A hybrid information model based on long short-term memory network for tool condition monitoring Journal of Intelligent Manufacturing · Springer Science+Business Media · 2020 10.1007/s10845-019-01526-4
  17. A Survey of the Usages of Deep Learning for Natural Language Processing IEEE Transactions on Neural Networks and Learning Systems · Institute of Electrical and Electronics Engineers · 2020 10.1109/tnnls.2020.2979670
  18. A review on the long short-term memory model Artificial Intelligence Review · Springer Science+Business Media · 2020 10.1007/s10462-020-09838-1
  19. Research on tool wear monitoring in drilling process based on APSO-LS-SVM approach The International Journal of Advanced Manufacturing Technology · Springer Science+Business Media · 2020 10.1007/s00170-020-05549-7
  20. A tool wear monitoring and prediction system based on multiscale deep learning models and fog computing The International Journal of Advanced Manufacturing Technology · Springer Science+Business Media · 2020 10.1007/s00170-020-05548-8
  21. A new deep auto-encoder method with fusing discriminant information for bearing fault diagnosis Mechanical Systems and Signal Processing · Elsevier BV · 2020 10.1016/j.ymssp.2020.107233
  22. 1D convolutional neural networks and applications: A survey Qatar University QSpace (Qatar University) · Qatar University · 2022 10.1016/j.ymssp.2020.107398
  23. In-process tap tool wear monitoring and prediction using a novel model based on deep learning The International Journal of Advanced Manufacturing Technology · Springer Science+Business Media · 2020 10.1007/s00170-020-06354-y
  24. A Review of Indirect Tool Condition Monitoring Systems and Decision-Making Methods in Turning: Critical Analysis and Trends Sensors · Multidisciplinary Digital Publishing Institute · 2020 10.3390/s21010108
  25. A review on the attention mechanism of deep learning Neurocomputing · Elsevier BV · 2021 10.1016/j.neucom.2021.03.091
  26. Tool wear prediction using convolutional bidirectional LSTM networks The Journal of Supercomputing · Springer Science+Business Media · 2021 10.1007/s11227-021-03903-4
  27. A Survey of Convolutional Neural Networks: Analysis, Applications, and Prospects IEEE Transactions on Neural Networks and Learning Systems · Institute of Electrical and Electronics Engineers · 2021 10.1109/tnnls.2021.3084827
  28. The Future of Factories: Different Trends Applied Sciences · Multidisciplinary Digital Publishing Institute · 2021 10.3390/app11219980
  29. A Model-Driven Scheme to Compensate the Strain-Based Non-Intrusive Dynamic Pressure Measurement for Hydraulic Pipe IEEE Transactions on Instrumentation and Measurement · Institute of Electrical and Electronics Engineers · 2021 10.1109/tim.2021.3123218
  30. Search and Optimization by Metaheuristics Springer eBooks · Springer Nature · 2016 10.1007/978-3-319-41192-7
  31. Distribution Path Optimization by an Improved Genetic Algorithm Combined with a Divide-and-Conquer Strategy Technologies · Multidisciplinary Digital Publishing Institute · 2022 10.3390/technologies10040081
  32. Neural Networks and Statistical Learning Springer eBooks · Springer Nature · 2019 10.1007/978-1-4471-7452-3
  33. A new time–space attention mechanism driven multi-feature fusion method for tool wear monitoring The International Journal of Advanced Manufacturing Technology · Springer Science+Business Media · 2022 10.1007/s00170-022-09032-3
  34. Tool Wear Prediction Based on a Multi-Scale Convolutional Neural Network with Attention Fusion Information · Multidisciplinary Digital Publishing Institute · 2022 10.3390/info13100504
  35. A Novel Multivariate Cutting Force-Based Tool Wear Monitoring Method Using One-Dimensional Convolutional Neural Network Sensors · Multidisciplinary Digital Publishing Institute · 2022 10.3390/s22218343
  36. Transfer-Learning-Based Estimation of the Remaining Useful Life of Heterogeneous Bearing Types Using Low-Frequency Accelerometers Journal of Imaging · Multidisciplinary Digital Publishing Institute · 2023 10.3390/jimaging9020034