A distribution network transmission line fault detection method and system

The fault detection element model is constructed through the convolutional neural network and the model-independent element learning algorithm, and combined with the line configuration information and historical fault data, it solves the problem that the existing technology is difficult to detect distribution network transmission line faults in extreme situations, and realizes the detection of extreme faults. Accurate identification and detection of types.

CN118275818BActive Publication Date: 2024-09-10HUBEI RONGHUI INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410384318.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-04-01
Publication Date
2024-09-10
Estimated Expiration
2044-04-01

AI Technical Summary

Technical Problem

Existing technology is difficult to identify and detect distribution network transmission line faults under extreme circumstances, resulting in huge economic losses if faults are not discovered in time.

Method used

Convolutional neural network and model-independent meta-learning algorithm are used to construct the initial fault detection meta-model. By obtaining line configuration information and real-time monitoring data, extreme fault parameters are generated, and combined with historical fault data sets for secondary training to build the target fault detection meta-model. , to identify extreme fault types.

Benefits of technology

It achieves accuracy and generalization of fault detection in extreme situations, can identify extreme fault types based on real-time monitoring data, and improves the accuracy and reliability of fault detection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118275818B
    Figure CN118275818B
Patent Text Reader

Abstract

The present invention provides a distribution network transmission line fault detection method and system, the method comprising the following steps: obtaining line configuration information and real-time monitoring data of a target transmission line, and generating extreme fault parameters; searching for historical fault data, and dividing all historical fault data into multiple historical fault data sets; constructing a metamodel training set and a metamodel test set according to multiple historical fault data sets; constructing an initial fault detection metamodel in combination with a convolutional neural network and a model-independent meta-learning algorithm; pre-training the initial fault detection metamodel in combination with the metamodel training set and the metamodel test set, optimizing the metamodel parameters and the optimization guidance parameters; retraining the initial fault detection metamodel in combination with the extreme fault parameters and the historical fault data set, and obtaining a trained target fault detection metamodel; inputting the real-time monitoring data into the target fault detection metamodel, and outputting the extreme fault detection result through the target fault detection metamodel. The present invention has the effect of being able to detect transmission line faults under extreme conditions.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of distribution network detection, and in particular relates to a distribution network transmission line fault detection method and system. Background Art

[0002] Distribution network transmission lines refer to power transmission devices that connect the power generation site and the power consumption site, and are used to transmit large amounts of electric energy. They are generally composed of transmission equipment such as power cables or power towers. Transmission lines are widely used in power systems of various sizes, including urban power grids, industrial power grids, and rural power grids. Distribution network transmission lines are an important part of the power system, and their normal operation is crucial to the stability and reliability of the power system. However, transmission lines are susceptible to various factors, including weather conditions, environmental pollution, biological activities, etc., which can lead to failures. Failures may cause power outages and have serious impacts on life and industrial production. Therefore, research on fault detection of transmission lines has also become relatively mature.

[0003] However, the research on fault detection of power transmission lines in the prior art often makes predictions based on certain quantities, and the predicted fault types are all common fault types. However, in reality, due to the extremely large laying range of some ultra-long power transmission lines, there is a small probability that extreme situations such as thunderstorms, tornadoes, and wildfires will occur within the laying range. Although the probability of these extreme situations is small, the impact on the transmission lines will be huge. Precisely because the probability of occurrence of extreme situations is small, the relative number of samples is also small. Therefore, the traditional fault detection methods in the prior art are difficult to identify faults in extreme situations. Once a line fault caused by an extreme situation occurs and the cause of the fault is not known in time, it will cause huge economic losses. Summary of the invention

[0004] The present invention provides a distribution network transmission line fault detection method and system to solve the problem that traditional fault detection methods are difficult to identify faults in extreme situations.

[0005] In a first aspect, the present invention provides a method for detecting a distribution network transmission line fault, the method comprising the following steps:

[0006] Acquire line configuration information and real-time monitoring data of a target transmission line, and generate extreme fault parameters based on the line configuration information and preset fault severity parameters;

[0007] Based on the line configuration information, a floating search is performed in a preset power grid fault database for historical fault data of the corresponding transmission line, the fault type of the historical fault data is used as a data label, and all the historical fault data are divided into multiple historical fault data sets according to the data label;

[0008] Constructing a metamodel training set and a metamodel test set according to the plurality of historical fault data sets, wherein all sample data in the metamodel training set and the metamodel test set do not have repeated data labels;

[0009] Building an initial fault detection meta-model by combining a convolutional neural network and a model-independent meta-learning algorithm, and initializing meta-model parameters and optimization guidance parameters in the initial fault detection meta-model;

[0010] Pre-training the initial fault detection metamodel in combination with the metamodel training set and the metamodel test set, and optimizing the metamodel parameters and the optimization guidance parameters;

[0011] Retraining the initial fault detection metamodel in combination with the extreme fault parameter and the historical fault data set to obtain a trained target fault detection metamodel;

[0012] The real-time monitoring data is input into the target fault detection metamodel, and the extreme fault detection result is output through the target fault detection metamodel.

[0013] Optionally, the pre-training the initial fault detection meta-model in combination with the meta-model training set and the meta-model test set, and optimizing the meta-model parameters and the optimization guidance parameters comprises the following steps:

[0014] Inputting the metamodel training set into the initial fault detection metamodel for model pre-training, and calculating the pre-training loss of the model pre-training by combining the metamodel parameters and the optimization guidance parameters;

[0015] updating the meta-model parameters to pre-trained meta-model parameters in combination with the pre-trained loss and the preset pre-trained gradient;

[0016] Based on the pre-trained metamodel parameters, the metamodel test set is input into the initial fault detection metamodel for model testing, and the test loss of the model test is calculated in combination with the pre-trained metamodel parameters and the pre-trained gradient;

[0017] The pre-training total loss of the initial fault detection meta-model in the pre-training process is calculated in combination with the pre-training loss and the test loss, and the meta-model parameters and the optimization guidance parameters are optimized according to the pre-training total loss.

[0018] Optionally, the optimization guidance parameters include gradient guidance parameters and constraint guidance parameters, and the calculation formula of the pre-training total loss is as follows:

[0019] ;

[0020] Where: represents the total loss of pre-training, represents the total amount of sample data in the metamodel training set or the metamodel test set, Indicates The metamodel parameters of the iteration, Indicates The gradient guidance parameters of the iterations, Indicates The constraint guidance parameters of the iteration, represents the pre-training gradient, represents a composite mapping, Indicates that when the metamodel parameter is When the initial fault detection metamodel is in the dataset The test loss on Indicates the first Sample data, Indicates the first Sample data.

[0021] Optionally, the second training of the initial fault detection metamodel in combination with the extreme fault parameter and the historical fault data set to obtain a trained target fault detection metamodel comprises the following steps:

[0022] Using the extreme fault parameter to select a plurality of historical special fault data from the plurality of historical fault data sets, and integrating the plurality of historical special fault data into a historical special fault data set;

[0023] Based on a preset noise data set and by using a generative adversarial network, the historical special fault data set is expanded to obtain an augmented historical special fault data set;

[0024] The initial fault detection meta-model is trained again by using the augmented historical special fault data set to obtain a trained target fault detection meta-model.

[0025] Optionally, the step of expanding the historical special fault dataset based on a preset noise dataset and using a generative adversarial network to obtain an augmented historical special fault dataset comprises the following steps:

[0026] Initializing a preset generative adversarial network, wherein the generative adversarial network includes a generator, a discriminator, and an optimizer;

[0027] Inputting the historical special fault data set and the preset noise data set into the generative adversarial network, and using the stochastic gradient method to calculate the adversarial network loss of the generative adversarial network;

[0028] Based on the adversarial network loss and by the optimizer, a generator parameter in the generator and a discriminator parameter in the discriminator are updated;

[0029] The historical special fault data set is synchronously expanded by iteratively updating the generator parameters and the discriminator parameters to obtain an augmented historical special fault data set.

[0030] Optionally, the adversarial network loss includes the generator loss of the generator and the discriminator loss of the discriminator, and the calculation formula of the adversarial network loss is as follows:

[0031] ;

[0032] Where: represents the adversarial network loss, represents the discriminator loss, represents the generator loss, represents the total amount of data in the historical special fault data set or the noise data set, Denotes the historical special fault data set {D}_{h}=\left [ {{d}_{1},{d}_{2},...,{d}_{m}} \right ] Middle Historical special fault data, Represents the noise data set Z=\left [ {{z}_{1},{z}_{2},...,{z}_{m}} \right ] Middle Noise data, represents the discriminator, Represents the generator.

[0033] Optionally, the second training of the initial fault detection metamodel by using the augmented historical special fault data set to obtain a trained target fault detection metamodel comprises the following steps:

[0034] Dividing the augmented historical special fault data set into a metamodel auxiliary set, a metamodel support set and a metamodel query set;

[0035] generating a meta-task by combining the meta-model support set and the meta-model query set;

[0036] Retraining the initial fault detection metamodel in combination with the metamodel auxiliary set and the metatask, and updating the metamodel parameters by calculating the multi-classification cross entropy loss of the secondary training;

[0037] The total training loss of the initial fault detection meta-model is obtained by weighted calculation based on the multi-classification cross entropy loss, the adversarial network loss and the pre-training total loss;

[0038] The training of the initial fault detection metamodel is completed based on the total training loss to obtain a trained target fault detection metamodel.

[0039] Optionally, the total training loss is calculated as follows:

[0040] ;

[0041] Where: represents the total training loss, represents the total loss of pre-training, represents the adversarial network loss, represents the multi-classification cross entropy loss, , , , are loss weights.

[0042] Optionally, the target transmission line includes a plurality of line sections, and data acquisition devices are preset at both ends of each of the line sections. After inputting the real-time monitoring data into the target fault detection metamodel and outputting the extreme fault detection result through the target fault detection metamodel, the following steps are also included:

[0043] If the extreme fault detection result is that the target power transmission line has an extreme fault, the section current data and the section voltage data of all the line sections are collected by the data collection device;

[0044] Collecting the bus current and bus voltage of the target power transmission line through the data acquisition devices at both ends of the target power transmission line;

[0045] Calculate the current angle of each of the line sections by combining the bus current and the section current data, and calculate the voltage angle of each of the line sections by combining the bus voltage and the section voltage data;

[0046] Taking the absolute value of the difference between the current angle and the voltage angle as the voltage-current angle difference of the line section;

[0047] The line section where the voltage-current angle difference exceeds a preset angle difference threshold is located as an abnormal line section where the extreme fault occurs in the target power transmission line.

[0048] In a second aspect, the present invention further provides a distribution network transmission line fault detection system, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the distribution network transmission line fault detection method as described in the first aspect is implemented.

[0049] The beneficial effects of the present invention are:

[0050] The distribution network transmission line fault detection method adopted by the present invention comprises the following steps: obtaining line configuration information and real-time monitoring data of the target transmission line, generating extreme fault parameters based on the line configuration information and according to preset fault degree parameters; floatingly searching for historical fault data of the corresponding transmission line in a preset power grid fault database based on the line configuration information, taking the fault type of the historical fault data as a data label, and dividing all historical fault data into multiple historical fault data sets according to the data label; constructing a metamodel training set and a metamodel test set according to multiple historical fault data sets; constructing an initial fault detection metamodel by combining a convolutional neural network and a model-independent meta-learning algorithm, initializing metamodel parameters and optimization guidance parameters in the initial fault detection metamodel; pre-training the initial fault detection metamodel by combining the metamodel training set and the metamodel test set, optimizing the metamodel parameters and optimization guidance parameters; retraining the initial fault detection metamodel by combining the extreme fault parameters and the historical fault data set to obtain a trained target fault detection metamodel; inputting the real-time monitoring data into the target fault detection metamodel, and outputting the extreme fault detection result through the target fault detection metamodel. Through the execution of the above steps, the present invention constructs a small sample data set under extreme conditions through retrieval, screening, expansion and other steps, and uses the small sample data set to train the constructed fault detection metamodel, so that the fault detection metamodel has a certain generalization and can accurately identify the extreme fault types under extreme conditions according to the real-time monitoring data of the target transmission line. BRIEF DESCRIPTION OF THE DRAWINGS

[0051] Figure 1 It is a flow chart of a method for detecting a distribution network transmission line fault in one embodiment of the present application.

[0052] Figure 2 This is a conceptual diagram of a metamodel in one of the implementation modes of the present application.

[0053] Figure 3 This is a framework flow chart of a distribution network transmission line fault detection method in one of the implementation modes of the present application. DETAILED DESCRIPTION

[0054] The following will be combined with the drawings in the embodiments of the present application to clearly describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments in the present application belong to the scope of protection of this application.

[0055] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.

[0056] Figure 1 FIG. 1 is a flow chart of a method for detecting a fault in a power distribution network transmission line in an embodiment. It should be understood that although Figure 1 The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, Figure 1 At least part of the steps in the above method may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be executed in turn or alternately with other steps or at least part of the sub-steps or stages of other steps. Figure 1 As shown, a distribution network transmission line fault detection method disclosed in the present invention specifically includes the following steps:

[0057] S101. Obtain line configuration information and real-time monitoring data of a target transmission line, and generate extreme fault parameters based on the line configuration information and preset fault severity parameters.

[0058] Among them, the target transmission line refers to the transmission line that needs to be tested for extreme faults. The line configuration information includes hardware configuration information such as line length, conductor type, tower type, suspension method, insulator string configuration, and electrical parameter information such as rated voltage, resistance, reactance, capacitance, and rated current. Based on the characteristics of extreme situations such as thunderstorms, hail, tornadoes, and wildfires, the impact of different extreme situations on transmission lines, and other factors, the fault severity parameters are determined in combination with expert experience, such as the multiple of short-circuit current, the duration and amplitude of overvoltage, etc. The magnitude of the fault severity parameter is positively correlated with the magnitude of the impact of the transmission line on the extreme situation fault. According to the influence of extreme weather, determine the possible fault types, such as conductor breakage, insulator flashover, tower collapse, etc. A fault model is defined for each fault type, which should be able to describe the electrical characteristics of the fault, such as short-circuit current, overvoltage, etc. The line configuration information and fault model are used to calculate the extreme fault parameters that may occur in extreme situations. Considering the randomness of extreme situations, methods such as Monte Carlo simulation can be used to generate a series of possible extreme fault parameters.

[0059] S102. Based on the line configuration information, a floating search is performed in a preset power grid fault database for historical fault data of the corresponding transmission line, the fault type of the historical fault data is used as a data label, and all the historical fault data are divided into multiple historical fault data sets according to the data label.

[0060] Among them, a large number of historical fault data of different transmission lines are pre-stored in the preset power grid fault database, and the historical fault data is the transmission line data detected when the transmission line has a historical fault. First, accurate retrieval is performed based on the hardware configuration information in the line configuration information, and other transmission lines in the power grid fault database with similar hardware configuration to the target transmission line are locked. Then, a floating search is further performed based on the electrical parameter information in the line configuration information. Specifically, any number of electrical parameter data in the electrical parameter information are floated within a preset floating range, and then all electrical parameter data are combined to retrieve a transmission line that is more similar to the target transmission line from other similar transmission lines, and the historical fault data of the more similar transmission line is extracted from the power grid fault database, mainly based on the historical fault data related to the target transmission line in the line configuration information. The fault type of the historical fault data is used as a data label, and all historical fault data are divided into multiple historical fault data sets according to the data label to facilitate subsequent model training and testing.

[0061] S103. Construct a meta-model training set and a meta-model test set based on multiple historical fault data sets.

[0062] Among them, all sample data in the meta-model training set and meta-model test set do not have repeated data labels. Meta-model usually refers to a model that can adapt to multiple tasks or data sets. In this step, the datasets for training and testing are constructed from the historical fault datasets divided in the previous step. In order to avoid model overfitting, ensure that the samples in the training set and test set do not have repeated fault type labels.

[0063] S104. Construct an initial fault detection meta-model by combining the convolutional neural network and the model-independent meta-learning algorithm, and initialize the meta-model parameters and optimization guidance parameters in the initial fault detection meta-model.

[0064] Among them, refer to Figure 2 , Figure 2 This is a schematic diagram of the metamodel concept. By constructing a fault detection metamodel, the detection model can be more easily adapted to small sample environments under extreme conditions, so that line fault detection under extreme conditions can be achieved after model training.

[0065] S105. Pre-train the initial fault detection metamodel in combination with the metamodel training set and the metamodel test set, and optimize the metamodel parameters and the optimization guidance parameters.

[0066] The initial fault detection metamodel is pre-trained using the metamodel training set and metamodel test set constructed in S103. The purpose of pre-training is to enable the model to learn the ability to extract features from data. By optimizing model parameters and optimizing guidance parameters, the generalization ability and prediction accuracy of the model are improved.

[0067] S106. Retrain the initial fault detection metamodel by combining the extreme fault parameters and the historical fault data set to obtain a trained target fault detection metamodel.

[0068] Among them, based on the pre-training, the meta-model is trained again in combination with the extreme fault parameters and historical fault data set generated in S101. This step is to make the model better adapt to the fault detection tasks in extreme situations and improve the detection performance of the model in specific extreme scenarios.

[0069] S107. Input the real-time monitoring data into the target fault detection metamodel, and output the extreme fault detection result through the target fault detection metamodel.

[0070] The real-time monitoring data is input into the trained target fault detection metamodel, and the model will output the extreme fault detection results. This step is to deploy the model into practical applications to monitor the status of the target transmission line in real time, and promptly detect and alarm the line faults caused by possible extreme situations.

[0071] The implementation principle of this embodiment is:

[0072] Reference Figure 3 The distribution network transmission line fault detection method adopted in this embodiment includes the following steps: obtaining the line configuration information and real-time monitoring data of the target transmission line, generating extreme fault parameters based on the line configuration information and according to the preset fault degree parameters; floatingly searching the historical fault data of the corresponding transmission line in the preset power grid fault database based on the line configuration information, taking the fault type of the historical fault data as the data label, and dividing all the historical fault data into multiple historical fault data sets according to the data label; constructing a metamodel training set and a metamodel test set according to the multiple historical fault data sets; combining the convolutional neural network and the model-independent meta-learning algorithm to construct an initial fault detection metamodel, and initialize the metamodel parameters and optimization guidance parameters in the initial fault detection metamodel; combining the metamodel training set and the metamodel test set to pre-train the initial fault detection metamodel, and optimize the metamodel parameters and optimization guidance parameters; combining the extreme fault parameters and the historical fault data set to retrain the initial fault detection metamodel to obtain the trained target fault detection metamodel; inputting the real-time monitoring data into the target fault detection metamodel, and outputting the extreme fault detection result through the target fault detection metamodel. In this embodiment, by executing the above steps, a small sample data set for extreme cases can be constructed by steps such as retrieval, screening, and expansion, and the constructed fault detection metamodel can be trained using the small sample data set, so that the fault detection metamodel has a certain degree of generalization and can accurately identify extreme fault types under extreme conditions based on the real-time monitoring data of the target transmission line.

[0073] In one implementation manner, step S105 specifically includes the following steps:

[0074] The metamodel training set is input into the initial fault detection metamodel for model pre-training, and the pre-training loss of the model pre-training is calculated by combining the metamodel parameters and the optimization guidance parameters;

[0075] Update the meta-model parameters to the pre-trained meta-model parameters by combining the pre-trained loss and the preset pre-trained gradient;

[0076] Based on the pre-trained metamodel parameters, the metamodel test set is input into the initial fault detection metamodel for model testing, and the test loss of the model test is calculated by combining the pre-trained metamodel parameters and the pre-trained gradients;

[0077] The pre-training loss and the test loss are combined to calculate the total pre-training loss of the initial fault detection meta-model during the pre-training process, and the meta-model parameters and the optimization guidance parameters are optimized according to the total pre-training loss.

[0078] In this embodiment, the metamodel training set contains data of multiple different fault types, and each type of data can be regarded as a separate task. The model learns the basic patterns of fault detection through these tasks. The pre-training loss is calculated by comparing the model's predictions with the actual data labels. This loss measures the performance of the model, and the goal is to minimize this loss. The metamodel parameters are then updated to the pre-trained metamodel parameters in combination with the pre-trained loss and the preset pre-trained gradient. The calculation formula for parameter update is as follows:

[0079] ;

[0080] Where: Represents the pre-trained meta-model parameters.

[0081] Then, the metamodel test set is input into the pre-trained fault detection metamodel to test the pre-trained metamodel parameters, and the test loss is obtained by averaging. Finally, the pre-training total loss is calculated by combining the pre-training loss and the test loss. This total loss is used to further optimize the metamodel parameters and optimization guidance parameters. The optimization guidance parameters include gradient guidance parameters and constraint guidance parameters. The calculation formula for the pre-training total loss is as follows:

[0082] ;

[0083] Where: represents the total pre-training loss, Represents the total amount of sample data in the metamodel training set or metamodel test set, Indicates Metamodel parameters for iterations, Indicates The gradient guidance parameters of the iteration, Indicates The constraint guidance parameters for the iteration, represents the pre-training gradient, represents a composite mapping, Indicates that when the metamodel parameter is When the initial fault detection metamodel is in the dataset The test loss on represents the first Sample data, Represents the first Sample data.

[0084] The above steps may involve multiple iterations, each of which updates the model parameters and gradually improves the performance of the model on the training set and the test set. This training process is iterative, and the goal is to find a set of parameters that not only performs well on the current task, but can also quickly adapt to new fault detection tasks. This is the core advantage of the meta-learning method, that is, it aims to train a model that can quickly adapt to new tasks.

[0085] In one implementation manner, step S106 specifically includes the following steps:

[0086] Using extreme fault parameters to filter out multiple historical special fault data from multiple historical fault data sets, and integrating the multiple historical special fault data into a historical special fault data set;

[0087] Based on the preset noise data set, the historical special fault data set is expanded by generating adversarial networks to obtain an augmented historical special fault data set.

[0088] The initial fault detection metamodel is trained again by augmenting the historical special fault dataset to obtain the trained target fault detection metamodel.

[0089] In this embodiment, since the extreme fault parameters describe the characteristics of extreme faults, such as the scale, type, and duration of the fault, the extreme fault parameters can be used to filter out the historical special fault data closest to these extreme fault parameters from the existing multiple historical fault data sets. The multiple historical special fault data sets are integrated into a historical special fault data set, and the historical special fault data set is used for model training to ensure that the model can handle extreme situations.

[0090] Generative Adversarial Network (GAN): A deep learning model consisting of two parts: a generator (for generating data) and a discriminator (for distinguishing between real data and data generated by the generator). Through training, the generator learns to create more and more realistic data. In order to overcome the problem that the amount of historical special fault data may be insufficient, a generative adversarial network (GAN) is used to generate more similar data to expand the data set. The generative adversarial network can convert the preset noise data into synthetic data similar to the real data, and finally obtain a larger augmented historical special fault data set.

[0091] Secondary training of the initial fault detection metamodel by augmenting the historical special fault dataset is different from the initial model training because it focuses on using the augmented dataset, especially data containing extreme fault conditions, which helps the model to accurately detect faults in the face of rare or extreme events. After secondary training, the model is better able to identify and respond to extreme fault conditions, improving the robustness and reliability of the fault detection system. Through these steps, the fault detection model is not only able to handle routine fault conditions, but also to identify and respond to extreme faults that may cause serious consequences. This approach increases the generalization ability and accuracy of the model by introducing more fault samples and scenarios in model training.

[0092] In one implementation manner, the step of expanding the historical special fault data set based on the preset noise data set and by generating an adversarial network to obtain an augmented historical special fault data set specifically includes the following steps:

[0093] Initialize the preset generative adversarial network, which includes a generator, a discriminator, and an optimizer;

[0094] The historical special fault data set and the preset noise data set are input into the generative adversarial network, and the adversarial network loss of the generative adversarial network is calculated using the stochastic gradient method;

[0095] Based on the adversarial network loss and through the optimizer, the generator parameters in the generator and the discriminator parameters in the discriminator are updated;

[0096] The historical special fault dataset is synchronously expanded by iteratively updating the generator parameters and the discriminator parameters to obtain an augmented historical special fault dataset.

[0097] In this embodiment, the generator is one of the components of the GAN and is responsible for generating synthetic data that looks like real data. The generator usually receives a random noise vector as input and generates data through a neural network. The discriminator is another part of the GAN, whose task is to distinguish between the data generated by the generator and the data in the real data set. The discriminator is usually a classification network that outputs a probability value indicating the probability that the input data is real. The optimizer is an algorithm used to adjust the parameters in the generator and discriminator, such as gradient descent, Adam or RMSprop. The optimizer updates the network parameters according to the gradient of the loss function. By initializing the generative adversarial network, the network structure and initial parameters of the generator and discriminator are initially set, and the optimizer is configured.

[0098] The historical special fault dataset provides real data samples, and the preset noise dataset is provided to the generator to generate synthetic data. The historical special fault dataset and the preset noise dataset are input into the generative adversarial network, and the adversarial network loss of the generative adversarial network is calculated using the stochastic gradient method. The stochastic gradient method is an optimization algorithm used to update network parameters. In each iteration, it uses a small batch of data (batch) to estimate the gradient of the loss function and then updates the parameters.

[0099] The adversarial network loss includes the generator loss of the generator and the discriminator loss of the discriminator. The calculation formula of the adversarial network loss is as follows:

[0100]

[0101] Where: represents the adversarial network loss, represents the discriminator loss, represents the generator loss, Represents the total amount of data in the historical special fault data set or noise data set, Denotes the historical special fault data set {D}_{h}=\left [ {{d}_{1},{d}_{2},...,{d}_{m}} \right ] Middle Historical special fault data, Represents the noise data set Z=\left [ {{z}_{1},{z}_{2},...,{z}_{m}} \right ] Middle Noise data, represents the discriminator, Represents a generator.

[0102] Based on the calculated loss, the optimizer adjusts the parameters of the generator and the discriminator so that the generator generates more realistic data and the discriminator better distinguishes between real data and generated data. The parameters of the generator and the discriminator are continuously updated through the above process, and each iteration attempts to improve the quality of the generated data and the accuracy of the discriminator. In each iteration, the synthetic data generated by the generator is added to the augmented historical special fault dataset, so that the dataset can be continuously expanded. Through the above steps, GAN learns how to generate synthetic data that is similar to real historical special fault data, which helps to solve the problem of insufficient data that may exist in the original dataset. Ultimately, the augmented dataset contains enough samples to facilitate the training of a more robust fault detection model.

[0103] In one implementation manner, the step of training the initial fault detection metamodel twice by augmenting the historical special fault data set to obtain the trained target fault detection metamodel specifically includes the following steps:

[0104] The augmented historical special fault data set is divided into a metamodel auxiliary set, a metamodel support set and a metamodel query set;

[0105] Generate meta-tasks by combining the meta-model support set and the meta-model query set;

[0106] The initial fault detection metamodel is trained again by combining the metamodel auxiliary set and metatask, and the metamodel parameters are updated by calculating the multi-classification cross entropy loss of the secondary training.

[0107] The total training loss of the initial fault detection meta-model is calculated by combining the multi-classification cross entropy loss, adversarial network loss and pre-training total loss.

[0108] The training of the initial fault detection metamodel is completed based on the total training loss, and the trained target fault detection metamodel is obtained.

[0109] In this embodiment, the augmented historical special fault data set is divided into three parts: a meta-model auxiliary set (Meta-train Set), a meta-model support set (Meta-support Set) and a meta-model query set (Meta-querySet), wherein the meta-model auxiliary set is used to train the basic knowledge of the meta-model, the meta-model support set is used to simulate the training data of new tasks in the meta-learning process, and the meta-model query set data is used to simulate the test data of new tasks in the meta-learning process to help evaluate the performance of the model after learning new tasks.

[0110] Meta-tasks are generated by combining the meta-model support set and the meta-model query set. Each meta-task is a new task that includes support set and query set simulation. In meta-learning, the model uses the support set for rapid adaptation and tests its adaptability on the query set. Therefore, the secondary training of the initial fault detection meta-model can be completed using the meta-model auxiliary set and meta-tasks. The multi-classification cross entropy loss in the secondary training process is calculated. The multi-classification cross entropy loss is used for multi-classification problems. The multi-classification cross entropy loss can measure the difference between the probability distribution predicted by the model and the probability distribution of the true label.

[0111] Finally, the total training loss of the initial fault detection meta-model is obtained by combining the multi-classification cross entropy loss, adversarial network loss and pre-training total loss. The calculation formula of the total training loss is as follows:

[0112] ;

[0113] Where: represents the total training loss, represents the total pre-training loss, represents the adversarial network loss, represents the multi-classification cross entropy loss, , , , are loss weights.

[0114] In one embodiment, the target transmission line includes a plurality of line sections, and data acquisition devices are preset at both ends of each line section. After step S107, the following steps are also included:

[0115] If the extreme fault detection result is that an extreme fault occurs in the target transmission line, the section current data and section voltage data of all line sections are collected by the data acquisition device;

[0116] Collecting bus current and bus voltage of the target transmission line through data acquisition devices at both ends of the target transmission line;

[0117] The current angle of each line section is calculated by combining the bus current and the section current data, and the voltage angle of each line section is calculated by combining the bus voltage and the section voltage data;

[0118] The absolute value of the difference between the current angle and the voltage angle is taken as the voltage-current angle difference of the line section;

[0119] The line section where the voltage-current angle difference exceeds a preset angle difference threshold is located as an abnormal line section where an extreme fault occurs in the target transmission line.

[0120] In this embodiment, when the extreme fault detection result is an extreme fault in the target transmission line, the fault data can be collected in real time by the data acquisition device set on the line section, so as to quickly locate the section where the extreme fault occurs, and then realize the rapid emergency treatment of the extreme fault. Specifically, the data acquisition device is installed on each section of the transmission line for real-time monitoring of the current and voltage of each line section. The data acquisition devices located at both ends of the transmission line are used to collect the total current and total voltage of the entire transmission line. The current angle of each line section is calculated in combination with the bus current and the section current data. The current angle refers to the phase angle of the current waveform relative to the reference sine wave (usually the reference frequency of the power grid, such as 50Hz or 60Hz). By comparing the phase difference between the bus current and the section current, the current angle of each line section can be obtained. The voltage angle of each line section is calculated in combination with the bus voltage and the section voltage data. The voltage angle refers to the phase angle of the voltage waveform relative to the same reference sine wave. Similarly, by comparing the phase difference between the bus voltage and the section voltage, the voltage angle of each line section can be obtained.

[0121] The absolute value of the difference between the current angle and the voltage angle is taken as the voltage-current angle difference of the line section. The phase difference between voltage and current is usually fixed in a normally operating line. When a fault occurs, the voltage-current angle difference of the affected section will change, because the impedance change caused by the fault will affect the phase relationship between current and voltage. A threshold for the voltage-current angle difference is set in advance. When the calculated angle difference exceeds this threshold, it indicates that there may be an abnormality in the line section. All calculated voltage-current angle differences will be checked. If they exceed the threshold, the line section is located as abnormal, that is, a line section with an extreme fault.

[0122] The present invention also discloses a distribution network transmission line fault detection system, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the distribution network transmission line fault detection method described in any one of the above embodiments is implemented.

[0123] Among them, the processor can adopt a central processing unit (CPU). Of course, according to actual usage, other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. can also be adopted. The general-purpose processor can adopt a microprocessor or any conventional processor, etc., and this application does not impose any restrictions on this.

[0124] Among them, the memory can be an internal storage unit of a computer device, such as a hard disk or memory of a computer device, or an external storage device of a computer device, such as a plug-in hard disk, a smart memory card (SMC), a secure digital card (SD) or a flash memory card (FC) equipped on the computer device, and the memory can also be a combination of an internal storage unit and an external storage device of a computer device. The memory is used to store computer programs and other programs and data required by the computer device. The memory can also be used to temporarily store data that has been output or is to be output, and this application does not impose any restrictions on this.

[0125] A person skilled in the art should understand that the discussion of any of the above embodiments is merely illustrative and is not intended to imply that the scope of protection of the present application is limited to these examples. In line with the concept of the present application, the technical features in the above embodiments or different embodiments may be combined, the steps may be implemented in any order, and there are many other variations of different aspects of one or more embodiments of the present application as above, which are not provided in detail for the sake of simplicity.

[0126] One or more embodiments of the present application are intended to cover all such substitutions, modifications and variations that fall within the broad scope of the present application. Therefore, any omissions, modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of one or more embodiments of the present application should be included in the protection scope of the present application.

Claims

1. A distribution network transmission line fault detection method, characterized in that: The steps include: Acquire line configuration information and real-time monitoring data of a target transmission line, and generate extreme fault parameters based on the line configuration information and preset fault severity parameters; Based on the line configuration information, a floating search is performed in a preset power grid fault database for historical fault data of the corresponding transmission line, the fault type of the historical fault data is used as a data label, and all the historical fault data are divided into multiple historical fault data sets according to the data label; Constructing a metamodel training set and a metamodel test set according to the plurality of historical fault data sets, wherein all sample data in the metamodel training set and the metamodel test set do not have repeated data labels; Building an initial fault detection meta-model by combining a convolutional neural network and a model-independent meta-learning algorithm, and initializing meta-model parameters and optimization guidance parameters in the initial fault detection meta-model; Pre-training the initial fault detection metamodel in combination with the metamodel training set and the metamodel test set, and optimizing the metamodel parameters and the optimization guidance parameters; Retraining the initial fault detection metamodel in combination with the extreme fault parameter and the historical fault data set to obtain a trained target fault detection metamodel; The real-time monitoring data is input into the target fault detection metamodel, and the extreme fault detection result is output through the target fault detection metamodel.

2. The method for detecting a distribution network transmission line fault according to claim 1, characterized in that: The pre-training of the initial fault detection meta-model in combination with the meta-model training set and the meta-model test set, and the optimization of the meta-model parameters and the optimization guidance parameters include the following steps: Inputting the metamodel training set into the initial fault detection metamodel for model pre-training, and calculating the pre-training loss of the model pre-training by combining the metamodel parameters and the optimization guidance parameters; updating the meta-model parameters to pre-trained meta-model parameters in combination with the pre-trained loss and the preset pre-trained gradient; Based on the pre-trained metamodel parameters, the metamodel test set is input into the initial fault detection metamodel for model testing, and the test loss of the model test is calculated in combination with the pre-trained metamodel parameters and the pre-trained gradient; The pre-training total loss of the initial fault detection meta-model in the pre-training process is calculated in combination with the pre-training loss and the test loss, and the meta-model parameters and the optimization guidance parameters are optimized according to the pre-training total loss.

3. The method for detecting a distribution network transmission line fault according to claim 2, characterized in that: The optimization guidance parameters include gradient guidance parameters and constraint guidance parameters, and the calculation formula of the total loss of pre-training is as follows: ; Where: represents the total loss of pre-training, represents the total amount of sample data in the metamodel training set or the metamodel test set, Indicates The metamodel parameters of the iteration, Indicates The gradient guidance parameters of the iterations, Indicates The constraint guidance parameters of the iteration, represents the pre-training gradient, represents a composite mapping, Indicates that when the metamodel parameter is When the initial fault detection metamodel is in the dataset The test loss on Indicates the first Sample data, Indicates the first Sample data.

4. The method for detecting a distribution network transmission line fault according to claim 2, characterized in that: The step of retraining the initial fault detection metamodel by combining the extreme fault parameters and the historical fault data set to obtain a trained target fault detection metamodel comprises the following steps: Using the extreme fault parameter to select a plurality of historical special fault data from the plurality of historical fault data sets, and integrating the plurality of historical special fault data into a historical special fault data set; Based on a preset noise data set and by using a generative adversarial network, the historical special fault data set is expanded to obtain an augmented historical special fault data set; The initial fault detection meta-model is trained again by using the augmented historical special fault data set to obtain a trained target fault detection meta-model.

5. The method for detecting a distribution network transmission line fault according to claim 4, characterized in that: The method of expanding the historical special fault data set based on the preset noise data set and by generating an adversarial network to obtain an augmented historical special fault data set includes the following steps: Initializing a preset generative adversarial network, wherein the generative adversarial network includes a generator, a discriminator, and an optimizer; Inputting the historical special fault data set and the preset noise data set into the generative adversarial network, and using the stochastic gradient method to calculate the adversarial network loss of the generative adversarial network; Based on the adversarial network loss and by the optimizer, a generator parameter in the generator and a discriminator parameter in the discriminator are updated; The historical special fault data set is synchronously expanded by iteratively updating the generator parameters and the discriminator parameters to obtain an augmented historical special fault data set.

6. The method for detecting a distribution network transmission line fault according to claim 5, characterized in that: The adversarial network loss includes the generator loss of the generator and the discriminator loss of the discriminator. The calculation formula of the adversarial network loss is as follows: ; Where: represents the adversarial network loss, represents the discriminator loss, represents the generator loss, represents the total amount of data in the historical special fault data set or the noise data set, Denotes the historical special fault data set {D}_{h}=\left [ {{d}_{1},{d}_{2},...,{d}_{m}} \right ] Middle Historical special fault data, Represents the noise data set Z=\left [ {{z}_{1},{z}_{2},...,{z}_{m}} \right ] Middle Noise data, represents the discriminator, Represents the generator.

7. The method for detecting a distribution network transmission line fault according to claim 5, characterized in that: The second training of the initial fault detection metamodel by the augmented historical special fault data set to obtain the trained target fault detection metamodel comprises the following steps: Dividing the augmented historical special fault data set into a metamodel auxiliary set, a metamodel support set and a metamodel query set; generating a meta-task by combining the meta-model support set and the meta-model query set; Retraining the initial fault detection metamodel in combination with the metamodel auxiliary set and the metatask, and updating the metamodel parameters by calculating the multi-classification cross entropy loss of the secondary training; The total training loss of the initial fault detection meta-model is obtained by weighted calculation based on the multi-classification cross entropy loss, the adversarial network loss and the pre-training total loss; The training of the initial fault detection metamodel is completed based on the total training loss to obtain a trained target fault detection metamodel.

8. The method for detecting a distribution network transmission line fault according to claim 7, characterized in that: The calculation formula for the total training loss is as follows: ; Where: represents the total training loss, represents the total loss of pre-training, represents the adversarial network loss, represents the multi-classification cross entropy loss, , , , are loss weights.

9. The method for detecting a distribution network transmission line fault according to claim 1, characterized in that: The target power transmission line includes a plurality of line sections, and data acquisition devices are preset at both ends of each of the line sections. After inputting the real-time monitoring data into the target fault detection metamodel and outputting the extreme fault detection result through the target fault detection metamodel, the following steps are also included: If the extreme fault detection result is that the target power transmission line has an extreme fault, the section current data and the section voltage data of all the line sections are collected by the data collection device; Collecting the bus current and bus voltage of the target power transmission line through the data acquisition devices at both ends of the target power transmission line; Calculate the current angle of each of the line sections by combining the bus current and the section current data, and calculate the voltage angle of each of the line sections by combining the bus voltage and the section voltage data; Taking the absolute value of the difference between the current angle and the voltage angle as the voltage-current angle difference of the line section; The line section where the voltage-current angle difference exceeds a preset angle difference threshold is located as an abnormal line section where the extreme fault occurs in the target power transmission line.

10. A distribution network transmission line fault detection system, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the distribution network transmission line fault detection method as described in any one of claims 1 to 9 is implemented.