A milling cutter wear prediction method based on improved PCANet model
By improving the PCANet model, introducing the tanh activation function and the maximum pooling layer, and combining it with SVR, the problems of poor interpretability and insufficient generalization ability of the existing tool condition monitoring model are solved, and higher prediction accuracy and calculation efficiency are achieved. Suitable for milling cutter wear prediction.
Patent Information
- Application Number
- CN202111571489.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-21
- Publication Date
- 2024-09-03
- Estimated Expiration
- 2041-12-21
AI Technical Summary
Existing tool condition monitoring models based on deep learning have poor interpretability and limited generalization capabilities, making it difficult to promote and apply on a large scale.
The improved PCANet model introduces the tanh activation function, uses the maximum pooling layer to replace hash coding and histogram processing, and combines the support vector regression model (SVR) to predict milling cutter wear values, optimizing the model structure to improve prediction accuracy.
It improves the interpretability and generalization ability of the model, reduces the size of the output parameters, significantly improves the accuracy and calculation efficiency of milling cutter wear prediction, and has good versatility.
Smart Images

Figure CN114239810B
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field related to tool state monitoring, and more specifically, relates to a milling cutter wear prediction method based on an improved PCANet model. Background Art
[0002] Milling is a commonly used machining method. The health of the milling cutter during the machining process directly affects the machining quality and efficiency of the workpiece. Therefore, real-time tool status monitoring has become the focus of current academic and industry attention. In recent years, many scholars at home and abroad have applied deep learning algorithms represented by convolutional neural networks (CNN) to tool status monitoring. Through comprehensive and in-depth analysis of related signals such as spindle vibration, cutting force, current and acoustic emission during the machining process, different network models have been built and trained, and then a more accurate prediction of the current tool wear condition is achieved. However, the feature self-learning process of these models has poor interpretability, and the prediction results of the same model under the same parameters vary greatly, so it is difficult to promote and apply them on a large scale.
[0003] As a novel variant of the CNN model, the principal component analysis model (PCANet) selects local information of the feature map by constructing a sliding window, then uses principal component analysis (PCA) to determine the convolution kernel parameters, and finally uses the convolution operation to achieve feature self-supervised learning. The feature self-extraction process based on PCANet is clear, highly interpretable, and has a high recognition accuracy. In recent years, its related applications in the field of image recognition have attracted widespread attention. However, the application of PCANet to industrial sites is still in the early exploratory stage, and the original PCANet structure also has many shortcomings. For example, the model mainly uses linear operation units, which leads to limited generalization performance and difficulty in analyzing nonlinear complex signals. In addition, the output layer uses hash coding and histogram processing, and the output features have many redundant components, which makes the subsequent state recognition process more computationally intensive and also places high requirements on the generalization ability of the recognition algorithm. Summary of the invention
[0004] In view of the above defects or improvement needs of the prior art, the present invention provides a milling cutter wear prediction method based on an improved PCANet model, which has a certain degree of interpretability. The structure of the existing PCANet model is improved, including the introduction of a tanh activation function and the use of a maximum pooling layer to replace hash coding and histogram processing, and a support vector regression model (SVR) is applied to predict tool wear values. Compared with the prior art, this method can effectively solve the problems of poor interpretability and limited generalization ability faced by the existing tool state monitoring model based on deep learning, greatly reduce the parameter scale of the model output, and effectively improve the prediction accuracy of the model.
[0005] To achieve the above object, according to one aspect of the present invention, a milling cutter wear prediction method based on an improved PCANet model is provided, and the prediction method mainly comprises the following steps:
[0006] (1) The training set composed of signal data in the milling process is input into the improved PCANet model to train the PCANet model; the improved PCANet model is divided into two parts: the APCANet-MP model and the SVR model. The APCANet-MP model is divided into three stages. The data processing methods of the first and second stages are exactly the same, including the preprocessing layer, the PCA convolution layer and the activation layer; the post-processing stage includes the maximum pooling layer and the output layer; the SVR model uses a linear kernel function;
[0007] (2) Use evaluation indicators to evaluate the trained improved PCANet model, and optimize the structural parameters of the improved PCANet model based on the evaluation results;
[0008] (3) The signal data of the milling cutter whose wear is to be predicted is input into the optimized improved PCANet model to predict the wear of the milling cutter.
[0009] Furthermore, the regularization parameter C corresponding to the SVR model adopts the default value 1.
[0010] Furthermore, the APCANet-MP model is used to adaptively extract data features; the SVR model is used to predict the milling cutter wear amount based on the screened sensitive features.
[0011] Furthermore, both the first stage and the second stage are used to adaptively learn sensitive features from the input sample data; the post-processing stage is used to screen the sensitive features for subsequent milling cutter wear prediction.
[0012] Furthermore, in the first stage of preprocessing, the input data is the time-frequency matrix obtained by STFT. For the input training sample set Y = [y1, y2, ..., y n The pth sample in ] n is the number of samples, p = 1, 2, ..., n; k represents the side length of the feature map. First, the sliding window method in the convolutional layer of the CNN network is used to process y p ; then for Y p Each sample in is removed from the mean, and we get The mean of each sample is the corresponding m 2 The mean of pixels; perform the same operation on each sample in the training sample set Y to obtain the sample set after removing the mean
[0013] Furthermore, the subsequent PCA convolution layer first calculates the convolution kernel corresponding to the sample set after removing the mean with the help of PCA transformation, and then convolves the convolution kernel with the original sample to highlight the sensitive feature information hidden in the original sample.
[0014] Furthermore, assuming that the number of PCA filters in the first stage is L1, the convolution kernel W obtained after filtering by the rth PCA filter is r 1 The calculation formula is:
[0015]
[0016] Among them, the vec2mat function is used to map the feature vector to the convolution kernel; q r The function is used to calculate the eigenvector corresponding to the rth principal component of the target variable;
[0017] Then, the obtained convolution kernel is convolved with the original input sample as follows:
[0018]
[0019] in, Represents the output result of the first-stage PCA convolution layer; * represents the convolution operation;
[0020] at last, After the activation layer, the output value of the first stage can be obtained
[0021]
[0022] Among them, f active Represents the activation function.
[0023] Furthermore, in step (2), the range of the parameters in the model is determined according to the preliminary experimental results, and then the node search method is used to design the parameter optimization experiment. Finally, the regression evaluation index root mean square error RMSE and determination coefficient R 2 The trained models with different parameter combinations are quantitatively evaluated respectively, and the optimal model structure parameter combination is determined according to the evaluation results, and then the parameters of the improved PCANet model are optimized.
[0024] Furthermore, in the post-processing stage, the maximum pooling layer uses a sliding window to obtain the value of the target feature map according to a specific operation. The operation process f max_pooling The formula used is:
[0025] f max_pooling (Y wp )=max{Y m×m,2}
[0026] Among them, Y wp Represents the feature map to be pooled; Y m×m,2 Represents a set of feature matrices selected through a sliding window, the sliding window size is m×m, and the step size is 2; the max function takes the maximum value for each matrix in the set.
[0027] Furthermore, the number of filters in the PCA convolutional layer is L f is 8, the filter size m is 3; the evaluation indicators are root mean square error RMSE and determination coefficient R 2 , the corresponding calculation formulas are:
[0028]
[0029]
[0030] Where M represents the number of samples; s represents the sequence number of the samples; W = [w1, w2, …, w M ] represents the actual wear value of the tool; the corresponding Represents the predicted tool wear value; The mean value represents the actual tool wear value.
[0031] In general, compared with the prior art, the above technical solution conceived by the present invention mainly includes the following steps:
[0032] 1. Compared with the traditional deep learning model represented by CNN and PCANet model, the milling cutter wear prediction method based on the improved PCANet model provided by the present invention has greatly improved the prediction performance of the feature self-extraction process while ensuring the interpretability and generalization ability of the model. Since the tanh activation function is introduced into the model, it can learn the nonlinear features hidden in the target sample, which greatly improves the generalization ability of the model; in addition, the maximum pooling layer is also applied in the model, and the scale of the model output parameters is greatly reduced, which effectively improves the analysis and calculation efficiency of the model.
[0033] 2. The present invention relates to an algorithm structure. By changing the input and output data of the model and after retraining and optimization, the model structure can be applied to many other occasions, including image-based pattern recognition, regression prediction, etc. Therefore, the present invention has good versatility.
[0034] 3. The number of filters is set to 8 to maximize the prediction performance. If the number is less, the prediction accuracy will be low, and if the number is more, the degree of overfitting will become deeper and deeper.
[0035] 4. The filter size m should be 3. When m is greater than 3, the model's prediction results deviate further and further from the true value, RMSE gradually increases, and R2 Gradually decreases; when m is equal to 2, the prediction result of the model does not reach the optimal level.
[0036] 5. In the post-processing stage, the maximum pooling layer uses a sliding window method to obtain values of the target feature map according to specific operations, thereby completing the size compression of the input feature map without introducing additional parameters, greatly reducing the complexity of the model and accelerating the convergence of the model. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] Figure 1 It is a schematic diagram of the milling process experimental platform in the present invention;
[0038] Figure 2 It is a schematic diagram of the improved PCANet model algorithm architecture in the present invention;
[0039] Figure 3 It is a structural diagram of the APCANet-MP model in the present invention;
[0040] Figure 4 It is a comparison chart between the tool wear prediction value and the actual value based on different models in the present invention. DETAILED DESCRIPTION
[0041] In order to make the purpose, technical solutions and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention. In addition, the technical features involved in the various embodiments of the present invention described below can be combined with each other as long as they do not conflict with each other.
[0042] The present invention provides a milling cutter wear prediction method based on an improved PCANet model, and the prediction method mainly comprises the following steps:
[0043] Step 1: Collect signals during milling and pre-process the signals.
[0044] The main analysis object is the spindle vibration signal during the milling process. In this implementation, considering that the deep learning model generally has high requirements on the scale of training samples, an average data expansion algorithm is adopted to evenly extract several smaller signal segments from a longer original signal sequence for subsequent analysis. This can effectively expand the sample size and ensure that the model can be fitted smoothly. Assuming that the length of the original signal is L, the length of the signal segment to be analyzed is l, and the number of samples to be expanded is N, in order to ensure that there is no overlapping part of the expanded signal to interfere with the experiment, it is necessary to satisfy L≥Nl. At this time, the starting point position a of the i-th sample after expansion is i Satisfy the following formula:
[0045] ai =(i-1)l, i=1,2,…,N
[0046] Since the spindle vibration signal is often in a non-stationary state during the machining process, and time-frequency analysis has advantages in processing non-stationary signals, the common time-frequency analysis method, short-time Fourier transform (STFT), is used to pre-process the signal. Specifically, a small window is first added to the non-stationary signal. Since the scale of the small window is often small, the signal within the small window range can be considered to be in a stable state; then the frequency domain information is obtained by Fourier transform; and then by sliding the small window, the time domain information and frequency domain information hidden in the signal to be analyzed can be obtained at the same time. For the signal to be analyzed x(t), the STFT result X(f,u) is calculated as follows:
[0047]
[0048] Where ω represents the window function; f represents the frequency in Hz; u represents the sliding time of the small window in seconds; t represents the time in seconds; j represents the imaginary unit, j 2 = -1. In addition, the time domain information resolution ΔT and the frequency domain information resolution ΔF in the time-frequency matrix obtained after the signal is subjected to STFT satisfy the Heisenberg uncertainty principle, and the time window length A determines ΔT and ΔF.
[0049] In another embodiment, in order to obtain experimental processing data, an experimental platform is built based on the TC-500 machine tool, as shown in the schematic diagram. Figure 1As shown in the figure, a series of milling experiments were carried out. The tool is a Zhuzhou Diamond ZCC-CT PML-4E-D6 straight shank four-edge end mill. The blank material is difficult-to-process stainless steel, the brand is GB S31608, and the cross-sectional size is 100mm×100mm. During the processing, the spindle speed is set to 6000rpm, the cutting width is set to 2.0mm, the cutting depth is set to 0.6mm, and the feed rate is set to 1500mm / min. The parts are processed by down milling, the tool path is "Zig", the outward process is processed, and the return process is idle. The experiment was repeated 3 times, and 100 layers of planes were processed each time. The Keyence VHX-700F ultra-depth microscope was used to measure the wear value of the four edges of the milling cutter once every 5 layers of planes, and the maximum value was regarded as the current tool wear value, and then the linear interpolation method was used to determine the tool wear value when processing the middle plane. The acceleration sensor is Dytran 3263A2, the acquisition card is NI9234, and the sampling frequency is 25600Hz. The Z-axis vibration signals of the middle and last planes are saved accordingly. Since the blank size is difficult to control, there are many burrs on the edges and the machining process is unstable; in the last few strokes of each blank machining plane, the blank side wall is thin and the machining process is also unstable. Therefore, only the vibration signals between the 5th and 45th strokes are selected for the subsequent tool wear prediction.
[0050] Each forward processing process will go through three stages: feed, continuous processing and retracting. Only the signal is relatively stable during the continuous processing. Therefore, only the relatively stable part of the signal is intercepted for subsequent analysis, and the signal segment length is 80000. In order to ensure the sample size, the method of obtaining shorter samples to be analyzed by sampling from the longer original signal with equal spacing is adopted to expand the sample size. According to the previous experimental experience, the length of each sample to be analyzed is set to 2048, and each original signal will obtain 10 samples to be analyzed through the above method. The starting point position a of the i-th sample after expansion i Satisfy the following formula:
[0051] a i =2048(i-1), i=1,2,…,10
[0052] At the same time, the data from the last two processing processes are set as the training set, and the data from the first processing process is set as the test set. At this time, the number of samples in the training set is 32,000, and the number of samples in the test set is 16,000.
[0053] By using STFT on the vibration signals in each sample set, the time domain information and frequency domain information of the data can be obtained simultaneously. For the signal to be analyzed x(t), the STFT result X(f,u) is calculated as follows:
[0054]
[0055] Wherein, ω represents the window function, and the present embodiment adopts the Hann window (Hann); f represents the frequency, and the unit is Hz; u represents the sliding time of the small window, and the unit is s; t represents the time, and the unit is s; j represents the imaginary unit, j 2 =-1. In addition, the time domain information resolution ΔT and the frequency domain information resolution ΔF in the time-frequency matrix obtained after the signal is STFT satisfy the Heisenberg uncertainty principle, and the time window length A can determine ΔT and ΔF. Therefore, considering the previous experimental results, the time window length A is 64, and the side length of the obtained time-frequency matrix is 33.
[0056] Step 2: Input the preprocessed training set data into the improved PCANet model to train the PCANet model.
[0057] The improved PCANet model is divided into two parts: APCANet-MP model (Activated-PCA Network with Max-Pooling) and SVR. The former extracts data features adaptively, and the latter predicts the wear of the milling cutter based on the selected sensitive features. The algorithm architecture is as follows: Figure 2 The APCANet-MP model is divided into three stages. The data processing methods of the first and second stages are exactly the same, including preprocessing layer, PCA convolution layer and activation layer, which are mainly used to adaptively learn sensitive features from the input sample data as much as possible. The post-processing stage includes the maximum pooling layer and the output layer, which are mainly used to screen sensitive features for subsequent milling cutter wear prediction. The APCANet-MP model structure is shown in Figure 3 shown.
[0058] In the first stage of preprocessing, the input data is the time-frequency matrix (i.e., feature map) obtained by STFT. For the input training sample set Y = [y1, y2, …, y n ](n is the number of samples, such as 32000) (p = 1, 2, ..., n; k represents the side length of the feature map), firstly, the sliding window method in the convolutional layer of the CNN network is used to process y p Assume that the sliding window size is m×m and the step size is 1. In order to prevent the loss of sample information during the analysis process as much as possible and ensure that all sample information can be analyzed equally, the sliding window operation needs to be performed on the feature Figure 4 When m is an odd number, the padding length is set to When m is an even number, the padding length on the left and top of the feature map is set to The padding lengths at the right and bottom are set to After the sliding window operation, we get y p The corresponding sliding window sample set k 2 is 1089, then Y p Each sample in is removed from the mean, and we get The mean of each sample is the corresponding m 2 The same operation is performed on each sample in the training sample set Y to obtain the sample set after removing the mean.
[0059] The subsequent PCA convolution layer first uses the PCA transformation to calculate the convolution kernel corresponding to the sample set after the mean is removed, and then convolves the convolution kernel with the original sample to highlight the sensitive feature information hidden in the original sample. Assuming that the number of PCA filters in the first stage is L1, the convolution kernel W obtained after filtering by the rth PCA filter is r 1 Calculate as follows:
[0060]
[0061] Among them, the vec2mat function is used to map the feature vector to the convolution kernel; q r The function is used to calculate the eigenvector corresponding to the rth principal component of the target variable.
[0062] Then, the obtained convolution kernel is convolved with the original input sample as follows:
[0063]
[0064] in, Represents the output result of the first-stage PCA convolutional layer; * represents the convolution operation.
[0065] In another embodiment:
[0066]
[0067] at last, After the activation layer, the output value of the first stage can be obtained
[0068]
[0069] Among them, f active Represents the activation function. Considering that the mean value of the feature will be close to 0 after the mean removal operation, the tanh activation function is used. At this time, the output value of each pixel is mainly distributed in (-1, 1). In another embodiment:
[0070]
[0071] Since the calculation process of the second stage is exactly the same as that of the first stage, assuming that the number of PCA filters in the second stage is L2, the final output value of the second stage is for:
[0072]
[0073] in, Represents the p1th element in the output of the first stage; Represents the convolution kernel obtained after filtering by the r1th PCA filter in the second stage.
[0074] In the post-processing stage, the maximum pooling layer uses a sliding window to take values of the target feature map according to specific operations, thereby completing the size compression of the input feature map without introducing additional parameters, greatly reducing the complexity of the model and accelerating the convergence of the model. max_pooling Follow the formula:
[0075] f max_pooling (Y wp )=max{Y m×m,2}
[0076] Among them, Y wp Represents the feature map to be pooled; Y m×m,2 Represents the feature matrix set selected by sliding window, the sliding window size is m×m (consistent with the sliding window size in the preprocessing layer), the step size is 2; the max function takes the maximum value for each matrix in the set. The maximum pooling layer can ensure that the pooled features remain translationally invariant and further highlight the local texture features.
[0077] Therefore, for the feature graph set to be analyzed The output Y after the maximum pooling out According to the formula:
[0078]
[0079] Among them, k1 represents the size of the output feature map after pooling.
[0080] Finally, in order to facilitate the subsequent prediction of milling cutter wear, the high-dimensional features (L1L2 feature maps) corresponding to each sample in the original training sample set need to be directly flattened into vectors in the output layer.
[0081] In addition, the SVR model uses a linear kernel function, the regularization parameter C uses the default value 1, and other parameters are also set by default.
[0082] Step three, apply the evaluation indicators to evaluate the trained model, and optimize the structural parameters of the improved PCANet model based on the evaluation results.
[0083] Specifically, according to the preliminary experimental results, the range of the parameters in the model is determined, and then the node search method is used to design the parameter optimization experiment. Finally, the regression evaluation indicators RMSE and determination coefficient R are used. 2 The trained models with different parameter combinations are quantitatively evaluated, and the optimal model structure parameter combination is determined based on the evaluation results.
[0084] In this implementation, the regression evaluation indicators root mean square error RMSE and determination coefficient R are used. 2 To quantitatively evaluate the prediction performance of the model, the calculation method is as follows:
[0085]
[0086]
[0087] Where M represents the number of samples; s represents the sequence number of the samples; W = [w1, w2, …, w M ] represents the actual wear value of the tool; the corresponding Represents the predicted tool wear value; Represents the mean of the actual tool wear value. Obviously, the better the model prediction effect, the smaller the RMSE value, and R 2 At the same time, in order to minimize the impact of random errors, each group of models was run 5 times, and the mean of the evaluation index was taken as the final evaluation result of the model prediction performance, while considering the variance σ of the estimated results.
[0088] In another embodiment, the model structure parameters to be optimized mainly include the sliding window / PCA filter size m and the number of filters L1 and L2 of the PCA convolution layer. For convenience, L1=L2=L f , other parameters are set by default. The regression evaluation indicators of the trained model are root mean square error RMSE and determination coefficient R 2 Calculate as follows:
[0089]
[0090]
[0091] Where M represents the number of samples (training set M = 32000, test set M = 16000); s represents the sequence number of the sample; W = [w1, w2, …, w 32000 ] represents the actual wear value of the tool; the corresponding Represents the predicted tool wear value; Represents the mean of the actual tool wear value. Obviously, the better the model prediction effect, the smaller the RMSE value, and R 2At the same time, in order to minimize the impact of random errors, each group of models was run 5 times, and the mean of the evaluation index was taken as the final evaluation result of the model prediction performance, while considering the standard deviation σ of the estimated results.
[0092] Number of filters L f Determines the depth of feature self-learning. According to the results of the preliminary experiments, L f The value range is [4,8,12,16]. In order to further determine the optimal number of filters L f Therefore, a comparative experiment is designed. The filter size m is temporarily set to 3, and the experimental results are shown in Table 1.
[0093] Table 1 Model prediction performance under different filter numbers L
[0094]
[0095] It can be seen from Table 1 that when the number of filters L f When it is lower than 8, RMSE increases with L f decreases with the increase of 2 Follow L f The model prediction accuracy is getting higher and higher; however, when the number of filters L f When L is greater than 8, the overfitting degree of the model begins to become deeper and deeper, and the RMSE increases with L f increases with the increase of 2 Follow L f Therefore, the number of filters L f It should be set to 8, at which point the model prediction performance is optimal.
[0096] At the same time, the filter size m determines the width of feature self-learning, thus affecting the results of model feature self-learning. Since m must be greater than 1, according to experience, the value range of m is [2, 3, 5, 7, 9]. Therefore, a comparative experiment is designed to determine the optimal value of the filter size m. The experimental results are shown in Table 2.
[0097] Table 2 Model prediction performance under different filter sizes m
[0098]
[0099] It is easy to see from Table 2 that when m is greater than 3, the prediction results of the model deviate further and further from the true value, RMSE gradually increases, and R 2 When m is equal to 2, the prediction result of the model is not optimal. Therefore, the optimal filter size m should be 3.
[0100] Step 4: Input the signal data of the milling cutter whose wear is to be predicted into the optimized model to predict the wear of the milling cutter.
[0101] The test set data was input into the trained and optimized model for testing, and the evaluation indicators RMSE and R were used 2 Evaluate the prediction performance of the model. In order to verify the improvement of the improved PCANet model in the prediction performance of milling cutter wear, deep learning models such as MFB-DCNN, PCANet-SVR and multi-layer perceptron (MLP) and traditional machine learning models such as PCA-SVR were introduced to conduct comparative experiments and analyze the RMSE and R of the prediction results of different models. 2 The mean and standard deviation of the model are shown in Table 3. Among them, the MFB-DCNN model is set according to the default structural parameters of the original model; in the PCANet-SVR model, the original model structure PCANet is used for feature self-learning, and the SVR model is introduced for tool wear value prediction. The number of filters, filter size and other model parameter settings are consistent with the improved PCANet model; the MLP model is a 4-layer fully connected structure, and the number of nodes is set according to experience, which are 1089, 64, 8 and 1 respectively; in the PCA-SVR model, 95% of the principal components are retained during PCA dimension reduction, and the SVR setting is consistent with the improved PCANet model. All algorithms are implemented using Python3.6 and its related library functions, among which the neural network models are implemented using Pytorch, and the SVR model is implemented using Scikit-learn. The server is configured with two Intel(R)Xeon(TM)E52640v4 processors, 128G DDR4 ECC memory, and the system is Ubuntu 16.04LTS. The experimental results are shown in Table 3.
[0102] Table 3 Comparison of prediction performance of different models
[0103]
[0104] It is not difficult to see from Table 3 that the deep learning model has a strong generalization ability and the prediction performance of the model is significantly better than that of the traditional machine learning model. The prediction performance of the improved PCANet model has been improved to a certain extent compared with the traditional deep learning model and the original PCANet model.
[0105] In order to further understand the prediction of the model for milling cutter wear values, the gap between the predicted values of tool wear of different models and the actual values is analyzed. According to the results in Table 3, the improved PCANet model, PCANet-SVR and MFB-DCNN models are selected for analysis. The results are as follows Figure 4 Analysis Figure 4It can be seen that in the stage of mild tool wear, the APCANet-MP-SVR model and the MFB-DCNN model can both accurately predict the tool wear value, and the prediction result of the PCANet-SVR model is far from the true value; after the tool enters the moderate wear stage, the prediction results of the three models are close to the true value; and when the tool wear is more serious, the tool wear value predicted by the APCANet-MP-SVR model is closer to the true value, and the MFB-DCNN model and the PCANet-SVR model can only roughly predict the tool wear trend, and the prediction results of the two are far from the true value. It can be seen that the improved PCANet model proposed in the present invention can more accurately predict the tool degradation trend. Due to the good interpretability of its own structure, the model has a broader application prospect.
[0106] It will be easily understood by those skilled in the art that the above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection scope of the present invention.
Claims
1. A milling cutter wear prediction method based on an improved PCANet model, characterized in that: The prediction method comprises the following steps: (1) The training set composed of signal data in the milling process is input into the improved PCANet model to train the PCANet model; the improved PCANet model is divided into two parts: the APCANet-MP model and the SVR model. The APCANet-MP model is divided into three stages. The data processing methods of the first and second stages are exactly the same, including the preprocessing layer, the PCA convolution layer and the activation layer; the post-processing stage includes the maximum pooling layer and the output layer; the SVR model uses a linear kernel function; (2) Use evaluation indicators to evaluate the trained improved PCANet model, and optimize the structural parameters of the improved PCANet model based on the evaluation results; (3) The signal data of the milling cutter whose wear is to be predicted is input into the optimized improved PCANet model to predict the wear of the milling cutter.
2. The milling cutter wear prediction method based on the improved PCANet model according to claim 1, characterized in that: The regularization parameter C corresponding to the SVR model uses the default value 1.
3. The milling cutter wear prediction method based on the improved PCANet model as claimed in claim 1, characterized in that: The APCANet-MP model is used to adaptively extract data features; the SVR model is used to predict the milling cutter wear based on the screened sensitive features.
4. The milling cutter wear prediction method based on the improved PCANet model as claimed in claim 1, characterized in that: Both the first and second stages are used to adaptively learn sensitive features from the input sample data; The post-processing stage is used to screen sensitive features for subsequent milling cutter wear prediction.
5. The milling cutter wear prediction method based on the improved PCANet model as claimed in claim 1, characterized in that: In the first stage of preprocessing, the input data is the time-frequency matrix obtained by STFT. For the input training sample set Y = [y1, y2, ..., y n The pth sample in ] n is the number of samples, p = 1, 2, ..., n; k represents the side length of the feature map. First, the sliding window method in the convolutional layer of the CNN network is used to process y p ; then for Y p Each sample in is removed from the mean, and we get The mean of each sample is the corresponding m 2 The mean of pixels; perform the same operation on each sample in the training sample set Y to obtain the sample set after removing the mean 6. The milling cutter wear prediction method based on the improved PCANet model as claimed in claim 5, characterized in that: The subsequent PCA convolution layer first calculates the convolution kernel corresponding to the sample set after removing the mean with the help of PCA transformation, and then convolves the convolution kernel with the original sample to highlight the sensitive feature information hidden in the original sample.
7. The milling cutter wear prediction method based on the improved PCANet model as claimed in claim 6, characterized in that: Assume that the number of PCA filters in the first stage is L1, and the convolution kernel obtained after filtering by the rth PCA filter is The calculation formula is: Among them, the vec2mat function is used to map the feature vector to the convolution kernel; q r The function is used to calculate the eigenvector corresponding to the rth principal component of the target variable; Then, the obtained convolution kernel is convolved with the original input sample as follows: in, Represents the output result of the first-stage PCA convolution layer; * represents the convolution operation; at last, After the activation layer, the output value of the first stage can be obtained Among them, f active Represents the activation function.
8. The milling cutter wear prediction method based on the improved PCANet model as claimed in claim 1, characterized in that: In step (2), the range of the parameters in the model is determined according to the results of the preliminary experiments, and then the node search method is used to design the parameter optimization experiment. Finally, the regression evaluation index root mean square error RMSE and determination coefficient R 2 The trained models with different parameter combinations are quantitatively evaluated respectively, and the optimal model structure parameter combination is determined according to the evaluation results, and then the parameters of the improved PCANet model are optimized.
9. The milling cutter wear prediction method based on the improved PCANet model as claimed in claim 1, characterized in that: In the post-processing stage, the maximum pooling layer uses a sliding window to obtain the value of the target feature map according to a specific operation. The operation process f max_pooling The formula used is: F max_pooling (AND wp )=max{Y m×m,2 } Among them, Y wp Represents the feature map to be pooled; Y m×m,2 Represents a set of feature matrices selected through a sliding window, the sliding window size is m×m, and the step size is 2; the max function takes the maximum value for each matrix in the set.
10. The milling cutter wear prediction method based on the improved PCANet model according to claim 1, characterized in that: The number of filters L in the PCA convolutional layer f is 8, the filter size m is 3; the evaluation indicators are root mean square error RMSE and determination coefficient R 2 , the corresponding calculation formulas are: Where M represents the number of samples; s represents the sequence number of the samples; W = [w1, w2, …, w M ] represents the actual wear value of the tool; the corresponding Represents the predicted tool wear value; The mean value represents the actual tool wear value.
