Aero-engine sensor fault diagnosis method based on SMOTE-iForest-FDA
Balancing the data set and constructing an isolated forest through the SMOTE-iForest-FDA method solves the problem of unbalanced characteristics in aero-engine sensor fault diagnosis, improves diagnostic accuracy and performance, and achieves higher F1-Score and G-mean values.
Patent Information
- Application Number
- CN202410498238.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-23
- Publication Date
- 2024-09-10
AI Technical Summary
There are problems such as multiple working states, unequal data lengths and unbalanced characteristics in aero-engine sensor fault diagnosis, resulting in low diagnosis accuracy and complicated model establishment process.
The SMOTE-iForest-FDA method is used to balance the data set through the SMOTE algorithm, generate new fault samples and construct an isolated forest, calculate anomaly scores, remove noise samples, and finally establish a fault diagnosis model to improve diagnostic performance.
It effectively reduces the impact of imbalance on diagnostic accuracy, improves aero-engine sensor fault diagnosis performance, enhances the probability of correct classification of fault samples, improves F1-Score and G-mean values, and improves the diagnostic effect.
Smart Images

Figure CN118626976A
Abstract
Description
Technical Field
[0001] The invention belongs to the field of aircraft engine sensor fault diagnosis, and in particular, relates to an aircraft engine sensor fault diagnosis method based on SMOTE-iForest-FDA. Background Art
[0002] Accurate and reliable detection of sensor faults plays an important role in ensuring the safe operation of aircraft engines, improving the efficiency of scientific research and testing, reducing development costs, and shortening the development cycle. As early as the 1970s, research institutions began to study the fault diagnosis of engine control system sensors. Wallhagen et al. developed a technology to detect the fault state of aircraft engine output sensors. This technology automatically makes the best estimate of the output corresponding to the fault state. These estimates can be used to control the engine until the engine sensor resumes normal operation. Spang et al. subsequently proposed a fault indication and correction system (Failure Indication and Corrective Action-FICA), which is based on an airborne adaptive model and an extended Kalman filter. The fault indicator variable (the weighted sum of squares of the residuals of the two) and the corresponding threshold are compared and analyzed to achieve detection and isolation of faulty sensors. At the same time, the fault value is replaced by a filtered estimate to achieve fault adaptation.
[0003] Since the 1990s, data-based methods have been widely used in sensor fault diagnosis, promoting the in-depth development of aircraft engine sensor fault diagnosis systems. In 1998, Mattern et al. designed a fault diagnosis system based on an autoassociative neural network. Based on the autoassociative neural network, a set of redundant sensor signals were analyzed, the signal value of the faulty sensor was estimated, and the estimated value was used to replace the measured value of the faulty sensor, realizing sensor fault adaptation, and successfully verified it in a turbofan engine. In 2002, Bottos et al. used a method combining RBF network and KohonenSOM (Self-Oganization Mapping) network to diagnose sensor faults, and applied this method to the compressor driven by RB211 gas turbine. In 2010, Castaldi et al. proposed a method combining nonlinear geometry and small perturbations to extract features for the aircraft longitudinal flight state evolution model, and carried out research on fault diagnosis of aviation aerodynamic sensors. In 2017, Li Changzheng et al. proposed a sensor fault detection method based on generalized regression neural network, constructed a MIMO GRNN group, gave the detection and cross-validation logic of multi-sensor concurrent faults, used engine test data to train neural networks, numerically simulated single sensor and multi-sensor faults, and verified the feasibility of the algorithm. In 2020, Zhai Xusheng et al. proposed a fault diagnosis method based on data fusion, using an improved fuzzy C-means clustering algorithm to fuse redundant sensor information, dividing the redundant sensitive unit measurement values into several appropriate classes, and then selecting the class center with the most sensitive unit measurement values as the fusion value according to the principle of minority obeys majority, and monitoring the sensor fault by calculating the residual between the measurement value and the fusion value of each sensitive unit. The results show that the obtained fusion value has high accuracy. In 2022, Zhao et al. used convolution and long short-term memory networks to study the fault diagnosis problem of aviation pneumatic sensors of a large passenger aircraft. In 2023, Li Zhongzhi et al. stacked the sensor measurement data into grayscale images and used the VGG16 network to judge the abnormal area of the grayscale image.
[0004] Although a series of extensive and in-depth studies have been carried out at home and abroad on the problem of aircraft engine sensor fault diagnosis, and fruitful research results have been achieved, there are still some problems to be solved in this field, mainly reflected in the multiple working states, unequal data length problems and unbalanced characteristics caused by the complex working environment of aircraft engines.
[0005] In view of this, the present invention is proposed. Summary of the invention
[0006] The technical problem to be solved by the present invention is to overcome the deficiencies of the prior art and provide an aircraft engine sensor fault diagnosis method based on SMOTE-iForest-FDA, which solves the problems raised in the above-mentioned background technology.
[0007] In order to solve the above technical problems, the basic concept of the technical solution adopted by the present invention is:
[0008] An aircraft engine sensor fault diagnosis method based on SMOTE-iForest-FDA, comprising:
[0009] Step 1: Obtain the training data set required to establish the diagnostic model. The modeling training set includes the R-type data set, the normal data set, and the R-1-type fault data set;
[0010] The normal sample set is recorded as D0, including N0 normal samples, and the various fault sample sets are recorded as D r , the corresponding number of samples is N r , r=1,2,…,R-1, the normal sample set is the majority class sample, and the various fault sample sets are the minority class samples.
[0011] Step 2: Calculate the Euclidean distance between the fault sample point in the fault sample set and other sample points in the corresponding fault sample subset;
[0012] The formula for calculating the Euclidean distance from the fault sample point in the fault sample set to other sample points in the corresponding fault sample subset is expressed as:
[0013]
[0014] In the formula, is the rth type fault sample and The Euclidean distance between For fault samples The data on variable j, Another sample of the same fault The data on the j variable, j = 1, 2, ..., J, J is the number of sample variables, and the K samples with the smallest distance are selected as The nearest neighbor samples of Among them, K=1, 2, ..., 5, and K=5 in the present invention.
[0015] Step 3: Randomly interpolate between the fault sample point and the neighboring samples to obtain a new fault sample and add it to the original fault sample set;
[0016] The formula for adding new fault samples to the original fault sample set is expressed as:
[0017]
[0018] Step 4: Repeat steps 2 and 3 until the number of samples in each type of fault sample set is balanced with the number of samples in the normal sample set;
[0019] Any type of fault data set after balance is denoted as D r ', r=1,2,…,R-1.
[0020] Step 5: Randomly establish M isolated trees for any type of balanced fault sample set to form an isolation forest;
[0021] Traverse each isolated tree and find any synthetic sample in each type of fault The final path length And seek Average path length among all isolated trees in the isolation forest
[0022] Step 6: Calculate the anomaly score of the fault sample;
[0023] The formula for calculating the anomaly score of a fault sample is expressed as:
[0024]
[0025] H(N0)=ln(N0)+e,e=0.5772156649;
[0026]
[0027] Where c(N0) is the average path length of the N0 point isolation tree, yes The anomaly score in the isolated tree constructed from the balanced fault subset is closer to 1. is a noise sample; the closer the anomaly score is to 0, the The greater the possibility that it is a normal sample; if the anomaly scores of most fault samples are around 0.5, then this type of fault sample set has no obvious noise.
[0028] Step 7: Repeat steps 5 and 6, traverse each type of fault samples, and remove samples identified as noise;
[0029] The samples identified as noise come from the synthetic samples generated by the SMOTE algorithm. Then, each type of fault sample set and normal sample set are recombined and used as a new training sample set and recorded as X train ,If the new training sample set still has imbalance problems, repeat steps 3 to 7 for the imbalanced minority class until a balanced training set is generated.
[0030] Step 8: Apply FDA to the training sample set data to establish a fault diagnosis model;
[0031] Step 9: After the diagnostic model is established, online diagnosis can be performed;
[0032] The new data is standardized using the mean and standard deviation corresponding to the normalization of the training data, and then input into the trained fault diagnosis model. The new data is discriminated and analyzed according to the optimal projection matrix to determine the state corresponding to the new data.
[0033] After adopting the above technical solution, the present invention has the following beneficial effects compared with the prior art. Of course, any product implementing the present invention does not necessarily need to achieve all the advantages described below at the same time:
[0034] The present invention can greatly reduce the problem of low diagnostic accuracy caused by the imbalance of fault samples in the process of establishing the diagnosis model through the aircraft engine sensor fault diagnosis method based on SMOTE-iForest-FDA, and improve the aircraft engine sensor fault diagnosis performance;
[0035] The SMOTE-iForest-FDA method of the present invention can reduce the impact of unbalanced characteristics on fault diagnosis, pay more attention to fault samples, and increase the probability of fault samples being correctly classified;
[0036] The aircraft engine sensor fault diagnosis method based on SMOTE-iForest-FDA of the present invention is a beneficial discussion on the problem of aircraft engine sensor fault diagnosis in China, and is of great significance for online monitoring, fault diagnosis, prediction and test verification of civil aircraft aircraft engines;
[0037] Using the QAR data provided by airlines, the SMOTE-iForest-FDA method is used to diagnose and analyze aircraft engine sensor failures, which can effectively improve the diagnostic effect evaluation indicators: F1-Score value and G-mean value.
[0038] The specific implementation modes of the present invention are further described in detail below in conjunction with the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] The drawings described below are only some embodiments. For those skilled in the art, other drawings can be obtained based on these drawings without creative work. In the drawings:
[0040] Figure 1 A schematic diagram of an aircraft engine sensor fault diagnosis method based on SMOTE-iForest-FDA;
[0041] Figure 2It is a two-dimensional scatter plot of the simulation results projected by t-SNE;
[0042] Figure 3 It is a two-dimensional scatter plot of the simulation results projected by t-SNE.
[0043] It should be noted that these drawings and textual descriptions are not intended to limit the conceptual scope of the present invention in any way, but are intended to illustrate the concept of the present invention for those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION
[0044] The present invention will now be described in further detail with reference to the accompanying drawings.
[0045] See also Figure 1-3 As shown, in this embodiment, a method for diagnosing a fault of an aircraft engine sensor based on SMOTE-iForest-FDA is provided, including:
[0046] Step 1: Obtain the training data set required to establish the diagnostic model. The modeling training set includes the R-type data set, the normal data set, and the R-1-type fault data set;
[0047] The normal sample set is denoted as D0, including N0 normal samples, and the various fault sample sets are denoted as D r , the corresponding number of samples is N r , r=1,2,…,R-1, the normal sample set is the majority class sample, and the various fault sample sets are the minority class samples.
[0048] Step 2: Calculate the Euclidean distance between the fault sample point in the fault sample set and other sample points in the corresponding fault sample subset;
[0049] The formula for calculating the Euclidean distance from the fault sample point in the fault sample set to other sample points in the corresponding fault sample subset is expressed as:
[0050]
[0051] In the formula, is the rth type fault sample and The Euclidean distance between For fault samples The data on variable j, Another sample of the same fault The data on the j variable, j = 1, 2, ..., J, J is the number of sample variables, and the K samples with the smallest distance are selected as The nearest neighbor samples of Among them, K=1, 2, ..., 5, and K=5 in the present invention.
[0052] Step 3: Randomly interpolate between the fault sample point and the neighboring samples to obtain a new fault sample and add it to the original fault sample set;
[0053] The formula for adding new fault samples to the original fault sample set is expressed as:
[0054]
[0055] Step 4: Repeat steps 2 and 3 until the number of samples in each type of fault sample set is balanced with the number of samples in the normal sample set;
[0056] Any type of fault data set after balance is denoted as D r ', r=1,2,…,R-1.
[0057] Step 5: Randomly establish M isolated trees for any type of balanced fault sample set to form an isolation forest;
[0058] Traverse each isolated tree and find any synthetic sample in each type of fault The final path length And seek Average path length among all isolated trees in the isolation forest
[0059] Step 6: Calculate the anomaly score of the fault sample;
[0060] The formula for calculating the anomaly score of a fault sample is expressed as:
[0061]
[0062] H(N0)=ln(N0)+e,e=0.5772156649;
[0063]
[0064] Where c(N0) is the average path length of the N0 point isolation tree, yes The anomaly score in the isolated tree constructed from the balanced fault subset is closer to 1. is a noise sample; the closer the anomaly score is to 0, the The greater the possibility that it is a normal sample; if the anomaly scores of most fault samples are around 0.5, then this type of fault sample set has no obvious noise.
[0065] Step 7: Repeat steps 5 and 6, traverse each type of fault samples, and remove samples identified as noise;
[0066] The samples identified as noise come from the synthetic samples generated by the SMOTE algorithm. Then, each type of fault sample set and normal sample set are recombined and used as a new training sample set and recorded as X train ,If the new training sample set still has imbalance problems, repeat steps 3 to 7 for the imbalanced minority class until a balanced training set is generated.
[0067] Step 8: Apply FDA to the training sample set data to establish a fault diagnosis model;
[0068] Step 9: After the diagnostic model is established, online diagnosis can be performed;
[0069] The new data is standardized using the mean and standard deviation corresponding to the normalization of the training data, and then input into the trained fault diagnosis model. The new data is discriminated and analyzed according to the optimal projection matrix to determine the state corresponding to the new data.
[0070] In order to measure the diagnostic performance of the proposed method, F1-score and G-mean are introduced as evaluation indicators, and an implementation example is provided.
[0071] In this embodiment, the true category of each sample is compared with the diagnosis category, and a confusion matrix is constructed to evaluate the diagnosis effect, as shown in Table 1, where the positive class is the minority class, the negative class is the majority class, TP and TN are the number of minority class and majority class samples with correct diagnosis; FN and FP are the number of minority class and majority class samples with incorrect diagnosis.
[0072] Table 1: Confusion Matrix
[0073]
[0074] Precision and recall are defined as follows:
[0075]
[0076]
[0077] Table 2 is a multi-category confusion matrix, which is an extension of the binary classification task on the multi-category task. The elements within the diagonal represent the correct classification, and the elements outside the diagonal represent the wrong classification. max Represents the total number of samples. r =n rr / n +r and Recall r =n rr / n r+ are the precision and recall for each class.
[0078] Table 2: Multi-class confusion matrix
[0079]
[0080] F1-score is a combination of precision and recall. Only when both are large can the F1-score value get a relatively large value. The calculation is as follows:
[0081]
[0082] G-mean is calculated as follows:
[0083]
[0084] It can be seen from the formula that the G-mean value can only be large when the classification accuracy of minority class samples and majority class samples are both large. F1-score and G-mean are often used as evaluation indicators to measure the comprehensive diagnostic performance of the model.
[0085] In order to verify the benefits of the present invention, a simulation test was conducted using data from the cruise state of an aircraft. The test was conducted by artificially adding fault data. A hard fault signal was added to the N1 sensor, and the fault amplitude was 11%. The fault data was obtained according to y'(t) = 1.11y(t). A soft fault signal was added to the OP sensor, and the drift rate was 5%. Its fault data was obtained according to y'(t) = y(t) + 0.05·t. The training set data consisted of 2400 normal data samples, 300 N1 fault samples, and 300 OP fault samples. The number of samples of each type in the test set was 300.
[0086] Table 3 shows the F1-Score and G-mean values of different methods in each category during the test. It can be seen from Table 3 that the proposed method performs better than other comparison methods, and obtains higher F1-Score and G-mean values for each category. The diagnostic performance of FDA is poor and the evaluation index is low. Compared with FDA, other methods alleviate the impact of imbalanced characteristics on fault diagnosis to a certain extent through sampling. Among them, the diagnostic performance of Borderline-SMOTE-FDA has not improved. This is because the Borderline-SMOTE oversampling algorithm generates new samples in the feature space through interpolation. However, when samples of different categories overlap more in the feature space, it cannot effectively generate new samples. Compared with FDA, SMOTE-FDA has improved the recognition accuracy of each category. In order to further improve the diagnostic performance and avoid the interference of the synthesized noise samples of the SMOTE algorithm, SMOTE-iForest-FDA removes outliers from the synthesized samples after synthesizing them, so that the synthesized samples are more reasonable and the diagnostic model can be better trained.
[0087] Table 3: F1-Score and G-mean values of different methods
[0088]
[0089] The output results of the test data set obtained by all methods are projected into a two-dimensional scatter plot through t-SNE. Figure 2 As shown. It can be seen that Figure 2 There is still an overlap problem in (a), especially the overlap problem between normal samples and N1 fault samples, that is, normal samples and N1 fault samples are difficult to identify. Compared with FDA, the contrast method can improve the diagnostic classification performance of faults to a certain extent. Figure 2 In (d), the decision boundaries of each type of samples are more obvious and the overlapping samples are significantly reduced, indicating that the method of the present invention achieves better diagnostic results.
[0090] In order to verify that the algorithm of the present invention is still effective when the fault amplitude is small, a bias fault with an amplitude of 8% is added to the N1 sensor. A drift fault with a drift rate of 3% is added to the OP sensor. The training set data consists of 2400 normal data samples, 300 N1 fault samples and 300 OP fault samples, and the number of samples of each type in the test set is 300.
[0091] As can be seen from Table 4, SMOTE-iForest-FDA performs better than other comparison methods, and obtains higher F1-Score and G-mean values for all categories in the test set. Figure 3 The output results of all methods for the test data set are projected into a two-dimensional scatter plot by t-SNE. Combining the table and the visual scatter plot, the classification performance of FDA is poor, mainly because the boundary between normal samples and fault 1 samples is confused, making it difficult for FDA to identify normal samples and fault 1 samples. Figure 3 (b), SMOTE-FDA has improved its classification ability for various samples, but there is still a serious overlap problem. Compared with other methods, such as Figure 3 (d), the proposed method SMOTE-iForest-FDA is more advantageous, and the overlap is significantly reduced.
[0092] Table 4: F1-Score and G-mean values of different methods
[0093]
[0094] In summary, SMOTE-iForest-FDA is an effective fault diagnosis method for dealing with the imbalance problem of aircraft engine sensor data. It can reduce the impact of imbalance characteristics on fault diagnosis, pay more attention to fault samples, and increase the probability of fault samples being correctly classified.
[0095] The present invention is not limited to the above-mentioned embodiments. Anyone should be aware that any structural changes made under the enlightenment of the present invention, and any technical solutions that are the same or similar to the present invention, fall within the protection scope of the present invention. The technology, shape, and structural parts not described in detail in the present invention are all well-known technologies.
Claims
1. An aircraft engine sensor fault diagnosis method based on SMOTE-iForest-FDA, characterized in that: include: Step 1: Obtain the training data set required to establish the diagnostic model. The modeling training set includes the R-type data set, the normal data set, and the R-1-type fault data set; The normal sample set is recorded as D0, including N0 normal samples, and the various fault sample sets are recorded as D r , the corresponding number of samples is N r , r=1,2,…,R-1, the normal sample set is the majority class sample, and the various fault sample sets are the minority class samples. Step 2: Calculate the Euclidean distance between the fault sample point in the fault sample set and other sample points in the corresponding fault sample subset; The formula for calculating the Euclidean distance from the fault sample point in the fault sample set to other sample points in the corresponding fault sample subset is expressed as: In the formula, is the rth type fault sample and The Euclidean distance between For fault samples The data on variable j, Another sample of the same fault The data on the j variable, j = 1, 2, ..., J, J is the number of sample variables, and the K samples with the smallest distance are selected as The nearest neighbor samples of Among them, K=1, 2, ..., 5, and K=5 in the present invention. Step 3: Randomly interpolate between the fault sample point and the neighboring samples to obtain a new fault sample and add it to the original fault sample set; The formula for adding new fault samples to the original fault sample set is expressed as: Step 4: Repeat steps 2 and 3 until the number of samples in each type of fault sample set is balanced with the number of samples in the normal sample set; Any type of fault data set after balancing is denoted as D′ r , r=1,2,…,R-1. Step 5: Randomly establish M isolated trees for any type of balanced fault sample set to form an isolation forest; Traverse each isolated tree and find any synthetic sample in each type of fault The final path length And seek Average path length among all isolated trees in the isolation forest Step 6: Calculate the anomaly score of the fault sample; The formula for calculating the anomaly score of a fault sample is expressed as: H(N0)=ln(N0)+e,e=0.5772156649; Where c(N0) is the average path length of the N0 point isolation tree, yes The anomaly score in the isolated tree constructed from the balanced fault subset is closer to 1. is a noise sample; the closer the anomaly score is to 0, the The greater the possibility that it is a normal sample; if the anomaly scores of most fault samples are around 0.5, then this type of fault sample set has no obvious noise. Step 7: Repeat steps 5 and 6, traverse each type of fault samples, and remove samples identified as noise; The samples identified as noise come from the synthetic samples generated by the SMOTE algorithm. Then, each type of fault sample set and normal sample set are recombined and used as a new training sample set and recorded as X train ,If the new training sample set still has imbalance problems, repeat steps 3 to 7 for the imbalanced minority class until a balanced training set is generated. Step 8: Apply FDA to the training sample set data to establish a fault diagnosis model; Step 9: After the diagnostic model is established, online diagnosis can be performed; The new data is standardized using the mean and standard deviation corresponding to the normalization of the training data, and then input into the trained fault diagnosis model. The new data is discriminated and analyzed according to the optimal projection matrix to determine the state corresponding to the new data.
