Power distribution network-based electric leakage detection method, device and equipment and storage medium

By acquiring the residual current of the distribution network nodes and utilizing a tree-structured topology, combined with Kirchhoff's current law and preset thresholds, the problem of accurately locating leakage points in existing technologies has been solved, thus improving the efficiency and accuracy of leakage detection.

CN122260037APending Publication Date: 2026-06-23JIEYANG POWER SUPPLY BUREAU GUANGDONG POWER GRID CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-04-29
Publication Date
2026-06-23

AI Technical Summary

Technical Problem

Existing technologies cannot accurately pinpoint the exact location and number of leakage points in the power distribution network, resulting in low accuracy in leakage detection.

Method used

By obtaining the residual current of each node in the tree topology diagram of the distribution network, the nodes are traversed using a depth-first or breadth-first algorithm. Based on the node type and residual current, leakage information is determined. Kirchhoff's current law and preset thresholds are used to judge the leakage situation, distinguishing between line sections and user-side leakage, thus achieving accurate location.

Benefits of technology

It improves the accuracy and efficiency of leakage current detection, and can accurately pinpoint the leakage current fault range to a specific line segment or end user node between the parent node and child node, providing theoretical data support for clarifying property rights boundaries.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122260037A_ABST
    Figure CN122260037A_ABST
Patent Text Reader

Abstract

This application provides a leakage current detection method, device, equipment, and storage medium based on a power distribution network. The method includes: acquiring the residual current of each node in a tree-structured topology diagram of the power distribution network; each node represents the power supply starting point of a main line, a branch line, or the incoming line starting point of a user-side meter box in the power distribution network's line structure; starting from the root node in the tree-structured topology diagram, traversing each node in the tree-structured topology diagram, and determining the node type of the currently traversed node; based on the node type of the currently traversed node and the residual current of the currently traversed node, determining the leakage current information of the currently traversed node; if it is determined that the traversal of the tree-structured topology diagram is complete, then determining the range information based on the leakage current information of each node; the range information represents the line in the power distribution network topology diagram where leakage occurs. This method is used to improve the accuracy of leakage current detection in power distribution networks.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of power technology, and in particular to a leakage current detection method, device, equipment and storage medium based on power distribution networks. Background Technology

[0002] Distribution networks, especially low-voltage distribution networks, are prone to leakage faults during long-term operation due to factors such as line aging, insulation damage, and equipment failure.

[0003] Current technologies rely on current transformers to collect leakage current data and use threshold comparisons to determine the presence of leakage. However, these technologies can only determine whether leakage has occurred, but cannot pinpoint the exact location and number of leakage points, resulting in low accuracy in leakage detection in distribution networks. Therefore, improving the accuracy of leakage detection in distribution networks has become an urgent technical problem to be solved. Summary of the Invention

[0004] This application provides a leakage current detection method, device, equipment, and storage medium based on power distribution networks, in order to improve the accuracy of leakage current detection in power distribution networks.

[0005] In a first aspect, embodiments of this application provide a leakage current detection method based on a power distribution network, comprising:

[0006] Obtain the residual current of each node in the tree topology diagram of the distribution network; wherein, the tree topology diagram represents the line structure of the distribution network, and the node represents the power supply starting point of the main line or the power supply starting point of the branch line or the incoming line starting point of the user-side meter box in the line structure of the distribution network.

[0007] Starting from the root node in the tree topology graph, traverse each node in the tree topology graph and determine the node type of the currently traversed node.

[0008] Based on the node type of the currently traversed node and the residual current of the currently traversed node, the leakage current information of the currently traversed node is determined; wherein, the leakage current information characterizes the leakage current situation corresponding to the node.

[0009] If it is determined that the tree topology diagram has been traversed, then the range information is determined based on the leakage information of each node; the range information represents the line in the distribution network topology diagram where leakage occurs.

[0010] In one possible implementation, the node type includes non-leaf nodes; based on the node type of the currently traversed node and the residual current of the currently traversed node, the leakage current information of the currently traversed node is determined, including:

[0011] If the node being traversed is determined to be a non-leaf node based on its node type, then the remaining current of all direct child nodes of the node being traversed is obtained.

[0012] Based on the residual current of the currently traversed node and the residual current of all direct child nodes of the currently traversed node, a first leakage current information is determined; the first leakage current information is the leakage current information of non-leaf nodes, and the first leakage current information represents the leakage current situation in the line segment between each direct child node of the non-leaf node and the non-leaf node.

[0013] In one possible implementation, the first leakage current information is determined based on the residual current of the currently traversed node and the residual current of all direct child nodes of the currently traversed node, including:

[0014] Determine the first sum of the residual currents of all direct child nodes of the currently traversed node, and determine the first difference between the residual current of the currently traversed node and the first sum.

[0015] The first leakage current information is determined based on the first difference and the first preset threshold.

[0016] In one possible implementation, determining the first leakage current information based on the first difference and a first preset threshold includes:

[0017] If the first difference is greater than the first preset threshold, then the first leakage information is determined to include leakage occurring in the line segment between the node and each of the node's direct child nodes, and the leakage current value is equal to the first difference.

[0018] If the first difference is less than or equal to the first preset threshold, then it is determined that the first leakage information includes no leakage in the line segment between the node and each of the node's direct child nodes.

[0019] In one possible implementation, the node type includes leaf nodes; based on the node type of the currently traversed node and the residual current of the currently traversed node, the leakage current information of the currently traversed node is determined, including:

[0020] If the node being traversed is determined to be a leaf node based on the node type of the currently traversed node, then the second leakage information is determined based on the second preset threshold and the residual current of the currently traversed node; the second leakage information is the leakage information of the leaf node, and the second leakage information characterizes the leakage situation after the meter in the line downstream of the leaf node.

[0021] In one possible implementation, the second leakage current information is determined based on a second preset threshold and the residual current of the currently traversed node, including:

[0022] If the residual current of the currently traversed node is greater than the second preset threshold, then the second leakage information of the currently traversed node is determined to include leakage after the meter in the line downstream of the leaf node, and the leakage current value is equal to the residual current of the leaf node.

[0023] If the residual current of the currently traversed node is less than or equal to the second preset threshold, then it is determined that the second leakage information includes no leakage after the meter in the line downstream of the leaf node.

[0024] In one possible implementation, the node types include non-leaf nodes and leaf nodes; based on the leakage current information of each node, range information is determined, including:

[0025] For each node, if it is determined to be a non-leaf node based on its node type, and if leakage current is determined to occur in the line segment between the node and each of its direct child nodes based on its leakage current information, then the node is determined to be the first target node.

[0026] If a node is determined to be a leaf node based on its node type, and if leakage current information of the node indicates that a leakage current occurs after the meter in the line downstream of the node, then the node is determined to be the second target node.

[0027] Determine the range information based on each first target node and each second target node.

[0028] In one possible implementation, range information is determined based on each first target node and each second target node, including:

[0029] For each first target node and each child node of the first target node, the first target node is taken as the current node. If the child node is determined to be a non-leaf node according to the node type of the child node, and the child node is the first target node, then the first sub-information is determined according to the current node and the child node. The first sub-information represents the line segment between non-leaf nodes.

[0030] If the child node is determined to be a leaf node based on its node type, and the child node is the second target node, then the second sub-information is determined based on the current node and the child node; the second sub-information represents the line segment between the non-leaf node and the leaf node.

[0031] For each second target node, a third sub-information is determined based on the second target node; the third sub-information represents the downstream path of the leaf node.

[0032] The range information is determined based on each first sub-information, each second sub-information, and each third sub-information.

[0033] Secondly, embodiments of this application provide a leakage current detection device based on a power distribution network, comprising:

[0034] The acquisition module is used to acquire the residual current of each node in the tree topology diagram of the distribution network; wherein, the tree topology diagram represents the line structure of the distribution network, and the node represents the power supply starting point of the main line or the power supply starting point of the branch line or the incoming line starting point of the user-side meter box in the line structure of the distribution network.

[0035] The first determining module is used to start from the root node of the tree topology diagram, traverse each node in the tree topology diagram, and determine the node type of the currently traversed node.

[0036] The second determining module is used to determine the leakage current information of the currently traversed node based on the node type and the residual current of the currently traversed node; wherein the leakage current information characterizes the leakage current situation corresponding to the node.

[0037] The third determining module is used to determine the range information based on the leakage information of each node if the tree topology diagram is determined to be traversed; the range information represents the line in the distribution network topology diagram where leakage occurs.

[0038] Thirdly, embodiments of this application provide a leakage current detection device based on a power distribution network, including: a memory and a processor;

[0039] The memory stores computer-executed instructions;

[0040] The processor executes computer execution instructions stored in the memory, causing the processor to perform the first aspect and / or various possible implementations of the first aspect as described above.

[0041] The leakage current detection method, apparatus, device, and storage medium based on the power distribution network provided in this application acquire the residual current of each node in the tree topology diagram of the power distribution network. Starting from the root node of the tree topology diagram, it traverses each node in the tree topology diagram, determines the node type of the currently traversed node, and determines the leakage current information of the currently traversed node based on the node type and the residual current of the currently traversed node. By comparing the residual current of the parent node and the child node level by level, the leakage fault range can be accurately locked to the line segment or end user node between the specific parent node and the child node. This transforms leakage fault investigation from blind inspection of the entire network to precise inspection of specific segments, greatly improving the efficiency and accuracy of leakage current detection. Meanwhile, after traversing the tree topology diagram, the range information is determined based on the leakage information of each node. The range information represents the line that has leakage in the distribution network topology diagram. Since the node types include leaf nodes and non-leaf nodes, the range information determined based on the leakage information of each node integrates all leaf nodes and non-leaf nodes. This allows the range information to distinguish between leakage in line sections and leakage within user-side assets, providing accurate theoretical data support for clarifying property rights boundaries. Attached Figure Description

[0042] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.

[0043] Figure 1 A flowchart illustrating the leakage current detection method based on power distribution networks provided in this application embodiment. Figure 1 ;

[0044] Figure 2 A schematic diagram of the installation of a current transformer on a three-phase conductor provided in this application;

[0045] Figure 3 A schematic diagram of the installation of a current transformer on a single-phase conductor provided in this application;

[0046] Figure 4 The tree topology diagram of the low-voltage distribution network provided in this application;

[0047] Figure 5 A flowchart illustrating the leakage current detection method based on power distribution networks provided in this application embodiment. Figure 2 ;

[0048] Figure 6 A flowchart illustrating the leakage current detection method based on power distribution networks provided in this application embodiment. Figure 3 ;

[0049] Figure 7A schematic diagram of the structure of a leakage current detection device based on a power distribution network provided in an embodiment of this application;

[0050] Figure 8 This is a schematic diagram of the structure of a leakage current detection device based on a power distribution network provided in an embodiment of this application.

[0051] The accompanying drawings illustrate specific embodiments of this application, which will be described in more detail below. These drawings and descriptions are not intended to limit the scope of the concept in any way, but rather to illustrate the concept of this application to those skilled in the art through reference to particular embodiments. Detailed Implementation

[0052] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numbers in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this application. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this application as detailed in the appended claims.

[0053] Distribution network systems, especially low-voltage distribution systems, are widely used in urban power grids, industrial parks, commercial buildings, and residential buildings as the final link in power transmission. During long-term operation, leakage faults are highly likely to occur due to factors such as line aging, insulation damage, equipment failure, or external environmental factors (e.g., lightning strikes, water immersion, construction damage). Leakage not only leads to energy loss and abnormal equipment operation but can also cause serious safety hazards such as electric shock and fire. Especially in extreme situations such as earthquakes, urban flooding, and factory accidents, multiple leakage points may occur simultaneously. For example, a distribution line may leak electricity due to cable damage, while downstream users' meters may leak electricity due to insulation failure.

[0054] Existing leakage current detection technologies can provide basic leakage current alarms. These technologies primarily rely on current transformers to collect leakage current data and determine the presence of leakage through threshold comparisons. Specifically, this involves installing current transformers at key nodes in the power distribution line to monitor the current difference between the phase and neutral lines in real time; when an unbalanced current exceeds a preset threshold, an alarm signal is triggered. However, existing leakage current detection technologies struggle to accurately pinpoint the number of leakage points and identify the type of leakage (e.g., line leakage or leakage after the meter). This forces power supply departments to perform segment-by-segment inspections during fault diagnosis, which is time-consuming, labor-intensive, and prone to overlooking potential problems. Furthermore, existing leakage current detection technologies are prone to misjudgments in multi-point leakage scenarios. For example, if a branch line has a leakage, the next higher-level monitoring point may incorrectly identify it as a leakage, leading to misjudgment of the fault range and wasted maintenance resources.

[0055] The leakage current detection method, device, equipment, and storage medium based on power distribution networks provided in this application are intended to solve the aforementioned technical problems.

[0056] The technical solution of this application and how it solves the above-mentioned technical problems will be described in detail below with specific embodiments. These specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described again in some embodiments. The embodiments of this application will be described below with reference to the accompanying drawings.

[0057] Figure 1 A flowchart illustrating the leakage current detection method based on power distribution networks provided in this application embodiment. Figure 1 ,like Figure 1 As shown, the method includes:

[0058] S101. Obtain the residual current of each node in the tree topology diagram of the distribution network; wherein, the tree topology diagram represents the line structure of the distribution network, and the node represents the power supply starting point of the main line or the power supply starting point of the branch line or the incoming line starting point of the user-side meter box in the line structure of the distribution network.

[0059] It should be noted that this application can be applied to monitoring systems for power distribution networks, as well as to other electronic devices or apparatuses; this application does not limit its application in this regard. By setting up data acquisition devices in the power distribution network, such as current transformers at key locations, residual current in relevant lines within the power distribution network can be collected at these key locations. Based on the collected residual current, leakage current in the power distribution network can be detected.

[0060] In the power supply starting point of the main line or branch line in the distribution network line structure, current transformers are installed. Specifically, current transformers can be installed at the beginning of the main line of the low-voltage distribution network system (such as the low-voltage side outgoing end of the distribution transformer), the beginning of each branch line (such as the incoming side of the branch box), and the incoming point of the meter box (such as the incoming side of the user's meter box). The current transformer can be equipped with a flexible coil to achieve multiple applications and is used to monitor the current value of the phase line and neutral line circuit. When leakage occurs, the current transformer can read the unbalanced current value, that is, the leakage current value, which is also the residual current.

[0061] Figure 2 This is a schematic diagram of the installation of the current transformer on the three-phase conductor provided in this application. Figure 3 The installation diagram of the current transformer on a single-phase conductor provided in this application is as follows: Figure 2 As shown, the current transformer 201 is installed on the A-phase line, B-phase line, C-phase line, and N neutral line of the three-phase line, as follows: Figure 3 As shown, the current transformer 301 is installed on the L-phase line (A-phase line, or B-phase line, or C-phase line) and the N-neutral line of a single-phase line.

[0062] The tree topology diagram of the power grid system consists of the main line, branch lines, and incoming lines to each meter box. The tree topology diagram shows the line structure of the power grid. The tree topology includes multiple nodes, which correspond to the location of the current transformer. That is, the power supply starting point of the main line or branch line in the line structure of the power grid, and the starting point of the incoming line to the meter box on the user side.

[0063] Figure 4 The tree topology diagram of the low-voltage distribution network provided in this application is as follows: Figure 4 As shown, current transformer 401 is installed at the power supply starting point of the main line 403, the branch line 404, and the incoming line 405 of the meter box 402. The current transformers are managed hierarchically. The current transformer at the power supply starting point of the main line is level 0; the current transformer at the power supply starting point of the branch line or the incoming line of the meter box is level 1, and so on, up to level m. There is a parent-child chain relationship between the current transformers at each level. A tree-like topology is formed starting from the current transformer at the current starting point of the main line. The nodes in the tree-like topology represent the locations of the current transformers. The set of all nodes in the tree-like topology is N. For any node... Its direct child node set is denoted as The residual current at each node n is denoted as That is, the residual current at node n is non-negative.

[0064] For each current transformer, a locator is configured to locate the node's position. When a current transformer detects residual current, it simultaneously reads the location information using the locator, and packages the residual current and location information together to send to the detection system. When the detection system receives data indicating that any current transformer has detected residual current, it can actively acquire the residual current detected by all current transformers at a certain moment. That is, it can acquire the residual current of each node in the tree topology diagram of the distribution network. By processing the acquired residual current data of all nodes at the same moment, the leakage current situation of the distribution network can be analyzed.

[0065] When storing and processing data at each node, the node naming distinguishes between meters and wire markers. For example, when a node is located at level 0, it can be named individually, such as (root node). When a node is located at a non-level 0 and is not a leaf node, the naming format is (level 1, level 2, ..., level k), where k is the level of the node. Here, level 1 represents the node's position number within level 1 (e.g., the position numbers of nodes in level 1 are 1, 2, ..., s, where s is the total number of nodes in level 1), and so on for level 2 and level k. When a node is located at a non-level 0 and is a leaf node, the naming format is (A, level 1, level 2, ..., level k), where A is the meter identifier. Each node's name corresponds to a real-world location, which is the three-dimensional spatial location collected by the locator corresponding to the node.

[0066] S102. Starting from the root node in the tree topology diagram, traverse each node in the tree topology diagram and determine the node type of the currently traversed node.

[0067] For example, starting from the root node in the tree topology graph, a depth-first search algorithm or a breadth-first search algorithm is used to traverse each node in the tree topology graph. For the currently traversed node, its node type is determined based on its position in the tree structure: if the node has at least one direct child node, then the node type of the currently traversed node is a non-leaf node, which corresponds to the power supply starting point of the branch line; if the node has no child nodes, that is, the node is at the end of the line, then the node type of the currently traversed node is a leaf node. Leaf nodes correspond to the incoming line of the user's meter box, and the line after the leaf node is the user's power supply line.

[0068] S103. Based on the node type of the currently traversed node and the residual current of the currently traversed node, determine the leakage current information of the currently traversed node; wherein, the leakage current information characterizes the leakage current situation of the node.

[0069] For example, for the currently traversed node, the corresponding algorithm can be invoked based on the node type to determine the leakage current information of the currently traversed node based on its residual current. The leakage current information characterizes the leakage situation of the node; that is, it is a data structure used to characterize the leakage situation at the location of the node or its downstream lines, and at least includes information on whether there is leakage and the specific leakage current value.

[0070] For example, if the node type of the currently traversed node is a non-leaf node, the leakage current information of the currently traversed node can be analyzed based on the node current balance principle, that is, the residual current of the non-leaf node is balanced with the residual current of all child nodes of the non-leaf node.

[0071] If the node currently being traversed is a leaf node, the leakage current information of the node can be analyzed based on Hough's current law and the residual current of the node.

[0072] S104. If it is determined that the tree topology diagram has been traversed, then the range information is determined based on the leakage information of each node; the range information represents the line in the distribution network topology diagram where leakage occurs.

[0073] For example, after traversing all nodes, the leakage information of each node is summarized. By comprehensively analyzing this leakage information, such as performing refined data analysis and leakage location positioning on the leakage information of parent and child nodes, the range information is determined. The range information characterizes the lines where leakage occurs in the distribution network topology diagram; that is, the range information clearly indicates which specific line segments or which users' power supply lines have leakage in the distribution network topology diagram.

[0074] Specifically, the range information can be defined by the node names. The line segment from node u to node w can be represented as (node ​​u's name - node w's name). The node names allow us to locate the leakage point, and the presence of a meter identifier in the node name indicates whether the leakage is in the line itself or at the meter on the user's side. Therefore, based on the range information, we can pinpoint the locations and number of leakage points in the distribution network.

[0075] The leakage current detection method based on a power distribution network provided in this application acquires the residual current of each node in the tree topology diagram of the power distribution network. Starting from the root node of the tree topology diagram, it traverses each node in the tree topology diagram, determines the node type of the currently traversed node, and determines the leakage current information of the currently traversed node based on the node type and the residual current of the currently traversed node. By comparing the residual current of the parent node and the child node level by level, the leakage fault range can be accurately locked to the specific line segment or end user node between the parent node and the child node. This transforms leakage fault investigation from a blind search of the entire network to a precise search of specific segments, greatly improving the efficiency and accuracy of leakage current detection. Meanwhile, after traversing the tree topology diagram, the range information is determined based on the leakage information of each node. The range information represents the line that has leakage in the distribution network topology diagram. Since the node types include leaf nodes and non-leaf nodes, the range information determined based on the leakage information of each node integrates all leaf nodes and non-leaf nodes, so that the range information can distinguish between leakage in line sections and leakage within user-side assets, providing theoretical data support for clarifying property rights boundaries.

[0076] Figure 5 A flowchart illustrating the leakage current detection method based on power distribution networks provided in this application embodiment. Figure 2 ,like Figure 5 As shown, the node type includes non-leaf nodes; the above-mentioned determination of the leakage current information of the currently traversed node based on the node type of the currently traversed node and the residual current of the currently traversed node includes: if the currently traversed node is determined to be a non-leaf node based on the node type of the currently traversed node, then the residual current of all direct child nodes of the currently traversed node is obtained; the first leakage current information is determined based on the residual current of the currently traversed node and the residual current of all direct child nodes of the currently traversed node; the first leakage current information is the leakage current information of the non-leaf node, and the first leakage current information represents the leakage current situation in the line segment between each direct child node of the non-leaf node and the non-leaf node. The node type also includes leaf nodes; the above method, based on the node type of the currently traversed node and the residual current of the currently traversed node, determines the leakage current information of the currently traversed node, including: if the currently traversed node is determined to be a leaf node based on the node type, then second leakage current information is determined based on a second preset threshold and the residual current of the currently traversed node; the second leakage current information is the leakage current information of the leaf node, and the second leakage current information characterizes the post-meter leakage current situation in the line downstream of the leaf node. The above method includes:

[0077] S501. Obtain the residual current of each node in the tree topology diagram of the distribution network.

[0078] S502. Starting from the root node in the tree topology diagram, traverse each node in the tree topology diagram and determine the node type of the currently traversed node.

[0079] S503. If the node being traversed is determined to be a non-leaf node based on its node type, then obtain the residual current of all direct child nodes of the node being traversed.

[0080] For example, node types include non-leaf nodes and leaf nodes. For the currently traversed node, if the node is determined to be a non-leaf node based on its node type, then the residual current of all direct child nodes of the currently traversed node is obtained. For example, if the currently traversed node is (1), which has two leaf nodes (1,1) and (1,2), the residual current v(1) of node (1) is obtained, and the residual currents v(1,1) and v(1,2) of all direct child nodes (1,1) and (1,2) of node (1) are also obtained.

[0081] This step achieves precise electrical monitoring of distribution network segments by acquiring the residual current of all direct child nodes of the currently traversed non-leaf nodes. Based on Kirchhoff's current law, this design decomposes the complex problem of network-wide leakage current monitoring into an independent analysis of the current balance relationship between each parent node and its direct child nodes. This method not only significantly reduces data processing complexity but also enables the system to determine the presence of leakage current in each segment in real time and in parallel, thereby refining the granularity of leakage current location from "network-wide" to "segment," greatly improving the targeting and real-time performance of leakage current detection. Furthermore, this step provides a complete input data foundation for subsequent leakage current judgment based on difference calculation, and is a key step in achieving precise, step-by-step location of leakage current in complex tree-like topologies.

[0082] S504. Determine the first leakage information based on the residual current of the currently traversed node and the residual current of all direct child nodes of the currently traversed node; the first leakage information is the leakage information of the non-leaf node, and the first leakage information represents the leakage situation in the line segment between the non-leaf node and each direct child node of the non-leaf node.

[0083] For example, the residual current of the currently traversed node (e.g., v(1)) and the residual current of all direct child nodes of the currently traversed node (e.g., v(1,1) and v(1,2)) are compared and analyzed to determine the first leakage information. The first leakage information is the leakage information of the non-leaf node. That is, the first leakage information is used as the leakage information of the currently traversed node. The first leakage information represents the leakage situation in the line segment between the non-leaf node and each direct child node of the non-leaf node, such as whether leakage occurs in the line segment between the non-leaf node and each direct child node of the non-leaf node, and how much the leakage current is.

[0084] In this embodiment, S504 includes: determining the first sum of the residual currents of all direct child nodes of the currently traversed node, and determining the first difference between the residual current of the currently traversed node and the first sum; and determining the first leakage current information based on the first difference and a first preset threshold.

[0085] For example, the first sum of the residual currents of all direct child nodes of the currently traversed node can be calculated according to the following formula (1):

[0086] (1);

[0087] In the formula, This represents the first summation of node n.

[0088] Next, calculate the first difference between the remaining current of the currently traversed node and the first sum. For example, the first difference is equal to the difference obtained by subtracting the first sum from the remaining current of the currently traversed node.

[0089] The first difference is compared with a first preset threshold to determine the first leakage current information. Specifically, this includes:

[0090] If the first difference is greater than the first preset threshold, then the first leakage information is determined to include leakage in the line segment between the node and each of the node's direct child nodes, and the leakage current value is equal to the first difference; if the first difference is less than or equal to the first preset threshold, then the first leakage information is determined to include no leakage in the line segment between the node and each of the node's direct child nodes.

[0091] If the first difference is greater than the first preset threshold, then the first new leakage current information is determined to include leakage current occurring in the line segment between the node and each of the node's direct child nodes, and the leakage current value is equal to the first difference. For example, , If the first preset threshold is met, then the node is determined. With nodes Line sections or nodes between With nodes A leakage current occurs within the line section between them. The first preset threshold can be set by statistically analyzing the difference between the residual current of a node and the sum of the residual currents of all its child nodes during historical line section leakage accidents. The first preset threshold is generally different for different nodes.

[0092] Conversely, if the first difference is less than or equal to the first preset threshold, it is determined that the first leakage information includes no leakage in the line segment between the node and each of the node's direct child nodes. In this case, the leakage current value can be set to a preset current value, such as 0. For example, Then determine the node. With nodes Line sections and nodes between With nodes No leakage occurred in the section of the line between them.

[0093] The advantage of this approach is that by determining the first sum of the residual currents of all direct child nodes of the currently traversed node, and determining the first difference between the residual current of the currently traversed node and the first sum, and comparing the first difference with a first preset threshold, the first leakage current information is obtained. This simplifies the leakage current assessment of a complex line that may connect numerous loads by utilizing Kirchhoff's laws, reducing it to the monitoring of a scalar quantity—the difference between the inlet residual current (the residual current of the currently traversed node) and the outlet residual current (the residual current of all child nodes of the currently traversed node). This significantly reduces the data computation burden, making this function easier to implement in resource-constrained edge computing devices, thus reducing overall cost and power consumption.

[0094] This step calculates the difference between the residual current of a non-leaf node and all its direct child nodes, and then uses a preset threshold to determine leakage current, achieving automated and quantitative diagnosis of leakage current in distribution network sections. This method transforms the current balance principle into programmable judgment logic, enabling the system to accurately identify the specific sections where current "loss" occurs. This transforms the traditional leakage current detection method, which relies on manual inspection and experience-based judgment, into a data-driven intelligent location system. This not only improves the objectivity and accuracy of leakage current detection but also lays a reliable data foundation for generating subsequent leakage current range reports with clear location information. Furthermore, by setting an adjustable first preset threshold, the system can adapt to different line specifications, environmental noise levels, and operational requirements, enhancing the method's applicability and configurability.

[0095] S505. If the node currently traversed is determined to be a leaf node based on the node type of the currently traversed node, then the second leakage information is determined based on the second preset threshold and the residual current of the currently traversed node; the second leakage information is the leakage information of the leaf node, and the second leakage information represents the leakage situation after the meter in the line downstream of the leaf node.

[0096] For example, if the currently traversed node is a leaf node, the residual current of the currently traversed node is compared with a second preset threshold to determine the second leakage information. This second leakage information is the leakage information of the leaf node, specifically the leakage information of the currently traversed node. The second leakage information characterizes the post-meter leakage situation in the line downstream of the leaf node; that is, the leakage point is on the user side, specifically in the user's power supply line. Similarly, the second preset threshold can be set by statistically analyzing the residual current of nodes monitored when post-meter leakage occurred historically.

[0097] In this embodiment, determining the second leakage information in S505 based on the second preset threshold and the residual current of the currently traversed node includes: if the residual current of the currently traversed node is greater than the second preset threshold, then the second leakage information of the currently traversed node is determined to include post-meter leakage in the line downstream of the leaf node, and the leakage current value is equal to the residual current of the leaf node; if the residual current of the currently traversed node is less than or equal to the second preset threshold, then the second leakage information is determined to include no post-meter leakage in the line downstream of the leaf node.

[0098] For example, if the residual current of the currently traversed node is greater than the second preset threshold, such as the currently traversed node being (A,1,2,1). ,1,2,2 , If the second preset threshold is 30 mA, then it is determined that a leakage current has occurred in the line downstream of node (A,1,2,1) (i.e., the user's indoor line), and the leakage current value is the residual current of node (A,1,2,1).

[0099] Conversely, if the residual current of the currently traversed node is less than or equal to the second preset threshold, for example, if the currently traversed node is (A,1,2,1). ,1,2,2 If this is confirmed, then no leakage current has occurred in the downstream line (i.e., the user's indoor line) of node (A,1,2,1). In this case, the leakage current value can be set to the preset current value, such as 0.

[0100] In some specific implementations, for leaf nodes, it can be verified first whether the current of the parent node of the leaf node is balanced (i.e., the current of the parent node is determined to be balanced based on the difference between the residual current of the parent node and the sum of the residual currents of all the child nodes of the parent node). Only when the parent node is balanced (i.e., the difference is less than a first preset threshold), confirming that there is no leakage interference from upstream lines, is it determined whether leakage occurs on the user side based on the residual current of the leaf node.

[0101] The advantage of this approach is that by employing a judgment strategy based on a second preset threshold for leaf nodes to determine whether leakage has occurred after the meter, a dedicated detection logic is established for each leaf node, the property boundary point. This logic is independent of the complex upstream line analysis, directly monitoring the residual current at the meter's inlet and comparing it with the threshold. This ensures that leakage events on the user side are directly captured and confirmed with minimal computational overhead and the fastest response time, significantly improving the efficiency of leakage fault detection at this critical location of the user access point.

[0102] This step is specifically designed for leaf nodes (i.e., the incoming line terminal of the user's meter box). By comparing the residual current of the leaf node with an independent second preset threshold, it enables rapid identification and judgment of leakage current within the user-side assets (after the meter). This design clearly divides the leakage current detection of the distribution network into two categories: "line section leakage current" and "user-side leakage current," clearly distinguishing the fault responsibility boundary between grid assets and user assets at the technical level. By establishing independent judgment logic and thresholds for leaf nodes, the system can effectively avoid interference from upstream line leakage current on user-side interpretation, ensuring the accuracy of user-side leakage current alarms. This provides a direct and reliable technical basis for power supply companies to implement precise operation and maintenance, clarify property rights boundaries, and guide users in safe electricity use, improving the refinement and compliance level of leakage current management.

[0103] S506. If it is determined that the tree topology diagram has been traversed, then the range information is determined based on the leakage information of each node.

[0104] The leakage current detection method based on the power distribution network provided in this application determines the leakage current information of non-leaf nodes based on the residual current of the non-leaf nodes and the residual current of all direct child nodes of the non-leaf nodes. For leaf nodes, the leakage current information of leaf nodes is determined based on the residual current of the leaf nodes and a second preset threshold. By decomposing the leakage current detection problem of the power distribution network into two sub-tasks with different natures and objectives, the method achieves the monitoring of leakage current in line sections and leakage current on the user side, while ensuring the accuracy of the analysis of leakage current in line sections and leakage current on the user side.

[0105] Figure 6 A flowchart illustrating the leakage current detection method based on power distribution networks provided in this application embodiment. Figure 3 ,like Figure 6 As shown, node types include non-leaf nodes and leaf nodes; the determination of range information based on the leakage information of each node includes: for each node, if the node is determined to be a non-leaf node based on its node type, and leakage occurs in the line segment between the node and each of its direct child nodes based on its leakage information, then the node is determined to be a first target node; if the node is determined to be a leaf node based on its node type, and leakage occurs downstream of the node based on its leakage information, then the node is determined to be a second target node; range information is determined based on each first target node and each second target node. The above method includes:

[0106] S601. Obtain the residual current of each node in the tree topology diagram of the distribution network.

[0107] S602. Starting from the root node in the tree topology diagram, traverse each node in the tree topology diagram and determine the node type of the currently traversed node.

[0108] S603. Based on the node type of the currently traversed node and the residual current of the currently traversed node, determine the leakage current information of the currently traversed node.

[0109] S604. If it is determined that the tree topology diagram has been traversed, then for each node, if it is determined that the node is a non-leaf node according to the node type, and if it is determined that leakage occurs in the line segment between the node and each of the node's direct child nodes according to the leakage information of the node, then the node is determined as the first target node.

[0110] For example, node types include non-leaf nodes and leaf nodes. After traversing the tree-like topology graph, the leakage information of each node is determined. Among all nodes, nodes that are non-leaf nodes and whose leakage information includes leakage in the line segment between the node and its direct child nodes are designated as first target nodes. This yields the first target node set. In this set, leakage exists in the line segment between the nodes and their child nodes.

[0111] S605. If the node is determined to be a leaf node based on its node type, and leakage current is determined to occur in the downstream line of the node based on its leakage current information, then the node is determined to be the second target node.

[0112] For example, nodes of type leaf node, whose leakage information includes nodes downstream of the node experiencing leakage after the meter, are designated as the second target nodes. This yields a second target node set. In this second target node set, nodes have leakage after the user's meter box.

[0113] S606. Determine the range information based on each first target node and each second target node.

[0114] For example, a fusion analysis is performed on all first target nodes and all second target nodes to determine the range information. Specifically, this includes:

[0115] For each first target node and each of its child nodes, the first target node is taken as the current node. If the child node is determined to be a non-leaf node based on its node type, and the child node is a first target node, then the first sub-information is determined based on the current node and the child node. The first sub-information represents the line segment between non-leaf nodes. If the child node is determined to be a leaf node based on its node type, and the child node is a second target node, then the second sub-information is determined based on the current node and the child node. The second sub-information represents the line segment between non-leaf nodes and leaf nodes. For each second target node, the third sub-information is determined based on the second target node. The third sub-information represents the line downstream of the leaf node. The range information is determined based on each of the first sub-information, each of the second sub-information, and each of the third sub-information.

[0116] For example, suppose the first target node set includes node (1) and node (2,1), indicating that there is leakage in the line section between node (1) and node (2,1) and their child nodes. Suppose the second target node set includes node (A,1,1,2) and node (A,2,1,1), indicating that there is leakage after these two user meter boxes.

[0117] For each first target node and each child node of the first target node, the first target node is taken as the current node. If the child node is determined to be a non-leaf node based on its node type, and the child node is the first target node, then based on the current node and the child node, first information is determined. The first information represents the line segment between non-leaf nodes, that is, the line segment between the current node and the target node.

[0118] For example, for the first target node (1), check all child nodes of the first target node (1). Assuming that the child node (1,1) of the first target node (1) is also the first target node, generate the first sub-information, such as "line segment (1) to (1,1)". This indicates that the leakage occurs on the connection line between the non-leaf node (1) and the non-leaf node (1,2).

[0119] If the child node is determined to be a leaf node based on its node type, and it is also the second target node, then the second sub-information is determined based on the current node and the child node. The second sub-information represents the line segment between a non-leaf node and a leaf node, that is, the line segment between the current node and the child node.

[0120] For example, assuming that another child node (A,1,1,2) of the first target node (1) is the second target node, then a second sub-information is generated, such as "line segment (1) to (A,1,1,2)". This indicates that the leakage occurs on the connection line between the non-leaf node (1) and the leaf node (A,1,1,2).

[0121] If the next child node (A,1,1,3) of the first target node (1) is neither the first target node nor the second target node, it indicates that no leakage occurred in the line segment between node (1) and node (A,1,1,3).

[0122] For each second target node, a third sub-information is determined based on that second target node. The third sub-information represents the path downstream of the leaf node, that is, the path downstream of the second target node.

[0123] For example, for the second target nodes (A,1,1,2) and (A,2,1,1), the corresponding third sub-information is directly generated, namely "User Table Box (A,1,1,2)" and "User Table Box (A,2,1,1)".

[0124] In some specific implementations, if the second information is determined based on the parent node of the second target node, that is, leakage occurs in the line segment between the parent node of the second target node and the second target node, then the third sub-information of the second target node is no longer generated. That is, the leakage at the second target node is caused by leakage in the line segment connected to the second target node, rather than by leakage in the line downstream of the second target node.

[0125] By combining all the first sub-information, all the second sub-information, and all the third sub-information, the range information is obtained. Based on the range information, the specific location of the leakage (such as the line section and / or the line downstream of the meter box) and the number of leakage points (such as the sum of the numbers of all the first sub-information, all the second sub-information, and all the third sub-information) can be determined.

[0126] Figure 7 This is a schematic diagram of the structure of the leakage current detection device based on the power distribution network provided in the embodiments of this application, as shown below. Figure 7 As shown, the leakage current detection device 70 based on the power distribution network provided in this embodiment includes:

[0127] The acquisition module 701 is used to acquire the residual current of each node in the tree topology diagram of the distribution network; wherein, the tree topology diagram represents the line structure of the distribution network, and the node represents the power supply starting point of the main line or the power supply starting point of the branch line or the incoming line starting point of the user-side meter box in the line structure of the distribution network.

[0128] The first determining module 702 is used to start from the root node of the tree topology graph, traverse each node in the tree topology graph, and determine the node type of the currently traversed node.

[0129] The second determining module 703 is used to determine the leakage current information of the currently traversed node based on the node type of the currently traversed node and the residual current of the currently traversed node; wherein the leakage current information represents the leakage current situation of the node.

[0130] The third determining module 704 is used to determine the range information based on the leakage information of each node if the tree topology diagram has been traversed. The range information represents the lines in the distribution network topology diagram where leakage occurs.

[0131] In one possible implementation, the node type includes non-leaf nodes; the second determining module 703 is further configured to:

[0132] If the node being traversed is determined to be a non-leaf node based on its node type, then the remaining current of all direct child nodes of the currently traversed node is obtained.

[0133] The first leakage information is determined based on the residual current of the currently traversed node and the residual current of all direct child nodes of the currently traversed node. The first leakage information is the leakage information of non-leaf nodes, and the first leakage information represents the leakage situation in the line segment between each direct child node of the non-leaf node and the non-leaf node.

[0134] In one possible implementation, the second determining module 703 is further configured to:

[0135] Determine the first sum of the residual currents of all direct child nodes of the currently traversed node, and determine the first difference between the residual current of the currently traversed node and the first sum.

[0136] The first leakage current information is determined based on the first difference and the first preset threshold.

[0137] In one possible implementation, the second determining module 703 is further configured to:

[0138] If the first difference is greater than the first preset threshold, then the first leakage information is determined to include leakage occurring in the line segment between the node and each of the node's direct child nodes, and the leakage current value is equal to the first difference.

[0139] If the first difference is less than or equal to the first preset threshold, then the first leakage information is determined to include no leakage in the line segment between the node and each of the node's direct child nodes.

[0140] In one possible implementation, the node type includes leaf nodes; the second determining module 703 is further configured to:

[0141] If the node being traversed is determined to be a leaf node based on its node type, then the second leakage information is determined based on the second preset threshold and the remaining current of the node being traversed. The second leakage information is the leakage information of the leaf node, and the second leakage information represents the leakage situation after the meter in the line downstream of the leaf node.

[0142] In one possible implementation, the second determining module 703 is further configured to:

[0143] If the residual current of the currently traversed node is greater than the second preset threshold, then the second leakage information of the currently traversed node is determined to include leakage after the meter in the line downstream of the leaf node, and the leakage current value is equal to the residual current of the leaf node.

[0144] If the residual current of the currently traversed node is less than or equal to the second preset threshold, then the second leakage information is determined to include no leakage after the table in the line downstream of the leaf node.

[0145] In one possible implementation, the node type includes non-leaf nodes and leaf nodes; the third determining module 704 is also used for:

[0146] For each node, if it is determined to be a non-leaf node based on its node type, and if leakage current is determined to occur in the line segment between the node and each of its direct child nodes based on its leakage current information, then the node is determined to be the first target node.

[0147] If a node is determined to be a leaf node based on its node type, and if leakage current information of the node indicates that a leakage current occurs after the meter in the line downstream of the node, then the node is determined to be the second target node.

[0148] Determine the range information based on each first target node and each second target node.

[0149] In one possible implementation, the third determining module 704 is further configured to:

[0150] For each first target node and each child node of the first target node, the first target node is taken as the current node. If the child node is determined to be a non-leaf node according to the node type of the child node, and the child node is the first target node, then the first sub-information is determined according to the current node and the child node. The first sub-information represents the line segment between non-leaf nodes.

[0151] If a child node is determined to be a leaf node based on its node type, and the child node is the second target node, then the second sub-information is determined based on the current node and the child node; the second sub-information represents the line segment between the non-leaf node and the leaf node.

[0152] For each second target node, the third sub-information is determined based on the second target node; the third sub-information represents the downstream path of the leaf node.

[0153] The range information is determined based on each first sub-information, each second sub-information, and each third sub-information.

[0154] The leakage current detection device based on the power distribution network provided in this embodiment can execute the method provided in the above method embodiment. Its implementation principle and technical effect are similar, and will not be described in detail here.

[0155] Figure 8 This is a schematic diagram of the structure of a leakage current detection device based on a power distribution network, provided in an embodiment of this application. Figure 8 As shown, the leakage current detection device 80 based on the power distribution network provided in this embodiment includes at least one processor 801 and a memory 802. Optionally, the leakage current detection device 80 based on the power distribution network further includes a communication component 803. The processor 801, memory 802, and communication component 803 are connected via a bus.

[0156] In a specific implementation, at least one processor 801 executes computer execution instructions stored in memory 802, causing at least one processor 801 to perform the above-described method.

[0157] The specific implementation process of processor 801 can be found in the above method embodiments, and its implementation principle and technical effect are similar. It will not be repeated here.

[0158] In the above embodiments, it should be understood that the processor can be a Central Processing Unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), etc. The general-purpose processor can be a microprocessor or any conventional processor. The steps of the method disclosed in this invention can be directly implemented by a hardware processor, or implemented by a combination of hardware and software modules within the processor.

[0159] The memory may include random access memory (RAM) and may also include non-volatile memory (NVM), such as at least one disk storage device.

[0160] The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. Buses can be categorized as address buses, data buses, control buses, etc. For ease of illustration, the buses shown in the accompanying drawings are not limited to a single bus or a single type of bus.

[0161] This application also provides a computer program product, including a computer program that, when executed by a processor, implements the above-described method.

[0162] This application also provides a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, implement the above-described method.

[0163] The aforementioned readable storage medium can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk, or optical disk. The readable storage medium can be any available medium accessible to a general-purpose or special-purpose computer.

[0164] An exemplary readable storage medium is coupled to a processor, enabling the processor to read information from and write information to the readable storage medium. Of course, the readable storage medium can also be a component of the processor. The processor and the readable storage medium can reside in an Application Specific Integrated Circuit (ASIC). Alternatively, the processor and the readable storage medium can exist as discrete components in the device.

[0165] The division of units is merely a logical functional division; in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be indirect coupling or communication connection through some interfaces, devices, or units, and may be electrical, mechanical, or other forms.

[0166] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0167] In addition, the functional units in the various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.

[0168] If a function is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this invention, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of the various embodiments of this invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0169] Those skilled in the art will understand that all or part of the steps of the above-described method embodiments can be implemented by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When executed, the program performs the steps of the above-described method embodiments; and the aforementioned storage medium includes various media capable of storing program code, such as ROM, RAM, magnetic disks, or optical disks.

[0170] Finally, it should be noted that other embodiments of the invention will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This invention is intended to cover any variations, uses, or adaptations of the invention that follow the general principles of the invention and include common knowledge or customary techniques in the art not disclosed herein, and is not limited to the precise structures described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of the invention is limited only by the appended claims.

Claims

1. A leakage current detection method based on power distribution networks, characterized in that, include: Obtain the residual current of each node in the tree topology diagram of the distribution network; wherein, the tree topology diagram represents the line structure of the distribution network, and the node represents the power supply starting point of the main line or the power supply starting point of the branch line or the incoming line starting point of the user-side meter box in the line structure of the distribution network. Starting from the root node in the tree topology graph, traverse each node in the tree topology graph and determine the node type of the currently traversed node. Based on the node type of the currently traversed node and the residual current of the currently traversed node, the leakage current information of the currently traversed node is determined; wherein, the leakage current information characterizes the leakage current situation corresponding to the node. If it is determined that the tree topology diagram has been traversed, then the range information is determined based on the leakage information of each node; the range information represents the line in the distribution network topology diagram where leakage occurs.

2. The method according to claim 1, characterized in that, The node type includes non-leaf nodes; based on the node type of the currently traversed node and the residual current of the currently traversed node, the leakage current information of the currently traversed node is determined, including: If the node being traversed is determined to be a non-leaf node based on its node type, then the remaining current of all direct child nodes of the node being traversed is obtained. Based on the residual current of the currently traversed node and the residual current of all direct child nodes of the currently traversed node, a first leakage current information is determined; the first leakage current information is the leakage current information of non-leaf nodes, and the first leakage current information represents the leakage current situation in the line segment between each direct child node of the non-leaf node and the non-leaf node.

3. The method according to claim 2, characterized in that, Based on the residual current of the currently traversed node and the residual current of all direct child nodes of the currently traversed node, the first leakage current information is determined, including: Determine the first sum of the residual currents of all direct child nodes of the currently traversed node, and determine the first difference between the residual current of the currently traversed node and the first sum. The first leakage current information is determined based on the first difference and the first preset threshold.

4. The method according to claim 3, characterized in that, The first leakage current information is determined based on the first difference and the first preset threshold, including: If the first difference is greater than the first preset threshold, then the first leakage information is determined to include leakage occurring in the line segment between the node and each of the node's direct child nodes, and the leakage current value is equal to the first difference. If the first difference is less than or equal to the first preset threshold, then it is determined that the first leakage information includes no leakage in the line segment between the node and each of the node's direct child nodes.

5. The method according to claim 1, characterized in that, The node type includes leaf nodes; based on the node type of the currently traversed node and the residual current of the currently traversed node, the leakage current information of the currently traversed node is determined, including: If the node being traversed is determined to be a leaf node based on the node type of the currently traversed node, then the second leakage information is determined based on the second preset threshold and the residual current of the currently traversed node; the second leakage information is the leakage information of the leaf node, and the second leakage information characterizes the leakage situation after the meter in the line downstream of the leaf node.

6. The method according to claim 5, characterized in that, Based on the second preset threshold and the remaining current of the currently traversed node, the second leakage current information is determined, including: If the residual current of the currently traversed node is greater than the second preset threshold, then the second leakage information of the currently traversed node is determined to include leakage after the meter in the line downstream of the leaf node, and the leakage current value is equal to the residual current of the leaf node. If the residual current of the currently traversed node is less than or equal to the second preset threshold, then it is determined that the second leakage information includes no leakage after the meter in the line downstream of the leaf node.

7. The method according to claim 1, characterized in that, The node types include non-leaf nodes and leaf nodes; based on the leakage current information of each node, the range information is determined, including: For each node, if it is determined to be a non-leaf node based on its node type, and if leakage current is determined to occur in the line segment between the node and each of its direct child nodes based on its leakage current information, then the node is determined to be the first target node. If a node is determined to be a leaf node based on its node type, and if leakage current information of the node indicates that a leakage current occurs after the meter in the line downstream of the node, then the node is determined to be the second target node. Determine the range information based on each first target node and each second target node.

8. The method according to claim 7, characterized in that, Based on each first target node and each second target node, determine the range information, including: For each first target node and each child node of the first target node, the first target node is taken as the current node. If the child node is determined to be a non-leaf node according to the node type of the child node, and the child node is the first target node, then the first sub-information is determined according to the current node and the child node. The first sub-information represents the line segment between non-leaf nodes. If the child node is determined to be a leaf node based on its node type, and the child node is the second target node, then the second sub-information is determined based on the current node and the child node; the second sub-information represents the line segment between the non-leaf node and the leaf node. For each second target node, a third sub-information is determined based on the second target node; the third sub-information represents the downstream path of the leaf node. The range information is determined based on each first sub-information, each second sub-information, and each third sub-information.

9. A leakage current detection device based on a power distribution network, characterized in that, include: The acquisition module is used to acquire the residual current of each node in the tree topology diagram of the distribution network; wherein, the tree topology diagram represents the line structure of the distribution network, and the node represents the power supply starting point of the main line or the power supply starting point of the branch line or the incoming line starting point of the user-side meter box in the line structure of the distribution network. The first determining module is used to start from the root node of the tree topology diagram, traverse each node in the tree topology diagram, and determine the node type of the currently traversed node. The second determining module is used to determine the leakage current information of the currently traversed node based on the node type and the residual current of the currently traversed node; wherein the leakage current information characterizes the leakage current situation corresponding to the node. The third determining module is used to determine the range information based on the leakage information of each node if the tree topology diagram is determined to be traversed; the range information represents the line in the distribution network topology diagram where leakage occurs.

10. A leakage current detection device based on a power distribution network, characterized in that, include: Memory, processor; The memory stores computer-executed instructions; The processor executes computer execution instructions stored in the memory, causing the processor to perform the method as described in any one of claims 1-8.