A method and system for tracing abnormal metering of electric energy
By updating the topological relationships of metering nodes and determining the metering fingerprint vector in low-voltage distribution areas, and utilizing linear relationships and sparse solution techniques, the accuracy problem of tracing anomalies in electricity metering in low-voltage distribution areas was solved, achieving more efficient tracing results and reducing misjudgments.
Patent Information
- Application Number
- CN202611675215.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-10-28
- Publication Date
- 2026-11-27
AI Technical Summary
Existing technologies cannot accurately trace metering anomalies in low-voltage distribution areas, especially in cases of topological instability, leading to misjudgments and inaccurate tracing.
By updating the topological relationships between metering nodes, the metering fingerprint vector is determined using carrier signal strength, delay characteristics, and gain relationship. A linear relationship between the residual vector and the abnormal deviation vector is established. The sensitivity matrix is used for sparse solution, and combined with posterior probability sorting, the source tracing conclusion is output.
It improves the accuracy and on-site feasibility of tracing anomalies in electricity meters, reduces misjudgments, is suitable for real-time updating of topology relationships at edge nodes, reduces computational load, and improves the accuracy of tracing results.
Smart Images

Figure CN123176648A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of metering anomaly detection technology, and in particular to a method and system for tracing metering anomalies in electricity meters. Background Technology
[0002] In low-voltage distribution areas, electricity meters, current transformers, voltage transformers, and terminal blocks constitute a multi-level metering link. A deviation in any link of this link will be reflected in the metering data of that node. However, when a deviation occurs at a terminal node, maintenance personnel typically cannot directly determine whether the deviation originates from that node itself or from an upstream common node. This is because upstream deviations propagate down the topology, manifesting as anomalies simultaneously at multiple terminal nodes.
[0003] Currently, there are two main approaches. One is manual periodic inspections followed by post-incident laboratory testing, which has significant time lag. The other is online monitoring, such as deploying edge nodes at the transformer substation for initial assessment, and then uploading suspicious results to the cloud. Existing solutions use support vector machines and multilayer perceptrons for error classification, long-time memory networks for trend prediction, or Bayesian networks for multi-device tracing. Other solutions calculate branch power based on Tellegen's theorem or construct fluctuation fingerprint feature vectors at the edge, comparing their distance to a normal operating condition pattern library to identify anomalies.
[0004] These solutions each address some of the problems, but anomaly detection and anomaly tracing are typically treated as two relatively independent tasks. First, anomaly detection is performed, then another model is used to deduce the location of the anomaly. This results in the tracing phase obtaining only a compressed anomaly label, losing the spatial information carried by the anomaly during its propagation through the network topology. Furthermore, current solutions often assume that the transformer substation topology is known and stable during tracing, but low-voltage substation topologies are not always accurate; changes in transformer-household relationships and adjustments to branch box wiring can lead to topology variations. Another type of solution, in Bayesian verification, increases the probability of child nodes being anomaly sources when a parent node is anomaly. This can misjudge the residuals propagated from the parent node to the child node as anomalies in the child node itself, making it difficult to shrink the candidate set.
[0005] It is evident that improving the accuracy of anomaly tracing is a problem that needs to be solved by those skilled in the art. Summary of the Invention
[0006] The purpose of this application is to provide a method and system for tracing the source of anomalies in electricity meter measurement, which can improve the accuracy of anomaly tracing.
[0007] This application provides a method for tracing the source of metering anomalies in electricity meters, applicable to edge tracing nodes. The method includes: The topological relationships between metering nodes are updated based on the communication parameters of each metering node; the communication parameters include the carrier signal strength, delay characteristics and / or gain relationship of each metering node. Based on the electrical parameters of each metering node, the metering fingerprint vector of each directly connected node pair is determined, and a statistical baseline is established based on the metering fingerprint vectors corresponding to multiple time points under normal operating conditions. When the deviation of the measurement fingerprint vector from the statistical baseline is greater than the screening threshold, a linear relationship between the residual vector and the abnormal deviation vector is established based on the residual between the measured value and the theoretical calculated value of each measurement node; wherein, the sensitivity matrix in the linear relationship is determined according to the topological correlation relationship. The linear relationship is used to sparsely solve the anomaly deviation vector, and the candidate set of anomaly sources and the residual contribution of each candidate node in the candidate set of anomaly sources are determined based on the sparse solution. If the topological parent node of the target candidate node is in the set of anomaly source candidates, reduce the probability that the target candidate node is an anomaly source. Based on the residual contribution of each candidate node and its probability of being an anomaly source, the candidate set of anomaly sources is sorted by posterior probability and the source tracing conclusion is output.
[0008] On the one hand, based on the communication parameters of each metering node, the topological relationships between the metering nodes are updated, including: Preliminary clustering is performed based on the carrier signal strength of each metering node to obtain candidate branch groups; Based on the delay characteristics and gain relationship of each metering node, the hierarchical order of each metering node within the candidate branch group is determined; Based on the candidate branch grouping and the hierarchical relationship between each metering node within the candidate branch group, the topological association relationship between each metering node is constructed. If a change in communication parameters is detected, the topology relationships are adjusted according to the changed communication parameters.
[0009] On the one hand, based on the electrical parameters of each metering node, the metering fingerprint vector of each directly connected node pair is determined, including: Collect electrical parameters for each metering node; these electrical parameters include measured voltage, measured current, measured active power, and measured reactive power. Node pairs that have a direct topological connection in the topological association are considered as directly connected node pairs; The relative relationship of the direct-connected node pair is obtained by the ratio of the measured active power ratio to the measured voltage ratio between the downstream and upstream nodes of the direct-connected node pair. Arrange the relative relationships of all directly connected node pairs within the transformer area in topological adjacency order to form a measurement fingerprint vector.
[0010] On the one hand, a statistical baseline is established based on the metering fingerprint vectors corresponding to multiple time points under normal operating conditions, including: Collect electrical parameters of each metering node at multiple time points under normal operating conditions; Based on the electrical parameters of each metering node at multiple time points, determine multiple relative relationships for each pair of directly connected nodes; The mean and standard deviation of multiple relative relational quantities for each directly connected node pair are used as the statistical baseline for each directly connected node pair.
[0011] On the one hand, regarding the establishment of the residual vector, methods include: Based on the measured current of the target node, the measured current of the target node's parent node, and the estimated resistance of the line between the target node and its parent node, the estimated power loss of the line between the target node and its parent node is determined; where the target node is any one of the metering nodes in the transformer area. Based on the measured active power of the target node's parent node, the proportion of the target node's output power in its parent node, and the estimated power loss, the theoretically calculated active power of the target node is determined. The difference between the measured active power and the theoretically calculated active power of the target node is taken as the residual of the target node. Based on the residuals of all metering nodes within the transformer area, a residual vector is constructed.
[0012] On the one hand, regarding the determination of the sensitivity matrix, methods include: Construct an initial sensitivity matrix based on the type and number of all metering nodes; wherein the diagonal elements of the initial sensitivity matrix are all one. When the first node is an ancestor node of the second node, the value of the corresponding element in the initial sensitivity matrix is set to the product of the power allocation ratios of each level on the topological path from the first node to the second node. If the first node is not an ancestor node of the second node, set the value of the corresponding element in the initial sensitivity matrix to zero.
[0013] On the one hand, sparse solutions are obtained for the outlier vector using linear relationships, including: The product of the sensitivity matrix and the abnormal deviation vector to be solved is taken as the theoretical abnormal component; Construct an optimization problem with the objective of minimizing the norm of the difference between the residual vector and the theoretical outlier components, and constrained by the sparsity of the outlier deviation vector to be solved. The optimization problem is solved iteratively using the alternating direction multiplier method to obtain the estimated value of the abnormal deviation vector.
[0014] On the one hand, the candidate set of anomaly sources and the residual contribution of each candidate node in the candidate set of anomaly sources are determined based on the sparse solution, including: The measurement nodes corresponding to the components whose absolute values in the estimated abnormal deviation vectors are greater than a preset threshold are selected to form a candidate set of abnormal sources. The absolute value of the estimated abnormal deviation of each candidate node in the candidate set of abnormal sources is multiplied by the norm of its corresponding column in the sensitivity matrix to obtain the comprehensive influence intensity of each candidate node. The overall influence intensity of each candidate node is normalized to obtain the residual contribution of each candidate node.
[0015] On the one hand, reducing the probability of the target candidate node being an anomaly source includes: The product of the power allocation ratios of each segment on the topological path from the topological parent node to the target candidate node is used as the correction coefficient. By using a correction factor to lower the base failure probability of the target candidate node, the probability of the target candidate node being an anomaly source is obtained.
[0016] On the one hand, based on the residual contribution of each candidate node and its probability of being an anomaly source, the candidate anomaly source set is ranked by posterior probability and the source tracing conclusion is output, including: Construct a likelihood function based on the residual contribution of each candidate node; Based on the probability and likelihood function of the candidate node as an anomaly source, calculate the posterior probability of each candidate node. If the maximum posterior probability is greater than or equal to the confirmation threshold, the candidate node corresponding to the maximum posterior probability is the unique source node. If the maximum posterior probability is less than the confirmation threshold, output the candidate list sorted according to the posterior probability; the candidate list records the confidence level of each candidate node.
[0017] On the one hand, it also includes: Generate a source tracing report; the source tracing report includes any combination of timestamp, candidate anomaly source set, residual contribution of each candidate node, posterior probability of each candidate node, source tracing conclusion, and confidence level; The traceability report is signed using a private key, and the signed traceability report is uploaded to the cloud verification and evidence storage platform. The cloud verification and evidence storage platform performs topological consistency verification, physical constraint verification, and historical consistency verification on the traceability report. After the verification is passed, the hash value of the traceability report is written to the blockchain.
[0018] This application also provides a device for tracing abnormal electricity meter readings, which is suitable for edge tracing nodes. The device includes an update unit, a first determination unit, a first establishment unit, a second establishment unit, a second determination unit, a reduction unit, and an output unit. The update unit is used to update the topological association between metering nodes according to the communication parameters of each metering node; wherein, the communication parameters include the carrier signal strength, delay characteristics and / or gain relationship of each metering node; The first determining unit is used to determine the metering fingerprint vector of each directly connected node pair based on the electrical parameters of each metering node. The first establishment unit is used to establish a statistical baseline based on the metering fingerprint vectors corresponding to multiple time points under normal operating conditions. The second establishment unit is used to establish a linear relationship between the residual vector and the abnormal deviation vector based on the residual between the measured value and the theoretical calculated value of each measurement node when the deviation of the measurement fingerprint vector from the statistical baseline is greater than the screening threshold; wherein, the sensitivity matrix in the linear relationship is determined according to the topological correlation relationship. The second determining unit is used to sparsely solve the abnormal deviation vector using linear relationships, and to determine the candidate set of abnormal sources and the residual contribution of each candidate node in the candidate set of abnormal sources based on the sparse solution. The reduction unit is used to reduce the probability of a target candidate node being an anomaly source when the topological parent node of the target candidate node is in the anomaly source candidate set. The output unit is used to sort the candidate set of anomaly sources by posterior probability based on the residual contribution of each candidate node and the probability of it being an anomaly source, and output the source tracing conclusion.
[0019] This application also provides a system for tracing abnormal electricity meter readings, including edge tracing nodes and a cloud-based verification and evidence storage platform; Edge tracing nodes are used to update the topological relationships between metering nodes based on their communication parameters. These communication parameters include the carrier signal strength, delay characteristics, and / or gain relationships of each metering node. Based on the electrical parameters of each metering node, metering fingerprint vectors for each directly connected node pair are determined, and a statistical baseline is established based on the metering fingerprint vectors corresponding to multiple time points under normal operating conditions. When the deviation of the metering fingerprint vector from the statistical baseline exceeds a screening threshold, a linear relationship is established between the residual vector and the abnormal deviation vector based on the residual between the measured values and theoretically calculated values of each metering node. The sensitivity matrix in this linear relationship is determined based on the topological relationships between the measured values and theoretically calculated values. The process involves: determining the correlation; sparsely solving the anomaly deviation vector using linear relationships, and determining the anomaly source candidate set and the residual contribution of each candidate node in the anomaly source candidate set based on the sparse solution; reducing the probability of the target candidate node being an anomaly source when its topological parent node is located in the anomaly source candidate set; ranking the anomaly source candidate set by posterior probability based on the residual contribution of each candidate node and its probability of being an anomaly source, and outputting the source tracing conclusion; generating a source tracing report based on the source tracing conclusion, the residual contribution of each candidate node, and the posterior probability; signing the source tracing report using a private key, and uploading the signed source tracing report to a cloud verification and evidence storage platform. The cloud-based verification and evidence storage platform is used to perform topological consistency verification, physical constraint verification, and historical consistency verification on the traceability report. After the verification is passed, the hash value of the traceability report is written to the blockchain.
[0020] This application also provides an electronic device, including: a memory for storing a computer program; and a processor for executing the computer program to implement the steps of any of the above-described methods for tracing the source of metering anomalies in electricity meters.
[0021] This application also provides a computer-readable storage medium storing a computer program, wherein when the computer program is executed by a processor, it implements the steps of any of the above-described methods for tracing the source of metering anomalies in electricity meters.
[0022] This application also provides a computer program product, including a computer program that, when executed by a processor, implements the steps of any of the above-described methods for tracing the source of metering anomalies in electricity meters.
[0023] As can be seen from the above technical solution, the topology association is updated based on the communication parameters of each metering node. These parameters include carrier signal strength, delay characteristics, and / or gain relationships. The topology association can be maintained by the edge tracing nodes and updated promptly to reflect changes in the relationship between households and transformers or adjustments to branch box wiring, thus providing a more accurate topology basis for subsequent residual location and probabilistic verification. The metering fingerprint vectors for each directly connected node pair are determined based on the electrical parameters of each metering node, and a statistical baseline is established based on the metering fingerprint vectors corresponding to multiple time points under normal operating conditions. The statistical baseline can stably reflect the normal operating status of the transformer area. The computational load for deviation judgment is small, facilitating continuous operation. When the deviation exceeds the screening threshold, a linear relationship between the residual vector and the abnormal deviation vector is established based on the residual between the measured value and the theoretically calculated value. The transmission relationship of abnormal deviation in the topology is written as a linear model. The sensitivity matrix is determined based on the topology association, with clear physical meaning and a sparse matrix, resulting in a smaller computational load for subsequent solutions, making it suitable for edge node operation. This method utilizes linear relationships to sparsely solve for the anomaly deviation vector, and determines the candidate set of anomaly sources and the residual contribution of each candidate node based on the sparse solution. The solution results can be concentrated on a few anomaly source nodes. The residual contribution considers both the deviation magnitude of the candidate node and its influence range on the residual vector, avoiding the neglect of the node's position in the topology while only considering the deviation magnitude. When the topological parent node of the target candidate node is located in the anomaly source candidate set, the probability of the target candidate node being an anomaly source is reduced. The residual of the parent node's anomaly propagating to the child node is less likely to be misjudged as the child node's own anomaly, thus effectively shrinking the candidate set. Based on the residual contribution of each candidate node and its probability of being an anomaly source, the anomaly source candidate set is ranked by posterior probability, and the source tracing conclusion is output. This implementation scheme connects anomaly triggering, residual location, and probability verification within the same topological physical relationship, improving the accuracy of the source tracing results and its field feasibility. Attached Figure Description
[0024] To more clearly illustrate the embodiments of this application, the accompanying drawings used in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0025] Figure 1 A flowchart of a method for tracing the source of an anomaly in electricity meter measurement provided in this application embodiment; Figure 2 A schematic diagram of a device for tracing abnormal meter readings provided in this application embodiment; Figure 3 A schematic diagram of a power meter metering anomaly tracing system provided in this application embodiment; Figure 4This is an overall architecture diagram for tracing the source of metering anomalies in an embodiment of this application. Detailed Implementation
[0026] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the protection scope of this application.
[0027] The terms "comprising" and "having," and any variations thereof, in the specification and accompanying drawings of this application are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or apparatus that includes a series of steps or units is not limited to the steps or units listed, but may include steps or units not listed.
[0028] To enable those skilled in the art to better understand the present application, the present application will be further described in detail below with reference to the accompanying drawings and specific embodiments.
[0029] Next, we will describe in detail a method for tracing the source of metering anomalies provided in the embodiments of this application.
[0030] Figure 1 A flowchart of a method for tracing anomalies in electricity metering provided in this application embodiment, applicable to edge tracing nodes, the method includes: S101: Update the topological association between metering nodes based on the communication parameters of each metering node.
[0031] The method for tracing the source of abnormal electricity meter readings can be executed by edge tracing nodes, which can be simply referred to as edge nodes.
[0032] Edge tracing nodes are installed in the power distribution room or branch box of the transformer substation. They contain a multi-core processor, a topology sensing interface directly connected to the transformer substation carrier communication module, and a local storage unit.
[0033] A multi-core processor is responsible for running the various software modules. Based on the functions required by the edge tracing nodes, each software module may include a measurement fingerprint acquisition module, a screening model, a residual propagation and localization module, and a topological constraint Bayesian network verification module.
[0034] The local storage unit is used to store metering fingerprint baselines, container images, historical residual data, and traceability reports.
[0035] The topology sensing interface connects to the carrier communication module via a debugging or management interface, directly reading the physical layer communication parameters generated by the metering node during carrier communication. The carrier communication module can be a High-speed Power Line Communication (HPLC) module. Metering nodes may include main meters, branch nodes, energy meters, instrument transformers, and other hardware devices. Each metering node is connected to an HPLC communication module.
[0036] Communication parameters may include the carrier signal strength, delay characteristics, and / or gain relationship of each metering node.
[0037] The carrier signal strength can include the signal-to-noise ratio (SNR), the delay characteristics can include subcarrier delay, and the gain relationship can include the gain ratio. The SNR reflects the ratio of signal strength to noise level; subcarrier delay refers to the transmission delay time of the signal at different frequency components; and the gain ratio indicates the degree of amplification or attenuation of the signal during transmission. These parameters were originally used to evaluate carrier communication quality; in this application, they are used to determine the electrical connection relationships between metering nodes within a distribution area.
[0038] The topology sensing interface obtains the physical layer communication parameters of each metering node within the distribution area from the HPLC communication module. Specifically, the main meter, branch nodes, energy meters, and current transformers in the distribution area are all connected to HPLC communication modules. Each metering node generates parameters such as signal-to-noise ratio, subcarrier delay, and gain ratio during carrier communication. The topology sensing interface periodically reads these parameters and, based on the signal-to-noise ratio, subcarrier delay, and gain ratio, determines which nodes are electrically part of the same branch and which nodes have parent-child relationships.
[0039] In practical implementation, preliminary clustering can be performed based on the carrier signal strength of each metering node to obtain candidate branch groups. The hierarchical order of metering nodes within each candidate branch group is determined based on the delay characteristics and gain relationships of each metering node. Based on the candidate branch groups and the hierarchical order of metering nodes within each candidate branch group, a topological association relationship between each metering node is constructed. If a change in communication parameters is detected, the topological association relationship is adjusted according to the changed communication parameters.
[0040] The topology-sensing interface maintains a local topology association table, recording the connection relationships between energy meters, transformers, branch nodes, and the main meter for the distribution area. This table is updated as physical layer communication parameters change. For example, if a new energy meter is connected to a branch box, and the HPLC module of the new node joins the communication, the topology-sensing interface reads the new physical layer communication parameters and connects the new node to the corresponding branch node. Similarly, if the wiring of a branch is adjusted, and an energy meter originally belonging to branch A is reconnected to branch B, the physical layer communication parameters will change, and the topology-sensing interface will modify the topology association table accordingly.
[0041] A topological adjacency matrix is further generated based on the topological association table. The rows and columns of the adjacency matrix correspond to the metering nodes within the transformer area. If there is a direct topological connection between two nodes, the corresponding position in the matrix is marked as 1; otherwise, it is marked as 0. This adjacency matrix is used later in calculating the metering fingerprint vector and constructing the sensitivity matrix. The topological information is maintained by the edge nodes themselves, without relying on the cloud or manual intervention. When the topology changes, the topological relationships used in subsequent source tracing calculations will not remain in the old state for an extended period, reducing source tracing misjudgments caused by topological errors.
[0042] S102: Based on the electrical parameters of each metering node, determine the metering fingerprint vector of each directly connected node pair, and establish a statistical baseline based on the metering fingerprint vectors corresponding to multiple time points under normal operating conditions.
[0043] The metering fingerprint acquisition module collects electrical parameters from each metering node within the transformer area; electrical parameters may include measured voltage, measured current, measured active power, measured reactive power, and total harmonic distortion rate, etc.
[0044] The data acquisition cycle can be set to once every 15 minutes, or adjusted according to the actual situation of the transformer area. Total harmonic distortion (THD) is the ratio of harmonic content to fundamental frequency content, reflecting the power quality level.
[0045] In practical applications, electrical parameters of each metering node can be collected; node pairs with direct topological connections in the topological association relationship can be regarded as directly connected node pairs; the relative relationship quantity of the directly connected node pairs can be obtained based on the ratio of measured active power to measured voltage between the downstream and upstream nodes of the directly connected node pairs; the relative relationship quantities of all directly connected node pairs in the transformer area can be arranged in the topological adjacency order to form a metering fingerprint vector.
[0046] Taking a directly connected node pair (i, j) as an example, the metering fingerprint acquisition module can calculate the relative relationship ρ between node i and node j at time t. ij (t).
[0047] The formula for calculating relative relationship quantities is as follows: ρ ij (t)=[P j(t) / P i (t)] / [V j (t) / V i (t)]; Among them, P j (t) represents the measured active power of node j at time t, P i (t) represents the measured active power of node i at time t, typically in kilowatts; V j (t) represents the measured voltage at node j at time t, V i (t) represents the measured voltage at node i at time t, usually in volts.
[0048] The relative relationship quantity represents the proportional relationship between the power ratio and voltage ratio between downstream and upstream nodes.
[0049] Under normal operation, this ratio is determined by the line impedance and load characteristics, falling within a relatively stable range. If the metering at node i or node j is abnormal, this ratio will deviate from the normal range.
[0050] ρ of all node pairs with direct topological connections ij (t) Arranged in the order of the topological adjacency matrix, the quantitative fingerprint vector can be obtained.
[0051] For example, a transformer substation might contain a main meter, branch boxes, and electricity meter 1 and electricity meter 2. The adjacency matrix determines which node pairs are directly connected, and thus calculates the ρ of those node pairs. ij Then arrange them into a vector in a fixed order.
[0052] To determine the statistical baseline, electrical parameters of each metering node at multiple time points under normal operating conditions can be collected; based on the electrical parameters of each metering node at multiple time points, multiple relative relational quantities of each directly connected node pair can be determined; the mean and standard deviation of the multiple relative relational quantities of each directly connected node pair can be used as the statistical baseline corresponding to each directly connected node pair.
[0053] During normal operation, data is collected for T consecutive time points, such as hourly data for 30 consecutive days. For each directly connected node pair, ρ... ij Calculate the mean μ ij and standard deviation σ ij The mean reflects the normal level, and the standard deviation reflects the normal range of fluctuation.
[0054] At runtime, the standardized deviation is calculated; the standardized deviation can be simply referred to as the deviation. The standardized deviation z of the relative relationship between node i and node j is... ij The formula for calculating (t) is as follows: z ij (t)=(ρ ij (t)-μij ) / σ ij .
[0055] If |z ij If (t) exceeds the screening threshold, it indicates that the relative relationship between node i and node j has deviated. The screening threshold can be set to 3.5, or it can be adjusted according to the distribution of historical data in the transformer area.
[0056] The screening model runs continuously and only does one thing: determine whether |z is present. ij (t)| Exceeds the screening threshold. It doesn't require complex calculations, has a very small computational load, and can be kept running continuously. When the screening model detects that the standardized deviation exceeds the screening threshold, it outputs a trigger signal to start the residual propagation localization module. If the deviation does not exceed the threshold, the edge tracing node only performs fingerprint collection and baseline maintenance, without performing tracing calculations, saving computational power.
[0057] The metering fingerprint uses relative relational quantities, not absolute electrical quantities. Absolute active power and voltage are greatly affected by load fluctuations and ambient temperature, while relative relational quantities are more stable when the topology remains unchanged, making it easier to establish a baseline and less likely to be falsely triggered by the start / stop of a single air conditioner. The screening model only performs threshold judgments, and its continuous operation does not significantly increase the burden on edge nodes.
[0058] S103: When the deviation of the measurement fingerprint vector from the statistical baseline is greater than the screening threshold, a linear relationship between the residual vector and the abnormal deviation vector is established based on the residual between the measured value and the theoretical calculated value of each measurement node.
[0059] If the deviation of the measurement fingerprint vector from the statistical baseline is greater than the screening threshold, the residual propagation localization module will be triggered.
[0060] Once the residual propagation positioning module is triggered, it begins to calculate the residuals of each metering node.
[0061] Each metering node has its corresponding residual vector. The calculation principle of the residual vector of each metering node is the same. In this application, we take any one of the metering nodes in the transformer area, namely the target node, as an example to introduce the process of determining its residual vector.
[0062] In practical implementation, the estimated power loss of the line between the target node and its parent node can be determined based on the measured current of the target node, the measured current of the target node's parent node, and the estimated resistance of the line between the target node and its parent node. Based on the measured active power of the target node's parent node, the proportion of the target node's output power in its parent node's output power, and the estimated power loss, the theoretically calculated active power of the target node is determined. The difference between the measured active power and the theoretically calculated active power of the target node is used as the residual of the target node. A residual vector is constructed based on the residuals of all metering nodes within the transformer area.
[0063] Taking the measured active power at node i as an example, the formula for calculating the theoretically derived active power is as follows: i (t)=P p(i) (t) α i (t)-ΔP loss,i (t); Where p(i) represents the parent node of node i; P p(i) (t) is the measured active power of the parent node of node i; α i (t) represents the proportion of power allocated to node i in the parent node's output power, which can be obtained based on historical data, such as the average proportion of the parent node's output power consumed by node i over a period of time; ΔP loss,i (t) is the estimated power loss of the line between node i and its parent node; i (t) represents the theoretically calculated active power of node i at time t.
[0064] Line loss can be estimated using line resistance and measured current. The formula for calculating line loss is as follows: ; Among them, R i This is the estimated resistance value of the line between node i and its parent node, which can be obtained through line parameters or on-site measurements during the initial operation of the transformer substation; I i (t) represents the measured current at node i at time t, I p(i) (t) represents the measured current of the parent node of node i at time t.
[0065] The residual of node i is defined as r i (t)=P i (t)- i (t); where P i (t) represents the measured active power of node i at time t.
[0066] During normal operation, the residual error is mainly caused by line loss estimation errors and load fluctuations, and its magnitude is very small, approximately zero-mean. When a certain node k experiences a measurement deviation e at time t... k When (t), this deviation will be propagated to the residuals of all downstream nodes through topological relationships.
[0067] If the residual of the entire transformer area is expressed as a residual vector r(t), and the abnormal deviation of each node is expressed as an abnormal deviation vector e(t), then r(t) = S e(t)+ε(t); Here, S is the sensitivity matrix, and ε(t) is the noise term. The physical meaning of the sensitivity matrix S is how much influence a unit measurement deviation at the k-th node has on the residual at the i-th node.
[0068] The residuals are not calculated out of thin air, but are derived from the measured power of the parent node, the distribution ratio, and the line loss. In this way, the transmission relationship of abnormal deviations in the topology is written as a linear model, and subsequent localization can be solved by solving the inverse problem on this model, rather than simply relying on a classifier to guess the location of the anomaly.
[0069] The sensitivity matrix in a linear relationship is determined based on the topological association. In a specific implementation, an initial sensitivity matrix can be constructed based on the type and number of all metering nodes; the diagonal elements of the initial sensitivity matrix are all set to one. If the first node is an ancestor of the second node, the corresponding element in the initial sensitivity matrix is set to the product of the power allocation ratios at each level along the topological path from the first node to the second node. If the first node is not an ancestor of the second node, the corresponding element in the initial sensitivity matrix is set to zero.
[0070] The sensitivity matrix S is constructed directly according to the topological structure, without data training. The diagonal elements S of the sensitivity matrix S... ii =1, meaning that the effect of a unit outlier on the residual of node i is 1. When node k is an ancestor node of node i, S ik Take the product of the power allocation ratios at each level along the topological path from k to i.
[0071] In a topology tree, all upstream nodes (excluding node i itself) on the path from the root node (i.e., the overall table of station areas) to node i are called ancestor nodes of node i. For example, the path from k to i is k = v0, v1, ..., v L =i, each node v on the path l Downstream node v {l+1} Directional output power accounts for v l The power distribution ratio of the total output power is ,but The meaning of this product is the proportion remaining when the abnormal deviation of ancestor node k reaches node i after passing through each level of power allocation on the path.
[0072] When node k is not an ancestor node of node i, S ik =0. In other words, the sensitivity between nodes that do not share ancestor or descendant relationships is zero.
[0073] The sensitivity matrix constructed in the above manner is a sparse matrix. The positions of the non-zero elements in the matrix directly reflect the topology, and the positions of the zero elements indicate that there is no abnormal conduction relationship between the two nodes. The sensitivity matrix is not trained in a black box, but is directly derived from the topological relationships and power distribution ratios. The physical meaning of each non-zero element is clear and understandable to staff. The sparse matrix also means that the subsequent calculations are computationally less, making it suitable for operation on edge nodes.
[0074] S104: Use linear relationships to sparsely solve the anomaly deviation vector, and determine the candidate set of anomaly sources and the residual contribution of each candidate node in the candidate set of anomaly sources based on the sparse solution.
[0075] In practice, the product of the sensitivity matrix and the abnormal deviation vector to be solved can be used as the theoretical abnormal component. An optimization problem is constructed with the objective of minimizing the norm of the difference between the residual vector and the theoretical abnormal component and with the sparsity of the abnormal deviation vector to be solved as a constraint. The optimization problem is solved iteratively using the alternating direction multiplier method to obtain the estimated value of the abnormal deviation vector.
[0076] The relationship between the residual vector r(t) and the outlier vector e(t) to be solved is r(t) = S The goal of tracing back to the source is to solve for e(t) + ε(t) given r(t) and S.
[0077] In a transformer area, only a few nodes usually experience metering anomalies at the same time, so e(t) is sparsity.
[0078] The expression for the optimization problem is as follows: ; Where ê(t) is the estimated value of the outlier vector, i.e., the sparse solution; λ is the regularization parameter, used to balance the accuracy of residual fitting and sparsity; ||e||1 is the L1 norm, which is equal to the sum of the absolute values of all components. The role of L1 regularization is to compress unimportant components to zero, so that the solution is concentrated on a few non-zero elements, i.e. a few outlier source nodes.
[0079] This optimization problem can be solved iteratively using the alternating direction multiplier method. The alternating direction multiplier method is a numerical algorithm for solving convex optimization problems. The iterative format is as follows.
[0080] The first iterative formula is e (k+1) =(S T S+ρI) -1 (S T r+ρ(z (k) -u (k) The second iterative formula is z. (k+1) =soft(e (k+1)+u (k) , λ / ρ); the third iterative formula is u (k+1) =u (k) +e (k+1) -z (k+1) ; Where ρ is the penalty parameter; soft(·,·) is the soft thresholding operator, defined as soft(a,κ)=sign(a) max(|a|-κ,0) and sign(a) denote the sign function of a, and max(|a|-κ,0) represents taking the larger value between |a|-κ and 0; e (k+1) S is the abnormal deviation vector obtained in the (k+1)th iteration; T This is the transpose of the sensitivity matrix; z (k+1) u is the auxiliary variable obtained in the (k+1)th iteration. (k+1) Let u be the scaling dual variable obtained in the (k+1)th iteration. (k) Let be the scaling dual variable obtained in the k-th iteration.
[0081] The iteration termination condition can be reaching the maximum number of iterations, such as 20; or the iteration termination condition can be that the residual change is less than a preset convergence threshold.
[0082] Since S is a sparse matrix, the main computation in each iteration is the multiplication of the sparse matrix and the vector. The computational cost is proportional to the number of topological edges, not the square of the number of nodes. On a multi-core processor with edge nodes, 10 to 20 iterations can typically be completed within 200 milliseconds. By transforming source tracing into a sparse inverse problem, the solution directly identifies which nodes exhibit abnormal deviations and their approximate magnitudes. This eliminates the need for training with a large number of fault samples and avoids separating anomaly detection and anomaly localization into two separate models.
[0083] After obtaining the estimated values of the abnormal deviation vector, the measurement nodes corresponding to the components whose absolute values are greater than a preset threshold can be selected to form a candidate set of anomaly sources. The absolute value of the estimated abnormal deviation of each candidate node in the candidate set is multiplied by the norm of its corresponding column in the sensitivity matrix to obtain the comprehensive influence intensity of each candidate node. The comprehensive influence intensity of each candidate node is then normalized to obtain the residual contribution of each candidate node.
[0084] After obtaining ê(t), take the value whose absolute value is greater than the preset threshold τ. e The corresponding metering nodes of the components constitute the candidate set C(t) of anomaly sources. e The settings can be based on the historical residual distribution during normal operation. For example, the absolute value of the residual during normal operation should not exceed a certain value, τ. e Take a value slightly larger than this.
[0085] For each candidate node in the anomaly source candidate set, calculate the residual contribution. The residual contribution is w. i The formula for calculating (t) is as follows: ; in, It is the i-th column of the sensitivity matrix. It is the L2 norm of the i-th column, which is the square root of the sum of the squares of all elements in that column; It is the j-th column of the sensitivity matrix. It is the L2 norm of the j-th column, which is the square root of the sum of the squares of all elements in that column.
[0086] The residual contribution represents the deviation magnitude of a candidate node multiplied by its influence range on the entire residual vector. Nodes with a larger influence range are more likely to be true anomalies. Candidate nodes with larger residual contributions are ranked higher in the candidate list.
[0087] The candidate set of anomaly sources is not the final conclusion, but rather the input to the Bayesian network verification module. The residual contribution combines the magnitude of the deviation of the candidate nodes with the scope of their influence, avoiding the situation where only the magnitude of the deviation is considered while ignoring the node's position in the topology.
[0088] S105: If the topological parent node of the target candidate node is in the set of anomaly source candidates, reduce the probability that the target candidate node is an anomaly source.
[0089] The residual propagation localization module sometimes generates multiple candidate nodes for anomaly sources, especially when the topology is deep and multiple nodes share the same ancestor. To narrow down the candidate anomaly source to a single anomaly source, a topologically constrained Bayesian network is used for probability ranking.
[0090] A Bayesian network is a probabilistic graphical model used to represent conditional dependencies between variables. The edge set of a Bayesian network is determined by the edge set of the transformer substation topology. Edges are established only between two nodes with a parent-child relationship in the topology. No edges are established between two nodes without topological connections. The rationale is that metering anomalies propagate along topological paths, and nodes that do not propagate along topological paths are conditionally independent in anomaly propagation.
[0091] Let the candidate set of anomaly sources be C(t) = {c1, c2, ..., c...} m For each candidate node c j Define a binary state variable X. j X j =1 indicates that this node is the true source of the anomaly, X j =0 indicates that it is not a true source of error.
[0092] When candidate node c j The topological parent node cp When not in the candidate set of anomaly sources, P(X) j =1|X p =0)=p base,j ; where p base,j It is candidate node c j The base failure probability, X, when there are no upstream anomalies. p =0 indicates that candidate node c j The topological parent node c p Not in the candidate set of anomaly sources; P(X) j =1|X p =0) indicates that in candidate node c j The topological parent node c p Candidate node c is not in the anomaly source candidate set j The probability that it is an anomaly source.
[0093] The basic failure probability can be determined based on equipment type, years of operation, and historical maintenance records. For example, for electricity meters with a long service life, p base,j It can be set higher.
[0094] When the topological parent node of the target candidate node is located in the set of anomalous source candidates, the product of the power allocation ratio of each segment on the topological path from the topological parent node to the target candidate node can be used as a correction coefficient. The basic failure probability of the target candidate node is reduced by using the correction coefficient to obtain the probability that the target candidate node is an anomalous source.
[0095] When the topological parent node c p When in the candidate set of anomaly sources, P(X) j =1|X p =1)=p base,j (1-η jp ); where η jp For from c p to c j The product of the power distribution ratios of each segment along the topological path can be called the correction factor; X p =1 indicates that candidate node c j The topological parent node c p In the candidate set of anomaly sources; P(X) j =1|X p =1) indicates that in candidate node c j The topological parent node c p In the case of the candidate set of anomaly sources, candidate node c j The probability that it is an anomaly source.
[0096] η jp The calculation formula is: .
[0097] P(X j =1|X p =1)=p base,j (1-η jp The meaning of ) is the topological parent node c. p When an anomaly occurs, it propagates along the topological path to candidate node c. j Candidate node c j The residual deviation may partly be propagated from the parent node. Therefore, candidate node c j The probability of itself acting as an anomaly source should decrease, and the decrease should be determined by η. jp Decision. η jp The larger the value, the more likely the parent node c is to be in the topology. p Anomaly propagated to candidate node c j The higher the proportion, the more the probability of the candidate node itself being abnormal decreases.
[0098] The likelihood function is constructed using the residual contribution. The formula for calculating the likelihood function is as follows: P(E|X j =1)=w j / Σw k ; Where E represents observational evidence, namely the candidate set of anomaly sources and the contribution of residuals; X j =1 indicates node c j It is the true source of the anomaly; P(E|X) j =1) indicates that in candidate node c j The likelihood of observational evidence E under the condition that it is a true anomalous source; w j Indicates candidate node c j residual contribution; w k Indicates candidate node c k The residual contribution.
[0099] The posterior probability is calculated using Bayes' theorem, and the formula for calculating the posterior probability is as follows: ; in, Indicates candidate node c j The probability that it is the true source of an anomaly; This indicates that candidate node c is determined under the condition of observational evidence E. j It is the probability that it is the true source of the anomaly; this probability can be called the posterior probability.
[0100] The Bayesian verification and residual propagation localization modules use the same set of topology paths and power allocation ratios. When a parent node is abnormal, the probability of a child node being abnormal decreases, preventing the residual propagated from the parent node to the child node from being misjudged as an abnormality in the child node itself. This allows the candidate set to truly shrink, rather than increasing with each verification.
[0101] S106: Based on the residual contribution of each candidate node and its probability of being an anomaly source, sort the candidate anomaly source set by posterior probability and output the source tracing conclusion.
[0102] In this application, a likelihood function is constructed based on the residual contribution of each candidate node. Based on the probability of a candidate node being an anomaly source and the likelihood function, the posterior probability of each candidate node is calculated. When the maximum posterior probability is greater than or equal to the confirmation threshold, the candidate node corresponding to the maximum posterior probability is output as the unique source node. When the maximum posterior probability is less than the confirmation threshold, a sorted candidate list is output according to the posterior probability; the candidate list records the confidence level of each candidate node. The confidence level is determined by the posterior probability of the candidate node. In practical applications, the posterior probability of each candidate node can be used as the confidence level.
[0103] The candidate node corresponding to the maximum posterior probability is taken as the source conclusion. The expression for the source conclusion is c. =argmaxP(X j =1|E).
[0104] When the maximum posterior probability is greater than or equal to the confirmation threshold τ c When τ occurs, output a unique source tracing conclusion. c A value of 0.85 can be used. If the maximum posterior probability is less than the confirmation threshold τ... c If the evidence is insufficient, output the sorted candidate list and label the confidence level of each candidate node for manual review.
[0105] When the evidence is sufficient, a single conclusion is given directly; when the evidence is insufficient, a list of candidate conclusions is provided, without forcing a conclusion. Maintenance personnel can then conduct further investigations based on the candidate list.
[0106] The screening model runs resident in the edge tracing nodes, only determining whether the standardized deviation exceeds a preset threshold. The residual propagation localization module and the topology constraint Bayesian network verification module are stored in local storage units as container images. Container images are a lightweight virtualization technology that can package applications and their dependencies together. After the screening model is triggered, the edge nodes dynamically load these two modules and run the complete tracing process. After the calculation is completed, the modules are unloaded, releasing memory and computing power. The number of iterations of the alternating direction multiplier method for residual propagation localization is controllable, and the calculation time for a single tracing operation is typically within 200 milliseconds.
[0107] After source tracing is completed, edge tracing nodes can generate a source tracing report. This report includes any combination of timestamps, a candidate set of anomaly sources, the residual contribution of each candidate node, the posterior probability of each candidate node, the source tracing conclusion, and confidence levels. The source tracing report is signed using a private key and uploaded to a cloud-based verification and evidence storage platform. This platform performs topological consistency checks, physical constraint checks, and historical consistency checks on the report. Once the checks pass, the hash value of the source tracing report is written to the blockchain.
[0108] In practical applications, the source tracing report can simultaneously include timestamps, the set of topological edges that triggered the fingerprint deviation, the candidate set of anomaly sources, the residual contribution and posterior probability of each candidate node, the final source tracing conclusion and confidence level.
[0109] The screening model is always resident, ensuring timely anomaly detection. Heavyweight tracing modules such as the residual propagation localization module and the topology constraint Bayesian network verification module are loaded on demand, preventing them from consuming edge node resources for extended periods. Signatures ensure the credibility of the tracing report's source, and it can be verified in the cloud after uploading.
[0110] The following section will use a specific scenario as an example to illustrate the process of tracing the source of electricity meter metering anomalies. Assume a low-voltage distribution area has two branch boxes below the main meter. Branch box a connects to electricity meters 1 and 2, while branch box b connects to electricity meter 3. A poor connection occurs in the secondary circuit of the current transformer between branch box a and electricity meter 2, causing the meter reading of electricity meter 2 to be lower than expected.
[0111] During normal operation, the metering fingerprint acquisition module establishes a statistical baseline. The relative relationship ρ between electricity meter 2 and branch box a... ij (t) has a stable mean and standard deviation. After a poor contact occurs, the active power P2(t) of electricity meter 2 is smaller, ρ ij (t) Deviation from the normal range, standardized deviation z ij (t) exceeds the screening threshold.
[0112] The screening model is triggered, and the residual propagation and localization module starts. Based on the topology, branch box a is the parent node of electricity meter 2. When calculating the residual, the measured power of electricity meter 2 is less than the theoretical value calculated from the power of branch box a and the distribution ratio, so the residual r2(t) is clearly not zero. In the sensitivity matrix, the sensitivity S from branch box a to electricity meter 2... 2,a This is equal to the power distribution ratio from branch box a to electricity meter 2. After solving the sparse optimization problem, the candidate set of anomaly sources may include both branch box a and electricity meter 2.
[0113] Proceed to Bayesian verification. Branch box a is the parent node of electricity meter 2. If branch box a is in the anomaly source candidate set, then the probability of electricity meter 2 being an anomaly source is p.base,2 (1-η 2,a ) decrease. η 2,a It is the product of the power distribution ratios along the path from branch box a to electricity meter 2. Because the proportion of faults in branch box a that are conducted to electricity meter 2 is relatively large, the probability of a fault in electricity meter 2 itself is suppressed. Ultimately, the candidate node with the highest posterior probability is electricity meter 2, and the tracing conclusion points to a poor connection in the secondary circuit of the current transformer of electricity meter 2.
[0114] This example illustrates that the rule of decreasing probability of child nodes when the parent node is abnormal can distinguish between residuals propagated from the parent node to the child node and abnormalities within the child node itself. Without this rule, branch box A and electricity meter 2 might both be listed as sources of abnormality, making it impossible for maintenance personnel to determine whether the problem lies with branch box A or electricity meter 2.
[0115] As can be seen from the above technical solution, the topology association is updated based on the communication parameters of each metering node. These parameters include carrier signal strength, delay characteristics, and / or gain relationships. The topology association can be maintained by the edge tracing nodes and updated promptly to reflect changes in the relationship between households and transformers or adjustments to branch box wiring, thus providing a more accurate topology basis for subsequent residual location and probabilistic verification. The metering fingerprint vectors for each directly connected node pair are determined based on the electrical parameters of each metering node, and a statistical baseline is established based on the metering fingerprint vectors corresponding to multiple time points under normal operating conditions. The statistical baseline can stably reflect the normal operating status of the transformer area. The computational load for deviation judgment is small, facilitating continuous operation. When the deviation exceeds the screening threshold, a linear relationship between the residual vector and the abnormal deviation vector is established based on the residual between the measured value and the theoretically calculated value. The transmission relationship of abnormal deviation in the topology is written as a linear model. The sensitivity matrix is determined based on the topology association, with clear physical meaning and a sparse matrix, resulting in a smaller computational load for subsequent solutions, making it suitable for edge node operation. This method utilizes linear relationships to sparsely solve for the anomaly deviation vector, and determines the candidate set of anomaly sources and the residual contribution of each candidate node based on the sparse solution. The solution results can be concentrated on a few anomaly source nodes. The residual contribution considers both the deviation magnitude of the candidate node and its influence range on the residual vector, avoiding the neglect of the node's position in the topology while only considering the deviation magnitude. When the topological parent node of the target candidate node is located in the anomaly source candidate set, the probability of the target candidate node being an anomaly source is reduced. The residual of the parent node's anomaly propagating to the child node is less likely to be misjudged as the child node's own anomaly, thus effectively shrinking the candidate set. Based on the residual contribution of each candidate node and its probability of being an anomaly source, the anomaly source candidate set is ranked by posterior probability, and the source tracing conclusion is output. This implementation scheme connects anomaly triggering, residual location, and probability verification within the same topological physical relationship, improving the accuracy of the source tracing results and its field feasibility.
[0116] Figure 2 This is a schematic diagram of the structure of an energy meter metering anomaly tracing device provided in an embodiment of this application. It is applicable to edge tracing nodes. The device includes an update unit 21, a first determination unit 22, a first establishment unit 23, a second establishment unit 24, a second determination unit 25, a reduction unit 26, and an output unit 27. The updating unit 21 is used to update the topological association between each metering node according to the communication parameters of each metering node; wherein, the communication parameters include the carrier signal strength, delay characteristics and / or gain relationship of each metering node; The first determining unit 22 is used to determine the metering fingerprint vector of each directly connected node pair based on the electrical parameters of each metering node. The first establishment unit 23 is used to establish a statistical baseline based on the metering fingerprint vectors corresponding to multiple time points under normal operating conditions. The second establishment unit 24 is used to establish a linear relationship between the residual vector and the abnormal deviation vector based on the residual between the measured value and the theoretical calculated value of each measurement node when the deviation of the measurement fingerprint vector from the statistical baseline is greater than the screening threshold; wherein, the sensitivity matrix in the linear relationship is determined according to the topological correlation relationship. The second determining unit 25 is used to perform sparse solution of the abnormal deviation vector using linear relationship, and determine the candidate set of abnormal sources and the residual contribution of each candidate node in the candidate set of abnormal sources based on the sparse solution. The reduction unit 26 is used to reduce the probability of the target candidate node being an anomaly source when the topological parent node of the target candidate node is in the anomaly source candidate set. Output unit 27 is used to sort the candidate set of anomaly sources by posterior probability and output the source tracing conclusion based on the residual contribution of each candidate node and the probability of it being an anomaly source.
[0117] For a description of the features in the embodiment of the electricity meter metering anomaly tracing device, please refer to the relevant description of the embodiment of the electricity meter metering anomaly tracing device method, which will not be repeated here.
[0118] As can be seen from the above technical solution, the topology association is updated based on the communication parameters of each metering node. These parameters include carrier signal strength, delay characteristics, and / or gain relationships. The topology association can be maintained by the edge tracing nodes and updated promptly to reflect changes in the relationship between households and transformers or adjustments to branch box wiring, thus providing a more accurate topology basis for subsequent residual location and probabilistic verification. The metering fingerprint vectors for each directly connected node pair are determined based on the electrical parameters of each metering node, and a statistical baseline is established based on the metering fingerprint vectors corresponding to multiple time points under normal operating conditions. The statistical baseline can stably reflect the normal operating status of the transformer area. The computational load for deviation judgment is small, facilitating continuous operation. When the deviation exceeds the screening threshold, a linear relationship between the residual vector and the abnormal deviation vector is established based on the residual between the measured value and the theoretically calculated value. The transmission relationship of abnormal deviation in the topology is written as a linear model. The sensitivity matrix is determined based on the topology association, with clear physical meaning and a sparse matrix, resulting in a smaller computational load for subsequent solutions, making it suitable for edge node operation. This method utilizes linear relationships to sparsely solve for the anomaly deviation vector, and determines the candidate set of anomaly sources and the residual contribution of each candidate node based on the sparse solution. The solution results can be concentrated on a few anomaly source nodes. The residual contribution considers both the deviation magnitude of the candidate node and its influence range on the residual vector, avoiding the neglect of the node's position in the topology while only considering the deviation magnitude. When the topological parent node of the target candidate node is located in the anomaly source candidate set, the probability of the target candidate node being an anomaly source is reduced. The residual of the parent node's anomaly propagating to the child node is less likely to be misjudged as the child node's own anomaly, thus effectively shrinking the candidate set. Based on the residual contribution of each candidate node and its probability of being an anomaly source, the anomaly source candidate set is ranked by posterior probability, and the source tracing conclusion is output. This implementation scheme connects anomaly triggering, residual location, and probability verification within the same topological physical relationship, improving the accuracy of the source tracing results and its field feasibility.
[0119] Figure 3 A schematic diagram of a power meter metering anomaly tracing system provided in this application embodiment, including an edge tracing node 10 and a cloud verification and evidence storage platform 20; Edge tracing node 10 is used to update the topological association between metering nodes based on the communication parameters of each metering node. These communication parameters include the carrier signal strength, delay characteristics, and / or gain relationship of each metering node. Based on the electrical parameters of each metering node, it determines the metering fingerprint vector for each directly connected node pair and establishes a statistical baseline based on the metering fingerprint vectors corresponding to multiple time points under normal operating conditions. When the deviation of the metering fingerprint vector from the statistical baseline exceeds a screening threshold, it establishes a linear relationship between the residual vector and the abnormal deviation vector based on the residual between the measured values and theoretically calculated values of each metering node. The sensitivity matrix in the linear relationship is determined based on the topological association between the metering nodes. The correlation relationship is determined; the linear relationship is used to sparsely solve the abnormal deviation vector, and the candidate set of anomaly sources and the residual contribution of each candidate node in the candidate set of anomaly sources are determined according to the sparse solution; when the topological parent node of the target candidate node is located in the candidate set of anomaly sources, the probability of the target candidate node being an anomaly source is reduced; based on the residual contribution of each candidate node and the probability of being an anomaly source, the candidate set of anomaly sources is sorted by posterior probability and the source tracing conclusion is output; based on the source tracing conclusion, the residual contribution of each candidate node and the posterior probability, a source tracing report is generated; the source tracing report is signed using a private key, and the signed source tracing report is uploaded to the cloud verification and evidence storage platform 20.
[0120] The cloud-based verification and evidence storage platform 20 is used to perform topological consistency verification, physical constraint verification, and historical consistency verification on the traceability report. After the verification is passed, the hash value of the traceability report is written to the blockchain.
[0121] The cloud-based verification and evidence storage platform is deployed on the metrology automation master station or a cloud server. It is responsible for receiving traceability reports uploaded by edge traceability nodes, performing logical consistency checks, and writing the verified results into the blockchain for evidence storage. Blockchain is a distributed ledger technology with the characteristic of immutability.
[0122] Figure 4 This application provides an overall architecture diagram for tracing metering anomalies, including a distribution area metering network, edge tracing nodes, and a cloud-based verification and evidence storage platform. The distribution area metering network includes hardware devices such as the main distribution area meter, branch nodes, electricity meters, and current transformers, with an HPLC communication module installed on each device. The edge tracing nodes include a multi-core processor, a topology-aware interface, and local storage. A metering fingerprint acquisition module, a screening model, a residual propagation and localization module, and a topology-constrained Bayesian network verification module can be deployed on the multi-core processor. The edge tracing nodes acquire communication parameters collected by the HPLC communication module through the topology-aware interface. The cloud-based verification and evidence storage platform can maintain topology consistency verification, physical constraint verification, historical consistency verification, blockchain evidence storage, and maintenance work orders.
[0123] After receiving the traceability report, the cloud-based verification and evidence storage platform performs three logical consistency checks. The first is topological consistency check. The second is physical constraint check. The third is historical consistency check.
[0124] For topology consistency verification, a baseline copy of the transformer area topology is maintained in the cloud, and the residual propagation paths in the source tracing report are checked to ensure consistency with the cloud topology. If a path in the source tracing report is not present in the cloud topology, it indicates that the topology maintained by the edge nodes may be incorrect, and the source tracing report is unreliable. For physical constraint verification, the residual vectors in the source tracing report are checked to ensure they satisfy the basic power conservation relationship, i.e., whether the input power of the transformer area's total table is approximately equal to the sum of the output power of all end nodes plus the estimated line loss. If the deviation exceeds a reasonable range, it indicates that the residual calculation may be incorrect. For historical consistency verification, the source tracing conclusions for the same node within a preset time window are checked to ensure consistency. If a node is repeatedly marked as an anomaly source within a short period but is never confirmed, it may be a model false alarm.
[0125] After all three verifications pass, the cloud writes the hash value of the traceability report to the blockchain for notarization, and simultaneously pushes the traceability conclusion to the operation and maintenance work order system. The hash value is a fixed-length digest calculated by a hash algorithm, possessing uniqueness and irreversibility. If a verification fails, the cloud returns the traceability report with the reason for the failure, and the edge nodes can re-examine the topology or residual data based on the reason. The cloud only performs verifications without recalculating, resulting in a low computational burden. The three verifications address topological, physical, and historical aspects respectively, reducing false alarms. Blockchain notarization ensures that the traceability conclusion is tamper-proof, facilitating post-event review.
[0126] As can be seen from the above technical solution, the edge tracing node updates the topology association relationship based on the communication parameters of each metering node. These communication parameters include carrier signal strength, delay characteristics, and / or gain relationship. The topology association relationship can be maintained by the edge tracing node itself and updated in a timely manner according to changes in the relationship between the user and transformer or adjustments to the branch box wiring, thus providing a more accurate topology basis for subsequent residual location and probabilistic verification. The metering fingerprint vector of each directly connected node pair is determined based on the electrical parameters of each metering node, and a statistical baseline is established based on the metering fingerprint vectors corresponding to multiple time points under normal operating conditions. The statistical baseline can stably reflect the normal operating status of the transformer area. The computational load for deviation judgment is small, facilitating continuous operation. When the deviation exceeds the screening threshold, a linear relationship between the residual vector and the abnormal deviation vector is established based on the residual between the measured value and the theoretically calculated value. The transmission relationship of the abnormal deviation in the topology is written as a linear model. The sensitivity matrix is determined based on the topology association relationship, with clear physical meaning and a sparse matrix, resulting in a small computational load for subsequent solutions, making it suitable for edge node operation. This method utilizes linear relationships to sparsely solve for the anomaly deviation vector, and determines the candidate set of anomaly sources and the residual contribution of each candidate node based on the sparse solution. The solution results can be concentrated on a few anomaly source nodes. The residual contribution considers both the deviation magnitude of the candidate node and its influence range on the residual vector, avoiding the neglect of the node's position in the topology while only considering the deviation magnitude. When the topological parent node of the target candidate node is located in the anomaly source candidate set, the probability of the target candidate node being an anomaly source is reduced. The residual of the parent node's anomaly propagating to the child node is less likely to be misjudged as the child node's own anomaly, thus effectively shrinking the candidate set. Based on the residual contribution of each candidate node and its probability of being an anomaly source, the anomaly source candidate set is ranked by posterior probability, and the source tracing conclusion is output. This implementation scheme connects anomaly triggering, residual location, and probability verification within the same topological physical relationship, improving the accuracy and on-site feasibility of the source tracing results. Edge source tracing nodes generate a source tracing report based on the source tracing conclusion, the residual contribution of each candidate node, and the posterior probability; the source tracing report is signed using a private key, and the signed source tracing report is uploaded to a cloud verification and evidence storage platform. The cloud-based verification and evidence storage platform performs topological consistency verification, physical constraint verification, and historical consistency verification on the traceability report. After successful verification, the hash value of the traceability report is written to the blockchain. The cloud adopts simplified parameter settings and preloading strategies, which reduces system complexity and response latency while maintaining traceability accuracy, making it suitable for application scenarios with high real-time requirements.
[0127] Embodiments of this application also provide an electronic device, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to perform the steps in any of the above embodiments of the method for tracing anomalies in electricity meter measurement.
[0128] Embodiments of this application also provide a computer-readable storage medium storing a computer program, wherein the computer program is configured to execute the steps in any of the above embodiments of the method for tracing anomalies in electricity meter measurement.
[0129] In one exemplary embodiment, the aforementioned computer-readable storage medium may include, but is not limited to, various media capable of storing computer programs, such as a USB flash drive, read-only memory (ROM), random access memory (RAM), portable hard disk, magnetic disk, or optical disk.
[0130] The embodiments of this application also provide a computer program product, which includes a computer program that, when executed by a processor, implements the steps in any of the above embodiments of the method for tracing anomalies in electricity meter measurement.
[0131] Embodiments of this application also provide another computer program product, including a non-volatile computer-readable storage medium storing a computer program, which, when executed by a processor, implements the steps in any of the above embodiments of the method for tracing anomalies in electricity meter measurement.
[0132] Those skilled in the art will further recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of both. To clearly illustrate the interchangeability of hardware and software, the components and steps of the various examples have been generally described in terms of functionality in the foregoing description. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0133] The foregoing has provided a detailed description of a method, apparatus, system, electronic device, computer-readable storage medium, and computer program product for tracing anomalies in electricity meters. Specific examples have been used to illustrate the principles and implementation methods of this application. The descriptions of the embodiments above are only intended to aid in understanding the method and core ideas of this application. It should be noted that those skilled in the art can make various improvements and modifications to this application without departing from its principles, and these improvements and modifications also fall within the protection scope of this application.
Claims
1. A method for tracing the source of metering anomalies in electricity meters, characterized in that, Applicable to edge tracing nodes, the method includes: The topological association between each metering node is updated based on the communication parameters of each metering node; wherein, the communication parameters include the carrier signal strength, delay characteristics and / or gain relationship of each metering node. Based on the electrical parameters of each metering node, the metering fingerprint vector of each directly connected node pair is determined, and a statistical baseline is established based on the metering fingerprint vectors corresponding to multiple time points under normal operating conditions. When the deviation of the measurement fingerprint vector from the statistical baseline is greater than the screening threshold, a linear relationship between the residual vector and the abnormal deviation vector is established based on the residual between the measured value and the theoretical calculated value of each measurement node; wherein, the sensitivity matrix in the linear relationship is determined according to the topological correlation relationship. The linear relationship is used to sparsely solve the abnormal deviation vector, and the candidate set of anomaly sources and the residual contribution of each candidate node in the candidate set of anomaly sources are determined based on the sparse solution. If the topological parent node of the target candidate node is located in the set of anomaly source candidates, the probability of the target candidate node being an anomaly source is reduced. Based on the residual contribution of each candidate node and its probability of being an anomaly source, the candidate set of anomaly sources is sorted by posterior probability and the source tracing conclusion is output.
2. The method for tracing the source of metering anomalies in electricity meters according to claim 1, characterized in that, The determination of the metering fingerprint vector for each directly connected node pair based on the electrical parameters of each metering node includes: Collect electrical parameters for each metering node; wherein, the electrical parameters include measured voltage, measured current, measured active power and measured reactive power; Node pairs that have direct topological connections in the aforementioned topological relationships are considered as directly connected node pairs; The relative relationship of the direct-connected node pair is obtained by the ratio of the measured active power ratio to the measured voltage ratio between the downstream and upstream nodes of the direct-connected node pair. The relative relation quantities of all directly connected node pairs within the transformer area are arranged in topological adjacency order to form the metering fingerprint vector.
3. The method for tracing the source of metering anomalies in electricity meters according to claim 2, characterized in that, The step of establishing a statistical baseline based on the metering fingerprint vectors corresponding to multiple time points under normal operating conditions includes: Collect electrical parameters of each metering node at multiple time points under normal operating conditions; Based on the electrical parameters of each metering node at multiple time points, determine multiple relative relationships for each pair of directly connected nodes; The mean and standard deviation of multiple relative relational quantities for each directly connected node pair are used as the statistical baseline for each directly connected node pair.
4. The method for tracing the source of metering anomalies in electricity meters according to claim 1, characterized in that, The method for establishing the residual vector includes: Based on the measured current of the target node, the measured current of the target node's parent node, and the estimated resistance of the line between the target node and its parent node, the estimated power loss of the line between the target node and its parent node is determined; wherein, the target node is any one of all metering nodes in the transformer area. Based on the measured active power of the target node's parent node, the proportion of the target node's output power in its parent node, and the estimated power loss, the theoretically calculated active power of the target node is determined. The difference between the measured active power of the target node and the theoretically calculated active power is taken as the residual of the target node. Based on the residuals of all metering nodes within the transformer area, a residual vector is constructed.
5. The method for tracing the source of metering anomalies in electricity meters according to claim 1, characterized in that, The method for determining the sensitivity matrix includes: An initial sensitivity matrix is constructed based on the type and number of all metering nodes; wherein the diagonal elements of the initial sensitivity matrix are all one. When the first node is an ancestor node of the second node, the value of the corresponding element in the initial sensitivity matrix is set to the product of the power allocation ratios of each level on the topological path from the first node to the second node. If the first node is not an ancestor node of the second node, the value of the corresponding element in the initial sensitivity matrix is set to zero.
6. The method for tracing the source of metering anomalies in electricity meters according to claim 1, characterized in that, The step of sparsely solving the abnormal deviation vector using the linear relationship includes: The product of the sensitivity matrix and the abnormal deviation vector to be solved is taken as the theoretical abnormal component; Construct an optimization problem with the objective of minimizing the norm of the difference between the residual vector and the theoretical anomaly component, and constrained by the sparsity of the anomaly deviation vector to be solved. The optimization problem is solved iteratively using the alternating direction multiplier method to obtain the estimated value of the abnormal deviation vector.
7. The method for tracing the source of metering anomalies in electricity meters according to claim 6, characterized in that, The step of determining the candidate set of anomaly sources and the residual contribution of each candidate node in the candidate set of anomaly sources based on the sparse solution includes: The metering nodes corresponding to the components whose absolute values in the estimated abnormal deviation vectors are greater than a preset threshold are selected to form the candidate set of abnormal sources. The absolute value of the anomaly deviation estimate of each candidate node in the anomaly source candidate set is multiplied by the norm of its corresponding column in the sensitivity matrix to obtain the comprehensive influence intensity of each candidate node. The overall influence intensity of each candidate node is normalized to obtain the residual contribution of each candidate node.
8. The method for tracing the source of metering anomalies in electricity meters according to claim 1, characterized in that, Reducing the probability of the target candidate node being an anomaly source includes: The product of the power allocation ratios of each segment on the topological path from the topological parent node to the target candidate node is used as a correction coefficient. The base failure probability of the target candidate node is reduced using the correction coefficient to obtain the probability that the target candidate node is an anomaly source.
9. The method for tracing the source of metering anomalies in electricity meters according to claim 1, characterized in that, The process of ranking the candidate anomaly source set based on the residual contribution of each candidate node and its probability of being an anomaly source, and outputting the source tracing conclusion, includes: Construct a likelihood function based on the residual contribution of each candidate node; Based on the probability of a candidate node being an anomaly source and the likelihood function, the posterior probability of each candidate node is calculated. If the maximum posterior probability is greater than or equal to the confirmation threshold, the candidate node corresponding to the maximum posterior probability is the unique source node. If the maximum posterior probability is less than the confirmation threshold, a candidate list sorted by posterior probability is output; wherein, the confidence level of each candidate node is recorded in the candidate list.
10. A system for tracing the source of metering anomalies in electricity meters, characterized in that, This includes edge tracing nodes and cloud-based verification and evidence storage platforms; The edge tracing node is used to update the topological association between metering nodes based on the communication parameters of each metering node; wherein, the communication parameters include the carrier signal strength, delay characteristics, and / or gain relationship of each metering node; based on the electrical parameters of each metering node, the metering fingerprint vector of each directly connected node pair is determined, and a statistical baseline is established based on the metering fingerprint vectors corresponding to multiple time points under normal operating conditions; when the deviation of the metering fingerprint vector from the statistical baseline is greater than the screening threshold, a linear relationship between the residual vector and the abnormal deviation vector is established based on the residual between the measured values and theoretically calculated values of each metering node; wherein, the sensitivity matrix in the linear relationship is based on the topological association... The following steps are performed: First, the linear relationship is determined. Then, the abnormal deviation vector is sparsely solved using the linear relationship, and a candidate set of anomaly sources and the residual contribution of each candidate node in the candidate set are determined based on the sparse solution. If the topological parent node of the target candidate node is located in the candidate set of anomaly sources, the probability of the target candidate node being an anomaly source is reduced. Based on the residual contribution of each candidate node and its probability of being an anomaly source, the candidate set of anomaly sources is sorted by posterior probability, and a source tracing conclusion is output. Based on the source tracing conclusion, the residual contribution of each candidate node, and the posterior probability, a source tracing report is generated. Finally, the source tracing report is signed using a private key, and the signed source tracing report is uploaded to a cloud verification and evidence storage platform. The cloud-based verification and evidence storage platform is used to perform topological consistency verification, physical constraint verification, and historical consistency verification on the traceability report. After the verification is passed, the hash value of the traceability report is written into the blockchain.
