High-speed train traction inverter fault diagnosis method based on weighted random forest

Through the weighted random forest algorithm and recursive feature elimination method, the feature set is optimized and weighted random sampling is used in the weighted random forest model, which solves the problem of feature information difference and the influence of non-important features in the traditional random forest algorithm, and improves the traction of high-speed trains. Accuracy and interpretability of inverter fault diagnosis.

CN118520789BActive Publication Date: 2024-10-01SHANDONG UNIV OF SCI & TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411002852.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-25
Publication Date
2024-10-01
Estimated Expiration
2044-07-25

AI Technical Summary

Technical Problem

The traditional random forest algorithm fails to effectively consider the difference in information content of different features during the feature sampling process, resulting in a reduction in the role of important features and affecting the performance of the fault diagnosis algorithm. In addition, the existence of non-important features in historical data leads to overfitting and an increase in the amount of calculations. Reduced interpretability of diagnostic results.

Method used

The weighted random forest algorithm is used to weight features through feature importance indicators, combined with the recursive feature elimination method to optimize the feature set, and use weighted random sampling in the weighted random forest model to improve the utilization of important features and information differentiation, thereby improving fault Diagnostic accuracy.

Benefits of technology

Through feature optimization and weighted random forest model, the accuracy of fault diagnosis is improved, the impact of low-importance features on algorithm performance is reduced, and the interpretability of diagnosis results and classifier performance are improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118520789B_ABST
    Figure CN118520789B_ABST
Patent Text Reader

Abstract

The present invention discloses a method for fault diagnosis of a high-speed train traction inverter based on weighted random forest, which belongs to the field of fault diagnosis, and performs fault diagnosis on an insulated gate bipolar transistor controlled by a traction inverter, specifically including the following steps: extracting time domain features, frequency domain features, and time-frequency domain features of the original signal and constructing a feature data set; running a random forest algorithm on the feature data set to obtain feature importance, and using feature importance and recursive feature elimination methods to obtain an optimal feature set; establishing a weighted random forest model on the data set corresponding to the optimal feature set and implementing fault diagnosis through the model. The present invention can optimize the extracted features, remove the influence of low-importance features on the performance of the fault diagnosis algorithm; at the same time, a feature-weighted random forest algorithm is proposed, which increases the utilization rate of important features, and fully utilizes the information differences of the features, thereby improving the accuracy of fault diagnosis.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of fault diagnosis, and in particular relates to a high-speed train traction inverter fault diagnosis method based on weighted random forest. Background Art

[0002] Energy conversion of high-speed trains is one of the prerequisites for ensuring their safe and reliable operation. As a key part of high-speed trains for power conversion, the traction inverter system has been operating in a complex environment for a long time and is subject to the coupling of multiple physical fields. It has become the main source of high-incidence failures in trains. In addition, the traction inverter completes the important power conversion process in the train inverter system by controlling the insulated gate bipolar transistor (IGBT). IGBTs are frequently used in this process and are easily overlooked in daily maintenance, posing a high risk of failure. Once an IGBT fails, the overall function of the traction inverter may be impaired, leading to serious safety hazards. Therefore, it is crucial to implement an effective fault diagnosis method for the IGBT of the traction inverter.

[0003] A large amount of historical operation data of high-speed trains is the basis and important guarantee of data-driven fault diagnosis. Feature extraction is an important means to more accurately reflect the fault information contained in the operation data and improve the accuracy of fault diagnosis. However, historical data in traction inverter systems are often collected by multiple sensors. The importance of various data and the amount of information they contain are different. There will be features with very little correlation with the fault category variables in the extracted features, which will cause problems such as overfitting and increased calculation, and reduce the interpretability of the diagnosis results. In addition, random forests have attracted much attention in the field of fault diagnosis due to their simple structure, strong robustness, and convenience for feature evaluation. However, the traditional random forest algorithm considers the impact of each feature equally in the feature sampling process, and does not consider the difference in the amount of information of different features, resulting in a reduction in the role of features with greater influence, affecting the performance of the classifier. Therefore, there is a need for a method that can effectively solve the problem of performance degradation of fault diagnosis algorithms caused by non-important features, while alleviating the difference in feature information and improving the performance of fault diagnosis classifiers. Summary of the invention

[0004] The purpose of the present invention is to propose a high-speed train traction inverter fault diagnosis method based on weighted random forest, specifically to diagnose the fault of the insulated gate bipolar transistor controlled by the traction inverter. The method proposed by the present invention can optimize the extracted features and remove the influence of low-importance features on the performance of the fault diagnosis algorithm. Through the feature weighted random forest algorithm, the utilization rate of important features can be increased and the information difference of the features can be fully utilized, thereby improving the accuracy of fault diagnosis.

[0005] To achieve the above purpose, the technical solution adopted by the present invention is as follows:

[0006] A high-speed train traction inverter fault diagnosis method based on weighted random forest is used to diagnose the fault of the insulated gate bipolar transistor controlled by the traction inverter, which specifically includes the following steps:

[0007] Step 1, extracting the time domain features, frequency domain features and time-frequency domain features of the original signal and constructing a feature data set;

[0008] Step 2: Run the random forest algorithm on the feature data set to obtain feature importance, and use feature importance and recursive feature elimination method to obtain the optimal feature set;

[0009] Step 3: Establish a weighted random forest model on the data set corresponding to the optimal feature set and implement fault diagnosis through the model.

[0010] Furthermore, the specific process of step 1 is as follows:

[0011] Step 1.1, considering the case where a single insulated gate bipolar transistor fails and two insulated gate bipolar transistors fail simultaneously in the traction inverter, the fault types are divided into 22 types;

[0012] Step 1.2, using MATLAB / Simulink simulation software to model and simulate the traction inverter, and collecting the three-phase current signals output by the traction inverter under various fault types as original signals;

[0013] Step 1.3, extracting time domain features from each current signal according to an empirical formula, performing fast Fourier transform on each current signal to obtain a frequency domain signal, and extracting frequency domain features from the frequency domain signal;

[0014] The time domain characteristics include maximum value, minimum value, peak-to-peak value, average value, absolute average value, root mean square, root square amplitude, standard deviation, pulse factor, peak factor, and margin factor;

[0015] The frequency domain features include spectrum energy mean, spectrum energy variance, center of gravity frequency, frequency standard deviation, mean square frequency, and spectrum kurtosis;

[0016] Step 1.4: Perform three-layer wavelet packet decomposition on each current signal to obtain sub-signals of different scales and frequency bands, and then obtain the energy information of the signal in different frequency ranges; the energy information of the eight sub-signals obtained by three-layer wavelet packet decomposition is used as the time-frequency domain feature, namely:

[0017] ;

[0018] in, is the time-frequency domain feature; is the number of the sub-signal, ; It is the sub-signal obtained after decomposition of three-layer wavelet packets; is the unit of time; is the number of sampling points of the sub-signal; The third layer after decomposition The sub-signal is Wavelet packet coefficients at sampling points;

[0019] Step 1.5: Integrate the extracted time domain features, frequency domain features, and time-frequency domain feature information to obtain a first feature data set containing multiple samples. , is the total number of samples; is the total number of features; For the The sample corresponding to Features; the collection of all the features used to describe the data samples constitutes the feature set ,in is used to describe the data sample Features.

[0020] Further, in step 1.1, the 22 fault types are: no fault, recorded as 1; device V1 fault, recorded as 2; device V2 fault, recorded as 3; device V3 fault, recorded as 4; device V4 fault, recorded as 5; device V5 fault, recorded as 6; device V6 fault, recorded as 7; device V1 and V2 fault at the same time, recorded as 8; device V3 and V4 fault at the same time, recorded as 9; device V5 and V6 fault at the same time, recorded as 10; device V1 and V3 fault at the same time, recorded as 11; device V1 and V5 fault at the same time The failure of devices V3 and V5 is recorded as 12; the failure of devices V3 and V5 is recorded as 13; the failure of devices V2 and V4 is recorded as 14; the failure of devices V2 and V6 is recorded as 15; the failure of devices V4 and V6 is recorded as 16; the failure of devices V1 and V4 is recorded as 17; the failure of devices V1 and V6 is recorded as 18; the failure of devices V2 and V3 is recorded as 19; the failure of devices V3 and V6 is recorded as 20; the failure of devices V2 and V5 is recorded as 21; the failure of devices V4 and V5 is recorded as 22.

[0021] Furthermore, the specific process of step 2 is as follows:

[0022] Step 2.1: In the first feature dataset Run the traditional random forest algorithm on the dataset to get the importance of each feature and sort the features in descending order.

[0023] Step 2.2, remove the least important feature according to the feature importance sorting to obtain a new feature set; use the data set corresponding to the new feature set to run the traditional random forest algorithm and perform 5-fold cross validation to obtain the model classification accuracy of the data set;

[0024] Step 2.3: Continue to execute step 2.2 until the number of features in the feature set reaches the predetermined number; comprehensively consider the model classification accuracy of all feature data sets, and select the feature set with the least number of features and the highest classification accuracy of the corresponding data set as the optimal feature set. ; For the The best features; is the total number of optimal features; the corresponding second feature data set obtained according to the optimal features is: , ; For the The sample corresponding to The best feature.

[0025] Furthermore, the specific process of step 3 is as follows:

[0026] Step 3.1, select a sample subset by random resampling with replacement;

[0027] Step 3.2: Improve the construction process of feature subsets in the traditional random forest algorithm, and use the weighted random sampling feature extraction method to replace the simple random sampling of the traditional random forest to extract feature subsets;

[0028] Step 3.3, complete the growth of decision trees in the weighted random forest and construct a weighted random forest model; the growth process of the decision tree is: data enters from the root node, and the nodes are continuously split according to the Gini index minimization criterion until all leaf nodes contain only one type of sample, thereby completing the growth of the decision tree, and generating multiple decision trees in the same way, so that each decision tree forms a tree structure that is adapted to its corresponding feature data set; finally, the collection of all decision trees is the constructed weighted random forest model;

[0029] Step 3.4: Input the test data into the constructed weighted random forest model to obtain the output result of the weighted random forest;

[0030] Step 3.5: Optimize the parameters of the weighted random forest model.

[0031] Furthermore, in step 3.1, the second feature data set is selected according to a random resampling method with replacement. The same number of samples are extracted as the third feature data set ; The samples not drawn during the sampling process constitute the out-of-bag data set, which will be used as the test data set; The third feature data set The sample corresponding to The best feature.

[0032] Furthermore, in step 3.2, the weight of each feature extracted in weighted random sampling is By feature importance Confirm, specifically:

[0033] ;

[0034] in, For the The weight of the best features extracted, For the The importance of the best features; For the The weight of the best features extracted; For the The importance of the best features;

[0035] According to the sampling weight, the optimal feature set According to the weighted random sampling method, the capacity is A subset of features ; is the first Features.

[0036] Furthermore, in step 3.3, the third feature data set is weightedly extracted. of Column, get the feature data set for training decision tree , ,in, Indicates decision tree; is the feature data set used to train the decision tree. samples; is the transpose symbol;

[0037] The split characteristics of each non-leaf node during the node splitting process and split point The choice of is determined by the minimum Gini index, as follows:

[0038] ;

[0039] in, is the Gini index; , The split features obtained for enumeration are Two subsample sets of ; , is the number of samples in the two sub-sample sets; is the total number of samples at non-leaf nodes.

[0040] Furthermore, in step 3.4, the test data is input into the constructed weighted random forest model to obtain the output result of the weighted random forest; the sample enters from the root node, and its feature value is compared with the feature split value at the node, so as to be divided into non-leaf nodes and finally fall into the leaf node; each decision tree will classify the sample for fault, and by voting on the fault classification results of all decision trees, the fault category with the most votes is selected as the final fault classification result of the random forest; specifically:

[0041] ;

[0042] in, This is the fault classification result of random forest; is the input variable; is the fault category index, ; is the total number of fault categories; Indicates the random forest The classification result of the decision tree is ; The number of decision trees that satisfy the expression in brackets; is the total number of decision trees.

[0043] Furthermore, in step 3.5, parameter optimization includes optimizing the number of features in the feature subset and the number of decision trees in the weighted random forest model; wherein the number of features in the feature subset is based on It is obtained that the optimal number of decision trees is determined according to the fault classification accuracy of the test data in the weighted random forest; by using out-of-bag data for testing, the accuracy will gradually increase and converge with the increase in the number of decision trees; when the accuracy converges, the minimum number of decision trees is the optimal number of decision trees.

[0044] The beneficial technical effects brought by the present invention are as follows: time domain, frequency domain and time-frequency domain feature extraction is performed on the original data to obtain more comprehensive fault feature information; a feature optimization method is proposed, which combines the recursive elimination algorithm with the feature importance of the random forest to remove the influence of low-importance features on the performance of the fault diagnosis algorithm; a feature-weighted random forest algorithm is proposed, which uses the feature importance index as the weight and uses the weighted random sampling feature extraction method to replace the simple random sampling of the traditional random forest, which can increase the utilization rate of important features and make full use of the information differences of the features, thereby improving the accuracy of fault diagnosis. BRIEF DESCRIPTION OF THE DRAWINGS

[0045] Figure 1 The present invention is a flow chart of a method for diagnosing faults of a high-speed train traction inverter based on weighted random forest.

[0046] Figure 2This is a topological structure diagram of the high-speed train traction inverter in the experiment of the present invention.

[0047] Figure 3 Schematic diagram of feature importance of random forest in the experiment of the present invention.

[0048] Figure 4 This is a graph showing the changing trend of the fault classification accuracy with the number of features in the experiment of the present invention.

[0049] Figure 5 This is a graph showing the changing trend of the fault classification accuracy with the number of decision trees in the weighted random forest in the experiment of the present invention.

[0050] Figure 6 It is the confusion matrix of the random forest classification results in the experiment of the present invention. DETAILED DESCRIPTION

[0051] The present invention is further described in detail below with reference to the accompanying drawings and specific embodiments:

[0052] like Figure 1 As shown, the present invention proposes a high-speed train traction inverter fault diagnosis method based on weighted random forest, which performs fault diagnosis on the insulated gate bipolar transistor controlled by the traction inverter, specifically comprising the following steps:

[0053] Step 1: Extract the time domain features, frequency domain features, and time-frequency domain features of the original signal and construct a feature data set. The specific process is as follows:

[0054] Step 1.1: Consider a single IGBT failure and two IGBT failures in the traction inverter. Figure 2 The fault types are divided into 22 types in detail, namely: no fault, recorded as 1; device V1 fault, recorded as 2; device V2 fault, recorded as 3; device V3 fault, recorded as 4; device V4 fault, recorded as 5; device V5 fault, recorded as 6; device V6 fault, recorded as 7; device V1 and V2 fault at the same time, recorded as 8; device V3 and V4 fault at the same time, recorded as 9; device V5 and V6 fault at the same time, recorded as 10; device V1 and V3 fault at the same time, recorded as 11; device V1 and V5 fault at the same time, recorded as 1 2; devices V3 and V5 fail at the same time, recorded as 13; devices V2 and V4 fail at the same time, recorded as 14; devices V2 and V6 fail at the same time, recorded as 15; devices V4 and V6 fail at the same time, recorded as 16; devices V1 and V4 fail at the same time, recorded as 17; devices V1 and V6 fail at the same time, recorded as 18; devices V2 and V3 fail at the same time, recorded as 19; devices V3 and V6 fail at the same time, recorded as 20; devices V2 and V5 fail at the same time, recorded as 21; devices V4 and V5 fail at the same time, recorded as 22.

[0055] Figure 2 middle, Output of traction inverter Phase current; Output of traction inverter Phase current; Output of traction inverter Phase current; is the input voltage of the traction inverter. It is the symbol for traction motor.

[0056] Step 1.2: Use MATLAB / Simulink simulation software to model and simulate the traction inverter, and collect the three-phase current signals output by the traction inverter under various fault types as the original signals. During the collection process, set the sampling time to 1s and the sampling frequency to 10. 6 Hz. The original signal is divided into segments of 0.02 s each. Finally, the original signal is divided into 50 segments, containing a total of 20,000 sampling points.

[0057] Step 1.3, extracting time domain features from each current signal according to an empirical formula, performing fast Fourier transform (FFT) on each current signal to obtain a frequency domain signal, and extracting frequency domain features from the frequency domain signal;

[0058] The time domain characteristics include maximum value, minimum value, peak-to-peak value, average value, absolute average value, root mean square, root square amplitude, standard deviation, pulse factor, peak factor, and margin factor;

[0059] The frequency domain features include spectrum energy mean, spectrum energy variance, center of gravity frequency, frequency standard deviation, mean square frequency, and spectrum kurtosis;

[0060] Table 1 specifically gives the characteristic parameters and expressions of the time domain characteristics and frequency domain characteristics; in Table 1, is the maximum value; is the minimum value; is the peak value; is the peak-to-peak value; is the average value; is the absolute average value; is the root mean square; is the square root amplitude; is the standard deviation; is the pulse factor; is the peak factor; is the margin factor; is the mean spectral energy; is the spectrum energy variance; is the center of gravity frequency; is the frequency standard deviation; is the root mean square frequency; is the spectrum kurtosis; is a time domain signal of a certain current; is the number of the sampling point, ; is the total number of sampling points; is the frequency domain signal; is the number of the spectral line, ; is the total number of spectral lines; It is The frequency of a spectral line.

[0061] Table 1 List of time domain features and frequency domain features

[0062] .

[0063] Step 1.4: Perform three-layer wavelet packet decomposition (WPD) on each current signal to obtain sub-signals of different scales and frequency bands, and then obtain the energy information of the signal in different frequency ranges. The energy information of the eight sub-signals obtained by three-layer wavelet packet decomposition is used as the time-frequency domain feature, namely:

[0064] ;

[0065] in, is the time-frequency domain feature; is the number of the sub-signal, ; It is the sub-signal obtained after decomposition of three-layer wavelet packets; is the unit of time; is the number of sampling points of the sub-signal; The third layer after decomposition The sub-signal is Wavelet packet coefficients at sampling points;

[0066] Step 1.5: Integrate the extracted time domain features, frequency domain features, and time-frequency domain feature information to obtain a first feature data set containing multiple samples. , is the total number of samples; is the total number of features; For the The sample corresponding to The collection of all the features used to describe the data samples constitutes the feature set ,in is used to describe the data sample Features.

[0067] Step 2: Run the random forest algorithm on the feature data set to obtain feature importance, and use feature importance and recursive feature elimination method to obtain the optimal feature set. The specific process is as follows:

[0068] Step 2.1: Feature importance is the contribution of each feature to the random forest classification task. Run the traditional random forest algorithm on the dataset to get the importance of each feature and sort the features in descending order.

[0069] Step 2.2: Sort the features by importance and remove the least important features to get a new feature set. Use the data set corresponding to the new feature set to run the traditional random forest algorithm and perform 5-fold cross validation to get the model classification accuracy of the data set.

[0070] Step 2.3: Continue to execute step 2.2 until the number of features in the feature set reaches the predetermined number. Based on the model classification accuracy of all feature data sets, select the feature set with the least number of features and the highest classification accuracy of the corresponding data set as the optimal feature set. ; For the The best features; is the total number of optimal features. The corresponding second feature data set obtained according to the optimal features is: , ; For the The sample corresponding to The best feature.

[0071] Step 3: Establish a weighted random forest model on the data set corresponding to the optimal feature set and implement fault diagnosis through the model. The specific process is as follows:

[0072] Step 3.1, select a sample subset by random resampling with replacement;

[0073] According to the random resampling method with replacement, the second feature data set The same number of samples are extracted as the third feature data set . The label corresponding to each sample in constitutes the label matrix The samples that are not drawn during the sampling process constitute the out-of-bag data set, which will be used as the test data set. The third feature data set The sample corresponding to The best feature.

[0074] Step 3.2: Improve the construction process of feature subsets in the traditional random forest algorithm, and use weighted random sampling feature extraction method to replace the simple random sampling of traditional random forest to extract feature subsets. The weight of each feature extracted in weighted random sampling is By feature importance Confirm, specifically:

[0075] ;

[0076] in, For the The weight of the best features extracted, For the The importance of the best feature. For the The weight of the best features extracted; For the The importance of the best feature.

[0077] According to the sampling weight, the optimal feature set According to the weighted random sampling method, the capacity is A subset of features This process starts from According to the sampling weight Random Selection Number , there is no duplication of values. is the first Features.

[0078] Step 3.3, complete the growth of decision trees in the weighted random forest and build a weighted random forest model;

[0079] The data set used to grow a single decision tree is equivalent to first growing the data set from the second feature Randomly draw with replacement samples, and obtain the third feature data set Then weighted extraction of Column, get the feature data set for training decision tree , ,in, Indicates decision tree; is the feature data set used to train the decision tree. samples; is the transpose symbol.

[0080] The growth of a decision tree is that data enters from the root node, and nodes are continuously split according to the Gini index minimization criterion until all leaf nodes contain only one type of sample, thus completing the growth of the decision tree. Multiple decision trees are generated in the same way, so that each decision tree forms a tree structure that is adapted to its corresponding feature data set. Finally, the collection of all decision trees is the constructed weighted random forest model.

[0081] The split characteristics of each non-leaf node during the node splitting process and split point The choice of is determined by the minimum Gini index, as follows:

[0082] ;

[0083] in, is the Gini index; , The split features obtained for enumeration are Two subsample sets of ; , is the number of samples in the two sub-sample sets; is the total number of samples at non-leaf nodes.

[0084] Step 3.4: Input the test data into the constructed weighted random forest model to obtain the output of the weighted random forest. The sample enters from the root node, and its feature value is compared with the feature split value at the node, so as to be divided into non-leaf nodes and finally fall into the leaf node. Each decision tree will classify the fault of the sample, and by voting on the fault classification results of all decision trees, the fault category with the most votes is selected as the final fault classification result of the random forest. Specifically:

[0085] ;

[0086] in, This is the fault classification result of random forest; is the input variable; is the fault category index, ; is the total number of fault categories; Indicates the random forest The classification result of the decision tree is ; The number of decision trees that satisfy the expression in brackets; is the total number of decision trees.

[0087] Step 3.5: Optimize the parameters of the weighted random forest model. Parameter optimization includes optimizing the number of features in the feature subset and the number of decision trees in the weighted random forest model. The number of features in the feature subset is based on The optimal number of decision trees is determined by the fault classification accuracy of the test data in the weighted random forest. By using out-of-bag data for testing, the accuracy will gradually increase and converge as the number of decision trees increases. When the accuracy converges, the minimum number of decision trees is the optimal number of decision trees.

[0088] In order to prove the feasibility and superiority of the method of the present invention, the following experiment was carried out.

[0089] First, run the traditional random forest algorithm on the feature dataset to obtain Figure 3 Secondly, remove the least important feature, use the data set corresponding to the remaining feature set to build a random forest model, perform 5-fold cross validation to obtain the fault classification accuracy, and repeat this process until the number of features in the feature set reaches the predetermined value, and finally obtain Figure 4 The classification accuracy is shown in the figure. The results show that the fault classification accuracy is the highest when the number of features is 29, which is 95.33%. Therefore, the optimal number of feature sets is determined to be 29. Then, a weighted random forest model is constructed on the optimal feature data set. Figure 5 The classification accuracy changes with the number of decision trees shown in the figure. The number of decision trees in the random forest is set to 59. The test data set is input to obtain the predicted fault classification labels. Figure 6 The confusion matrix shown shows that the classification effect of the samples is good, only a few samples are incorrectly classified into other fault types, and the classification accuracy can reach 98.04%.

[0090] Of course, the above description is not a limitation of the present invention, and the present invention is not limited to the above examples. Changes, modifications, additions or substitutions made by technicians in this technical field within the essential scope of the present invention should also fall within the protection scope of the present invention.

Claims

1. A high-speed train traction inverter fault diagnosis method based on weighted random forest, characterized in that: Fault diagnosis of the insulated gate bipolar transistor controlled by the traction inverter includes the following steps: Step 1, extracting the time domain features, frequency domain features and time-frequency domain features of the original signal and constructing a feature data set; Step 2: Run the random forest algorithm on the feature data set to obtain feature importance, and use feature importance and recursive feature elimination method to obtain the optimal feature set; Step 3: Establish a weighted random forest model on the data set corresponding to the optimal feature set and implement fault diagnosis through the model; the specific process is as follows: Step 3.1, select a sample subset by random resampling with replacement; According to the random resampling method with replacement, the second feature data set The same number of samples are extracted as the third feature data set The samples not drawn during the sampling process constitute the out-of-bag data set, which will be used as the test data set; nn * is the mth optimal feature corresponding to the nth sample in the third feature data set; Step 3.2: Improve the construction process of feature subsets in the traditional random forest algorithm, and use the weighted random sampling feature extraction method to replace the simple random sampling of the traditional random forest to extract feature subsets; The weight of each feature extracted in weighted random sampling is W = (w1, w2, ..., w m ) by feature importance Confirm, specifically: Among them, w j is the weight of the jth optimal feature extracted, is the importance of the jth optimal feature; w m is the weight of the mth optimal feature extracted; is the importance of the mth optimal feature; According to the sampling weights, the optimal feature set F = (f1, f2, ..., f m ) According to the weighted random sampling method, the capacity is A subset of features is the mth * Features Step 3.3, complete the growth of decision trees in the weighted random forest and build a weighted random forest model; Weighted extraction of the third feature dataset X * m * Column, get the feature data set X for training decision tree (z) =[x1 * , x2 * ,...,x n * ] T , Among them, z represents the zth decision tree; x n * is the nth sample in the feature data set used to train the decision tree; T is the transposition symbol; The split feature f of each non-leaf node during the node splitting process s and split point The choice of is determined by the minimum Gini index, as follows: Among them, Gini(·) is the Gini index; The split feature obtained by enumeration is f s Two sub-sample sets; N1 and N2 are the number of samples in the two sub-sample sets; N is the total number of samples at non-leaf nodes; The growth process of the decision tree is as follows: data enters from the root node, and nodes are continuously split according to the Gini index minimization criterion until all leaf nodes contain only one type of sample, thereby completing the growth of the decision tree. Multiple decision trees are generated in the same way, so that each decision tree forms a tree structure that is adapted to its corresponding feature data set; finally, the collection of all decision trees is the constructed weighted random forest model; Step 3.4: Input the test data into the constructed weighted random forest model to obtain the output result of the weighted random forest; The sample enters from the root node, and its feature value is compared with the feature split value at the node, so as to be divided into non-leaf nodes and finally fall into leaf nodes; each decision tree will classify the sample for faults, and by voting on the fault classification results of all decision trees, the fault category with the most votes is selected as the final fault classification result of the random forest; specifically: in, This is the fault classification result of random forest; is the input variable; c is the fault category index, c = 1, 2, ..., C; C is the total number of fault categories; Indicates that the classification result of the zth decision tree in the random forest is c; λ(·) is the number of decision trees that satisfy the expression in brackets; Z is the total number of decision trees; Step 3.5, optimize the parameters of the weighted random forest model; Parameter optimization includes optimizing the number of features in the feature subset and the number of decision trees in the weighted random forest model; the number of features in the feature subset is based on It is obtained that the optimal number of decision trees is determined according to the fault classification accuracy of the test data in the weighted random forest; by using out-of-bag data for testing, the accuracy will gradually increase and converge with the increase in the number of decision trees; when the accuracy converges, the minimum number of decision trees is the optimal number of decision trees.

2. The high-speed train traction inverter fault diagnosis method based on weighted random forest according to claim 1 is characterized in that: The specific process of step 1 is as follows: Step 1.1, considering the case where a single insulated gate bipolar transistor fails and two insulated gate bipolar transistors fail simultaneously in the traction inverter, the fault types are divided into 22 types; Step 1.2, using MATLAB / Simulink simulation software to model and simulate the traction inverter, and collecting the three-phase current signals output by the traction inverter under various fault types as original signals; Step 1.3, extracting time domain features from each current signal according to an empirical formula, performing fast Fourier transform on each current signal to obtain a frequency domain signal, and extracting frequency domain features from the frequency domain signal; The time domain characteristics include maximum value, minimum value, peak-to-peak value, average value, absolute average value, root mean square, root square amplitude, standard deviation, pulse factor, peak factor, and margin factor; The frequency domain features include spectrum energy mean, spectrum energy variance, center of gravity frequency, frequency standard deviation, mean square frequency, and spectrum kurtosis; Step 1.4: Perform three-layer wavelet packet decomposition on each current signal to obtain sub-signals of different scales and frequency bands, and then obtain the energy information of the signal in different frequency ranges; the energy information of the eight sub-signals obtained by three-layer wavelet packet decomposition is used as the time-frequency domain feature, namely: Where, E(·) is the time-frequency domain feature; s is the sub-signal number, s = 0, 1, 2, ..., 7; x(s) is the sub-signal obtained after three-layer wavelet packet decomposition; τ is the time unit; R is the number of sampling points of the sub-signal; is the wavelet packet coefficient of the Sth sub-signal at the rth sampling point of the third layer after decomposition; Step 1.5: Integrate the extracted time domain features, frequency domain features, and time-frequency domain feature information to obtain a first feature data set containing multiple samples. n is the total number of samples; M is the total number of features; x nM is the Mth feature corresponding to the nth sample; the set of all the multiple features used to describe the data sample constitutes the feature set F B =(f1, f2, ..., f M ), where f M is the Mth feature used to describe the data sample.

3. The high-speed train traction inverter fault diagnosis method based on weighted random forest according to claim 2 is characterized in that: In step 1.1, the 22 fault types are: no fault, recorded as 1; device V1 fault, recorded as 2; device V2 fault, recorded as 3; device V3 fault, recorded as 4; device V4 fault, recorded as 5; device V5 fault, recorded as 6; device V6 fault, recorded as 7; device V1 and V2 fault at the same time, recorded as 8; device V3 and V4 fault at the same time, recorded as 9; device V5 and V6 fault at the same time, recorded as 10; device V1 and V3 fault at the same time, recorded as 11; device V1 and V5 fault at the same time, recorded as 12. Recorded as 12; devices V3 and V5 fail at the same time, recorded as 13; devices V2 and V4 fail at the same time, recorded as 14; devices V2 and V6 fail at the same time, recorded as 15; devices V4 and V6 fail at the same time, recorded as 16; devices V1 and V4 fail at the same time, recorded as 17; devices V1 and V6 fail at the same time, recorded as 18; devices V2 and V3 fail at the same time, recorded as 19; devices V3 and V6 fail at the same time, recorded as 20; devices V2 and V5 fail at the same time, recorded as 21; devices V4 and V5 fail at the same time, recorded as 22.

4. The high-speed train traction inverter fault diagnosis method based on weighted random forest according to claim 1 is characterized in that: The specific process of step 2 is as follows: Step 2.1: In the first feature data set X B Run the traditional random forest algorithm on the dataset to get the importance of each feature and sort the features in descending order. Step 2.2, remove the least important feature according to the feature importance sorting to obtain a new feature set; use the data set corresponding to the new feature set to run the traditional random forest algorithm and perform 5-fold cross validation to obtain the model classification accuracy of the data set; Step 2.3: Continuously execute step 2.2 until the number of features in the feature set reaches a predetermined number; comprehensively consider the model classification accuracy of all feature data sets, and select the feature set with the least number of features and the highest classification accuracy of the corresponding data set as the optimal feature set F = (f1, f2, ..., f m );f m is the mth optimal feature; m is the total number of optimal features; the corresponding second feature data set obtained according to the optimal feature is: x nm is the mth optimal feature corresponding to the nth sample.