Error stability estimation method for electric energy meter based on sliding window multi-view fusion
By using a sliding window multi-view fusion method, the problem of sensitivity to occasional abnormal pollution in the error estimation of electricity meters is solved, and robust error estimation and uncertainty quantification are achieved, thereby improving the stability and reliability of electricity meter error estimation.
Patent Information
- Application Number
- CN202611345354.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-01
- Publication Date
- 2026-11-27
AI Technical Summary
Existing technologies are sensitive to occasional abnormal pollution in the estimation of electricity meter errors, and cannot quantify the uncertainty, resulting in unstable and unreliable error estimation.
A sliding window-based multi-view fusion method is adopted, which decomposes multi-day electricity data into multiple weakly correlated observation views through a large overlapping sliding window, solves independently and performs weighted median fusion, constructs confidence intervals, and achieves robust error estimation.
It achieves immunity to sporadic contamination, quantifies the uncertainty of error estimation, improves the stability and reliability of error estimation, and reduces the uncertainty of estimation results.
Smart Images

Figure CN123176643A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of intelligent analysis technology for power metering data, specifically to a method for stable estimation of electricity meter error based on sliding window multi-view fusion. Background Technology
[0002] During the operation of a power distribution substation, the system continuously accumulates daily electricity consumption data from key meters and individual user meters within the substation. Due to factors such as manufacturing process variations, long-term aging, transformer ratio deviations, poor secondary circuit contact, and environmental temperature changes, operating meters gradually deviate from their calibration errors, resulting in metering inaccuracies. Traditional methods for detecting these inaccuracies rely on periodic rotational calibrations or on-site verifications, requiring power outages and meter removal, which is costly and has low coverage. With the widespread adoption of electricity consumption data collection systems, online estimation of individual user metering errors based on massive amounts of electricity data from the substation, without power outages or meter removal, has become a crucial technical means to improve metering accuracy and reduce substation line losses.
[0003] The mainstream technical approach for online error estimation is to establish a system of linear equations based on the energy conservation relationship within a transformer substation: within a statistical data interval, the electricity supplied by the substation's gate meter equals the sum of the actual electricity consumption of each user's meter plus line losses and fixed losses; by using the constant error rate between the metered electricity consumption and the actual electricity consumption of each user's meter as the unknown variable, an overdetermined system of linear equations can be constructed from the electricity data of multiple days, and then the errors of each meter can be solved. Since the load curves of users within the same substation are correlated, and the number of meters to be calculated is often close to or even exceeds the number of statistical days, the characteristic matrix of this system of equations is usually ill-conditioned, requiring the introduction of regularization to stabilize the inverse. Chinese invention patent application CN117851908B discloses an improved online low-voltage distribution area electricity meter misalignment monitoring method and device. This method establishes a set of equations based on the energy conservation relationship that the electricity supplied to the distribution area equals the sum of the actual electricity consumption of users plus line loss and fixed loss. It introduces the constant error rate of the user's electricity meter as the unknown quantity, solves it using the regularized least squares method, eliminates abnormal electricity consumption with the help of the quartile method, predicts the line loss rate of the distribution area with the extended Kalman filter, and finally determines whether the electricity meter is misaligned based on whether the error rate exceeds a set threshold.
[0004] However, although this scheme applies a windowed sliding weighted average to the supplied power, line loss power, and user metered power before solving the problem, this sliding average is essentially a mean-based aggregation. It then solves a single least-squares equation system on a single smoothed dataset, ultimately outputting only a single-point estimate of the error for each meter and a fixed inaccuracy threshold. The collapse point of mean-based aggregation is zero: if any occasional anomalies not eliminated by the quartile method are mixed into the statistical interval—such as temporary wiring by individual users, meter reading jumps, intermittent faults in metering units, or systematic power offsets introduced by sudden load changes—the contaminated data will skew the mean, causing the single equation system solution to become unstable overall. Furthermore, single-point estimation cannot provide the reliability of the error estimate itself; users have no way to judge whether a certain estimate is reliable, nor can they quantify its uncertainty.
[0005] The reason why existing technologies struggle to overcome the aforementioned problems lies in the prevailing belief that improving the accuracy of electricity meter error estimation lies in more refined modeling of a single statistical window, employing stronger regularization, more complex solvers, or more comprehensive data cleaning, in an attempt to extract the most accurate single-point solution possible from a single window. This "single-point refinement" approach has led researchers to continuously seek improvements within a single window, neglecting a fundamental fact: no single-window estimate can be immune to occasional contamination falling within that window, nor can it provide an uncertainty measure based solely on its own characteristics. Therefore, how to obtain a stable error estimate that is immune to contamination and can quantify its own uncertainty under conditions where electricity meter operating data contains occasional abnormal contamination has become the core technical bottleneck restricting the practical application of online error estimation for distribution area electricity meters. Summary of the Invention
[0006] To address the core bottlenecks in existing technologies for online error estimation of electricity meters in distribution areas—namely, sensitivity to occasional anomalies due to a focus on single-point refinement within a single statistical window, and the inability to quantify uncertainty—this invention provides a stable error estimation method for electricity meters based on multi-perspective fusion using a sliding window. This method decomposes multi-day electricity data into multiple weakly correlated observation perspectives using a highly overlapping sliding window, solves for each perspective independently, and then robustly fuses the data using the weighted median of high collapse points to construct a confidence interval. Under the constraint that distribution area data may contain occasional contamination, this method reverses the "single-point refinement" to "multi-perspective robust fusion" from the perspective of robust statistics and uncertainty quantification, achieving stable, reliable, and inherently credible error estimation.
[0007] The technical solution of this invention is: a method for stable estimation of electricity meter error based on sliding window multi-view fusion, comprising the following steps: obtaining the daily power supply of the electricity meter at the distribution area and the daily metered power of each user's electricity meter within the distribution area; within the data acquisition period, sliding and truncating multiple large overlapping time windows with a seven-day step size, each time window constituting an error solving subproblem with the daily metered power as the feature matrix and the daily power supply after line loss correction as the observation vector; firstly filtering the time windows for abnormal windows, and then independently performing a two-stage solution for the time windows that pass the filtering, the first stage using truncated singular value decomposition to preserve... The invention first obtains an initial error solution by retaining singular values that meet the cumulative energy target and filtering out small singular values that carry noise. In the second stage, the fitness of the combined residual and regularization terms is used to optimize the initial error solution using a genetic algorithm, resulting in a window error estimate. For each time window, a window quality score is calculated, combining residual quality, constraint quality, and data quality. For the same user's electricity meter, the window error estimates for each time window are weighted and fused using the window quality score as the weight to obtain the error point estimate. Then, based on the distribution of each window error estimate, a 95% confidence interval is constructed, upgrading the point estimate to an interval estimate and outputting it. This invention further provides a sliding window generation method, a four-condition anomaly window filtering method, a truncated rank cumulative energy determination method, a window-by-window regularization parameter training method, a weighted geometric average method for window quality scores, a weighted median fusion method, and a confidence interval construction method based on a robust discrete scale and the number of effective windows.
[0008] The beneficial effects of this invention are as follows: First, by using a large-overlapping sliding window to split multi-day data into multiple observation perspectives and applying weighted median fusion to the multi-window estimates of the same user's electricity meter, even if the estimates produced by the occasionally contaminated window are severely deviated, they will not dominate the final result. The mechanism is that the weighted median has a 50% collapse point, and as long as the weight of the contaminated window is less than half, the fusion result remains bounded and stable. Compared with the mean-type moving average plus single-point least squares solution with a collapse point of zero, this invention has a qualitative change in its immunity to occasional contamination. Second, by independently performing a two-stage solution of truncated singular value decomposition and genetic algorithm for each time window, the mechanism is that truncated singular value decomposition discards the small singular value directions that carry noise and suppresses the inherent large-scale effect of the ill-conditioned feature matrix, thus providing a stable initial solution. The genetic algorithm then performs global optimization by taking into account the fitness of residuals and regularity, avoiding getting trapped in local optima near the initial solution. The two complement each other, one "stable" and one "accurate," making the single-window estimation itself superior to simple regularized least squares. Third, by constructing confidence intervals based on multi-window estimation distributions and upgrading point estimation to interval estimation, the mechanism lies in the fact that the dispersion of multiple weakly correlated perspectives naturally measures the uncertainty of the estimation, and the standard error of the fused estimation decreases with the square root of the number of effective windows, making the width of the fused confidence interval about half that of a single window. This gives the online error estimation of transformer substations a quantifiable credibility for the first time. More importantly, the above effects are not simply an independent superposition: the intermediate quantity of window quality score is reused three times, serving as a weight for weighted median fusion, ensuring the establishment of 50% of the collapse points through weighted constraints, and serving as the basis for calculating the number of effective windows in the confidence interval. This forms a synergistic gain chain from "multi-perspective generation" to "quality-weighted robust fusion" to "uncertainty quantification," producing a nonlinear synergistic effect that cannot be achieved by a single link: fusion not only improves the robustness of point estimation but also compresses the width of interval estimation, improving both robustness and determinism under the same mechanism. Attached Figure Description
[0009] Figure 1 This is the overall flowchart of the energy meter error stability estimation method based on sliding window multi-view fusion of the present invention; Figure 2 This is the principle and flowchart of the sliding window multi-view generation and window-by-window two-stage solution of the present invention; Figure 3 This is a schematic diagram illustrating the mechanism of weighted median fusion and confidence interval construction in this invention. Detailed Implementation
[0010] To make the objectives, technical solutions, and advantages of this invention clearer, the invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only for explaining the invention and are not intended to limit the invention. This embodiment takes a low-voltage distribution transformer area as an example, which is connected to one gate electricity meter and several user electricity meters. The overall process is as follows: Figure 1 As shown, the process includes, in sequence, data acquisition and preprocessing, multi-view generation of sliding windows, abnormal window filtering, truncated singular value decomposition in the first stage of window-by-window, genetic algorithm optimization in the second stage of window-by-window, window quality scoring, weighted median fusion, confidence interval construction, and interval estimation output and downstream applications.
[0011] Step S1, Data Acquisition and Preprocessing. The daily electricity supply of the power meter at the distribution area's access point is acquired during the data acquisition period and recorded as a sequence. ; Obtain the daily metered electricity consumption of each user's electricity meter within the aforementioned distribution area, and record it as . In the formula, The electricity supplied by the meter on day k is a non-negative scalar value in kW·h, which is the daily frozen electricity difference from the electricity consumption information collection system. Let be the metered electricity consumption of the i-th user's electricity meter on day k, a non-negative scalar quantity in kW·h; the subscript i is the serial number of the user's electricity meter, a positive integer not less than 1 and not greater than N, and N is the total number of user electricity meters in the distribution area, a positive integer. In this embodiment, is taken as . The subscript k represents the day number, which is a positive integer not less than 1 and not greater than D, where D is the total number of days in the data collection period, and is a positive integer. In this embodiment, k is taken as... That is, a data collection cycle is defined as 90 consecutive days.
[0012] The preprocessing stage performs missing value imputation and significant outlier marking on daily electricity consumption: missing daily electricity consumption is imputed by linear interpolation of adjacent valid days, and significant outlier days that exceed the physically feasible range are marked. It should be noted that this invention does not assume that preprocessing can remove all outliers; on the contrary, this invention aims to address those occasional contaminants that are morphologically hidden, not identified by preprocessing and quartile filtering, and thus remain in the data. Subsequent multi-view robust fusion is designed to address such residual contaminants.
[0013] Step S2: Generating multiple perspectives using a sliding window. (For example...) Figure 2 As shown, this invention does not solve the problem all at once over the entire data acquisition period, but rather uses a time window of length L days, and calculates the solution step by step. The data is collected by sliding within a data acquisition cycle, generating multiple largely overlapping time windows. Each time window provides an independent observation perspective on the errors of the same batch of users' electricity meters. The set of day numbers covered by the w-th time window is as follows: , , In the formula, The set of day numbers covered by the w-th time window; Let L be the starting date number of the w-th time window; L is the length of the time window, in days, and is a positive integer. In this embodiment, L is taken as L. ; The sliding step size for adjacent time windows, expressed in days, is a positive integer. In this embodiment, it is taken as... This means a new perspective is generated every week; w is the time window number, a positive integer not less than 1 and not greater than W. The total number of time windows is: In the formula, W represents the total number of time windows, which is a positive integer; This indicates the floor function, which rounds down to the nearest integer, i.e., takes the largest integer not exceeding the real number inside the parentheses; D, L, The meaning is the same as described above. Substituting the values from this embodiment, we get... This means generating nine perspectives from ninety days of data. Here, the window length L is set much larger than the step size. This is because the number of overlapping days between adjacent windows is... The high overlap rate of the days ensures that each viewpoint covers roughly the same load conditions, making them comparable. At the same time, adjacent windows each include or exclude different edge days, making the exposure to occasional pollution different for each viewpoint and weakly correlated with each other. This is the premise for the subsequent robust fusion to be effective.
[0014] For each time window, the daily metered electricity consumption for the number of days it covers is organized into a characteristic matrix, and the daily supplied electricity consumption after line loss correction is organized into an observation vector, constituting the error solution subproblem for that time window. The physical basis of the error solution subproblem is the energy conservation relationship of the transformer area: the electricity supplied by the gate meter on a certain day, after deducting line loss and fixed losses, should be equal to the sum of the actual electricity consumption of all user meters on that day. By introducing the correction coefficient of the user's electricity meter to convert the metered electricity consumption into actual electricity consumption, the linear observation model is obtained: , In the formula, Let be the predicted line loss rate for the transformer area on day k, which is a dimensionless scalar and takes values within the open interval. The line loss prediction is provided by a line loss prediction process that is independent of the user's daily electricity metering (such as prediction based on historical theoretical line loss and operating conditions), and is used to correct the supplied electricity to the portion that should be borne by the user's actual electricity consumption. Let be the correction coefficient of the i-th user's electricity meter, which is a dimensionless positive scalar, defined as the ratio of the actual electricity consumption to the metered electricity consumption, and is the unknown quantity of this subproblem. , The meaning of N is the same as in step S1; This represents the summation of electricity meters for all users within the transformer area. Let be the components of the observation vector, and let the element in the k-th row and i-th column of the characteristic matrix be denoted as . Then the above equation can be written in matrix form at the w-th time window. In the formula, Let be the feature matrix of the w-th time window, and be... A real matrix, where each row corresponds to a day in the window and each column corresponds to a user's electricity meter, with the unit of the elements being kW·h; Let be the observation vector for the w-th time window, which is an L-dimensional column vector with components in kW·h. The correction coefficient vector is an N-dimensional dimensionless column vector; superscript... This indicates transpose.
[0015] Step S3, Abnormal Window Filtering. Before solving for the time window, abnormal windows are identified and excluded according to four conditions to prevent perspectives with poor overall quality from entering subsequent fusion. For the w-th time window, the following four indicators are calculated. First, the percentage of effective collection days. In the formula The number of valid days within the window that were not marked as missing or significantly abnormal; a non-negative integer. It is a dimensionless quantity that takes values on a closed interval. Secondly, the average overall line loss rate was observed: In the formula, Let be the average comprehensive line loss rate observed in the w-th time window, and be a dimensionless scalar, obtained by averaging the observed line loss rates for each day within the window using this formula; numerator The difference between the electricity supplied on day k and the sum of the electricity metered by users, expressed in kW·h, is given by the denominator. The unit is kW·h, and the quotient of the two is dimensionless. It should be noted that here... Calculated from the measured power, this is for diagnostic purposes only, and is used in step S2 to correct the predicted line loss rate of the observation vector. Not the same quantity: If a certain window Negative or abnormally high values indicate that the sum of users' metered electricity consumption exceeds the supplied electricity consumption or that losses are abnormal, often signifying pollution or topology errors within the window. Thirdly, the coefficient of variation of daily supplied electricity consumption: In the formula, Let be the coefficient of variation of the daily power supply in the w-th time window, and be a dimensionless non-negative scalar. The value within the square root is the average daily power supply within the window, in kW·h; the value within the square root is the variance of the daily power supply, in kWh. Its arithmetic square root is the standard deviation, in units of kW·h, divided by the mean. The result after It is a dimensionless quantity. An excessively large coefficient of variation indicates drastic load fluctuations within the window, amplifying the relative disturbance in the electricity data. Fourth, the condition number of the characteristic matrix. The ratio of the largest singular value to the smallest non-zero singular value of the characteristic matrix is a dimensionless quantity. , Let R be the maximum and minimum non-zero singular values of the feature matrix of the w-th time window (singular value definition is given in step S4), and R be the rank of the feature matrix. The larger the condition number, the closer the feature matrix is to singularity and the less stable the solution becomes.
[0016] When a time window satisfies ,or ,or ,or If any of the conditions are met, mark it as an abnormal window and exclude it. In the formula, The threshold for the number of days is 0.8 in this embodiment; For the line loss rate range, this embodiment takes... ; The coefficient of variation threshold is set to 0.6 in this embodiment; The condition number threshold is taken in this embodiment. The thresholds mentioned above are examples and can be adjusted according to the characteristics of the transformer area. The time windows retained after filtering constitute the effective window set. , The number of valid windows is a positive integer, and only valid windows participate in the subsequent two-stage solution and fusion.
[0017] Step S4, the first stage, involves truncating the singular value decomposition to find the initial error solution. For example... Figure 2 As shown, for the set of valid windows Each time window in the algorithm is solved independently. Due to the correlation of user load curves in different areas and the ill-conditioned nature of the characteristic matrix, direct inversion would drastically amplify observation noise along the small singular value direction. Therefore, the first stage employs truncated singular value decomposition, first performing singular value decomposition on the characteristic matrix: In the formula, The left singular vectors of the feature matrix of the w-th time window constitute... Orthogonal matrix The right singular vectors constitute Orthogonal matrix Singular values arranged on the diagonal matrix; Let be the first singular value of the feature matrix of the w-th time window, a non-negative scalar in kW·h, arranged in descending order. Its physical meaning is the magnification factor of the correction coefficient by the characteristic matrix in the first principal direction; , They are respectively with The corresponding left singular vector (L-dimensional unit column vector) and right singular vector (N-dimensional unit column vector) are both dimensionless; R is the rank of the characteristic matrix. , where is a positive integer; 1 is the singular value index, which is a positive integer not less than 1 and not greater than R. It should be noted that small singular values... In the corresponding direction, the observation noise passes through Amplification will dominate the solution, which is the root cause of pathological amplification.
[0018] Sum the squares of the singular values in descending order and calculate the cumulative energy percentage: In the formula, To retain the cumulative energy percentage for the first r singular values, let be a dimensionless scalar that takes values on a closed interval. Its numerator is the sum of the squares of the first r singular values, and its denominator is the sum of the squares of all singular values; both have the same unit. The result of the division is dimensionless, and r is the number of sums, a positive integer not less than 1 and not greater than R. The sequence number that causes the cumulative energy percentage to first reach the set proportion is taken as the truncation rank. In the formula, Let be the truncation rank of the w-th time window, which is a positive integer; Let be the energy percentage threshold, and be a dimensionless scalar with values in an open interval. In this embodiment, That is, the main singularity direction that carries more than 99% of all energy is retained; This indicates retrieving the minimum element from the set. Only elements with indices not greater than [a certain value] are retained. The singular values and their singular vectors are obtained, and the remaining components are discarded to reconstruct the initial error solution for this time window: In the formula, Let be the initial solution of the error for the w-th time window, and let be an N-dimensional dimensionless column vector, whose components are the initial estimates of the correction coefficients of the corresponding user's electricity meter. The dot product of the left singular vector and the observation vector, in units of kW·h, divided by the singular value. (Unit: kW·h) is followed by a dimensionless scalar, then multiplied by a dimensionless right singular vector. Therefore It is a dimensionless quantity. Since the upper bound of the summation is the truncated rank... Instead of full-rank R, the small singular values carrying noise are excluded, thus suppressing ill-conditioned amplification at the source and providing a stable initial solution for the second stage.
[0019] Step S5, the second stage, involves using a genetic algorithm to optimize and estimate the window error. For example... Figure 2As shown, although the truncated singular value decomposition solution in the first stage is stable, the truncation itself introduces bias, and the unconstrained correction coefficients fall within the physically feasible range. The second stage uses a genetic algorithm to perform global optimization within the neighborhood of the initial error solution. First, regularization parameters are trained independently for this time window to minimize the generalized cross-validation criterion for the regularized solution within that window. , In the formula, Let be the regularization parameters obtained during training in the w-th time window, where is a positive scalar and the unit is . ; Represents the positive real number that minimizes the subsequent expression. ; Take regularization parameters The Tikhonov canonical solution at time is an N-dimensional dimensionless column vector; The vector's L2 norm is the arithmetic square root of the sum of the squares of its components. The residual squared, in units of ; For regularization influence matrix, matrix; , These are the L-order and N-order identity matrices, respectively; The trace of a matrix is represented by the sum of its main diagonal elements. The regularization parameter is a dimensionless quantity representing the effective residual degrees of freedom. It should be noted that the regularization parameter is trained independently window by window because the ill-conditioning and noise levels of each window are different; a uniform value would result in underregulation in some windows and overregulation in others. To ensure the regularization parameter is dimensionally compatible with the residual term, Pick Dimensions, and thus with The elements have the same dimensions.
[0020] Subsequently, an initial population for the genetic algorithm is generated centered on the initial error solution within a preset error physical interval, with each individual representing a candidate correction coefficient vector. Its fitness is the reciprocal of the sum of the residual term and the regularization term:
[0021] In the formula, For candidate solutions The regularization target value at the w-th time window, in units of its first item To fit the residual terms and measure the deviation of candidate solutions from the energy conservation equation, the second term... The candidate solution is constrained by the prior knowledge that the correction coefficient should be close to 1 (i.e., the error should be close to zero) as a regularization term. It is an N-dimensional column vector in which all components are 1; The meaning is the same as above, and its unit is the same. To make the dimensions of the regularization term and the residual term consistent, the sum of the two terms is: ; The fitness of a candidate solution is denoted by , and a larger value indicates a better candidate solution. A normal number much smaller than the typical target value, in units of This is used to prevent fitness divergence when the target value approaches zero. The genetic algorithm operates within a preset error physical range. In the initial population, selection, crossover, and mutation are performed sequentially, retaining individuals with high fitness for the next generation. This process is repeated until fitness no longer significantly increases. The individual with the highest fitness in the last generation is denoted as the window correction coefficient solution for the w-th time window. In the formula, Let be the half-width of the error physical interval, and be a dimensionless positive scalar. In this embodiment, we take . This means constraining the relative error of each table to be within ±10%. By seeding the population around the initial solution and limiting the search range by the physical interval, it inherits the stability of truncated singular value decomposition and leverages the global search of the genetic algorithm to escape local optima and explicitly satisfy the physical constraints.
[0022] Finally, the window correction coefficients are converted into a window error estimate: In the formula, Let be the window error estimate of the i-th user's electricity meter in the w-th time window. It is a dimensionless scalar, with a positive value indicating that the meter is over-measured (over-measured) and a negative value indicating that the meter is under-measured (under-measured). Solution for window correction coefficients The i-th component is a dimensionless positive scalar. This formula is directly derived from the definition that the correction coefficient is the ratio of the actual electricity consumption to the metered electricity consumption: the actual electricity consumption equals the metered electricity consumption multiplied by the correction coefficient, therefore the relative error equals the ratio of the metered electricity consumption to the actual electricity consumption minus one, i.e., the reciprocal of the correction coefficient minus one. Both ends are dimensionless. Thus, each effective window independently provides a set of error estimates for the same batch of user electricity meters, i.e., one observation perspective.
[0023] Step S6, Window Quality Scoring. The reliability of different perspectives varies: some windows have small fitting residuals, all error estimates fall within the physical range, and the data is complete and stable; others are the opposite. To differentiate them in subsequent fusion, each effective window is scored from three dimensions: residuals, constraints, and data. The residual quality is determined by the relative fitting residuals obtained by substituting the window error estimate back into the subproblem: , In the formula, Let be the residual quality of the w-th time window, and be a dimensionless scalar with values in the open interval. ; The relative fitting residuals are given by , which is a dimensionless nonnegative scalar. The value within the square root represents the mean square of the daily residuals within the window, and its unit is . The square root result is the root mean square residual, in kW·h, divided by the average power supplied through the window. (Unit: kW·h) is dimensionless; Let be the residual sensitivity coefficient, and be a positive dimensionless scalar. In this embodiment, we take . ; It is an exponential function with the natural constant as its base. The smaller the residual, the better. The smaller The closer to 1, the better. The constraint quality is determined by the proportion of the window error estimate falling within the physical range. , In the formula, Let be the constraint quality for the w-th time window, be a dimensionless scalar, and take values within a closed interval. ; This is an indicator function that takes the value 1 if the condition within the parentheses is true, and 0 otherwise. The absolute value of the window error estimate, The physical width of the error interval is defined in the same way as in step S5. The more tables fall within this physical interval, the more physically consistent the solution within that window is, and the higher the constraint quality. Data quality is determined by the percentage of valid days and the coefficient of variation of the supplied electricity. , In the formula, Let be the data quality for the w-th time window, be a dimensionless scalar, and be a value within a closed interval. ; For the percentage of valid days, The coefficient of variation of the supplied power is the same as that in step S3. Here, is the fluctuation penalty coefficient, and is a positive dimensionless scalar. In this embodiment, we take . The more complete the data and the more stable the workload, the higher the data quality. A weighted geometric mean of the three factors is used to synthesize a window quality score: , In the formula, Let be the window quality score for the w-th time window, and let be a dimensionless scalar with values within a closed interval. ; , , Let each be a weighted index representing residual quality, constraint quality, and data quality, respectively, and all be positive dimensionless scalars that satisfy the following conditions: In this embodiment, , , The geometric mean is used here instead of the arithmetic mean because the geometric mean has a "veto" property: if the quality of any dimension approaches zero, the overall score is lowered, thus preventing a window from masking its serious deficiencies in other dimensions with a high score in a single dimension. The window quality scores are normalized over the set of valid windows to obtain the fusion weights: In the formula, Let be the fusion weight for the w-th time window, and be a dimensionless scalar with values within a closed interval. And satisfy ; The window index for summing the denominator, and the set of valid windows for traversal. .
[0024] Step S7, weighted median fusion. For example... Figure 3 As shown, for the same user's electricity meter, the window error estimates for each effective window constitute a set of weighted samples. This invention uses the weighted median instead of the weighted average for fusion. The weighted median is defined as the value that minimizes the sum of the weighted absolute deviations: , In the formula, Let be the error point estimate of the i-th user's electricity meter, and be a dimensionless scalar, i.e., the weighted median of the multi-window error estimate of the meter. Let v be the real number that minimizes the sum of the subsequent weighted absolute deviations; Let be the absolute value of the difference between the window error estimate and the candidate value, and be a dimensionless quantity. This is the fusion weight. Equivalently, after sorting the window error estimates in this table in ascending order of value, the weighted median is the window error estimate corresponding to the point where the cumulative fusion weight first reaches half of the total weight. Let the ascending order be denoted as... ,but Choose the one that satisfies the condition that "the sum of the weights of those preceding it does not exceed half, and the sum of the weights of those following it does not exceed half." .
[0025] The core advantage of the weighted median lies in its collapse point. The collapse point of an estimator is defined as the supremum of the proportion of samples that can be arbitrarily contaminated without causing the estimate to diverge into an unbounded state. For the weighted median, as long as there is no single sample with a weight that equals or exceeds half, its collapse point is: , In the formula, The collapse point of the weighted median fusion is a dimensionless scalar. This means that even if nearly half (by weight) of the effective window is incidentally contaminated, resulting in arbitrarily absurd window error estimates, the fused error point estimates remain bounded and stable; the fusion result may only go out of control when the sum of the weights of the contaminated windows reaches half. In contrast, the collapse point of the weighted average is zero; any sample stretched to infinity will cause the mean to diverge, which is the root cause of the sensitivity to incidental contamination in the mean-based moving average plus single-point solution in the background technique. To ensure that the collapse point of half actually holds, as defined in the claim, the fusion weight of any window is limited to less than half the sum of all fusion weights (when the quality score of a window is abnormally high, its weight is capped and then renormalized), thereby preventing a single window from dominating the fusion result. It can be seen that the window quality score is reused here as a weight of the weighted median, making high-quality perspectives contribute more to the point estimation and low-quality perspectives contribute less, while the collapse point ensures that even if individual high-weight perspectives are contaminated, the result will not be overturned.
[0026] Step S8, construct the confidence interval. For example... Figure 3 As shown, multiple weakly correlated perspectives not only provide robust point estimates, but their degree of dispersion naturally measures the uncertainty of the estimates. Based on this, the point estimation is upgraded to an interval estimation. First, the robust median absolute deviation is used to characterize the dispersion scale of each window error estimate around the point estimate: , In the formula, Let be the median absolute deviation of the error estimate of each window of the i-th user's energy meter relative to the error point estimate, and be a dimensionless non-negative scalar. This represents the (weighted) median of the values taken from the valid window set; This is the absolute value of the difference between the window error estimate and the error point estimate; Let be the robust discrete scale for estimating the error of the i-th user's electricity meter, and be a dimensionless nonnegative scalar. To convert the median absolute deviation to standard deviation, the proportionality constant is taken as a dimensionless positive scalar. This constant ensures that when the data approximately follows a normal distribution, the median absolute deviation, after conversion, provides an unbiased estimate of the standard deviation. Using the median absolute deviation instead of the sample standard deviation to characterize the discrete scale is to maintain consistency with the robustness of the weighted median and to avoid excessive amplification of the discrete scale by squaring individual contaminated windows, thereby artificially increasing the interval width.
[0027] Next, the number of effective windows is determined by the fusion weights, and the standard error of the error point estimate is calculated accordingly. , , In the formula, Let be the number of effective windows, and be a dimensionless scalar greater than or equal to 1, defined as the reciprocal of the sum of squares of the fusion weights (since the fusion weights have been normalized, it is equivalent to the Kish effective sample size). When the weights of each window are equal... Equals the actual number of valid windows; when the weights are significantly different. Less than the actual number; Let be the standard error of the error point estimation of the i-th user's electricity meter, and be a dimensionless non-negative scalar; This represents the arithmetic square root. Finally, using the point estimate as the center and the product of the 97.5th percentile of the standard normal distribution and the standard error as the half-width, a 95% confidence interval is constructed: In the formula, Let be the 95% confidence interval for the error of the i-th user's electricity meter, and be a dimensionless interval; Let be the 97.5th percentile of the standard normal distribution, and be a dimensionless constant. ; , The meaning is the same as described above; the two endpoints of the interval are also dimensionless, consistent with the dimensions of the error. The width of this interval is... In contrast, the interval width given by a single window is proportional to... Therefore, the width of the merged interval is approximately [a fraction of] the width of the single-window interval. In this embodiment, the number of effective windows is approximately 4, so the width of the confidence interval after fusion is approximately half that of a single window. This explains the gain of multi-view fusion in compressing uncertainty from a mechanistic perspective.
[0028] Step S9: Interval estimation output and downstream applications. For example... Figure 1 As shown, the error point estimation is performed on the output of each user's electricity meter within the distribution area. confidence interval Together, these two factors constitute the error interval estimate for the table. Inaccuracy is determined based on the interval estimate: when the absolute value of the lower bound of a table's confidence interval exceeds the inaccuracy determination threshold... If the time is not met, the table is deemed inaccurate. In the formula, The inaccuracy threshold is denoted as and is a dimensionless positive scalar. In this embodiment, is taken as . The inaccuracy threshold is set at ±2%. Using the lower bound of the confidence interval, rather than point estimates, in the judgment means that an inaccuracy is only declared when the estimate is confidently beyond the limit, avoiding false alarms caused by a single point estimate just exceeding the limit. The inaccuracy tables are sorted from largest to smallest absolute value of the error point estimate to establish a priority replacement order. Finally, the error point estimates, confidence intervals, and inaccuracy judgment results of each table are input into the large-scale power metering model. The model, combined with the transformer area topology, asset ledger, and historical operating conditions, outputs a distribution profile of the transformer area metering error and priority management recommendations, thus transforming stable error interval estimates into actionable metering operation and maintenance decisions.
[0029] The predicted line loss rate used in step S2 for the observation vector Combined with the observed line loss rate used for diagnosis in step S3 A strict distinction should be made to avoid circular dependencies. Predict line loss rate. The line loss prediction is provided by an independent process, whose inputs include transformer area topology parameters, conductor specifications, historical theoretical line loss curves, and the current day's load level. It does not use the sum of the current day's metered electricity consumption, thus ensuring the accuracy of the observation vector. The data does not implicitly contain information about the correction coefficients to be determined; however, the observed comprehensive line loss rate... The result is calculated directly from the difference between the measured power supply and the measured power consumption by the user, and is used solely for the diagnostic purpose of filtering out abnormal windows. The two processes have a clear division of labor: the former is used to solve the equation, while the latter only performs a data check. It is important to emphasize that if there is a systematic bias in the line loss prediction itself, its impact will be reflected in the common shift of the error estimates for each window. However, since the inaccuracy determination focuses on the relative error differences between the tables and whether they exceed the limits, and the confidence interval reflects the degree of dispersion in the estimation, a moderate bias in line loss prediction will not overturn the method's identification and ranking of inaccurate tables.
[0030] The regularization parameters for each window are independently selected through generalized cross-validation, and the search is performed on a logarithmic scale: within a preset candidate interval for regularization parameters, several candidate values are selected at logarithmic intervals; for each candidate value, a generalized cross-validation criterion is calculated, and the value with the smallest criterion is taken as the regularization parameter for that window. The population size, crossover probability, mutation probability, etc., of the genetic algorithm are set as usual, and the initial population is based on the error initial solution. The system generates individuals centered on random perturbations falling within the physical region, with individual encodings being real-valued codes of the correction coefficient vector. Tournament selection is used, simulated binary crossover is employed, and polynomial mutation is used, with truncation and correction for components exceeding the physical region. The iteration terminates when the relative improvement of the optimal fitness over several consecutive generations falls below a set tolerance, or when the maximum number of generations is reached. It's important to note that the genetic algorithm here does not aim for a smaller objective value than the closed-form regularized solution, but rather seeks a solution that balances residuals and regularization within the feasible region satisfying the physical region constraints. Its value lies in explicitly handling the error physical constraints that the closed-form solution might violate and reducing dependence on the initial solution through global search.
[0031] The reason why the weighted median has a 50% collapse point is intuitively because the median is determined by the "positional order" of the samples rather than their "numerical size": pushing less than half of the samples to infinity does not change the sample value corresponding to the median position. This property makes multi-view fusion structurally immune to occasional contamination, rather than relying on the prior identification and removal of contaminants. However, this property holds true only if there is no single window with a weight exceeding half. If a window's weight exceeds half, then that window alone can determine the median position, and the collapse point degenerates to zero. To address this, this invention caps the fusion weights, ensuring that the weight of any window is less than half of the total weight, thus maintaining the 50% collapse point even in the worst-case scenario. Here, window quality scoring and weight limiting work together: scoring gives higher-quality perspectives greater influence to improve accuracy, while weight limiting prevents excessive concentration of influence to maintain robustness. Together, they ensure that the fusion is both accurate and stable.
[0032] The confidence interval width after fusion is approximately half that of a single window, stemming from the statistical law that the standard error decreases with the square root of the number of effective windows. A single window can only estimate uncertainty based on its own residual level, and its interval width is dominated by the noise within that window; while multi-view fusion aggregates information from multiple weakly correlated perspectives, thus mitigating the sampling fluctuations in error point estimation. Compression is multiplied. It should be noted that, due to the significant temporal overlap between adjacent windows and their non-complete independence, the number of effective windows is [increased / decreased]. The interval shrinkage is usually less than the actual number of windows, so the shrinkage is slightly less than that of the ideal independent case, but it can still bring about half the width compression. This is consistent with the setting of "weakly correlated perspective". Overlapping ensures that the perspectives are comparable, and weak correlation ensures that the information is complementary.
[0033] Example 1: Robust estimation under occasional pollution window.
[0034] Taking a user's electricity meter in a low-voltage distribution area with a true relative error of 5% (long-term over-metering) as an example, the data collection period is 90 days, and nine time windows are generated with a step size of 7 days and a window length of 30 days. Eight of these windows cover stable and well-fitted electricity data, with their window error estimates concentrated between 4.5% and 5.5%. However, the fifth window happens to cover a temporary wiring operation that lasted for several days, causing a systematic shift in the metered electricity consumption. This contamination was not identified by the quartile preprocessing, resulting in a distortion of the window error estimate for the fifth window to 18%. If the mean-based fusion method of the background technique is used, the distortion value of the fifth window will raise the fusion result to approximately 6.5%, producing a significant deviation. However, with the weighted median fusion method of this invention, since the eight normal windows occupy the vast majority of the weights and the contaminated window accounts for only one, the error point estimate stably converges to around 5.0%, almost unaffected by the contaminated window. Furthermore, this method provides a 95% confidence interval for the table, approximately +4.2% to +5.8%, with a width roughly half that of a single-window interval. Based on this, users can confidently determine that the table has overstated by approximately 5% and has exceeded the ±2% inaccuracy threshold. This embodiment demonstrates that multi-view robust fusion possesses structural immunity to occasional contamination falling into individual windows.
[0035] Example 2: Stability under multi-window contamination caused by intermittent failures.
[0036] Taking a user's electricity meter in a certain distribution area with a true relative error of -4% (long-term underreporting) as an example, the secondary circuit of its connected current transformer has poor contact, resulting in two intermittent current loss periods during the data acquisition cycle. These two periods fall into two of the nine windows, distorting the window error estimates for these two windows. Since there are two contaminated windows, accounting for less than half of the nine windows, the half-collapse point of the weighted median fusion ensures that the fusion result is not dominated by it. The error point estimate remains stable near -4%, and the absolute value of the lower bound of the confidence interval exceeds the inaccuracy threshold. The meter is correctly identified as inaccurate and enters the priority replacement sequence. In contrast, if the background technology solves exactly on the statistical interval containing the current loss period, its single-point estimate will be severely biased. Even if its moving average can mitigate some of the impact, the zero collapse point of the mean-based aggregation cannot remain stable when two contamination periods overlap, and it cannot provide an interval to indicate the uncertainty of the estimate. This embodiment illustrates that even if the contamination spans multiple windows, as long as its proportion is less than half, this method can still provide a stable and quantifiable error estimate.
[0037] On a dataset containing artificially injected sporadic contamination windows and different noise levels in transformer substations, this invention is compared with the mean-based moving average plus single-point least squares method represented by patent application CN117851908B, which has a zero collapse point. The results show that as the proportion of contaminated windows gradually increases from zero to nearly half, the error estimation bias of the mean-based method increases approximately linearly and rapidly exceeds the acceptable range. In contrast, the error estimation bias of this invention remains low for a long period, only showing a significant change when the contamination proportion approaches half, verifying the structural robustness advantage brought by the half-collapse point. Under the same noise level, the 95% confidence interval width of this invention is approximately half that of the single-window method, and the interval's coverage of the true error is close to the nominal confidence level, verifying the effectiveness of uncertainty quantification.
[0038] To further verify the contributions of each technical feature, this embodiment also conducted ablation comparisons. First, when the second-stage genetic algorithm is removed and only the truncated singular value decomposition solution is used as the window error estimate, due to the lack of explicit constraints on the physical interval and global optimization, the error estimates of some windows exceed the physical interval, resulting in decreased window accuracy. Consequently, the point estimation accuracy after fusion also decreases, indicating that the genetic algorithm is indispensable in the two-stage solution. Second, when multi-window generation is retained but the weighted median is replaced with a weighted average, the fusion result is significantly skewed by contaminated windows in scenarios containing contaminated windows, leading to a substantial degradation in robustness. This indicates that the high collapse point of the weighted median is a key source of robustness. Third, when the sliding window multi-view generation is removed and the solution degenerates to a single complete window, both immunity to occasional contamination and the inability to construct confidence intervals based on multi-view distributions are lost, resulting in the simultaneous loss of estimation stability and credibility assessment capabilities. Fourth, when window quality scoring is removed and windows are fused with equal weight, low-quality windows and high-quality windows have equal influence, leading to a decrease in both point estimation accuracy and interval reliability. The four ablation results collectively demonstrate that the sliding window multi-view generation, two-stage window-by-window solution, fusion of window quality score and weighted median, and confidence interval construction are mutually supportive and indispensable. This further confirms that the synergistic gains formed by each step around the window quality score are not simply independent superpositions.
[0039] The main computational burden of this method lies in window-by-window singular value decomposition (SVD) and genetic algorithm optimization. The computational burden of SVD is related to the size of the window feature matrix, while the computational burden of the genetic algorithm is related to the population size, the number of iterations, and the number of user tables. Since the solutions for each window are independent, they can be processed in parallel in a multi-core or distributed environment, thereby compressing the total time to the level of a single-window solution. Weighted median fusion and confidence interval construction only involve sorting, accumulation, and a few scalar operations, with extremely low computational cost. Therefore, this method can be deployed in cloud-based batch analysis services for large-scale econometric models to periodically perform error estimation and inaccuracy screening for massive numbers of transformer substations, or it can be run on edge computing units at the transformer substation side with a lightweight configuration, demonstrating good engineering feasibility. Compared to background techniques that only solve a single system of equations, although this method increases the computational burden due to multi-window solutions, it gains immunity to occasional contamination and the ability to quantify uncertainty. Furthermore, parallelization makes the additional overhead controllable, resulting in significant cost-effectiveness.
[0040] The various steps of this invention form a closed-loop data flow with front-to-back coupling and end-to-end feedback. The daily power input and daily power metering obtained in step S1 are organized into observation vectors and feature matrices in step S2, respectively, and used to calculate filtering indicators in step S3, both yielding actual consumption. The multiple time windows generated in step S2 are filtered into a set of effective windows in step S3. The effective windows output in step S3 are subjected to window-by-window singular value decomposition in step S4, and the byproduct singular values are fed back to step S3 for condition number calculation, forming a local coupling. The initial error solution output in step S4 is used as the population center of the genetic algorithm in step S5. The window error solution output in step S5... The difference estimate and fitting residual are used for window quality scoring in step S6, as samples for weighted median fusion in step S7, and for calculating the discrete scale in step S8. The window quality score output in step S6, after being normalized to the fusion weights, determines the weighted median in step S7 and the effective window number in step S8 through the sum of squared weights, and is consumed in three places. The error point estimate output in step S7 is used as the interval center in step S8 and for inaccuracy judgment and priority ranking in step S9. The confidence interval output in step S8 is used to determine inaccuracy based on the lower bound of the interval in step S9. More importantly, the inaccuracy judgment in step S9 and the interval width in step S8 can trigger closed-loop feedback on the data side: when the confidence interval of a table is too wide, i.e., the uncertainty is too high, the system can extend the data acquisition cycle of that area or increase the sample to generate more perspectives, thereby narrowing the interval in the next round of estimation. The uncertainty evaluation at the end drives the data acquisition at the front end, forming a closed loop of "multi-perspective generation → robust fusion → uncertainty quantification → on-demand additional acquisition → regeneration of more perspectives". It is this closed loop that allows the accuracy and reliability of error estimation to continuously improve with the accumulation of data, rather than remaining fixed after a single solution.
[0041] The mechanism revealed in this invention, which involves "reversing single-window, single-point refinement into multi-perspective robust fusion with uncertainty quantification," is not limited to a single model of power line loss equations, nor is it limited to a single robust estimator like the weighted median. For transformer substation scenarios with more physical constraints (such as reactive power balance and three-phase imbalance), corresponding constraints can be incorporated into the sub-problems of each perspective, constructing a richer feature matrix. For scenarios requiring higher collapse points or stronger resistance to skewness, the weighted median can be replaced with other robust estimators with high collapse points, while the fusion framework remains unchanged. Furthermore, the length and step size of the sliding window can be adjusted periodically according to the transformer substation load, and the dimensions of the window quality score can be added or removed based on data availability. Therefore, this invention provides a general framework for achieving stable error estimation and quantifying its uncertainty through multi-perspective robust fusion, exhibiting good scalability.
[0042] It should be noted that the number of user tables N, the number of days in the collection period D, the window length L, and the sliding step size in the above embodiments are all specified. Energy percentage threshold Error physical interval half-width Sensitivity and weighting coefficients, and inaccuracy judgment thresholds. The values provided are merely examples, and those skilled in the art can adjust them within a reasonable range according to actual measurement scenarios without departing from the scope of protection of this invention. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this invention should be included within the scope of protection of this invention.
Claims
1. A method for stable estimation of electricity meter error based on sliding window multi-view fusion, characterized in that, The method includes: Obtain the daily power supply of the electricity meter at the junction of the distribution area and the daily metered power of each user's electricity meter within the distribution area; Within the data acquisition period, multiple overlapping time windows are slidably extracted with a set step size. The daily metered electricity within each time window is organized into a feature matrix, and the daily supplied electricity is organized into an observation vector after line loss correction, thus constituting the error solving subproblem of the time window. For each time window, a two-stage solution is performed independently: the first stage involves truncating singular value decomposition, retaining singular values whose cumulative energy reaches a set proportion and discarding the rest, to obtain the initial error solution for the time window; the second stage uses the fitness of the combined residual and regularization terms, and iteratively optimizes the initial error solution using a genetic algorithm to obtain the window error estimate for the time window. For each time window, a window quality score is calculated based on the residual quality, constraint quality, and data quality of the time window. For the same user's electricity meter, the window error estimation is performed in multiple time windows, and the error point estimation of the user's electricity meter is obtained by weighting the window quality score as the weight and then fusing the median. A confidence interval is constructed based on the distribution of window error estimates of the same user's electricity meter across multiple time windows. The error point estimate and the confidence interval are used together as the error interval estimate output of the user's electricity meter.
2. The method for stable estimation of electricity meter error based on sliding window multi-view fusion according to claim 1, characterized in that, The method of sliding and capturing multiple overlapping time windows with a set step size within the data acquisition period includes: The sliding step size of adjacent time windows is set to seven days, and the length of the time window is set to be greater than the sliding step size, so that adjacent time windows partially overlap in time and the number of overlapping days is greater than the sliding step size. Starting from the beginning of the data acquisition cycle, the beginning date of each time window is determined sequentially according to the sliding step size, until the end of the time window reaches the end of the data acquisition cycle, resulting in multiple time windows that overlap and cover the data acquisition cycle in time.
3. The method for stable estimation of electricity meter error based on sliding window multi-view fusion according to claim 2, characterized in that, Before performing the two-stage solution for each time window, the process also includes filtering out abnormal windows from the multiple time windows: For each time window, the effective number of data collection days, the overall line loss rate, the coefficient of variation of the daily power supply, and the condition number of the feature matrix are determined respectively within the time window. When the effective collection days of a time window are less than the number of days threshold, or the observed comprehensive line loss rate exceeds the line loss rate range, or the coefficient of variation of the daily supplied electricity is higher than the coefficient of variation threshold, or the condition number of the feature matrix is higher than the condition number threshold, the time window is marked as an abnormal window and excluded, and only the remaining time windows are retained for subsequent solutions.
4. The method for stable estimation of electricity meter error based on sliding window multi-view fusion according to claim 3, characterized in that, The first stage obtains the initial error solution for the time window by truncating singular value decomposition, including: Singular value decomposition is performed on the feature matrix of the time window to obtain multiple singular values arranged in descending order and the left and right singular vectors corresponding to each singular value. The squares of the singular values are accumulated sequentially in descending order, and the cumulative energy ratio of the accumulated sum of squares of singular values to the total sum of squares of all singular values is calculated. The singular value index that makes the cumulative energy ratio reach a set proportion for the first time is taken as the truncation rank. Only singular values whose index is not greater than the truncated rank and their corresponding left and right singular vectors are retained, while the components corresponding to the remaining singular values are discarded. The initial error solution of the time window is reconstructed from the retained components.
5. The method for stable estimation of electricity meter error based on sliding window multi-view fusion according to claim 4, characterized in that, The second stage obtains the window error estimate of the time window through a genetic algorithm, including: Train regularization parameters independently for the time window to minimize the generalized cross-validation criterion of the regularization solution determined by the regularization parameters on the time window; An initial population is generated within a preset error physical interval, centered on the initial error solution. The fitness is the reciprocal of the sum of the residual term between the product of the feature matrix and the error to be solved and the observation vector, and the sum of the regularization term weighted by the regularization parameter. The initial population is subjected to selection, crossover and mutation in sequence. Individuals with high fitness are retained to enter the next generation. The iteration continues until fitness converges, and the individual with the highest fitness is used as the window error estimate of the time window.
6. The method for stable estimation of electricity meter error based on sliding window multi-view fusion according to claim 5, characterized in that, The calculation of the window quality score based on the residual quality, constraint quality, and data quality of the time window includes: The residual quality is determined by the magnitude of the residual obtained by substituting the window error estimate back into the error solution subproblem; the smaller the residual, the higher the residual quality. The constraint quality is determined by the proportion of user electricity meters that fall within the preset error physical range in the window error estimation; the larger the proportion, the higher the constraint quality. The data quality is determined by the coefficient of variation between the effective number of collection days in the time window and the daily power supply. The more effective collection days and the smaller the coefficient of variation, the higher the data quality. The weighted geometric mean of the residual quality, the constraint quality, and the data quality is used as the window quality score for the time window.
7. The method for stable estimation of electricity meter error based on sliding window multi-view fusion according to claim 1, characterized in that, The weighted median fusion based on the window quality score includes: The window quality scores of each time window are normalized and used as the fusion weight of the corresponding time window, and the fusion weight of any time window is limited to less than half of the sum of the fusion weights of all time windows. The window error estimates of the same user's electricity meter in each time window are arranged in ascending order of value. A window error estimate is selected such that the sum of the fusion weights corresponding to the window error estimates before it does not exceed half of the total weight, and the sum of the fusion weights corresponding to the window error estimates after it does not exceed half of the total weight. The window error estimate is then used as the error point estimate of the user's electricity meter.
8. The method for stable estimation of electricity meter error based on sliding window multi-view fusion according to claim 1, characterized in that, The construction of confidence intervals based on the distribution of window error estimates for the same user's electricity meter across multiple time windows includes: The robust discrete scale of the user's energy meter error estimate is obtained by multiplying the median of the absolute deviation of each window error estimate relative to the error point estimate by the proportionality constant that converts the median absolute deviation to the standard deviation. The number of effective windows is determined by the fusion weights of each time window, and the standard error of the error point estimate is obtained by dividing the robust discrete scale by the square root of the number of effective windows. Using the error point estimate as the center and the product of the 97.5 percentile of the standard normal distribution and the standard error as the half-width, a confidence interval with a confidence level of 95 percent is constructed.
9. The method for stable estimation of electricity meter error based on sliding window multi-view fusion according to claim 1, characterized in that, The step of organizing the daily power supply into an observation vector after line loss correction includes: The predicted line loss rate of the transformer area is obtained for each day. The difference between the daily power supply and the predicted line loss rate of the corresponding day is multiplied by one and used as the components of the observation vector. The feature matrix is set so that each row corresponds to a day and each column corresponds to a user's electricity meter, and the cross element of the row and column is the daily electricity consumption of the corresponding user's electricity meter on the corresponding day. Each component of the window error estimation is calculated from the correction coefficient of the corresponding user's electricity meter. The correction coefficient is the ratio of the actual electricity consumption to the metered electricity consumption of the corresponding user's electricity meter. The corresponding component of the window error estimation is equal to the reciprocal of the correction coefficient minus one.
10. The method for stable estimation of electricity meter error based on sliding window multi-view fusion according to claim 1, characterized in that, The method further includes: For each user's electricity meter, when the absolute value of the lower bound of the confidence interval of the user's electricity meter exceeds the inaccuracy judgment threshold, the user's electricity meter is determined to be inaccurate, and the priority replacement order is determined according to the absolute value of the error point estimate of each inaccurate user's electricity meter from large to small. The error point estimation, confidence interval, and inaccuracy judgment results of each user's electricity meter are input into the large-scale power metering model to obtain the metering error distribution and priority management suggestions for the transformer area.
Citation Information
Patent Citations
An improved method and device for monitoring inaccuracy of electric energy meters in online low-voltage areas
CN117851908B
