A distribution network topology identification method and device based on LightGBM-LSTM
Through the LightGBM-LSTM method, the problem of inconsistent data sampling frequency in the distribution network is solved, the accurate identification and efficient calculation of complex power grid topology are achieved, the identification accuracy and calculation efficiency are improved, and the interpretability of the model is enhanced.
Patent Information
- Application Number
- CN202410058016.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-01-16
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2044-01-16
AI Technical Summary
Existing distribution network topology identification methods are difficult to achieve accurate identification when dealing with complex power grid structures and inconsistent sampling frequencies of multi-type data. The computational burden is large and they cannot effectively integrate multi-type data, resulting in poor identification results.
The LightGBM-LSTM method is used to obtain and clean telemetry data, extract switch status data, perform one-hot encoding and timing synchronization, use the LightGBM algorithm to filter features, input the LSTM model to predict the switch status, and draw a topological connection diagram to achieve different sampling frequency data Timing synchronization and feature filtering.
It improves the accuracy and calculation efficiency of distribution network topology identification, reduces redundant feature variables, reduces the model calculation burden, enhances the interpretability of the model, and can better restore complex power flow relationships.
Smart Images

Figure CN117913895B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of medium voltage active distribution network, and in particular to a distribution network topology identification method and device based on LightGBM-LSTM. Background Art
[0002] The topological structure information of the distribution network is the basic information for engineers to make real-time operation and control decisions on the distribution system. When it is necessary to perform power flow analysis, state estimation, fault detection, fault recovery, load balancing, demand response, and reasonable grid connection planning of renewable energy on the distribution network, the distribution network topology identification technology plays an irreplaceable role. If accurate network topology information cannot be reliably provided, many power grid optimization operations and control schemes cannot achieve the expected results, and may even cause the power grid to enter a worse operating state. Therefore, it is necessary to study methods for quickly and accurately identifying the topological structure of the distribution network.
[0003] The distribution network topology identification methods are mainly divided into two categories: one is to comprehensively search and reconstruct the topology of the entire network, and the other is to estimate the position and state of the changed switches to determine the complete topology of the network. State estimation and graph learning belong to the methods of comprehensively searching and constructing the complete network topology. The distribution network topology identification method based on state estimation has high accuracy and real-time performance, and is suitable for various power grid scales, but requires complex mathematical models, high-quality data and a large amount of measurement data. The method based on graph learning is adaptive and can handle complex power grid structures, but requires a large amount of labeled data and computing resources, and complex models are sometimes difficult to interpret. In addition, there are methods that rely on data-driven, such as statistical learning, mathematical programming, fitting, clustering, etc. to achieve topology identification. These methods are based on correlation analysis theory to judge the node connection relationship, requiring the node injection current and load to be independent of each other. However, as more and more distributed power sources are incorporated into the distribution network, the system flow situation becomes more complicated, and the node injection current and load may have complex correlations.
[0004] Since the power flow variables of the distribution network contain rich information about the topological structure, it is possible to fully mine the information through machine learning and other methods to realize the topological identification of the distribution network. However, ordinary machine learning methods may have the following disadvantages: large-scale historical data (in terms of sample quantity and feature quantity) are usually required to ensure the accuracy of the estimation, while the measurement data types in the actual distribution network are limited; it is necessary to balance the adequacy of data to reduce the computational burden and avoid overfitting. In addition, the sampling period and sampling data type of data acquisition devices in the distribution network are different. For example, the micro-phasor measurement unit (μPMU) can collect phasor (including voltage and current amplitude and phase angle), frequency, phase angle difference and other data at a frequency of 10 to 20 milliseconds; the supervisory control and data acquisition system (SCADA) can collect voltage, current, power and other data at a frequency of 2 to 5 seconds; the advanced metering architecture (AMI) can collect power consumption data at a frequency of 15 to 30 minutes. Therefore, there is a problem of inconsistent sampling frequency in the field collection measurement data, which cannot be directly used for the training of machine learning models. Summary of the invention
[0005] In order to solve the problems existing in the background technology, the present invention provides a distribution network topology identification method and device based on LightGBM-LSTM, which realizes the modeling of complex relationships between measurement variables, thereby fusing multiple types of data to more accurately identify the distribution network topology, synchronize the data with different sampling frequencies, and select the least and most effective feature variables for distribution network topology identification, thereby reducing the algorithm calculation burden.
[0006] In order to achieve the above technical objectives, one aspect of the present invention provides a distribution network topology identification method based on LightGBM-LSTM, comprising:
[0007] S1: Acquire telemetry data and telesignaling data of the distribution automation master station, clean the telemetry data, and synchronize the cleaned telemetry data;
[0008] S2: extract the valid flag, refresh flag and telesignal state value flag in the switch state data from the telesignal data, encode the extracted telesignal data using the unique hot encoding method, and then synchronize the encoded telesignal data in time series to obtain the telesignal feature;
[0009] S3: Use the LightGBM algorithm to perform feature screening on the telemetry data after time series synchronization;
[0010] S4: Input the telesignaling features and the selected telemetry features into the LSTM-based distribution network topology recognition model to predict the switch status of all switches in the distribution network;
[0011] S5: Draw a topological connection diagram of the distribution network according to the switch states of all switches in the distribution network.
[0012] Preferably, the telemetry data of the distribution automation master station includes: node voltage, node active / reactive power, line current, line active / reactive power;
[0013] The remote signaling data of the distribution automation master station specifically refers to switch status data, which includes: a valid flag, a refresh flag, a replacement flag, a blocking flag, and a remote signaling status value flag.
[0014] Preferably, the said performing time sequence synchronization on the encoded telesignaling data comprises: performing time sequence synchronization on the telesignaling data acquired by the low-frequency sampling source and the telesignaling data acquired by the high-frequency sampling source; assuming that the telesignaling data acquired by the high-frequency sampling source is represented as The remote signal data obtained by the low-frequency sampling source is expressed as Among them, T l =rT h ; Then the telesignaling data obtained by the low-frequency sampling source after timing synchronization is expressed as in, a represents an integer greater than or equal to 0, b represents an integer greater than or equal to 1 and less than or equal to r, T h Represents the sampling time interval of the high-frequency sampling source, T l Indicates the sampling time interval of the low-frequency sampling source.
[0015] Preferably, the time series synchronization of the cleaned telemetry data includes:
[0016] The telemetry data obtained by the low-frequency sampling source and the telemetry data obtained by the high-frequency sampling source are synchronized in time series; the telemetry data obtained by the high-frequency sampling source is expressed as The telemetry data obtained from the low-frequency sampling source is expressed as Among them, T l =rT h ; Then the telemetry data obtained by the low-frequency sampling source after timing synchronization is expressed as:
[0017]
[0018]
[0019] Where a is an integer greater than or equal to 0, b is an integer greater than or equal to 1 and less than or equal to r, T h Represents the sampling time interval of the high-frequency sampling source, T l Indicates the sampling time interval of the low-frequency sampling source.
[0020] Preferably, the feature screening of the telemetry data after time series synchronization using the LightGBM algorithm includes: taking the telemetry data after time series synchronization as the input feature of the sample, and the label of the sample is N in the distribution automation master station. lThe binary state value of the switch; the LightGBM model setting parameters are as follows: the number of leaves num_leaves = A, the number of boosted trees num_trees = B, the problem type is binary classification objective = 'binary'; after the iteration, the entire LightGBM model is traversed to obtain the sum of the information gains of all nodes with a certain telemetry feature as the split feature as the importance of the telemetry feature for the distribution network topology identification, and the top N are selected according to the importance of the distribution network topology identification from large to small. f =c%×N yc The telemetry features of N are used as the filtered telemetry features. l Represents the binary state value of all switches in the distribution network.
[0021] Preferably, the LSTM-based distribution network topology identification model includes: an input layer, a first LSTM layer, a first Dropout layer, a second LSTM layer, a second Dropout layer, a fully connected layer, a Softmax layer, and an output layer connected in series in sequence.
[0022] Another aspect of the present invention provides a distribution network topology identification device based on LightGBM-LSTM, and the device is applied to a distribution network topology identification method based on LightGBM-LSTM, comprising:
[0023] Data acquisition unit, used to acquire telemetry data and telesignaling data of the distribution automation master station;
[0024] A first data preprocessing unit performs data cleaning on the telemetry data and performs time series synchronization on the cleaned telemetry data;
[0025] The second data preprocessing unit is used to extract the valid flag, the refresh flag and the telesignaling state value flag in the switch state data from the telesignaling data, encode the extracted telesignaling data by using a unique hot encoding method, and then perform time sequence synchronization on the encoded telesignaling data to obtain the telesignaling feature;
[0026] The feature screening unit is used to screen the features of the telemetry data after time series synchronization using the LightGBM algorithm;
[0027] A topology recognition unit is used to input the telesignaling features and the filtered telemetry features into the LSTM-based distribution network topology recognition model to predict the switch status of all switches in the distribution network;
[0028] The topology generation unit is used to draw a topological connection diagram of the distribution network according to the switch states of all switches in the distribution network.
[0029] Another aspect of the present invention provides an electronic device, comprising a memory and a processor, wherein the memory is used to store a computer program, and the processor runs the computer program to enable the electronic device to execute the distribution network topology identification method based on LightGBM-LSTM.
[0030] The present invention has at least the following beneficial effects
[0031] The present invention uses machine learning algorithms to mine the complex mathematical and physical relationships between various measurement variables in the distribution network, directly avoiding the complex process of manually performing mathematical modeling of distribution network power flow; the telemetry data considered in the present invention include not only voltage data and node injection power, but also branch current and branch power, which can better restore the complex distribution network power flow relationship and improve the interpretability of the machine learning model; the present invention addresses the problem of inconsistent sampling frequencies of different telemetry data, constructs pseudo-measurements based on the linear extrapolation method, and realizes the time series synchronization of all telemetry data; the present invention introduces the LightGBM algorithm to perform feature screening of telemetry data, reduces redundant telemetry feature variables, retains the most effective telemetry feature variables, and greatly reduces the model calculation burden; the present invention takes into account the reality that most telemetering data in actual engineering is considerable, and incorporates the telemetering switch data as the input variable of the machine learning model, and then combines the least and most effective telemetering data to judge the invalid switch state without direct monitoring, thereby improving the accuracy of distribution network topology identification. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] Figure 1 It is a schematic diagram of the method flow of the present invention. DETAILED DESCRIPTION
[0033] The following describes the embodiments of the present invention by specific examples, and those skilled in the art can easily understand other advantages and effects of the present invention from the contents introduced in this specification. The present invention can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present invention. It should be noted that the illustrations provided in the following embodiments only illustrate the basic concept of the present invention in a schematic manner, and the following embodiments and the features in the embodiments can be combined with each other without conflict.
[0034] Among them, the drawings are only used for illustrative explanations, and they only represent schematic diagrams rather than actual pictures, and should not be understood as limitations on the present invention. In order to better illustrate the embodiments of the present invention, some parts of the drawings may be omitted, enlarged or reduced, and do not represent the size of actual products. For those skilled in the art, it is understandable that some well-known structures and their descriptions in the drawings may be omitted.
[0035] The same or similar numbers in the drawings of the embodiments of the present invention correspond to the same or similar parts; in the description of the present invention, it should be understood that if the terms "upper", "lower", "left", "right", "front", "rear", etc. indicate the orientation or position relationship, they are based on the orientation or position relationship shown in the drawings, which is only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operate in a specific orientation. Therefore, the terms describing the position relationship in the drawings are only used for illustrative purposes and cannot be understood as limiting the present invention. For ordinary technicians in this field, the specific meanings of the above terms can be understood according to specific circumstances.
[0036] See also Figure 1 One aspect of the present invention provides a distribution network topology identification method based on LightGBM-LSTM, comprising:
[0037] S1: Acquire telemetry data and telesignaling data of the distribution automation master station, clean the telemetry data, and synchronize the cleaned telemetry data;
[0038] S2: extract the valid flag, refresh flag and telesignal state value flag in the switch state data from the telesignal data, encode the extracted telesignal data using the unique hot encoding method, and then synchronize the encoded telesignal data in time series to obtain the telesignal feature;
[0039] S3: Use the LightGBM algorithm to perform feature screening on the telemetry data after time series synchronization;
[0040] S4: Input the telesignaling features and the selected telemetry features into the LSTM-based distribution network topology recognition model to predict the switch status of all switches in the distribution network;
[0041] S5: Draw a topological connection diagram of the distribution network according to the switch states of all switches in the distribution network.
[0042] The present invention uses machine learning algorithms to mine the complex mathematical and physical relationships between various measurement variables in the distribution network. Compared with the distribution network topology identification method based on state estimation, it directly avoids the complex process of manually performing mathematical modeling of distribution network power flow. At the same time, the telemetry data considered by the present invention include not only voltage data and node injection power, but also branch current and branch power, which can better restore the complex distribution network power flow relationship and improve the interpretability of the machine learning model. At the same time, the present invention constructs pseudo-measurements based on the linear extrapolation method to solve the problem of inconsistent sampling frequencies of different telemetry data, thereby realizing the time series synchronization of all telemetry data. In addition, the present invention introduces the LightGBM algorithm to perform feature screening of telemetry data. Compared with the existing scheme for distribution network topology identification based on machine learning algorithms without dimensionality reduction of input feature data, it can reduce redundant telemetry feature variables, retain the most effective telemetry feature variables, and greatly reduce the model calculation burden.
[0043] Preferably, the telemetry data of the distribution automation master station includes: node voltage, node active / reactive power, line current, line active / reactive power;
[0044] The remote signaling data of the distribution automation master station specifically refers to switch status data, which includes: a valid flag, a refresh flag, a replacement flag, a blocking flag, and a remote signaling status value flag.
[0045] In the specific implementation process of the present invention, the telemetry data types that can be obtained include node voltage amplitude, node voltage phase angle, node injected active power, node injected reactive power, branch current amplitude, branch current phase angle, branch active power, branch injected reactive power (the positive and negative values of branch active / reactive power represent the direction of line power flow); the telemetering data focuses on the transmitted information elements, and the bytes representing the information elements in the telemetering data transmitted based on the IEC60870-5-104 protocol include 8 bits: valid flag bit, refresh flag bit, replacement flag bit, blocking flag bit, telemetering status value flag bit and 3 spare flag bits; the number of nodes connected to the grid in the distribution network is defined as N b , the number of branches is defined as N l , the number of telemetry variables available is N yc , the number of remote signal variables that can be obtained is N yx .
[0046] Furthermore, the information of the valid flag, refresh flag, and remote signal status flag in the remote signal data is extracted, and these three pieces of information are one-hot encoded. The validity of the switch data is divided into two states: valid and invalid. The valid flag is 0 or the refresh flag is 0, which is considered invalid data. The valid flag and the refresh flag are both 1 when they are considered valid data; the switch opening and closing state is divided into two states: closed and open. A 4-bit binary variable is used to encode the data of each switch in a one-hot manner. 1000, 0100, 0010, and 0001 represent valid closed state data, valid open state data, invalid closed state data, and invalid open state data, respectively. A total of N yx If the remote signal data is synchronized with the data with a higher sampling frequency, the remote signal data at the previous moment is used to fill the remote signal data between the sampling data update period.
[0047] Preferably, the said performing time sequence synchronization on the encoded telesignaling data comprises: performing time sequence synchronization on the telesignaling data acquired by the low-frequency sampling source and the telesignaling data acquired by the high-frequency sampling source; assuming that the telesignaling data acquired by the high-frequency sampling source is represented as The remote signal data obtained by the low-frequency sampling source is expressed as Among them, T l =rT h ; Then the telesignaling data obtained by the low-frequency sampling source after timing synchronization is expressed as in, a represents an integer greater than or equal to 0, b represents an integer greater than or equal to 1 and less than or equal to r, T h Represents the sampling time interval of the high-frequency sampling source, T l Indicates the sampling time interval of the low-frequency sampling source.
[0048] In the specific implementation process of the present invention, the telemetry data is cleaned, which specifically includes three steps of processing missing values, outliers, and duplicate values; when processing missing values, the mean, median, mode or prediction model is used to estimate the missing values, and then fill the missing data; when processing outliers, the outliers are deleted and replaced with appropriate values (such as truncated to the boundary value of a certain range), or the interpolation method is used to replace the outliers; when processing duplicate data, the duplicate data in the data is detected and deleted to ensure the uniqueness of the data.
[0049] In the specific implementation process of the present invention, the telemetry data from different data sources are synchronized in time series based on the linear extrapolation method;
[0050] Preferably, the time series synchronization of the cleaned telemetry data includes:
[0051] The telemetry data obtained by the low-frequency sampling source and the telemetry data obtained by the high-frequency sampling source are synchronized in time series; the telemetry data obtained by the high-frequency sampling source is expressed as The telemetry data obtained from the low-frequency sampling source is expressed as Among them, T l =rT h ; Then the telemetry data obtained by the low-frequency sampling source after timing synchronization is expressed as:
[0052]
[0053]
[0054] Where a is an integer greater than or equal to 0, b is an integer greater than or equal to 1 and less than or equal to r, T h Represents the sampling time interval of the high-frequency sampling source, T l Indicates the sampling time interval of the low-frequency sampling source.
[0055] Preferably, the feature screening of the telemetry data after time series synchronization using the LightGBM algorithm includes: taking the telemetry data after time series synchronization as the input feature of the sample, and the label of the sample is N in the distribution automation master station. l The binary state value (0 / 1) of the switch; the parameters of the LightGBM model are as follows: the number of leaves num_leaves = A (31), the number of boosted trees num_trees = B (100), the problem type is binary classification objective = 'binary'; after the iteration, the entire LightGBM model is traversed to obtain the sum of the information gains of all nodes with a certain telemetry feature as the split feature as the importance of the telemetry feature for the distribution network topology identification, and the top N are sorted from large to small according to the importance of the distribution network topology identification. f =c%×N yc The telemetry features are used as the filtered telemetry features.
[0056] In the specific implementation process of the present invention, the parameters of the LightGBM model are as follows: the number of leaves num_leaves = 31, the number of boosted trees num_trees = 100, and the problem type is binary classification objective = 'binary'. During training, LightGBM retains all samples with larger gradients, randomly samples samples with smaller gradients, and introduces a constant coefficient to offset the effect of sampling on data distribution. For sample set I: {x1, x2, ..., x n}, the negative gradient of the loss function for each round of iteration corresponds to G:{g1,g2,...,g n}, the loss function and its negative gradient calculation formula are as follows:
[0057]
[0058]
[0059] Where: e is the number of iterations of the boosted tree; x i Input value for the sample; y i is the true value of the sample; f e-1 (x i ) is the sample prediction value; L(y i ,f e-1 (x i )) is the loss function; g e is the negative gradient of the loss function.
[0060] Assume that the sampling rate of large gradient samples is p, and the sampling rate of small gradient samples is q. The calculation steps of feature importance are as follows:
[0061] Step 1: Input all sample data for initial model training;
[0062] Step 2: Sort the samples in descending order according to the absolute value of the gradient;
[0063] Step 3: Take the first p×n samples to form a large gradient sample subset A I ; For the remaining sample set, randomly select q×n samples to form a small gradient sample subset B I ;
[0064] Step 4: Use the sampled sample subset A I ∪B I Learn a new decision tree; when calculating the information gain (IG) of a node, assign weights to small gradient samples Then the information gain of the segmentation point d of the split feature j is:
[0065]
[0066]
[0067]
[0068] Among them, x i,j is the value corresponding to the split feature j of sample i; are the number of samples whose split feature j is less than or equal to the split point d and the number of samples whose split feature j is greater than the split point d in all samples; F(x i ) is the value of the sample split feature j and the size judgment function of the segmentation point d.
[0069] Step 5: Repeat steps 2 to 5 until the preset number of iterations or convergence is reached, and traverse the entire model. The sum of the information gains of all nodes with a telemetry feature as a split feature is the importance of the telemetry feature for topology identification. Sort the topology identification of the distribution network from the largest to the smallest in terms of importance, and select the top N.f =c%×N yc The telemetry features are used as the filtered telemetry features.
[0070] Preferably, the LSTM-based distribution network topology identification model includes: an input layer, a first LSTM layer, a first Dropout layer, a second LSTM layer, a second Dropout layer, a fully connected layer, a Softmax layer, and an output layer connected in series in sequence.
[0071] In the specific implementation process of the present invention, the distribution network topology recognition model based on LSTM effectively solves the gradient vanishing or exploding problem faced by simple RNN through the gating mechanism, so that the deep network model can learn long time series data. The key of LSTM is that it introduces a group of memory units. At time t, the memory unit C t Records historical information up to the current moment and is controlled by three gates (input gate i t , output gate o t and forget gate f t ) simulates the input, read and reset operations between nerve cells, and its output values are all between 0 and 1; the input gate is mainly used to determine the attributes that need to be updated and the content of the new attributes, the forget gate is used to discard useless historical state information, and the output gate determines the output result; these three gates are determined by the output h of the previous unit t-1 and the current input x t Jointly decide, input gate i t 、Forget gate t , output gate o t and candidate state value g t The calculation formula is as follows:
[0072]
[0073] Where: x t Indicates the input value at the current moment; h t-1 Represents the output value of the previous unit; W fx , W ix , W ox , W gx Respectively represent the candidate state value functions of the forget gate, input gate, and output gate with x t The multiplied weight matrix; W fh , W ih , W oh , W gh Respectively represent the candidate state value functions of the forget gate, input gate, and output gate with h t-1 The multiplied weight matrix; b f 、b i 、b o 、b gThey represent the bias in the candidate state value functions of the forget gate, input gate, and output gate respectively; σ represents the Sigmoid function; and tanh represents the activation function.
[0074] In the specific implementation process of the present invention, the distribution network topology recognition model based on LSTM has 1 input layer, 6 middle layers, and 1 output layer; the first layer is the input layer, and its input size is N f +N yx The second layer is an LSTM layer with 64 units, which only outputs the output value at the last moment of the sequence; the third layer is a dropout layer to prevent overfitting, and its probability of dropping input elements is 0.3; the fourth layer is an LSTM layer with 128 units, which only outputs the output value at the last moment of the sequence; the fifth layer is a dropout layer, and its probability of dropping input elements is 0.25; the sixth layer is a fully connected layer, and its output size is N l (N l is the total number of switches in the distribution network); the 7th layer is the Softmax layer; the 8th layer is the classification output layer, and its output size is N l .
[0075] In the specific implementation process of the present invention, the LSTM-based distribution network topology recognition model uses the Adam solver for training, the initial learning rate of the model is set to 0.2, the initial learning rate reduction factor is set to 0.1, the initial learning rate reduction rounds are set to 50, the gradient threshold is set to 1, and the maximum number of iterations is 500. During the training process of the LSTM model, 70% of the distribution network topology recognition sample set is randomly selected as the training sample set, and the rest is used as the test sample set.
[0076] In the specific implementation process of the present invention, the LSTM-based distribution network topology recognition model is applied to perform online / offline recognition of the distribution network topology. In the topology recognition application stage, the real-time collected telemetering data is re-one-hot encoded and input together with the real-time collected data of the screened telemetry variables into the trained LSTM-based distribution network topology recognition model to output the binary state variables of all switches in the distribution network. When the switch state estimated by the LSTM model is inconsistent with the telemetering, an alarm prompts "further manual confirmation of the switch state is required". Specifically, if the switch state can be confirmed on-site, the switch state is determined based on the on-site confirmation result, otherwise, the switch state is determined based on the telemetering data. When all switch states are determined, a complete distribution network topology connection diagram is generated, which includes node, line, and switch information (closed switches are black solid boxes, and open switches are white-bottomed red boxes).
[0077] Another aspect of the present invention provides a distribution network topology identification device based on LightGBM-LSTM, and the device is applied to a distribution network topology identification method based on LightGBM-LSTM, comprising:
[0078] Data acquisition unit, used to acquire telemetry data and telesignaling data of the distribution automation master station;
[0079] A first data preprocessing unit performs data cleaning on the telemetry data and performs time series synchronization on the cleaned telemetry data;
[0080] The second data preprocessing unit is used to extract the valid flag, the refresh flag and the telesignaling state value flag in the switch state data from the telesignaling data, encode the extracted telesignaling data by using a unique hot encoding method, and then perform time sequence synchronization on the encoded telesignaling data to obtain the telesignaling feature;
[0081] The feature screening unit is used to screen the features of the telemetry data after time series synchronization using the LightGBM algorithm;
[0082] A topology recognition unit is used to input the telesignaling features and the filtered telemetry features into the LSTM-based distribution network topology recognition model to predict the switch status of all switches in the distribution network;
[0083] The topology generation unit is used to draw a topological connection diagram of the distribution network according to the switch states of all switches in the distribution network.
[0084] Another aspect of the present invention provides an electronic device, comprising a memory and a processor, wherein the memory is used to store a computer program, and the processor runs the computer program to enable the electronic device to execute the distribution network topology identification method based on LightGBM-LSTM.
[0085] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the program can be stored in a non-volatile computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
[0086] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection scope of the present invention.
[0087] Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solution of the present invention can be modified or replaced by equivalents without departing from the purpose and scope of the technical solution, which should be included in the scope of the claims of the present invention.
Claims
1. A distribution network topology identification method based on LightGBM-LSTM, It is characterized in that include: S1: Acquire telemetry data and telesignaling data of the distribution automation master station, clean the telemetry data, and synchronize the cleaned telemetry data; The time series synchronization of the cleaned telemetry data includes: The telemetry data obtained by the low-frequency sampling source and the telemetry data obtained by the high-frequency sampling source are synchronized in time series; the telemetry data obtained by the high-frequency sampling source is expressed as The telemetry data obtained from the low-frequency sampling source is expressed as Among them, T l =rT h ; Then the telemetry data obtained by the low-frequency sampling source after timing synchronization is expressed as: Where a is an integer greater than or equal to 0, b is an integer greater than or equal to 1 and less than or equal to r-1, T h Represents the sampling time interval of the high-frequency sampling source, T l Indicates the sampling time interval of the low-frequency sampling source; S2: extract the valid flag, refresh flag and telesignal state value flag in the switch state data from the telesignal data, encode the extracted telesignal data using the unique hot encoding method, and then synchronize the encoded telesignal data in time series to obtain the telesignal feature; S3: Use the LightGBM algorithm to perform feature screening on the telemetry data after time series synchronization; The method of using the LightGBM algorithm to perform feature screening on the telemetry data after time series synchronization includes: using the telemetry data after time series synchronization as the input feature of the sample, and the label of the sample is N in the distribution automation master station. l The binary state value of the switch; the LightGBM model setting parameters are as follows: the number of leaves num_leaves = A, the number of boosted trees num_trees = B, the problem type is binary classification objective = 'binary'; after the iteration, the entire LightGBM model is traversed to obtain the sum of the information gains of all nodes with a certain telemetry feature as the split feature as the importance of the telemetry feature for the distribution network topology identification, and the top N are selected according to the importance of the distribution network topology identification from large to small. f =c%×N yc The telemetry features of N are used as the filtered telemetry features. l Represents the binary state value of all switches in the distribution network; N yc Indicates the number of telemetry variables available; S4: Input the telesignaling features and the selected telemetry features into the LSTM-based distribution network topology recognition model to predict the switch status of all switches in the distribution network; S5: Draw a topological connection diagram of the distribution network according to the switch states of all switches in the distribution network.
2. According to a distribution network topology identification method based on LightGBM-LSTM according to claim 1, It is characterized in that The telemetry data of the distribution automation master station includes: node voltage, node active / reactive power, line current, line active / reactive power; The remote signaling data of the distribution automation master station specifically refers to switch status data, which includes: a valid flag, a refresh flag, a replacement flag, a blocking flag, and a remote signaling status value flag.
3. According to a distribution network topology identification method based on LightGBM-LSTM according to claim 1, It is characterized in that The time-series synchronization of the encoded telesignaling data includes: time-series synchronization of the telesignaling data obtained by the low-frequency sampling source and the telesignaling data obtained by the high-frequency sampling source; assuming that the telesignaling data obtained by the high-frequency sampling source is expressed as The remote signal data obtained by the low-frequency sampling source is expressed as Among them, T l =rT h ; Then the telesignaling data obtained by the low-frequency sampling source after timing synchronization is expressed as in, a represents an integer greater than or equal to 0, b represents an integer greater than or equal to 1 and less than or equal to r-1, T h Represents the sampling time interval of the high-frequency sampling source, T l Indicates the sampling time interval of the low-frequency sampling source.
4. According to a distribution network topology identification method based on LightGBM-LSTM according to claim 1, It is characterized in that The LSTM-based distribution network topology identification model includes: an input layer, a first LSTM layer, a first Dropout layer, a second LSTM layer, a second Dropout layer, a fully connected layer, a Softmax layer, and an output layer connected in series in sequence.
5. A distribution network topology identification device based on LightGBM-LSTM, the device is applied to a distribution network topology identification method based on LightGBM-LSTM as described in any one of claims 1-4, It is characterized in that include: Data acquisition unit, used to acquire telemetry data and telesignaling data of the distribution automation master station; A first data preprocessing unit performs data cleaning on the telemetry data and performs time series synchronization on the cleaned telemetry data; The second data preprocessing unit is used to extract the valid flag, the refresh flag and the telesignaling state value flag in the switch state data from the telesignaling data, encode the extracted telesignaling data by using a unique hot encoding method, and then perform time sequence synchronization on the encoded telesignaling data to obtain the telesignaling feature; The feature screening unit is used to screen the features of the telemetry data after time series synchronization using the LightGBM algorithm; A topology recognition unit is used to input the telesignaling features and the filtered telemetry features into the LSTM-based distribution network topology recognition model to predict the switch status of all switches in the distribution network; The topology generation unit is used to draw a topological connection diagram of the distribution network according to the switch states of all switches in the distribution network.
6. An electronic device, It is characterized in that The electronic device includes a memory and a processor, the memory is used to store a computer program, and the processor runs the computer program to enable the electronic device to execute a distribution network topology identification method based on LightGBM-LSTM as described in any one of claims 1 to 4.
