Circuit connection relation determination method and device based on Internet of Things data analysis
By acquiring and analyzing adjacent level meter data in the campus power grid, the metering balance status is determined to determine the connection relationship, which solves the problem of long and costly determination of connection relationships caused by the complexity of the campus power grid, and achieves fast and efficient determination of circuit connection relationships. .
Patent Information
- Application Number
- CN202410831814.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-25
- Publication Date
- 2024-10-01
AI Technical Summary
In the transformation and construction of the campus Internet of Things, the campus power grid is complex and has many lines. The existing method of manual power outage review is time-consuming and costly, and it is difficult to quickly determine the connection relationship between adjacent levels of equipment.
By obtaining adjacent-level meter data sets in the hierarchical tree power network topology, it is judged whether the meter data is in a metering balance state. If balanced, the connection relationship between the meter sets is determined, and the circuit connection relationship is quickly determined using Internet of Things data analysis. .
On the basis of saving labor costs, it significantly reduces the time-consuming process of determining the connection relationship between adjacent levels of equipment and improves efficiency.
Smart Images

Figure CN118740874A_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the technical field of Internet of Things, and specifically relates to a method, device, electronic device and storage medium for determining a circuit connection relationship based on Internet of Things data analysis. Background Art
[0002] In the process of campus Internet of Things transformation and construction, the flow of water, electricity and other energy consumption on campus is clarified, and the first task is to clarify the water and electricity network topology of the campus. The school campus is large, with many buildings and a long history. The power grid is complex and has undergone various renovations and circuit disassembly and assembly. Many lines are installed as concealed wires. According to the electrical specifications, the campus power grid can be divided into a hierarchical relationship of high-voltage electricity in high-equipped rooms, low-voltage cabinets in low-equipped rooms, floor power cabinets, room distribution cabinets, and terminal power equipment according to actual conditions. Most power equipment can be determined by appearance. The power equipment at the same level generally does not have a connection with each other. What needs to be determined is the topological connection between adjacent level equipment. The current practice is to review the two sides after the power is cut off by manual switch. During the power outage, the relevant area cannot use electricity, and the two groups of people need to coordinate the work. The whole process takes a long time, the labor cost is high, and the economic cost caused by the power outage is high. Summary of the invention
[0003] In view of the above problems, the present application proposes a method, device, electronic device and storage medium for determining circuit connection relationships based on IoT data analysis to improve the above problems.
[0004] In a first aspect, an embodiment of the present application provides a method for determining a circuit connection relationship based on Internet of Things data analysis, the method comprising: obtaining a first meter data set and a second meter data set, wherein the first meter data set is a meter data set corresponding to the first meter set, the second meter data set is a meter data set corresponding to the second meter set, and the first meter set and the second meter set are respectively meter sets of adjacent levels in a hierarchical tree-like electricity network topology; based on the first meter data set and the second meter data set, determining whether the first meter set and the second meter set are in a metering balance state; if the first meter set and the second meter set are in a metering balance state, then determining the connection relationship between the first meter set and the second meter set based on the first meter data set and the second meter data set.
[0005] In a second aspect, an embodiment of the present application provides a circuit connection relationship determination device based on Internet of Things data analysis, the device comprising: a data acquisition unit, used to acquire a first meter data set and a second meter data set, wherein the first meter data set is a meter data set corresponding to the first meter set, the second meter data set is a meter data set corresponding to the second meter set, and the first meter set and the second meter set are respectively meter sets of adjacent levels in a hierarchical tree-like electricity consumption network topology; a state determination unit, used to determine whether the first meter set and the second meter set are in a metering balance state based on the first meter data set and the second meter data set; a relationship determination unit, used to determine the connection relationship between the first meter set and the second meter set based on the first meter data set and the second meter data set if the first meter set and the second meter set are in a metering balance state.
[0006] In a third aspect, an embodiment of the present application provides an electronic device, comprising one or more processors and a memory; one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, and the one or more programs are configured to execute the above-mentioned method.
[0007] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, in which a program code is stored, wherein the above method is executed when the program code is run.
[0008] The embodiments of the present application provide a method, device, electronic device and storage medium for determining circuit connection relationships based on Internet of Things data analysis. First, a first meter data set and a second meter data set are obtained, wherein the first meter data set is a meter data set corresponding to the first meter set, and the second meter data set is a meter data set corresponding to the second meter set, and the first meter set and the second meter set are respectively meter sets of adjacent levels in the hierarchical tree-like electricity network topology, and then based on the first meter data set and the second meter data set, determine whether the first meter set and the second meter set are in a metering balance state, and if the first meter set and the second meter set are in a metering balance state, then determine the connection relationship between the first meter set and the second meter set based on the first meter data set and the second meter data set. Through the above method, the connection relationship between adjacent level devices can be quickly determined according to the meter data corresponding to each of the adjacent level devices, which saves labor costs and reduces the time consumption of determining the connection relationship between adjacent level devices. BRIEF DESCRIPTION OF THE DRAWINGS
[0009] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.
[0010] Figure 1 A flow chart of a method for determining a circuit connection relationship based on IoT data analysis proposed in an embodiment of the present application is shown;
[0011] Figure 2 A schematic diagram showing a one-to-many relationship by adding an electric meter in one embodiment of the present application is shown;
[0012] Figure 3 A flow chart of a method for determining a circuit connection relationship based on IoT data analysis proposed in another embodiment of the present application is shown;
[0013] Figure 4 A structural block diagram of a circuit connection relationship determination device based on IoT data analysis proposed in an embodiment of the present application is shown;
[0014] Figure 5 A structural block diagram of an electronic device for executing a method for determining a circuit connection relationship based on IoT data analysis according to an embodiment of the present application is shown;
[0015] Figure 6 A storage unit in an embodiment of the present application is shown for storing or carrying program code for implementing a method for determining a circuit connection relationship based on IoT data analysis according to an embodiment of the present application. DETAILED DESCRIPTION
[0016] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0017] In the process of campus Internet of Things transformation and construction, the flow of water, electricity and other energy consumption on campus is clarified, and the first task is to clarify the water and electricity network topology of the campus. The school campus is large, with many buildings and a long history. The power grid is complex and has undergone various renovations and circuit disassembly and assembly. Many lines are installed as concealed wires. According to the electrical specifications, the campus power grid can be divided into a hierarchical relationship of high-voltage electricity in high-equipped rooms, low-voltage cabinets in low-equipped rooms, floor power cabinets, room distribution cabinets, and terminal power equipment according to actual conditions. Most power equipment can be determined by appearance. The power equipment at the same level generally does not have a connection with each other. What needs to be determined is the topological connection between adjacent level equipment. The current practice is to review the two sides after the power is cut off by manual switch. During the power outage, the relevant area cannot use electricity, and the two groups of people need to coordinate the work. The whole process takes a long time, the labor cost is high, and the economic cost caused by the power outage is high.
[0018] Therefore, the inventors proposed a method, device, electronic device and storage medium for determining circuit connection relationships based on IoT data analysis in the present application. First, a first meter data set and a second meter data set are obtained, wherein the first meter data set is a meter data set corresponding to the first meter set, and the second meter data set is a meter data set corresponding to the second meter set, and the first meter set and the second meter set are respectively meter sets of adjacent levels in the hierarchical tree-like electricity network topology, and then based on the first meter data set and the second meter data set, determine whether the first meter set and the second meter set are in a metering balance state, and if the first meter set and the second meter set are in a metering balance state, then determine the connection relationship between the first meter set and the second meter set based on the first meter data set and the second meter data set. Through the above method, the connection relationship between adjacent level devices can be quickly determined according to the meter data corresponding to each of the adjacent level devices, which saves labor costs and reduces the time consumption of determining the connection relationship between adjacent level devices.
[0019] The embodiments of the present application will be described in detail below with reference to the accompanying drawings.
[0020] See also Figure 1 , an embodiment of the present application provides a method for determining a circuit connection relationship based on IoT data analysis, the method comprising:
[0021] Step S110: Obtain a first meter data set and a second meter data set, wherein the first meter data set is a meter data set corresponding to the first meter set, the second meter data set is a meter data set corresponding to the second meter set, and the first meter set and the second meter set are respectively meter sets of adjacent levels in a hierarchical tree-like electricity network topology.
[0022] In an embodiment of the present application, the first meter data set includes multiple meter data, and the multiple meter data are respectively meter data collected by multiple meters included in the first meter set. The meter data refers to the power consumption data of the power-consuming device. Specifically, each meter is used to collect the power consumption data of an power-consuming device, and each meter is configured at the input end of the power-consuming device to collect the power consumption data of the device. The hierarchical tree-like electricity consumption network refers to dividing the entire complex electricity consumption network into a hierarchical tree structure according to actual conditions. The hierarchical tree structure includes multiple levels, each level includes at least one node, and each node represents an electricity meter used to obtain electricity consumption equipment; the top node of the hierarchical tree structure, that is, the root node without input connection, only has electricity meters corresponding to the nodes of this level and electricity meters corresponding to the child nodes; the end node of the hierarchical tree structure, that is, the leaf node without output connection, only has electricity meters corresponding to the upper node and electricity meters corresponding to the nodes of this level; the middle node of the hierarchical tree structure has electricity meters corresponding to the upper node, electricity meters corresponding to the nodes of this level, and electricity meters corresponding to the child nodes; in the hierarchical tree structure, there is no connection relationship between nodes of the same level, and the connection relationship between the upper and lower adjacent levels is one-to-many, that is, each lower node has only one upper connection; if this condition is not met, a meter can be configured for each input in the node with multiple inputs in the lower layer to eliminate the many-to-many situation. For example, Figure 2 As shown, Figure 2 The left side of the figure shows a many-to-1 situation. Figure 2 The right side of the figure is a schematic diagram after eliminating the many-to-many situation.
[0023] The first meter set and the second meter set are respectively meter sets of adjacent levels in the hierarchical tree-like electricity network topology, which may refer to that the first meter set is a set of all or part of the meters included in the first level of the hierarchical tree-like electricity network topology, and the second meter set is a set of all or part of the meters included in the second level of the hierarchical tree-like electricity network topology; or, it may refer to that the first meter set is a set of all or part of the meters included in the second level of the hierarchical tree-like electricity network topology, and the second meter set is a set of all or part of the meters included in the first level of the hierarchical tree-like electricity network topology. The first level and the second level are adjacent levels in the hierarchical tree structure, the first level is the upper level in the adjacent levels, and the second level is the lower level in the adjacent levels.
[0024] As a method, when the first set of electric meters is a set of some electric meters included in the first level of the hierarchical tree-like power network topology, and the second set of electric meters is a set of some electric meters included in the second level of the hierarchical tree-like power network topology, some electric meters can be selected from all the electric meters included in the first level and the second level as the first set of electric meters and the second set of electric meters respectively according to preset rules. The preset rules can be understood as pre-set rules for selecting electric meters, for example, the preset rules can be for selecting electric meters according to the location where the electric equipment is deployed, or the preset rules can be for selecting electric meters according to the equipment type of the electric equipment, etc.
[0025] As one of the methods, when the preset rule is to select electricity meters according to the locations where electricity users are deployed, the electricity meters in the first level of the hierarchical tree-like electricity network topology used to collect electricity users deployed in the first location area can be used as the first electricity meter set, and the electricity meters in the second level of the hierarchical tree-like electricity network topology used to collect electricity users deployed in the second location area can be used as the second electricity meter set. The first location area and the second location area can be arbitrarily selected location areas and are not specifically limited here. Of course, when the first electricity meter set is a set of some electricity meters included in the second level of the hierarchical tree-like electricity network topology, and the second electricity meter set is a set of some electricity meters included in the first level of the hierarchical tree-like electricity network topology, the first electricity meter set and the second electricity meter set can also be determined by the above rules.
[0026] As another method, when the preset rule is to select electric meters according to the device type of the electric equipment, the electric meters in the first level of the hierarchical tree-like power network topology used to collect electric meters belonging to the first device type can be used as the first set of electric meters, and the electric meters in the second level of the hierarchical tree-like power network topology used to collect electric meters belonging to the second device type can be used as the second set of electric meters. Among them, the device type can be divided according to the function of the device; the first device type and the second device type can be arbitrarily set device types, which are not specifically limited here. Of course, when the first set of electric meters is a set of some electric meters included in the second level of the hierarchical tree-like power network topology, and the second set of electric meters is a set of some electric meters included in the first level of the hierarchical tree-like power network topology, the first set of electric meters and the second set of electric meters can also be determined by the above rules.
[0027] In an embodiment of the present application, after the first meter set and the second meter set are determined in the above manner, meter data collected by the meters included in the first meter set and the second meter set are respectively obtained to obtain the first meter data set and the second meter data set.
[0028] Optionally, in response to a data acquisition instruction, a first meter data set and a second meter data set are acquired. Specifically, a communication connection can be established with an electric meter disposed at an electric device through an Internet of Things device; when the Internet of Things device receives the data acquisition instruction, the first meter data set and the second meter data set are acquired in response to the data acquisition instruction. The data acquisition instruction is an instruction for instructing the Internet of Things device to acquire data, and the data acquisition instruction can be an instruction sent by other electronic devices connected to the Internet of Things device, wherein other electronic devices can include smart phones, computers, tablets, smart home devices and other devices, which are not specifically limited here.
[0029] In the above process, each electric meter is provided with a data acquisition sensor for collecting the amount of electricity used by the electric device connected thereto, that is, collecting the electric meter data.
[0030] Step S120: Based on the first electricity meter data set and the second electricity meter data set, determine whether the first electricity meter set and the second electricity meter set are in a metering balance state.
[0031] In an embodiment of the present application, the metering balance state is used to characterize that there is no leakage in the metering, that is, whether there is leakage in the metering is determined by whether the first meter data set and the second meter data set are balanced; in the metering balance state, the sum of the meter data collected by the meters in the first meter set is roughly the same as the sum of the meter data collected by the meters in the second meter set.
[0032] After obtaining the first meter data set and the second meter data set, the total metering data of the first meter data set and the total metering data of the second meter data set are calculated by a preset calculation formula, so that it can be determined whether the first meter data set and the second meter data set are in a metering balance state through the total metering data of the first meter data set and the total metering data of the second meter data set.
[0033] Step S130: If the first electricity meter set and the second electricity meter set are in a metering balance state, a connection relationship between the first electricity meter set and the second electricity meter set is determined based on the first electricity meter data set and the second electricity meter data set.
[0034] In an embodiment of the present application, the connection relationship between the first meter set and the second meter set refers to the connection relationship between each meter included in the first meter set and each meter included in the second meter set, wherein the connection relationship may include the existence of a connection and the non-existence of a connection.
[0035] When it is determined in the above manner that the first meter set and the second meter set are in a metering balance state, it can be determined whether there is a connection between the meters included in the first meter set and the meters included in the second meter set based on the first meter data set, the second meter data set and a preset algorithm.
[0036] The present application provides a method for determining circuit connection relationships based on IoT data analysis, first obtaining a first meter data set and a second meter data set, wherein the first meter data set is a meter data set corresponding to the first meter set, the second meter data set is a meter data set corresponding to the second meter set, and the first meter set and the second meter set are respectively meter sets of adjacent levels in the hierarchical tree-like electricity network topology, and then based on the first meter data set and the second meter data set, determining whether the first meter set and the second meter set are in a metering balance state, and if the first meter set and the second meter set are in a metering balance state, then determining the connection relationship between the first meter set and the second meter set based on the first meter data set and the second meter data set. Through the above method, the connection relationship between adjacent level devices can be quickly determined based on the meter data corresponding to each of the adjacent level devices, which saves labor costs and reduces the time consumption of determining the connection relationship between adjacent level devices.
[0037] See also Figure 3 , an embodiment of the present application provides a method for determining a circuit connection relationship based on IoT data analysis, the method comprising:
[0038] Step S210: Obtain a first meter data set and a second meter data set, wherein the first meter data set is a meter data set corresponding to the first meter set, the second meter data set is a meter data set corresponding to the second meter set, and the first meter set and the second meter set are respectively meter sets of adjacent levels in a hierarchical tree-like electricity network topology.
[0039] As a method, a hierarchical tree-like electricity network topology is constructed; a first set of electricity meters and a second set of electricity meters are selected from the hierarchical tree-like electricity network topology; meter data of each meter in the first set of electricity meters within a preset time period is obtained as the first meter data set; and meter data of each meter in the second set of electricity meters within the preset time period is obtained as the second meter data set.
[0040] In the embodiment of the present application, constructing a hierarchical tree-like power network topology means dividing the entire complex power network into a hierarchical tree structure according to actual conditions. The hierarchical tree-like power network topology can be understood as a layered tree, which can be represented as S=(L1, L2, ..., L n , E1,2 , E 2,3 , ..., E (n-1),n ), where n represents the number of layers included in the layered tree; L n Indicates the nodes included in the nth layer of the layered tree; E 1,2 , E 2,3 , ..., E (n-1),n is the connection relationship between nodes at adjacent levels; E (n-1),n Indicates the connection relationship between the nodes included in the n-1th layer and the nodes included in the nth layer in the layer tree.
[0041] Furthermore, That is, each layer has m1, m2, ..., m n nodes, Indicates the mth n nodes.
[0042] The connection relationship between adjacent level nodes can be expressed as:
[0043]
[0044]
[0045] in, The value of is 0 or 1, 1 means there is a connection, 0 means there is no connection. Based on the meter data of a given node, it can be determined that (E 1,2 , E 2,3 , ..., E (n-1),n ) value.
[0046] After the hierarchical tree-like electricity network topology is constructed, two adjacent layers of nodes can be selected from the hierarchical tree-like network topology, that is, the first set of electricity meters and the second set of electricity meters can be selected from the hierarchical tree-like electricity network topology. In the embodiment of the present application, the first set of electricity meters and the second set of electricity meters can be expressed as follows:
[0047] in, It represents the first set of electric meters, i represents the level where the first set of electric meters is located, It represents the second electric meter set, and i+1 represents the level where the second electric meter set is located.
[0048] After selecting the first set of electric meters and the second set of electric meters, T pieces of metering data D=(D1, D2, ..., D j , ..., D T ),in, in, Indicates the mth meter in the first meter set in the jth meter data i Meter data collected by each meter; Indicates the mth meter in the second meter set in the jth meter data (i+1) The meter data collected by each meter; j=1..T means that the value of j ranges from 1 to T; T means the total number of time points at which the metering data is collected within the preset time period, that is, the preset time period is divided into multiple time points to obtain the metering data collected at multiple time points.
[0049] Step S220: Based on the first electricity meter data set and the second electricity meter data set, determine whether the first electricity meter set and the second electricity meter set are in a metering balance state.
[0050] As a method, first metering data is determined based on the first meter data set; second metering data is determined based on the second meter data set; and based on the first metering data and the second metering data, it is determined whether the first meter set and the second meter set are in a metering balance state.
[0051] In the embodiment of the present application, after obtaining the above-mentioned first meter data set and second meter data set, the first metering data can be expressed as The second measurement data can be expressed as After the first metering data and the second metering data are obtained, it can be determined whether the first metering data and the second metering data are approximately equal to each other to determine whether the first metering data and the second metering data are in a metering balance state.
[0052] As one of the ways, if the first metering data is substantially equal to the second metering data, it is determined that the first meter set and the second meter set are in a metering balance state; based on the first meter data set and the second meter data set, a connection relationship between the first meter set and the second meter set is determined.
[0053] Specifically, if That is, it represents the adjacent two-layer nodes (L i , L i+1 ) is metering balance, which is equivalent to determining in this application that the first meter set and the second meter set are in metering balance. When it is determined that the first meter set and the second meter set are in metering balance, the connection relationship between the first meter set and the second meter set can be further determined through the first meter data set and the second meter data set.
[0054] In the embodiment of the present application, the connection relationship between the first set of electric meters and the second set of electric meters can be expressed as: Here, i represents the level where the first set of electric meters is located, and i+1 represents the level where the second set of electric meters is located.
[0055] Based on the first meter data set and the second meter data set, the connection relationship between the first meter set and the second meter is determined, which is equivalent to finding E i,i+1 The value of .
[0056] As another method, if the first metering data and the second metering data are inconsistent, it is determined that the first meter set and the second meter set are not in a metering balance state; and the first meter data set and the second meter data set are reacquired.
[0057] Specifically, if the first meter set and the second meter set are not in a metering balance state, it indicates that meters in the first meter set and the second meter set have missed measurements. At this time, the first meter data set and the second meter data set within the preset time period can be obtained again.
[0058] Step S230: If the first electricity meter set and the second electricity meter set are in a metering balance state, a preset mathematical model is established based on the first electricity meter data set and the second electricity meter data set.
[0059] In the embodiment of the present application, the preset mathematical model is a solution E established based on the first meter data set and the second meter data set. i,i+1 The value of the model.
[0060] Step S240: solving the preset mathematical model by a preset method to determine an optimal solution corresponding to the preset mathematical model, wherein the optimal solution is a matrix composed of numerical values representing connection relationships between the electric meters in the first set of electric meters and the second set of electric meters.
[0061] In the embodiment of the present application, the preset mathematical model is:
[0062]
[0063] Wherein, T represents the number of electric meter data included in the first electric meter data set and the second electric meter data set; j represents the jth electric meter data among the T electric meter data; i represents the first electric meter set; i+1 represents the second electric meter set; m i Indicates that there are a total of m in the first set of meters i Electricity meter; m i+1 Indicates that there are a total of m in the second set of meters i+1 meters; p represents the pth meter in the first meter set; q represents the qth meter in the second meter set; D j , (i, p) represents the meter data of the pth meter in the first meter set in the jth meter data; D j,(i+1,q) represents the meter data of the qth meter in the second meter set in the jth meter data; E(V i,p , V i+1,q ) represents the connection relationship between the pth meter in the first meter set and the qth meter in the second meter set, and its value is 0 or 1; st represents the constraint condition.
[0064] The above preset mathematical model can be understood as finding a set of E i,i+1 , so that The value of is the smallest.
[0065] As a method, the total number of electricity meters included in the first set of electricity meters and the second set of electricity meters is obtained; if the total number of the electricity meters is greater than or equal to a preset number, the preset mathematical model is solved by a Newton-like iterative optimization method to determine the optimal solution corresponding to the preset mathematical model; if the total number of the electricity meters is less than the preset number, the preset mathematical model is solved by a space traversal method to determine the optimal solution corresponding to the preset mathematical model.
[0066] In the embodiment of the present application, the preset number is a preset minimum number of electric meters representing the need to switch the solution method.
[0067] After selecting the first set of electricity meters and the second set of electricity meters from the hierarchical tree-like electricity network topology, the number of electricity meters included in the first set of electricity meters and the second set of electricity meters can be counted to obtain the total number of electricity meters. After obtaining the total number of electricity meters, the total number of electricity meters is compared with the preset number. If the total number of electricity meters is greater than or equal to the preset number, the Newton-like iterative optimization method is selected to solve the aforementioned preset mathematical model. Otherwise, the space traversal method is selected to solve the aforementioned preset mathematical model. Among them, the Newton-like iterative optimization method may include methods such as DFP (Davidon-Fletcher-Powell algorithm), batch gradient descent (Batch Gradient Descent, BGD) and stochastic gradient descent (Stochastic Gradient Descent, SGD), and of course, other methods may also be included, which will not be described one by one here. The Newton-like iterative optimization method is to continuously relax the problem, that is, to break the variable E (V i,p , V i+1,q )=0..1, and E(V i,p , V i+1,q )=0..1 is relaxed to continuous variables and the problem is converted into a typical quadratic nonlinear optimization problem.
[0068] The specific process of solving the preset mathematical model by using a Newton-like iterative optimization method (such as the DFP algorithm) and determining the optimal solution corresponding to the preset mathematical model can be:
[0069] (1) Initialize E i,i+1 Each connection E(V i,p , V i+1,q ) is a random number in the range [0, 1], denoted as Initialize H 0 Let I be the unit matrix and set the upper limit threshold ε of the gradient error.
[0070] (2) Calculation:
[0071] (3) Calculate y 0 For each connection E 0 (V i,p , V i+1,q ) is the derivative of:
[0072]
[0073] p=1..m i , q=1..m i+1
[0074] Get y 0 right The Jacobian matrix (gradient matrix) of is:
[0075]
[0076] (4) Calculation The determinant value of like Then stop the iteration, and the obtained is the optimal solution.
[0077] (5) Otherwise, calculate The update matrix is: get
[0078] (6) Calculation The corresponding y 1 Values:
[0079] and 1 right The Jacobian matrix (gradient matrix) of is:
[0080]
[0081] (7) Record calculate:
[0082] (8) Return to step (4).
[0083] In the embodiment of the present application, the space traversal method refers to E i ,i +1 Space traversal method, that is, for:
[0084] All possible values of E(V i,p , V i+1,q )=0..1, calculate And find the E corresponding to the minimum y i,i+1 Matrix, that is, the optimal solution is obtained.
[0085] Optionally, in an embodiment of the present application, when solving the optimal solution, a Newton-like iterative optimization method can also be used to solve the preset mathematical model.
[0086] Step S250: Based on the optimal solution, determine the connection relationship between the first set of electricity meters and the second set of electricity meters.
[0087] In the embodiment of the present application, after obtaining the optimal solution, the optimal solution E of the continuous variable obtained according to the above steps can be i,i+1 To process: That is, it is possible to determine whether there is a connection relationship between the two electric meters corresponding to each element according to the value of each element in the optimal solution. Specifically, when the value of an element is less than 0.5, it indicates that there is no connection relationship between the two electric meters corresponding to the element; when the value of an element is greater than or equal to 0.5, it indicates that there is a connection relationship between the two electric meters corresponding to the element.
[0088] The present application provides a method for determining circuit connection relationships based on IoT data analysis, which can quickly determine the connection relationship between adjacent level devices according to the electric meter data corresponding to each adjacent level device. This saves labor costs and reduces the time spent on determining the connection relationship between adjacent level devices.
[0089] See also Figure 4 , an embodiment of the present application provides a circuit connection relationship determination device 300 based on IoT data analysis, the device 300 comprising:
[0090] The data acquisition unit 310 is used to acquire a first electricity meter data set and a second electricity meter data set, wherein the first electricity meter data set is an electricity meter data set corresponding to the first electricity meter set, the second electricity meter data set is an electricity meter data set corresponding to the second electricity meter set, and the first electricity meter set and the second electricity meter set are respectively electricity meter sets of adjacent levels in a hierarchical tree-like electricity network topology.
[0091] As a method, the data acquisition unit 310 is specifically used to construct a hierarchical tree-like electricity network topology; select a first set of electricity meters and a second set of electricity meters from the hierarchical tree-like electricity network topology; obtain the meter data of each meter in the first set of electricity meters within a preset time period as the first meter data set; obtain the meter data of each meter in the second set of electricity meters within the preset time period as the second meter data set.
[0092] The state determination unit 320 is used to determine whether the first electricity meter set and the second electricity meter set are in a metering balance state based on the first electricity meter data set and the second electricity meter data set.
[0093] As a method, the state determination unit 320 is specifically used to determine the first metering data based on the first meter data set; determine the second metering data based on the second meter data set; and determine whether the first meter set and the second meter set are in a metering balance state based on the first metering data and the second metering data.
[0094] The relationship determination unit 330 is configured to determine a connection relationship between the first meter set and the second meter set based on the first meter data set and the second meter data set if the first meter set and the second meter set are in a metering balance state.
[0095] As a method, the relationship determination unit 330 is specifically used to determine that the first meter set and the second meter set are in a metering balance state if the first meter data is consistent with the second meter data; based on the first meter data set and the second meter data set, determine the connection relationship between the first meter set and the second meter set.
[0096] As another way, the relationship determination unit 330 is specifically used to determine that the first meter set and the second meter set are not in a metering balance state if the first metering data and the second metering data are inconsistent; and re-acquire the first meter data set and the second meter data set.
[0097] Optionally, the relationship determination unit 330 is further configured to establish a preset mathematical model based on the first electric meter data set and the second electric meter data set if the first electric meter set and the second electric meter set are in a metering balance state; solve the preset mathematical model by a preset method to determine an optimal solution corresponding to the preset mathematical model, wherein the optimal solution is a matrix composed of numerical values representing the connection relationship between the electric meters in the first electric meter set and the second electric meter set;
[0098] Wherein, the preset mathematical model is:
[0099]
[0100] Wherein, T represents the number of electric meter data included in the first electric meter data set and the second electric meter data set; j represents the jth electric meter data among the T electric meter data; i represents the first electric meter set; i+1 represents the second electric meter set; m i Indicates that there are m meters in the first set of meters i Electricity meter; m i+1 Indicates that there are m meters in the second set of meters i+1 meters; p represents the pth meter in the first meter set; q represents the qth meter in the second meter set; D j,(i,p) represents the meter data of the pth meter in the first meter set in the jth meter data; D j,(i+1,q) represents the meter data of the qth meter in the second meter set in the jth meter data; E(V i,p , V i+1,q) represents the connection relationship between the pth meter in the first meter set and the qth meter in the second meter set, and its value is 0 or 1; st represents the constraint condition; based on the optimal solution, determine the connection relationship between the first meter set and the second meter set.
[0101] Furthermore, the relationship determination unit 330 is also used to obtain the total number of electricity meters included in the first set of electricity meters and the second set of electricity meters; if the total number of the electricity meters is greater than or equal to a preset number, the preset mathematical model is solved by a Newton-like iterative optimization method to determine the optimal solution corresponding to the preset mathematical model; if the total number of the electricity meters is less than the preset number, the preset mathematical model is solved by a space traversal method to determine the optimal solution corresponding to the preset mathematical model.
[0102] It should be noted that the device embodiment in the present application corresponds to the aforementioned method embodiment. The specific principles in the device embodiment can be found in the contents of the aforementioned method embodiment and will not be repeated here.
[0103] The following will be combined Figure 5 An electronic device provided by the present application is described.
[0104] See also Figure 5 Based on the above-mentioned method and device for determining circuit connection relationship based on IoT data analysis, the embodiment of the present application also provides another electronic device 800 that can execute the above-mentioned method for determining circuit connection relationship based on IoT data analysis. The electronic device 800 includes one or more (only one is shown in the figure) processors 802, a memory 804 and a network module 806 coupled to each other. Among them, the memory 804 stores a program that can execute the content of the above-mentioned embodiment, and the processor 802 can execute the program stored in the memory 804.
[0105] Among them, the processor 802 may include one or more processing cores. The processor 802 uses various interfaces and lines to connect various parts within the entire electronic device 800, and executes various functions and processes data of the electronic device 800 by running or executing instructions, programs, code sets or instruction sets stored in the memory 804, and calling data stored in the memory 804. Optionally, the processor 802 can be implemented in at least one hardware form of digital signal processing (Digital Signal Processing, DSP), field programmable gate array (Field-Programmable Gate Array, FPGA), and programmable logic array (Programmable Logic Array, PLA). The processor 802 can integrate one or a combination of a central processing unit (Central Processing Unit, CPU), a graphics processing unit (Graphics Processing Unit, GPU) and a modem. Among them, the CPU mainly processes the operating system, user interface and application programs; the GPU is responsible for rendering and drawing display content; and the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 802, and may be implemented separately through a communication chip.
[0106] The memory 804 may include a random access memory (RAM) or a read-only memory (ROM). The memory 804 may be used to store instructions, programs, codes, code sets or instruction sets. The memory 804 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the following various method embodiments, etc. The data storage area may also store data (such as a phone book, audio and video data, chat record data) created by the terminal 800 during use.
[0107] The network module 806 is used to receive and send electromagnetic waves, realize the mutual conversion between electromagnetic waves and electrical signals, so as to communicate with a communication network or other devices, such as communicating with electronic devices. The network module 806 may include various existing circuit elements for performing these functions, such as antennas, radio frequency transceivers, digital signal processors, encryption / decryption chips, user identity modules (SIM) cards, memories, etc. The network module 806 may communicate with various networks such as the Internet, corporate intranets, wireless networks, or communicate with other devices via wireless networks. The above-mentioned wireless networks may include cellular telephone networks, wireless local area networks, or metropolitan area networks. For example, the network module 806 may exchange information with a base station.
[0108] Please refer to Figure 6 , which shows a structural block diagram of a computer-readable storage medium provided in an embodiment of the present application. The computer-readable medium 900 stores program codes, which can be called by a processor to execute the method described in the above method embodiment.
[0109] The computer-readable storage medium 900 may be an electronic memory such as a flash memory, an EEPROM (electrically erasable programmable read-only memory), an EPROM, a hard disk, or a ROM. Optionally, the computer-readable storage medium 900 includes a non-transitory computer-readable storage medium. The computer-readable storage medium 900 has storage space for program code 910 that performs any method step in the above method. These program codes can be read from or written to one or more computer program products. The program code 910 can be compressed, for example, in an appropriate form.
[0110] The present application provides a method, device, electronic device and storage medium for determining circuit connection relationships based on IoT data analysis. First, a first meter data set and a second meter data set are obtained, wherein the first meter data set is a meter data set corresponding to the first meter set, the second meter data set is a meter data set corresponding to the second meter set, and the first meter set and the second meter set are respectively meter sets of adjacent levels in the hierarchical tree-like electricity network topology. Then, based on the first meter data set and the second meter data set, it is determined whether the first meter set and the second meter set are in a metering balance state. If the first meter set and the second meter set are in a metering balance state, the connection relationship between the first meter set and the second meter set is determined based on the first meter data set and the second meter data set. Through the above method, the connection relationship between adjacent level devices can be quickly determined according to the meter data corresponding to each of the adjacent level devices, which saves labor costs and reduces the time consumption of determining the connection relationship between adjacent level devices.
[0111] The embodiments of the present invention are described above in conjunction with the accompanying drawings, but the present invention is not limited to the above-mentioned specific implementation modes, which are merely illustrative rather than restrictive. Under the guidance of the present invention, ordinary technicians in this field can also make many forms without departing from the scope of protection of the present invention and the claims, all of which are within the protection of the present invention.
Claims
1. A method for determining circuit connection relationships based on Internet of Things data analysis, characterized in that: The method comprises: Acquire a first electric meter data set and a second electric meter data set, wherein the first electric meter data set is an electric meter data set corresponding to the first electric meter set, the second electric meter data set is an electric meter data set corresponding to the second electric meter set, and the first electric meter set and the second electric meter set are respectively electric meter sets of adjacent levels in a hierarchical tree-like electricity network topology; Based on the first electricity meter data set and the second electricity meter data set, determining whether the first electricity meter set and the second electricity meter set are in a metering balance state; If the first electricity meter set and the second electricity meter set are in a metering balance state, a connection relationship between the first electricity meter set and the second electricity meter set is determined based on the first electricity meter data set and the second electricity meter data set.
2. The method according to claim 1, characterized in that If the first set of electric meters and the second set of electric meters are in a metering balance state, determining a connection relationship between the first set of electric meters and the second set of electric meters based on the first set of electric meter data and the second set of electric meter data includes: If the first set of electric meters and the second set of electric meters are in a metering balance state, establishing a preset mathematical model based on the first set of electric meter data and the second set of electric meter data; Solving the preset mathematical model by a preset method to determine an optimal solution corresponding to the preset mathematical model, wherein the optimal solution is a matrix composed of numerical values representing connection relationships between the electric meters in the first set of electric meters and the second set of electric meters; Wherein, the preset mathematical model is: Wherein, T represents the number of electric meter data included in the first electric meter data set and the second electric meter data set; j represents the jth electric meter data among the T electric meter data; i represents the first electric meter set; i+1 represents the second electric meter set; m i Indicates that there are m meters in the first set of meters i Electricity meter; m i+1 Indicates that there are m meters in the second set of meters i+1 meters; p represents the pth meter in the first meter set; q represents the qth meter in the second meter set; D j,(i,p) represents the meter data of the pth meter in the first meter set in the jth meter data; D j,(i+1,q) represents the meter data of the qth meter in the second meter set in the jth meter data; E(V i,p , V i+1,q ) represents the connection relationship between the pth meter in the first meter set and the qth meter in the second meter set, and its value is 0 or 1; st represents the constraint condition; Based on the optimal solution, a connection relationship between the first set of electricity meters and the second set of electricity meters is determined.
3. The method according to claim 2, characterized in that The step of solving the preset mathematical model by a preset method to determine the optimal solution corresponding to the preset mathematical model includes: Acquire the total number of electric meters included in the first electric meter set and the second electric meter set; If the total number of the electric meters is greater than or equal to the preset number, solving the preset mathematical model by a Newton-like iterative optimization method to determine the optimal solution corresponding to the preset mathematical model; If the total number of the electric meters is less than the preset number, the preset mathematical model is solved by a space traversal method to determine the optimal solution corresponding to the preset mathematical model.
4. The method according to claim 1, characterized in that: The determining, based on the first electricity meter data set and the second electricity meter data set, whether the first electricity meter set and the second electricity meter set are in a metering balance state comprises: Determining first metering data based on the first electric meter data set; Determining second metering data based on the second electric meter data set; Based on the first metering data and the second metering data, it is determined whether the first electricity meter set and the second electricity meter set are in a metering balance state.
5. The method according to claim 4, characterized in that If the first set of electric meters and the second set of electric meters are in a metering balance state, determining a connection relationship between the first set of electric meters and the second set of electric meters based on the first set of electric meter data and the second set of electric meter data includes: If the first metering data is consistent with the second metering data, determining that the first set of electric meters and the second set of electric meters are in a metering balance state; Based on the first electricity meter data set and the second electricity meter data set, a connection relationship between the first electricity meter set and the second electricity meter set is determined.
6. The method according to claim 5, characterized in that The method further comprises: If the first metering data and the second metering data are inconsistent, determining that the first set of electric meters and the second set of electric meters are not in a metering balance state; The first electricity meter data set and the second electricity meter data set are retrieved.
7. The method according to claim 1, characterized in that The obtaining of the first electric meter data set and the second electric meter data set comprises: Construct a hierarchical tree-like power network topology; Selecting a first set of electric meters and a second set of electric meters from the hierarchical tree-like electric network topology; Acquire the meter data of each of the meters in the first set of meters within a preset time period as the first set of meter data; The meter data of each of the meters in the second meter set within the preset time period is obtained as the second meter data set.
8. A circuit connection relationship determination device based on Internet of Things data analysis, characterized in that: The device comprises: A data acquisition unit, configured to acquire a first electric meter data set and a second electric meter data set, wherein the first electric meter data set is an electric meter data set corresponding to the first electric meter set, the second electric meter data set is an electric meter data set corresponding to the second electric meter set, and the first electric meter set and the second electric meter set are respectively electric meter sets of adjacent levels in a hierarchical tree-like electricity network topology; a state determination unit, configured to determine whether the first set of electric meters and the second set of electric meters are in a metering balance state based on the first set of electric meter data and the second set of electric meter data; A relationship determination unit is used to determine a connection relationship between the first set of electric meters and the second set of electric meters based on the first set of electric meter data and the second set of electric meter data if the first set of electric meters and the second set of electric meters are in a metering balance state.
9. An electronic device, characterized in that: The method comprises one or more processors; one or more programs are stored in the memory and configured to execute the method according to any one of claims 1 to 7 by the one or more processors.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores program code, wherein when the program code is executed by a processor, the method according to any one of claims 1 to 7 is executed.
