Piezoresistor life prediction method and device, electronic equipment and storage medium
Through the SVR model optimized by PSO and the data training set optimized by the PCA algorithm, the accurate prediction of the life of the varistor is achieved, solving the problem of inaccurate life prediction in the existing technology, and improving the operation and maintenance efficiency of the surge protector. Security.
Patent Information
- Application Number
- CN202411109906.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-14
- Publication Date
- 2024-09-10
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
The existing varistor life prediction method cannot accurately predict the life of the varistor, which affects the operation, maintenance and guarantee of the surge protector.
Using the SVR model optimized by PSO, combined with the varistor test data training set optimized by the PCA algorithm, the life of the varistor is predicted by inputting the normalized data to be tested into the life prediction model.
It improves the accuracy of life prediction, enhances the safety of use of varistor, and reduces manpower and material costs.
Smart Images

Figure CN118627404A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of equipment testing, and in particular to a method, device, electronic equipment and storage medium for predicting the life of a varistor. Background Art
[0002] Surge protection devices (SPDs) can suppress lightning surges and transient overvoltages on the line, effectively absorb, disperse or suppress lightning electromagnetic pulses, reduce damage to internal equipment, and thus ensure the safety and stable operation of the equipment. In practical applications, voltage-limiting SPDs (usually using varistors) are one of the most common and most commonly used types. Voltage-limiting SPDs have the characteristics of fast response and rapid overvoltage guidance, can effectively protect electrical equipment from damage caused by surge voltages, and are easy to install and maintain.
[0003] Accurately predicting the remaining service life of an SPD is of great significance to the operation and maintenance of the SPD, and can greatly reduce manpower and material resources. The internal protection device of a voltage-limiting SPD is generally a zinc oxide (ZnO) varistor. The SPD gradually deteriorates after being subjected to surges for a long time. The fundamental reason is that the internal varistor device has aged. As a key protection component in an SPD, the study of the degradation of the ZnO varistor is the key to SPD status assessment and life prediction. However, the existing varistor life prediction method cannot accurately predict the life of the varistor. Summary of the invention
[0004] In view of this, it is necessary to provide a method, device, electronic device and storage medium for predicting the life of a varistor to solve the problem that the existing method for predicting the life of a varistor cannot accurately predict the life of a varistor.
[0005] In order to solve the above problems, the present invention provides a method for predicting the life of a varistor, comprising: Inputting the normalized test data of the varistor to be tested into the life prediction model; Based on the life prediction model and the normalized test data of the varistor to be tested, the life of the varistor to be tested is predicted to obtain a life prediction result of the varistor to be tested; Among them, the life prediction model is an SVR model optimized by PSO, and the life prediction model is obtained by training based on the varistor test data training set optimized by the PCA algorithm.
[0006] In a possible implementation, the varistor test data training set optimized by the PCA algorithm is determined based on the following steps: Standardizing the first data matrix to obtain a second data matrix, wherein the first data matrix is a data matrix corresponding to the varistor test data training set, the number of rows of the first data matrix corresponds to the number of data in the varistor test data training set, and the number of columns of the first data matrix corresponds to the number of test data variables in the varistor test data training set; constructing a correlation coefficient matrix based on the second data matrix, and determining a contribution rate of each principal component based on an eigenvalue of the correlation coefficient matrix; Based on the column vector corresponding to the principal component with the highest contribution rate and the first data matrix, a varistor test data training set optimized by the PCA algorithm is determined.
[0007] In a possible implementation, the training of the life prediction model includes: Normalizing the first data matrix to obtain a third data matrix, and normalizing the column vectors corresponding to the principal component with the highest contribution rate to obtain a fourth data matrix; The third data matrix is used as the input of the life prediction model, and the fourth data matrix is used as the output of the life prediction model to train the life prediction model.
[0008] In a possible implementation, the correlation coefficient matrix is determined based on the following formula:
[0009] in, Indicates the first Line The elements of the column, Indicates the first data matrix Line The elements of the column, Indicates the first data matrix The average value of the column elements, Indicates the first data matrix The variance of the column elements, is the number of rows of the first data matrix, represents the correlation coefficient matrix, represents the transpose of the second data matrix, represents the second data matrix.
[0010] In a possible implementation, the contribution rate of each principal component is determined based on the following formula:
[0011] in, Indicates The contribution rate of the principal components, The correlation coefficient matrix is eigenvalues, is the order of the correlation coefficient matrix.
[0012] In a possible implementation, the fitness function used in the life prediction model training is a mean square error function, and the kernel function used is a radial basis kernel function.
[0013] In a possible implementation, the test data of the varistor to be tested and the test data variables in the varistor test data training set include: Varistor voltage, nonlinear coefficient, leakage current, shunt resistance and shunt capacitance.
[0014] The present invention also provides a device for predicting the life of a varistor, comprising: An input module, used for inputting normalized test data of the varistor to be tested into the life prediction model; A prediction module, used for predicting the life of the varistor to be tested based on the life prediction model and the normalized test data of the varistor to be tested, and obtaining a life prediction result of the varistor to be tested; Among them, the life prediction model is an SVR model optimized by PSO, and the life prediction model is trained based on the varistor test data training set optimized by the PCA algorithm.
[0015] The present invention also provides an electronic device, including a memory and a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the program, the life prediction method of the varistor as described above is implemented.
[0016] The present invention also provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the life prediction method of a varistor as described above is implemented.
[0017] The beneficial effects of the present invention are as follows: the life prediction method, device, electronic device and storage medium of the varistor provided by the present invention first normalize the test data of the varistor to be tested, and then use it as the input of the life prediction model to ensure the consistency of the model input data, and then use the PSO-SVR model as the life prediction model, and use the varistor test data training set optimized by the PCA algorithm to train the life prediction model, so as to ensure the accuracy of the model prediction, and finally predict the life of the varistor through the life prediction model, while realizing the life prediction of the varistor, improving the accuracy of the life prediction, thereby improving the safety of the use of the varistor. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] Figure 1 A schematic flow chart of an embodiment of a method for predicting the life of a varistor provided by the present invention; Figure 2 A flow chart of an embodiment of a PSO-SVR algorithm training process provided by the present invention; Figure 3 A schematic structural diagram of an embodiment of a device for predicting the life of a varistor provided by the present invention; Figure 4 A schematic structural diagram of an electronic device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0019] The preferred embodiments of the present invention are described in detail below in conjunction with the accompanying drawings, wherein the accompanying drawings constitute a part of this application and are used together with the embodiments of the present invention to illustrate the principles of the present invention, but are not used to limit the scope of the present invention.
[0020] In the description of the present invention, the terms "first" and "second" are used for descriptive purposes only and cannot be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In addition, the meaning of "plurality" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined.
[0021] In the description of the present invention, reference to an "embodiment" means that a particular feature, structure, or characteristic described in conjunction with the embodiment may be included in at least one embodiment of the present invention. The appearance of the phrase in various places in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive of other embodiments. It is explicitly and implicitly understood by those skilled in the art that the described embodiments may be combined with other embodiments.
[0022] SPD can suppress lightning surges and transient overvoltages on the line, effectively absorb, disperse or suppress lightning electromagnetic pulses, reduce damage to internal equipment, and thus ensure the safety and stable operation of the equipment. In practical applications, voltage-limiting SPD (usually using varistors) is one of the most common and most commonly used types. Voltage-limiting SPD has the characteristics of fast response and rapid overvoltage guidance, can effectively protect electrical equipment from damage by surge voltage, and is easy to install and maintain.
[0023] Accurately predicting the remaining service life of an SPD is of great significance to the operation and maintenance of the SPD, and can greatly reduce manpower and material resources. The internal protection device of a voltage-limiting SPD is generally a zinc oxide (ZnO) varistor. The SPD gradually deteriorates after being subjected to surges for a long time. The fundamental reason is that the internal varistor device has aged. As a key protection component in an SPD, the study of the degradation of the ZnO varistor is the key to SPD status assessment and life prediction. However, the existing varistor life prediction method cannot accurately predict the life of the varistor.
[0024] In order to more accurately predict the life of a varistor, the present invention provides a method for predicting the life of a varistor.
[0025] The specific embodiments are described in detail below: A specific embodiment of the present invention discloses a method for predicting the life of a varistor, combining Figure 1 Come and see, Figure 1 The flowchart of an embodiment of a method for predicting the life of a varistor provided by the present invention includes step S101 and step S102, wherein: In step S101, the normalized test data of the varistor to be tested is input into the life prediction model; In step S102, based on the life prediction model and the normalized test data of the varistor to be tested, the life of the varistor to be tested is predicted to obtain a life prediction result of the varistor to be tested; Among them, the life prediction model is an SVR model optimized by PSO, and the life prediction model is obtained by training based on the varistor test data training set optimized by the PCA algorithm.
[0026] During implementation, the test data of the varistor to be tested (such as various parameters after the varistor is connected to the circuit) can be first obtained, and then the test data of the varistor to be tested can be normalized. There can be many normalization methods, such as linear normalization, maximum and minimum normalization, etc. The present invention does not limit the specific method of normalization.
[0027] After the normalization of the test data of the varistor to be tested is completed, the normalized test data of the varistor to be tested can be input into the life prediction model as a model input.
[0028] The life of the varistor to be tested can then be predicted using the life prediction model to obtain a life prediction result of the varistor to be tested. The larger the value of the life prediction result of the varistor to be tested, the longer its service life is and the shorter its remaining life is.
[0029] The life prediction model can be a support vector regression (SVR) model optimized by a particle swarm optimization algorithm (PSO), that is, a PSO-SVR model. The training set used for training the life prediction model is a training set of varistor test data that is optimized by a principal component analysis (PCA) algorithm.
[0030] The varistor life prediction method provided by the present invention can be applied to surge protector detection scenarios, and can also be applied to other varistor-based component detection scenarios, and the present invention does not make specific limitations on this.
[0031] Compared with the prior art, the life prediction method of the varistor provided in this embodiment first normalizes the test data of the varistor to be tested, and then uses it as the input of the life prediction model to ensure the consistency of the model input data, and then uses the PSO-SVR model as the life prediction model, and uses the varistor test data training set optimized by the PCA algorithm to train the life prediction model, so as to ensure the accuracy of the model prediction, and finally predicts the life of the varistor through the life prediction model. While realizing the life prediction of the varistor, the accuracy of the life prediction is improved, thereby improving the safety of the use of the varistor.
[0032] Exemplarily, the varistor test data training set optimized by the PCA algorithm is determined based on the following steps: Standardizing the first data matrix to obtain a second data matrix, wherein the first data matrix is a data matrix corresponding to the varistor test data training set, the number of rows of the first data matrix corresponds to the number of data in the varistor test data training set, and the number of columns of the first data matrix corresponds to the number of test data variables in the varistor test data training set; constructing a correlation coefficient matrix based on the second data matrix, and determining a contribution rate of each principal component based on an eigenvalue of the correlation coefficient matrix; Based on the column vector corresponding to the principal component with the highest contribution rate and the first data matrix, a varistor test data training set optimized by the PCA algorithm is determined.
[0033] Specifically, when obtaining the varistor test data training set optimized by the PCA algorithm, the data matrix corresponding to the varistor test data training set (ie, the first data matrix) can first be standardized to obtain the second data matrix.
[0034] After obtaining the second data matrix, a correlation coefficient matrix can be constructed according to the second data matrix, and then the contribution rate of each principal component in the correlation coefficient matrix can be determined according to the eigenvalues of the correlation coefficient matrix.
[0035] Finally, the varistor test data training set optimized by the PCA algorithm can be determined based on the column vector corresponding to the principal component with the highest contribution rate and the first data matrix. For example, the first data matrix and the column vector corresponding to the principal component with the highest contribution rate can be added to obtain the varistor test data training set optimized by the PCA algorithm.
[0036] Exemplarily, the training of the life prediction model includes: Normalizing the first data matrix to obtain a third data matrix, and normalizing the column vectors corresponding to the principal component with the highest contribution rate to obtain a fourth data matrix; The third data matrix is used as the input of the life prediction model, and the fourth data matrix is used as the output of the life prediction model to train the life prediction model.
[0037] Specifically, when training the life prediction model, the first data matrix can be normalized to obtain a third data matrix, and then the third data matrix is used as the input of the life prediction model. At the same time, the column vector corresponding to the principal component with the highest contribution rate can be normalized to obtain a fourth data matrix, and the fourth data matrix is used as the output of the life prediction model.
[0038] Exemplarily, the correlation coefficient matrix is determined based on the following formula:
[0039] in, Indicates the first Line The elements of the column, Indicates the first data matrix Line The elements of the column, Indicates the first data matrix The average value of the column elements, Indicates the first data matrix The variance of the column elements, is the number of rows of the first data matrix, represents the correlation coefficient matrix, represents the transpose of the second data matrix, represents the second data matrix.
[0040] Specifically, the correlation coefficient matrix can be determined according to the above formula.
[0041] Exemplarily, the contribution rate of each principal component is determined based on the following formula:
[0042] in, Indicates The contribution rate of the principal components, The correlation coefficient matrix is eigenvalues, is the order of the correlation coefficient matrix.
[0043] Specifically, the contribution rate of each principal component can be determined according to the above formula.
[0044] Exemplarily, the fitness function used in the life prediction model training is a mean square error function, and the kernel function used is a radial basis kernel function.
[0045] Specifically, the fitness function used in the life prediction model during training may be a mean square error function, that is, when determining the parameters of the SVR algorithm according to the PSO algorithm, the fitness function used may be a mean square error function. In addition, the kernel function used by the SVR algorithm may be a radial basis kernel function (RBF).
[0046] Exemplarily, the test data of the varistor to be tested and the test data variables in the varistor test data training set include: Varistor voltage, nonlinear coefficient, leakage current, shunt resistance and shunt capacitance.
[0047] Specifically, the test data of the varistor to be tested and the test data variables in the varistor test data training set may include varistor voltage, nonlinear coefficient, leakage current, parallel resistance and parallel capacitance. The above five test data variables are test data variables that are determined based on experimental results and have a strong correlation with the life of the varistor.
[0048] The technical solution of the present invention is better described below with reference to a specific embodiment: Combination Figure 2 Come and see, Figure 2 This is a flow chart of an embodiment of the PSO-SVR algorithm training process provided by the present invention. The specific training process of the PSO-SVR algorithm is as follows: 1. After data segmentation of the processed ZnO varistor data set, the training set is used as the input sample and then normalized.
[0049] 2. Set the SVR parameters and their value ranges.
[0050] 3. PSO initializes particle population and parameter settings (sets particle population size, number of iterations, learning factor and inertia weight).
[0051] 4. Construct a fitness function based on the mean square error.
[0052] 5. Train the SVR model according to the parameters set in steps 2 and 3. Use the fitness function to evaluate the current particle position to determine its performance in the solution space. Then set the individual extremum of each particle to the current position, and update the global extremum to the currently known optimal solution. Finally, select the particle with the best performance in the solution space according to the fitness value, and use its individual extremum as the current global extremum.
[0053] 6. Calculate the position and speed at the next moment based on the current position and speed, and update the state of the particle.
[0054] 7. Calculate the fitness of each particle after each iteration and compare it with the individual extreme value: After each iteration, calculate the fitness of each particle (according to the fitness function) and compare it with the individual extreme value recorded for that particle. If the calculated value is better, use it to replace the individual extreme value.
[0055] 8. Compare individual extreme values with global extreme values: In each iteration, compare the individual extreme value of the current particle with the group extreme value. If the individual extreme value of the current particle is better, its individual extreme value is used as the group extreme value, otherwise the group extreme value remains unchanged.
[0056] 9. After each iteration, determine whether the end condition is met. If the end condition is met, output the optimal parameter combination and the best SVR prediction model, and the iteration ends. Otherwise, return to step 6 to continue iterating until the judgment condition is met.
[0057] The present invention also uses three algorithms, SVR, back propagation (BP) neural network and PSO-SVR, to train on the training set, then predict on the test set, and then compare the results. The corresponding mean square error (MSE), mean absolute error (MAE), root mean square error (RMSE) and goodness of fit of each prediction model The values are shown in Table 1. It can be seen from the table that the prediction accuracy of the PSO-SVR model is better than that of the SVR and BP neural network models, with the MSE reduced by 0.00301 and 0.00181, MAE reduced by 0.03149 and 0.01278, and RMSE reduced by 0.02627 and 0.01660, respectively. The prediction error of the PSO-SVR prediction model is significantly smaller than that of other algorithms. And the value of the R2 is closer to 1, indicating that the algorithm has excellent performance.
[0058] Table 1: Comparison of prediction errors of different algorithms
[0059] The embodiment of the present invention also provides a device for predicting the life of a varistor, Figure 3 Come and see, Figure 3 The structure diagram of an embodiment of a life prediction device for a varistor provided by the present invention is shown in FIG. The life prediction device 300 for a varistor includes: An input module 301 is used to input the normalized test data of the varistor to be tested into the life prediction model; A prediction module 302 is used to predict the life of the varistor to be tested based on the life prediction model and the normalized test data of the varistor to be tested, and obtain a life prediction result of the varistor to be tested; Among them, the life prediction model is an SVR model optimized by PSO, and the life prediction model is trained based on the varistor test data training set optimized by the PCA algorithm.
[0060] The specific implementation methods of each module of the varistor life prediction device can refer to the description of the above-mentioned varistor life prediction method, and have similar beneficial effects, which will not be repeated here.
[0061] It should be noted that the life prediction device of the varistor can be set on the power system monitoring equipment, and can also be set on the varistor testing equipment, and the present invention does not make specific limitations on this.
[0062] The embodiment of the present invention further provides an electronic device, Figure 4 Come and see, Figure 4 This is a structural schematic diagram of an embodiment of an electronic device provided by the present invention. The electronic device 400 includes a processor 401, a memory 402, and a computer program stored in the memory 402 and executable on the processor 401. When the processor 401 executes the program, the life prediction method of the varistor as described above is implemented.
[0063] As a preferred embodiment, the electronic device 400 further includes a display 403 for displaying that the processor 401 executes the varistor life prediction method as described above.
[0064] Exemplarily, the computer program may be divided into one or more modules / units, one or more modules / units are stored in the memory 402, and executed by the processor 401 to complete the present invention. One or more modules / units may be a series of computer program instruction segments capable of completing specific functions, and the instruction segments are used to describe the execution process of the computer program in the electronic device 400. For example, the computer program may be divided into the input module 301 and the prediction module 302 in the above embodiment, and the specific functions of each module are as described above, and will not be repeated here.
[0065] The electronic device 400 may be a desktop computer, a notebook, a PDA or a smart phone with an adjustable camera module.
[0066] Among them, the processor 401 may be an integrated circuit chip with signal processing capabilities. The above-mentioned processor 401 may be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it may also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present invention can be implemented or executed. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.
[0067] The memory 402 may be, but is not limited to, a random access memory (RAM), a read only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electric erasable programmable read-only memory (EEPROM), etc. The memory 402 is used to store programs, and the processor 401 executes the program after receiving the execution instruction. The process definition method disclosed in any of the embodiments of the present invention may be applied to the processor 401 or implemented by the processor 401.
[0068] The display 403 may be an LCD display screen or an LED display screen, for example, a display screen on a mobile phone.
[0069] Understandably, Figure 4 The structure shown is only a schematic diagram of the structure of the electronic device 400. The electronic device 400 may also include Figure 4 More or fewer components as shown. Figure 4 Each component shown in the figure can be implemented by hardware, software or a combination thereof.
[0070] The electronic device provided according to the above-mentioned embodiment of the present invention can be implemented with reference to the specific description of the life prediction method of the varistor according to the present invention, and has similar beneficial effects as the life prediction method of the varistor as described above, which will not be repeated here.
[0071] An embodiment of the present invention further provides a computer-readable storage medium having a computer program stored thereon. When the program is executed by a processor, the life prediction method of a varistor as described above is implemented.
[0072] Generally speaking, the computer instructions for implementing the method of the present invention can be carried by any combination of one or more computer-readable storage media. Non-transitory computer-readable storage media can include any computer-readable media except for the signal itself that is temporarily propagating.
[0073] Computer-readable storage media may be, for example, but not limited to, electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatuses, or devices, or any combination thereof. More specific examples of computer-readable storage media (a non-exhaustive list) include: an electrical connection having one or more conductors, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In this document, a computer-readable storage medium may be any tangible medium that contains or stores a program that may be used by or in conjunction with an instruction execution system, apparatus, or device.
[0074] Computer program codes for performing the operations of the present invention may be written in one or more programming languages or a combination thereof, including object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages, in particular, Python suitable for neural network computing and platform frameworks based on TensorFlow, PyTorch, etc. may be used. The program code may be executed entirely on the user's computer, partially on the user's computer, as an independent software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0075] Those skilled in the art will appreciate that all or part of the processes of the above-mentioned embodiments can be implemented by instructing related hardware through a computer program, and the program can be stored in a computer-readable storage medium, wherein the computer-readable storage medium is a disk, an optical disk, a read-only storage memory, or a random access memory, etc.
[0076] The present invention discloses a life prediction method, device, electronic device and storage medium for a varistor. Firstly, the test data of the varistor to be tested is normalized and then used as the input of a life prediction model to ensure the consistency of the model input data. Then, a PSO-SVR model is used as the life prediction model, and the life prediction model is trained using a training set of varistor test data optimized by a PCA algorithm, thereby ensuring the accuracy of the model prediction. Finally, the life prediction model is used to predict the life of the varistor. While realizing the life prediction of the varistor, the accuracy of the life prediction is improved, thereby improving the safety of the use of the varistor.
[0077] The above description is only a preferred specific implementation manner of the present invention, but the protection scope of the present invention is not limited thereto. Any changes or substitutions that can be easily conceived by any technician familiar with the technical field within the technical scope disclosed by the present invention should be covered within the protection scope of the present invention.
Claims
1. A method for predicting the life of a varistor, characterized in that: include: Inputting the normalized test data of the varistor to be tested into the life prediction model; Based on the life prediction model and the normalized test data of the varistor to be tested, the life of the varistor to be tested is predicted to obtain a life prediction result of the varistor to be tested; Among them, the life prediction model is an SVR model optimized by PSO, and the life prediction model is trained based on the varistor test data training set optimized by the PCA algorithm.
2. The method for predicting the life of a varistor according to claim 1, characterized in that: The varistor test data training set optimized by the PCA algorithm is determined based on the following steps: Standardizing the first data matrix to obtain a second data matrix, wherein the first data matrix is a data matrix corresponding to the varistor test data training set, the number of rows of the first data matrix corresponds to the number of data in the varistor test data training set, and the number of columns of the first data matrix corresponds to the number of test data variables in the varistor test data training set; constructing a correlation coefficient matrix based on the second data matrix, and determining a contribution rate of each principal component based on an eigenvalue of the correlation coefficient matrix; Based on the column vector corresponding to the principal component with the highest contribution rate and the first data matrix, a varistor test data training set optimized by the PCA algorithm is determined.
3. The method for predicting the life of a varistor according to claim 2, characterized in that: The training of the life prediction model includes: Normalizing the first data matrix to obtain a third data matrix, and normalizing the column vectors corresponding to the principal component with the highest contribution rate to obtain a fourth data matrix; The third data matrix is used as the input of the life prediction model, and the fourth data matrix is used as the output of the life prediction model to train the life prediction model.
4. The method for predicting the life of a varistor according to claim 2, characterized in that: The correlation coefficient matrix is determined based on the following formula: in, Indicates the first Line The elements of the column, Indicates the first data matrix Line The elements of the column, Indicates the first data matrix The average value of the column elements, Indicates the first data matrix The variance of the column elements, is the number of rows of the first data matrix, represents the correlation coefficient matrix, represents the transpose of the second data matrix, represents the second data matrix.
5. The method for predicting the life of a varistor according to claim 2, characterized in that: The contribution rate of each principal component is determined based on the following formula: in, Indicates The contribution rate of the principal components, The correlation coefficient matrix is eigenvalues, is the order of the correlation coefficient matrix.
6. The method for predicting the life of a varistor according to any one of claims 1 to 5, characterized in that: The fitness function used in the life prediction model training is the mean square error function, and the kernel function used is the radial basis kernel function.
7. The method for predicting the life of a varistor according to any one of claims 1 to 5, characterized in that: The test data of the varistor to be tested and the test data variables in the varistor test data training set include: Varistor voltage, nonlinear coefficient, leakage current, shunt resistance and shunt capacitance.
8. A life prediction device for a varistor, characterized in that: include: An input module, used for inputting normalized test data of the varistor to be tested into the life prediction model; A prediction module, used for predicting the life of the varistor to be tested based on the life prediction model and the normalized test data of the varistor to be tested, and obtaining a life prediction result of the varistor to be tested; Among them, the life prediction model is an SVR model optimized by PSO, and the life prediction model is trained based on the varistor test data training set optimized by the PCA algorithm.
9. An electronic device, characterized in that: It comprises a memory and a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the program, the life prediction method of the varistor according to any one of claims 1 to 7 is implemented.
10. A computer-readable storage medium, characterized in that: A computer program is stored thereon, and when the computer program is executed by a processor, the method for predicting the life of a varistor according to any one of claims 1 to 7 is implemented.
Citation Information
Patent Citations
PSO-SVR-based bearing residual service life prediction method
CN112699502A
Fuel cell residual life prediction method and system, medium and terminal
CN116629451A
PCA-VMD-based water-turbine generator set feature extraction and fault early warning method
CN117131368A
Method and system for predicting height of confined water rising zone
US20240135137A1
