Contactor Remaining Life Prediction Method Based on Performance Degradation Analysis and Deep Learning
By screening key feature quantities and identifying performance inflection points through full-life tests, combined with the long-short-term memory network model of the dual attention mechanism, the problem of low prediction accuracy of AC contactors is solved, and a more accurate remaining life prediction is achieved.
Patent Information
- Application Number
- CN202210149504.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-02-18
- Publication Date
- 2024-09-06
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
The existing technology has problems such as neglecting the nonlinear degradation trend and insufficient feature mining in the prediction of the remaining life of AC contactors, resulting in low prediction accuracy.
Obtain feature quantities through full life tests, use principal component analysis method to screen key feature quantities, combine with improved multi-scale permutation entropy to identify performance inflection points, divide the degradation process into sporadic failure periods and depletion failure periods, and construct the length of the dual attention mechanism The time-memory network model assigns weights to feature quantities and time steps to improve prediction accuracy.
It effectively improves the accuracy of AC contactor remaining life prediction, overcomes the subjectivity and trend differences in the selection of performance degradation inflection points, and greatly improves the accuracy of prediction results.
Smart Images

Figure CN114529079B
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of remaining life prediction of AC contactors, and specifically is a method for predicting remaining life of a contactor based on performance degradation analysis and deep learning. Background Art
[0002] Low-voltage switch devices are widely used in power control systems and play an important role in power transmission and distribution. Therefore, ensuring the long-term effective operation of low-voltage switch devices is the key to ensuring the safe and stable operation of power control systems. AC contactors are a type of low-voltage switch devices widely used in the power industry. They are mainly used to frequently connect AC main circuits and large-capacity control circuits and have strong switching capabilities. With the increase in the number of operations, the losses caused by electrical stress and mechanical stress continue to accumulate, causing the performance of the AC contactor to gradually degrade, reaching the life limit and then failing. The failure of the AC contactor will directly affect the operation of the power control system and may even cause serious safety problems and economic losses. Therefore, predicting the remaining life will be beneficial to the use and maintenance of the AC contactor and ensure its long-term effective operation. Electrical life is one of the important indicators to characterize the reliability of AC contactors. For the prediction of the remaining useful life (RUL) of AC contactors, not only can the working status of the contactor be understood in real time, but also timely maintenance and replacement can be carried out, which is of great significance to the safe and reliable operation of the power system.
[0003] Li Kui et al. (Li Kui, Li Xiaobei, Zheng Shumei, etc. Prediction of the remaining life of AC contactor based on BP neural network [J]. Transactions of China Electrotechnical Society, 2017, 32(15): 120-127.) used the accumulated arcing energy and the pull-in time as the input parameters of the model and used the BP neural network model to predict the remaining life of the AC contactor. The Chinese patent application number 202011285586.2 discloses a method for predicting the electrical life of an AC contactor based on a long short-term memory neural network. The remaining electrical life of the AC contactor is predicted by constructing a prediction model based on a deep long short-term memory neural network, but there are problems such as low prediction accuracy.
[0004] There are two main problems with the existing technology for predicting the remaining life of AC contactors: On the one hand, most of them assume that the degradation trend of the entire life of the AC contactor is single, but in fact the degradation trend of the contactor is nonlinear. The use of data from the entire life interval for remaining life prediction tends to ignore the impact of the complex performance degradation process on the results. On the other hand, the traditional method has the problem of insufficient feature mining, and it is necessary to further explore the deep connection between features and remaining life to improve the prediction accuracy. Summary of the invention
[0005] In view of the shortcomings of the prior art, the technical problem that the present invention intends to solve is to provide a method for predicting the remaining life of a circuit breaker based on performance degradation analysis and deep learning.
[0006] The technical solution adopted by the present invention to solve the technical problem is as follows:
[0007] A method for predicting the remaining life of a contactor based on performance degradation analysis and deep learning, characterized in that the method comprises the following steps:
[0008] The first step is to conduct a full life test on the AC contactor to obtain the contact voltage, contact current and coil current; extract seven characteristic quantities including arcing time, arcing energy, contact resistance, contact voltage drop, release voltage, cumulative arcing energy and pull-in time;
[0009] The second step is to screen the characteristic quantities to obtain key characteristic quantities, which include contact voltage drop, release voltage, contact resistance, cumulative arcing energy and the first principal component;
[0010] The third step is to identify the performance inflection point of the AC contactor, and divide the entire degradation process of the AC contactor into the occasional failure period and the wear and tear failure period according to the performance inflection point;
[0011] Step 4: Construct a prediction model based on the dual attention mechanism. The prediction model uses the long short-term memory network as the backbone network. Use the pre-trained prediction model to predict the remaining life of the AC contactor based on the data of the wear and tear failure period. The dual attention mechanism includes the feature attention mechanism and the time step attention mechanism.
[0012] Before the key feature quantities are input into the long short-term memory network, the feature attention mechanism is used to assign weights to each key feature quantity; assuming that the input vector of the prediction model at time t is β = [β1, β2, …, β K ], K represents the number of key features, then the feature attention weight q of the kth key feature is calculated by formula (1): k :
[0013] q k =tanh(W1*β k +b1),k=1,2,…,K (1)
[0014] Among them, W1 and b1 are the weight matrix and bias vector of the feature attention mechanism, and tanh is the activation function;
[0015] The feature attention weight of the kth key feature quantity is normalized by the softmax function of formula (2) to obtain the feature attention weight coefficient a k; The feature attention weight coefficients of all key feature quantities constitute the feature attention weight vector A = [a1, a2, ..., a K ], and the sum of the feature attention weight coefficients of all key feature quantities is 1;
[0016]
[0017] According to formula (3), the input vector β is multiplied by the feature attention weight vector A to obtain the output O of the feature attention layer, O = [O1, O2, ..., O K ];
[0018]
[0019] After the LSTM network, each time step of the LSTM network is given a weight according to the time step attention mechanism; assuming that the time step vector output by the LSTM network is γ = [γ1,γ2,…,γ J ] T , J represents the number of time steps, then the temporal attention weight p of the j-th time step is calculated by formula (4): j ;
[0020] p j =tanh(W2*γ j +b2),j=1,2,…,J (4)
[0021] Where W2 and b2 are the weight matrix and bias vector of the time-step attention mechanism respectively;
[0022] According to formula (5), the temporal attention weight of each time step is normalized to obtain the temporal attention weight coefficient of each time step, d j is the temporal attention weight coefficient of the jth time step; the temporal attention weight coefficients of all time steps constitute the temporal attention weight vector D = [d1, d2, ..., d J ], the sum of the temporal attention weight coefficients of all time steps is 1;
[0023]
[0024] According to formula (6), the time step vector γ output by LSTM is multiplied by the temporal attention weight vector D to obtain the output h of the temporal attention layer, h = [h1,h2,…,h J ];
[0025]
[0026] Finally, the output of the temporal attention layer is passed through a fully connected layer to obtain the output of the LSTM prediction model based on the dual attention mechanism, that is, the prediction result.
[0027] Compared with the prior art, the significant progress and essential features of the present invention are:
[0028] (1) Considering the influence of feature quantities on model performance, firstly, principal component analysis (PCA) is used to reduce the dimension of feature quantities, screen out the principal components, and construct a full-information feature set with the original feature quantities; secondly, the XGBoost algorithm is used to screen feature quantities with less correlation with the remaining life; finally, the Spearman correlation coefficient is used to measure the correlation between features and eliminate redundant variables; the screened feature quantities are used as key feature quantities to effectively characterize the performance degradation of the contactor.
[0029] (2) The present invention uses an improved multi-scale permutation entropy (MMPE) to analyze the performance degradation trend of the contactor, identify the performance inflection point of the contactor, and divide the entire performance degradation process of the contactor into an occasional failure period and a wear and tear failure period according to the performance inflection point. The data of the wear and tear failure period is used to predict the remaining life of the contactor, making the prediction result more accurate. At the same time, it overcomes the problem that the selection of the performance degradation inflection point is subjective and has large trend differences.
[0030] (3) A prediction model with a dual attention mechanism was established. The prediction model uses the long short-term memory network (LSTM) as the backbone network. Before the key features are input into the prediction model, different key features are given different weights through the feature attention mechanism. The conventional long short-term memory network only uses the features learned in the last time step for regression. For the hidden state generated by LSTM, it does not pay enough attention to time dependence, thus ignoring the content learned in other time steps. Since the feature quantity of the AC contactor has a strong dependence on time, the features learned in each time step will make a certain contribution to the RUL prediction result. Therefore, after LSTM, weights are assigned to each time step according to the time step attention mechanism to further improve the prediction accuracy.
[0031] (4) The experimental results show that both performance degradation analysis and dual attention mechanism can effectively improve the prediction accuracy of the remaining life of AC contactors. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] Figure 1 It is the overall flow chart of the present invention;
[0033] Figure 2 Schematic diagram of the structure of the feature attention mechanism;
[0034] Figure 3 This is a schematic diagram of the structure of the time step attention mechanism;
[0035] Figure 4 Schematic diagram of the structure of the prediction model based on the dual attention mechanism;
[0036] Figure 5 This is the structural block diagram of the AC contactor electrical life test system;
[0037] Figure 6 It is the waveform diagram of contact voltage / current;
[0038] Figure 7 is the waveform of coil current;
[0039] Figure 8 It is a bar chart of the importance scores of the feature quantities;
[0040] Fig. 9 is the permutation entropy of the contact voltage sequence of #4 AC contactor under different scale factors;
[0041] Fig.10 This is the performance inflection point result diagram of #4 AC contactor;
[0042] Fig.11 This is the performance inflection point result diagram of #7 AC contactor;
[0043] Fig.12 This is a visualization of the feature attention weight and time attention weight;
[0044] Figure 13(a) is a diagram showing the remaining life prediction result of #1 AC contactor;
[0045] Figure 13(b) is a diagram showing the remaining life prediction results of #2 AC contactor;
[0046] Figure 13(c) is a diagram showing the remaining life prediction results of #3 AC contactor;
[0047] Figure 13(d) is a diagram showing the remaining life prediction results of #4 AC contactor;
[0048] Figure 13(e) is a diagram showing the remaining life prediction result of #5 AC contactor;
[0049] Figure 13(f) is a diagram showing the remaining life prediction results of #6 AC contactor;
[0050] Figure 13(g) is a diagram showing the remaining life prediction results of #8 AC contactor;
[0051] Figure 13(h) is a diagram showing the remaining life prediction results of #9 AC contactor;
[0052] Fig.14 This is the remaining life prediction result diagram of #7 AC contactor;
[0053] Figure 15(a) is a box plot of the mean absolute errors of different prediction models;
[0054] Figure 15(b) is a box plot of the root mean square error of different prediction models. DETAILED DESCRIPTION
[0055] The technical solution of the present invention is further described below in conjunction with the accompanying drawings and embodiments, but they are not intended to limit the protection scope of the present invention.
[0056] The present invention is a contactor remaining life prediction method based on performance degradation analysis and deep learning (hereinafter referred to as the method), which comprises the following steps:
[0057] The first step is to use the AC contactor electrical life test system to conduct the AC contactor full life test to obtain the contact voltage, contact current and coil current; extract seven characteristic quantities including arcing time, arcing energy, contact resistance, contact voltage drop, release voltage, cumulative arcing energy and pull-in time;
[0058] The second step is to screen the feature quantities to obtain key feature quantities, which are used as inputs of the prediction model.
[0059] In order to comprehensively consider the important information reflected by different feature quantities, firstly, the principal component analysis (PCA) method is used to reduce the dimension of the seven feature quantities extracted in the first step, and the principal components with a cumulative contribution rate greater than 85% are retained. The retained principal components are used as new feature quantities and together with the original seven feature quantities to form a full information feature set; secondly, the XGBoost algorithm is used to screen out feature quantities that are irrelevant or less correlated with RUL, and these feature quantities are discarded; finally, the Spearman rank correlation coefficient method is used to measure the correlation between the remaining feature quantities, and one of the two feature quantities with a larger correlation is deleted to eliminate redundant variables and reduce the training time of the prediction model; the remaining feature quantities are used as key feature quantities for the remaining life prediction of AC contactors, and the key feature quantities include contact voltage drop, release voltage, contact resistance, cumulative arcing energy and the first principal component;
[0060] The third step is to use the MMPE (Modified Multi-scale Permutation Entropy) algorithm to analyze the performance degradation process of the AC contactor, calculate the multi-scale permutation entropy of the contact voltage sequence, and regard the point where the mean of the multi-scale permutation entropy is greater than the inflection point recognition threshold as the performance inflection point. According to the performance inflection point, the entire degradation process of the AC contactor is divided into an occasional failure period and a wear and tear failure period. The interval to the left of the performance inflection point is the occasional failure period, and the interval to the right of the performance inflection point is the wear and tear failure period; the data of the wear and tear failure period is used to predict the remaining life of the AC contactor;
[0061] Step 4: Build a prediction model based on the dual attention mechanism and use the pre-trained prediction model to predict the remaining life of the AC contactor; the dual attention mechanism includes feature attention mechanism and time step attention mechanism;
[0062] 4-1 The feature attention mechanism is used to assign different weights to each key feature obtained in the second step, and important key features are assigned greater weights to improve the RUL prediction accuracy; Figure 2 As shown, assuming that the input vector of the prediction model at time t is β = [β1, β2, …, β K ], K represents the number of key features, then the feature attention weight q of the kth key feature is calculated by formula (1): k :
[0063] q k =tanh(W1*β k +b1),k=1,2,…,K (1)
[0064] Among them, W1 and b1 are the weight matrix and bias vector of the feature attention mechanism, and tanh is the activation function;
[0065] The feature attention weight of the kth key feature quantity is normalized by the softmax function of formula (2) to obtain the feature attention weight coefficient a k ; The feature attention weight coefficients of all key feature quantities constitute the feature attention weight vector A = [a1, a2, ..., a K ], and the sum of the feature attention weight coefficients of all key feature quantities is 1;
[0066]
[0067] According to formula (3), the input vector β is multiplied by the feature attention weight vector A to obtain the output O of the feature attention layer, O = [O1, O2, ..., O K ];
[0068]
[0069] 4-2 Since the remaining life prediction of the AC contactor is time-dependent, the long short-term memory network LSTM is selected as the prediction network. The long short-term memory network contains two LSTM layers. The output of the feature attention layer is used as the input of the long short-term memory network. After the long short-term memory network learns the deep features, the time step vector of the long short-term memory network is obtained.
[0070] 4-3 Conventional LSTM only uses the features learned in the last time step for regression. For the hidden state generated by LSTM, it does not pay enough attention to time dependency, thus ignoring the content learned in other time steps. Since the feature quantity of AC contactor has a strong dependence on time, the features learned in each time step will contribute to the RUL prediction result. Therefore, after LSTM, weights are assigned to each time step according to the time step attention mechanism to further improve the prediction accuracy.
[0071] like Figure 3 As shown, assuming that the deeper features F learned by LSTM d The corresponding time step vector is γ = [γ1,γ2,…,γ J ] T , J represents the number of time steps, then the temporal attention weight p of the j-th time step is calculated by formula (4): j ;
[0072] p j =tanh(W2*γ j +b2),j=1,2,…,J (4)
[0073] Where W2 and b2 are the weight matrix and bias vector of the time-step attention mechanism respectively;
[0074] According to formula (5), the temporal attention weight of each time step is normalized to obtain the temporal attention weight coefficient of each time step, d j is the temporal attention weight coefficient of the jth time step; the temporal attention weight coefficients of all time steps constitute the temporal attention weight vector D = [d1, d2, ..., d J ], the sum of the temporal attention weight coefficients of all time steps is 1;
[0075]
[0076] According to formula (6), the time step vector γ output by LSTM is multiplied by the temporal attention weight vector D to obtain the output h of the temporal attention layer, h = [h1,h2,…,h J ];
[0077]
[0078] Finally, the output of the temporal attention layer is passed through a fully connected layer to obtain the output of the LSTM prediction model based on the dual attention mechanism, that is, the prediction result.
[0079] Example 1
[0080] Figure 5This is the block diagram of the AC contactor electrical life test system, which includes an industrial computer (610H type), a PCI-1712 multi-function data acquisition card, a Hall current sensor, a Hall voltage sensor, a solid-state relay, a contactor test piece, a resistive load, and a switching power supply. During the test, the industrial computer controls the digital output function of the PCI-1712 multi-function data acquisition card to drive the control circuit composed of solid-state relays, thereby realizing the control of the test piece (contact) and the accompanying test piece (coil); Hall voltage sensors and Hall current sensors are used to measure the contact voltage and contact current; the sampling frequency of the system is 1KHZ, and the power-on time is 80ms.
[0081] Standard GB 14048.4-2010 stipulates the connection and disconnection conditions for verifying the electrical life of AC contactors under different usage categories. There are 4 usage categories applicable to AC. This system predicts the RUL of AC contactors under the AC-4 category. The AC contactor electrical life test conditions are shown in Table 1.
[0082] Table 1 Electrical life test conditions
[0083]
[0084] The contactor remaining life prediction method based on performance degradation analysis and deep learning in this embodiment includes the following steps:
[0085] The first step is to use the AC contactor electrical life test system to conduct a full life test on 9 AC contactors to obtain the contact voltage, contact current and coil current of each AC contactor; Figure 6 , 7 This is a test waveform diagram of an AC contactor performing an operation. From t1, the coil of the AC contactor starts to be energized, and the contacts start to move under the action of the electromagnetic field; from t1 to t2, the AC contactor is in a dynamic closed state; from t2 to t3, the contacts of the AC contactor are always in the closed state; from t3 to t4, the contacts are in a dynamic disconnected state, and after t4, the contacts are completely disconnected, and the AC contactor completes a closing and disconnecting operation;
[0086] According to the waveforms of contact voltage, contact current and coil current, the characteristic quantities related to the performance of the AC contactor are extracted, including arcing time, arcing energy, contact resistance, contact voltage drop, release voltage, cumulative arcing energy and pull-in time; the calculation method of each characteristic quantity is as follows:
[0087] (1) Arcing time t r : From the arc starting time t1 to the arc extinction time t2, the arc starting time is the time when the contact voltage is not zero, and the arc extinction time is the time when the contact current is zero, then t r = t2-t1;
[0088] (2) Arc energy e: the energy generated by the arc during the arcing time. u(t) is the contact voltage, i(t) is the contact current;
[0089] Since the contact voltage and contact current data are discrete during the test, the value of each sampling point of the contact voltage and contact current is recorded as u n with i n , the arc energy can be expressed as: Among them, Δt is the time interval between two adjacent sampling points, f s is the sampling rate, a is the discrete point u at the arc starting time n and i n The corresponding serial number, b is the discrete point u at the arc extinction moment n and i n The corresponding serial number;
[0090] (3) Contact resistance: Analyze the voltage and current of the AC contactor after each stable contact closure, and calculate the contact resistance of each phase under each action by the root mean square method;
[0091] (4) Contact voltage drop: During 40% of the on-time of each cycle, monitor the effective value of the voltage drop across the contacts when the contacts are connected;
[0092] (5) Breaking voltage: During 40% of the breaking period of each cycle, monitor the effective value of the contact voltage when the contacts are breaking;
[0093] (6) Accumulated arc energy CE: the total arc energy accumulated from all single test arc energies. M is the number of trials, e m is the arcing energy of the mth test;
[0094] (7) Closing time: the time interval from the coil being energized to the first contact of the contacts;
[0095] During the electrical life test, the judgment of closing over-limit is that the contact voltage drop exceeds 10% of the contact circuit power supply voltage when connected; the judgment of breaking over-limit is that the contact voltage is lower than 90% of the contact circuit power supply voltage when breaking; when the cumulative number of over-limits reaches 20 times or the number of consecutive over-limits exceeds 5 times, the life of the AC contactor is considered to have ended; the electrical life information of each AC contactor is shown in Table 2.
[0096] Table 2 Electrical life information of AC contactor
[0097]
[0098] The second step, taking #4 AC contactor as an example, contact voltage drop, release voltage, pull-in time, contact resistance, arcing time, arcing energy and cumulative arcing energy are denoted as F1~F7 respectively, and these 7 feature quantities constitute the feature set F={F1,F2,…,F7}; first, the principal component analysis (PCA) is used to reduce the dimension of the feature set to obtain seven principal components; among them, the contribution rates of the first three principal components are 54.51%, 22.06% and 10.34% respectively, and their cumulative contribution rate is greater than 85%, so the first three principal components are retained and denoted as F8~F10 respectively. These three principal components and the original 7 feature quantities together constitute the full information feature set F'={F,F8,F9,F 10}={F1,F2,…,F 10}; Secondly, the XGBoost algorithm is used to calculate the importance score (F-score) of each feature quantity and RUL, and the following is obtained: Figure 8 The results are shown; the feature quantities with smaller importance scores are discarded; finally, the Spearman rank correlation coefficient method is used to calculate the correlation between the remaining feature quantities, and one of the two feature quantities with larger correlation is deleted. The key feature quantities finally obtained include contact voltage drop, release voltage, contact resistance, cumulative arcing energy and the first principal component.
[0099] Step 3. Generally speaking, the entire life cycle of the AC contactor can be divided into the occasional failure period and the wear failure period. The characteristic information of different periods is different from the degradation trend of the AC contactor. In order to study the characteristic information contained in the occasional failure period and the wear failure period of the AC contactor respectively, the performance degradation process of the AC contactor is analyzed by the MMPE algorithm, and the multi-scale permutation entropy (MMPE) and the mean of the multi-scale permutation entropy of the contact voltage sequence are calculated; the maximum value of the scale factor is set to 10, Fig. 9 is the permutation entropy of the contact voltage sequence of #4 AC contactor under different scale factors; in order to better perform mutation detection and find the optimal position corresponding to the performance inflection point, the inflection point recognition threshold is set to 0.45, and the point where the mean of the multi-scale permutation entropy is greater than the inflection point recognition threshold is regarded as the performance inflection point. According to the performance inflection point, the degradation process of the AC contactor is divided into the occasional fault period and the wear fault period; Fig.10 , 11 They are the performance inflection point result diagrams of #4 and #7 AC contactors respectively;
[0100] Considering that AC contactors with similar performance inflection points also have similar degradation laws and trends after entering the wear and tear failure period, the AC contactors with similar performance inflection points are grouped together. Therefore, the 9 AC contactors are divided into 4 groups to obtain 4 data sets. The information of each data set is shown in Table 3.
[0101] Table 3 Information of each data set
[0102]
[0103] The fourth step is to build a prediction model based on the dual attention mechanism. The dual attention mechanism includes the feature attention mechanism and the time step attention mechanism. The feature attention mechanism assigns different weights to each key feature quantity, and the time step attention mechanism assigns different weights to the content learned at each time step of the LSTM output. Fig.12 Visualization results of feature attention weight and time attention weight;
[0104] In order to eliminate the influence between the dimensions of different feature quantities, the range normalization method is used to normalize the key feature quantities and labels. The expression is:
[0105]
[0106] In the formula, x max 、x min are the maximum and minimum values of variable x respectively;
[0107] Take the data after the performance inflection point of each AC contactor and generate samples through the sliding window method;
[0108] Training parameter settings: The long short-term memory network LSTM is used as the backbone network of the prediction model, the key feature quantity is used as the input of the prediction model, the input dimension is 5, and the RUL value is used as the label; the long short-term memory network contains two LSTM layers, the hidden layer units of the two LETM layers are set to 128 and 64 respectively, and the learning rate is 0.0001; the hidden node of the fully connected layer is set to 1, the dropout ratio is set to 0.3 and 0.1, the batch size is set to 32, the number of iterations is set to 50, and the time steps corresponding to the data sets Q1 to Q4 are 5, 5, 20, and 20 respectively; the loss function uses MSE;
[0109] The data of the first AC contactor in each data set is used as the training set, and the data of the other AC contactor is used as the test set. The prediction model based on the dual attention mechanism is trained and optimized using the Adam optimizer. The trained prediction model is used to predict the RUL of each AC contactor, and the results are shown in Figure 13 (a) to (h). It can be seen from Figure 13 that the RUL predicted value of each AC contactor is close to the true value.
[0110] For data set Q3, the data of #5 and #6 AC contactors are used as training sets, and the data of #7 AC contactor is used as test sets. The root mean square error (RMSE) and mean absolute error (MAE) are used as evaluation indicators to evaluate the performance of the prediction model. Both evaluation indicators can reflect the accuracy of the prediction results of the remaining life of the AC contactor. The smaller the RMSE and MAE, the higher the prediction accuracy. Fig.14 This is the RUL prediction diagram of #7 AC contactor. When the data of #5 AC contactor is used as the training set to predict the RUL of #7 AC contactor, the MAE value is 153.76 and the RMSE value is 181.06; when the data of #6 AC contactor is used as the training set to predict the RUL of #7 AC contactor, the MAE value is 121.55 and the RMSE value is 153.03. Obviously, when the data of #6 AC contactor is used as the training set, the prediction error is smaller and the fitting degree is the best. The reason is that compared with #5 AC contactor, the performance inflection point of #6 AC contactor is closer to that of #7 AC contactor, and the degradation trend of #6 AC contactor and #7 AC contactor after the performance inflection point is more similar.
[0111] Ablation experiment
[0112] In order to further verify the influence of the performance degradation analysis and dual attention mechanism on RUL prediction of the proposed method, ablation experiments were carried out using LSTM, DA-LSTM, MMPE-LSTM and the proposed method respectively; wherein, LSTM represents the use of conventional long short-term memory network as the prediction model, and the use of data from the full life span of the AC contactor to predict the remaining life; DA-LSTM represents the use of the dual attention mechanism of the present invention to construct a prediction model on the basis of LSTM, and the use of data from the full life span of the AC contactor to predict the remaining life; MMPE-LSTM represents the use of conventional long short-term memory network as the prediction model, and the use of data after the performance inflection point to predict the remaining life; the prediction results are shown in Table 4 and Figures 15(a) and (b). The data in Table 4 are the means of the two evaluation indicators of all the samples, and Figures 15(a) and (b) are box plots, and the five horizontal lines from bottom to top represent the minimum value, the first quartile, the median, the third quartile and the maximum value, respectively. It can be seen from the experimental results that, overall, LSTM has the worst performance, and the performance of the proposed method is better than that of DA-LSTM and MMPE-LSTM, which shows that both performance degradation analysis and dual attention mechanism play a role in the prediction of the remaining life of AC contactors. Further comparison shows that the prediction errors of LSTM and DA-LSTM are greater than those of MMPE-LSTM and the proposed method. As shown in Table 4, compared with the DA-LSTM method, the MAE and RMSE of the RUL prediction results of the proposed method are reduced by 413.10 times and 520.32 times, respectively. It is obvious that the performance inflection point detection plays a role. Using the data after the performance inflection point for the remaining life prediction is conducive to improving the prediction accuracy; compared with the MMPE-LSTM method, the error of the proposed method is smaller, indicating that the dual attention mechanism plays a role and further improves the prediction accuracy.
[0113] Table 4 Ablation experiment results
[0114]
[0115] Comparative experiment
[0116] The BP neural network, Elman neural network, support vector regression (SVR), gated recurrent unit (GRU), convolutional neural network (CNN), bidirectional long short time network (BiLSTM) and the proposed method are used to predict the remaining life of the AC contactor using four data sets, and the prediction results shown in Table 5 are obtained. All methods are based on performance degradation analysis, that is, they are trained and predicted using data after the performance inflection point, and the prediction result evaluation index of each data set is averaged.
[0117] Table 5 Comparative test results
[0118]
[0119] BP neural network, Elman neural network and support vector regression represent shallow machine learning algorithms, GRU, CNN and BiLSTM represent traditional deep learning algorithms. The prediction errors of shallow machine learning algorithms, traditional deep learning algorithms and the method of the present invention on four data sets are averaged, and the MAE of the shallow machine learning algorithm is 192.36 and the RMSE is 233.62; the MAE of the traditional deep learning algorithm is 164.72 and the RMSE is 184.98; the MAE of the method of the present invention is 148.44 and the RMSE is 167.14. Obviously, compared with shallow machine learning and traditional deep learning algorithms, the MAE of the RUL prediction results of the method of the present invention is reduced by 44 and 16 times respectively, and the RMSE is reduced by 66 and 17 times respectively, which further illustrates that the method of the present invention can more accurately predict the remaining life of the AC contactor.
[0120] The above steps are all implemented using MATLAB and Pycharm software, which are well known to those skilled in the art. The model of this embodiment is built in the Keras deep learning library, and the programming language is Python.
[0121] Any matters not described in the present invention are applicable to the prior art.
Claims
1. A contactor remaining life prediction method based on performance degradation analysis and deep learning, characterized in that The method comprises the following steps: The first step is to conduct a full life test on the AC contactor to obtain the contact voltage, contact current and coil current; extract seven characteristic quantities including arcing time, arcing energy, contact resistance, contact voltage drop, release voltage, cumulative arcing energy and pull-in time; The second step is to screen the characteristic quantities to obtain the key characteristic quantities, which include contact voltage drop, release voltage, contact resistance, accumulated arc energy and the first principal component; The third step is to identify the performance inflection point of the AC contactor, and divide the entire degradation process of the AC contactor into occasional failure period and loss failure period according to the performance inflection point; Step 4: Construct a prediction model based on the dual attention mechanism. The prediction model uses the long short-term memory network as the backbone network. Use the pre-trained prediction model to predict the remaining life of the AC contactor based on the data of the wear and tear failure period. The dual attention mechanism includes the feature attention mechanism and the time step attention mechanism. Before the key feature quantities are input into the long short-term memory network, the feature attention mechanism is used to assign weights to each key feature quantity; assuming that the input vector of the prediction model at time t is β = [β1, β2, …, β K ], K represents the number of key features, then the feature attention weight q of the kth key feature is calculated by formula (1): k : q k =tanh(W1*β k +b1),k=1,2,…,K (1) Among them, W1 and b1 are the weight matrix and bias vector of the characteristic attention mechanism, respectively, and tanh is the activation function; The feature attention weight of the kth key feature quantity is normalized by the softmax function of formula (2) to obtain the feature attention weight coefficient a k ; The feature attention weight coefficients of all key feature quantities constitute the feature attention weight vector A = [a1, a2, ..., a K ], and the sum of the feature attention weight coefficients of all key feature quantities is 1; According to formula (3), multiply the input vector β and the corresponding elements of the characteristic attention weight vector A to obtain the output O of the characteristic attention layer, O=[O1,O2,…,O K ]; After the LSTM network, each time step of the LSTM network is given a weight according to the time step attention mechanism; assuming that the time step vector output by the LSTM network is γ = [γ1,γ2,…,γ J ] T , J represents the number of time steps, then the time attention weight p of the jth time step is calculated by formula (4) j ; p j =tanh(W2*γ j +b2),j=1,2,…,J (4) In the formula, W2 and b2 are the weight matrix and bias vector of the time step attention mechanism, respectively; According to equation (5), the time attention weight of each time step is normalized to obtain the time attention weight coefficient of each time step, d j The time attention weight coefficient is the jth time step; the time attention weight coefficients of all time steps constitute the time attention weight vector D=[d1,d2,…,d J ], the sum of the time attention weight coefficients for all time steps is 1; According to equation (6), the time step vector γ output by the LSTM is multiplied by the corresponding element of the time attention weight vector D to obtain the output h of the time attention layer, h=[h1,h2,…,h J ]; Finally, the output of the time attention layer is passed through a fully connected layer to obtain the output of the LSTM prediction model based on the dual attention mechanism, that is, the prediction result.
2. The contactor remaining life prediction method based on performance degradation analysis and deep learning according to claim 1, characterized in that, In the third step, the multi-scale permutation entropy of the contact voltage sequence is calculated according to the improved multi-scale permutation entropy algorithm, and the point where the mean of the multi-scale permutation entropy is greater than the inflection point recognition threshold is regarded as the performance inflection point, and the inflection point recognition threshold is 0.
45.
3. The contactor remaining life prediction method based on performance degradation analysis and deep learning according to claim 1, characterized in that, In the second step, first, the principal component analysis method is used to reduce the dimension of the seven feature quantities to obtain seven principal components; the cumulative contribution rate of the first three principal components is greater than 85%, so the first three principal components are retained, and these three principal components and the original seven feature quantities together constitute the full information feature set; Secondly, the XGBoost algorithm is used to calculate the importance score of each feature quantity and the remaining life of the AC contactor; the feature quantities with smaller importance scores are discarded; finally, the Spearman rank correlation coefficient method is used to measure the correlation between the remaining feature quantities, and one of the two feature quantities with larger correlation is deleted. The remaining feature quantity is the key feature quantity.
