Inversion method and device for lightning current parameters of power transmission line, terminal equipment and storage medium
Through the combination of neural network and genetic algorithm, the problem of inversion of lightning current parameters of transmission lines is solved, accurate measurement and efficient solution are achieved, and the demand for lightning protection is met.
Patent Information
- Application Number
- CN202410766870.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-14
- Publication Date
- 2024-10-18
AI Technical Summary
It is difficult to universally and routinely obtain lightning current parameters of transmission lines with existing technology. Direct measurement has time and space uncertainties, and indirect measurement methods have insufficient resolution, making it difficult to meet the needs of lightning protection.
The neural network method is used for lightning current parameter inversion, the neural network is used to automatically learn nonlinear relationships, and the genetic algorithm is combined to optimize the network parameters to avoid local optimal solutions, simplify the backpropagation process, and improve the solution efficiency.
It achieves accurate inversion of lightning current parameters of transmission lines, improves measurement efficiency and accuracy, and meets the needs of lightning protection.
Smart Images

Figure CN118795209A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of lightning monitoring technology, and in particular to an inversion method, device, terminal equipment and storage medium for lightning current parameters of a transmission line. Background Art
[0002] At present, lightning tripping is the main cause of power transmission line failure in my country, which greatly affects the safe and stable operation of power transmission lines in the region. Therefore, obtaining lightning current characteristic parameter information as a reference for line lightning protection is of great significance for lightning protection of transmission lines and the entire power system.
[0003] At present, the measurement methods of lightning current are mainly divided into direct method and indirect method, which mainly measure the ground lightning return stroke current. The direct measurement methods of lightning current mainly include Rogowski coil measurement method and coaxial shunt measurement method. Their similarity is that they both need to be measured at the lightning return stroke position. However, for the long-term lightning current measurement of transmission lines, there are uncertainties in time and space, and it is impossible to directly measure all lines at all times. Indirect measurement methods of lightning current Indirect methods include optical measurement and inversion technology. Optical observation is simple and intuitive, but it is easily affected by the background light intensity and transmission medium characteristics, and the resolution cannot meet the observation requirements, and it is only suitable for close-range measurement. There is a lack of inversion analysis of lightning parameters for transmission lines, and the main research focus is on the performance of lightning in the electromagnetic field in space. The B8 team of the Ordnance Engineering College has developed a new inversion method based on the three-layer electric disk model. This method relies on ground electric field monitoring data and uses genetic algorithm QA to simulate the thundercloud model. TAPotapenkob successfully calculated the specific distribution of the three-dimensional space electric field between the cloud layer and the grounding electrode through an improved inversion technology. For the accurate inversion of lightning parameters of transmission lines, Xi'an Jiaotong University optimized the original characteristic finite difference method and proposed a more comprehensive algorithm, which specially considered the influence of corona phenomenon on the inversion of lightning parameters.
[0004] In summary, the current lightning current measurement relies on a variety of additional devices such as Rogowski coils, coaxial shunts, digital camera systems, electric field monitoring systems, etc., which are mainly used to measure the ground lightning return stroke current in a certain area, but lacks a universal and conventional means of obtaining the lightning current parameters of transmission lines. Summary of the invention
[0005] The embodiment of the present invention provides a method for inverting lightning current parameters using a neural network, which utilizes the fact that the neural network can automatically learn and adjust its internal parameters during the training process, approximates complex nonlinear relationships, and can effectively avoid the situation where the simulation model is prone to errors. In addition, the present invention uses a genetic algorithm to optimize the initial values of network parameters, and through the global search characteristics of the genetic algorithm, effectively avoids falling into the dilemma of local optimality, and simplifies the back propagation process, thereby significantly improving the solution efficiency of the neural network.
[0006] An embodiment of the present invention provides a method for inverting lightning current parameters of a transmission line, comprising:
[0007] Acquire a first line parameter and a first fault parameter of a target power transmission line after being struck by lightning;
[0008] Inputting the first line parameter and the first fault parameter into a preset lightning current parameter inversion model, so that the lightning current parameter inversion model outputs a first lightning current parameter of the lightning current;
[0009] The construction process of the lightning current parameter inversion model includes:
[0010] Using lightning with different second lightning current parameters, a lightning impulse current test is performed on a number of transmission lines with different second line parameters, and using a monitoring terminal device pre-loaded on the transmission line, the second fault parameter of each transmission line after the lightning impulse current test is collected;
[0011] Using the second lightning current parameter, the second line parameter, and the second fault parameter as training samples and test samples, respectively constructing a training data set and a test data set;
[0012] Build the initial neural network;
[0013] Using a training data set and a genetic algorithm to optimize various weights and thresholds in the initial neural network, and obtaining an initial model for lightning current parameter inversion;
[0014] The training data set and the test data set are used to train and test the initial model for lightning current parameter inversion, until the test result of the initial model for lightning current parameter inversion is optimal and converges, or the number of training times reaches a preset threshold, the lightning current parameter inversion model is obtained.
[0015] Furthermore, the first line parameter includes: resistance, reactance, conductance, and susceptance per unit length of the target transmission line;
[0016] The obtaining of the first line parameter of the target power transmission line after being struck by lightning comprises:
[0017] Obtain the conductor radius, conductor material parameters, voltage, total power of three-phase corona loss, and geometric spacing between three-phase conductors of the target transmission line;
[0018] The conductor material parameters include: resistivity, cross-sectional area, and relative magnetic permeability of the conductor material;
[0019] Calculating the resistance according to the cross-sectional area of the conductor material and the resistivity of the conductor material;
[0020] Calculating the reactance according to the geometric spacing between the three-phase conductors, the conductor radius, and the relative magnetic permeability;
[0021] Calculating the conductance according to the three-phase corona loss total power and the voltage;
[0022] The susceptance is calculated according to the geometric spacing between the three-phase conductors and the conductor radius.
[0023] Further, the first fault parameter includes: fault traveling wave front time, fault traveling wave half peak time, fault traveling wave current peak value, a first distance between the fault point where the target transmission line is struck by lightning and the first monitoring terminal, and a second distance between the fault point and the second monitoring terminal;
[0024] The target transmission line is preset with a plurality of monitoring terminals, and the first monitoring terminal and the second monitoring terminal are monitoring terminals on both sides of the fault point respectively;
[0025] The obtaining of the first fault parameter of the target transmission line comprises:
[0026] Obtaining, through the fault data monitored by the first monitoring terminal and the second monitoring terminal, the wavefront time of the fault traveling wave, the half-peak time of the fault traveling wave, the peak current of the fault traveling wave, the propagation speed of the fault traveling wave, the first moment when the fault traveling wave reaches the first monitoring terminal, and the second moment when the fault traveling wave reaches the second monitoring terminal;
[0027] The first distance and the second distance are calculated according to the propagation speed, the first time, and the second time.
[0028] Further, calculating the first distance and the second distance according to the propagation speed, the first moment, and the second moment includes:
[0029] The first distance and the second distance are calculated according to the following formula:
[0030] L A =(L+v·(t A -t B)) / 2;
[0031] L B =(L+v·(t A -t B )) / 2;
[0032] Among them, L A is the first distance; L B is the second distance; L is the distance between the first monitoring terminal and the second monitoring terminal; v is the propagation speed; t A is the first moment; t B This is the second moment.
[0033] Furthermore, the constructing of the initial neural network includes:
[0034] The initial neural network is constructed according to the BP neural network; wherein the initial neural network includes: an input layer, a hidden layer, and an output layer, and uses a sigmoid function as an activation function.
[0035] Furthermore, the training data set and the genetic algorithm are used to optimize the weights and thresholds in the initial neural network to obtain the initial model for lightning current parameter inversion, including:
[0036] Individually encoding each weight and each threshold in the initial neural network, randomly obtaining a number of initial individuals, and forming an initial population based on the initial individuals;
[0037] Performing genetic operations according to the initial population until the number of executions of the genetic operations reaches a maximum execution number threshold, thereby obtaining various optimal weights and various optimal thresholds of the initial neural network;
[0038] According to the optimal weights and optimal thresholds of the initial neural network, an initial model for lightning current parameter inversion is constructed;
[0039] Wherein, the genetic operation includes:
[0040] Obtaining a population to be optimized; wherein, initially, the population to be optimized is an initial population;
[0041] According to the training data set, the fitness value of each individual to be optimized in the population to be optimized is calculated; wherein, initially, the individual to be optimized is an initial individual;
[0042] According to the fitness value, a selection operation, a crossover operation, and a mutation operation are performed on each individual to be optimized in the population to be optimized to obtain an optimized population;
[0043] When it is determined that the number of executions of the genetic operation is less than the maximum execution number threshold, the optimized population is used as the population to be optimized required for the next round of genetic operation;
[0044] When it is determined that the number of executions of the genetic operation is not less than the maximum execution number threshold, the optimal weights and optimal thresholds of the initial neural network are obtained according to the optimized population.
[0045] Another embodiment of the present invention provides an inversion device for lightning current parameters of a transmission line, comprising:
[0046] A parameter acquisition module, used to acquire a first line parameter of a target power transmission line after being struck by lightning, and to acquire a first fault parameter of the target power transmission line;
[0047] A parameter inversion module, used for inputting the first line parameter and the first fault parameter into a preset lightning current parameter inversion model, so that the lightning current parameter inversion model outputs a first lightning current parameter of the lightning current;
[0048] The construction process of the lightning current parameter inversion model includes:
[0049] Using lightning with different second lightning current parameters, a lightning impulse current test is performed on a number of transmission lines with different second line parameters, and using a monitoring terminal device pre-loaded on the transmission line, the second fault parameter of each transmission line after the lightning impulse current test is collected;
[0050] Using the second lightning current parameter, the second line parameter, and the second fault parameter as training samples and test samples, respectively constructing a training data set and a test data set;
[0051] Build the initial neural network;
[0052] Using a training data set and a genetic algorithm to optimize various weights and thresholds in the initial neural network, and obtaining an initial model for lightning current parameter inversion;
[0053] The training data set and the test data set are used to train and test the initial model for lightning current parameter inversion, until the test result of the initial model for lightning current parameter inversion is optimal and converges, or the number of training times reaches a preset threshold, the lightning current parameter inversion model is obtained.
[0054] Another embodiment of the present invention provides a terminal device, including a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, wherein when the processor executes the computer program, it implements a method for inverting lightning current parameters of a transmission line as described in any one of the embodiments.
[0055] Another embodiment of the present invention provides a storage medium, characterized in that the storage medium includes a stored computer program, wherein when the computer program is running, the device where the storage medium is located is controlled to execute a method for inverting lightning current parameters of a transmission line as described in any one of the above embodiments.
[0056] The following beneficial effects are achieved by implementing the present invention:
[0057] The present invention discloses a method, device, terminal equipment and storage medium for inverting lightning current parameters of a transmission line, by inputting the first line parameter and the first fault parameter of the target transmission line after being struck by lightning into a preset lightning current parameter inversion model, so that the lightning current parameter inversion model outputs the first lightning current parameter of the lightning current. It can be understood that the present invention adopts a neural network method to invert lightning current parameters, and utilizes the fact that the neural network can automatically learn and adjust its internal parameters during the training process, approximate complex nonlinear relationships, and can effectively avoid the situation where the simulation model is prone to errors. In addition, the present invention adopts a genetic algorithm to optimize the initial value of the network parameter, and through the global search characteristics of the genetic algorithm, it effectively avoids falling into the dilemma of local optimality, and simplifies the back propagation process, thereby significantly improving the solution efficiency of the neural network. BRIEF DESCRIPTION OF THE DRAWINGS
[0058] Figure 1 It is a flow chart of a method for inverting lightning current parameters of a transmission line provided by an embodiment of the present invention.
[0059] Figure 2 It is a structural schematic diagram of a transmission line lightning current parameter inversion device provided by one embodiment of the present invention.
[0060] Figure 3 It is a schematic diagram of the construction process of the lightning current parameter inversion model provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0061] In order to make the purpose, technical solutions and advantages of this application clearer, the technical solutions in this application will be clearly and completely described below in conjunction with the drawings in the embodiments of this application. Obviously, the described embodiments are part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0062] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by technicians in the technical field to which this application belongs; the terms used herein are only for the purpose of describing specific embodiments and are not intended to limit this application; the terms "including" and "having" in the specification and claims of this application and the above-mentioned figure descriptions and any variations thereof are intended to cover non-exclusive inclusions.
[0063] In the description of the embodiments of the present application, the technical terms "first", "second", etc. are only used to distinguish different objects, and cannot be understood as indicating or implying relative importance or implicitly indicating the number, specific order or primary and secondary relationship of the indicated technical features. In the description of the embodiments of the present application, the meaning of "multiple" is more than two, unless otherwise clearly and specifically defined.
[0064] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0065] In the description of the embodiments of the present application, the term "and / or" is only a description of the association relationship of the associated objects, indicating that there may be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship.
[0066] In the description of the embodiments of the present application, the term "multiple" refers to more than two (including two). Similarly, "multiple groups" refers to more than two groups (including two groups), and "multiple pieces" refers to more than two pieces (including two pieces).
[0067] In the description of the embodiments of the present application, unless otherwise clearly specified and limited, technical terms such as "installed", "connected", "connected", "fixed" and the like should be understood in a broad sense. For example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium, and it can be the internal connection of two elements or the interaction relationship between two elements. For those of ordinary skill in the art, the specific meanings of the above terms in the embodiments of the present application can be understood according to the specific circumstances.
[0068] See also Figure 1 , is a flow chart of a method for inverting lightning current parameters of a transmission line provided by an embodiment of the present invention, comprising:
[0069] S1. Acquire a first line parameter and a first fault parameter of a target transmission line after being struck by lightning;
[0070] Preferably, the first line parameter includes: resistance, reactance, conductance, and susceptance per unit length of the target transmission line;
[0071] The obtaining of the first line parameter of the target power transmission line after being struck by lightning comprises:
[0072] S11, obtaining the conductor radius, conductor material parameters, voltage, total power of three-phase corona loss, and geometric spacing between three-phase conductors of the target transmission line;
[0073] The conductor material parameters include: resistivity, cross-sectional area, and relative magnetic permeability of the conductor material;
[0074] In a preferred embodiment of the present invention, it is considered that the line parameters are uniformly distributed along the line length, and a line equivalent model is selected, which includes four parameters: resistance, reactance, conductance, and susceptance, which respectively represent the parameter attributes of the line per unit length as line characteristic parameters.
[0075] S12, calculating the resistance according to the cross-sectional area of the wire material and the resistivity of the wire material;
[0076] In a preferred embodiment of the present invention, the resistance is calculated by the following formula:
[0077]
[0078] Among them, ρ is the resistivity of the conductor material, in Ω·mm2 / km; S is the cross-sectional area of the conductor material, in mm2.
[0079] S13, calculating the reactance according to the geometric spacing between the three-phase conductors, the conductor radius, and the relative magnetic permeability;
[0080] In a preferred embodiment of the present invention, the reactance is calculated by the following formula:
[0081]
[0082] Where, μ0=4π×10 -7 , is the magnetic permeability of air; D ge is the geometric spacing between the three-phase conductors, in m, R is the conductor radius, in m, μ r is the relative magnetic permeability of the conductor material, and ω is the angular velocity.
[0083] S14, calculating the conductance according to the three-phase corona loss total power and the voltage;
[0084] In a preferred embodiment of the present invention, the conductance is calculated by the following formula:
[0085]
[0086] Among them, ΔP g is the total power of the three-phase corona loss measured in kW / km, and U is the line voltage of the line in kV. It should be noted that when the corona phenomenon is not obvious, the influence of conductivity can be ignored.
[0087] S15. Calculate the susceptance according to the geometric spacing between the three-phase conductors and the conductor radius.
[0088] In a preferred embodiment of the present invention, the susceptance is calculated by the following formula:
[0089]
[0090]
[0091]
[0092] Among them, D ge is the geometric spacing between the three-phase conductors, in m; R is the conductor radius, in m, C is the conductor capacitance, and ω is the angular velocity.
[0093] Preferably, the first fault parameter includes: fault traveling wave front time, fault traveling wave half peak time, fault traveling wave current peak, a first distance between the fault point where the target transmission line is struck by lightning and the first monitoring terminal, and a second distance between the fault point and the second monitoring terminal;
[0094] The target transmission line is preset with a plurality of monitoring terminals, and the first monitoring terminal and the second monitoring terminal are monitoring terminals on both sides of the fault point respectively;
[0095] The obtaining of the first fault parameter of the target transmission line comprises:
[0096] S16. Obtain, through the fault data monitored by the first monitoring terminal and the second monitoring terminal, the wavefront time of the fault traveling wave, the half-peak time of the fault traveling wave, the peak current of the fault traveling wave, the propagation speed of the fault traveling wave, the first moment when the fault traveling wave arrives at the first monitoring terminal, and the second moment when the fault traveling wave arrives at the second monitoring terminal;
[0097] S17. Calculate the first distance and the second distance according to the propagation speed, the first moment, and the second moment.
[0098] Preferably, calculating the first distance and the second distance according to the propagation speed, the first moment, and the second moment includes:
[0099] S171. Calculate the first distance and the second distance according to the following formula:
[0100] L A =(L+v·(t A -t B )) / 2;
[0101] L B =(L+v·(t A -t B )) / 2;
[0102] Among them, L A is the first distance; L B is the second distance; L is the distance between the first monitoring terminal and the second monitoring terminal; v is the propagation speed; t A is the first moment; t B This is the second moment.
[0103] In a preferred embodiment of the present invention, several monitoring terminals preset on the target transmission line are contact-type abnormal state monitoring terminal devices. It can be understood that the contact-type abnormal state monitoring terminal devices are distributedly installed on the transmission line conductors and are used for real-time monitoring, collection, storage and transmission of traveling waves and industrial frequency signals of the transmission line.
[0104] According to the fault traveling wave current and waveform recorded by the contact monitoring terminal device, the traveling wave front time, traveling wave half-peak time, and traveling wave current peak value are obtained. These traveling wave current information are directly related to the corresponding parameters of the lightning current and are used as fault characteristic parameters respectively.
[0105] Then, the measured distance information is obtained, which is also used as the fault characteristic parameter. Monitoring terminals are set up on both sides of the fault line to monitor the initial traveling waves reaching the two monitoring points to form double-end positioning. For example, points A and B are monitoring points equipped with monitoring terminals, and the fault occurs at point C between A and B. The initial traveling wave generated by the fault point C is transmitted along the transmission line to the substations at both ends at a speed v. The calculation formula for the distance from the fault point to the monitoring points at both ends is:
[0106] L A =(L+v·(t A -t B )) / 2;
[0107] L B =(L+v·(t A -t B )) / 2;
[0108] Among them, L A is the distance between the fault point and the monitoring terminal A; L B is the distance between the fault point and the monitoring terminal B; L is the length between the monitoring terminal A and the monitoring terminal B; v is the speed of the traveling wave propagating on the conductor; t A is the time when the fault wave first reaches the A terminal; t B It is the moment when the fault traveling wave reaches the B terminal for the first time.
[0109] S2. Inputting the first line parameter and the first fault parameter into a preset lightning current parameter inversion model, so that the lightning current parameter inversion model outputs a first lightning current parameter of the lightning current;
[0110] In a preferred embodiment of the present invention, the first lightning current parameter includes: wavefront time, half-peak time, and lightning impulse current peak value. It should be noted that the wavefront time selection interval is 0.5μs to 10μs, and the half-peak time selection interval is 20μs to 90μs.
[0111] The construction process of the lightning current parameter inversion model includes:
[0112] S01. Using lightning with different second lightning current parameters, a lightning impulse current test is performed on a number of transmission lines with different second line parameters, and a monitoring terminal device pre-loaded on the transmission line is used to collect the second fault parameters of each transmission line after the lightning impulse current test;
[0113] S02, using the second lightning current parameter, the second line parameter, and the second fault parameter as training samples and test samples, to construct a training data set and a test data set respectively;
[0114] In a preferred embodiment of the present invention, Figure 3 As shown, different wavefront times, half-peak times, and lightning impulse current peak values are set for transmission lines with different structures and parameters, and lightning impulse current tests are carried out and the lightning current parameters and line and fault parameters are recorded.
[0115] Among them, lightning wave is a non-periodic pulse, and its parameters are statistical. Experiments are carried out according to its statistical laws to obtain training data.
[0116] The wavefront time selection interval is 0.5μs~10μs, and the half-peak time selection interval is 20μs~90μs. Multiple groups of data are selected within the interval according to the statistical frequency to test the lines with different parameter conditions, and the second line parameters and second fault parameters of each test are recorded to form several initial samples.
[0117] Furthermore, in this embodiment, the initial samples are normalized to obtain final training samples and test samples. The normalization function is as follows:
[0118]
[0119] Crane operator, x i refers to the data input to the i-th neuron, x max is the maximum value in the collected data, x min is the minimum value in the collected data. is the data input to the i-th neuron after normalization.
[0120] S03, constructing an initial neural network;
[0121] Preferably, the constructing of the initial neural network comprises:
[0122] S031. Construct the initial neural network according to the BP neural network; wherein the initial neural network includes: an input layer, a hidden layer, and an output layer, and uses a sigmoid function as an activation function.
[0123] In a preferred embodiment of the present invention, the activation function is as follows:
[0124]
[0125] Where x is the input value;
[0126] The number of input layer neurons is determined by the number of parameters such as the second line parameters and the second fault parameters. If the second line characteristic parameters are selected from the four parameters of resistance r, reactance x, conductance g, and susceptance b, and the second fault parameters are selected from the four parameters of traveling wave front time, traveling wave half-peak time, traveling wave current peak value, and fault distance, the number of input layer neurons is 8. The number of hidden layer neurons is generated by the empirical formula:
[0127]
[0128] Where m is the number of neurons in the input layer, n is the number of neurons in the output layer, and a is a constant between 0 and 10.
[0129] S04, using a training data set and a genetic algorithm to optimize various weights and thresholds in the initial neural network to obtain an initial model for lightning current parameter inversion;
[0130] Preferably, the method of using a training data set and a genetic algorithm to optimize various weights and thresholds in the initial neural network to obtain an initial model for lightning current parameter inversion includes:
[0131] S041, individually encoding each weight and each threshold in the initial neural network, randomly obtaining a number of initial individuals, and forming an initial population based on the initial individuals;
[0132] In a preferred embodiment of the present invention, the weights and thresholds in the initial neural network are respectively the connection weight between the input layer and the hidden layer, the hidden layer threshold, the connection weight between the hidden layer and the output layer, and the output layer threshold.
[0133] It should be noted that, in this embodiment, the individual coding method adopts binary real number coding, and each chromosome (each individual) can be divided into four parts: the connection weight between the input layer and the hidden layer, the hidden layer threshold, the connection weight between the hidden layer and the output layer, and the output layer threshold. The coding length is:
[0134] S = S1 × S2 + S2 + S2 × S3 + S3;
[0135] Among them, S1, S2 and S3 are the number of neurons in the input layer, hidden layer and output layer respectively.
[0136] S042, performing genetic operations according to the initial population until the number of executions of the genetic operations reaches a maximum execution number threshold, thereby obtaining various optimal weights and various optimal thresholds of the initial neural network;
[0137] S043. Constructing an initial model for lightning current parameter inversion according to the optimal weights and optimal thresholds of the initial neural network;
[0138] Wherein, the genetic operation includes:
[0139] S0421. Obtain a population to be optimized; wherein, initially, the population to be optimized is an initial population;
[0140] S0422. Calculate the fitness value of each individual to be optimized in the population to be optimized according to the training data set; wherein, initially, the individual to be optimized is an initial individual;
[0141] Preferably, the step of calculating the fitness value of each individual to be optimized in the population to be optimized based on the training data set includes:
[0142] S04221. Calculate the fitness value of each individual to be optimized in the population to be optimized according to the following formula:
[0143]
[0144] SE = ∑(y i -o i ) 2 ;
[0145] Where f is the fitness value, SE is the sum of square errors of the initial neural network under the individual to be optimized, and y i is the predicted output of the initial neural network for the i-th training sample of the training data set, o i is the actual output of the i-th training sample in the training data set.
[0146] S0423. According to the fitness value, a selection operation, a crossover operation, and a mutation operation are performed on each individual to be optimized in the population to be optimized to obtain an optimized population;
[0147] In a preferred embodiment of the present invention, the selection operation refers to the process of selecting better individuals from the current population according to the fitness function as the basis for generating the next generation population. In which, the roulette wheel selection method is used to determine whether the parental information is inherited, and the probability calculation formula is:
[0148]
[0149] Crossover operation refers to the process in which a certain segment of genes of two parent chromosomes is exchanged to produce a new gene combination. The crossover probability is set to P1, and individuals are selected according to this probability, and the chromosome position is randomly selected to exchange genetic segments. The crossover method is as follows:
[0150]
[0151] In the formula, C mj is the jth position of the mth chromosome, C nj is the jth position of the nth chromosome, and t is a random number in the interval [0,1].
[0152] Mutation operation refers to the change of a certain point on the chromosome fragment of the offspring compared with the parent. The mutation probability is set to P2, and the gene fragment selected according to this probability mutates and changes to a random value within a given interval. The specific mutation method is as follows:
[0153]
[0154] In the formula, C max C ij The maximum value, C min C ij The minimum value of .
[0155]
[0156] In the formula, s and t are random numbers in the interval [0,1], g is the current evolution number, G max is the maximum number of evolutions.
[0157] S0424. When it is determined that the number of executions of the genetic operation is less than the maximum execution number threshold, the optimized population is used as the population to be optimized required for the next round of genetic operation;
[0158] S0425. When it is determined that the number of executions of the genetic operation is not less than the maximum execution number threshold, the optimal weights and optimal thresholds of the initial neural network are obtained according to the optimized population.
[0159] S05. Use the training data set and the test data set to train and test the initial model for lightning current parameter inversion, until the test result of the initial model for lightning current parameter inversion is optimal and converged, or the number of training times reaches a preset threshold, to obtain the lightning current parameter inversion model.
[0160] In a preferred embodiment of the present invention, according to the preset maximum number of iterations, learning rate and minimum mean square error target, the optimal weights and optimal thresholds obtained after optimizing the genetic algorithm are used as the initial values of the initial model for lightning current parameter inversion, the training data set is used for forward prediction and back propagation, the neural network parameters are corrected, and the mean square error is checked with the test data set, and the initial model for lightning current parameter inversion is iteratively trained until the maximum number of iterations or the minimum mean square error target is reached, and the cycle is terminated.
[0161] Furthermore, if the mean square error of the initial model output of the lightning current parameter inversion does not meet the requirements, the training is returned to again. If the mean square error of the initial model output of the lightning current parameter inversion meets the requirements, the training of the lightning current parameter inversion model is completed, and the trained lightning current parameter inversion model can be used to invert the lightning current characteristic parameters of the transmission line. Based on the lightning current parameter inversion model, the line parameters and fault parameters are input, and the wavefront time, half-peak time, and lightning impulse current peak prediction value of the lightning current are output after calculation by the lightning current parameter inversion model.
[0162] This embodiment provides a method for inverting lightning current parameters of a transmission line, by inputting the first line parameter and the first fault parameter of the target transmission line after being struck by lightning into a preset lightning current parameter inversion model, so that the lightning current parameter inversion model outputs the first lightning current parameter of the lightning current. It can be understood that the present invention adopts a neural network method to invert lightning current parameters, and utilizes the fact that the neural network can automatically learn and adjust its internal parameters during the training process, approximate complex nonlinear relationships, and can effectively avoid the situation where the simulation model is prone to errors. In addition, the present invention adopts a genetic algorithm to optimize the initial value of the network parameter, and through the global search characteristics of the genetic algorithm, it effectively avoids falling into the dilemma of local optimality, and simplifies the back propagation process, thereby significantly improving the solution efficiency of the neural network.
[0163] See also Figure 2, is a schematic structural diagram of a transmission line lightning current parameter inversion device provided by an embodiment of the present invention, comprising:
[0164] A parameter acquisition module, used to acquire a first line parameter of a target power transmission line after being struck by lightning, and to acquire a first fault parameter of the target power transmission line;
[0165] A parameter inversion module, used for inputting the first line parameter and the first fault parameter into a preset lightning current parameter inversion model, so that the lightning current parameter inversion model outputs a first lightning current parameter of the lightning current;
[0166] The construction process of the lightning current parameter inversion model includes:
[0167] Using lightning with different second lightning current parameters, a lightning impulse current test is performed on a number of transmission lines with different second line parameters, and using a monitoring terminal device pre-loaded on the transmission line, the second fault parameter of each transmission line after the lightning impulse current test is collected;
[0168] Using the second lightning current parameter, the second line parameter, and the second fault parameter as training samples and test samples, respectively constructing a training data set and a test data set;
[0169] Construct the initial neural network;
[0170] Using a training data set and a genetic algorithm to optimize various weights and thresholds in the initial neural network, and obtaining an initial model for lightning current parameter inversion;
[0171] The training data set and the test data set are used to train and test the initial model for lightning current parameter inversion, until the test result of the initial model for lightning current parameter inversion is optimal and converges, or the number of training times reaches a preset threshold, the lightning current parameter inversion model is obtained.
[0172] It should be noted that the device embodiments described above are merely schematic, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. In addition, in the accompanying drawings of the device embodiments provided by the present invention, the connection relationship between the modules indicates that there is a communication connection between them, which may be specifically implemented as one or more communication buses or signal lines. A person of ordinary skill in the art may understand and implement it without paying any creative effort.
[0173] Those skilled in the art can clearly understand that for the sake of convenience and brevity, the specific working process of the device described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.
[0174] Another preferred embodiment of the present invention provides a terminal device, including a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, wherein when the processor executes the computer program, it implements a method for inverting lightning current parameters of a transmission line as described in any one of the above embodiments.
[0175] The terminal device may be a computing device such as a desktop computer, a notebook, a PDA, a cloud server, etc. The terminal device may include, but is not limited to, a processor and a memory.
[0176] The processor may be a central processing unit (CPU), 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. The general-purpose processor may be a microprocessor or any conventional processor, etc. The processor is the control center of the terminal device, and uses various interfaces and lines to connect various parts of the entire terminal device.
[0177] The memory can be used to store the computer program, and the processor realizes various functions of the terminal device by running or executing the computer program stored in the memory and calling the data stored in the memory. The memory can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, at least one application required for a function, etc.; the data storage area can store data created according to the use of the mobile phone, etc. In addition, the memory can include a high-speed random access memory, and can also include a non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a smart memory card (Smart Med ia Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.
[0178] Another preferred embodiment of the present invention provides a storage medium, the storage medium is a computer-readable storage medium, the computer program is stored in the computer-readable storage medium, and the computer program, when executed by the processor, can implement the steps of the above-mentioned various method embodiments. Wherein, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, U disk, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electrical carrier signal, telecommunication signal and software distribution medium, etc.
[0179] The above is a preferred embodiment of the present invention. It should be pointed out that a person skilled in the art can make several improvements and modifications without departing from the principle of the present invention. These improvements and modifications are also considered to be within the scope of protection of the present invention.
Claims
1. A method for inverting lightning current parameters of a transmission line, characterized in that: include: Acquire a first line parameter and a first fault parameter of a target power transmission line after being struck by lightning; Inputting the first line parameter and the first fault parameter into a preset lightning current parameter inversion model, so that the lightning current parameter inversion model outputs a first lightning current parameter of the lightning current; The construction process of the lightning current parameter inversion model includes: Using lightning with different second lightning current parameters, a lightning impulse current test is performed on a number of transmission lines with different second line parameters, and using a monitoring terminal device pre-loaded on the transmission line, the second fault parameter of each transmission line after the lightning impulse current test is collected; Using the second lightning current parameter, the second line parameter, and the second fault parameter as training samples and test samples, respectively constructing a training data set and a test data set; Build the initial neural network; Using a training data set and a genetic algorithm to optimize various weights and thresholds in the initial neural network, and obtaining an initial model for lightning current parameter inversion; The training data set and the test data set are used to train and test the initial model for lightning current parameter inversion, until the test result of the initial model for lightning current parameter inversion is optimal and converges, or the number of training times reaches a preset threshold, the lightning current parameter inversion model is obtained.
2. A method for inverting lightning current parameters of a transmission line according to claim 1, characterized in that: The first line parameters include: resistance, reactance, conductance, and susceptance per unit length of the target transmission line; The obtaining of the first line parameter of the target power transmission line after being struck by lightning comprises: Obtain the conductor radius, conductor material parameters, voltage, total power of three-phase corona loss, and geometric spacing between three-phase conductors of the target transmission line; The conductor material parameters include: resistivity, cross-sectional area, and relative magnetic permeability of the conductor material; Calculating the resistance according to the cross-sectional area of the conductor material and the resistivity of the conductor material; Calculating the reactance according to the geometric spacing between the three-phase conductors, the conductor radius, and the relative magnetic permeability; Calculating the conductance according to the three-phase corona loss total power and the voltage; The susceptance is calculated according to the geometric spacing between the three-phase conductors and the conductor radius.
3. The inversion method of lightning current parameters of a transmission line according to claim 1, characterized in that: The first fault parameter includes: fault traveling wave front time, fault traveling wave half peak time, fault traveling wave current peak, a first distance between the fault point where the target transmission line is struck by lightning and the first monitoring terminal, and a second distance between the fault point and the second monitoring terminal; The target transmission line is preset with a plurality of monitoring terminals, and the first monitoring terminal and the second monitoring terminal are monitoring terminals on both sides of the fault point respectively; The obtaining of the first fault parameter of the target transmission line comprises: Obtaining, through the fault data monitored by the first monitoring terminal and the second monitoring terminal, the wavefront time of the fault traveling wave, the half-peak time of the fault traveling wave, the peak current of the fault traveling wave, the propagation speed of the fault traveling wave, the first moment when the fault traveling wave reaches the first monitoring terminal, and the second moment when the fault traveling wave reaches the second monitoring terminal; The first distance and the second distance are calculated according to the propagation speed, the first time, and the second time.
4. A method for inverting lightning current parameters of a transmission line according to claim 3, characterized in that: The calculating the first distance and the second distance according to the propagation speed, the first moment, and the second moment includes: The first distance and the second distance are calculated according to the following formula: L A =(L+v·(t A -t B )) / 2; L B =(L+v·(t A -t B )) / 2; Among them, L A is the first distance; L B is the second distance; L is the distance between the first monitoring terminal and the second monitoring terminal; v is the propagation speed; t A is the first moment; t B This is the second moment.
5. The inversion method of lightning current parameters of a transmission line according to claim 1, characterized in that: The constructing of the initial neural network comprises: The initial neural network is constructed according to the BP neural network; wherein the initial neural network includes: an input layer, a hidden layer, and an output layer, and uses a sigmoid function as an activation function.
6. A method for inverting lightning current parameters of a transmission line according to claim 1, characterized in that: The method of using a training data set and a genetic algorithm to optimize various weights and thresholds in the initial neural network to obtain an initial model for lightning current parameter inversion includes: Individually encoding each weight and each threshold in the initial neural network, randomly obtaining a number of initial individuals, and forming an initial population based on the initial individuals; Performing genetic operations according to the initial population until the number of executions of the genetic operations reaches a maximum execution number threshold, thereby obtaining various optimal weights and various optimal thresholds of the initial neural network; According to the optimal weights and optimal thresholds of the initial neural network, an initial model for lightning current parameter inversion is constructed; Wherein, the genetic operation includes: Obtaining a population to be optimized; wherein, initially, the population to be optimized is an initial population; According to the training data set, the fitness value of each individual to be optimized in the population to be optimized is calculated; wherein, initially, the individual to be optimized is an initial individual; According to the fitness value, a selection operation, a crossover operation, and a mutation operation are performed on each individual to be optimized in the population to be optimized to obtain an optimized population; When it is determined that the number of executions of the genetic operation is less than the maximum execution number threshold, the optimized population is used as the population to be optimized required for the next round of genetic operation; When it is determined that the number of executions of the genetic operation is not less than the maximum execution number threshold, the optimal weights and optimal thresholds of the initial neural network are obtained according to the optimized population.
7. A method for inverting lightning current parameters of a transmission line according to claim 5, characterized in that: The step of calculating the fitness value of each individual to be optimized in the population to be optimized according to the training data set includes: The fitness value of each individual to be optimized in the population to be optimized is calculated according to the following formula: SE=∑(and i -either i ) 2 ; Where f is the fitness value, SE is the sum of square errors of the initial neural network under the individual to be optimized, and y i is the predicted output of the initial neural network for the i-th training sample of the training data set, o i is the actual output of the i-th training sample in the training data set.
8. An inversion device for lightning current parameters of a transmission line, characterized in that: include: A parameter acquisition module, used to acquire a first line parameter of a target power transmission line after being struck by lightning, and to acquire a first fault parameter of the target power transmission line; A parameter inversion module, used for inputting the first line parameter and the first fault parameter into a preset lightning current parameter inversion model, so that the lightning current parameter inversion model outputs a first lightning current parameter of the lightning current; The construction process of the lightning current parameter inversion model includes: Using lightning with different second lightning current parameters, a lightning impulse current test is performed on a number of transmission lines with different second line parameters, and using a monitoring terminal device pre-loaded on the transmission line, the second fault parameter of each transmission line after the lightning impulse current test is collected; Using the second lightning current parameter, the second line parameter, and the second fault parameter as training samples and test samples, respectively constructing a training data set and a test data set; Build the initial neural network; Using a training data set and a genetic algorithm to optimize various weights and thresholds in the initial neural network, and obtaining an initial model for lightning current parameter inversion; The training data set and the test data set are used to train and test the initial model for lightning current parameter inversion, until the test result of the initial model for lightning current parameter inversion is optimal and converges, or the number of training times reaches a preset threshold, the lightning current parameter inversion model is obtained.
9. A terminal device, characterized in that: The invention comprises a processor, a memory and a computer program stored in the memory and configured to be executed by the processor, wherein when the processor executes the computer program, the method for inverting lightning current parameters of a transmission line as claimed in any one of claims 1 to 7 is implemented.
10. A storage medium, characterized in that: The storage medium includes a stored computer program, wherein when the computer program is running, the device where the storage medium is located is controlled to execute the inversion method for lightning current parameters of a transmission line as claimed in any one of claims 1 to 7.
