Power distribution network topology identification method considering key feature selection

By screening key features with the Frank-Copula function and random forest, and optimizing the BP neural network with the bat algorithm, the problem of many measurement features and low accuracy in distribution network topology identification is solved, and efficient topology under limited measurement conditions is achieved. Identification, suitable for distribution networks of different sizes, and has good noise immunity.

CN118713048APending Publication Date: 2024-09-27KUNMING UNIV OF SCI & TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410695813.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-31
Publication Date
2024-09-27

AI Technical Summary

Technical Problem

When a high proportion of distributed energy resources are connected to the distribution network, the topology changes frequently, resulting in many measurement features required for topology identification and low accuracy. Moreover, the existing technology requires measurement information of all nodes, which is not consistent with the actual distribution network. The situation where the measuring device is limited.

Method used

The Frank-Copula function is used to generate wind and solar output scenarios, combined with different topologies of the distribution network to construct a measurement data set, feature importance is sorted through random forest, the maximum mutual information coefficient is used to delete redundant features, and the bat algorithm is used to optimize the BP neural network The model performs topological identification.

Benefits of technology

It reduces the data dimension of measurement data, filters out key features, and improves the accuracy of topology identification. It is suitable for distribution networks of different sizes and has high anti-noise capabilities, which is consistent with the limited number of measurement devices in actual distribution networks. situation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118713048A
    Figure CN118713048A
Patent Text Reader

Abstract

The invention relates to a power distribution network topology identification method considering key feature selection, and belongs to the field of power distribution network topology identification. The method comprises the following steps: obtaining a typical wind and light output scene considering wind and light output uncertainty and correlation, and combining with different topologies of a power distribution network to construct a measurement data set; feature selection is carried out according to RF and MIC, and key features which are most important to topology identification and do not contain redundancy are screened out; and optimizing the BP model by using a BA algorithm to identify the topology of the power distribution network. According to the method, the topology of the power distribution network can be identified by adopting fewer measurement characteristics, and the method has higher accuracy and anti-noise capability while the economical efficiency is ensured.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to a distribution network topology identification method considering key feature selection, and belongs to the field of distribution network topology identification. Background Art

[0002] Due to the large-scale grid connection of wind power and photovoltaic power, the uncertainty of the system is increasing, and the safe and stable operation of the distribution network has been severely challenged. In order to cope with the uncertainty of the access of various new energy sources, it is necessary to reconstruct the topology of the distribution network in real time to ensure the safe and stable operation of the distribution network. The topology identification of the distribution network can provide structural information for subsequent power flow calculation, state estimation, capacity allocation, fault location and other tasks. Therefore, carrying out topology identification of the distribution network containing distributed energy (DG) with high precision and high efficiency can better manage the distribution network.

[0003] In the field of distribution network topology identification, H. Wu et al. used a power grid topology generative adversarial network model to identify the topology of distribution networks with network or radial structures; Li Keming et al. proposed a substation topology identification method based on dynamic time bending distance and cluster analysis; J. Zhang proposed a method for estimating the admittance matrix of open-loop distribution networks based on active / reactive power injection and voltage amplitude data; Liu Chao et al. proposed a two-stage topology identification method for radial medium-voltage distribution networks based on advanced measurement system flow matching; Xiao Zhanhui et al. used a mixed integer linear optimization model to identify the topology of the system. In addition, some scholars used measurement devices to identify the topology of distribution networks. VLSrinivas et al. proposed a method to identify the topology of distribution networks using the measurements obtained by smart meters and micro-phase measurement units installed at different locations in the distribution network; X. Wang et al. proposed a method that can use the information extracted by the synchronous phasor measurement unit (PMU) to estimate the system dynamic matrix in real time, thereby identifying the changes in network topology. However, in actual operation, it is difficult to install measuring instruments at all nodes due to the constraints of operating costs. Therefore, J. Zhang et al. proposed a method for identifying topology and estimating line parameters without voltage phase angle information. In the process of topology structure identification, the above methods are based on the connection relationship of power grid components and switch status information, or require state estimation and complex power flow calculation. In the actual operation of the power grid, switches with frequent state changes account for a small number, and switches may refuse to operate, malfunction or detect errors. State estimation and power flow calculation will take a lot of time, affecting the efficiency of power grid topology identification.

[0004] Based on the above problems, artificial intelligence algorithms represented by machine learning have been widely used in distribution network topology identification. Dong Chen et al. attributed the identification of power grid topology structure to the problem of seeking the global optimal combination of boxes and balls, and used the immune intelligence algorithm to solve the model; Jiang Wei et al. proposed a distribution transformer connection relationship identification scheme based on deep neural network, and trained a deep neural network model with online topology identification ability and robustness through strategies such as feature extraction, model optimization and ensemble learning; Chen Biyun et al. proposed a two-layer distribution network topology identification model based on preliminary topology identification and flow matching; Yang Xiu et al. used attention mechanism and convolutional neural network for topology identification; Ren Pengzhe et al. used Bayesian network to fit the nonlinear relationship between distribution network topology, photovoltaic, load and measured voltage to improve the generalization ability of topology identification; Shao Chenying et al. proposed a distribution network topology identification method based on generative adversarial network and local current phasor; Pan Yusheng et al. proposed a distribution network topology identification method based on two-stage feature selection and Gram angle field.

[0005] In the above-mentioned research on using artificial intelligence algorithms for distribution network topology identification, the amount of measurement data required is very large. Most of the literature assumes that the DG output obeys the probability distribution when collecting data on DG nodes, and only considers the uncertainty of wind and solar power, but not its correlation, which may cause calculation errors and have a certain impact on the management of the distribution network. In addition, due to the limitations of cost and other factors, although modern measurement equipment such as PMU can reduce data measurement errors, it has not been widely used in actual distribution networks. Measurement devices are only installed at key nodes. However, in order to ensure the effectiveness and adaptability of the above-mentioned research, measurement information of all nodes is generally required, which does not meet the situation where distribution network measurement devices are limited.

[0006] In view of this, the present invention considers the uncertainty and correlation of wind and solar when constructing the distribution network topology model, performs feature selection based on RF and MIC, and uses the BA-BP algorithm to identify the distribution network topology model. First, the wind and solar output scenarios are generated based on the actual data of a new energy station in East China using the Frank-Copula function, and a measurement data set is constructed in combination with different topologies of the distribution network. Secondly, the importance of the measured features is sorted by RF and the redundant features are deleted according to MIC to screen out the key features for topology identification. Thirdly, the BA is used to optimize the BP neural network model to identify the distribution network topology model. Finally, the proposed model is verified by the IEEE33 and PG&E69 distribution networks. Summary of the invention

[0007] The present invention provides a distribution network topology identification method considering key feature selection, so as to solve the problem that with the access of a high proportion of distributed energy, the topology of the distribution network changes more frequently, the topology identification of the distribution network containing DG requires many measurement features and the identification accuracy is low.

[0008] The technical solution of the present invention is: a distribution network topology identification method considering key feature selection, the specific steps of the method are as follows:

[0009] Step 1: Based on the Frank-Copula function, a typical wind and solar power output scenario is obtained, and a measurement data set is constructed in combination with different topologies of the distribution network;

[0010] Step 2: Random forest (RF) is used to sort the importance of the measured features and remove redundant features according to the maximum mutual information coefficient (MIC) to screen out the key features for topological identification;

[0011] Step 3: Use the Bat algorithm (BA) to optimize the neural network (Back propagation, BP) model to identify the topology of the distribution network.

[0012] As a further solution of the present invention, the specific steps of Step 1 are:

[0013] Step 1.1. Collect the actual data of wind and solar power output for n days, and generate the probability density function of wind and solar power output for each period based on the non-parametric kernel density estimation method. The specific formula is shown in formula (1):

[0014]

[0015] Where: is the probability density function of the wind turbine output during period t, is the probability density function of photovoltaic output in period t; t=1,2,…,24, representing 24 periods; x t ,y t are wind turbine and photovoltaic outputs during period t; X d t , Y d t are the wind turbine and photovoltaic outputs at time t on day d, respectively; h is the bandwidth; K(.) is the Gaussian kernel function, that is,

[0016]

[0017] Step 1.2. Calculate the cumulative distribution function based on the probability density function and Based on the Frank-Copula function, the joint distribution function of wind and solar power output in each period is established:

[0018]

[0019] where: C is a two-dimensional Frank-Copula function, that is:

[0020]

[0021] where: λ t is the correlation coefficient, λ t ∈ (-1, 1) and λ t ≠ 0.

[0022] Step1.3. According to the joint probability distribution function of each time period, perform sampling to obtain N groups of random sampling results. Use the sampling results and the inverse transformation of the joint probability distribution function of wind and light to obtain the output of the wind turbine and photovoltaic for each time period. Combine the output of the wind turbine and photovoltaic for each obtained time period to generate a curve for one day, that is, the typical daily curve.

[0023] Step1.4. Since the number of samples N is large, in order to simplify the analysis and calculation, use K-means clustering to screen the sampling results of wind and light scenarios considering the uncertainty and correlation of wind and light;

[0024] Step1.5. Inject the output data of the typical wind and light scenarios into the distribution network and combine it with different topologies of the distribution network to construct a measurement data set.

[0025] As a further solution of the present invention, the specific steps of Step2 are:

[0026] Step2.1. Use the random forest RF to perform importance selection on the initial measurement features. The formula for the RF to perform feature selection is shown in Equation (5):

[0027]

[0028] where: N represents the number of decision trees in the random forest; errOOB1 represents the out-of-bag data error; errOOB2 represents the out-of-bag data error after adding noise interference.

[0029] Step2.2. The measurement features selected according to the feature importance may contain some redundant information. Therefore, the present invention introduces MIC to perform correlation analysis on the measurement features of the node voltage amplitude, and screens out the key features that are the most important for topology identification and do not contain redundancy:

[0030]

[0031] where: x and y are the sets of measurement values of all time sections of two nodes; a and b are the number of grids divided in the x and y directions respectively, and ab < B; B is the upper limit of the number of grids; I(x, y) is the mutual information value, that is

[0032]

[0033] Where: p(x) and p(y) are the marginal distribution probabilities of x and y respectively; p(x,y) is the joint distribution probability of x and y.

[0034] As a further solution of the present invention, the specific steps of Step 3 are:

[0035] Step 3.1, the BP neural network model is relatively mature in terms of network theory and performance, but it still has defects such as slow learning speed and easy to fall into local minima. To overcome this problem, the present invention introduces BA to optimize the BP neural network model.

[0036] The main parameters of BA are as follows:

[0037] (1) Bat pulse frequency update formula:

[0038] f i =f max +(f max -f min )β (8)

[0039] Where: f i is the pulse frequency of the i-th individual when searching for the target; f max 、f min are the maximum and minimum pulse frequencies of bats; β is a random number uniformly distributed in [0,1].

[0040] (2) The bat’s flight speed update formula:

[0041] v i t =v i t-1 +(x i t-1 -x * )f i (9)

[0042] Where: v i t 、v i t-1 are the flight speeds of the ith individual at time t and time t-1 respectively; x i t-1 is the position of individual i at time t-1; x * The position of the bat at the global optimal value.

[0043] (3) Bat position update formula:

[0044] x i t =x it-1 +v i t (10)

[0045] (4) The updating formula of the volume and pulse frequency of bats searching for prey is:

[0046] A i t+1 =αA i t (11)

[0047] r i t+1 =r i 0 (1-e -λtt ) (12)

[0048] Where: A i t is the impulse volume of individual i at time t; the loudness attenuation coefficient α is [0,1]; r i 0 is the maximum pulse frequency; λ is the frequency increase coefficient at time t, and its value is greater than 0.

[0049] BA is used to optimize the weights and threshold parameters of the BP neural network. The fitness value function optimized by BA is:

[0050]

[0051] Where: l represents the number of samples; y P i,j ,y i,j They represent the predicted value and actual value of the output point corresponding to the i sample respectively.

[0052] Step 3.2: Input the collected real-time cross-section measurement data into the trained model to identify the cross-section topology; considering the accuracy and effectiveness of the evaluation results, the accuracy rate Acc, precision rate Pre and recall rate Rec commonly used in classification problems are selected to evaluate the model. The specific formulas are shown in equations (14)-(16):

[0053]

[0054] Where: T is the total number of correctly classified samples; n1 is the total number of samples; TP represents positive samples classified as positive; FP represents negative samples classified as positive; FN represents positive samples classified as negative.

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

[0056] (1) Based on the relationship between input features and accuracy, topology identification can be achieved using the measurement data of key nodes, which reduces the data dimension of the original data set and is in line with the situation where there are limited measurement devices in actual distribution networks.

[0057] (2) Based on the importance of RF calculation measurement data, the correlation of different measurement data can be determined through MIC, which can guide the screening of the most important and non-redundant key features for topology identification and provide a reference for distribution network configuration measurement data.

[0058] (3) The distribution network topology identification model based on BA-BP constructed in the present invention is not only applicable to radial networks, but also to ring networks; compared with GA-BP and PSO-BP algorithms, BA-BP algorithm has higher accuracy and better noise resistance in distribution networks of different scales. BRIEF DESCRIPTION OF THE DRAWINGS

[0059] Figure 1 This is the overall framework diagram of the distribution network topology identification in the present invention;

[0060] Figure 2 This is a flow chart of distribution network topology identification based on BA-BP in the present invention;

[0061] Figure 3 It is the initial topology diagram of the IEEE33 node distribution network in the present invention;

[0062] Figure 4 It is the initial topology diagram of the PG&E69 node distribution network in the present invention;

[0063] Figure 5 This is the scenery output diagram after scene clustering and reduction in the present invention;

[0064] Figure 6 It is a feature importance ranking diagram in the present invention;

[0065] Figure 7 It is the heat map of the correlation of the measured characteristics of the IEEE33 node distribution network in the present invention;

[0066] Figure 8 It is a heat map of the correlation of the measured characteristics of the PG&E69 node distribution network in the present invention;

[0067] Fig. 9 It is the confusion matrix heat map in the present invention. DETAILED DESCRIPTION

[0068] Example 1: Figure 1-Figure 9 As shown in Figure 2, the distribution network topology identification method considering key feature selection is

[0069] Step 1: Based on the Frank-Copula function, a typical wind and solar power output scenario is obtained, and a measurement data set is constructed in combination with different topologies of the distribution network;

[0070] Step 2: Use random forest RF to sort the importance of the measured features and delete the redundant features according to the maximum mutual information coefficient MIC to screen out the key features for topological identification;

[0071] Step 3: Use the bat algorithm BA to optimize the neural network BP model and identify the topology of the distribution network.

[0072] As a further solution of the present invention, the specific steps of Step 1 are:

[0073] Step 1.1. Collect the actual data of wind and solar power output for n days, and generate the probability density function of wind and solar power output for each period based on the non-parametric kernel density estimation method. The specific formula is shown in formula (1):

[0074]

[0075] Where: is the probability density function of the wind turbine output during period t, is the probability density function of photovoltaic output in period t; t=1,2,…,24, representing 24 periods; x t ,y t are wind turbine and photovoltaic outputs during period t; X d t , Y d t are the wind turbine and photovoltaic outputs at time t on day d, respectively; h is the bandwidth; K(.) is the Gaussian kernel function, that is,

[0076]

[0077] Step 1.2. Calculate the cumulative distribution function based on the probability density function and Based on the Frank-Copula function, the joint distribution function of wind and solar power output in each period is established:

[0078]

[0079] Where: C is the two-dimensional Frank-Copula function, that is:

[0080]

[0081] Where: λ t is the correlation coefficient, λ t ∈(-1,1) and λ t ≠0.

[0082] Step 1.3. According to the joint probability distribution function of each time period, sampling is performed to obtain N groups of random sampling results. The wind turbine and photovoltaic output of each time period are obtained by inverse transformation using the sampling results and the joint probability distribution function of wind and solar power. The wind turbine and photovoltaic output of each time period are combined to generate a curve for one day, i.e., a typical daily curve.

[0083] Step 1.4, since the sampling number N is large, in order to simplify the analysis and calculation, K-means clustering is used to screen the sampling results of the scenery scenes taking into account the uncertainty and correlation of the scenery;

[0084] The typical wind and solar output after screening is as follows: Figure 5 As shown, not only the uncertainty of wind and solar power output is taken into account, but also its correlation, and the fluctuation of wind and solar power output is fully described, so as to prepare data for obtaining more accurate and stable network topology information.

[0085] Step 1.5: Inject the output data of typical wind and solar scenarios into the distribution network, and combine it with different topologies of the distribution network to construct a measurement data set.

[0086] By changing the switch state of the tie line, 28 typical topologies are generated, and the topology labels are set to 1-28, where 1-21 are radial distribution networks and 22-28 are ring distribution networks. The initial topologies of the IEEE 33-node distribution network and the PG&E 69-node distribution network are as follows: Figure 3 , Figure 4 As shown;

[0087] As a further solution of the present invention, the specific steps of Step 2 are:

[0088] Step 2.1, use random forest RF to select the importance of the initial measurement features. The formula for RF feature selection is shown in formula (5):

[0089]

[0090] Where: N represents the number of decision trees in the random forest; errOOB1 represents the out-of-bag data error; errOOB2 represents the out-of-bag data error after adding noise interference.

[0091] RF is used to sort the importance of the original features in the two distribution networks. The sorting results are as follows: Figure 6 shown.

[0092] Step 2.2: The measured features selected based on feature importance may contain some redundant information. Therefore, the present invention introduces MIC to perform correlation analysis on the node voltage amplitude measurement features to select the most important and non-redundant key features for topology identification:

[0093]

[0094] Where: x and y are the sets of measured values of all time sections of two nodes; a and b are the number of grids divided in the x and y directions respectively, and ab < B; B is the upper limit of the number of grids; I(x, y) is the mutual information value, that is

[0095]

[0096] Where: p(x) and p(y) are the marginal distribution probabilities of x and y respectively; p(x, y) is the joint distribution probability of x and y.

[0097] Use MIC to perform correlation analysis on all voltage measurement features. The correlation heat map is as Figure 7 and 8 shown. Among all voltage measurement features, there are strong correlations between many nodes: in the IEEE33 distribution network, V 14 and V 15 (0.923), V 15 and V 16 (0.9407), V 32 and V 33 (0.93), etc.; in the PG&E69 distribution network, V2 and V3(0.999173), V8 and V 40 (0.993389), V 57 and V 12 (1), V 40 and V 41 (1), V 55 and V 56 (1), V 57 and V 58 (1), etc.

[0098] According to the RF importance ranking result ( Figure 6 ), the top 13 important features in the IEEE33 distribution network are {V 16 , V 11 , V 10 , V 17 , V9, V8, V4, V 33 , V 13 , V 18 , V 14 , V 15 , V6}, and the measurement combination without redundant features selected according to RF and MIC is {V 16 , V 11 , V9, V8, V4, V 33 , V 13 , V6, V 24 , V12 ,V 23 ,V 28 ,V 25 The top 24 most important features in the PG&E69 distribution network are {V 27 ,V 26 ,V 18 ,V 16 ,V 25 ,V 15 ,V 24 ,V 14 ,V 13 ,V 53 ,V 23 ,V 21 ,V 20 ,V 42 ,V 17 ,V 19 ,V 58 ,V 54 ,V 47 ,V 62 ,V 46 ,V 55 ,V 22 ,V 45}, the measurement combination without redundant features selected by RF and MIC is {V 27 ,V 26 ,V 18 ,V 16 ,V 25 ,V 15 ,V 24 ,V 14 ,V 13 ,V 53 ,V 23 ,V 21 ,V 20 ,V 42 ,V 19 ,V 58 ,V 54 ,V 47 ,V 62 ,V 46 ,V 55 ,V 45 ,V 69 ,V 10}, the impact of input features on accuracy is shown in Table 1.

[0099] Table 1 Impact of input features on accuracy

[0100]

[0101] It can be seen from Table 1 that, whether in the IEEE33 distribution network or the PG&E69 distribution network, the evaluation index of topology identification using key features is better than the evaluation index of topology identification using importance features, and the index value of topology identification using key nodes is only 0.004-0.007 lower than the index value of topology identification using all features. However, the features used are only 30% of the original features, which reduces the data dimension and is in line with the situation of limited measurement devices in the distribution network.

[0102] As a further solution of the present invention, the specific steps of Step 3 are:

[0103] Step 3.1, the BP neural network model is relatively mature in terms of network theory and performance, but it still has defects such as slow learning speed and easy to fall into local minima. To overcome this problem, the present invention introduces BA to optimize the BP neural network model.

[0104] The main parameters of BA are as follows:

[0105] (1) Bat pulse frequency update formula:

[0106] f i =f max +(f max -f min )β (8)

[0107] Where: f i is the pulse frequency of the i-th individual when searching for the target; f max 、f min are the maximum and minimum pulse frequencies of bats; β is a random number uniformly distributed in [0,1].

[0108] (2) The bat’s flight speed update formula:

[0109] v i t =v i t-1 +(x i t-1 -x * )f i (9)

[0110] Where: v i t 、v i t-1 are the flight speeds of the ith individual at time t and time t-1 respectively; x i t-1 is the position of individual i at time t-1; x * The position of the bat at the global optimal value.

[0111] (3) Bat position update formula:

[0112] x i t =x i t-1 +v i t (10)

[0113] (4) The updating formula of the volume and pulse frequency of bats searching for prey is:

[0114] A i t+1 =αA i t (11)

[0115] r i t+1 =r i 0 (1-e -λt ) (12)

[0116] Where: A i t is the impulse volume of individual i at time t; the loudness attenuation coefficient α is [0,1]; r i 0 is the maximum pulse frequency; λ is the frequency increase coefficient at time t, and its value is greater than 0.

[0117] BA is used to optimize the weights and threshold parameters of the BP neural network. The fitness value function optimized by BA is:

[0118]

[0119] Where: l represents the number of samples; y P i,j ,y i,j They represent the predicted value and actual value of the output point corresponding to the i sample respectively.

[0120] The flow chart of the distribution network topology identification based on BA-BP in the present invention is as follows: Figure 2 shown.

[0121] Step 3.2: Input the collected real-time cross-section measurement data into the trained model to identify the cross-section topology; considering the accuracy and effectiveness of the evaluation results, the accuracy rate Acc, precision rate Pre and recall rate Rec commonly used in classification problems are selected to evaluate the model. The specific formulas are shown in equations (14)-(16):

[0122]

[0123]

[0124] Where: T is the total number of correctly classified samples; n1 is the total number of samples; TP represents positive samples classified as positive; FP represents negative samples classified as positive; FN represents positive samples classified as negative.

[0125] The performance comparison of the learning algorithm of the present invention and other models is shown in Table 2:

[0126] Table 2 Comparison of learning algorithm performance

[0127]

[0128] As shown in Table 2, the test set accuracy of the three intelligent algorithms in the two systems reached more than 0.9, with good classification effect. The accuracy of the BA-BP algorithm is the highest in both distribution networks, and the precision and recall rates are also higher than those of the GA-BP algorithm and the PSO-BP algorithm, proving that BA-BP can accurately identify the current topology, has higher accuracy and sensitivity, and has certain advantages over GA-BP and PSO-BP. Compared with the IEEE33 node distribution network, the test set accuracy, precision and recall rates of GA-BP and PSO-BP in the PG&E69 node distribution network have significantly decreased, while the test set accuracy of BA-BP has only decreased by 0.0016, the precision rate has decreased by 0.00001, and the recall rate has decreased by 0.00201, indicating that the model used in the present invention still has a good topology identification effect in the PG&E69 node distribution network, and the topology identification effect has not decreased due to the increase in the number of nodes, and has good applicability.

[0129] To further verify the performance of the proposed algorithm, the normalized confusion matrix of the model is calculated, and the heat map results are as follows: Fig. 9 As shown. Fig. 9 In , the i-th row and j-th column represent the probability that the true topological category is i and the predicted topological category is j. Fig. 9 It can be seen that the elements on the diagonal in the two-node distribution network are almost all 1, and the elements on the off-diagonal are basically 0, which verifies that the method used in the present invention still has good classification performance in distribution networks of different scales.

[0130] Since the training data comes from simulation and has good data quality, considering the actual application situation, random noise is added to the original measurement data to simulate the real measurement data of the distribution network. The noise levels are 0.01%, 0.05% and 0.1% respectively. The test set accuracy of each algorithm in distribution networks of different sizes is shown in Table 3.

[0131] Table 3 Test set accuracy considering measurement noise

[0132]

[0133] As can be seen from Table 3, with the increase of noise level, the accuracy of all algorithms in the two scale distribution networks has decreased. However, the accuracy of GA-BP and PSO-BP in the IEEE33 node distribution network decreased by 0.11111 and 0.11851, respectively, and in the PG&E69 node distribution network decreased by 0.13334 and 0.14815, respectively. Compared with the rapid decrease in the accuracy of GA-BP and PSO-BP, the accuracy of BA-BP in the IEEE33 node distribution network only decreased by 0.09565 and in the PG&E69 node distribution network decreased by 0.12783. Even when the noise level is 0.1%, it can still maintain an accuracy of 0.85926. It can be seen that with the increase of noise level, the BA-BP algorithm has good adaptability in both the IEEE33 node and PG&E69 node distribution networks, proving that the method proposed in the present invention has good noise resistance.

[0134] The specific implementation modes of the present invention are described in detail above in conjunction with the accompanying drawings, but the present invention is not limited to the above implementation modes, and various changes can be made within the knowledge scope of ordinary technicians in this field without departing from the purpose of the present invention.

Claims

1. A distribution network topology identification method considering key feature selection, characterized in that: The specific steps of the method are as follows: Step1. Based on the Frank-Copula function, obtain typical wind and light output scenarios, and combine them with different topologies of the distribution network to construct a measurement data set; Step2. Use the random forest RF to rank the importance of measurement features and delete redundant features according to the maximum mutual information coefficient MIC, and screen out the key features for topology identification; Step3. Use the bat algorithm BA to optimize the neural network BP model to identify the topology of the distribution network.

2. The distribution network topology identification method considering key feature selection according to claim 1 is characterized in that: The specific steps of Step1 are: Step1.

1. Collect the actual data of wind and light output for n days, and generate the probability density function of wind and light output for each time period based on the non-parametric kernel density estimation method. The specific formula is shown in Equation (1): Where: is the probability density function of the wind turbine output during period t, is the probability density function of photovoltaic output in period t, t=1,2,…,24, representing 24 periods; x t ,y t They are wind turbine and photovoltaic outputs during period t respectively; are the wind turbine and photovoltaic outputs at time t on day d, respectively; h is the bandwidth; K(.) is the Gaussian kernel function, that is, Step 1.

2. Calculate the cumulative distribution function based on the probability density function and Based on the Frank-Copula function, the joint distribution function of wind and solar power output in each period is established: In the formula: C is the two-dimensional Frank-Copula function, that is: Where: λ t is the correlation coefficient, λ t ∈(-1,1) and λ t ≠0; Step1.

3. According to the joint probability distribution function of each time period, perform sampling to obtain N groups of random sampling results. Use the sampling results and the inverse transformation of the joint probability distribution function of wind and light to obtain the wind turbine and photovoltaic output for each time period. Combine the wind turbine and photovoltaic output obtained for each time period to generate a curve for one day, that is, the typical daily curve; Step1.

4. Use K-means clustering to screen and reduce the sampling results of wind and light scenarios considering wind and light uncertainty and correlation; Step1.

5. Inject the output data of the typical wind and light scenarios into the distribution network, and combine them with different topologies of the distribution network to construct a measurement data set.

3. The distribution network topology identification method considering key feature selection according to claim 1 is characterized in that: The specific steps of Step2 are: Step2.

1. Use the random forest RF to select the importance of the initial measurement features. The formula for the RF to perform feature selection is shown in Equation (5): In the formula: N represents the number of decision trees in the random forest; errOOB1 represents the out-of-bag data error; errOOB2 represents the out-of-bag data error after adding noise interference. Step2.

2. The measurement features selected according to the feature importance may contain some redundant information. Introduce MIC to perform correlation analysis on the node voltage amplitude measurement features, and screen out the key features that are the most important for topology identification and do not contain redundancy: In the formula: x and y are the sets of measurement values of all time sections of two nodes; a and b are the number of grids divided in the x and y directions respectively, and ab < B; B is the upper limit of the number of grids; I(x, y) is the mutual information value, that is In the formula: p(x) and p(y) are the marginal distribution probabilities of x and y respectively; p(x, y) is the joint distribution probability of x and y.

4. The distribution network topology identification method considering key feature selection according to claim 1 is characterized in that: The specific steps of Step3 are: Step3.

1. Introduce BA to optimize the BP neural network model; The parameters of BA are as follows: (1) The update formula for the pulse frequency of the bat: f i =f max +(f max -f min )β(8) Where: f i is the pulse frequency of the i-th individual when searching for the target; f max 、f min are the maximum and minimum pulse frequencies of bats; β is a random number uniformly distributed in [0,1]; (2) The update formula for the flight speed of the bat: Where: are the flight speeds of the ith individual at time t and time t-1 respectively; x i t-1 is the position of individual i at time t-1; x * The position of the bat at the global optimal value; (3) The update formula for the position of the bat: x i t =x i t-1 +v i t (10) (4) The update formula for the volume and pulse frequency of the bat when searching for prey: A i t+1 =αA i t (11) r i t+1 =r i 0 (1-e -λt ) (12) Where: A i t is the impulse volume of individual i at time t; the loudness attenuation coefficient α is [0,1]; r i 0 is the maximum pulse frequency; λ is the frequency increase coefficient at time t, and its value is greater than 0; Use BA to optimize the weight and threshold parameters of the BP neural network. The fitness function optimized by BA is Where: l represents the number of samples; y P i,j ,y i,j Respectively represent the predicted value and actual value of the output point corresponding to the i sample; Step 3.2: Input the collected real-time cross-section measurement data into the trained model to identify the cross-section topology; considering the accuracy and effectiveness of the evaluation results, the accuracy rate Acc, precision rate Pre and recall rate Rec commonly used in classification problems are selected to evaluate the model. The specific formulas are shown in equations (14)-(16): Where: T is the number of samples that are correctly classified; n1 is the total number of samples; TP represents positive samples classified as positive; FP represents negative samples classified as positive; and FN represents positive samples classified as negative.