A two-stage fault location method for online fault location in active distribution networks

Through a two-stage fault location method, combined with stochastic simulation and SSA-RF model, the slow convergence and low accuracy problems of the swarm intelligent optimization algorithm in fault location in the active distribution network are solved, and more efficient and accurate fault location is achieved. and greater fault tolerance.

CN118395291BActive Publication Date: 2024-10-22NANJING UNIV OF POSTS & TELECOMM
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410847162.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-27
Publication Date
2024-10-22
Estimated Expiration
2044-06-27

AI Technical Summary

Technical Problem

Existing fault location methods based on swarm intelligence optimization algorithms have problems with slow algorithm convergence, poor accuracy, and low fault tolerance in active distribution networks, making it difficult to meet the real-time and accuracy requirements for fault location.

Method used

A two-stage fault location method is adopted. First, a fault feature library and classification model are constructed through random simulation and the combination of Sparrow Search Algorithm (SSA) and Random Forest (RF) model, and offline training is performed. Then the trained model is used to detect real-time faults. Locate,identify faulty lines through cosine similarity.

Benefits of technology

It improves the efficiency and accuracy of fault location, enhances fault tolerance, is suitable for the real-time fault location requirements of multi-source active distribution networks, and simplifies the calculation amount and deployment difficulty.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118395291B_ABST
    Figure CN118395291B_ABST
Patent Text Reader

Abstract

The present invention belongs to the technical field of distribution network, and discloses a two-stage fault location method for online fault location of active distribution network, carries out random simulation of short-circuit fault of distribution network, combines line fault state, DG parallel and off-grid state and fault current direction discrimination function, builds fault feature library; divides distribution network into sections, and classifies faults according to the combination of sections where faults are located; builds SSA-RF classification model, and completes offline training of classification model using fault feature library; obtains real-time current direction information of all lines of distribution network, and calls trained model to locate the section where faults are located; for each locked fault section, calculates cosine similarity between fault current directions of adjacent lines in the section, and discriminates the line where its mutation point is located as fault line. The present invention overcomes the problems of traditional methods relying on online iterative solution of model, poor real-time performance, low accuracy and weak fault tolerance, and can realize online fault location of active distribution network.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the technical field of power distribution networks, and in particular relates to a two-stage fault location method for online fault location of an active power distribution network. Background Art

[0002] With the continuous grid connection of distributed power sources such as distributed photovoltaics and wind turbines, the distribution system structure of the distribution network tends to be more complex and intelligent. As one of the core components of distribution automation, fault location can ensure the continuity of power supply and system stability by quickly and accurately identifying and locating the fault point. As a distribution network line fault detection and remote control unit, the feeder terminal unit (FTU) can timely obtain information such as the fault current flowing through the segmented line, the time of fault occurrence, the duration of the fault, and the direction of the fault current. Considering that after the distributed power source is connected to the grid, it will help increase or attenuate the fault current on the downstream of the line, how to fully exploit the fault current detection information of the FTU under the premise of taking into account the impact of the distributed power source grid connection, and propose a fault location method that adapts to the active distribution network, is a current research hotspot.

[0003] Most of the existing related studies use the fault current direction information detected by FTU, construct an optimization model and solve it using swarm intelligence optimization algorithm to achieve fault segmented line location. The swarm intelligence optimization algorithms used include immune algorithm, particle swarm optimization algorithm, genetic algorithm, metaverse algorithm, etc. Although the improved swarm intelligence optimization algorithm can improve the algorithm performance to a certain extent, it cannot avoid the problem that such algorithms themselves need to construct a population of variables to be determined and rely on large-scale online iterative calculations. The fault location method based on swarm intelligence optimization algorithm constructs an optimization model with the goal of minimizing the deviation between the detected fault current direction information and the expected fault current direction information, and iteratively solves the model through the swarm intelligence optimization algorithm to obtain the corresponding fault location information. The fault location accuracy of this method mainly depends on the performance of the selected swarm intelligence optimization algorithm itself. With the expansion of the target power grid scale, the dimension of the solution variable increases, and the swarm intelligence optimization algorithm is prone to fall into the local optimal solution, which leads to the misjudgment of the fault line. At the same time, the fault location method based on the swarm intelligence optimization algorithm needs to go through a large number of iterative calculations to ensure that the solution is as close to the global optimal solution as possible. There is a problem of slow convergence speed, which is difficult to meet the real-time requirements of fault location. In addition, the fault location method based on the swarm intelligence optimization algorithm uniformly considers the fault current direction information of all segmented line FTUs within the search range into the optimization model, and does not distinguish the difference in the degree of influence of the fault current direction information of segmented lines in different regions on the fault location results. Therefore, when the FTU of one or several segmented lines has fault data loss and distortion, resulting in abnormal FTU fault current direction information, the fault location method based on the swarm intelligence optimization algorithm often misjudgments. It can be seen that the existing fault location methods based on the swarm intelligence optimization algorithm generally have problems such as slow algorithm convergence speed, poor accuracy and low fault tolerance, and are difficult to apply to multi-source active distribution networks. Summary of the invention

[0004] In order to solve the above technical problems, the present invention provides a two-stage fault location method for online fault location of active distribution networks, which has the characteristics of small online call computing power requirement and strong fault tolerance. It overcomes the shortcomings of poor scalability, slow convergence speed and low fault tolerance of the existing fault location method based on swarm intelligent optimization algorithm, and meets the requirements of real-time, accuracy and robustness of active distribution network fault location.

[0005] A two-stage fault location method for online fault location of an active power distribution network according to the present invention comprises the following steps:

[0006] S1. Based on the topological structure of the target distribution network and the grid-connected and off-grid conditions of distributed power sources, random simulation of single-point and multi-point short-circuit faults is carried out; the fault characteristic library of the target distribution network is constructed by utilizing the detection capability of the feeder terminal unit FTU installed on each segmented line for the direction of fault current, combining the segmented line fault status index, the grid-connected and off-grid status index of distributed power sources and the fault current direction discrimination function;

[0007] S2. Divide the target distribution network into sections, use the section number as a label to calibrate the sections where each fault is located in the fault feature library, and classify the faults according to the combination of sections where the faults are located; build a classification model based on the sparrow search algorithm (SSA) and random forest (RF), and use the fault feature library to complete the offline training of the SSA-RF classification model. The trained SSA-RF classification model can characterize the high-dimensional mapping relationship between the fault current direction vectors of all segmented lines in the target distribution network under various types of faults and the section number where the fault is located;

[0008] S3. Obtain the real-time fault current direction information of all segmented line FTUs of the target distribution network, call the trained SSA-RF classification model, and locate the section where the fault is located; for each locked fault section, calculate the cosine similarity between the fault current direction information of each two adjacent segmented lines in the section in turn, identify the segmented line where the mutation point in the cosine similarity distribution is located as the fault line, and output the fault line number.

[0009] Furthermore, in S1, based on the topological structure of the target distribution network and the grid-connection and off-grid conditions of distributed power sources, random simulation of single-point and multi-point short-circuit faults is carried out, specifically:

[0010] All segmented lines of the target distribution network are numbered, and single-point and multi-point fault line numbers are randomly selected and fault simulation is performed. The distribution of fault lines must cover all line branches, and the fault simulation scenario must be as close as possible to all possible combinations of fault lines.

[0011] Furthermore, in S1, the segmented line fault state index, the distributed generation grid-connected and off-grid state index and the fault current direction discrimination function are specifically:

[0012] a. The fault status of the segmented line is determined by the indicator It means: when there is no fault in segment line i, is equal to 0; when a fault occurs in segment line i, is equal to 1;

[0013] b. The grid-connected and off-grid status of distributed power generation is determined by indicators Indicates: When there is no distributed power supply connected at the segment line i or the connected distributed power supply is off-grid, is equal to 0; when there is a distributed power source connected at the segment line i, is equal to 1;

[0014] c. The fault current direction discrimination function is defined as:

[0015] ,

[0016] In the formula, Indicates the direction of the fault current flowing through the segmented line i. When the fault current detected at line i flows from the system power supply side to the end of the branch where line i is located, it is the positive fault current direction, corresponding to is 1; otherwise, it is a negative fault current direction, corresponding to is -1; if no fault current is detected, the corresponding is 0; and Respectively represent the fault status of the downstream area and upstream area of ​​segment line i. If there is a fault, it is 1, otherwise it is 0; Indicates whether there is a distributed power source connected to the grid downstream of segment line i. If so, it is 1, otherwise it is 0; and are the total number of downstream segment lines of segment line i and the total number of upstream segment lines of segment line i, respectively; is the total number of downstream distributed generation sources of line i; Represents logical OR; for any segment line i, the distance from its location to the system power supply side is upstream, and the distance from its location to the end of the branch where segment line i is located is downstream.

[0017] Furthermore, in S1, a fault feature library of the target distribution network is constructed. Specifically, first, each fault scenario obtained by random simulation of single-point and multi-point short-circuit faults is converted into each segment line fault state index. And distributed power supply on-grid and off-grid status indicators Then, the fault current direction index of each segment line under the corresponding fault scenario is obtained by using the fault current direction discrimination function. , and the fault current direction indicators of all segmented lines The constructed vector is used as the fault feature under the fault scenario; finally, the fault feature library of the target distribution network is composed of the fault features of all simulated fault scenarios.

[0018] Furthermore, S2 is specifically:

[0019] S2-1. Divide the sections according to the target distribution network topology structure; the divided sections must contain at least two segmented lines and no branch lines; number the divided sections, and number and calibrate the sections where each fault is located in the fault feature library, count all the non-repeated section number combinations that appear, name them and use them as fault classification labels;

[0020] S2-2. Changes in the warning value R, safety value ST, discoverer ratio PD, sparrow population N and maximum number of iterations in the SSA algorithm Set parameters and set upper and lower limits for the parameters to be optimized in the RF model, namely the number of decision trees T and the number of tree layers D;

[0021] S2-3, initialize the sparrow population in the SSA algorithm, the first The initial position of the sparrows Equivalence ; According to the initial position information of the sparrow, the hyperparameters T and D of the RF model are set, and then the fault feature library is used to complete the training of the RF model, and the accuracy of the RF model under the current position information is calculated, which is used as the fitness value under the position information, and then the corresponding fitness values ​​of all the initial positions of the sparrows are obtained;

[0022] S2-4, according to the warning value R and the safety value ST, use formula (2) to update the position of the discoverer in the sparrow;

[0023] ,

[0024] In the formula, is the current iteration number; is the maximum number of iterations; For the A sparrow in Dimensional position; and is a random number; It's size , a matrix with all elements equal to 1;

[0025] The joiner among the sparrows enters the search range to compete and monitor with the other sparrows, and the position of the joiner is updated using formula (3);

[0026] ,

[0027] In the formula, For the The global worst position at the iteration (i.e. the minimum fitness value), For the The optimal position (i.e. the maximum fitness value) is found in the iteration. for A matrix whose elements are randomly assigned 1 or -1, and ;

[0028] Use equation (4) to update the position of the sparrow that is aware of the danger;

[0029] ,

[0030] In the formula For the The global optimal position at the iteration is is the step size control parameter, and its value is Normally distributed random numbers, for The random number inside, They are the individual fitness, global optimal fitness, and global worst fitness of the current sparrow respectively. is the smallest non-zero constant;

[0031] Determine the number of iterations Whether the maximum number of iterations has been reached ;like , then continue to repeat S2-3 to S2-4; otherwise, stop the iteration and output the global optimal solution, that is, ;

[0032] S2-5. The optimal solution of the SSA output is used as the optimal hyperparameter of RF, and then the offline training of the SSA-RF classification model is completed. The trained SSA-RF model can characterize the high-dimensional mapping relationship between the fault current direction vectors of all segmented lines in the target distribution network under various types of faults and the section number where the fault is located.

[0033] Furthermore, S3 is specifically:

[0034] S3-1, obtain the real-time fault current direction information of all segmented line FTUs of the target distribution network, construct the fault current direction vector and use it as the fault feature;

[0035] S3-2, calling the offline trained SSA-RF classification model, taking the fault feature as input, outputting the fault type, and obtaining the section number combination corresponding to the fault type;

[0036] S3-3. For all locked fault sections, the cosine similarity between the fault current direction information of two adjacent segment lines in each section is calculated in turn according to formula (5);

[0037] ,

[0038] In the formula and are line i and its adjacent lines respectively The fault current direction indicator is or The value is 0, then the negative infinitesimal constant Replace it;

[0039] S3-4. Find the mutation point in the cosine similarity distribution in each section, identify the segmented line where the mutation point is located as the fault line, output all fault line numbers, and complete the fault location.

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

[0041] 1) Compared with the traditional fault location method based on swarm intelligence optimization algorithm, the two-stage fault location method proposed in the present invention first locates the approximate area where the fault is located, and then performs a refined search for the fault line in the fault area, which can effectively reduce the search range of the fault line, shorten the fault location time, and improve the fault location efficiency;

[0042] 2) The fault section location method based on the SSA-RF classification model proposed in the present invention can complete the training of the SSA-RF classification model offline according to the topological structure of the target active distribution network through random simulation of single-point and multi-point short-circuit faults. In the online fault location stage, it only needs to directly call the trained SSA-RF classification model to complete the location of the fault section, avoiding the online solution process of the location model of the traditional fault location method based on the swarm intelligence optimization algorithm, and ensuring the real-time performance of the fault location;

[0043] 3) The fault section location method based on the SSA-RF classification model proposed in the present invention can fully explore the high-dimensional mapping relationship between the fault current direction vectors of all segmented lines of the target distribution network and the section number where the fault is located under various faults. When the FTU has abnormal signals, compared with the traditional fault location method based on the swarm intelligence optimization algorithm, the method proposed in the present invention has better fault tolerance and is more suitable for practical applications.

[0044] 4) The refined positioning method for the faulty line in the locked fault section based on cosine similarity proposed in the present invention has a simple structure, small amount of calculation, and is easy to deploy in practice. BRIEF DESCRIPTION OF THE DRAWINGS

[0045] Figure 1 is a flow chart of the method of the present invention;

[0046] Figure 2 It is a schematic diagram of the actual deployment of the method of the present invention;

[0047] Figure 3 It is a schematic diagram of the overall strategic framework of the method of the present invention;

[0048] Figure 4 To test the distribution network topology and section division diagram;

[0049] Figure 5 The diagram of the test set confusion matrix of the fault section location model based on the SSA-RF model under 15 types of faults;

[0050] Figure 6 is the cosine similarity graph of adjacent lines in the fault section B5;

[0051] Figure 7 is the cosine similarity gradient map of fault sections B2 and B3;

[0052] Figure 8 Schematic diagram of the effect of FTU signal abnormality on the accuracy of the two-stage fault location method proposed by the present invention;

[0053] Fig. 9 Schematic diagram of the impact of FTU signal abnormality on the accuracy of fault location based on the PSO algorithm. DETAILED DESCRIPTION

[0054] In order to make the contents of the present invention more clearly understood, the present invention is further described in detail below based on specific embodiments in conjunction with the accompanying drawings.

[0055] Figure 1 and Figure 2 A two-stage fault location method flow chart and actual deployment diagram for online fault location of an active distribution network provided by an example of the present invention; Figure 1 As shown, the method of the present invention comprises the following steps:

[0056] S1. Based on the topological structure of the target distribution network and the grid-connected and off-grid conditions of distributed generation, random simulation of single-point and multi-point short-circuit faults is carried out. The fault current direction detection capability of the feeder terminal unit (FTU) installed on each segment line is utilized. Combined with the segment line fault state index, the grid-connected and off-grid state index of distributed generation and the fault current direction discrimination function, the fault feature library of the target distribution network is constructed.

[0057] First, the topological structure of the target distribution network and the grid-connection and off-grid status of distributed power sources are obtained, all segmented lines of the target distribution network are numbered, and single-point and multi-point fault line numbers are randomly sampled and fault simulation is performed. The distribution of fault lines must cover all line branches, and the fault simulation scenario must be as close as possible to all possible combinations of fault lines.

[0058] Then, the fault current direction of each segment line of the target distribution network under each random fault is calculated by combining the segment line fault state index, the distributed generation grid-connected and off-grid state index and the fault current direction discriminant function;

[0059] Among them, the fault status of the segmented line is determined by the indicator It means: when there is no fault in segment line i, is equal to 0; when a fault occurs in segment line i, is equal to 1;

[0060] The on-grid and off-grid status of distributed power generation is determined by indicators Indicates: When there is no distributed power supply connected at the segment line i or the connected distributed power supply is off-grid, is equal to 0; when there is a distributed power source connected at the segment line i, is equal to 1;

[0061] The fault current direction discrimination function is defined as:

[0062] ,

[0063] In the formula, Indicates the direction of the fault current flowing through the segmented line i; when the fault current detected at line i flows from the system power supply side to the end of the branch where line i is located, it is the positive fault current direction, corresponding to is 1; otherwise, it is a negative fault current direction, corresponding to is -1; if no fault current is detected, the corresponding is 0; and Respectively represent the fault status of the downstream area and upstream area of ​​segment line i. If there is a fault, it is 1, otherwise it is 0; Indicates whether there is a distributed power source connected to the grid downstream of segment line i. If so, it is 1, otherwise it is 0; and are the total number of downstream segment lines of segment line i and the total number of upstream segment lines of segment line i, respectively; is the total number of downstream distributed generation sources of line i; Represents logical OR; for any segment line i, the distance from its location to the system power supply side is upstream, and the distance from its location to the end of the branch where segment line i is located is downstream;

[0064] Finally, the fault scenarios obtained by random simulation of single-point and multi-point short-circuit faults are calculated by the fault state indicators of each segment line. And distributed power supply on-grid and off-grid status indicators The fault current direction index of each segment line under the corresponding fault scenario is obtained by using the fault current direction discrimination function. , and all segmented lines The constructed direction vector is used as the fault feature under the fault scenario; the fault feature library of the target distribution network is composed of the fault features of all simulated fault scenarios.

[0065] S2. Divide the target distribution network into sections, use the section number as a label to calibrate the sections where each fault is located in the fault feature library, and classify the faults according to the combination of sections where the faults are located; build a classification model based on the sparrow search algorithm (SSA) and random forest (RF), and use the fault feature library to complete the offline training of the SSA-RF classification model. The trained SSA-RF classification model can characterize the high-dimensional mapping relationship between the fault current direction vectors of all segmented lines in the target distribution network under various faults and the section number where the fault is located; specifically:

[0066] S2-1. Divide the sections according to the target distribution network topology structure; the divided sections must contain at least two segmented lines and no branch lines; number the divided sections, and number and calibrate the sections where each fault is located in the fault feature library, count all the non-repeated section number combinations that appear, name them and use them as fault classification labels;

[0067] S2-2. Changes in the warning value R, safety value ST, discoverer ratio PD, sparrow population N and maximum number of iterations in the SSA algorithm Set parameters and set upper and lower limits for the parameters to be optimized in the RF model, namely the number of decision trees T and the number of tree layers D;

[0068] S2-3, initialize the sparrow population in the SSA algorithm, the first The initial position of the sparrows Equivalence ; Complete the setting of RF model hyperparameters T and D according to the initial position information of the sparrow, then use the fault feature library to complete the training of the RF model, and calculate the accuracy of the RF model under the current position information, and use it as the fitness value under the position information, and then complete the setting of the fitness value corresponding to the initial position of all sparrows;

[0069] S2-4, according to the warning value R and the safety value ST, use formula (2) to update the position of the discoverer in the sparrow;

[0070] ,

[0071] In the formula, is the current iteration number; is the maximum number of iterations; For the A sparrow in Dimensional position; and is a random number; It's size , a matrix with all elements equal to 1;

[0072] The joiner among the sparrows enters the search range to compete and monitor with the other sparrows, and the position of the joiner is updated using formula (3);

[0073] ,

[0074] In the formula, For the The global worst position at the iteration (i.e. the minimum fitness value), For the The optimal position (i.e. the maximum fitness value) is found in the iteration. for A matrix whose elements are randomly assigned 1 or -1, and ;

[0075] Use equation (4) to update the position of the sparrow that is aware of the danger;

[0076] ,

[0077] In the formula For the The global optimal position at the iteration is is the step size control parameter, and its value is Normally distributed random numbers, for The random number inside They are the individual fitness, global optimal fitness, and global worst fitness of the current sparrow respectively. is the smallest non-zero constant;

[0078] Determine the number of iterations Whether the maximum number of iterations has been reached ;like , then continue to repeat S2-3 to S2-4; otherwise, stop the iteration and output the global optimal solution, that is, ;

[0079] S2-5. The optimal solution of the SSA output is used as the optimal hyperparameter of RF, and then the offline training of the SSA-RF classification model is completed. The trained SSA-RF model can characterize the high-dimensional mapping relationship between the fault current direction vectors of all segmented lines in the target distribution network under various types of faults and the section number where the fault is located.

[0080] S3. Obtain the real-time fault current direction information of all segmented line FTUs of the target distribution network, call the trained SSA-RF classification model, and locate the section where the fault is located; for each locked fault section, calculate the cosine similarity between the fault current direction information of each two adjacent segmented lines in the section, identify the segmented line where the mutation point in the cosine similarity distribution is located as the fault line, and output the fault line number; specifically:

[0081] S3-1, obtain the real-time fault current direction information of all segmented line FTUs of the target distribution network, construct the fault current direction vector and use it as the fault feature;

[0082] S3-2, such as Figure 3 The SSA-RF classification model after offline training is called, the fault feature is used as input, the fault type is output, and the section number combination corresponding to the fault type is obtained;

[0083] S3-3. For all locked fault sections, the cosine similarity between the fault current direction information of two adjacent segment lines in each section is calculated in turn according to formula (5);

[0084] ,

[0085] In the formula and are line i and its adjacent lines respectively The fault current direction indicator is or When it takes zero value, or Replace with , that is, a negative infinitesimal constant;

[0086] S3-4. Find the mutation point in the cosine similarity distribution in each section, identify the segmented line where the mutation point is located as the fault line, output all fault line numbers, and complete the fault location.

[0087] Experimental verification

[0088] In order to make those skilled in the art more familiar with the present invention, the following examples are given.

[0089] The modified IEEE 33 node is selected as the test distribution network, and its grid topology is as follows: Figure 4 As shown, Figure 4 L1…L33 are the segment line numbers, and numbers 1…34 are the node numbers. There are three distributed power sources connected to the test grid. The on-grid and off-grid states of distributed power sources 1~3 are controlled by switches K1~3 respectively; at the same time, when a short-circuit fault occurs in the branch where any DG is located, the DG will inject a short-circuit current to the fault point. In addition, except for the main lines L1 and L2, the remaining lines are divided into five areas from B1 to B5. The lines in each area are as follows: Figure 4 The simulation environment is Windows 64-bit operating system, processor Inter(R) Core(TM) i7-7700 CPU @3.6GHz and 64GB memory.

[0090] The fault sample library is generated by randomly generating single-point and two-point faults in five areas, and a total of 496 groups of fault samples are generated in batches. According to the section where the fault line is located, all fault samples can be divided into 15 different types, represented by labels 1-15#. The combination of section numbers of various faults and the corresponding line sets are shown in Table 1.

[0091] Table 1 Fault classification based on line section

[0092]

[0093] Then, combined with the fault current direction discriminant function, the corresponding fault current direction matrix under each fault scenario can be obtained and used as the feature quantity. The training set and the test set are put into the SSA-RF model in a ratio of 7:3 for model training. The relevant parameter settings are shown in Table 2. The confusion matrix obtained by testing the trained SSA-RF model is as follows: Figure 5 As shown, Figure 5 The numbers on the diagonal indicate the number of samples corresponding to each predicted fault classification when it is the same as the true fault classification. The fault classification is represented by labels C1-C15. The percentage value corresponding to each classification label on the predicted fault classification coordinate axis indicates the percentage of the number of samples correctly predicted as the fault classification to the total number of samples predicted as the fault classification; the percentage value corresponding to each classification label on the true fault classification coordinate axis indicates the percentage of the number of samples correctly predicted as the fault classification to the total number of true samples of the fault classification. It can be seen that the SSA-RF model can accurately locate the section where the fault is located.

[0094] Table 2 Classifier algorithm parameter set based on SSA-RF

[0095]

[0096] Single-point fault location tests are carried out in combination with four combinations of the on-grid and off-grid states of distributed power sources 1~3, as shown in Table 3. When the on-grid and off-grid control switches K1~K3 of distributed power sources 1~3 are all in the disconnected state, that is, when the state quantities [SK1, SK2, SK3] of the three switches are equal to [0,0,0], it indicates that distributed power sources 1~3 are all off-grid and the branches of the distribution network are all passive branches. When a fault occurs on line L8, the FTU device uploads the fault current direction information, calls the SSA-RF model trained in stage 1, determines that the fault section belongs to B5, and preliminarily locates the fault range. Subsequently, for each segmented line in section B5, the cosine similarity with the adjacent segmented line is calculated in turn, and the output cosine similarity results are shown in Tables 3 and Figure 6 As shown in Table 3, the cosine similarity obtained at the fault line has a sudden change compared with other lines, which realizes the accurate location of the fault line in the section. The fault location results of the other three single-point fault scenarios can be seen in Table 3.

[0097] Table 3. Simulation example of single-point fault section location

[0098]

[0099] Similarly, when considering multi-point faults, four multi-point fault scenarios are selected in combination with the grid-connected and off-grid situations of distributed power sources, as shown in Table 4. When [SK1, SK2, SK3] = [1, 1, 1], that is, the distributed power sources are all connected to the distribution network. If lines L5 and L19 fail, according to the fault current direction information reported by the FTU, the SSA-RF model trained in stage 1 is called to lock the fault sections to B2 and B3. The cosine similarity mutation information is used to locate the specific fault lines in these two sections. The corresponding cosine similarity results are shown in Table 4, and the cosine similarity gradient diagrams of the faulty lines L5 and L19 are shown in Table 4. Figure 7 The fault location results in the other three multi-point fault scenarios can be seen in Table 4.

[0100] Table 4 Simulation example of multi-point fault section location

[0101]

[0102] In order to verify the superiority of the fault location method proposed in the present invention over the fault location method based on swarm intelligence optimization algorithm and the fault location method based on artificial intelligence algorithm, fault location methods based on PSO algorithm, support vector machine (SVM), BP neural network, long short-term memory network (LSTM), extreme learning machine (ELM) and other algorithms are selected as comparison objects; among them, the fault location method based on PSO algorithm belongs to a single-layer location method, and the other fault location methods all adopt a two-stage fault location method. It is worth noting that the accuracy of the fault location method based on artificial intelligence algorithm depends on the fault characterization and differentiation ability of the classification model in the first stage.

[0103] Based on cross-validation, the data set in the fault sample library is split into a training set and a test set. 70% of the data set is used as a training set for classifier training, and the remaining sample data set is used as a test set to evaluate the accuracy of the model. In order to reduce the impact of the simulation environment on the simulation results, each fault location model is repeated 20 times, and the median value of the accuracy is obtained as the final accuracy of the model.

[0104] It can be seen from Table 5 that compared with the fault location method based on swarm intelligence optimization algorithm (such as PSO), the two-stage fault location method proposed in the present invention has obvious advantages in the accuracy of fault location and online identification time of the selected test distribution network, and can achieve rapid fault location while ensuring the accuracy of fault location. Compared with common classification models such as BP neural network, SVM, LSTM and ELM, the SSA-RF classification model proposed in the present invention has a stronger generalization ability due to its hyperparameter adaptive optimization capability, and has a higher accuracy and lower online identification time when identifying the fault line of the selected test distribution network, and has the best comprehensive performance.

[0105] Table 5 Comparative analysis of fault line location results

[0106]

[0107] The working environment of the FTU equipment is relatively complex and uncontrollable, which will cause related data loss and data distortion when the FTU equipment transmits fault current direction information, that is, the FTU signal is abnormal. According to the location where the FTU signal anomaly occurs, it can be divided into FTU signal anomaly outside the fault section and FTU signal anomaly inside the fault section. Therefore, in order to further verify the anti-interference ability of the two-stage fault location method proposed in the present invention, abnormal FTU signals outside and inside the fault section are randomly generated based on the 15 fault types defined in Table 1, and the number of FTUs with abnormal signals gradually increases from 1 to 6; the fault current direction information containing the abnormal FTU is passed to the trained SSA-RF model to determine whether it accurately identifies the fault section, and the process is repeated 200 times. The obtained accuracy results are statistically analyzed. The statistical results are as follows: Figure 8 As shown in the box plot. Figure 8 It can be seen that since the proposed SSA-RF model aims to establish a high-dimensional mapping relationship between the fault current direction information in each fault section and the corresponding fault section label, when the abnormal FTU signal is located outside the fault area, the fault location accuracy is higher and the fault tolerance is better; in addition, with the increase in the number of FTU abnormal signals, the fault location accuracy gradually decreases. When there are 1 to 3 FTU signals outside the fault section, the proposed fault location accuracy can still be maintained above 95%.

[0108] Considering that the existing research mainly adopts the fault location method based on swarm intelligence optimization algorithm, this paper takes the fault location method based on PSO algorithm as an example to carry out fault tolerance analysis on it, and the accuracy statistics are as follows: Fig. 9 As shown in the box plot. Figure 8 and Fig. 9 From the comparative analysis, it can be seen that the fault location method based on the PSO algorithm is greatly affected by the abnormal signal of the FTU and its accuracy is difficult to guarantee. However, the two-stage method proposed in this invention has better fault tolerance.

[0109] The above description is only a preferred embodiment of the present invention and is not intended to be a further limitation of the present invention. All equivalent changes made using the contents of the present specification and drawings are within the protection scope of the present invention.

Claims

1. A two-stage fault location method for online fault location in an active distribution network, characterized in that: The following steps are involved: S1. Based on the topological structure of the target distribution network and the grid-connected and off-grid conditions of distributed power sources, random simulation of single-point and multi-point short-circuit faults is carried out; the fault characteristic library of the target distribution network is constructed by utilizing the detection capability of the feeder terminal unit FTU installed on each segmented line for the direction of fault current, combining the segmented line fault status index, the grid-connected and off-grid status index of distributed power sources and the fault current direction discrimination function; The segmented line fault state index, distributed power supply grid-connected and off-grid state index and fault current direction discrimination function are specifically: a. Section line fault status indicators Defined as: When it is 0, it means that the segment line i has no fault; when When it is 1, it indicates that a fault has occurred in segment line i; b. Distributed power supply on-grid and off-grid status indicators It is defined as: when there is no distributed power supply connected at the segment line i or the connected distributed power supply is off-grid, then is 0; otherwise, is 1; c. The fault current direction discrimination function is defined as: , In the formula, Indicates the direction of the fault current flowing through the segmented line i. When the fault current detected at line i flows from the system power supply side to the end of the branch where line i is located, it is the positive fault current direction, that is, is 1; otherwise, it is a negative fault current direction, that is, for ; If no fault current is detected, then is 0; and Respectively represent the fault status of the downstream area and upstream area of ​​segment line i, if there is a fault, it is 1, otherwise it is 0; Indicates whether there is a distributed power source connected to the grid downstream of segment line i. If so, it is 1, otherwise it is 0; and are the total number of downstream segment routes of segment route i and the total number of upstream segment routes of segment route i respectively; is the total number of downstream distributed generation sources of segment line i; Represents logical OR; for any segment line i, the distance from its location to the system power supply side is upstream, and the distance from its location to the end of the branch where segment line i is located is downstream; S2. Divide the target distribution network into sections, use the section number as a label to calibrate the sections where each fault is located in the fault feature library, and classify the faults according to the combination of sections where the faults are located; construct an SSA-RF classification model based on the sparrow search SSA algorithm and random forest RF, and use the fault feature library to complete the offline training of the SSA-RF classification model; specifically: S2-1. Based on the target distribution network topology, the target distribution network is divided into sections; the divided sections are required to contain no less than two segmented lines and no branch lines in the sections; the divided sections are digitally numbered, and then the sections where each fault is located in the fault feature library are numbered and calibrated, and all non-repeated section number combinations that appear are counted, named and used as fault classification labels; S2-2. Changes in the warning value R, safety value ST, discoverer ratio PD, sparrow population N and maximum number of iterations in the SSA algorithm Set parameters and set upper and lower limits for the parameters to be optimized in the RF model, namely the number of decision trees T and the number of tree layers D; S2-3, initialize the sparrow population in the SSA algorithm, the first The initial position of the sparrows Equivalence ; According to the initial position information of the sparrow, the hyperparameters T and D of the RF model are set, and then the fault feature library is used to complete the training of the RF model, and the accuracy of the RF model under the current position information is calculated, which is used as the fitness value under the position information, and then the corresponding fitness values ​​of all the initial positions of the sparrows are obtained; S2-4, according to the warning value R and the safety value ST, use formula (2) to update the position of the discoverer in the sparrow; , In the formula, is the current iteration number; is the maximum number of iterations; For the A sparrow in Dimensional position; and is a random number; It's size , a matrix with all elements equal to 1; The joiner among the sparrows enters the search range to compete and monitor with the other sparrows, and the position of the joiner is updated using formula (3); , In the formula, For the The global worst position at the iteration, that is, the minimum fitness value; For the The optimal position is found in the first iteration, that is, the fitness value is the largest; for A matrix whose elements are randomly assigned 1 or -1, and ; Use equation (4) to update the position of the sparrow that is aware of the danger; , In the formula For the The global optimal position at the iteration is is the step size control parameter, and its value is Normally distributed random numbers, for The random number inside, They are the individual fitness, global optimal fitness, and global worst fitness of the current sparrow respectively. is the smallest non-zero constant; Determine the number of iterations Whether the maximum number of iterations has been reached ;like , then continue to repeat S2-3 to S2-4; otherwise, stop the iteration and output the global optimal solution, that is, ; S2-5. The optimal solution of the SSA output is used as the optimal hyperparameter of RF, and then the offline training of the SSA-RF classification model is completed. The trained SSA-RF model represents the high-dimensional mapping relationship between the fault current direction vector of all segmented lines of the target distribution network under various types of faults and the number of the section where the fault is located; S3. Obtain the real-time fault current direction information of all segmented line FTUs of the target distribution network, call the trained SSA-RF classification model, and locate the section where the fault is located; for each locked fault section, calculate the cosine similarity between the fault current direction information of each two adjacent segmented lines in the section in turn, identify the segmented line where the mutation point in the cosine similarity distribution is located as the fault line, and output the fault line number.

2. A two-stage fault location method for online fault location in active power distribution network according to claim 1, characterized in that: In S1, based on the topological structure of the target distribution network and the grid-connection and off-grid conditions of distributed generation, random simulation of single-point and multi-point short-circuit faults is carried out, specifically: All segmented lines of the target distribution network are numbered, and single-point and multi-point fault line numbers are randomly selected and fault simulation is performed. The distribution of fault lines must cover all line branches, and the fault simulation scenarios must account for more than half of the total number of all possible line combinations.

3. A two-stage fault location method for online fault location in active power distribution network according to claim 1, characterized in that: In S1, a fault feature library of the target distribution network is constructed, specifically: Firstly, the fault scenarios obtained by random simulation of single-point and multi-point short-circuit faults are divided into the fault state indicators of each segment line. And distributed power supply grid-connected and off-grid status indicators jointly expressed; Then, the fault current direction index of each segment line under the corresponding fault scenario is obtained by using the fault current direction discrimination function. , and the fault current direction indicators of all segmented lines The constructed vector is used as the fault feature under the fault scenario; finally, the fault feature library of the target distribution network is composed of the fault features of all simulated fault scenarios.

4. A two-stage fault location method for online fault location in active power distribution network according to claim 1, characterized in that: Step S3 is specifically as follows: S3-1, obtain the real-time fault current direction information of all segmented line FTUs of the target distribution network, construct the fault current direction vector and use it as the fault feature; S3-2, calling the offline trained SSA-RF classification model, taking the fault feature as input, outputting the fault type, and obtaining the section number combination corresponding to the fault type; S3-3. For all locked fault sections, the cosine similarity between the fault current direction information of two adjacent segment lines in each section is calculated in turn according to formula (5); , In the formula and Line With adjacent lines The fault current direction indicator is or When it takes zero value, or Replace with , that is, a negative infinitesimal constant; S3-4. Find the mutation point in the cosine similarity distribution in each section, identify the segmented line where the mutation point is located as the fault line, output all fault line numbers, and complete the fault location.