Power distribution network fault self-recovery method and system based on machine learning
Through the self-healing method of distribution network faults based on machine learning, the automatic processing of grid faults is solved, and the problem of low manual processing efficiency in the existing technology is improved, and the safety and economic benefits of the power grid are improved.
Patent Information
- Application Number
- CN202411067750.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-06
- Publication Date
- 2024-11-05
AI Technical Summary
The existing manual grid accident handling methods are inefficient and cannot meet the high demand for uninterrupted power supply.
Using a distribution network fault self-healing method based on machine learning, a fault self-healing model is built by obtaining and preprocessing operation data, a fault self-healing model is built, fault parameters are identified, fault points are calculated, and a re-power solution is automatically generated to automatically handle faults.
It improves the safety and reliability of the power grid, reduces the need for manual monitoring and judgment, shortens the fault response and recovery time, reduces the probability of errors, and improves economic benefits.
Smart Images

Figure CN118899843A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of power grid fault processing, and in particular to a distribution network fault self-healing method and system based on machine learning. Background Art
[0002] At present, the most important thing for large power grids is safe and stable operation. Therefore, in the process of building power systems, it is an important goal to effectively resolve various risks and ensure safe and reliable power supply. With the increase in the demand for electricity, the scale of the power grid is getting larger and larger. Large-scale power grids are the basis of power supply reliability, but they also increase the possibility of accidents. After a power grid accident occurs, the traditional way of handling power grid accidents is to do it manually. This method is slow and leads to a long time to restore power supply. Taking the failure of a 220kV station as an example, it still takes 5 minutes to consider only the manual remote control operation. If other operations such as accident judgment are added, the power restoration time will be even longer. Not only can it not meet the goal of safe and stable operation of the power grid, but it can also not meet the growing demand for uninterrupted power supply from users.
[0003] In summary, ensuring the safe and stable operation of the power grid is an important goal. With the increase in electricity demand, the scale of the power grid is getting larger and larger, which increases the possibility of power grid accidents. The existing manual method of handling power grid accidents is inefficient and cannot meet the high demand for uninterrupted power supply. Summary of the invention
[0004] In view of the existing problems in the distribution network fault self-healing and system based on machine learning, the present invention is proposed.
[0005] Therefore, the problem to be solved by the present invention is that the existing manual method of handling power grid accidents is inefficient and cannot meet the high demand for uninterrupted power supply.
[0006] In order to solve the above technical problems, the present invention provides the following technical solutions:
[0007] In a first aspect, an embodiment of the present invention provides a distribution network fault self-healing method based on machine learning, which comprises the following steps:
[0008] Obtain the operation data of the distribution network before and after previous faults, and pre-process the collected operation data;
[0009] Build a distribution network fault self-healing model through operation data;
[0010] Collect real-time data of the distribution network, identify fault parameters of the distribution network, and calculate the fault point location through the distribution network fault self-healing model;
[0011] Output power restoration plan and execute corresponding fault channel recovery operations.
[0012] As a preferred solution of the distribution network fault self-healing method based on machine learning described in the present invention, wherein: the operation data includes the distribution network topology, each node of the distribution network, the voltage and current magnitude and phase on the distribution equipment, the working frequency of the power grid, the energy storage device, the working status of the active components, the output power data, the environmental data, the communication status data and the corresponding power restoration strategy;
[0013] The method for preprocessing the operation data includes removing noise from the distribution network operation data before and after the fault occurs, and then performing data cleaning on the distribution network operation data after the noise is removed. After the data cleaning is completed, the operation data is standardized and then classified.
[0014] As a preferred solution of the distribution network fault self-healing method based on machine learning described in the present invention, the step of constructing a distribution network fault self-healing model includes:
[0015] Obtain the operating parameters when the fault occurs, compare the operating parameters of the normal operation of the distribution network with the operating parameters when the fault occurs, and set a difference threshold. When the difference between the two sets of operating parameters is greater than the set difference threshold, the operating parameter is filtered and output as a fault-related parameter;
[0016] A distribution network fault self-healing model is established based on machine learning. Through the output of fault-related parameters, a function mapping from input variables to output variables is learned;
[0017] Among them, the objective function of the distribution network fault self-healing model is:
[0018]
[0019] In the formula, minΔP represents the active network loss of the distribution system, n represents the total number of network branches, R i It is represented as the resistance of the i-th branch, P i Expressed as the active power of the i-th branch, Q i Expressed as the reactive power of the i-th branch, U i It is represented as the bus voltage at the power injection node of the i-th branch;
[0020] Furthermore, the constraints of the distribution network fault self-healing model include power flow constraints, node voltage constraints, and branch capacity constraints;
[0021] The power flow constraint is:
[0022]
[0023] Where P Li , Q LiThey represent the active power and reactive power of the load carried by node i, V i 、V j They are represented as the voltages of nodes i and j respectively, and Y is represented as the admittance matrix of the branch;
[0024] The node voltage constraint is:
[0025] V imin <V i <V imax
[0026] Where i = 1, 2, 3…M, M represents the total number of nodes, V i 、V imin and V imax They are represented as the voltage value of node i and its lower and upper limits respectively;
[0027] The branch capacity constraint is:
[0028] S i <S imax
[0029] In the formula, S i and S imax They are respectively expressed as the power flowing through each branch and the line capacity of the branch.
[0030] As a preferred solution of the distribution network fault self-healing method based on machine learning described in the present invention, the step of identifying the fault parameters of the distribution network includes acquiring real-time data of the distribution network through a power data acquisition and monitoring system, performing anomaly detection on the real-time data according to an isolation forest algorithm, and determining abnormal users and abnormal areas;
[0031] The isolation forest algorithm is constructed in the following way:
[0032] Randomly select a subset of the running parameters in the history as input to build the isolation tree, and recursively randomly select a split value to divide the running parameters in the history into two parts until each subset contains only one data point or the maximum depth of the tree is reached;
[0033] For each data point, calculate its average path length in all isolated trees, query the data point with the shortest path length, and mark it as an outlier;
[0034] The calculation formula for the anomaly score is:
[0035]
[0036] In the formula, s(x,n) represents the anomaly score of data point x, n represents the total number of data points, E[h(x)] represents the average path length of data point x in all isolated trees, and c(n) represents the adjustment coefficient. The specific positioning is: H i Denoted as the i-th harmonic number.
[0037] As a preferred solution of the distribution network fault self-healing method based on machine learning described in the present invention, the step of identifying the fault parameters of the distribution network also includes:
[0038] Set an abnormality judgment value K, and determine whether the abnormality score is greater than the abnormality judgment value K;
[0039] When the anomaly score is greater than the anomaly judgment value K, the type corresponding to the anomaly score is marked as an abnormal state, otherwise it is marked as a pending abnormal state;
[0040] Sort all abnormal status types according to the abnormality score, set the level of the type with the highest abnormality score to level 1, set the level of the type with the second highest abnormality score to level 2, and so on, until all abnormal status types are set to levels.
[0041] As a preferred solution of the distribution network fault self-healing method based on machine learning described in the present invention, the step of calculating the fault point location includes:
[0042] The fault parameters of abnormal state are input into the distribution network fault self-healing model according to the level to obtain the probability distribution diagram of the fault point location, where the failure probability of each node is expressed as:
[0043] G i =f(x i )
[0044] In the formula, G i Expressed as the failure probability of node i, x i It is represented as the characteristic vector of node i, and f is represented as the objective function of the distribution network fault self-healing model;
[0045] Through the probability distribution graph, the node with the highest fault probability is selected as the preliminary fault point, where the positioning formula of the preliminary fault point is expressed as:
[0046]
[0047] Represented as the index of the failure point.
[0048] As a preferred solution of the distribution network fault self-healing method based on machine learning described in the present invention, wherein: the power restoration solution includes isolating the fault point and switching the power supply path;
[0049] Wherein, the isolating the fault point executes shutting down the switches of the fault point and its adjacent nodes;
[0050] The switching power supply path enables the backup power supply to restore power supply to the unaffected areas.
[0051] In a second aspect, an embodiment of the present invention provides a distribution network fault self-healing system based on machine learning, which includes a data acquisition module, a model building module, a calculation module, and an execution module;
[0052] The data acquisition module is used to collect the operation data of the distribution network before and after the previous fault occurs, and collect the real-time data of the distribution network;
[0053] The model building module is used to build a distribution network fault self-healing model;
[0054] The calculation module is used to calculate the fault parameters of the distribution network and obtain the fault point location;
[0055] The execution module is used to generate a power restoration plan and perform corresponding operations according to the power restoration plan.
[0056] In a third aspect, an embodiment of the present invention provides a computer device, comprising a memory and a processor, wherein the memory stores a computer program, wherein: when the processor executes the computer program, any step of the above-mentioned distribution network fault self-healing method based on machine learning is implemented.
[0057] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium having a computer program stored thereon, wherein: when the computer program is executed by a processor, any step of the above-mentioned distribution network fault self-healing method based on machine learning is implemented.
[0058] The beneficial effects of the present invention are:
[0059] The isolation forest model is constructed using historical operation data. It consists of multiple isolated trees that randomly select subsets and perform recursive partitioning. The path length of each data point is calculated. For each real-time data point, its average path length in all isolated trees is calculated, and then its anomaly score is calculated. Data points with high anomaly scores are marked as abnormal. Multiple calculations complement each other and can interact with each other. Through in-depth analysis of the data, anomalies can be accurately identified, and missed detections and false detections can be reduced. Real-time monitoring and fast calculations ensure that the system can respond to faults in a timely manner, improving the safety and reliability of the distribution network.
[0060] In addition, the isolation forest algorithm automatically detects faults, reducing the need for manual monitoring and judgment. Based on the fault location results, the system automatically generates a power restoration plan, including isolating the fault point and switching the power supply path. The automated process reduces the complexity of manual operations and reduces the probability of errors. At the same time, it greatly shortens the fault response and recovery time, thereby improving the economic benefits of the distribution network. BRIEF DESCRIPTION OF THE DRAWINGS
[0061] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following briefly introduces the drawings required for describing the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work. Among them:
[0062] Figure 1 Flowchart of the distribution network fault self-healing method based on machine learning. DETAILED DESCRIPTION
[0063] In order to make the above-mentioned purposes, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are described in detail below in conjunction with the drawings of the specification. Obviously, the described embodiments are part of the embodiments of the present invention, but not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary persons in the art without creative work should fall within the scope of protection of the present invention.
[0064] In the following description, many specific details are set forth to facilitate a full understanding of the present invention, but the present invention may also be implemented in other ways different from those described herein, and those skilled in the art may make similar generalizations without violating the connotation of the present invention. Therefore, the present invention is not limited to the specific embodiments disclosed below.
[0065] Secondly, the term "one embodiment" or "embodiment" as used herein refers to a specific feature, structure, or characteristic that may be included in at least one implementation of the present invention. The term "in one embodiment" that appears in different places in this specification does not necessarily refer to the same embodiment, nor does it refer to a separate or selective embodiment that is mutually exclusive with other embodiments.
[0066] The present invention is described in detail with reference to schematic diagrams. When describing the embodiments of the present invention, for the sake of convenience, the cross-sectional diagrams showing the device structure will not be partially enlarged according to the general scale, and the schematic diagrams are only examples, which should not limit the scope of protection of the present invention. In addition, in actual production, the three-dimensional dimensions of length, width and depth should be included.
[0067] At the same time, in the description of the present invention, it should be noted that the directions or positional relationships indicated by the terms "upper, lower, inner and outer" are based on the directions or positional relationships shown in the drawings, and are 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 direction, be constructed and operated in a specific direction, and therefore cannot be understood as limiting the present invention. In addition, the terms "first, second or third" are only used for descriptive purposes and cannot be understood as indicating or implying relative importance.
[0068] In the present invention, unless otherwise clearly specified and limited, the terms "install, connect, connect" should be understood in a broad sense, for example: it can be a fixed connection, a detachable connection or an integral connection; it can also be a mechanical connection, an electrical connection or a direct connection, or it can be indirectly connected through an intermediate medium, or it can be the internal communication of two components. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0069] Example 1
[0070] Reference Figure 1 , which is the first embodiment of the present invention, and provides a distribution network fault self-healing method based on machine learning, comprising the following steps:
[0071] S1. Obtain the operation data of the distribution network before and after the previous faults, and pre-process the collected operation data.
[0072] The operation data includes the distribution network topology, each node of the distribution network, the voltage and current magnitude and phase on the distribution equipment, the operating frequency of the power grid, the energy storage device, the working status of the active components, the output power data, the environmental data, the communication status data and the corresponding power restoration strategy;
[0073] The method for preprocessing the operation data includes removing noise from the distribution network operation data before and after the fault occurs, and then performing data cleaning on the distribution network operation data after the noise is removed, and then standardizing the operation data after the data cleaning is completed, and then classifying the operation data;
[0074] When performing standardization, the standardization formula is used for processing, and the formula is expressed as:
[0075]
[0076] In the formula, x represents the original data, μ represents the mean, and σ represents the standard deviation.
[0077] S2. Construct a distribution network fault self-healing model through operation data.
[0078] The steps to build a distribution network fault self-healing model include:
[0079] Obtain the operating parameters when the fault occurs, compare the operating parameters of the normal operation of the distribution network with the operating parameters when the fault occurs, and set a difference threshold. When the difference between the two sets of operating parameters is greater than the set difference threshold, the operating parameter is filtered and output as a fault-related parameter;
[0080] In order to reduce the amount of calculation, the grid operation data of the trunk line in the fault area can be separated again from the screened grid parameter data related to the fault according to the distribution network topology information, and the fault data information strongly related to the fault area can be extracted from the grid parameter data related to the fault, so as to effectively simplify the amount of information and reduce the amount of information processing of the later model;
[0081] A distribution network fault self-healing model is established based on machine learning. Through the output of fault-related parameters, a function mapping from input variables to output variables is learned;
[0082] The separated grid parameter data of the trunk line related to the fault is used as the training set, and the corresponding fault point information is used as the label to perform fault self-healing model training based on machine learning. For one fault, multiple model training samples can be generated based on the grid parameter data.
[0083] Among them, the objective function of the distribution network fault self-healing model is:
[0084]
[0085] In the formula, minΔP represents the active network loss of the distribution system, n represents the total number of network branches, R i It is represented as the resistance of the i-th branch, P i Expressed as the active power of the i-th branch, Q i Expressed as the reactive power of the i-th branch, U i It is represented as the bus voltage at the power injection node of the i-th branch;
[0086] Furthermore, the constraints of the distribution network fault self-healing model include power flow constraints, node voltage constraints, and branch capacity constraints;
[0087] The power flow constraint is:
[0088]
[0089] Where P Li , Q Li They represent the active power and reactive power of the load carried by node i, V i 、V j They are represented as the voltages of nodes i and j respectively, and Y is represented as the admittance matrix of the branch;
[0090] The node voltage constraint is:
[0091] V imin <V i <V imax
[0092] Where i = 1, 2, 3…M, M represents the total number of nodes, V i 、V imin and V imax They are represented as the voltage value of node i and its lower and upper limits respectively;
[0093] The branch capacity constraint is:
[0094] S i <S imax
[0095] In the formula, S i and S imax They are respectively expressed as the power flowing through each branch and the line capacity of the branch.
[0096] The steps of identifying fault parameters of the distribution network include obtaining real-time data of the distribution network through a power data acquisition and monitoring system, performing anomaly detection on the real-time data according to an isolation forest algorithm, and determining abnormal users and abnormal areas;
[0097] The isolation forest algorithm is constructed in the following way:
[0098] Randomly select a subset of the running parameters in the history as input to build the isolation tree, and recursively randomly select a split value to divide the running parameters in the history into two parts until each subset contains only one data point or the maximum depth of the tree is reached;
[0099] For each data point, calculate its average path length in all isolated trees, query the data point with the shortest path length, and mark it as an outlier;
[0100] The calculation formula for the anomaly score is:
[0101]
[0102] In the formula, s(x,n) represents the anomaly score of data point x, n represents the total number of data points, E[h(x)] represents the average path length of data point x in all isolated trees, and c(n) represents the adjustment coefficient. The specific positioning is: H i Denoted as the i-th harmonic number.
[0103] The step of identifying fault parameters of the power distribution network also includes,
[0104] Set an abnormality judgment value K, and determine whether the abnormality score is greater than the abnormality judgment value K;
[0105] When the anomaly score is greater than the anomaly judgment value K, the type corresponding to the anomaly score is marked as an abnormal state, otherwise it is marked as a pending abnormal state;
[0106] Sort all abnormal status types by abnormality score, set the level of the type with the highest abnormality score to level 1, set the level of the type with the second highest abnormality score to level 2, and so on, until all abnormal status types are set to levels;
[0107] For example, the 10 calculated anomaly scores are: S1=4, S2=3, S3=7, S4=6, S5=5, S6=5, S7=8, S8=10, S9=9, S10=2;
[0108] The set abnormality judgment value K=5, then compare all abnormality scores with the abnormality judgment value, and obtain the results of S3, S4, S7, S8 and S9, and arrange them according to the corresponding abnormality scores so that the values with higher abnormality scores are ranked at the front. After sorting, they are represented as: S8, S9, S7, S3 and S4, and then S8 is marked as level 1, S9 is marked as level 2, and so on, until S4 is marked as level 5. The problem of S8 is solved first according to the level to prevent accidents.
[0109] S3. Collect real-time data of the distribution network, identify fault parameters of the distribution network, and calculate the fault point location through the distribution network fault self-healing model.
[0110] The steps to calculate the fault location include:
[0111] The fault parameters of abnormal state are input into the distribution network fault self-healing model according to the level to obtain the probability distribution diagram of the fault point location, where the failure probability of each node is expressed as:
[0112] G i =f(x i )
[0113] In the formula, G i Expressed as the failure probability of node i, x i It is represented as the characteristic vector of node i, and f is represented as the objective function of the distribution network fault self-healing model;
[0114] Through the probability distribution graph, the node with the highest fault probability is selected as the preliminary fault point, where the positioning formula of the preliminary fault point is expressed as:
[0115]
[0116] It is represented as the index of the fault point;
[0117] For example, a distribution network system contains 5 nodes, and the failure probability of each node is calculated and output as:
[0118] Node 1: G1 = 0.1;
[0119] Node 2: G2 = 0.3;
[0120] Node 3: G3 = 0.2;
[0121] Node 4: G4=0.05;
[0122] Node 5: G5 = 0.35;
[0123] The fault node with the highest fault probability is found through the preliminary fault point location formula, so output node 5 is preliminarily located as the most likely fault point.
[0124] S4. Output power restoration plan and execute corresponding fault channel recovery operations.
[0125] The power restoration scheme includes isolating the fault point and switching the power supply path;
[0126] Wherein, the isolating the fault point executes shutting down the switches of the fault point and its adjacent nodes;
[0127] The switching power supply path enables the backup power supply to restore power supply to the unaffected area;
[0128] Finally, the latest distribution network fault self-healing related data is saved in the fault-related power grid parameter data set, which facilitates the continuous automatic updating and improvement of the distribution network fault self-healing model, so as to improve the accuracy of the model in identifying distribution network faults and the efficiency of power restoration.
[0129] In summary, the isolation forest model is constructed using historical operation data. It consists of multiple isolated trees that randomly select subsets and perform recursive partitioning. The path length of each data point is calculated. For each real-time data point, its average path length in all isolated trees is calculated, and then its anomaly score is calculated. Data points with higher anomaly scores are marked as abnormal. Multiple calculations complement each other and can interact with each other. Through in-depth analysis of the data, anomalies can be accurately identified, missed detections and false detections can be reduced. Real-time monitoring and fast calculations ensure that the system can respond to faults in a timely manner, thereby improving the safety and reliability of the distribution network.
[0130] In addition, the isolation forest algorithm automatically detects faults, reducing the need for manual monitoring and judgment. Based on the fault location results, the system automatically generates a power restoration plan, including isolating the fault point and switching the power supply path. The automated process reduces the complexity of manual operations and reduces the probability of errors. At the same time, it greatly shortens the fault response and recovery time, thereby improving the economic benefits of the distribution network.
[0131] Example 2
[0132] On the basis of the first embodiment, this embodiment further provides a distribution network fault self-healing system based on machine learning, including a data acquisition module, a model building module, a calculation module, and an execution module;
[0133] The data acquisition module is used to collect the operation data of the distribution network before and after the previous fault occurs, and collect the real-time data of the distribution network;
[0134] The model building module is used to build a distribution network fault self-healing model;
[0135] The calculation module is used to calculate the fault parameters of the distribution network and obtain the fault point location;
[0136] The execution module is used to generate a power restoration plan and perform corresponding operations according to the power restoration plan.
[0137] This embodiment also provides a computer device, which is suitable for the distribution network fault self-healing method based on machine learning, including a memory and a processor; the memory is used to store computer executable instructions, and the processor is used to execute computer executable instructions to implement the distribution network fault self-healing method based on machine learning proposed in the above embodiment.
[0138] The computer device may be a terminal, and the computer device includes a processor, a memory, a communication interface, a display screen and an input device connected via a system bus. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be achieved through WIFI, an operator network, NFC (near field communication) or other technologies. The display screen of the computer device may be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device may be a touch layer covering the display screen, or a key, trackball or touchpad provided on the housing of the computer device, or an external keyboard, touchpad or mouse, etc.
[0139] This embodiment also provides a storage medium on which a computer program is stored. When the program is executed by a processor, the method for self-healing distribution network faults based on machine learning proposed in the above embodiment is implemented.
[0140] The storage medium proposed in this embodiment and the data storage method proposed in the above embodiment belong to the same inventive concept. The technical details not fully described in this embodiment can be found in the above embodiment, and this embodiment has the same beneficial effects as the above embodiment.
[0141] Example 3
[0142] On the basis of the previous two embodiments, this embodiment provides a distribution network fault self-healing method based on machine learning. In order to verify the beneficial effects of the present invention, scientific demonstration is carried out through economic benefit calculation and simulation experiments.
[0143] Experimental steps: Collect voltage, current, and power data during normal operation and faults of the distribution network, use historical operation data to build an isolation forest model, select 100 subsets, each containing 1000 data points, set the maximum tree depth to 10, perform anomaly detection on real-time data, calculate the path length and anomaly score of each data point, and set the anomaly judgment value K = 0.7.
[0144] Experimental results table:
[0145] type The value of this method Current value Effect Normal data false alarm rate 1% 5%~10% Reduce false positives Fault data missed detection rate 2% 5%~15% Greatly reduce missed detection rate Detection time Average 0.5 seconds 1 to 5 seconds Can reduce losses Fault location accuracy 98.7% 85%~90% Ensure improved accuracy Positioning time Average 1 second 5-10 seconds Quickly locate faults Switching power path time Average 5 seconds 5-10 seconds Rapidly switch to backup power path
[0146] It can be seen from the table that the existing technology relies on preset current, voltage and other thresholds for fault detection. Normal fluctuations can easily exceed the thresholds and cause false alarms. Secondly, for fault characteristics that are not obvious, faults within the threshold range are easily missed. Traditional detection methods process data slowly and it is difficult to respond quickly to sudden faults.
[0147] A detailed comparison with the existing technology shows that this method has significant advantages in terms of accuracy and timeliness of fault detection, precision and speed of fault location, and reduction of manual intervention and maintenance costs. These improvements not only improve the operating efficiency and reliability of the distribution network, but also significantly improve the economic benefits and solve many problems existing in the existing technology.
[0148] It should be noted that the above embodiments are only used to illustrate the technical solutions 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 solutions of the present invention may be modified or replaced by equivalents without departing from the spirit and scope of the technical solutions of the present invention, which should all be included in the scope of the claims of the present invention.
Claims
1. A distribution network fault self-healing method based on machine learning, characterized in that: The following steps are included: Obtain the operation data of the distribution network before and after previous faults, and pre-process the collected operation data; Build a distribution network fault self-healing model through operation data; Collect real-time data of the distribution network, identify fault parameters of the distribution network, and calculate the fault point location through the distribution network fault self-healing model; Output power restoration plan and execute corresponding fault channel recovery operations.
2. The method for self-healing a distribution network fault based on machine learning according to claim 1, characterized in that: The operation data includes the distribution network topology, each node of the distribution network, the voltage and current magnitude and phase on the distribution equipment, the operating frequency of the power grid, the energy storage device, the working status of the active components, the output power data, the environmental data, the communication status data and the corresponding power restoration strategy; The method for preprocessing the operation data includes removing noise from the distribution network operation data before and after the fault occurs, and then performing data cleaning on the distribution network operation data after the noise is removed. After the data cleaning is completed, the operation data is standardized and then classified.
3. The method for self-healing a distribution network fault based on machine learning as claimed in claim 2, characterized in that: The steps to build a distribution network fault self-healing model include: Obtain the operating parameters when the fault occurs, compare the operating parameters of the normal operation of the distribution network with the operating parameters when the fault occurs, and set a difference threshold. When the difference between the two sets of operating parameters is greater than the set difference threshold, the operating parameter is filtered and output as a fault-related parameter; A distribution network fault self-healing model is established based on machine learning. Through the output of fault-related parameters, a function mapping from input variables to output variables is learned; Among them, the objective function of the distribution network fault self-healing model is: In the formula, minΔP represents the active network loss of the distribution system, n represents the total number of network branches, R i It is represented as the resistance of the i-th branch, P i Expressed as the active power of the i-th branch, Q i Expressed as the reactive power of the i-th branch, U i It is represented as the bus voltage at the power injection node of the i-th branch; Furthermore, the constraints of the distribution network fault self-healing model include power flow constraints, node voltage constraints, and branch capacity constraints; The power flow constraint is: Where P Li , Q Li They represent the active power and reactive power of the load carried by node i, V i 、V j They are represented as the voltages of nodes i and j respectively, and Y is represented as the admittance matrix of the branch; The node voltage constraint is: V imin <V i <V imax Where i = 1, 2, 3…M, M represents the total number of nodes, V i 、V imin and V imax They are represented as the voltage value of node i and its lower and upper limits respectively; The branch capacity constraint is: S i <S imax In the formula, S i and S imax They are respectively expressed as the power flowing through each branch and the line capacity of the branch.
4. The method for self-healing a distribution network fault based on machine learning as claimed in claim 3, characterized in that: The steps of identifying fault parameters of the distribution network include obtaining real-time data of the distribution network through a power data acquisition and monitoring system, performing anomaly detection on the real-time data according to an isolation forest algorithm, and determining abnormal users and abnormal areas; The isolation forest algorithm is constructed in the following way: Randomly select a subset of the running parameters in the history as input to build the isolation tree, and recursively randomly select a split value to divide the running parameters in the history into two parts until each subset contains only one data point or the maximum depth of the tree is reached; For each data point, calculate its average path length in all isolated trees, query the data point with the shortest path length, and mark it as an outlier; The calculation formula for the anomaly score is: In the formula, s(x,n) represents the anomaly score of data point x, n represents the total number of data points, E[h(x)] represents the average path length of data point x in all isolated trees, and c(n) represents the adjustment coefficient. The specific positioning is: H i Denoted as the i-th harmonic number.
5. The method for self-healing a distribution network fault based on machine learning as claimed in claim 4, characterized in that: The step of identifying fault parameters of the power distribution network also includes, Set an abnormality judgment value K, and determine whether the abnormality score is greater than the abnormality judgment value K; When the anomaly score is greater than the anomaly judgment value K, the type corresponding to the anomaly score is marked as an abnormal state, otherwise it is marked as a pending abnormal state; Sort all abnormal status types according to the abnormality score, set the level of the type with the highest abnormality score to level 1, set the level of the type with the second highest abnormality score to level 2, and so on, until all abnormal status types are set to levels.
6. The method for self-healing a distribution network fault based on machine learning as claimed in claim 5, characterized in that: The steps to calculate the fault location include: The fault parameters of abnormal state are input into the distribution network fault self-healing model according to the level to obtain the probability distribution diagram of the fault point location, where the failure probability of each node is expressed as: G i =f(x i ) In the formula, G i Expressed as the failure probability of node i, x i It is represented as the characteristic vector of node i, and f is represented as the objective function of the distribution network fault self-healing model; Through the probability distribution graph, the node with the highest failure probability is selected as the preliminary fault point, where the positioning formula of the preliminary fault point is expressed as: Represented as the index of the failure point.
7. The method for self-healing a distribution network fault based on machine learning according to claim 6, characterized in that: The power restoration scheme includes isolating the fault point and switching the power supply path; Wherein, the isolating the fault point executes shutting down the switches of the fault point and its adjacent nodes; The switching power supply path enables the backup power supply to restore power supply to the unaffected areas.
8. A distribution network fault self-healing system based on machine learning, based on the distribution network fault self-healing method based on machine learning according to any one of claims 1 to 7, characterized in that: It includes a data acquisition module, a model building module, a calculation module, and an execution module; The data acquisition module is used to collect the operation data of the distribution network before and after the previous fault occurs, and collect the real-time data of the distribution network; The model building module is used to build a distribution network fault self-healing model; The calculation module is used to calculate the fault parameters of the distribution network and obtain the fault point location; The execution module is used to generate a power restoration plan and perform corresponding operations according to the power restoration plan.
9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the distribution network fault self-healing method based on machine learning described in any one of claims 1 to 7 are implemented.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the distribution network fault self-healing method based on machine learning described in any one of claims 1 to 7 are implemented.
Citation Information
Cited By
Electric power communication network emergency disposal method based on artificial intelligence
CN120151212A
