Fault prediction model training and prediction method, device, electronic equipment and medium
By training and selecting the transformer fault prediction model with the smallest prediction error, the problem of the lack of applicable transformer oil chromatographic data fault prediction in the existing technology is solved, and accurate prediction and fault prediction of the dissolved gas content in the transformer oil are achieved, ensuring that the power grid safe operation.
Patent Information
- Application Number
- CN202111108055.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-09-22
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2041-09-22
AI Technical Summary
The existing technology lacks a fault prediction method suitable for internal oil chromatography data of large power transformers, which makes it difficult to predict potential transformer faults in a timely manner and affects the safe operation of the power grid.
By obtaining the historical analysis data of dissolved gas in the database, training multiple candidate models and selecting the model with the smallest prediction error as the transformer fault prediction model, accurate prediction of the dissolved gas content in the transformer oil is achieved, thereby predicting potential faults.
It achieves accurate prediction of dissolved gas content in transformer oil, timely prediction of potential faults, and ensures the safe and effective operation of the power grid.
Smart Images

Figure CN113849540B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of electric power technology, and in particular to a fault prediction model training and prediction method, device, electronic device and medium. Background Art
[0002] At present, the insulation structure of most large power transformers is composed of oil-paper or oil and paperboard. When a thermal fault, discharge fault, or oil or paper aging problem occurs inside the transformer, various dissolved gases will be generated inside the transformer. The components and content of the dissolved gases in the oil can be used to characterize the internal insulation fault of the oil-immersed power transformer.
[0003] Although fuzzy mathematics, neural networks, Markov models, etc. have been applied to the field of equipment fault prediction, there are few studies on transformer fault prediction at home and abroad, and there is a lack of prediction methods applicable to a wider range of transformer internal oil chromatographic data. Summary of the invention
[0004] The embodiments of the present application provide a fault prediction model training and prediction method, device, electronic device and medium, which can accurately predict the content of dissolved gas in transformer oil, so as to timely predict potential faults of the transformer and ensure the safe and efficient operation of the power grid.
[0005] In one embodiment, the present application provides a fault prediction model training method, the method comprising:
[0006] Obtain historical analysis data of each dissolved gas stored in the database;
[0007] Training a preset model according to the historical analysis data to obtain at least two candidate models;
[0008] The prediction errors of at least two candidate models are determined, and the candidate model with the smallest prediction error is selected as the transformer fault prediction model.
[0009] In another embodiment, the present application provides a fault prediction method, the method comprising:
[0010] Acquire query data input by a user; wherein the query data includes a transformer name, a predicted gas name, and a predicted time;
[0011] Inputting the query data into a transformer fault prediction model to obtain a prediction result of the transformer fault;
[0012] The transformer fault prediction model is obtained by training based on the training method of the transformer fault prediction model described in any of the above embodiments.
[0013] In one embodiment, the present application provides a fault prediction model training device, characterized in that the device includes:
[0014] A data acquisition module, used to acquire historical analysis data of each dissolved gas stored in a database;
[0015] A model training module, used to train a preset model according to the historical analysis data to obtain at least two candidate models;
[0016] The model determination module is used to determine the prediction errors of at least two candidate models and select the candidate model with the smallest prediction error as the transformer fault prediction model.
[0017] In another embodiment, the present application provides a fault prediction device, characterized in that the device comprises:
[0018] A query data acquisition module, used to acquire query data input by a user; wherein the query data includes the name of the transformer, the name of the predicted gas, and the predicted time;
[0019] A fault prediction module, used for inputting the query data into a transformer fault prediction model to obtain a prediction result of the transformer fault;
[0020] The transformer fault prediction model is obtained by training based on the training method of the transformer fault prediction model described in any of the above embodiments.
[0021] In one embodiment, the present application provides an electronic device, characterized in that the electronic device includes:
[0022] one or more processors;
[0023] A memory for storing one or more programs;
[0024] When the one or more programs are executed by the one or more processors, the one or more processors implement the fault prediction model training method as described in any embodiment of the present application, or implement the fault prediction method as described in any embodiment of the present application.
[0025] In one embodiment, the present application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the fault prediction model training method described in any embodiment of the present application, or implements the fault prediction method described in any embodiment of the present application.
[0026] The embodiment of the present application obtains a transformer fault prediction model by the following method: obtaining historical analysis data of each dissolved gas stored in a database; training a preset model according to the historical analysis data to obtain at least two candidate models; determining the prediction errors of at least two candidate models, and selecting the candidate model with the smallest prediction error as the transformer fault prediction model. The embodiment of the present application trains multiple models, compares the prediction errors of multiple models, and selects a model with the smallest prediction error as the preferred model, so as to achieve more accurate prediction of the content of dissolved gas in transformer oil, thereby timely predicting potential transformer faults and ensuring safe and efficient operation of the power grid. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] Figure 1 This is a flow chart of a fault prediction model training method provided by an embodiment of the present application;
[0028] Figure 2 is a flow chart of a fault prediction model training method provided by another embodiment of the present application;
[0029] Figure 3 is a flow chart of a fault prediction method provided by another embodiment of the present application;
[0030] Figure 4 This is a flow chart of a fault prediction model training and prediction method provided by another embodiment of the present application;
[0031] Figure 5 This is a structural block diagram of a fault prediction model training device provided by an embodiment of the present application;
[0032] Figure 6 This is a structural block diagram of a fault prediction device provided by an embodiment of the present application;
[0033] Figure 7 It is a structural schematic diagram of an electronic device provided by an embodiment of the present application. DETAILED DESCRIPTION
[0034] The present application is further described in detail in the embodiments in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the present application, rather than to limit the present application. It is also necessary to explain that, for ease of description, only the parts related to the present application, rather than all structures, are shown in the accompanying drawings.
[0035] Figure 1This is a flow chart of a fault prediction model training method provided by an embodiment of the present application. This embodiment can be applied to the scenario of predicting the content of dissolved gas in a transformer. The method can be executed by a fault prediction model training device provided by an embodiment of the present application, which can be implemented by software and / or hardware and can be integrated into an electronic device.
[0036] like Figure 1 As shown, the fault prediction model training method provided in the embodiment of the present application may include the following steps:
[0037] S110, obtaining historical analysis data of each dissolved gas stored in a database.
[0038] In the embodiment of the present application, the historical analysis data refers to the data obtained by analyzing the dissolved gas in the transformer oil at various times in history, and the historical analysis data may include the components and content of the dissolved gas. The components and content of the dissolved gas in the transformer oil may be analyzed by chromatography.
[0039] S120: Training a preset model according to the historical analysis data to obtain at least two candidate models.
[0040] Among them, the preset model is used to predict the content of dissolved gas in transformer oil.
[0041] In the embodiment of the present application, the prediction model includes at least two models. The preset model can be a recurrent neural network model, a convolutional neural network model, a support vector machine, etc.
[0042] In the embodiment of the present application, the preset model is an initial model that has not been trained, so the parameters in the preset model are initial parameters. In order to minimize the prediction error of the model, the model needs to be trained according to the historical analysis data, and the training process is the process of adjusting the parameters of the model. When the adjusted parameters can minimize the prediction error of the model, the training ends, and the candidate model can be obtained at this time.
[0043] S130, determining prediction errors of at least two candidate models, and selecting the candidate model with the smallest prediction error as the transformer fault prediction model.
[0044] The prediction error is used to evaluate the prediction performance of the candidate model. The smaller the prediction error, the better the prediction performance of the model. In the embodiment of the present application, the prediction error can be at least one of mean square error, mean absolute error, and mean absolute percentage error.
[0045] In the embodiment of the present application, the training of the preset model according to the historical analysis data of each dissolved gas includes:
[0046] The historical analysis data of each dissolved gas is divided into a training set and a test set;
[0047] Using the training set to train the preset model, obtaining at least two candidate models;
[0048] Accordingly, the prediction errors of at least two candidate models are determined, including:
[0049] The at least two candidate models are tested using the test set to obtain prediction errors of the at least two candidate models.
[0050] The historical analysis data of each dissolved gas can be divided into a training set and a test set according to actual needs. For example, if there are ten historical analysis data of dissolved gas carbon dioxide, the first 60% of the data can constitute a training set, and the last 40% of the data can constitute a test set.
[0051] The training set is used to adjust the parameters of the preset model to minimize the prediction error of the preset model. When the prediction error of the preset model is minimized, the candidate model is obtained.
[0052] The test set is used to test the prediction performance of the candidate model, and the prediction performance of the candidate model can be characterized by the prediction error. The historical analysis data in the test set is input into the candidate model, and the candidate model makes predictions and calculates the prediction error. The candidate model with the smallest prediction error is used as the transformer fault prediction model of the embodiment of the present application.
[0053] The embodiment of the present application obtains a transformer fault prediction model by the following method: obtaining historical analysis data of each dissolved gas stored in a database; training a preset model according to the historical analysis data to obtain at least two candidate models; determining the prediction errors of at least two candidate models, and selecting the candidate model with the smallest prediction error as the transformer fault prediction model. The embodiment of the present application trains multiple models, compares the prediction errors of multiple models, and selects a model with the smallest prediction error as the preferred model, so as to achieve more accurate prediction of the content of dissolved gas in transformer oil, thereby timely predicting potential transformer faults and ensuring safe and efficient operation of the power grid.
[0054] Figure 2It is a flow chart of a fault prediction model training method provided by another embodiment of the present application. This embodiment is optimized based on the above embodiment, and is specifically optimized as follows: the historical analysis data of each dissolved gas stored in the database is obtained, including: in response to a user's query data operation, a preset number of historical analysis data with a generation time closest to the current time is obtained from the database to form a historical analysis data sequence of each dissolved gas; accordingly, the preset model is trained according to the historical analysis data, including: the preset model is trained according to the historical analysis data sequence of each dissolved gas to obtain at least two candidate models.
[0055] like Figure 2 As shown, the fault prediction model training method provided in the embodiment of the present application may include the following steps:
[0056] S210. In response to a query data input operation by a user, a preset number of historical analysis data with a generation time closest to the current time are acquired from the database to form a historical analysis data sequence of each dissolved gas.
[0057] The user's query data input operation refers to inputting the name of the dissolved gas to be predicted into the electronic device when the user needs to use the fault prediction model to predict a certain dissolved gas in the transformer oil. In the embodiment of the present application, after each time the name of the dissolved gas input by the user is obtained, a preset number of historical analysis data with the closest generation time to the current time can be retrieved from the database to train the model.
[0058] In an embodiment of the present application, each time the component content of dissolved gas in transformer insulating oil is analyzed by chromatography, historical analysis data will be generated, and then the generated historical analysis data and the generation time will be stored in the database. When the user's query data input operation is obtained, the preset number of historical analysis data in the database whose generation time is closest to the current time is taken out to form a historical analysis data sequence for each dissolved gas, wherein the preset number can be set according to actual needs. For example, the database stores the historical analysis data generated at 7:00, 8:00, 9:00, 10:00, and 11:00 in the morning of September 8, 2021, respectively, and the preset number is set to 4. When the user's query data input operation is obtained at 1 pm, the historical analysis data generated at 8:00, 9:00, 10:00, and 11:00 stored in the database are taken out to form a historical analysis data sequence for each dissolved gas.
[0059] S220. Train the preset model according to the historical analysis data sequence of each dissolved gas to obtain at least two candidate models.
[0060] S230, determining prediction errors of at least two candidate models, and selecting the candidate model with the smallest prediction error as the transformer fault prediction model.
[0061] In the embodiment of the present application, after forming the historical analysis data sequence of each dissolved gas, the method further includes:
[0062] Performing non-equal interval processing on the historical analysis data sequence of each dissolved gas to obtain a non-equal interval modeling sequence of each dissolved gas;
[0063] Accordingly, the training of the preset model according to the historical analysis data includes:
[0064] The preset model is trained according to the non-equally spaced modeling sequence to obtain at least two candidate models.
[0065] Among them, non-equal interval processing is a preprocessing method for time series. Exemplarily, non-equal interval processing may include the following steps:
[0066] 1) Let x (0) For a non-uniformly spaced sequence x (0) ={x (0) (P i )|P i ∈R + ,i=1,2,…,n}, remember i P is less than P i and is closest to P i A positive integer, denoted as ΔP i =P i -i P .
[0067] 2) Construct an equally spaced sequence and non-integer columns and Composing a modeling sequence
[0068]
[0069]
[0070]
[0071] Among them, when P i When is an integer,
[0072]
[0073] If the value does not exist in the original sequence The Lagrange univariate three-point interpolation method is used for interpolation calculation, and the formula is shown below.
[0074]
[0075] in
[0076] Equally spaced series Perform a level ratio test. If there is a level ratio The original sequence is transformed using the translation method to model the sequence Translate, translation value Q * Determined by the following formula, ε is the specified value of the step ratio deviation of y.
[0077]
[0078] The embodiment of the present application provides better data support for the fault prediction model by performing non-uniform interval processing on the historical analysis data sequence, which is beneficial to improving the prediction accuracy of the fault prediction model.
[0079] In the embodiment of the present application, the preset model includes: at least two of the non-equal interval GM (1, 1) model, the non-equal interval Verhulst model, the improved GM (1, 1) model and the original grey Verhulst model.
[0080] Among them, the non-equal interval GM (1, 1) model, the non-equal interval Verhulst model, the improved GM (1, 1) model and the original grey Verhulst model are all grey prediction models. Grey prediction model is a prediction method that uses a small amount of incomplete information to establish a mathematical model and make predictions. It is an effective tool for dealing with small sample prediction problems.
[0081] The embodiment of the present application improves the accuracy of transformer fault prediction and ensures the safe and efficient operation of the power grid by selecting a model suitable for small sample prediction problems.
[0082] In the embodiment of the present application, after acquiring the historical analysis data of each dissolved gas stored in the database, the method further includes:
[0083] From the historical analysis data, the historical analysis data that has been used for transformer fault prediction model training is filtered out.
[0084] The embodiment of the present application filters out historical analysis data that has been used for transformer fault prediction model training, thereby ensuring that the model can be trained based on new data each time, thereby improving the reliability of the model.
[0085] The embodiment of the present application completes the training of the fault prediction model through the following method: in response to the user's query data input operation, a preset number of historical analysis data with the generation time closest to the current time is obtained from the database to form a historical analysis data sequence of each dissolved gas; accordingly, the training of the preset model according to the historical analysis data includes: training the preset model according to the historical analysis data sequence of each dissolved gas to obtain at least two candidate models. The embodiment of the present application realizes through the above technical solution that before the user needs to use the fault prediction model to predict the dissolved gas each time, the model is re-trained according to the preset number of historical analysis data with the generation time closest to the current time, so that the model continuously adjusts the parameters according to the latest data, thereby improving the prediction accuracy of the model, and can more accurately predict the content of dissolved gas in transformer oil, thereby timely predicting potential faults of the transformer and ensuring the safe and efficient operation of the power grid.
[0086] Figure 3 FIG. 1 is a flow chart of a fault prediction method provided by another embodiment of the present application. Figure 3 As shown, the fault prediction method provided in the embodiment of the present application may include the following steps:
[0087] S310, obtaining query data input by a user; wherein the query data includes a transformer name, a predicted gas name, and a predicted time.
[0088] The transformer name is used to identify the transformer. The transformer can be named according to the type and purpose of the transformer, or according to a combination of numbers, symbols, etc. The predicted gas refers to the dissolved gas in the transformer insulating oil, which can include any of carbon monoxide, carbon dioxide, methane, ethylene, acetylene, etc. The predicted time refers to the time corresponding to the predicted result output by the fault prediction model. For example, if the user inputs a prediction time of 5 minutes, the fault prediction model outputs the content of a certain predicted gas in the next five minutes.
[0089] S320: Input the query data into a transformer fault prediction model to obtain a prediction result of the transformer fault.
[0090] The transformer fault prediction model is obtained by training according to the training method of the fault prediction model provided in any of the above embodiments.
[0091] In an embodiment of the present application, the prediction result includes the content of dissolved gas in the transformer oil associated with the query data.
[0092] The embodiment of the present application can determine whether the transformer has potential overheating, discharge and other faults by predicting the content of dissolved gas in the transformer oil.
[0093] The embodiment of the present application realizes the prediction of transformer faults by the following method: obtaining query data input by the user; wherein the query data includes the name of the transformer, the name of the predicted gas, and the predicted time; inputting the query data into the transformer fault prediction model to obtain the prediction result of the transformer fault. The embodiment of the present application stores the trained fault prediction model, and when the user has a prediction demand, the fault prediction model can be directly called, and the prediction result can be obtained according to the query data input by the user, saving a lot of time cost.
[0094] Figure 4 This is a flow chart of a fault prediction model training and prediction method provided by another embodiment of the present application. Figure 4 As shown, the fault prediction model training and prediction method provided in the embodiment of the present application may include the following steps:
[0095] 1. The user inputs the transformer name, predicted gas name and predicted time. The historical analysis data with the closest generation time to the current time is used as the reference point from the database. The four historical analysis data of the gas to be predicted for this transformer are obtained one by one to form the original sequence (data that have been treated with oil will not be predicted).
[0096] 2. Perform non-equal interval preprocessing on the original sequence to obtain a modeling sequence that meets the following conditions;
[0097] 1) Let x (0) For a non-uniformly spaced sequence x (0) ={x (0) (P i )|P i ∈R + ,i=1,2,…,n}, remember i P is less than P i and is closest to P i A positive integer, denoted as ΔP i =P i -i P .
[0098] 2) Construct an equally spaced sequence and non-integer columns and Composing a modeling sequence
[0099]
[0100]
[0101]
[0102] Among them, when P i When is an integer,
[0103]
[0104] If the value does not exist in the original sequence The Lagrange univariate three-point interpolation method is used for interpolation calculation, and the formula is shown below.
[0105]
[0106] in
[0107] Equally spaced series Perform a level ratio test. If there is a level ratio The original sequence is transformed using the translation method to model the sequence Translate, translation value Q * Determined by the following formula, ε is the specified value of the step ratio deviation of y.
[0108]
[0109] 3. Perform grey prediction modeling on the modeling sequence obtained by preprocessing in step 2, and form a model group by constructing non-equal interval GM (1, 1) model, non-equal interval Verhulst model, improved GM (1, 1) model and original grey Verhulst model;
[0110] right Perform first-order accumulation and generate and Perform cumulative generation to obtain a cumulative generation sequence and
[0111]
[0112]
[0113]
[0114] and Together they constitute the 1-AGO cumulative generation sequence.
[0115] The modeling steps of the non-equal interval GM(1,1) model are as follows:
[0116] 1): Grey GM(1,1) whitening differential equation solution
[0117] The grey GM(1,1) whitening differential equation is:
[0118]
[0119] Its time response is
[0120]
[0121] 2): Parameter solution
[0122] Let Z be the background value,
[0123] Where 0≤β≤1, P i is an integer
[0124] Where 0≤β≤1, P i Decimal
[0125]
[0126] The least squares method is used to solve the a and u values.
[0127] Let m = 1, get
[0128] 3): Calculate X (1) The predicted value of
[0129] X (1) The prediction formula is:
[0130]
[0131] 4): For X (1) The predicted value of Perform cumulative reduction to obtain
[0132] P i is an integer
[0133] P i Decimal
[0134] 5): Background value optimization. Increase the β value in sequence, recalculate the model parameters, and calculate the relative error of the model.
[0135] P i 、i P is an integer
[0136] P i Decimal
[0137] s=∑|q in (i P )|+∑|q de(P i )|
[0138] The β value that minimizes s is the optimized β value, and the corresponding background value is the optimized background value.
[0139] 6): Initial value optimization. Take Repeat the calculation of the parameters in step 2 and take the model parameters with the smallest relative error s for actual prediction.
[0140] 7): Residual test
[0141] Calculate the residual. Generally, when the residual ε(avg) is less than 10%, the model can meet the engineering requirements. If the residual is qualified, the model is used for prediction.
[0142]
[0143]
[0144] The steps for modeling the non-equal interval Verhulst model are as follows:
[0145] 1): Grey Verhulst whitening differential equation solution
[0146] The grey-Verhulst whitening differential equation is:
[0147]
[0148] Its time response is:
[0149]
[0150] make have
[0151]
[0152] 2): Parameter solution
[0153] The Grey-Verhulst non-equally spaced whitening differential equation is:
[0154]
[0155] When P i When is an integer,
[0156]
[0157] When P i When it is a decimal,
[0158]
[0159] Let Z be the background value,
[0160] Where 0≤β≤1, P i is an integer
[0161] Where 0≤β≤1, P i Decimal
[0162]
[0163] Use the least squares method to solve the a and b values
[0164] 3): Calculate X (1) The predicted value of
[0165]
[0166] 4): For X (1) The predicted value of Perform cumulative reduction to obtain
[0167] P i is an integer
[0168] P i Decimal
[0169] 5): Background value optimization. Increase the β value in sequence, recalculate the model parameters, and calculate the relative error of the model.
[0170] P i 、i P is an integer
[0171] P i Decimal
[0172] s=∑|q in (i P )|+∑|q de (P i )|
[0173] The β value that minimizes s is the optimized β value, and the corresponding background value is the optimized background value.
[0174] 6): Initial value optimization. Take Repeat the calculation of the parameters in step 2 and take the model parameters with the smallest relative error s for actual prediction.
[0175] 7): Residual test. The residual test method is the same as that of the non-equal interval GM (1,1) model.
[0176] The improved GM (1,1) grey prediction modeling steps are as follows:
[0177] 1): Assume that the original sequence is
[0178] X (0) =(x (0) (t1),x (0) (t2),…,x (0) (t n )), where n is the number of samples
[0179] 2): Generate the original sequence by first-order accumulation
[0180]
[0181] 3): For X (1) Setting up the whitened differential equation
[0182]
[0183] 4): Parameter solution
[0184] Let Z be the background value and use the least squares method to solve the parameters a and b
[0185] z(k)=βx (1) (k)+(1-β)x (1) (k-1),(β∈[0,1],k=2,3,…,n)
[0186] 5): Solving whitened differential equations
[0187] Substituting the parameters into the solution of the differential equation is:
[0188]
[0189] After data restoration, we get the prediction formula of the GM(1,1) model:
[0190]
[0191] 6): Background value optimization. Increase the β value in sequence, recalculate the model parameters, and calculate the relative error of the model.
[0192]
[0193] Calculate the model's Select The corresponding β, a, and b when they are minimum are used as the model parameter values.
[0194] The modeling steps of the original grey Verhulst prediction model are as follows:
[0195] 1): Let X (0)is the original sequence, X (1) For X (0) The 1-AGO sequence, Z (1) For X (1) The adjacent mean sequence of X (0) +aZ (1) =b(Z (1) ) 2 Verhulst model
[0196] 2): Establish the whitening differential equation of the Verhulst model
[0197]
[0198] 3): Use the least squares method to solve the parameters a and b
[0199] 4): Solving whitened differential equations
[0200] The solution of the grey Verhulst model whitening differential equation is
[0201]
[0202] Its time response is
[0203]
[0204] 4. Combine the models established in step 3 into a grey model group, compare the advantages and disadvantages of each model according to the error of the historical data prediction results, and select a prediction model with the smallest error as the final preferred model;
[0205] 5. Input the transformer name, predicted gas name and predicted time into the preferred model in step 4, and the model outputs the predicted results.
[0206] Figure 5 This is a structural block diagram of a fault prediction model training device provided by an embodiment of the present application. The device can execute the fault prediction model training method provided by any embodiment of the present application, and has the corresponding functional modules and beneficial effects of the execution method. Figure 5 As shown, the device may include:
[0207] The data acquisition module 410 is used to acquire the historical analysis data of each dissolved gas stored in the database.
[0208] The model training module 420 is used to train the preset model according to the historical analysis data to obtain at least two candidate models.
[0209] The model determination module 430 is used to determine the prediction errors of at least two candidate models and select the candidate model with the smallest prediction error as the transformer fault prediction model.
[0210] In the embodiment of the present application, the model training module 420 is specifically used for: dividing the historical analysis data of each dissolved gas into a training set and a test set; training the preset model using the training set to obtain at least two candidate models; accordingly,
[0211] The model determination module 430 is specifically used to: test at least two candidate models using a test set to obtain prediction errors of the at least two candidate models.
[0212] In the embodiment of the present application, the data acquisition module 410 is specifically used to: in response to the user's query data input operation, obtain a preset number of historical analysis data with a generation time closest to the current time from the database to form a historical analysis data sequence of each dissolved gas; accordingly,
[0213] The model training module 420 is specifically used to train the preset model according to the historical analysis data sequence of each dissolved gas to obtain at least two candidate models.
[0214] In the embodiment of the present application, the device further includes:
[0215] The data processing module is used to perform non-equal interval processing on the historical analysis data sequence of each dissolved gas to obtain a non-equal interval modeling sequence of each dissolved gas; accordingly,
[0216] The model training module 420 is specifically used to train the preset model according to the non-uniformly spaced modeling sequence to obtain at least two candidate models.
[0217] In the embodiment of the present application, the preset model includes: at least two of the non-equal interval GM (1, 1) model, the non-equal interval Verhulst model, the improved GM (1, 1) model and the original grey Verhulst model.
[0218] In the embodiment of the present application, the device further includes:
[0219] The data filtering module is used to filter out the historical analysis data that has been used for transformer fault prediction model training from the historical analysis data.
[0220] The above-mentioned product can execute the fault prediction model training method provided in the embodiment of the present application, and has the corresponding functional modules and beneficial effects of the execution method.
[0221] Figure 6 This is a structural block diagram of a fault prediction device provided by an embodiment of the present application. The device can execute the fault prediction method provided by any embodiment of the present application and has the corresponding functional modules and beneficial effects of the execution method. Figure 6 As shown, the device may include:
[0222] The query data acquisition module 510 is used to acquire the query data input by the user; wherein the query data includes the transformer name, the name of the predicted gas and the predicted time.
[0223] The fault prediction module 520 is used to input the query data into the transformer fault prediction model to obtain a prediction result of the transformer fault.
[0224] The transformer fault prediction model is obtained by training according to the training method of the fault prediction model provided in any of the above embodiments.
[0225] In an embodiment of the present application, the prediction result includes the content of dissolved gas in the transformer oil associated with the query data.
[0226] The above-mentioned product can execute the fault prediction method provided in the embodiment of the present application, and has the corresponding functional modules and beneficial effects of the execution method.
[0227] Figure 7 It is a structural schematic diagram of an electronic device provided by an embodiment of the present application. Figure 7 A block diagram of an exemplary electronic device 612 suitable for implementing embodiments of the present application is shown. Figure 7 The electronic device 612 shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0228] like Figure 7 As shown, the electronic device 612 may include: one or more processors 616; a memory 628, which is used to store one or more programs. When the one or more programs are executed by the one or more processors 616, the one or more processors 616 implement the fault prediction model training method provided in the embodiment of the present application, including:
[0229] Obtain historical analysis data of each dissolved gas stored in the database;
[0230] Training a preset model according to the historical analysis data to obtain at least two candidate models;
[0231] The prediction errors of at least two candidate models are determined, and the candidate model with the smallest prediction error is selected as the transformer fault prediction model.
[0232] Or implementing the fault prediction method provided in the embodiment of the present application includes:
[0233] Acquire query data input by a user; wherein the query data includes a transformer name, a predicted gas name, and a predicted time;
[0234] Inputting the query data into a transformer fault prediction model to obtain a prediction result of the transformer fault;
[0235] The transformer fault prediction model is obtained by training according to the training method of the transformer fault prediction model provided in any of the above embodiments.
[0236] Components of the electronic device 612 may include, but are not limited to, one or more processors 616 , a memory 628 , and a bus 618 that connects various device components (including the memory 628 and the processor 616 ).
[0237] Bus 618 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor or a local bus using any of a variety of bus architectures. By way of example, these architectures include, but are not limited to, an Industry Standard Architecture (ISA) bus, a Micro Channel Architecture (MAC) bus, a Processor-Type ISA bus, a Video Electronics Standards Association (VESA) local bus, and a Peripheral Component Interconnect (PCI) bus.
[0238] The electronic device 612 typically includes a variety of computer device readable storage media. These storage media can be any available storage media that can be accessed by the electronic device 612, including volatile and non-volatile storage media, removable and non-removable storage media.
[0239] The memory 628 may include computer device readable storage media in the form of volatile memory, such as random access memory (RAM) 630 and / or cache memory 632. The electronic device 612 may further include other removable / non-removable, volatile / non-volatile computer device storage media. By way of example only, the storage system 634 may be used to read and write non-removable, non-volatile magnetic storage media ( Figure 7 not shown, usually called a "hard drive"). Although Figure 7 Not shown, a disk drive for reading and writing to a removable non-volatile disk (e.g., a "floppy disk"), and an optical disk drive for reading and writing to a removable non-volatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical storage medium) may be provided. In these cases, each drive may be connected to bus 618 via one or more data storage medium interfaces. Memory 628 may include at least one program product having a set (e.g., at least one) of program modules that are configured to perform the functions of the various embodiments of the present application.
[0240] A program / utility 640 having a set (at least one) of program modules 642 may be stored, for example, in the memory 628, such program modules 642 including, but not limited to, operating devices, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment. The program modules 642 generally perform the functions and / or methods of the embodiments described herein.
[0241] The electronic device 612 may also communicate with one or more external devices 614 and / or a display 624, etc., and may also communicate with one or more devices that enable a user to interact with the electronic device 612, and / or communicate with any device (e.g., a network card, a modem, etc.) that enables the electronic device 612 to communicate with one or more other computing devices. Such communication may be performed through an input / output (I / O) interface 622. In addition, the electronic device 612 may also communicate with one or more networks (e.g., a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet) through a network adapter 620. Figure 7 As shown, the network adapter 620 communicates with other modules of the electronic device 612 via the bus 618. It should be understood that although Figure 7 Not shown, other hardware and / or software modules may be used in conjunction with electronic device 612, including but not limited to microcode, device drivers, redundant processing units, external disk drive arrays, RAID devices, tape drives, and data backup storage devices.
[0242] The processor 616 executes various functional applications and data processing by running at least one of the other programs among the multiple programs stored in the memory 628, such as implementing a fault prediction model training method provided in an embodiment of the present application, or a fault prediction method provided in an embodiment of the present application.
[0243] An embodiment of the present application provides a storage medium containing computer executable instructions, and when the computer executable instructions are executed by a computer processor, the method for training a fault prediction model provided in the embodiment of the present application is executed, including:
[0244] Obtain historical analysis data of each dissolved gas stored in the database;
[0245] Training a preset model according to the historical analysis data to obtain at least two candidate models;
[0246] The prediction errors of at least two candidate models are determined, and the candidate model with the smallest prediction error is selected as the transformer fault prediction model.
[0247] Or executing the fault prediction method provided in the embodiment of the present application, including:
[0248] Acquire query data input by a user; wherein the query data includes a transformer name, a predicted gas name, and a predicted time;
[0249] Inputting the query data into a transformer fault prediction model to obtain a prediction result of the transformer fault;
[0250] The transformer fault prediction model is obtained by training according to the training method of the transformer fault prediction model provided in any of the above embodiments.
[0251] The computer storage medium of the embodiment of the present application can adopt any combination of one or more computer-readable storage media. The computer-readable storage medium can be a computer-readable signal storage medium or a computer-readable storage medium. The computer-readable storage medium can be, for example, - but not limited to - electrical, magnetic, optical, electromagnetic, infrared, or semiconductor equipment, devices or devices, or any combination of the above. More specific examples (non-exhaustive list) of computer-readable storage media include: an electrical connection with one or more wires, 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), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In an embodiment of the present application, a computer-readable storage medium can be any tangible storage medium containing or storing a program, which can be used by an instruction execution device, device or device or used in combination with it.
[0252] A computer-readable signal storage medium may include a data signal propagated in baseband or as part of a carrier wave, which carries a computer-readable program code. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. A computer-readable signal storage medium may also be any computer-readable storage medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution device, apparatus, or device.
[0253] The program code contained on the computer-readable storage medium may be transmitted using any appropriate storage medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
[0254] Computer program code for performing the operation of the present application can 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" language or similar programming languages. The program code can 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 device. In the case of a remote computer, the remote computer can be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computer (e.g., using an Internet service provider to connect through the Internet).
[0255] Note that the above are only preferred embodiments of the present application and the technical principles used. Those skilled in the art will understand that the present application is not limited to the specific embodiments described herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the scope of protection of the present application. Therefore, although the present application is described in more detail through the above embodiments, the present application is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present application, and the scope of the present application is determined by the scope of the appended claims.
Claims
1. A fault prediction model training method, characterized in that: The method comprises: Obtaining historical analysis data of each dissolved gas stored in a database; wherein the historical analysis data refers to data obtained by analyzing the dissolved gas in transformer oil by chromatography at various times in history, and the historical analysis data includes the components and contents of the dissolved gas; The preset model is trained according to the historical analysis data to obtain at least two candidate models; wherein the preset models include: a non-equal interval GM (1, 1) model, a non-equal interval Verhulst model, an improved GM (1, 1) model and an original grey Verhulst model; Determine prediction errors of at least two candidate models, and select the candidate model with the smallest prediction error as the transformer fault prediction model; Wherein, the acquisition of historical analysis data of each dissolved gas stored in the database includes: In response to the query data input operation of the user, a preset number of historical analysis data with a generation time closest to the current time are acquired from the database to form a historical analysis data sequence of each dissolved gas; Accordingly, the training of the preset model according to the historical analysis data includes: Training the preset model according to the historical analysis data sequence of each dissolved gas to obtain at least two candidate models; After acquiring the historical analysis data of each dissolved gas stored in the database, the method further includes: From the historical analysis data, filter out the historical analysis data that has been used for transformer fault prediction model training; After forming the historical analysis data sequence of each dissolved gas, the method further comprises: Performing non-equal interval processing on the historical analysis data sequence of each dissolved gas to obtain a non-equal interval modeling sequence of each dissolved gas; Accordingly, the training of the preset model according to the historical analysis data includes: Training a preset model according to the non-equally spaced modeling sequence to obtain at least two candidate models; The non-equal interval processing includes the following steps: 1) Order Non-equally spaced series ,remember is less than and closest to A positive integer, denoted by ; 2) Construct an equally spaced sequence and non-integer columns , and Composing a modeling sequence ; ; ; ; Among them When is an integer, ; If the value does not exist in the original sequence , the Lagrange one-variable three-point interpolation method is used for interpolation calculation, and the formula is as follows; ; ; Equally spaced series Perform a level ratio test. If there is a level ratio , then use the translation method to transform the modeling sequence. To translate, translate value Determined by the following formula, is the specified value of the level ratio deviation; 。 2. The method according to claim 1, characterized in that The training of the preset model according to the historical analysis data of each dissolved gas includes: The historical analysis data of each dissolved gas is divided into a training set and a test set; Using the training set to train the preset model, obtaining at least two candidate models; Accordingly, the prediction errors of at least two candidate models are determined, including: The at least two candidate models are tested using the test set to obtain prediction errors of the at least two candidate models.
3. A fault prediction method, characterized in that: The method comprises: Acquire query data input by a user; wherein the query data includes a transformer name, a predicted gas name, and a predicted time; Inputting the query data into a transformer fault prediction model to obtain a prediction result of the transformer fault; Wherein, the transformer fault prediction model is obtained by training using the transformer fault prediction model training method described in any one of claims 1-2.
4. The method according to claim 3, characterized in that The prediction result includes the content of dissolved gas in the transformer oil associated with the query data.
5. A fault prediction model training device, characterized in that: The device comprises: A data acquisition module is used to acquire historical analysis data of each dissolved gas stored in the database; wherein the historical analysis data refers to data obtained by analyzing the dissolved gas in the transformer oil by chromatography at various times in history, and the historical analysis data includes the components and content of the dissolved gas; A model training module, used for training a preset model according to the historical analysis data to obtain at least two candidate models; wherein the preset models include: a non-equal interval GM (1, 1) model, a non-equal interval Verhulst model, an improved GM (1, 1) model and an original grey Verhulst model; A model determination module, used to determine the prediction errors of at least two candidate models, and select the candidate model with the smallest prediction error as the transformer fault prediction model; The data acquisition module is specifically used to: in response to the query data input operation of the user, acquire a preset number of historical analysis data with the generation time closest to the current time from the database to form a historical analysis data sequence of each dissolved gas; Accordingly, the model training module is specifically used to: train the preset model according to the historical analysis data sequence of each dissolved gas to obtain at least two candidate models; Wherein, the fault prediction model training device also includes: A data filtering module, used to filter out the historical analysis data that has been used for transformer fault prediction model training from the historical analysis data; Wherein, the fault prediction model training device also includes: A data processing module, used for performing non-equal interval processing on the historical analysis data sequence of each dissolved gas to obtain a non-equal interval modeling sequence of each dissolved gas; Correspondingly, the model training module is used to train the preset model according to the non-equally spaced modeling sequence to obtain at least two candidate models; The non-equal interval processing includes the following steps: 1) Order Non-equally spaced series ,remember is less than and closest to A positive integer, denoted by ; 2) Construct an equally spaced sequence and non-integer columns , and Composing a modeling sequence ; ; ; ; Among them When is an integer, ; If the value does not exist in the original sequence , the Lagrange one-variable three-point interpolation method is used for interpolation calculation, and the formula is as follows; ; ; Equally spaced series Perform a level ratio test. If there is a level ratio , then use the translation method to transform the modeling sequence. To translate, translate value Determined by the following formula, is the specified value of the level ratio deviation; 。 6. A fault prediction device, characterized in that: The device comprises: A query data acquisition module, used to acquire query data input by a user; wherein the query data includes the name of the transformer, the name of the predicted gas, and the predicted time; A fault prediction module, used for inputting the query data into a transformer fault prediction model to obtain a prediction result of the transformer fault; Wherein, the transformer fault prediction model is obtained by training using the transformer fault prediction model training method described in any one of claims 1-2.
7. An electronic device, characterized in that: The electronic device comprises: one or more processors; A memory for storing one or more programs; When the one or more programs are executed by the one or more processors, the one or more processors implement the fault prediction model training method as described in any one of claims 1-2, or implement the fault prediction method as described in any one of claims 3-4.
8. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, it implements the fault prediction model training method as described in any one of claims 1-2, or implements the fault prediction method as described in any one of claims 3-4.
