A rolling bearing degradation trend prediction method based on CAE and AGRU

The rolling bearing degradation trend prediction method that combines convolutional autoencoding networks and gated cyclic units solves the problem of relying on prior knowledge and low accuracy of prediction models in the existing technology, and realizes the adaptive extraction of health indicators from vibration signals and improves Forecast accuracy.

CN116304587BActive Publication Date: 2024-10-25NANJING TECH UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202211090266.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-09-07
Publication Date
2024-10-25
Estimated Expiration
2042-09-07

AI Technical Summary

Technical Problem

Existing rolling bearing degradation trend prediction methods rely on prior knowledge, the construction of health indicators relies on manual extraction and has poor anti-interference ability, and the accuracy of the prediction model is low.

Method used

A convolutional autoencoder network (CAE) is used to adaptively extract coding features from rolling bearing vibration signals to construct health indicators, and a rolling bearing degradation trend prediction model is combined with a gated recurrent unit (GRU) and an attention mechanism. Through the batch normalization layer and Adam optimizer improves model convergence and prediction accuracy.

Benefits of technology

It does not require a large amount of prior knowledge to adaptively extract health indicators, improves the accuracy and anti-interference ability of rolling bearing degradation trend prediction, and enhances the versatility and prediction accuracy of the model.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116304587B_ABST
    Figure CN116304587B_ABST
Patent Text Reader

Abstract

The present invention provides a rolling bearing degradation trend prediction method based on CAE to construct health indicators and AGRU, which is characterized by comprising the following steps: S1, converting the time domain signal of each sample of the rolling bearing into a frequency domain signal by fast Fourier transform; S2, setting a convolutional autoencoder (CAE) structure according to the size of the frequency domain signal and the size of the feature set to be extracted, the convolutional autoencoder adaptively extracts a coding feature set from the frequency domain signal of the rolling bearing, and selects high-quality features from the feature set according to time trend and monotonicity to construct a health indicator; S3, the health indicator is divided into a test set and a training set, the training set is input into a gated recurrent unit (AGRU) fused with an attention mechanism, the pruning algorithm is used to optimize the hyperparameters of the AGRU model, the training of the AGRU model is completed, the test set is input into the trained model, and the prediction of the degradation trend of the rolling bearing is completed; the construction method of the health indicator of the present invention does not require too much prior knowledge, has strong anti-interference ability, and the AGRU prediction model has high accuracy.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of fault diagnosis based on deep learning, and in particular to a rolling bearing degradation trend prediction method based on CAE and AGRU. Background Art

[0002] In modern industry, rolling bearings are an indispensable and important component of rotating machinery, and are widely used in industrial fields such as aerospace, intelligent manufacturing and wind power generation. Due to the complexity of their working environment, rolling bearings often suffer from wear, corrosion and fracture. Once a rolling bearing fails, it will cause huge economic losses or even casualties. Therefore, it is necessary to predict the degradation trend of rolling bearings to improve reliability and safety.

[0003] There are two main methods for degradation trend prediction: model-based and data-driven. Model-based methods require a large amount of data and are difficult to apply to complex systems. Data-driven methods do not require much prior knowledge. With the development of machine learning and deep learning, data-driven degradation trend prediction has been widely used.

[0004] Degradation trend prediction includes the construction of health indicators and the establishment of prediction models. Health indicators are mainly divided into physical indicators and fusion indicators, but these traditional indicators rely on manual extraction and have poor anti-interference ability. Using deep learning for health indicator construction can avoid these problems. The prediction model is also an important step that affects the accuracy of degradation trend prediction. Traditional prediction models include BP neural network, least squares support vector regression and extreme learning machine. In recent years, with the popularity of deep learning, models such as recurrent neural network, long short-term memory network, gated recurrent unit and deep belief network have gradually become mainstream prediction models with their powerful learning ability and generalization. Summary of the invention

[0005] In view of the shortcomings of existing health index construction methods that rely on prior knowledge and have low prediction model accuracy, the present invention provides a method for predicting the degradation trend of rolling bearings, which can adaptively extract features from original vibration signals to construct health indicators and improve the accuracy of the prediction model.

[0006] To achieve the above object, the present invention provides the following technical solutions:

[0007] A rolling bearing degradation trend prediction method based on CAE construction of health indicators and AGRU is characterized by comprising the following specific steps:

[0008] S1. Preprocessing of rolling bearing vibration signals: converting the time domain signal of each sample of the rolling bearing full life data into a frequency domain signal using fast Fourier transform;

[0009] S2, health index construction, setting the convolutional autoencoder network parameters according to the frequency domain signal size and the size of the coding features to be extracted, the convolutional autoencoder adaptively extracts the coding feature set from the frequency domain signal, and selects high-quality features from it according to time trend and monotonicity to construct the health index;

[0010] The pooling layer in the convolutional neural network is mainly used for dimensionality reduction and is not helpful for accuracy. Therefore, the CAE model for constructing health indicators in the present invention does not use the pooling layer, but adds a batch normalization layer to accelerate network convergence and prevent overfitting. The activation function uses the sigmoid function, and the Adam optimizer is used to optimize the loss training; let x be the frequency domain signal input to the convolutional autoencoder network, and the encoding process can be expressed as:

[0011] h k =σ(x*W k +b k )

[0012] Among them, σ is the activation function, * represents the convolution operation, k is the number of convolution kernels, and W k and b k are the weight and bias terms from the input layer to the hidden layer;

[0013] The decoder reconstructs the encoded features of the hidden layer into an output with a size close to the original data by stacking multiple upsampling layers and deconvolution layers. The decoding process can be expressed as:

[0014]

[0015] in: and are the weight and bias terms from the hidden layer to the output layer;

[0016] The batch normalization layer formula is as follows:

[0017]

[0018] Where: x w is the data input to the batch normalization layer, y w is the normalized output data, μ w and σ w are the mean and standard deviation of the input data, β w and γ w are the learnable translation and scaling parameters, respectively. The superscript w represents the w-th dimension of the data, and ε is a small amount to prevent the denominator from being zero.

[0019] The calculation formula of the convolutional layer output is as follows:

[0020]

[0021] The calculation formula of the deconvolution layer is as follows:

[0022] L out =(L in -1)×stride-2×padding+dilation×(kernel_size-1)+L out

[0023] Where: L in The size of the convolutional layer input data, L out is the size of the convolutional layer output data, padding is the padding added to both sides of the input data, dilation is the spacing between convolution kernels, kernel_size is the size of the convolution kernel, and stride is the stride of the convolution.

[0024] The convolutional autoencoder network loss function E(x,y) is defined as:

[0025]

[0026] Where: N is the batch size, x i is the encoder input data, y i Output data for the decoder.

[0027] The frequency domain features are input into the convolutional autoencoder network to extract the encoding feature set, and the encoding feature set is normalized. Furthermore, high-quality encoding features are selected as health indicators based on time trend and monotonicity. Monotonicity Mon represents the trend of the characteristic index increasing or decreasing over time. The value range of Mon is [0,1]. The closer its value is to 1, the better the monotonicity of the characteristic index. The calculation formula of the monotonicity Mon evaluation standard is as follows:

[0028]

[0029] in, is the number of positive derivatives of the characteristic index sequence, is the number of negative derivatives of the characteristic index sequence, and T is the length of the characteristic sequence.

[0030] The calculation formula of the time trend Corr evaluation standard is as follows:

[0031]

[0032] Among them, d i is the difference between the characteristic indicator series and the time series.

[0033] Both the monotonicity Mon and the time trend Corr are important measures for judging the quality of health indicators. However, each indicator can only evaluate part of the attributes of the health indicators. The present invention linearly combines the two evaluation indicators to comprehensively evaluate the quality of health indicators. The comprehensive evaluation standard Cie is as follows:

[0034]

[0035] According to Cie, the encoding feature with the best comprehensive index is selected as the health indicator.

[0036] S3, AGRU trend prediction model, the health indicators are divided into test set and training set, the training set is input into the gated recurrent unit integrated with the attention mechanism, the pruning algorithm optimizes the AGRU model hyperparameters, the training of the AGRU model is completed, the test set is input into the trained model, and the prediction of the rolling bearing degradation trend is completed.

[0037] The training process of the AGRU model in step S3 includes the following steps:

[0038] Step 3-1: Divide the health indicators into training set and test set, 80% of which is the training set and 20% is the test set;

[0039] Step 3-2: Divide the training set into feature set and target set. The training samples are as follows:

[0040]

[0041] Step 3-3: Set the training set feature set x = (x1, x2, ..., x t ) is input into the GRU network of the encoder to obtain the hidden state output h = (h1,h2,...,h t ), assuming x t is the input at the current moment, then the output of the hidden state h t The calculation process is as follows:

[0042] z t =σ(W Z ·[h t-1 ,x t ])

[0043] Among them, z t is the update gate, which determines how much of the previous moment’s content is retained and how much of the current moment’s information is added. σ is the sigmoid activation function, and h t-1 is the hidden state and output of the previous moment, W Z is the weight matrix of the update gate, and “·” represents the dot product operation.

[0044] r t =σ(Wr ·[h t-1 ,x t ])

[0045] Among them, r t To reset the gate, determine the amount of historical information to be discarded, W r is the weight matrix of the reset gate.

[0046]

[0047]

[0048] Among them, the candidate state is the input x at the current moment t With the previous moment h t-1 The retained information after the reset gate is combined to obtain the hidden state at the current moment, that is, the output h t Provide information, W h is the weight matrix in the candidate state operation process, and “*” represents the matrix multiplication operation.

[0049] Step 3-4: The encoder outputs the hidden state h = (h1, h2, ..., h t ) After the calculation is completed, the encoder’s current hidden state h t In the GRU network of the input decoder, the calculation process is similar to step 3-3, except that the input data becomes h t , the output data is s t ,s t is the hidden state output of the decoder.

[0050] Step 3-5: The importance of the encoder's hidden state output at all times to the decoder's hidden state output is calculated through the score function. The score function calculation process and the dot product model used in the specific implementation process are as follows:

[0051] e t =score(s t ,h)

[0052] e t =s t T h

[0053] Where h=(h1,h2,...,h t ) is the hidden state output of the encoder at each moment, s t is the hidden state output of the decoder, e t =(e t,1 ,e t,2 ,...e t,t ) is the important score of the hidden state of the encoder at each moment.

[0054] Step 3-6: Normalize the important scores of the encoder's hidden state at each moment through the softmax function to obtain the weight coefficients of the encoder's hidden state at each moment. The calculation process is as follows:

[0055] α t =softmax(e t )

[0056] Among them, e t =(e t,1 ,e t,2 ,...e t,t ) is the important score of the hidden state of the encoder at each moment, α t =(α t,1 ,α t,2 ,...α t,t ) is the weight of the hidden state of the encoder at each moment.

[0057] Step 3-7: After obtaining the weights, the output of the encoder's hidden state at each moment is weighted and summed with the corresponding weights to obtain the encoder's new hidden state c t Output, the calculation results are as follows:

[0058]

[0059] Step 3-8: Combine the new hidden state output of the encoder with the hidden state output of the decoder and get the output of the predicted value through the fully connected layer. The calculation process is as follows:

[0060]

[0061]

[0062] in, is the hidden state of the encoder and decoder combined, and Y is the predicted value.

[0063] Step 3-9: Use the MSE loss function to predict the value Y = (y1, y2, ...y i ) and the target value set The minimum value of the loss function is taken as the optimization target, and the Adam optimization algorithm is used to update the parameters. The loss function calculation formula is as follows:

[0064]

[0065] Step 3-10: Set the hyperparameter range and use the pruning algorithm to optimize the hyperparameters. After searching 60 times, the optimal hyperparameters are obtained and the AGRU model training is completed.

[0066] Step 3-11: Format the test set and input it into the AGRU model. The training set format is as follows:

[0067]

[0068] Step 3-11: Input the training set into the AGRU model to obtain the predicted value, compare it with the true value, and evaluate the prediction effect by calculating the root mean square error RMSE and the mean absolute error MAP. The evaluation index calculation formula is as follows:

[0069]

[0070]

[0071] Among them, n is the number of predicted points, y i is the true value, is the predicted value.

[0072] The smaller the values ​​of the evaluation indicators RMSE and MAP, the better the prediction effect of the model. The prediction effect can also be shown through images.

[0073] Compared with the prior art, the present invention has the following beneficial effects:

[0074] (1) Traditional health indicators are divided into two categories: one is physical indicators such as root mean square; the other is fusion indicators, which extract time domain, frequency domain and time-frequency domain indicators from the original vibration signal, and then use dimensionality reduction algorithms such as principal component analysis to construct health indicators. Traditional health indicators require a lot of prior knowledge and have poor anti-interference ability. The present invention uses a convolutional autoencoder unsupervised algorithm to adaptively extract coding features from the rolling bearing vibration frequency domain signal to construct health indicators, which does not require a lot of prior knowledge and has strong versatility.

[0075] (2) The output of the GRU model at the current moment is only related to the hidden state at the previous moment, and the hidden state at the previous moment also affects the output at the current moment. The present invention integrates the attention mechanism into the GRU network, forcing the network to review the hidden state of the encoder at all moments, thereby solving the problem of short-term memory of the GRU model and improving the accuracy of the prediction model. BRIEF DESCRIPTION OF THE DRAWINGS

[0076] Figure 1 It is a flow chart of the rolling bearing degradation trend prediction method based on CAE and AGRU of the present invention;

[0077] Figure 2 Schematic diagram of the convolutional autoencoder structure;

[0078] Figure 3 This is the GRU neuron structure diagram;

[0079] Figure 4 This is a schematic diagram of the AGRU model principle;

[0080] Figure 5 The health indicator constructed by CAE in the embodiment;

[0081] Figure 6 This is one of the AGRU prediction model effect diagrams in the embodiment

[0082] Figure 7 This is the second effect diagram of the AGRU prediction model in the embodiment. DETAILED DESCRIPTION

[0083] In order to clarify the technical problems, technical solutions, implementation processes and performance demonstrations, the present invention is further described in detail below in conjunction with embodiments. It should be understood that the specific embodiments described herein are for explanation only. The present invention is not intended to limit the present invention. Various exemplary embodiments, features and aspects of the present disclosure will be described in detail below with reference to the accompanying drawings. The same reference numerals in the accompanying drawings represent elements with the same or similar functions. Although various aspects of the embodiments are shown in the accompanying drawings, the drawings do not have to be drawn to scale unless otherwise specified.

[0084] The word “exemplary” is used exclusively herein to mean “serving as an example, example, or illustration.” Any embodiment described herein as “exemplary” is not necessarily to be construed as preferred or advantageous over other embodiments.

[0085] In addition, in order to better illustrate the present disclosure, numerous specific details are given in the following specific embodiments. It should be understood by those skilled in the art that the present disclosure can also be implemented without certain specific details. In some examples, methods, means, components and circuits well known to those skilled in the art are not described in detail in order to highlight the subject matter of the present disclosure.

[0086] Example 1

[0087] The sample of the implementation plan is the full life data of rolling bearings provided by the PHM2012 Challenge. The experiment is an accelerated life test of rolling bearings completed on the PRONOSTIA platform. The horizontal acceleration vibration signal of Bearing1-1 is selected, with a total of 2803 samples. Each sample collects 2560 data points, and the sampling frequency is 25.6KHz.

[0088] Figure 1 It is a flow chart of the rolling bearing degradation trend prediction method based on CAE and AGRU.

[0089] like Figure 1 As shown, the rolling bearing degradation trend prediction method based on CAE and AGRU is carried out in the following steps:

[0090] Step 1: Use fast Fourier transform to convert the time domain signal of each sample of rolling bearing full life data into a frequency domain signal, taking half of the points for each sample, and each sample becomes 1280 data points.

[0091] Step 2: Set the parameters of the convolutional autoencoder network according to the size of the frequency domain signal and the size of the coding features to be extracted. The convolutional autoencoder adaptively extracts the coding feature set from the frequency domain signal, and selects high-quality features from it according to the time trend and monotonicity to construct the health index. The principle of the convolutional autoencoder network is as follows: Figure 2 As shown, the convolutional autoencoder structure setting is shown in Table 1.

[0092] Table 1 Convolutional autoencoder network structure settings

[0093]

[0094]

[0095] The CAE model for constructing health indicators in the present invention does not use a pooling layer, but adds a batch normalization layer to accelerate network convergence and prevent overfitting. The activation function uses the sigmoid function, and the Adam optimizer is used to optimize the loss training. The convolutional autoencoder network loss function E(x,y) is defined as:

[0096]

[0097] Where: N is the batch size, x i is the encoder input data, y i Output data for the decoder.

[0098] The frequency domain features are input into the convolutional autoencoder network to extract the encoding feature set, and the encoding feature set is normalized. Furthermore, high-quality encoding features are selected as health indicators based on time trend and monotonicity. Monotonicity Mon represents the trend of the characteristic index increasing or decreasing over time. The value range of Mon is [0,1]. The closer its value is to 1, the better the monotonicity of the characteristic index. The calculation formula of the monotonicity Mon evaluation standard is as follows:

[0099]

[0100] in, is the number of positive derivatives of the characteristic index sequence, is the number of negative derivatives of the characteristic index sequence, and T is the length of the characteristic sequence.

[0101] The degradation of rolling bearings is an irreversible process. Good health indicators should have a strong trend with the time series. Since the performance degradation process of rolling bearings is a nonlinear process, the Spearman correlation coefficient is used to evaluate the time trend Corr of the coded feature set. The calculation formula for the time trend Corr evaluation standard is as follows:

[0102]

[0103] Among them, d i is the difference between the characteristic indicator series and the time series.

[0104] Both the monotonicity Mon and the time trend Corr are important measures for judging the quality of health indicators. However, each indicator can only evaluate part of the attributes of the health indicators. The present invention linearly combines the two evaluation indicators to comprehensively evaluate the quality of health indicators. The comprehensive evaluation standard Cie is as follows:

[0105]

[0106] According to Cie, the encoding feature with the best comprehensive index is selected as the health indicator.

[0107] Step 3: AGRU trend prediction model, the health indicators are divided into test set and training set, the training set is input into the gated recurrent unit integrated with the attention mechanism, the pruning algorithm optimizes the AGRU model hyperparameters, the training of the AGRU model is completed, the test set is input into the trained model, and the rolling bearing degradation trend prediction is completed.

[0108] The training process of the AGRU model includes the following steps:

[0109] Step 3-1: Divide the health indicators into training set and test set, 80% of which is the training set and 20% is the test set;

[0110] Step 3-2: Divide the training set into feature set and target set. The training samples are as follows:

[0111]

[0112] Step 3-3: Set the training set feature set x = (x1, x2, ..., x t ) is input into the GRU network of the encoder to obtain the hidden state output h = (h1,h2,...,h t ), the GRU neuron structure is as follows Figure 3 As shown, assuming x t is the input at the current moment, then the output of the hidden state h t The calculation process is as follows:

[0113] zt =σ(W Z ·[h t-1 ,x t ])

[0114] Among them, z t is the update gate, which determines how much of the previous moment’s content is retained and how much of the current moment’s information is added. σ is the sigmoid activation function, and h t-1 is the hidden state and output of the previous moment, W Z is the weight matrix of the update gate, and “·” represents the dot product operation.

[0115] r t =σ(W r ·[h t-1 ,x t ])

[0116] Among them, r t To reset the gate, determine the amount of historical information to be discarded, W r is the weight matrix of the reset gate.

[0117]

[0118]

[0119] Among them, the candidate state is the input x at the current moment t With the previous moment h t-1 The retained information after the reset gate is combined to obtain the hidden state at the current moment, that is, the output h t Provide information, W h is the weight matrix in the candidate state operation process, and “*” represents the matrix multiplication operation.

[0120] Step 3-4: The encoder outputs the hidden state h = (h1, h2, ..., h t ) After the calculation is completed, the encoder’s current hidden state h t In the GRU network of the input decoder, the calculation process is similar to step 3-3, except that the input data becomes h t , the output data is s t ,s t is the hidden state output of the decoder.

[0121] Step 3-5: The importance of the encoder's hidden state output at all times to the decoder's hidden state output is calculated through the score function. The score function calculation process and the dot product model used in the specific implementation process are as follows:

[0122] e t =score(st ,h)

[0123] e t =s t T h

[0124] Where h=(h1,h2,...,h t ) is the hidden state output of the encoder at each moment, s t is the hidden state output of the decoder, e t =(e t,1 ,e t,2 ,...e t,t ) is the important score of the hidden state of the encoder at each moment.

[0125] Step 3-6: Normalize the important scores of the encoder's hidden state at each moment through the softmax function to obtain the weight coefficients of the encoder's hidden state at each moment. The calculation process is as follows:

[0126] α t =softmax(e t )

[0127] Among them, e t =(e t,1 ,e t,2 ,...e t,t ) is the important score of the hidden state of the encoder at each moment, α t =(α t,1 ,α t,2 ,...α t,t ) is the weight of the hidden state of the encoder at each moment.

[0128] Step 3-7: After obtaining the weights, the output of the encoder's hidden state at each moment is weighted and summed with the corresponding weights to obtain the encoder's new hidden state c t Output, the calculation results are as follows:

[0129]

[0130] Step 3-8: Combine the new hidden state output of the encoder with the hidden state output of the decoder and get the output of the predicted value through the fully connected layer. The calculation process is as follows:

[0131]

[0132]

[0133] in, is the hidden state of the encoder and decoder combined, and Y is the predicted value.

[0134] Step 3-9: Use the MSE loss function to predict the value Y = (y1, y2, ...y i ) and the target value set The minimum value of the loss function is taken as the optimization target, and the Adam optimization algorithm is used to update the parameters. The loss function calculation formula is as follows:

[0135]

[0136] Step 3-10: Set the hyperparameter range and use the pruning algorithm to optimize the hyperparameters. After searching 60 times, the optimal hyperparameters are obtained, where the time step is 20, the number of hidden layers is 256, and the training batch size is 256. The AGRU model training is completed.

[0137] Step 3-11: Format the test set and input it into the AGRU model. The training set format is as follows:

[0138]

[0139] Step 3-11: Input the training set into the AGRU model to obtain the predicted value, compare it with the true value, and evaluate the prediction effect by calculating the root mean square error RMSE and the mean absolute error MAP. The evaluation index calculation formula is as follows:

[0140]

[0141]

[0142] Among them, n is the number of predicted points, y i is the true value, is the predicted value.

[0143] The smaller the values ​​of RMSE and MAP, the better the prediction effect of the model. The AGRU model is compared with several other prediction models. The prediction comparison results are as follows: Figure 6 As shown in Table 2, the comparison of RMSE and MAP results of the evaluation indicators is shown in Table 2.

[0144] Table 2 Comparison of trend prediction results of different models

[0145]

[0146] from Figure 6As can be seen from Table 2, the AGRU prediction model proposed in the present invention has achieved better results in terms of RMSE and MAP evaluation indicators compared with the other four prediction models. The machine learning model LS-SVM has strong nonlinear fitting ability on small sample data, but cannot obtain the time series information in the data. The RNN model has problems such as gradient disappearance and gradient explosion during the training process, resulting in poor prediction accuracy. The GRU and LSTM models creatively add a "gate structure" to the network structure to overcome the gradient problem of RNN during the training process, and the accuracy is higher than that of RNN. The GRU model further simplifies the LETM network structure, reduces the parameters by nearly one-third, and is not easy to overfit during the training process. Under the same number of iterations, the GRU accuracy is slightly better than LSTM. The GRU model does not take into account the influence of the more distant hidden layer on the predicted value at the current moment. The AGRU model adds an attention layer to the GRU model structure, forcing the encoder to review the hidden layer state at each moment, solving the short-term memory problem of the GRU model and improving the prediction accuracy.

[0147] The above shows and describes the basic principles, main features and advantages of the present invention. Those skilled in the art should understand that the present invention is not limited by the above embodiments. The above embodiments and descriptions are only preferred examples of the present invention and are not intended to limit the present invention. Without departing from the spirit and scope of the present invention, the present invention may have various changes and improvements, which fall within the scope of the present invention. The scope of protection of the present invention is defined by the attached claims and their equivalents.

Claims

1. A rolling bearing degradation trend prediction method based on CAE to construct health indicators and AGRU, characterized in that: The specific steps include: S1. Preprocessing of rolling bearing vibration signals: converting the time domain signal of each sample of the rolling bearing full life data into a frequency domain signal using fast Fourier transform; S2, health index construction, setting the convolutional autoencoder network parameters according to the frequency domain signal size and the size of the coding features to be extracted, the convolutional autoencoder adaptively extracts the coding feature set from the frequency domain signal, and selects high-quality features from it according to time trend and monotonicity to construct the health index; A batch normalization layer is added to accelerate network convergence and prevent overfitting. The sigmoid function is used as the activation function, and the Adam optimizer is used to optimize the loss training. Let x be the frequency domain signal input to the convolutional autoencoder network. The encoding process can be expressed as: h k =σ(x*W k +b k ) Among them, σ is the activation function, * represents the convolution operation, k is the number of convolution kernels, and W k and b k are the weight and bias terms from the input layer to the hidden layer; The decoder reconstructs the encoded features of the hidden layer into an output with a size close to the original data by stacking multiple upsampling layers and deconvolution layers. The decoding process can be expressed as: in: and are the weight and bias terms from the hidden layer to the output layer; The batch normalization layer formula is as follows: Where: x w is the data input to the batch normalization layer, y w is the normalized output data, μ w and σ w are the mean and standard deviation of the input data, β w and w are the learnable translation parameter and scaling parameter, respectively. The superscript w represents the wth dimension of the data, and ε is a small amount to prevent the denominator from being zero. The calculation formula of the convolutional layer output is as follows: The calculation formula of the deconvolution layer is as follows: L out =(L in —1)×stride—2×padding+dilation×(kernel_size—1)+L out Where: L in The size of the convolutional layer input data, L out is the size of the convolutional layer output data, padding is the padding added to both sides of the input data, dilation is the spacing between convolution kernels, kernel_size is the size of the convolution kernel, and stride is the stride of the convolution; The convolutional autoencoder network loss function E(x,y) is defined as: Where: N is the batch size, x i is the encoder input data, y i Output data for the decoder; The frequency domain features are input into the convolutional autoencoder network to extract the encoding feature set, and the encoding feature set is normalized. Furthermore, high-quality encoding features are selected as health indicators based on time trend and monotonicity. Monotonicity Mon represents the trend of the characteristic index increasing or decreasing over time. The value range of Mon is [0,1]. The closer its value is to 1, the better the monotonicity of the characteristic index. The calculation formula of the monotonicity Mon evaluation standard is as follows: Among them, Number is the number of positive derivatives of the characteristic index sequence, Number is the number of negative derivatives of the characteristic index sequence, and T is the length of the characteristic sequence; The calculation formula of the time trend Corr evaluation standard is as follows: Among them, d i is the difference between the characteristic indicator series and the time series; The two evaluation indicators are linearly combined to comprehensively evaluate the pros and cons of health indicators. The comprehensive evaluation criterion Cie is as follows: According to Cie, the coding feature with the best comprehensive index is selected as the health indicator; S3, AGRU trend prediction model, health indicators are divided into test set and training set, the training set is input into the gated recurrent unit integrating the attention mechanism, the pruning algorithm is used to optimize the hyperparameters of the AGRU model, the training of the AGRU model is completed, the test set is input into the trained model, and the prediction of the rolling bearing degradation trend is completed; the training process of the AGRU model in step S3 includes the following steps: Step 3-1: Divide the health indicators into training set and test set, 80% of which is the training set and 20% is the test set; Step 3-2: Divide the training set into feature set and target set. The training samples are as follows: Step 3-3: Set the training set feature set x = (x1, x2, ..., x t ) is input into the GRU network of the encoder to obtain the hidden state output h = (h1,h2,...,h t ), assuming x t is the input at the current moment, then the output of the hidden state h t The calculation process is as follows: z t =σ(W Z .[h t-1 ,x t ]) Among them, z t is the update gate, which determines how much of the previous moment’s content is retained and how much of the current moment’s information is added. σ is the sigmoid activation function, and h t—1 is the hidden state and output of the previous moment, W Z is the weight matrix of the update gate, "." represents the dot product operation; r t =σ(W r .[h t-1 ,x t ]) Among them, r t To reset the gate, determine the amount of historical information to be discarded, W r is the weight matrix of the reset gate; Among them, the candidate state h~ t is the input x at the current moment t With the previous moment h t-1 The retained information after the reset gate is combined to obtain the hidden state at the current moment, that is, the output h t Provide information, W h is the weight matrix in the candidate state operation process, "*" represents the matrix multiplication operation; Step 3-4: The encoder outputs the hidden state h = (h1, h2, ..., h t ) After the calculation is completed, the encoder’s current hidden state h t In the GRU network of the input decoder, the calculation process is similar to step 3-3, except that the input data becomes h t , the output data is s t ,s t is the hidden state output of the decoder; Step 3-5: The importance of the encoder's hidden state output at all times to the decoder's hidden state output is calculated through the score function. The score function calculation process and the dot product model used in the specific implementation process are as follows: e t =score(s t ,h) e t =s t T h Where h=(h1,h2,...,h t ) is the hidden state output of the encoder at each moment, s t is the hidden state output of the decoder, e t =(e t,1 ,e t,2 ,...e t,t ) is the important score of the encoder's hidden state at each moment; Step 3-6: Normalize the important scores of the encoder's hidden state at each moment through the softmax function to obtain the weight coefficients of the encoder's hidden state at each moment. The calculation process is as follows: a t =softmax(e t ) Among them, e t =(e t,1 ,e t,2 ,...e t,t ) is the important score of the encoder’s hidden state at each moment, α t =(α t,1 ,α t,2 ,...α t,t ) is the weight of the hidden state of the encoder at each moment; Step 3-7: After obtaining the weights, the output of the encoder's hidden state at each moment is weighted and summed with the corresponding weights to obtain the encoder's new hidden state c t Output, the calculation results are as follows: Step 3-8: Combine the new hidden state output of the encoder with the hidden state output of the decoder and get the output of the predicted value through the fully connected layer. The calculation process is as follows: h~=concatenate(c t ,s t ) Y=FC(h~) Among them, h~ is the hidden state of the encoder and decoder combined, and Y is the predicted value; Step 3-9: Use the MSE loss function to predict the value Y = (y1, y2, ...y i ) and the target value set ~Y=(y~1,y~2,…y~ i ) is used as the optimization target, and the Adam optimization algorithm is used to update the parameters. The loss function calculation formula is as follows: Step 3-10: Set the hyperparameter range and use the pruning algorithm to optimize the hyperparameters. After searching 60 times, the optimal hyperparameters are obtained and the AGRU model training is completed. Step 3-11: Format the test set and input it into the AGRU model. The training set format is as follows: Step 3-11: Input the training set into the AGRU model to obtain the predicted value, compare it with the true value, and evaluate the prediction effect by calculating the root mean square error RMSE and the mean absolute error MAP. The evaluation index calculation formula is as follows: Among them, n is the number of predicted points, y i is the true value, y~ i is the predicted value.