A method and device for calibrating smart meter data time scale based on temporal analysis

Through the smart meter data time scale calibration method based on temporal analysis, the problem of high cost and low efficiency of smart meter time error calibration is solved, high-precision time state estimation and operation and maintenance efficiency improvement are achieved, ensuring the accuracy of smart meter data. Time scale synchronization.

CN114779154BActive Publication Date: 2024-09-17TIANJIN UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210262977.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-03-17
Publication Date
2024-09-17
Estimated Expiration
2042-03-17

AI Technical Summary

Technical Problem

The existing time error calibration method of smart meters is costly and inefficient, and cannot effectively determine the time scale deviation of smart meter data, resulting in errors in smart meter operating status monitoring and the lack of targeted and efficient abnormality troubleshooting methods.

Method used

The smart meter data time scale calibration method based on temporal analysis is used to obtain the smart meter error estimation data, build a time error state model, perform correlation analysis and estimation, select elements within the time error excess threshold, and determine the temporal estimate. Whether the elements in the matrix are in the out-of-tolerance meter set, dispatch operation and maintenance personnel to check on-site to avoid on-site time correction and additional equipment installation.

Benefits of technology

It achieves high-precision smart meter time status estimation, improves operation and maintenance efficiency, reduces smart meter verification costs, promptly discovers and calibrates smart meters with advanced or lagging time scales, and ensures data quality and time scale synchronization.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114779154B
    Figure CN114779154B
Patent Text Reader

Abstract

The present invention discloses a smart meter data time-scale calibration method and device based on temporal analysis, the method comprising: obtaining smart meter error estimation data and initializing; constructing a smart meter time error state model, and performing correlation analysis and estimation on the smart meter time error; selecting elements within the time error excess threshold as an excess meter set, and judging whether the elements in the investigated temporal estimation matrix are in the excess meter set; if so, the temporal credibility of the smart meter corresponding to the temporal estimation matrix element is high, and the smart meter may have a time error of the multiplier corresponding to the temporal estimation matrix element; dispatching operation and maintenance personnel to the site for inspection; if not, the temporal credibility of the smart meter corresponding to the temporal estimation matrix element is low, and the smart meter does not have a time error. The device comprises: a processor and a memory. The present invention can realize the time state estimation of each user's smart meter in the substation area under the premise of avoiding on-site time calibration and additional installation of equipment.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of smart electric meters, and in particular to a smart electric meter data time-scale calibration method and device based on temporal analysis. Background Art

[0002] With the comprehensive construction of the electricity information collection system, the traditional manual meter reading method has been replaced by automatic collection. While reducing the workload of manual on-site meter reading, it also reduces the cost of on-site inspections of the operating conditions of electricity metering devices. As a metering tool for users' electricity consumption, the operating reliability of smart meters not only affects the operating income of power grid companies, but also directly affects the actual interests of thousands of households. In order to strengthen the dynamic management of the substation and improve the service level of the power grid, it is imperative to explore an efficient and accurate remote diagnosis method for the operation error of smart meters. The status monitoring of traditional smart energy meters was first achieved by adding online monitoring equipment to detect the voltage, current, power, load, power and other data of the metering device and secondary circuit online, so as to realize online error monitoring and alarm of the monitoring target. Although this method improves work efficiency, it brings about an increase in equipment procurement and operation and maintenance costs.

[0003] In the above background, big data analysis technology can be used to study the statistical laws of the total meter electricity and each sub-meter electricity in the same substation from multiple dimensions such as substation collection conditions, household-transformer relations, electricity consumption, and network losses based on the data of substation user electricity consumption, total meter electricity in the substation, network losses, user files, and household-meter relationships in the electricity information collection system. A smart meter time error analysis model can be established to represent the time status of each smart meter in the substation, and the operating health status of all smart meters in the substation can be obtained. Remote evaluation of smart meter time errors can be achieved, providing effective technical means for electricity inspection work, overcoming the current bottleneck of large manual investigation workload and lack of targetedness, timely discovering suspected metering points with abnormal operation, realizing efficient and accurate on-site investigation, and carrying out targeted on-site inspections and abnormal investigations of smart meters.

[0004] At present, power workers have achieved some results in the research on remote status monitoring of smart meters. Most of these methods are aimed at the numerical error of smart meters, but no identification is made for the time error of smart meters. For example, there is a patent "A meter box and system that can realize online estimation of smart meter errors" (patent number: CN201910992342.9). However, this type of smart meter numerical error estimation method has the following problems: (1) The data collection quality of the low-voltage distribution station area is not high. The smart meter may have time deviations in the collected data due to communication delays, aging of the meter's own clock battery, etc., resulting in the inability to estimate the numerical error of the smart meter; (2) If the impact of the smart meter time error is to be reduced, it is often necessary to calibrate the smart meter. At present, there are two methods for time calibration of smart meters: on-site calibration and remote calibration: on-site calibration has a high cost and low efficiency; remote calibration sends a calibration signal through the master station to calibrate the clock of the user's sub-meter. Although the remote calibration method can ensure that the calibrated clock does not deviate, it cannot determine the specific deviation of the smart meter data time stamp.

[0005] In response to the above problems, it is necessary to judge the data quality under the existing metering conditions, select a data set suitable for the smart meter error, and use big data analysis methods to estimate the time status of each smart meter in the distribution area without installing additional equipment. This provides a basis for remote estimation of smart meter numerical errors and other real-time business applications, helps to realize the transformation of smart electricity meters from periodic replacement to status replacement, and can promptly discover suspected abnormal metering points, overcome the current bottleneck of large manual inspection workload and lack of specificity, and provide support for efficient electricity inspection. Summary of the invention

[0006] The present invention provides a method and device for calibrating the time scale of smart meter data based on temporal analysis. The present invention can realize the time state estimation of smart meters of each user in the substation area without on-site time calibration and additional installation of equipment, and has high accuracy and engineering applicability. See the following description for details:

[0007] In a first aspect, a smart meter data time-scale calibration method based on temporal analysis is provided, the method comprising:

[0008] Obtain smart meter error estimation data and initialize it;

[0009] Construct a smart meter time error state model to perform correlation analysis and estimation on the smart meter time error;

[0010] Selecting elements within the time error tolerance threshold as the set of out-of-tolerance electric meters, and judging whether the elements in the temporal estimation matrix under investigation are in the set of out-of-tolerance electric meters;

[0011] If yes, the temporal credibility of the smart meter corresponding to the temporal estimation matrix element is high, and the smart meter may have a time error corresponding to the factor of the temporal estimation matrix element; the operation and maintenance personnel are dispatched to the site for inspection, and the process ends;

[0012] If not, the temporal credibility of the smart meter corresponding to the temporal estimation matrix element is low, the smart meter has no time error, and the process ends.

[0013] Wherein, obtaining smart meter error estimation data includes:

[0014] Acquisition of static data, acquisition of dynamic data, and calculation of correlation coefficients between phase-by-phase active power and the sum of phase-by-phase active power by using correlation analysis;

[0015] If the correlation coefficient is greater than 0.9, it indicates that the data quality meets the requirements of remote estimation of smart meter errors, and then the next step of initializing remote estimation of smart meter errors is entered; otherwise, new dynamic data is obtained again.

[0016] Furthermore, the time error state model of the smart meter is:

[0017]

[0018] Among them, L true (T set (t mid )) is T set (t mid ) is centered at time T total -2K L true (T set (t)) is the actual loss column vector, T set is the measurement timestamp column vector, K is the maximum time error multiplier, t mid is the measurement median timestamp, Δt is the measurement time interval, T total is the total number of measurements, L true (T set (t)) is T set (t) The actual network loss in the substation at time t.

[0019] The correlation analysis and estimation of the time error of the smart meter are specifically as follows:

[0020] The time state matrix is ​​constructed according to the principle of permutation and combination, and the mapping is constructed by using the correlation coefficient calculation method to map the high-dimensional time state matrix to the low-dimensional correlation coefficient set;

[0021] The maximum correlation threshold percentage is set to obtain the maximum correlation set; the temporal estimation matrix is ​​calculated based on the maximum correlation state set.

[0022] Furthermore, the temporal estimation matrix is:

[0023]

[0024] In the formula, X Σ_n For X Σ The nth column vector of represents the time error state estimation column vector of the nth user, which has 2K+1 rows: X Σ_n =[X Σ_n (-K),…,X Σ_n (k),…,X Σ_n (K)] T ;X Σ_n (k ) For X Σ_n The elements in the K+1+kth row of represent the possibility count that the time error multiplier of the nth user's smart meter is k.

[0025] In a second aspect, a smart meter data time-stamp calibration device based on temporal analysis is provided, the device comprising: a processor and a memory, the memory storing program instructions, the processor calling the program instructions stored in the memory to enable the device to perform any method steps described in the first aspect.

[0026] The beneficial effects of the technical solution provided by the present invention are:

[0027] (1) The present invention can automatically identify and improve data quality, eliminate data sets that cannot be used for remote state detection of smart meter errors, and pre-process the data to ensure the correctness of the household-to-variable relationship, providing a good data basis for remote state detection of smart meters. At present, the existing technology does not consider the problem of data quality, but in actual situations, phenomena such as time-stamp misalignment, null values, and bad values ​​of data are very common. Even if the master station deploys a data acquisition system, it is difficult to fully obtain a data set that is suitable for remote state detection of smart meter errors. Therefore, based on correlation analysis, the present invention proposes a basis for data quality identification, greatly optimizes the data basis of the algorithm, and improves the success rate of remote state detection of smart meter errors.

[0028] (2) The present invention can realize remote analysis and estimation of time errors of smart meters, which can greatly improve the operation and maintenance efficiency of smart meters.

[0029] At present, most electricity consumption information collection systems send calibration signals through the main station to calibrate the clock of the user's smart meter, and the frequency is generally once a month. Although this master station time calibration method can ensure that there is no time difference within a certain period of time after calibration, it is impossible to determine the specific time deviation of each smart meter, and it is also impossible to determine whether the collected data has a data time deviation. Therefore, a new method is needed to determine the specific time difference of each meter to ensure the synchronization of meter data time. The technical solution proposed in the present invention is a smart meter data time calibration method based on big data analysis. This method only needs to read the measurement data from the measurement data management system and automatic data collection system of the main station and then perform computer modeling and solution. It basically does not require additional investment and operation and maintenance, and can timely discover and calibrate smart meters with advanced or lagging time scales to achieve the unification of the smart meter data time axis. In the periodic calibration of large-scale smart meters, this method can pre-locate suspicious metering points, and then dispatch operation and inspection personnel in a targeted manner, thereby greatly reducing the cost of smart meter calibration. BRIEF DESCRIPTION OF THE DRAWINGS

[0030] Figure 1 It is a flow chart of a smart meter data time-stamp calibration method based on temporal analysis;

[0031] Figure 2 The following is a schematic diagram of the typical topology and quantity measurement of the applicable area;

[0032] Figure 3 A schematic diagram of a case study for building a time error state model for a smart meter containing seven measurement timestamp data;

[0033] Figure 4 It is a schematic diagram of the calculation results of the correlation coefficient set R;

[0034] Figure 5 is the maximum correlation coefficient set R max Schematic diagram of calculation results;

[0035] Figure 6 is the temporal estimation matrix X based on the actual area measurement data Σ Schematic diagram of calculation results;

[0036] Figure 7 is the temporal estimation matrix X based on the actual area measurement data Σ Schematic diagram of the selection results of medium and ultra-differential electric meters (X Σhold =1.5%);

[0037] Figure 8 It is a structural schematic diagram of a smart meter data time-stamp calibration device based on temporal analysis. DETAILED DESCRIPTION

[0038] In order to make the objectives, technical solutions and advantages of the present invention more clear, the embodiments of the present invention are described in further detail below.

[0039] Example 1

[0040] In order to meet the existing measurement conditions and operation system, the embodiment of the present invention provides a smart meter data time calibration method based on temporal analysis. Under the premise of avoiding on-site time calibration and additional installation of equipment, the present invention realizes the time state estimation of each user's smart meter in the substation area, with high accuracy and engineering applicability. Figure 1 , Figure 2 and Figure 3 , the method comprises the following steps:

[0041] 101: Obtain smart meter error estimation data and initialize;

[0042] 102: Construct a smart meter time error state model, and perform correlation analysis and estimation on the smart meter time error;

[0043] 103: Selecting elements within the time error tolerance threshold as a set of out-of-tolerance electric meters, and determining whether the element in the temporal estimation matrix under investigation is in the set of out-of-tolerance electric meters;

[0044] 104: If yes, the temporal credibility of the smart meter corresponding to the temporal estimation matrix element is high, and the smart meter may have a time error corresponding to the multiplier of the temporal estimation matrix element; dispatch an operation and maintenance personnel to the site for inspection, and the process ends;

[0045] 105: If not, the temporal credibility of the smart meter corresponding to the temporal estimation matrix element is low, and the smart meter has no time error, and the process ends.

[0046] Wherein, obtaining smart meter error estimation data in step 101 includes:

[0047] Acquisition of static data, acquisition of dynamic data, and calculation of correlation coefficients between phase-by-phase active power and the sum of phase-by-phase active power by using correlation analysis;

[0048] If the correlation coefficient is greater than 0.9, it indicates that the data quality meets the requirements of remote estimation of smart meter errors, and then the next step of initializing remote estimation of smart meter errors is entered; otherwise, new dynamic data is obtained again.

[0049] The correlation analysis and estimation of the time error of the smart meter in step 102 is specifically as follows:

[0050] The time state matrix is ​​constructed according to the principle of permutation and combination, and the mapping is constructed by using the correlation coefficient calculation method to map the high-dimensional time state matrix to the low-dimensional correlation coefficient set;

[0051] The maximum correlation threshold percentage is set to obtain the maximum correlation set; the temporal estimation matrix is ​​calculated based on the maximum correlation state set.

[0052] In summary, the embodiment of the present invention can achieve time state estimation of smart meters of each user in the substation area by avoiding on-site time calibration and additional equipment installation through the above steps 101-105, with high accuracy and engineering applicability.

[0053] Example 2

[0054] The scheme in Example 1 is further introduced below in combination with specific calculation formulas and examples, as described below for details:

[0055] Step 201: Obtain smart meter error estimation data;

[0056] Wherein, the step 201 includes:

[0057] Step 2011: Obtaining static data, that is, obtaining the following information:

[0058] (1) Smart meter information: including: the total number of smart meters of users in the area m, and the smart meter number n∈[1,2,…,m];

[0059] (2) Main electrical characteristic parameters related to the topological architecture of the substation network, including: power supply radius, total length of low-voltage lines, household transformer relationship, phase transformer relationship, etc.;

[0060] (3) Main electrical characteristic parameters related to the load, including: load rate, power consumption nature and proportion.

[0061] Step 2012: acquiring dynamic data, i.e. acquiring electric energy metering data with time stamps and sorted by time;

[0062] In which, let t∈[1,2,…,T total ] is the measurement timestamp index, which is equivalent to the primary key in the database table; T total =card(T set ) is T set The total number of elements in the set, card(.) indicates the number of elements in the set; T set To measure the timestamp column vector, the elements, i.e., each timestamp, must be arranged in chronological order from top to bottom; T set (t) represents T set The timestamp of the tth row of the grid is shown in Figure 1. Δt is the time interval between two adjacent timestamps. The dynamic information obtained includes: (1) the total power of the grid area at the tth row set The active energy of each phase of the meter at time (t) set(t)); (2) The active power a of the nth user sub-meter in the substation at time t n (T set (t)). The above dynamic data is reflected in the substation as follows: Figure 2 As shown. true (T set (t)) is T set (t) The actual network loss of the substation at time (kWh), referred to as the actual loss (kWh). o (T set (t)) is T set The measurement noise at time (t) (kWh). Definition d n is the time offset correction of the nth block table; a n (T set (t)+d n ) is a n (T set (t)) after d n The active power data obtained after the time offset correction is the data without time offset. For the convenience of analysis, let d n is an integer multiple of Δt; k n is the time error multiplier of the nth block; K is the maximum time error multiplier;

[0063] Then d n It can be expressed as: n =k n ×△t,k n ∈[0,±1,±2,…,±K], then the corrected active power data can be expressed as: a n (T set (t)+k n △t)=a n (T set (t+k n )),k n ∈[0,±1,±2,…,±K].

[0064] Step 213: Data quality determination, i.e. using correlation analysis to calculate the correlation coefficient r between the phase active power y(t) and the sum of the active power of each meter input The specific correlation coefficient calculation formula is:

[0065]

[0066] Among them, Cov(.,.) means calculating the covariance between the two, and Var(.) means calculating the variance of the variable.

[0067] Step 2014: If the correlation coefficient r inputIf it is greater than 0.9, it indicates that the data quality meets the requirements of remote estimation of smart meter errors, and then the next step of initializing remote estimation of smart meter errors is entered; otherwise, new dynamic data is obtained again.

[0068] Step 202: Initializing smart meter error estimation data;

[0069] Wherein, the step 202 includes:

[0070] Step 221: topology parameter setting includes defining the total electricity meter of the substation area and its subordinate user sub-meters, as well as the user number n and the total number of users m;

[0071] Step 2022: Measurement parameter setting includes determining the clock of the master meter as the timestamp reference for the entire area, and setting the measurement time interval Δt, the total number of measurements T total , and the measurement median timestamp t mid ; Total number of measurements T total The more there are, the more reliable the subsequent correlation analysis will be, but the amount of calculation will also increase. The timestamps of all measurement data must be continuous, and the span between two adjacent measurements cannot be greater than one time interval.

[0072] Step 223: The time error parameter setting includes: the maximum time error multiplier K and the estimated number of meters that may have time errors N d Among them, K is generally not more than 2, N d Generally, it does not exceed 10% of the total number of users, otherwise it may bring about a catastrophic amount of calculation. The specific value is set according to the needs of actual applications, and the embodiment of the present invention will not be described in detail.

[0073] Step 203: constructing a time error state model of a smart meter;

[0074] Wherein, step 203 includes the following steps:

[0075] Step 2031: Read the total power of the area at T set The active energy of each phase of the meter at time (t) set (t)) The active power a of the nth user sub-meter in the substation at time t n (T set (t));

[0076] Step 2032: According to the time set T set (t) sort the read data in chronological order;

[0077] Step 2033: Define k row is the time error multiplier row index, k row ∈[0,±1,±2,…,±(0.5(T total-1)-K)], according to the following formula, construct the total meter active power column vector Y(T set (t mid )):

[0078]

[0079] Step 2034: Construct the user sub-meter active power matrix A(T set (t mid )):

[0080]

[0081] Step 2035: Construct the actual time state column vector: define x n is the actual state vector of the time error of the nth meter, x n (k) is x n The 1+K+kth row element of n =[x n (-K),…,x n (k),…,x n (K)] T ; Assume that the time error multiplier of the nth meter is k n When x n 1+K+k n The elements of the row are 1, and the elements of the other rows are 0. n There is only one 1 element in , that is:

[0082]

[0083] Set all users' x n Splice them into one column to get the column vector x of the actual time state of all users:

[0084]

[0085] (Wherein, the right superscript regular T represents the transposition of the matrix. In the embodiments of the present invention, all right superscript regular Ts represent the transposition of the matrix.)

[0086] Step 2036: constructing a smart meter time error state model;

[0087] Among them, let L true (T set (t mid )) is T set (t mid ) is centered at time T total -2K L true (T set (t)) is the actual loss column vector:

[0088]

[0089] According to the generalized flow conservation law, we can get: Y(T set (t mid ))=A(T set (t mid ))x+L true (T set (t mid )), which is the time error state model of the smart meter.

[0090] For ease of understanding, a model construction diagram of a set of data containing seven measurement timestamps is given as follows: Figure 3 As shown. It can be seen that the time error state model of the smart meter is divided into a single measurement time difference model and a multiple measurement model. The construction idea of ​​the single measurement time difference model is to traverse the time in the data matrix and use the time vector to select the correct time to ensure the relationship between the total table and the sum of the sub-meters. After the single temporal model is constructed, the multiple temporal model is obtained by combining multiple single temporal models. The multiple measurement time difference model is composed of a combination of single measurement models and must have a median value t mid As the axis of the model, it ensures the smooth construction of the model. The column vector x of the actual time state of all users in the single model and the multiple models is the same. The difference lies in the dimension of the data matrix.

[0091] Step 204: performing correlation analysis and estimation on the time error of the smart meter;

[0092] Wherein, the step 204 includes:

[0093] Step 2041: Construct a time state matrix according to the principle of permutation and combination. Let X be the time state matrix, whose number of rows is the same as x, which is m×(2K+1); the number of columns is Θ; let θ be the first-level column index of X, θ∈[1,2,…,Θ]; let X (θ) is the column vector of the θth column of X; let X (θ)_n For X (θ) The subcolumn vector corresponding to the nth user in (θ)_n (k) is X (θ)_n The elements of the 1+K+kth row of , k∈[0,±1,±2,…,±K]. Then the structure of X is as follows:

[0094] X=[X (1) ,…,X (θ) ,…,X (Θ) ](7)

[0095] X (θ) =[X (θ)_1 T ,…,X(θ)_n T ,…,X (θ)_m T ] T (8)

[0096]

[0097] Among them, Θ is an important parameter for setting the space size: N d is the estimated number of meters that may have time errors, Represents the number of combinations, that is, select N from the m block table d The block tables are combined. Represents the total number of all possible time error states under a combination.

[0098] To facilitate the construction of X, X can also be constructed as and Divide. is the secondary column index of X, representing the cth error table combination; is the third-level column index of X, representing the βth time error state under a certain error table combination; let X (c) is the matrix composed of the time state column vectors of all possible situations under the c-th sub-table combination; let X (c)(β) For X (c) The sub-column vector of the βth column of , then X can also be expressed as: in It can be seen that each θ has a unique set of c and β corresponding to it. This correspondence provides a certain reference for program writing.

[0099] X constructed by c and β will contain repeated column vectors. Let The time state matrix after deleting redundant repeated column vectors is used to reduce the spatial size and the amount of calculation. for Column vector index of , for The total number of columns is for No. Column vector, then It can be expressed as:

[0100]

[0101] Note that due to is obtained by deleting redundant repeated column vectors from X, so the column numbering pattern of X is destroyed. It has nothing to do with the three column indices θ, c, and β of X, but The row numbering rule is the same as that of X, and the row structure is still determined by two time error state row indexes n and k.

[0102] Step 2042: Use the correlation coefficient calculation method to construct a mapping to map the high-dimensional time state matrix to a low-dimensional correlation coefficient set. According to the Pearson correlation coefficient calculation formula, the following is established from Surjection to R:

[0103]

[0104] In the formula, R is the set of correlation coefficients; is the first elements, a numeric value, and the column vector There is a corresponding relationship, that is, for any Can be in Find at least one preimage in Correspondingly, note that Also there There may be multiple pre-images Cov(·,·) represents covariance; Var|·| represents variance. The left side is the time-shifted active power matrix of all users, and the right side is a column vector in the deleted time state matrix. The multiplication of the two can be understood as the use To correct A(T set (t mid )), the result of the correction is a set of sum Y(T set (t mid )) The sum of sub-tables with the same dimension, each Each corresponds to a set of corrected sub-table total data. When a set of corrected sub-table total data happens to be the sub-table total data without time error, that is, Since the total data of the sub-tables without time errors are highly correlated with the total table data, will be very close to 1; and when the corrected sub-table total data is not data without time error, that is, Then the correlation between the corrected data and the total table data will decrease. Will be smaller. The size of provides a fast way to distinguish high-dimensional sets from low-dimensional sets R Elements in This makes the error time state matrix It becomes possible to screen, search and restore the actual error state column vector x of all users.

[0105] Step 2043: Set the maximum correlation threshold percentage to obtain the maximum correlation set.

[0106] Among them, the maximum correlation set includes the maximum correlation coefficient set R max , the maximum relevant index set H and the maximum relevant state set X H , the three are mapped and Construct the corresponding relationship. Let r hold (%) is the maximum correlation threshold percentage, indicating that all After sorting from large to small, take the largest first r hold (%)of The maximum correlation coefficient set is composed of the maximum correlation coefficient set R max for:

[0107]

[0108] In the formula, H is the maximum relevant index set, and card(.) represents the element of the set. The three conditions for satisfying formula (14) are: (1) H is A proper subset of R max Any element in is not less than non-R max Any element in; (3) R max The number of elements of does not exceed the number of elements of R hold (%). For example, when r hold = 10%, first of all, for these 100 Arrange the values ​​from large to small, and then take the top 10. These first 10 The set composed is R max , corresponding to The set of is H.

[0109] Step 2044: Calculate the temporal estimation matrix X based on the maximum correlation state set Σ , construct X according to the following formula Σ :

[0110]

[0111] In the formula, X Σ_n For X Σ The nth column vector of is represented as the time error state estimation column vector of the nth user, which has 2K+1 rows: X Σ_n =[X Σ_n (-K),…,X Σ_n (k),…,X Σ_n (K)] T ;X Σ_n (k ) For X Σ_nThe elements in the K+1+kth row in represent the possibility count (Possibility count) that the time error multiplier of the nth user's smart meter is k, and the calculation formula is:

[0112]

[0113] The above formula indicates that when k≠0, for X H Sum the rows, and then fill the sum result into X according to the user number Σ When k = 0, no matter what the result of the row sum is, fill in X Σ The value of is 0. The zeroing operation when k = 0 is to increase X Σ The previous analysis shows that this method is applicable to the case where the number of meters with time errors does not exceed 10% of the total number of meters, which means that k of most meters is 0, and X Σ_n (k) represents the possibility that the time error multiplier of the nth user's smart meter is k, which will lead to X Σ_n (0) is very large, making X Σ_n The value of (k≠0) is less discernible, but the value of X is of interest. Σ_n (k≠0), so X must be removed Σ_n (0) to ensure that X Σ_n (k) It can clearly and intuitively reflect the status of smart meters with time errors.

[0114] Step 205: Analyze the results;

[0115] Wherein, step 205 includes the following steps:

[0116] Step 2051: Setting the time error exceeding threshold percentage;

[0117] Let X Σhold (%) is the percentage of time error exceeding the threshold, and it is considered that X Σ The largest top X percent Σhold The elements of are credible values, then the user number n and time error ratio k corresponding to these larger elements are the number and error ratio of the out-of-tolerance electric meter. Note that when selecting credible values, X is not considered. Σ_n (0), since the embodiment of the present invention does not focus on normal electric meters, X Σ_n (0) There is no need to take into account out-of-tolerance meters.

[0118] Step 2052: Selecting elements within the time error exceeding tolerance threshold as the exceeding tolerance electric meter set;

[0119] Step 2053: Determine whether the element in the temporal estimation matrix under investigation is in the set of out-of-tolerance meters. If so, the temporal credibility of the smart meter corresponding to the element of the temporal estimation matrix is ​​high, and the smart meter is likely to have a time error of the ratio corresponding to this element; otherwise, it means that the temporal credibility of the smart meter corresponding to the element of the temporal estimation matrix is ​​low, and the smart meter is likely to have no time error.

[0120] Step 2054: dispatch operation and maintenance personnel to the site to check the user meters with a high possibility of time error.

[0121] Note: All the above steps can be implemented in Visual Studio using C language programming. In order to make the implementation more convenient and the calculation more efficient, it is recommended to use MATLAB.

[0122] Example 3

[0123] The feasibility of the schemes in Examples 1 and 2 is verified by using specific examples and tables, as described below:

[0124] The example uses 112 smart meters in a certain area in Tianjin as an example for application analysis. In order to further verify the practicality of Examples 1 and 2, this method and the existing method are applied to a 10kv actual distribution area in Tianjin. The distribution network includes a 0.5S-level three-phase master smart meter and 351 2-level single-phase user smart meters, of which 112 user smart meters are connected to phase A, 130 are connected to phase B, and 109 are connected to phase C. For the convenience of analysis, the 112 user smart meters connected to phase A are selected for error estimation; the measurement time interval is 1 hour, and the total number of measurements is 2001 times, that is, T total =2001; the data items collected by the total electric energy meter are A-phase data, including current and voltage; the data items collected by the active power sub-meter are active power; all data are measured data after numerical error verification, that is, the numerical error of the total meter is less than 0.5% in the selected period, and the numerical error of the sub-meter is less than 2%; since it is difficult to adjust the time of the user sub-meter in the actual sub-station area, the embodiment of the present invention uses a data processing method to simulate the time error based on the actual sub-station area data. Set the 24th sub-meter to have a time error of 2, the 51st sub-meter to have a time error of -1, the 62nd sub-meter to have a time error of -2, and the 99th sub-meter to have a time error of 1, that is, k 24 =2, k 51 =-1, k 62 =-2, k 99=1, in the data processing process, it is reflected in that the timestamp of the 24th sub-meter is all added with two measurement time intervals, the timestamp of the 51st sub-meter is all subtracted with one measurement time interval, the timestamp of the 62nd sub-meter is all subtracted with two measurement time intervals, and the timestamp of the 99th sub-meter is all added with one measurement time interval. The algorithm model parameters are set as Δt=1h, T total =2001,t mid =1001, K=2, N d =2, r hold (%) = 10%, X Σhold =2%, then the total number of columns Θ of the time state matrix X before deletion is:

[0125] The time state matrix after pruning Total number of columns It is 99905. It can be seen that the deletion operation reduces the set size to 64% of the original size, which means that the deletion operation will greatly reduce the amount of calculation. Figure 4 As shown, the maximum correlation coefficient set R max like Figure 5 As shown, the calculation of the temporal estimation matrix X Σ The results are as follows Figure 6 As shown, it can be seen that X Σ_51 (-1) is significantly higher than other elements in the matrix. In order to quantitatively analyze the proportion of elements in the matrix and achieve quantitative comparison of the size of elements in the matrix, set X Σhold = 1.5%, then X should be removed from Σ_n (0)X after Σ Six elements are selected from the 448 elements in to locate and identify the out-of-tolerance electric meter. Σ The selection results and specific values ​​of the medium and low differential meters are as follows: Figure 7 As shown in Table 1:

[0126] Table 1 Temporal estimation matrix X based on actual area measurement data Σ The specific value of the out-of-tolerance meter selected

[0127]

[0128] The gray elements in the table are based on X Σhold=1.5% and the elements with larger values ​​are selected. From these larger elements, it can be intuitively determined that the 51st sub-meter is very likely to have a time error with a multiple of -1, that is, the clock of the 8th sub-meter lags behind the clock of the main meter by 1 measurement time interval; in addition, it can also be considered that the 24th sub-meter has a time error with a multiple of 2, the 62nd sub-meter has a time error with a multiple of -2, and the 99th sub-meter has a time error with a multiple of 1; the above estimation results are consistent with the set sub-meter errors, which shows that this method can identify the sub-meters with time errors and give the time error multiples of the out-of-tolerance meters.

[0129] Example 4

[0130] A smart meter data time calibration device based on temporal analysis, see Figure 8 The device includes: a processor 1 and a memory 2, wherein the memory 2 stores program instructions, and the processor 1 calls the program instructions stored in the memory 2 to enable the processor 1 to perform the following method steps:

[0131] Obtain smart meter error estimation data and initialize it;

[0132] Construct a smart meter time error state model to perform correlation analysis and estimation on the smart meter time error;

[0133] Selecting elements within the time error tolerance threshold as the set of out-of-tolerance electric meters, and judging whether the elements in the temporal estimation matrix under investigation are in the set of out-of-tolerance electric meters;

[0134] If yes, the temporal credibility of the smart meter corresponding to the temporal estimation matrix element is high, and the smart meter may have a time error corresponding to the factor of the temporal estimation matrix element; the operation and maintenance personnel are dispatched to the site for inspection, and the process ends;

[0135] If not, the temporal credibility of the smart meter corresponding to the temporal estimation matrix element is low, the smart meter has no time error, and the process ends.

[0136] Wherein, obtaining smart meter error estimation data includes:

[0137] Acquisition of static data, acquisition of dynamic data, and calculation of correlation coefficients between phase-by-phase active power and the sum of phase-by-phase active power by using correlation analysis;

[0138] If the correlation coefficient is greater than 0.9, it indicates that the data quality meets the requirements of remote estimation of smart meter errors, and then the next step of initializing remote estimation of smart meter errors is entered; otherwise, new dynamic data is obtained again.

[0139] Furthermore, the time error state model of the smart meter is:

[0140]

[0141] Among them, L true (T set (t mid )) is T set (t mid ) is centered at time T total -2K L true (T set (t)) is the actual loss column vector, T set is the measurement timestamp column vector, K is the maximum time error multiplier, t mid is the measurement median timestamp, Δt is the measurement time interval, T total is the total number of measurements, L true (T set (t)) is T set (t) The actual network loss in the substation at time t.

[0142] Among them, the correlation analysis and estimation of the time error of the smart meter are specifically as follows:

[0143] The time state matrix is ​​constructed according to the principle of permutation and combination, and the mapping is constructed by using the correlation coefficient calculation method to map the high-dimensional time state matrix to the low-dimensional correlation coefficient set;

[0144] The maximum correlation threshold percentage is set to obtain the maximum correlation set; the temporal estimation matrix is ​​calculated based on the maximum correlation state set.

[0145] Furthermore, the temporal estimation matrix is:

[0146]

[0147] In the formula, X Σ_n For X Σ The nth column vector of represents the time error state estimation column vector of the nth user, which has 2K+1 rows: X Σ_n =[X Σ_n (-K),…,X Σ_n (k),…,X Σ_n (K)] T ;X Σ_n (k ) For X Σ_n The elements in the K+1+kth row of represent the possibility count that the time error multiplier of the nth user's smart meter is k.

[0148] It should be pointed out here that the device description in the above embodiment corresponds to the method description in the embodiment, and the embodiment of the present invention will not be described in detail here.

[0149] The execution subjects of the above-mentioned processor 1 and memory 2 can be devices with computing functions such as computers, single-chip microcomputers, and microcontrollers. In specific implementation, the embodiments of the present invention do not limit the execution subjects and are selected according to the needs of actual applications.

[0150] The data signal is transmitted between the memory 2 and the processor 1 via a bus, which will not be described in detail in the embodiment of the present invention.

[0151] References

[0152] [1] Wang Ziyan. Research and application of power user electricity consumption information collection system[D]. Changchun University of Technology, 2020.

[0153] [2] Guo Jingtao. Research on key technologies of network metering and user electricity consumption data mining for smart grid AMI[D]. Tianjin University, 2012.

[0154] [3]Xiangyu Kong,Yuying Ma,Xin Zhao,Ye Li,Yongxing Teng.A RecursiveLeast Squares Method with Double-Parameter for Online Estimation of ElectricMeter Errors.[J].ENERGIES,2019,12(805).

[0155] [4]Korhonen, A.Verification of Energy Meters Using Automatic MeterReading Data.Master'sThesis,AALTO University,Espoo,Finland,2012.

[0156] [5] Hu Qi'an. Bad load data identification and repair method based on improved FCM algorithm[D]. Tianjin University, 2017.

[0157] [6] Shen Li, DLT 1507-2016 Digital Electricity Meter Calibration Specification[S], National Energy Administration, 2016.

[0158] [7] Kong

[0159] Unless otherwise specified, the models of the components in the embodiments of the present invention are not limited, and any device that can perform the above functions may be used.

[0160] Those skilled in the art will appreciate that the accompanying drawing is only a schematic diagram of a preferred embodiment, and the serial numbers of the embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.

[0161] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims

1. A smart meter data time scale calibration method based on temporal analysis, characterized in that: The method comprises: Obtain smart meter error estimation data and initialize it; Construct a smart meter time error state model to perform correlation analysis and estimation on the smart meter time error; Selecting elements within the time error tolerance threshold as the set of out-of-tolerance electric meters, and judging whether the elements in the temporal estimation matrix under investigation are in the set of out-of-tolerance electric meters; If yes, the temporal credibility of the smart meter corresponding to the temporal estimation matrix element is high, and the smart meter may have a time error corresponding to the factor of the temporal estimation matrix element; the operation and maintenance personnel are dispatched to the site for inspection, and the process ends; If not, the temporal credibility of the smart meter corresponding to the temporal estimation matrix element is low, the smart meter does not have a time error, and the process ends; Wherein, obtaining smart meter error estimation data includes: Acquisition of static data, acquisition of dynamic data, and calculation of correlation coefficients between phase-by-phase active power and the sum of phase-by-phase active power by using correlation analysis; If the correlation coefficient is greater than 0.9, it indicates that the data quality meets the requirements of remote estimation of smart meter errors, and then the next step of initializing remote estimation of smart meter errors is entered; otherwise, new dynamic data is acquired again; The acquisition of dynamic data, i.e., acquiring electric energy metering data with time stamps and sorted by time; In which, let t∈[1,2,…,T total ] is the measurement timestamp index, T total =card(T set ) is T set The total number of elements in the set, card(.) indicates the number of elements in the set; T set To measure the timestamp column vector, each timestamp is arranged in chronological order from top to bottom; T set (t) represents T set The timestamp of the tth row of the grid is shown in Figure 1. Δt is the time interval between two adjacent timestamps. The dynamic information obtained includes: (1) the total power of the grid area at the tth row set The active energy of each phase of the meter at time (t) set (t)); (2) The active power a of the nth user sub-meter in the substation at time t n (T set (t)); define d n is the time offset correction of the nth block table; a n (T set (t)+d n ) is a n (T set (t)) after d n The active power data obtained after the time offset correction is the data without time offset. n is an integer multiple of Δt; k n is the time error multiplier of the nth block; K is the maximum time error multiplier; Then d n Expressed as: d n =k n ×△t,k n ∈[0,±1,±2,…,±K], then the corrected active power data is expressed as: a n (T set (t)+k n △t)=a n (T set (t+k n )),k n ∈[0,±1,±2,…,±K]; The time error state model of the smart meter is: According to the time set T set (t) sort the read data in chronological order; Define k row is the time error multiplier row index, k row ∈[0,±1,±2,…,±(0.5(T total -1)-K)], according to the following formula, construct the total meter active power column vector Y(T set (t mid )): Construct the user's sub-meter active power matrix A(T set (t mid )): Let L true (T set (t mid )) is T set (t mid ) is centered at time T total -2K L true (T set (t)) is the actual loss column vector: Among them, L true (T set (t mid )) is T set (t mid ) is centered at time T total -2K L true (T set (t)) is the actual loss column vector, T set is the measurement timestamp column vector, K is the maximum time error multiplier, t mid is the measurement median timestamp, Δt is the measurement time interval, T total is the total number of measurements, L true (T set (t)) is T set (t) The actual network loss in the area at time; According to the generalized flow conservation law, we can get: Y(T set (t mid ))=A(T set (t mid ))x+L true (T set (t mid )), which is the time error state model of smart meter, defining x n is the actual state vector of the time error of the nth meter, x n (k) is x n The 1+K+kth row element of n =[x n (-K),…,x n (k),…,x n (K)] T ; Assume that the time error multiplier of the nth meter is k n When x n 1+K+k n The elements of the row are 1, and the elements of the other rows are 0. n There is only one 1 element in , that is: Set all users' x n Splice them into a column to get the actual time state column vector x of all users: The time state matrix is ​​constructed according to the principle of permutation and combination, and the mapping is constructed by using the correlation coefficient calculation method to map the high-dimensional time state matrix to the low-dimensional correlation coefficient set; The maximum correlation threshold percentage is set to obtain the maximum correlation set; the temporal estimation matrix is ​​calculated based on the maximum correlation state set.

2. The method for calibrating smart meter data time scale based on temporal analysis according to claim 1, characterized in that: The correlation analysis and estimation of the time error of the smart meter are specifically as follows: Assume r hold is the maximum correlation threshold percentage, which means that all After sorting from large to small, take the largest first r hold of The maximum correlation coefficient set is composed of the maximum correlation coefficient set R max for: In the formula, H is the maximum relevant index set, card (.) represents the element of the set, and H is A proper subset of max Any element in is not less than non-R max Any element in R max The number of elements of does not exceed the number of elements of R hold .

3. The method for calibrating smart meter data time scale based on temporal analysis according to claim 2, characterized in that: The temporal estimation matrix is: In the formula, X Σ_n For X Σ The nth column vector of represents the time error state estimation column vector of the nth user, which has 2K+1 rows: X Σ_n =[X Σ_n (-K),…,X Σ_n (k),…,X Σ_n (K)] T ;X Σ_n (k) is X Σ_n The elements in the K+1+kth row of represent the possibility count that the time error multiplier of the nth user's smart meter is k.

4. A smart meter data time-scale calibration device based on temporal analysis, characterized in that: The device comprises: a processor and a memory, wherein program instructions are stored in the memory, and the processor calls the program instructions stored in the memory to enable the device to execute the method steps described in any one of claims 1-3.