Method for predicting residual service life of aero-engine based on DIform

Through the dimensionally independent patch embedding technology of the DIformer model, the problem of insufficient feature extraction from multi-sensor data of aero-engines is solved, the accuracy and performance of remaining service life prediction of aero-engines are improved, and more accurate engine health management is supported.

CN118862011AActive Publication Date: 2024-10-29UNIV OF ELECTRONICS SCI & TECH OF CHINA

Patent Information

Application Number
CN202410876728.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-02
Publication Date
2024-10-29
Estimated Expiration
2044-07-02

AI Technical Summary

Technical Problem

The existing technology has deficiencies in the time-step features and sensor feature extraction of multi-sensor data of aero-engines. It is difficult to make full use of different time-steps and sensor information, which affects the accuracy of the remaining service life prediction of aero-engines.

Method used

A DIformer-based aeroengine remaining service life prediction method is adopted, and a dual-channel Transformer model embedded with dimensionally independent patches is used to capture the dependencies between sensors and time step dimensions for feature extraction and prediction.

Benefits of technology

It improves the model's ability to extract spatio-temporal features, improves the accuracy and performance of aeroengine remaining service life prediction, reduces prediction errors, and supports more accurate engine health management decisions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118862011A_ABST
    Figure CN118862011A_ABST
Patent Text Reader

Abstract

The invention discloses a method for predicting the residual service life of an aero-engine based on a two-channel Transform embedded by a dimension independent patch. Comprising the following steps: data preprocessing, construction of a DIform neural network model, construction of a training and verification method, model training, and prediction of the remaining service life of the aero-engine by using the model. According to the DIform model provided by the invention, on the basis of a traditional Transform model, feature extraction of multi-element sensor dimensions is added, so that the DIform model obtains a lower prediction error in the typical multi-element time sequence prediction problem of aero-engine residual service life prediction, the feature extraction capability of the aero-engine multi-element sensor is enhanced, and the prediction accuracy of the aero-engine residual service life prediction is improved. And the accuracy of the model in prediction of the residual service life of the aero-engine is effectively improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of deep learning and aircraft engine prognostics and health management (PHM), and in particular to a method for predicting the remaining useful life of an aircraft engine based on DIformer. Background Art

[0002] The prediction of the remaining useful life (RUL) of aircraft engines has always been considered a core technology for prediction and health management. Advanced methods for predicting the remaining useful life of aircraft engines can eliminate hidden dangers before failures occur, further reduce aircraft accident rates, and support maintenance decisions throughout the engine life cycle, greatly reducing operating and maintenance costs. It is one of the key technologies that the aviation industry urgently needs to develop and an important sign of advanced intelligent engines.

[0003] Remaining useful life refers to the useful life of a randomly degraded device from its current state to the point before it fails. Based on the device's past operating state and historical data of similar devices under the same operating conditions, the remaining useful life prediction is used to predict the device's useful life from its current state to the point before it fails. Therefore, the prediction method developed under this background is not only applicable to the RUL prediction of aircraft engines, but also to the RUL prediction of mechanical equipment with similar random degradation properties.

[0004] The Transformer architecture is a neural network architecture for natural language processing proposed by the Google team in 2017. After years of development, the Transformer architecture has derived many variants and has been applied to other fields besides natural language processing, such as computer vision, speech signal processing, multimodal applications, etc. In the field of multivariate time series prediction, many Transformer variant structures have also been derived to solve various practical problems. In the problem of aircraft engine remaining service life prediction, some researchers have extracted the time step features of aircraft engine multivariate sensor data and predicted the engine life, but there is a lack of research on the simultaneous extraction of time step features and sensor features of aircraft engine multivariate sensor data.

[0005] From the above description of the aircraft engine RUL prediction problem, it can be seen that the current RUL value of the engine is mainly determined by the signals of different sensors at different previous time steps. Therefore, making full use of the information of different time steps and various sensors plays a vital role in RUL prediction. In addition, the multi-source sensor information at different time steps contains important features in two dimensions: the time step dimension and the sensor dimension, that is, different time steps and different sensors have different degrees of influence on the engine RUL. In order to better extract the features of the engine CBM data in the time step dimension and the sensor dimension at the same time, the present invention provides a dual-channel Transformer (DIformer) with dimension-independent patch embedding, and introduces a new dimension-independent patch embedding method to effectively capture the dependencies between the embedded segments in the two dimensions of sensor and time step. Summary of the invention

[0006] The present invention provides an aircraft engine RUL prediction method based on DIformer, which provides a new technical solution for the current aircraft engine RUL prediction.

[0007] The technical solution of the present invention is as follows:

[0008] A method for predicting the remaining useful life of an aircraft engine based on DIformer, characterized by comprising the following steps:

[0009] S1: Collect the time series monitoring data of each sensor of the aircraft engine and mark the collected time series data as the original data set for training the model;

[0010] S2: Preprocess the labeled multivariate time series data of aircraft engines and convert them into standardized time series feature vectors that meet the requirements of model training;

[0011] S3: Use sliding windows to process continuous standardized time series feature vectors and convert them into small batch samples required for model training;

[0012] S4: Build the DIformer model, set the model hyperparameter optimization algorithm, and use small batch training samples as model input for training;

[0013] S5: The optimization algorithm automatically selects and retains the model weight file with the smallest prediction error to obtain the optimal model;

[0014] S6: Input the validation set into the model for functional verification. If the validation result is close to the test result, the model training is completed and the DIformer-based aircraft engine remaining useful life prediction model is obtained.

[0015] The present invention according to the above technical solution is characterized in that: in step S1, the collected time series is marked, and the data to be marked include the engine ID and the number of engine working cycles. It should be noted that if the collected aircraft engine sensor data is not the full life cycle data of the aircraft engine, it is necessary to additionally mark the remaining service life of the engine in the last working cycle.

[0016] The present invention according to the above technical solution is characterized in that: in step S2, it is necessary to pre-process the labeled multivariate time series data of the aircraft engine, and the specific steps of the pre-processing are as follows:

[0017] S2.1: Data cleaning. Assume that the complete engine degradation process includes N moments, and obtain the engine operation data collected by m sensors:

[0018]

[0019] Among them, the degradation sequence of the jth (j=1,2,…,m) sensor is expressed as:

[0020]

[0021] Since the prediction of the remaining useful life of aircraft engines requires the extraction of degradation features, the engine ID and engine working cycle that are not related to the degradation features, as well as the sensor data whose parameters remain basically unchanged throughout the entire degradation cycle of the engine are eliminated. These data have almost no contribution to the extraction of degradation features, and finally D sensor degradation data are retained:

[0022]

[0023] S2.2: Normalization. Perform Min-Max normalization on the input D sensor degradation data according to the formula:

[0024]

[0025] Normalize the data of each sensor, where x is the degraded data before normalization, x min is the minimum value of the sequence where x is located, x max is the maximum value of the sequence where x is located, and the normalized sensor data is:

[0026]

[0027] The normalized data of the jth sensor is:

[0028]

[0029] The present invention according to the above technical solution is characterized in that: in step S3, a sliding window is used to process the continuous standardized time series feature vector, and sample features are pre-extracted to convert them into small batch samples required for model training. The specific steps are as follows:

[0030] S3.1: RUL generation. Assuming that the original data set is the engine full life cycle data set, the engine working cycle number cycle is extracted from the engine original data set, and the corresponding remaining service life label is calculated by the following function:

[0031]

[0032] where cycle max It is the maximum value of the cycle in the sequence of the current engine ID. The maximum value of the remaining service life is set to 125, which is just a typical value. When solving different engine remaining service life prediction problems, it should be set according to the actual situation.

[0033] S3.2: Generate small batch samples using sliding window. Use the sliding window method to generate small batch samples. Suppose the sliding window size is n, and the small batch samples are expressed as:

[0034] X=[X 1 ,X 2 ,...,X D ]

[0035] Where X i (i=1,2,...,D) is expressed as:

[0036]

[0037] Select the remaining useful life Y at the last moment of each sliding window RUL Serves as a label for the remaining useful life of the sample.

[0038] S3.3: Sample feature pre-extraction. Use the linear regression method to pre-extract features from small batch samples, and append the extracted linear coefficients coef and mean mean to the end of the small batch samples:

[0039] coef i =LinearRegression(X i ).coef_

[0040] mean i =mean(X i )

[0041] Use X new Represents a small batch of samples after feature pre-extraction:

[0042]

[0043] in It is expressed as:

[0044]

[0045] The present invention according to the above technical solution is characterized in that: in step S4, a DIformer model is built, model hyperparameters and optimization algorithms are set, and small batch training samples are used as model input for training, and the specific steps are as follows:

[0046] S4.1: Build the DIformer model:

[0047] S4.1.1: Dimensionality-Independent Embedding (DI-Embedding):

[0048] Using a small batch sample generation method with independent embedding vectors for each dimension can capture cross-dimensional and cross-temporal dependencies at the same time. seg The segment size is a time window sample X of length T (s) To split, here we assume that T can be L seg Divisibility:

[0049]

[0050] in represents the i-th segment of the d-th sensor in the time window of length T, and inputs each segment into the embedding layer:

[0051]

[0052] in is the learnable matrix parameter;

[0053] S4.1.2: Multi-head Attention (MA):

[0054] Define a set of two-dimensional time series data with a time dimension of T and a space dimension of D: When the attention mechanism is applied to the time dimension, data in different spatial dimensions share weights and perform the same matrix operations. Take the time series data of the dth dimension as an example:

[0055] The d-th dimension time series data after dimension-independent embedding is represented as d model To size the sequence dimension, first generate three matrices (Queries, Keys and Values) through the following calculations:

[0056] Q t =X t W t q

[0057] Where W t q , and are all learnable parameters, W t q and d k K t The vector dimension, Q t Need to be with K t The vector dimensions are consistent, d v V t The vector dimension of ; query Q t and key value Then calculate the scaled dot product of Q and K to get the probability of being noticed in each time period in the dth dimension

[0058]

[0059] Among them, softmax() is a normalized exponential function. K t The transpose of t With V t Multiply and calculate the attention feature value of each time period

[0060] Attention t (Q t ,K t ,V t )=α t V t

[0061] MA t (.) is the multi-head attention mechanism function, which uses the multi-head attention mechanism MA (Multi-head Attention, MA) to allow the model to focus on information from different time periods:

[0062]

[0063] in, is a learnable parameter;

[0064] Similarly, we can apply the attention mechanism to the spatial dimension, and share weights with different temporal dimensions. The attention mechanism calculation for the spatial dimension can be expressed as: MA s ;

[0065] S4.1.3: Dual-channel attention DCA:

[0066] Embed the two-dimensional array obtained from the dimension independently As the input of DCA, L represents the number of segments obtained by dimensionally independent embedding in the time step dimension, D represents the total number of aircraft engine sensors used for prediction after preprocessing, and d model Indicates the vector dimension after dimension-independent embedding. For ease of reading, X is used. :,d represents the vector of all time steps of dimension d, 1≤d≤D, X l,: Represents the vector of all dimensions at the lth time step, 1≤l≤L. In DCA, X is the input vector received from the dimension-independent embedding; DCA consists of the temporal channel, the spatial channel, and the feature fusion layer, as follows:

[0067] 1) Temporal Channel

[0068] In the Temporal Channel, multi-head attention (MA) is applied to the time dimension and residually connected with the original input X to obtain Then it passes through a multi-layer perceptron (MLP) and finally with X t,1 Perform residual connection to get the output X of TemporalChannel t,out :

[0069]

[0070] x t,out =LayerNorm(X t,1 +MLP(X t,1 ))

[0071] Where 1≤d≤D, LayerNorm(·) represents the layer normalization widely used in time series prediction, which can improve the convergence speed and generalization ability of the model;

[0072] 2) Spatial Channel

[0073] Similar to Temporal, Spatial Channel is specifically expressed as follows:

[0074]

[0075] X s,out =LayerNorm(X s,1 +MLP(X s,1 ))

[0076] 3) Feature Fusion

[0077] After dual-channel feature extraction, the features of the two dimensions are spliced ​​to achieve feature fusion, and finally a linear layer is used to restore the dimension size:

[0078] X f,out =Linear(Concat(X t,out , X s,out ))

[0079] Concat means concatenating vectors according to the last dimension, and Linear means the linear layer.

[0080] Y=DCA(X)

[0081] Y is the DCA output;

[0082] S4.1.4: A dual-channel Transformer (DIformer) for dimension-independent patch embedding:

[0083] DIformer consists of an encoder and a decoder, such as Figure 1 As shown, the encoder consists of dimension-independent embedding and DCA, and the structure of the decoder layer is as follows Figure 4 As shown;

[0084] 1) Encoder: The encoder includes dimension-independent embedding and multi-layer DCA. Dimension-independent embedding retains the dimensional independence of the embedding vector, and multi-layer DCA is used to extract the deep features of the input vector in the time series and sensor dimensions. The encoder is expressed as:

[0085]

[0086] Where Emb represents the dimension-independent patch embedding method, which is added to the position encoding vector PE to obtain the encoder's two-dimensional input vector X enc,0 or X enc,l , Linear represents a learnable linear layer used to merge the segmented vectors, and Concat represents vector concatenation;

[0087] 2) Decoder: The decoder takes the learnable position encoding vector and the vectors before and after DCA feature extraction in the encoder as input. It uses the sum of the outputs of the two decoding layers and outputs the final prediction value through a linear layer.

[0088] The decoder is represented as:

[0089]

[0090]

[0091] X3 dec,l =LayerNorm(X2 dec,l +X1 dec,l )

[0092] X dec,l =LayerNorm(X3 dec,l +MLP(X3 dec,l ))

[0093] in is the position encoding vector that the decoder can learn, τ is the length of the processed input sequence, if the input sequence length cannot be L seg If the length is divisible by L, the sequence needs to be padded to the end until it can be divided by L. seg Divisible by X dec,l is the output of each layer of the decoder, X1 dec,l For DCA output, X2 dec,l X3 is the attention output of the decoder after fusing the feature information from the encoder. dec,l For X2 dec,l Residual connection of attention mechanism; d model is the vector dimension;

[0094] 3) Prediction layer (Predict): The prediction layer receives information from the decoder, and the sum of the layered predictions is used as the final prediction value:

[0095]

[0096] Linear(.) represents a linear transformation function;

[0097] S4.2: Model performance evaluation criteria:

[0098] The root mean square error RMSE and the scoring function Score are used to judge the model performance, as follows:

[0099] 1)

[0100] 2)

[0101] Where n is the number of test samples, is the RUL predicted value of the i-th sample, yi is the true RUL value of the i-th sample, the lower the RMSE and Score values, the higher the prediction accuracy and the better the model performance.

[0102] S4.3: Set up model training and hyperparameter optimization methods:

[0103] S4.3.1: Set the training method:

[0104] The Adam optimizer was used to optimize the model parameters. The initial learning rate Learning_rate was set to 0.001. The mean square error function MSELoss was used as the loss function. The dynamic learning rate adjustment strategy ReduceLROnPlateau was used. During the training process, the loss function of the model on the validation set was monitored. Whenever the loss function did not decrease for 8 consecutive epochs, the learning rate was reduced to better fine-tune the parameters.

[0105] S4.3.2: Model hyperparameter optimization methods:

[0106] The Optuna hyperparameter optimization framework is used to set the model hyperparameter search space. In order to reduce the uncertainty of test results caused by the randomness of model training, repetitive experiments are added to each optimization step. During the optimization process, the monitoring indicator of the optimizer is the RMSE of the model on the test set.

[0107] The flow chart of model training and hyperparameter optimization method is as follows Figure 6 shown.

[0108] This patented method for predicting the remaining useful life of aircraft engines adopts a dimensionally independent embedding method, which changes the previous way of transmitting data in the model. The dimensionally independent patch embedding allows the model to simultaneously focus on the characteristic information of the original monitoring data in any time period and on any sensor, thereby improving the spatiotemporal feature extraction capability of the model based on deep learning. BRIEF DESCRIPTION OF THE DRAWINGS

[0109] The present invention will be further described below in conjunction with the accompanying drawings.

[0110] Figure 1 It is the overall flow chart of the remaining useful life prediction method based on DIformer;

[0111] Figure 2 Schematic diagram of DIformer dimension-independent embedding;

[0112] Figure 3 Schematic diagram of the dual-channel attention layer of DIformer;

[0113] Figure 4 This is the internal expansion diagram of the DIformer decoder layer;

[0114] Figure 5 Schematic diagram of the DIformer multi-layer perceptron layer;

[0115] Figure 6 Flowchart of model training and hyperparameter optimization methods; DETAILED DESCRIPTION

[0116] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0117] See also Figure 1 —6. The present invention provides a method for predicting the remaining useful life of an aircraft engine based on DIformer, comprising the following steps:

[0118] S1: Collect the time series monitoring data of each sensor of the aircraft engine and mark the collected time series data as the original data set for training the model;

[0119] S2: Preprocess the labeled multivariate time series data of aircraft engines and convert them into standardized time series feature vectors that meet the requirements of model training;

[0120] S3: Use sliding windows to process continuous standardized time series feature vectors and convert them into small batch samples required for model training;

[0121] S4: Build the DIformer model, set the model hyperparameter optimization algorithm, and use small batch training samples as model input for training;

[0122] S5: The optimization algorithm automatically selects and retains the model weight file with the smallest prediction error to obtain the optimal model;

[0123] S6: Input the validation set into the model for functional verification. If the validation result is close to the test result, the model training is completed and the DIformer-based aircraft engine remaining useful life prediction model is obtained.

[0124] In this embodiment, the step S1 marks the collected time series, and the data to be marked include the engine ID and the number of engine working cycles. It should be noted that if the collected aircraft engine sensor data is not the full life cycle data of the aircraft engine, the remaining service life of the engine in the last working cycle needs to be additionally marked.

[0125] In this embodiment, the step S2 requires preprocessing the labeled aircraft engine multivariate time series data. The specific steps of the preprocessing are as follows:

[0126] S2.1: Data cleaning. Assume that the complete engine degradation process includes N moments, and obtain the engine operation data collected by m sensors:

[0127]

[0128] Among them, the degradation sequence of the jth (j=1,2,…,m) sensor is expressed as:

[0129]

[0130] Since the prediction of the remaining useful life of aircraft engines requires the extraction of degradation features, the engine ID and engine working cycle that are not related to the degradation features, as well as the sensor data whose parameters remain basically unchanged throughout the entire degradation cycle of the engine are eliminated. These data have almost no contribution to the extraction of degradation features, and finally D sensor degradation data are retained:

[0131]

[0132] S2.2: Normalization. Perform Min-Max normalization on the input D sensor degradation data according to the formula:

[0133]

[0134] Normalize the data of each sensor, where x is the degraded data before normalization, x min is the minimum value of the sequence where x is located, x max is the maximum value of the sequence where x is located, and the normalized sensor data is:

[0135]

[0136] The normalized data of the jth sensor is:

[0137]

[0138] In this embodiment, the step S3 uses a sliding window to process the continuous standardized time series feature vectors, and performs sample feature pre-extraction to convert them into small batch samples required for model training. The specific steps are as follows:

[0139] S3.1: RUL generation. Assuming that the original data set is the engine full life cycle data set, the engine working cycle number cycle is extracted from the engine original data set, and the corresponding remaining service life label is calculated by the following function:

[0140]

[0141] where cycle maxIt is the maximum value of the cycle in the sequence of the current engine ID. The maximum value of the remaining service life is set to 125, which is just a typical value. When solving different engine remaining service life prediction problems, it should be set according to the actual situation.

[0142] S3.2: Generate small batch samples using sliding window. Use the sliding window method to generate small batch samples. Suppose the sliding window size is n, and the small batch samples are expressed as:

[0143] X=[X 1 ,X 2 ,…,X D ]

[0144] Where X i (i=1,2,…,D) is expressed as:

[0145]

[0146] Select the remaining useful life Y at the last moment of each sliding window RUL Serves as a label for the remaining useful life of the sample.

[0147] S3.3: Sample feature pre-extraction. Use the linear regression method to pre-extract features from small batch samples, and append the extracted linear coefficients coef and mean mean to the end of the small batch samples:

[0148] coef i =LinearRegression(X i ).coef_

[0149] mean i =mean(X i )

[0150] Use X new Represents a small batch of samples after feature pre-extraction:

[0151]

[0152] in It is expressed as:

[0153]

[0154] In this embodiment, the step S4 is to build a DIformer model, set model hyperparameters and its optimization algorithm, and use small batch training samples as model input for training. The specific steps are as follows:

[0155] S4.1: Build the DIformer model:

[0156] S4.1.1: Dimension-Independent Embedding (DI-Embedding):

[0157] Using a small batch sample generation method with independent embedding vectors for each dimension can capture cross-dimensional and cross-temporal dependencies at the same time. seg The segment size divides the time window sample X into a length of T. Here, it is assumed that T can be divided by L seg Divisibility:

[0158]

[0159] X i,d ={x t,d |(i-1)×L seg <t<i×L seg}

[0160] in represents the i-th segment of the d-th sensor in the time window of length T, and inputs each segment into the embedding layer:

[0161]

[0162] in is the learnable matrix parameter.

[0163] S4.1.2: Multi-head Attention (MA):

[0164] Define a set of two-dimensional time series data with a time dimension of T and a space dimension of D: When the attention mechanism is applied to the time dimension, data in different spatial dimensions share weights and perform the same matrix operations. Take the time series data of the dth dimension as an example:

[0165] The d-th dimension time series data after DI-Embedding is expressed as d model To size the sequence dimension, first generate three matrices (queries, keys and values) by the following calculations:

[0166] Q t =X t W t q

[0167] Where W t q , and are all learnable parameters, W t q and d k K t The vector dimension, Q t Need to be with K t The vector dimensions are consistent, d v V t The vector dimension of . t and key value Then calculate the scaled dot product of Q and K to get the probability of being noticed in each time period in the dth dimension

[0168]

[0169] Among them, softmax() is a normalized exponential function. K t The transpose of t With V t Multiply and calculate the attention feature value of each time period

[0170] Attention t (Q t ,K t ,V t )=α t V t

[0171] A multi-head attention mechanism (MA) is used to allow the model to focus on information from different time periods:

[0172]

[0173] Among them, MA t (.) represents the multi-head attention mechanism function, are learnable parameters.

[0174] Similarly, we can apply the attention mechanism to the spatial dimension, and share weights with different temporal dimensions. The attention mechanism calculation for the spatial dimension can be expressed as: MA s .

[0175] S4.1.2: Dual Channel Attention (DCA):

[0176] Get the two-dimensional array from DI-Embedding As the input of DCA, L represents the number of segments obtained by DI-Embedding in the time step dimension, D represents the total number of aircraft engine sensors used for prediction after preprocessing, and d model Indicates the vector dimension after DI-Embedding processing. For ease of reading, X is used. :,d represents the vector of all time steps of dimension d (1≤d≤D), X l,: Represents the vector of all dimensions of the first time step (1≤l≤L). In DCA, X is the input vector received from DI-Embedding. DCA consists of Temporal Channel, Spatial Channel and feature fusion layer, as follows:

[0177] 1) Temporal Channel

[0178] In the Temporal Channel, multi-head attention (MA) is applied to the time dimension and residually connected with the original input X to obtain Then it passes through a multi-layer perceptron (MLP) and finally with X t,1 Perform residual connection to get the output X of TemporalChannel t,out :

[0179]

[0180] X t,out =LayerNorm(X t,1 +MLP(X t,1 ))

[0181] Where 1≤d≤D, LayerNorm(·) represents the layer normalization widely used in time series prediction, which can improve the convergence speed and generalization ability of the model.

[0182] 2) Spatial Channel

[0183] Similar to Temporal, Spatial Channel is specifically expressed as follows:

[0184]

[0185] X s,out =LayerNorm(X s,1 +MLP(X s,1 ))

[0186] 3) Feature Fusion

[0187] After dual-channel feature extraction, the features of the two dimensions are spliced ​​to achieve feature fusion, and finally a linear layer is used to restore the dimension size:

[0188] X f,out =Linear(Concat(X t,out , X s,out ))

[0189] Concat means concatenating vectors according to the last dimension, and Linear is a linear transformation function.

[0190] Y=DCA(X)

[0191] S4.1.3: DIformer:

[0192] DIformer consists of an encoder and a decoder, such as Figure 1 As shown, the encoder consists of DI-Embedding and DCA, and the structure of the decoder layer is as follows Figure 4 shown.

[0193] 4) Encoder: The encoder includes DI-Embedding and multi-layer DCA. DI-Embedding retains the dimensional independence of the embedding vector, and multi-layer DCA is used to extract the deep features of the input vector in the time series and sensor dimensions. The encoder can be expressed as:

[0194]

[0195] Where Emb represents the dimension-independent patch embedding method, which is added to the position encoding vector to obtain the encoder's two-dimensional input vector X enc,0 or X enc,l , Linear represents a learnable linear layer used to merge the segmented vectors, and Concat represents vector concatenation.

[0196] 5) Decoder: The input of the decoder comes from the learnable position encoding vector and the vector before and after DCA feature extraction in the encoder. It uses the sum of the outputs of the two decoding layers and outputs the final prediction value through a linear layer.

[0197] The decoder can be expressed as:

[0198]

[0199] X3 dec,l =LayerNorm(X2 dec,l +X1 dec,l )

[0200] X dec,l=LayerNorm(X3 tec,l +MLP(X3 dec,l ))

[0201] in is the position encoding vector that the decoder can learn, and τ is the length of the processed input sequence (if the input sequence length cannot be L seg If the length is divisible by L, the sequence needs to be padded to the end until it can be divided by L. seg divisible by dec,l is the output of each layer of the decoder, X1 dec,l For DCA output, X2 dec,l X3 is the attention output of the decoder after fusing the feature information from the encoder. dec,l For X2 dec,l Residual connections with attention mechanism.

[0202] 6) Prediction layer (Predict): The prediction layer receives information from the decoder, and the sum of the layered predictions is used as the final prediction value:

[0203]

[0204] Linear() is a linear transformation function.

[0205] S4.2: Model performance evaluation criteria:

[0206] The root mean square error (RMSE) and score function (Score) are used to judge the model performance, as follows:

[0207] 3)

[0208] 4)

[0209] Where n is the number of test samples, is the RUL prediction value of the i-th sample, y i is the true value of RUL of the i-th sample. The lower the RMSE and Score values ​​are, the higher the prediction accuracy is and the better the model performance is.

[0210] S4.3: Set up model training and hyperparameter optimization methods:

[0211] S4.3.1: Set the training method:

[0212] The Adam optimizer is used to optimize the model parameters. The initial learning rate Learning_rate is set to 0.001, the mean square error function MSELoss is used as the loss function, and the dynamic learning rate adjustment strategy ReduceLROnPlateau is used. During the training process, the loss function of the model on the validation set is monitored. Whenever the loss function does not decrease for 8 consecutive epochs, the learning rate is reduced to better fine-tune the parameters.

[0213] S4.3.2: Model hyperparameter optimization methods:

[0214] The Optuna hyperparameter optimization framework is used to set the model hyperparameter search space. In order to reduce the uncertainty of test results caused by the randomness of model training, repetitive experiments are added to each optimization step. During the optimization process, the monitoring indicator of the optimizer is the RMSE of the model on the test set.

[0215] The flow chart of model training and hyperparameter optimization method is as follows Figure 6 shown.

[0216] In order to measure the advantages and disadvantages of the proposed aircraft engine remaining useful life prediction model, the proposed model and training and optimization algorithms are applied to the C-MAPSS dataset widely used in this field. The commonly used RMSE and Score evaluation functions are selected to evaluate the prediction effect of the model and compared with the typical or advanced prediction models currently published. Table 1 shows the hyperparameters of the DIformer model, and Tables 2 and 3 respectively show the RMSE and Score comparison results with other prediction models on four sub-datasets of the C-MAPSS dataset. The method proposed in this embodiment takes into account the spatiotemporal dependency of multivariate time series, and improves the shortcomings of previous methods in dimensional independence by generating small batches of samples, so that the prediction performance is further improved, and the SOTA results are achieved in the publicly published models.

[0217] Table 1 DIformer model hyperparameters

[0218]

[0219] Table 2 RMSE comparison results with other SOTA methods

[0220]

[0221] The bold values ​​are the best results among all methods, and the starred values ​​are the suboptimal results.

[0222] Table 3 Score comparison results with other SOTA methods

[0223]

[0224] The bold values ​​are the best results among all methods, and the starred values ​​are the suboptimal results.

[0225] In summary, the DIformer-based aircraft engine remaining useful life prediction method provided in this embodiment adopts a dimension-independent embedding method, which changes the previous data transmission method in the model. The dimension-independent patch embedding allows the model to simultaneously pay attention to the characteristic information of the original monitoring data in any time period and on any sensor, thereby improving the spatiotemporal feature extraction capability of the model based on deep learning. The proposed scheme has broad application prospects in the field of advanced aircraft engine health management with prediction as the core.

Claims

1. A method for predicting the remaining useful life of aircraft engines based on DIformer, It is characterized in that The following steps are involved: S1: Collect the time series monitoring data of each sensor of the aircraft engine and mark the collected time series data as the original data set for training the model; S2: Preprocess the labeled multivariate time series data of aircraft engines and convert them into standardized time series feature vectors that meet the requirements of model training; S3: Use sliding windows to process continuous standardized time series feature vectors and convert them into small batch samples required for model training; S4: Build the DIformer model, set the model hyperparameter optimization algorithm, and use small batch training samples as model input for training; S5: The optimization algorithm automatically selects and retains the model weight file with the smallest prediction error to obtain the optimal model; S6: Input the validation set into the model for functional verification. If the validation result is close to the test result, the model training is completed and the DIformer-based aircraft engine remaining useful life prediction model is obtained.

2. A method for predicting the remaining useful life of an aircraft engine based on DIformer as claimed in claim 1, It is characterized in that In step S1, the collected time series are marked. The data to be marked include the engine ID and the number of engine working cycles. It should be noted that if the collected aircraft engine sensor data is not the full life cycle data of the aircraft engine, the remaining service life of the engine in the last working cycle needs to be additionally marked.

3. The method for predicting the remaining useful life of an aircraft engine based on DIformer according to claim 1, It is characterized in that In step S2, it is necessary to preprocess the labeled multivariate time series data of the aircraft engine. The specific steps of the preprocessing are as follows: S2.1: Data cleaning; Assume that the complete engine degradation process includes N moments, and obtain the engine operation data collected by m sensors: Among them, the degradation sequence of the jth (j=1,2,…,m) sensor is expressed as: Since the prediction of the remaining useful life of aircraft engines requires the extraction of degradation features, the engine ID and engine working cycle that are not related to the degradation features, as well as the sensor data whose parameters remain basically unchanged throughout the entire degradation cycle of the engine are eliminated. These data have almost no contribution to the extraction of degradation features, and finally D sensor degradation data are retained: S2.2: Normalization: Perform Min-Max normalization on the input D sensor degradation data according to the formula: Normalize the data of each sensor, where x is the degraded data before normalization, x min is the minimum value of the sequence where x is located, x max is the maximum value of the sequence where x is located, and the normalized sensor data is: The normalized data of the jth sensor is:

4. A method for predicting the remaining useful life of an aircraft engine based on DIformer as claimed in claim 1, It is characterized in that The step S3 uses a sliding window to process the continuous standardized time series feature vectors, and performs sample feature pre-extraction to convert them into small batch samples required for model training. The specific steps are as follows: S3.1: RUL generation: Assuming that the original data set is the engine full life cycle data set, the engine working cycle number cycle is extracted from the engine original data set, and the corresponding remaining service life label is calculated by the following function: where cycle max The maximum value of the cycle in the sequence of the current engine ID. The maximum value of the remaining service life is set to 125, which is just a typical value. When solving the remaining service life prediction problems of different engines, it should be set according to the actual situation. S3.2: Generate small batch samples using sliding window; Use the sliding window method to generate small batch samples. Suppose the sliding window size is n, and the small batch samples are expressed as: X=[X 1 ,X 2 ,…,X D ] Where X i (i=1,2,…,D) is expressed as: Select the remaining useful life Y at the last moment of each sliding window RUL Serves as a label for the remaining useful life of the sample; S3.3: Sample feature pre-extraction: Use linear regression method to pre-extract features of small batch samples, and append the extracted linear coefficient coef and mean mean to the end of the small batch samples: coef i =LinearRegression(X i ).coef_ mean i =mean(X i ) Use X new Represents a small batch of samples after feature pre-extraction: in It is expressed as:

5. A method for predicting the remaining useful life of an aircraft engine based on DIformer as claimed in claim 1, It is characterized in that The step S4 is to build a DIformer model, set model hyperparameters and its optimization algorithm, and use small batch training samples as model input for training. The specific steps are as follows: S4.1: Build the DIformer model: S4.1.1: Dimension-independent embedding: The mini-batch sample generation method with independent embedding vectors for each dimension can capture cross-dimensional and cross-temporal dependencies at the same time. Use length L seg The segment size is a time window sample X of length T (s) To split, here we assume that T can be L seg Divisibility: in represents the i-th segment of the d-th sensor in the time window of length T, and inputs each segment into the embedding layer: in is the learnable matrix parameter; S4.1.2: Multi-head Attention (MA): Define a set of two-dimensional time series data with a time dimension of T and a space dimension of D: When the attention mechanism is applied to the time dimension, data in different spatial dimensions share weights and perform the same matrix operations. Take the time series data of the dth dimension as an example: The d-th dimension time series data after dimension-independent embedding is represented as d model For the sequence dimension size, first generate three matrices by the following calculations: Q t =X t W t q Where W t q , and are all learnable parameters, W t q and d k K t The vector dimension, Q t Need to be with K t The vector dimensions are consistent, d v V t The vector dimension of ; query Q t and key value Then calculate the scaled dot product of Q and K to get the probability of being noticed in each time period in the dth dimension Among them, softmax() is a normalized exponential function. K t The transpose of t With V t Multiply and calculate the attention feature value of each time period Attention t (Q t ,K t ,V t )=a t V t MA t (.) is the multi-head attention mechanism function, which uses the multi-head attention mechanism MA to allow the model to focus on information from different time periods: in, is a learnable parameter; Similarly, we can apply the attention mechanism to the spatial dimension, and share weights with different temporal dimensions. The attention mechanism calculation for the spatial dimension can be expressed as: MA s ; S4.1.3: Dual-channel attention DCA: Embed the two-dimensional array obtained from the dimension independently As the input of DCA, L represents the number of segments obtained by dimensionally independent embedding in the time step dimension, D represents the total number of aircraft engine sensors used for prediction after preprocessing, and d model Indicates the vector dimension after dimension-independent embedding. For ease of reading, X is used. :,d represents the vector of all time steps of dimension d, 1≤d≤D, X l,: Represents the vector of all dimensions at the lth time step, 1≤l≤L. In DCA, X is the input vector received from the dimension-independent embedding; DCA consists of the temporal channel Temporal Channel, the spatial channel SpatialChannel and the feature fusion layer, as follows: 1) Temporal Channel In the Temporal Channel, multi-head attention is applied to the time dimension and residually connected with the original input X to obtain Then it passes through a multi-layer perceptron and finally with X t,1 Perform residual connection to get the output X of Temporal Channel t,out : X t,out =LayerNorm(X t,1 +MLP(X t,1 )) Where 1≤d≤D, LayerNorm(·) represents the layer normalization widely used in time series prediction, which can improve the convergence speed and generalization ability of the model; 2) Spatial Channel Similar to Temporal, Spatial Channel is specifically expressed as follows: X s,out =LayerNorm(X s,1 +MLP(X s,1 )) 3) Feature Fusion After dual-channel feature extraction, the features of the two dimensions are spliced ​​to achieve feature fusion, and finally a linear layer is used to restore the dimension size: X f,out =Linear(Concat(X t,out ,X s,out )) Concat means concatenating vectors according to the last dimension, and Linear means the linear layer. Y=DCA(X) Y is the DCA output; S4.1.4: A Dual-Channel Transformer (DIformer) for Dimensionality-Independent Patch Embedding: DIformer consists of an encoder and a decoder. The encoder consists of dimension-independent embedding and DCA. 1) Encoder: The encoder includes dimension-independent embedding and multi-layer DCA. Dimension-independent embedding retains the dimensional independence of the embedding vector, and multi-layer DCA is used to extract the deep features of the input vector in the time series and sensor dimensions. The encoder is expressed as: Where Emb represents the dimension-independent patch embedding method, which is added to the position encoding vector PE to obtain the encoder's two-dimensional input vector X enc,0 or X enc,l , Linear represents a learnable linear layer used to merge the vector with the segmentation. Concat means vector concatenation; 2) Decoder: The decoder input comes from the learnable position encoding vector and the vector before and after DCA feature extraction in the encoder. It uses the sum of the outputs of the two decoding layers and outputs the final prediction value through the linear layer. The decoder is expressed as: X 3 dec,l =LayerNorm(X 2 dec,l +X 1 dec,l ) X dec,l =LayerNorm(X 3 dec,l +MLP(X 3 dec,l )) in is the position encoding vector that the decoder can learn, τ is the length of the processed input sequence, if the input sequence length cannot be L seg If the length is divisible by L, the sequence needs to be padded to the end until it can be divided by L. seg Divisible by X dec,l is the output of each layer of the decoder, X 1 dec,l is the output of DCA, X 2 dec,l is the attention output of the decoder after fusing the feature information from the encoder, X 3 dec,l For X 2 dec,l Residual connection of attention mechanism; d model is the vector dimension; 3) Prediction layer: The prediction layer receives information from the decoder, and the sum of the layered predictions is used as the final prediction value: Linear(.) represents a linear transformation function; S4.2: Model performance evaluation.

6. A method for predicting the remaining useful life of an aircraft engine based on DIformer as claimed in claim 5, It is characterized in that The specific method for evaluating model performance in S4.2 is: The root mean square error RMSE and the scoring function Score are used to judge the model performance, as follows: 1) 2) Where n is the number of test samples, is the RUL prediction value of the i-th sample, y i is the true value of RUL of the i-th sample. The lower the RMSE and Score values ​​are, the higher the prediction accuracy is and the better the model performance is. S4.3: Set up model training and hyperparameter optimization methods: S4.3.1: Set the training method: The Adam optimizer was used to optimize the model parameters. The initial learning rate Learning_rate was set to 0.

001. The mean square error function MSELoss was used as the loss function. The dynamic learning rate adjustment strategy ReduceLROnPlateau was used. During the training process, the loss function of the model on the validation set was monitored. Whenever the loss function did not decrease for 8 consecutive epochs, the learning rate was reduced to better fine-tune the parameters. S4.3.2: Model hyperparameter optimization methods: The Optuna hyperparameter optimization framework is used to set the model hyperparameter search space. In order to reduce the uncertainty of test results caused by the randomness of model training, repetitive experiments are added to each optimization step. During the optimization process, the monitoring indicator of the optimizer is the RMSE of the model on the test set.

Citation Information

Patent Citations

  • Aero-engine residual life prediction method based on deep learning

    CN114841063A

  • Multi-scale hybrid attention mechanism modeling method for prediction of residual service life of aero-engine

    CN115618733A

  • Method, system and equipment for predicting residual life of aero-engine and medium

    CN115952724A

  • Multivariable spatio-temporal data generation method based on separation attention mechanism

    CN117371487A

Cited By

  • Method for predicting residual service life of aero-engine

    CN119720075A

  • Aero-engine life prediction method fusing dynamic knowledge graph and dynamic attention mechanism

    CN120124450A

  • Aero-engine life prediction method fusing dynamic knowledge graph and dynamic attention mechanism

    CN120124450B

  • Aero-engine residual life prediction method and system based on multi-scale attention

    CN120180042A

  • Remaining service life prediction method based on Transform-LSTM network

    CN120832819A