Lightning arrester fault prediction model training method and device, equipment and medium
By obtaining and combining parameter sets, generating and adjusting arrester fault prediction models, the problem of low efficiency and accuracy of arrester fault prediction in the existing technology is solved, and more efficient and accurate fault prediction is achieved.
Patent Information
- Application Number
- CN202410807218.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-21
- Publication Date
- 2024-09-17
AI Technical Summary
In the existing technology, the efficiency and accuracy of arrester fault prediction are low and cannot meet the operation and maintenance needs, resulting in insufficient efficiency and accuracy of maintenance personnel in the detection and prediction process.
By obtaining the parameter set, combining it with the classification module in the model, alternative models are generated, and through multi-dimensional data analysis and feature extraction adjustment, the target group is screened out, and the trained arrester fault prediction model is determined to improve prediction accuracy and efficiency.
It improves the training accuracy and efficiency of the arrester fault prediction model, reduces redundant data, improves the accuracy and efficiency of data processing, and meets the operation and maintenance needs.
Smart Images

Figure CN118657252A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of data prediction, and in particular to a training method, device, equipment and medium for a lightning arrester fault prediction model. Background Art
[0002] With the rapid development of science and technology, the types of lightning arresters are gradually increasing. If the lightning arrester cannot operate normally, it may lead to more unsafe accidents. Therefore, maintenance personnel need to promptly discover the operating status of power equipment. If the power equipment may fail, maintenance personnel are required to repair it in time.
[0003] Currently, maintenance personnel analyze the detection data of lightning arresters through manual detection to predict artificial faults.
[0004] However, there are many types of lightning arresters, the amount of data obtained from lightning arrester detection is large, and there are many performance parameters of lightning arresters to be tested. The efficiency and accuracy of manual fault prediction are low and cannot meet operation and maintenance needs. Summary of the invention
[0005] The present invention provides a method, device, equipment and medium for training a lightning arrester fault prediction model, so as to improve the accuracy of the training of the lightning arrester fault prediction model.
[0006] In a first aspect, an embodiment of the present invention provides a method for training a lightning arrester fault prediction model, the method comprising:
[0007] Get a parameter set, the parameter set includes multiple parameter value groups;
[0008] Combine each parameter value group with the classification module in the model to obtain an alternative model corresponding to each parameter value group;
[0009] Processing each sample in the first sample set by using the candidate model corresponding to each parameter value group to obtain a first prediction accuracy rate corresponding to each parameter value group; the first sample set includes at least one sample, and the sample includes: input data and true value data;
[0010] For each parameter value group, according to the first prediction accuracy rate corresponding to the parameter value group, the parameters of the feature extraction module in the candidate model are adjusted to obtain a target model corresponding to the parameter value group;
[0011] Processing each sample in the second sample set by using the target model corresponding to each parameter value group to obtain a second prediction accuracy rate corresponding to each parameter value group;
[0012] Filtering out a target group from each parameter value group according to the second prediction accuracy rate corresponding to each parameter value group;
[0013] The candidate model corresponding to the target group is determined as the trained arrester fault prediction model.
[0014] In a second aspect, an embodiment of the present invention further provides a training device for a lightning arrester fault prediction model, the device comprising:
[0015] A collection acquisition module is used to acquire a parameter collection, which includes multiple parameter value groups;
[0016] The candidate model acquisition module is used to combine each parameter value group with the classification module in the model to obtain the candidate model corresponding to each parameter value group;
[0017] The first prediction module is used to process each sample in the first sample set by using the candidate model corresponding to each parameter value group to obtain a first prediction accuracy rate corresponding to each parameter value group; the first sample set includes at least one sample, and the sample includes: input data and true value data;
[0018] A target model acquisition module is used to adjust the parameters of the feature extraction module in the candidate model according to the first prediction accuracy corresponding to the parameter value group for each parameter value group, so as to obtain the target model corresponding to the parameter value group;
[0019] A second prediction module is used to process each sample in the second sample set through a target model corresponding to each parameter value group to obtain a second prediction accuracy rate corresponding to each parameter value group;
[0020] A target group screening module, used to screen out a target group from each parameter value group according to the second prediction accuracy rate corresponding to each parameter value group;
[0021] The prediction model determination module is used to determine the candidate model corresponding to the target group as the trained arrester fault prediction model.
[0022] In a third aspect, an embodiment of the present invention further provides a training device for a lightning arrester fault prediction model, the training device for a lightning arrester fault prediction model comprising:
[0023] at least one processor; and
[0024] a memory communicatively connected to at least one processor; wherein,
[0025] The memory stores a computer program that can be executed by at least one processor, and the computer program is executed by at least one processor so that the at least one processor can execute the training method of the lightning arrester fault prediction model of any embodiment of the present invention.
[0026] According to another aspect of the present invention, a computer-readable storage medium is provided, which stores computer instructions for implementing the training method of the arrester fault prediction model of any embodiment of the present invention when executed by a processor.
[0027] The technical solution of the embodiment of the present invention obtains a parameter set, combines each parameter value group with a classification module in the model, obtains an alternative model corresponding to each parameter value group, obtains different alternative models, and improves the accuracy of the training of the arrester fault prediction model through multidimensional data analysis. Through the alternative model corresponding to each parameter value group, each sample in the first sample set is processed to obtain the first prediction accuracy corresponding to each parameter value group. For each parameter value group, according to the first prediction accuracy corresponding to the parameter value group, the parameters of the feature extraction module in the alternative model are adjusted to obtain the target model corresponding to the parameter value group, and the training efficiency of the arrester fault prediction model is improved by screening and reducing redundant data. Through the target model corresponding to each parameter value group, each sample in the second sample set is processed to obtain the second prediction accuracy corresponding to each parameter value group. According to the second prediction accuracy corresponding to each parameter value group, the target group is screened out in each parameter value group, and the alternative model corresponding to the target group is determined as the trained arrester fault prediction model, and the data is further screened. The data is screened by multiple screening conditions, which improves the training efficiency of the arrester fault prediction model.
[0028] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0029] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0030] Figure 1 is a flow chart of a method for training a lightning arrester fault prediction model provided according to Embodiment 1 of the present invention;
[0031] Figure 2 is a flow chart of a method for training a lightning arrester fault prediction model provided according to Embodiment 2 of the present invention;
[0032] Figure 3 is a structural diagram of a training device for a lightning arrester fault prediction model provided by an embodiment of the present invention;
[0033] Figure 4 It is a structural schematic diagram of a training device for implementing a lightning arrester fault prediction model provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0034] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0035] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0036] In the technical solution of the embodiment of the present invention, the acquisition, storage and application of the parameter sets involved are in compliance with the provisions of relevant laws and regulations and do not violate public order and good morals.
[0037] Embodiment 1
[0038] Figure 1 A flowchart of a method for training a lightning arrester fault prediction model provided in Embodiment 1 of the present invention. The embodiment of the present invention is applicable to the training of a lightning arrester fault prediction model, and the method can be performed by a training device for a lightning arrester fault prediction model, which can be implemented in the form of hardware and / or software.
[0039] See also Figure 1 The training method of the arrester fault prediction model shown includes:
[0040] S101. Obtain a parameter set, where the parameter set includes multiple parameter value groups.
[0041] The parameter value can be used to describe the coefficient of the data item in the classification function corresponding to the arrester fault prediction model, wherein the coefficient of the data item in the classification function corresponding to the arrester fault prediction model is at least one. The parameter value group can be used to describe the set of coefficients of each data item in the classification function corresponding to the arrester fault prediction model, wherein the parameter value group includes at least one parameter value. The parameter set can be used to describe the set of parameter value groups, wherein the parameter value group is at least one.
[0042] Specifically, at least one parameter value is obtained, and the obtaining method includes but is not limited to: mouse input or keyboard selection, etc., which is not limited in the embodiment of the present invention. The parameter set is determined through at least one parameter value.
[0043] In an example, x represents the data of the arrester to be predicted. x is preprocessed and its fault type is labeled. There are two types of arrester fault types: fault and normal. 1 can represent normal and -1 can represent fault. The processed data set is T. Its specific expression can be written in the following matrix form, where y∈{1,-1} is the feature label, that is, the arrester fault type, and x i ∈R n×1 is the data collected to predict the arrester fault. Then the classification function can be constructed as: f(x) = w T x+b, where w∈R n×1 is the weight, b is the bias, and the fault type corresponding to the arrester data x to be predicted is determined according to the positive or negative value of f(x).
[0044]
[0045] The classification function is: f(x) = w T x+b, the classification function includes two data items, namely w T x and b, parameter values are w and b, the parameter value group is the set of values of w and b, the value of w can be 1 and 2 through the keyboard input, and the value of b can be 1 and 2 through the keyboard input. The obtained parameter value groups are 1-1, 1-2, 2-1 and 2-2. The parameter set is {1-1, 1-2, 2-1, 2-2}.
[0046] S102: Combine each parameter value group with the classification module in the model to obtain an alternative model corresponding to each parameter value group.
[0047] The classification module can be used to describe a function in a model that performs classification prediction on data. The alternative model can be used to describe a model after replacing the coefficient values in the parameter value group with the values of the corresponding coefficients in the classification module in the model.
[0048] Specifically, each parameter value group is combined with the classification module in the model, and the coefficient value in the parameter value group replaces the corresponding coefficient value in the classification module in the model to obtain an alternative model corresponding to each parameter value group. If the number of each parameter value group is at least one, the number of alternative models is also at least one.
[0049] In one example, the parameter value groups are 1-1, 1-2, 2-1 and 2-2. The classification module in the model is: f(x) = w T x+b, combine each parameter value group with the classification module in the model, and obtain the candidate model 1 corresponding to the parameter value group 1-1 as f(x)=1 T The model corresponding to the x+1 classification module, the alternative model 2 corresponding to the parameter value group 1-2 is f(x)=1 T The model corresponding to the x+2 classification module, the candidate model 3 corresponding to the parameter value group 2-1 is f(x)=2 T The model corresponding to the x+1 classification module, the candidate model 4 corresponding to the parameter value group 2-2 is f(x)=2 T Model corresponding to the x+2 classification module.
[0050] S103, processing each sample in the first sample set by using the candidate model corresponding to each parameter value group to obtain a first prediction accuracy corresponding to each parameter value group; the first sample set includes at least one sample, and the sample includes: input data and true value data.
[0051] Among them, the sample can be a collection of the data of the lightning arrester that can be used for lightning arrester fault prediction and its corresponding fault type. The input data can be the input data of the lightning arrester that can be used for lightning arrester fault prediction, and the true value data can be the fault type of the lightning arrester corresponding to the input data. The first sample set can be a collection of samples, which is used to train a model for predicting the fault type of the lightning arrester. For example, the data of the lightning arrester that can be used for lightning arrester fault prediction in the first sample set can be the voltage value or current value of the lightning arrester, etc. The first prediction accuracy is used to describe the accuracy of the alternative model corresponding to the parameter value group in predicting the data in the first sample set.
[0052] Specifically, samples of lightning arresters are collected, and the samples include: input data and true value data. The collection method includes but is not limited to: sensor collection or image recognition, etc., which is not limited in the embodiment of the present invention. The first sample set includes at least one sample, and each sample in the first sample set is processed by the alternative model corresponding to each parameter value group to obtain a first prediction accuracy corresponding to each parameter value group.
[0053] In one example, sample 1: current 1 ampere, true value data is normal. Sample 2: current 2 amperes, true value data is fault. The first sample set is {sample 1, current 1 ampere, normal; sample 2, current 2 amperes, fault}. The parameter value groups are 1-1 and 1-2. The candidate model 1 corresponding to the parameter value group 1-1 is f(x)=1 T The model corresponding to the x+1 classification module, the alternative model 2 corresponding to the parameter value group 1-2 is f(x)=1 T Model corresponding to the x+2 classification module. Through the candidate models corresponding to the parameter value groups, each sample in the first sample set is processed to obtain a first prediction accuracy of 100% for parameter value group 1-1 and a first prediction accuracy of 50% for parameter value group 1-2.
[0054] S104. For each parameter value group, according to the first prediction accuracy rate corresponding to the parameter value group, adjust the parameters of the feature extraction module in the candidate model to obtain a target model corresponding to the parameter value group.
[0055] The feature extraction module can be used to describe a module for extracting features from data in the first sample set. The target model can be used to describe a model after adjusting the parameters of the feature extraction module in the candidate model according to the first prediction accuracy corresponding to the parameter value group.
[0056] Specifically, the model is composed of a feature extraction module and a classification module. The feature extraction module is used to obtain the features of the data to be predicted. For example, the feature extraction module can be a feature extraction module in a recursive neural network model. The classification module is a module used to classify the fault results of the features of the data to be predicted. The feature extraction module includes at least one parameter, and the accuracy of feature extraction can be improved by adjusting the value of the parameter. For example, the parameters in the feature extraction module can be a learning rate parameter, a regularization parameter, or a convolution kernel size. For each parameter value group, the alternative model is trained according to the first prediction accuracy corresponding to the parameter value group, and the parameters of the feature extraction module in the alternative model are adjusted to obtain the target model corresponding to each parameter value group.
[0057] In one example, the candidate model 1 corresponding to the parameter value set 1-1 is f(x)=1 T The model corresponding to the x+1 classification module, the alternative model 2 corresponding to the parameter value group 1-2 is f(x)=1 T The model corresponding to the x+2 classification module. The first prediction accuracy corresponding to parameter value group 1-1 is 100%, and the first prediction accuracy corresponding to parameter value group 1-2 is 50%. According to the first prediction accuracy corresponding to the parameter value group, the parameters of the feature extraction module in the alternative model are adjusted to obtain the target model corresponding to parameter value group 1-1 and the target model corresponding to parameter value group 1-2.
[0058] S105 . Process each sample in the second sample set by using the target model corresponding to each parameter value group to obtain a second prediction accuracy rate corresponding to each parameter value group.
[0059] The second sample set may be a collection of samples used to test the prediction accuracy of the target model. The second prediction accuracy may be used to describe the target model corresponding to the parameter value group predicts the data in the second sample set, compares the prediction results obtained with the true value data, and the ratio of the number of accurate prediction results to the total number of samples in the second sample set.
[0060] Specifically, samples of the lightning arrester can be collected to obtain the sample distribution ratio, and the acquisition method includes but is not limited to: mouse input or keyboard selection, etc., which is not limited in the embodiment of the present invention. The number of samples in the first sample set and the second sample set is determined by the sample distribution ratio, and the samples of the first sample set and the second sample set are screened from the samples to determine the samples in the first sample set and the second sample set. Through the target model corresponding to each parameter value group, each sample in the second sample set is processed, and the fault prediction accuracy of the target model corresponding to each parameter value group is detected through the second sample set to obtain the second prediction accuracy corresponding to each parameter value group.
[0061] In one example, sample 3: current 3 amperes, true value data is fault. Sample 4: current 4 amperes, true value data is fault. The second sample set is {sample 3, current 3 amperes, fault; sample 4, current 4 amperes, fault}. The parameter value groups are 1-1 and 1-2. The target model 1 corresponding to the parameter value group 1-1 is f(x)=1 T The model corresponding to the x+1 classification module, the target model 2 corresponding to the parameter value group 1-2 is f(x)=1 T The model corresponding to the x+2 classification module. The samples in the second sample set are processed by the target model corresponding to each parameter value group, and the second prediction accuracy corresponding to the parameter value group 1-1 is 50%, and the second prediction accuracy corresponding to the parameter value group 1-2 is 100%.
[0062] S106 . Filter out a target group from each parameter value group according to the second prediction accuracy rate corresponding to each parameter value group.
[0063] The target group may be used to describe a parameter value group selected from each parameter value group according to a preset condition.
[0064] Specifically, according to the second prediction accuracy rates corresponding to each parameter value group, each second prediction accuracy rate is screened and determined as the target group.
[0065] In one example, the second prediction accuracy corresponding to parameter value group 1-1 is 50%, and the second prediction accuracy corresponding to parameter value group 1-2 is 100%. According to the second prediction accuracy corresponding to each parameter value group, the target group is selected from each parameter value group as parameter value group 1-2.
[0066] S107: Determine the candidate model corresponding to the target group as the trained arrester fault prediction model.
[0067] Among them, the arrester fault prediction model can be used to describe a model for predicting arrester faults.
[0068] Specifically, a target group is selected from each parameter value group, and the candidate model corresponding to the target group is determined as the trained arrester fault prediction model.
[0069] In one example, the second prediction accuracy corresponding to parameter value group 1-1 is 50%, and the second prediction accuracy corresponding to parameter value group 1-2 is 100%. According to the second prediction accuracy corresponding to each parameter value group, the target group is selected from each parameter value group as parameter value group 1-2, and the candidate model corresponding to parameter value group 1-2 is determined as the trained arrester fault prediction model.
[0070] The technical solution of the embodiment of the present invention obtains a parameter set, combines each parameter value group with a classification module in the model, obtains an alternative model corresponding to each parameter value group, obtains different alternative models, and improves the accuracy of the training of the arrester fault prediction model through multidimensional data analysis. Through the alternative model corresponding to each parameter value group, each sample in the first sample set is processed to obtain the first prediction accuracy corresponding to each parameter value group. For each parameter value group, according to the first prediction accuracy corresponding to the parameter value group, the parameters of the feature extraction module in the alternative model are adjusted to obtain the target model corresponding to the parameter value group, and the training efficiency of the arrester fault prediction model is improved by screening and reducing redundant data. Through the target model corresponding to each parameter value group, each sample in the second sample set is processed to obtain the second prediction accuracy corresponding to each parameter value group. According to the second prediction accuracy corresponding to each parameter value group, the target group is screened out in each parameter value group, and the alternative model corresponding to the target group is determined as the trained arrester fault prediction model, and the data is further screened. The data is screened by multiple screening conditions, which improves the training efficiency of the arrester fault prediction model.
[0071] Optionally, each sample in the first sample set is processed by the alternative model corresponding to each parameter value group to obtain a first prediction accuracy rate corresponding to each parameter value group, wherein the sample includes: input data and true value data, including: extracting features from the samples in the first sample set by the feature extraction module in the alternative model corresponding to each parameter value group to obtain a feature vector corresponding to each sample; processing the feature vector of each sample by the classification module in the alternative model corresponding to each parameter value group to obtain a prediction result corresponding to each parameter value group; for each parameter value group, comparing the prediction result corresponding to the parameter value group with the corresponding true value data to obtain the first prediction accuracy rate corresponding to the parameter value group.
[0072] Among them, eigenvectors can be used to describe vectors whose directions remain unchanged under linear transformations.
[0073] Specifically, feature extraction is performed on samples in the first sample set through the feature extraction module in the alternative model corresponding to each parameter value group. The feature vectors corresponding to different samples are different, and the feature vectors corresponding to each sample are obtained. The feature vectors of each sample are processed through the classification module in the alternative model corresponding to each parameter value group to obtain the prediction results corresponding to each parameter value group. The classification module performs classification prediction of the prediction results of the samples according to the feature vectors of the samples. For each parameter value group, the prediction results corresponding to the parameter value group are compared with the corresponding true value data, and the first prediction accuracy corresponding to each parameter value group is determined by the ratio of the number of prediction results that are the same as the true value data to the total number of samples in the first sample set.
[0074] In one example, the parameter value groups are 1-1 and 1-2. The target model 1 corresponding to the value group 1-1 is f(x)=1 T The model corresponding to the x+1 classification module, the target model 2 corresponding to the parameter value group 1-2 is f(x)=1 T Model corresponding to the x+2 classification module. Sample 1: current 1 ampere, true value data is normal. Sample 2: current 2 amperes, true value data is faulty. The first sample set is {sample 1, current 1 ampere, normal; sample 2, current 2 amperes, faulty}. Through the feature extraction module in the alternative model corresponding to each parameter value group, feature extraction is performed on the samples in the first sample set to obtain feature vector 1 corresponding to sample 1 and feature vector 2 corresponding to sample 2. Through the classification module in the alternative model corresponding to each parameter value group, the feature vector of each sample is processed to obtain the prediction result corresponding to parameter value group 1-1, which is sample 1 fault and sample 2 fault, and the prediction result corresponding to parameter value group 1-2 is sample 1 normal and sample 2 fault. For each parameter value group, the prediction result corresponding to the parameter value group is compared with the corresponding true value data, and the first prediction accuracy corresponding to parameter value group 1-1 is 50%, and the first prediction accuracy corresponding to parameter value group 1-2 is 100%.
[0075] Through the feature extraction module in the alternative model corresponding to each parameter value group, the features of the samples in the first sample set are extracted to obtain the feature vectors corresponding to each sample, and targeted processing can be performed on samples with different feature vectors, thereby improving the accuracy of data processing. Through the classification module in the alternative model corresponding to each parameter value group, the feature vectors of each sample are processed to obtain the prediction results corresponding to each parameter value group. For each parameter value group, the prediction results corresponding to the parameter value group are compared with the corresponding true value data to obtain the first prediction accuracy corresponding to the parameter value group. The first prediction accuracy corresponding to different parameter value groups is obtained, which can realize the screening of parameter value groups, remove redundant data, and improve data processing efficiency.
[0076] Optionally, after the alternative model corresponding to the target group is determined as the trained arrester fault prediction model, it also includes: obtaining at least one arrester performance parameter corresponding to the arrester to be predicted and the arrester performance data corresponding to each arrester performance parameter; obtaining the time period to be predicted, the location to be predicted where the arrester to be predicted is located, and the type of arrester to be predicted; transmitting the time period to be predicted, the location to be predicted where the arrester to be predicted is located, the type of arrester to be predicted, each arrester performance parameter, and the arrester performance data corresponding to each arrester performance parameter to the arrester fault prediction model; the arrester fault prediction model is trained by the method as claimed in claims 1-5; through the feature extraction module of the arrester fault prediction model, feature extraction is performed on the arrester performance data corresponding to each arrester performance parameter of the arrester to be predicted to obtain feature vectors corresponding to each arrester performance data; through the classification module of the arrester fault prediction model, the feature vectors corresponding to each arrester performance data are processed to obtain prediction results corresponding to each arrester performance data; and the arrester fault prediction result is determined according to the prediction results corresponding to each arrester performance data.
[0077] Among them, the arrester performance parameters can be used to describe the performance data that can be used to predict the fault of the arrester. For example, the arrester performance parameters can be voltage or current, etc. The arrester performance data can be used to describe the data collected according to the arrester performance parameters. The time period to be predicted can be used to describe the time period of the arrester failure to be predicted. The location to be predicted where the arrester to be predicted is located can be used to describe the installation location of the arrester to be predicted for fault prediction. The type of the arrester to be predicted can be used to describe the type of arrester to be predicted for fault prediction.
[0078] Specifically, at least one arrester performance parameter corresponding to the arrester to be predicted and the arrester performance data corresponding to each arrester performance parameter are obtained, the time period to be predicted, the location to be predicted where the arrester to be predicted is located, and the type of the arrester to be predicted are obtained, and the arrester performance data corresponding to each arrester performance parameter and the time period to be predicted, the location to be predicted where the arrester to be predicted is located, the type of the arrester to be predicted, each arrester performance parameter, and the arrester performance data corresponding to each arrester performance parameter are transmitted to the arrester fault prediction model, and the arrester performance data corresponding to each arrester performance parameter of the arrester to be predicted is extracted through the feature extraction module of the arrester fault prediction model to obtain the feature vector corresponding to each arrester performance data. The feature vector corresponding to each arrester performance data is processed through the classification module of the arrester fault prediction model to obtain the prediction result corresponding to each arrester performance data. According to the prediction result corresponding to each arrester performance data, the arrester fault prediction result is determined.
[0079] In one example, at least one arrester performance parameter corresponding to the arrester to be predicted and the arrester performance data corresponding to each arrester performance parameter are obtained; the time period to be predicted, the location to be predicted where the arrester to be predicted is located, and the type of arrester to be predicted are obtained; the time period to be predicted, the location to be predicted where the arrester to be predicted is located, the type of arrester to be predicted, each arrester performance parameter, and the arrester performance data corresponding to each arrester performance parameter are transmitted to the arrester fault prediction model to train the arrester fault prediction model. The voltage and current data corresponding to the arrester to be predicted can be obtained, and the time period to be predicted is XX year XX month XX day XX hour 00 minutes-XX year XX month XX day XX hour 02 minutes, the location to be predicted where the arrester to be predicted is XX province XX city XX county, and the type of the arrester to be predicted is 10KV zinc oxide arrester, which are transmitted to the arrester fault prediction model to determine the arrester fault prediction result.
[0080] By obtaining at least one lightning arrester performance parameter corresponding to the lightning arrester to be predicted and the lightning arrester performance data corresponding to each lightning arrester performance parameter, the time period to be predicted, the location to be predicted where the lightning arrester to be predicted is located, and the type of the lightning arrester to be predicted are obtained, and the time period to be predicted, the location to be predicted where the lightning arrester to be predicted is located, the type of lightning arrester to be predicted, each lightning arrester performance parameter, and the lightning arrester performance data corresponding to each lightning arrester performance parameter are transmitted to the lightning arrester fault prediction model, and the lightning arrester fault prediction model is trained. Through multi-dimensional data training, the accuracy of the lightning arrester fault prediction model in predicting the arrester fault type is improved. Through the feature extraction module of the arrester fault prediction model, feature extraction is performed on the arrester performance data corresponding to each arrester performance parameter of the arrester to be predicted, and the feature vector corresponding to each arrester performance data is obtained. Through the classification module of the arrester fault prediction model, the feature vector corresponding to each arrester performance data is processed to obtain the prediction result corresponding to each arrester performance data. According to the prediction result corresponding to each arrester performance data, the arrester fault prediction result is determined. The data is feature analyzed through a variety of feature vectors, and the fault type is predicted more accurately, thereby improving the accuracy of fault type prediction.
[0081] Optional, the type of lightning arrester to be predicted includes: 10KV metal zinc oxide lightning arrester.
[0082] Among them, the lightning arrester is a device connected between the power line and the earth to allow the thundercloud to discharge to the earth and protect the electrical equipment.
[0083] Specifically, zinc oxide arrester is a new type of arrester, which is mainly composed of zinc oxide varistor. The 10KV metal zinc oxide arrester uses the good nonlinear volt-ampere characteristics of zinc oxide to make the current flowing through the arrester extremely small (microampere or milliampere level) at normal working voltage. When overvoltage acts, the resistance drops sharply, discharging the overvoltage energy to achieve the protection effect. The difference between this arrester and the traditional arrester is that it has no discharge gap, and uses the nonlinear characteristics of zinc oxide to play the role of current discharge and breaking. 10KV means that the rated voltage of the arrester is 10 kilovolts, that is, the arrester can be used in a 10 kilovolt power grid.
[0084] In one example, the arrester fault prediction model is used to predict the fault type of a 10KV metal zinc oxide arrester.
[0085] Embodiment 2
[0086] Figure 2 A flowchart of a method for training a lightning arrester fault prediction model provided by Embodiment 2 of the present invention. Based on the above embodiments, the present invention optimizes and improves the training operation of the lightning arrester fault prediction model.
[0087] Furthermore, "combining each parameter value group with the classification module in the model to obtain an alternative model corresponding to each parameter value group" is refined into "combining each parameter value group with the classification module in the model to obtain an alternative model corresponding to each parameter value group, and the alternative model is determined according to the kernel function and the penalty function; the parameter set includes parameter values of the kernel function parameters and parameter values of the penalty function" to improve the training operation of the arrester fault prediction model.
[0088] It should be noted that for the parts not described in detail in the embodiments of the present invention, reference may be made to the descriptions of other embodiments.
[0089] See also Figure 2 The training method of the arrester fault prediction model shown includes:
[0090] S201. Obtain a parameter set, where the parameter set includes multiple parameter value groups.
[0091] S202. According to each log to be detected, query the log template corresponding to each log to be detected, combine each parameter value group with the classification module in the model, and obtain the alternative model corresponding to each parameter value group. The alternative model is determined according to the kernel function and the penalty function; the parameter set includes the parameter value of the kernel function parameter and the parameter value of the penalty function.
[0092] Among them, the kernel function can be used to describe the function that maps input data to a high-dimensional feature space, and the penalty function can be used to describe the function that constrains the model training.
[0093] Specifically, according to each log to be detected, the log template corresponding to each log to be detected is queried to combine each parameter value group with the classification module in the model to obtain an alternative model corresponding to each parameter value group. The alternative model is determined according to the kernel function and the penalty function. Different kernel functions and penalty functions correspond to different alternative models. The parameter set includes the parameter values of the kernel function parameters and the parameter values of the penalty function.
[0094] In one example, the classification module is f(x)=w T x+b. In order to ensure the accuracy of classification and maximize the classification interval, the solution of the above function f(x) can be equivalently transformed into the following standard quadratic programming problem:
[0095]
[0096] st-[y i (w T x i +b)-1]≤0
[0097] withi=1,2,…,m
[0098] In order to prevent a single training data from having a large impact on the selection of the hyperplane, a slack variable is introduced, and the above quadratic programming problem is further written as:
[0099]
[0100] sty i (w T x i +b)-1+ξ i ≥0
[0101] ξ i ≥0
[0102] with i=1,2,…,m
[0103] By introducing the Lagrange multiplier α i , the above quadratic programming problem can be equivalently transformed into the following minimax problem:
[0104]
[0105] In addition, since the above equivalent problem is a convex optimization problem, the dual problem is further derived as follows:
[0106]
[0107] Taking the partial derivatives with respect to w and b and setting them to 0, we can obtain:
[0108]
[0109] Then substitute the above results into the dual problem and introduce the kernel function K, and then we can get the following optimization problem:
[0110]
[0111] α1,α2,…,α m ≥0.
[0112] Among them, the kernel function form adopted by the present invention is:
[0113]
[0114] Through further simplification, the above quadratic programming problem can be further equivalent to the following form:
[0115]
[0116] stKα=0
[0117] α≥0
[0118] First, define the penalty function as follows:
[0119]
[0120] Among them, N i =d i -J i α, And σ,p>0. Now substitute this penalty function into the above quadratic programming problem, and we can get equivalently:
[0121]
[0122] stKα=0
[0123] In order to obtain the weight w of the separation line, that is, the parameter α in the above formula, we now introduce the Lagrange multiplier method and first construct the Lagrange function as follows:
[0124]
[0125] According to the general practice of the Lagrange multiplier method, the partial derivatives of the Lagrange function L(α,λ) with respect to α and λ are obtained respectively and set to 0, and then we can get:
[0126]
[0127] It can be further simplified into the following matrix form:
[0128] Az=g
[0129] Now, by solving the above matrix equation, we can get α, which is the weight w mentioned above.
[0130]
[0131] Assuming that matrices z and g change with time t, the error function ε(t) can be further defined as:
[0132] ε(t)=Az(t)-g(t)
[0133] According to the variable parameter recursive neural network method, the following neural dynamics equation is constructed:
[0134]
[0135] Among them, γ>0 represents a scalar value, and the design parameter γe t It is used to dynamically adjust the convergence speed of the error function. When the error function ε(t) converges to 0, the weight w of the boundary function can be obtained, and further a standard classification function can be obtained.
[0136] S203. Process each sample in the first sample set by using the candidate model corresponding to each parameter value group to obtain a first prediction accuracy rate corresponding to each parameter value group; the first sample set includes at least one sample, and the sample includes: input data and true value data.
[0137] S204 . For each parameter value group, according to the first prediction accuracy rate corresponding to the parameter value group, adjust the parameters of the feature extraction module in the candidate model to obtain a target model corresponding to the parameter value group.
[0138] S205 . Process each sample in the second sample set by using the target model corresponding to each parameter value group to obtain a second prediction accuracy rate corresponding to each parameter value group.
[0139] S206: Filter out a target group from each parameter value group according to the second prediction accuracy rate corresponding to each parameter value group.
[0140] S207: Determine the candidate model corresponding to the target group as the trained arrester fault prediction model.
[0141] The embodiment of the present invention determines the alternative model according to the kernel function and the penalty function, the parameter set includes the parameter value of the kernel function parameter and the parameter value of the penalty function, the coefficients of the data items in the classification function are adjusted by the kernel function and the penalty function, and the accuracy of the training of the arrester fault prediction model is improved by adjusting the multi-dimensional data.
[0142] Optionally, obtaining a parameter set includes: obtaining a parameter value of at least one kernel function parameter and a parameter value of at least one penalty function; combining the parameter values of each kernel function parameter and the parameter values of each penalty function in pairs to generate at least one parameter value group; and determining each parameter value group as a parameter set.
[0143] Specifically, a parameter value of at least one kernel function parameter and a parameter value of at least one penalty function are obtained, and the obtaining method includes but is not limited to: mouse input or keyboard selection, etc. The parameter values of each kernel function parameter and the parameter values of each penalty function are combined in pairs to generate at least one parameter value group, and each parameter value group is determined as a parameter set.
[0144] In one example, the value of w can be 1 and 2 by selecting the mouse, and the value of b can be 1 and 2 by inputting the keyboard. The obtained parameter value groups are 1-1, 1-2, 2-1 and 2-2. The parameter set is {1-1, 1-2, 2-1, 2-2}.
[0145] By obtaining the parameter value of at least one kernel function parameter and the parameter value of at least one penalty function, the parameter values of each kernel function parameter and the parameter values of each penalty function are combined in pairs to generate at least one parameter value group, and each parameter value group is determined as a parameter set. By combining the parameter values of each kernel function parameter and the parameter values of each penalty function in pairs, the robustness of the data combination is improved, each group of parameter value groups is processed in a targeted manner, the training operation of the lightning arrester fault prediction model is refined, and the accuracy of the training of the lightning arrester fault prediction model is improved.
[0146] Optionally, based on the second prediction accuracy rates corresponding to each parameter value group, a target group is screened out from each parameter value group, including: sorting the second prediction accuracy rates corresponding to each parameter value group to determine the maximum prediction accuracy rate; based on the maximum prediction accuracy rate, screening from each parameter value group to determine the target group.
[0147] The maximum prediction accuracy value may be used to describe the value with the largest second prediction accuracy value among the second prediction accuracy values corresponding to each parameter value group.
[0148] Specifically, the second prediction accuracy rates corresponding to the parameter value groups are sorted to determine the maximum prediction accuracy rate, and the parameter value groups are screened according to the maximum prediction accuracy rate to determine the target group.
[0149] In one example, the second prediction accuracy corresponding to parameter value group 1-1 is 50%, and the second prediction accuracy corresponding to parameter value group 1-2 is 100%. The second prediction accuracy corresponding to each parameter value group is sorted, and the maximum prediction accuracy is determined to be 100%. According to the maximum prediction accuracy, each parameter value group is screened, and the target group is determined to be parameter value group 1-2.
[0150] By sorting the second prediction accuracy corresponding to each parameter value group, determining the maximum prediction accuracy, screening in each parameter value group according to the maximum prediction accuracy, determining the target group, removing redundant accuracy data, and improving the accuracy of the training of the arrester fault prediction model.
[0151] Embodiment 3
[0152] Figure 3 A schematic diagram of the structure of a lightning arrester fault prediction model training device provided in Embodiment 3 of the present invention. The embodiment of the present invention is applicable to the training of a lightning arrester fault prediction model, the device can execute a lightning arrester fault prediction model training method, and the device can be implemented in the form of hardware and / or software.
[0153] See also Figure 3The training device of the arrester fault prediction model shown includes: a set acquisition module 301, an alternative model acquisition module 302, a first prediction module 303, a target model acquisition module 304, a second prediction module 305, a target group screening module 306 and a prediction model determination module 307, wherein:
[0154] A set acquisition module 301 is used to acquire a parameter set, where the parameter set includes multiple parameter value groups;
[0155] The candidate model acquisition module 302 is used to combine each parameter value group with the classification module in the model to obtain the candidate model corresponding to each parameter value group;
[0156] The first prediction module 303 is used to process each sample in the first sample set through the candidate model corresponding to each parameter value group to obtain the first prediction accuracy corresponding to each parameter value group; the first sample set includes at least one sample, and the sample includes: input data and true value data;
[0157] A target model acquisition module 304 is used to adjust the parameters of the feature extraction module in the candidate model according to the first prediction accuracy corresponding to the parameter value group for each parameter value group, so as to obtain a target model corresponding to the parameter value group;
[0158] The second prediction module 305 is used to process each sample in the second sample set through the target model corresponding to each parameter value group to obtain a second prediction accuracy rate corresponding to each parameter value group;
[0159] A target group screening module 306 is used to screen out a target group from each parameter value group according to the second prediction accuracy rate corresponding to each parameter value group;
[0160] The prediction model determination module 307 is used to determine the candidate model corresponding to the target group as the trained arrester fault prediction model.
[0161] The technical solution of the embodiment of the present invention obtains a parameter set, combines each parameter value group with a classification module in the model, obtains an alternative model corresponding to each parameter value group, obtains different alternative models, and improves the accuracy of the training of the arrester fault prediction model through multidimensional data analysis. Through the alternative model corresponding to each parameter value group, each sample in the first sample set is processed to obtain the first prediction accuracy corresponding to each parameter value group. For each parameter value group, according to the first prediction accuracy corresponding to the parameter value group, the parameters of the feature extraction module in the alternative model are adjusted to obtain the target model corresponding to the parameter value group, and the training efficiency of the arrester fault prediction model is improved by screening and reducing redundant data. Through the target model corresponding to each parameter value group, each sample in the second sample set is processed to obtain the second prediction accuracy corresponding to each parameter value group. According to the second prediction accuracy corresponding to each parameter value group, the target group is screened out in each parameter value group, and the alternative model corresponding to the target group is determined as the trained arrester fault prediction model, and the data is further screened. The data is screened by multiple screening conditions, which improves the training efficiency of the arrester fault prediction model.
[0162] Optionally, the candidate model acquisition module 302 is specifically used to:
[0163] The candidate model is determined according to the kernel function and the penalty function; the parameter set includes parameter values of the kernel function parameters and parameter values of the penalty function.
[0164] Optionally, the collection acquisition module 301 is specifically used to:
[0165] Obtaining a parameter value of at least one kernel function parameter and a parameter value of at least one penalty function;
[0166] Combining the parameter values of each kernel function parameter and the parameter values of each penalty function in pairs to generate at least one parameter value group;
[0167] Each parameter value group is determined as a parameter set.
[0168] Optionally, the target group screening module 306 is specifically used to:
[0169] Sort the second prediction accuracy rates corresponding to the parameter value groups to determine the maximum prediction accuracy rate;
[0170] According to the maximum prediction accuracy, each parameter value group is screened to determine the target group.
[0171] Optionally, the first prediction module 303 includes:
[0172] A vector acquisition unit, configured to extract features from samples in the first sample set through a feature extraction module in the candidate model corresponding to each parameter value group, and obtain a feature vector corresponding to each sample;
[0173] A result acquisition unit is used to process the feature vector of each sample through the classification module in the candidate model corresponding to each parameter value group to obtain the prediction result corresponding to each parameter value group;
[0174] The accuracy acquisition unit is used to compare the prediction result corresponding to the parameter value group with the corresponding true value data for each parameter value group to obtain a first prediction accuracy corresponding to the parameter value group.
[0175] Optionally, the training device for the arrester fault prediction model further includes:
[0176] A performance data acquisition module, for acquiring at least one arrester performance parameter corresponding to the arrester to be predicted and arrester performance data corresponding to each arrester performance parameter after determining the candidate model corresponding to the target group as the trained arrester fault prediction model;
[0177] A prediction information acquisition module is used to obtain the time period to be predicted, the location to be predicted where the lightning arrester to be predicted is located, and the type of the lightning arrester to be predicted;
[0178] A data input module, used for transmitting the time period to be predicted, the location to be predicted of the lightning arrester to be predicted, the type of the lightning arrester to be predicted, the performance parameters of each lightning arrester and the lightning arrester performance data corresponding to each lightning arrester performance parameter to the lightning arrester fault prediction model; the lightning arrester fault prediction model is obtained by training the method as claimed in claims 1-5;
[0179] A vector extraction module is used to extract features of the arrester performance data corresponding to each arrester performance parameter of the arrester to be predicted through the feature extraction module of the arrester fault prediction model, and obtain feature vectors corresponding to each arrester performance data;
[0180] A result prediction module is used to process the characteristic vector corresponding to each arrester performance data through the classification module of the arrester fault prediction model to obtain the prediction result corresponding to each arrester performance data;
[0181] The result determination module is used to determine the arrester fault prediction result according to the prediction result corresponding to the performance data of each arrester.
[0182] Optionally, the prediction information acquisition module is specifically used to:
[0183] The types of lightning arresters to be predicted include: 10KV metal zinc oxide lightning arrester.
[0184] The training device for the lightning arrester fault prediction model provided in the embodiment of the present invention can execute the training method for the lightning arrester fault prediction model provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects for executing the training method for the lightning arrester fault prediction model.
[0185] Embodiment 4
[0186] Figure 4 A schematic structural diagram of a training device 400 that can be used to implement the arrester fault prediction model of an embodiment of the present invention is shown.
[0187] like Figure 4 As shown, the training device 400 of the arrester fault prediction model includes at least one processor 401, and a memory connected to the at least one processor 401, such as a read-only memory (ROM) 402, a random access memory (RAM) 403, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 401 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 402 or the computer program loaded from the storage unit 408 to the random access memory (RAM) 403. In RAM403, various programs and data required for the operation of the training device 400 of the arrester fault prediction model can also be stored. The processor 401, ROM402 and RAM403 are connected to each other via a bus 404. An input / output (I / O) interface 405 is also connected to the bus 404.
[0188] Multiple components in the training device 400 for lightning arrester fault prediction model are connected to the I / O interface 405, including: an input unit 406, such as a keyboard, a mouse, etc.; an output unit 407, such as various types of displays, speakers, etc.; a storage unit 408, such as a disk, an optical disk, etc.; and a communication unit 409, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 409 allows the training device 400 for lightning arrester fault prediction model to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0189] Processor 401 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of processor 401 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. Processor 401 performs the various methods and processes described above, such as a training method for a lightning arrester fault prediction model.
[0190] In some embodiments, the log anomaly detection method may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 408. In some embodiments, part or all of the computer program may be loaded and / or installed on the training device 400 of the arrester fault prediction model via the ROM 402 and / or the communication unit 409. When the computer program is loaded into the RAM 403 and executed by the processor 401, one or more steps of the training method of the arrester fault prediction model described above may be performed. Alternatively, in other embodiments, the processor 401 may be configured to execute the training method of the arrester fault prediction model by any other suitable means (e.g., by means of firmware).
[0191] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0192] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0193] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, 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 foregoing.
[0194] In order to provide interaction with the user, the system and technology described herein can be implemented on a training device for a lightning arrester fault prediction model, and the training method for the lightning arrester fault prediction model has: a display device for displaying information to the user (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor); and a keyboard and a pointing device (e.g., a mouse or a trackball), through which the user can provide input to the training method for the lightning arrester fault prediction model. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and the input from the user can be received in any form (including acoustic input, voice input, or tactile input).
[0195] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.
[0196] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The relationship between the client and the server is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or a cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS (Virtual Private Server) services.
[0197] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.
[0198] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A training method for a lightning arrester fault prediction model, characterized in that: The method comprises: Acquire a parameter set, the parameter set including a plurality of parameter value groups; Combining each of the parameter value groups with the classification module in the model to obtain an alternative model corresponding to each of the parameter value groups; Processing each sample in the first sample set by using the candidate model corresponding to each parameter value group to obtain a first prediction accuracy rate corresponding to each parameter value group; the first sample set includes at least one sample, and the sample includes: input data and true value data; For each of the parameter value groups, according to the first prediction accuracy rate corresponding to the parameter value group, adjusting the parameters of the feature extraction module in the candidate model to obtain a target model corresponding to the parameter value group; Processing each sample in the second sample set by using the target model corresponding to each parameter value group to obtain a second prediction accuracy rate corresponding to each parameter value group; Filtering out a target group from each of the parameter value groups according to the second prediction accuracy rate corresponding to each of the parameter value groups; The candidate model corresponding to the target group is determined as the trained arrester fault prediction model.
2. The method according to claim 1, characterized in that The samples in the first sample set are processed by the candidate models corresponding to the parameter value groups to obtain the first prediction accuracy corresponding to the parameter value groups; The first sample set includes at least one sample, and the sample includes: input data and true value data, including: Each sample in the first sample set is processed by the alternative model corresponding to each of the parameter value groups to obtain the first prediction accuracy corresponding to each of the parameter value groups; the first sample set includes at least one sample, and the sample includes: input data and true value data, and the alternative model is determined according to the kernel function and the penalty function; the parameter set includes the parameter value of the kernel function parameter and the parameter value of the penalty function.
3. The method according to claim 2, characterized in that The acquisition parameter set includes: Obtaining a parameter value of at least one kernel function parameter and a parameter value of at least one penalty function; Combining the parameter values of the kernel function parameters and the parameter values of the penalty functions in pairs to generate at least one parameter value group; The parameter value groups are determined as parameter sets.
4. The method according to claim 1, characterized in that: The step of selecting a target group from each of the parameter value groups according to the second prediction accuracy corresponding to each of the parameter value groups includes: Sorting the second prediction accuracy rates corresponding to the parameter value groups to determine the maximum prediction accuracy rate; According to the maximum value of the prediction accuracy, screening is performed in each of the parameter value groups to determine the target group.
5. The method according to claim 1, characterized in that The first sample set is processed by the candidate model corresponding to each parameter value group to obtain the first prediction accuracy corresponding to each parameter value group, wherein the sample includes: input data and true value data, including: Extracting features from samples in the first sample set by using a feature extraction module in the candidate model corresponding to each of the parameter value groups to obtain a feature vector corresponding to each of the samples; Processing the feature vectors of each sample by a classification module in the candidate model corresponding to each parameter value group to obtain a prediction result corresponding to each parameter value group; For each of the parameter value groups, the prediction result corresponding to the parameter value group is compared with the corresponding true value data to obtain a first prediction accuracy rate corresponding to the parameter value group.
6. The method according to claim 5, characterized in that After determining the candidate model corresponding to the target group as the trained arrester fault prediction model, the method further includes: Acquire at least one arrester performance parameter corresponding to the arrester to be predicted and arrester performance data corresponding to each arrester performance parameter; Obtaining a time period to be predicted, a location to be predicted where the lightning arrester to be predicted is located, and a type of the lightning arrester to be predicted; The time period to be predicted, the location to be predicted where the lightning arrester to be predicted is located, the type of the lightning arrester to be predicted, the performance parameters of each lightning arrester, and the lightning arrester performance data corresponding to each lightning arrester performance parameter are transmitted to a lightning arrester fault prediction model; the lightning arrester fault prediction model is obtained by training according to the method described in claims 1-5; Through the feature extraction module of the arrester fault prediction model, feature extraction is performed on the arrester performance data corresponding to each arrester performance parameter of the arrester to be predicted, so as to obtain a feature vector corresponding to each arrester performance data; Processing the characteristic vectors corresponding to the performance data of each arrester through the classification module of the arrester fault prediction model to obtain the prediction results corresponding to the performance data of each arrester; The arrester fault prediction result is determined according to the prediction results corresponding to the arrester performance data.
7. The method according to claim 6, characterized in that The types of lightning arresters to be predicted include: 10KV metal zinc oxide lightning arresters.
8. A training device for a lightning arrester fault prediction model, characterized in that: The device comprises: A set acquisition module, used to acquire a parameter set, wherein the parameter set includes a plurality of parameter value groups; An alternative model acquisition module, used for combining each of the parameter value groups with the classification module in the model to obtain an alternative model corresponding to each of the parameter value groups; A first prediction module is used to process each sample in a first sample set by using an alternative model corresponding to each parameter value group to obtain a first prediction accuracy rate corresponding to each parameter value group; the first sample set includes at least one sample, and the sample includes: input data and true value data; A target model acquisition module, for adjusting the parameters of the feature extraction module in the candidate model according to the first prediction accuracy corresponding to the parameter value group for each parameter value group, to obtain a target model corresponding to the parameter value group; A second prediction module, used to process each sample in the second sample set by using the target model corresponding to each parameter value group to obtain a second prediction accuracy rate corresponding to each parameter value group; A target group screening module, configured to screen out a target group from each of the parameter value groups according to the second prediction accuracy rate corresponding to each of the parameter value groups; The prediction model determination module is used to determine the candidate model corresponding to the target group as the trained arrester fault prediction model.
9. A training device for a lightning arrester fault prediction model, characterized in that: The training equipment of the arrester fault prediction model comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the method for training a lightning arrester fault prediction model according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the training method of the arrester fault prediction model according to any one of claims 1 to 7 when executed.
