A method, device and storage medium for processing bad data of power system lever

By calculating the approximate ratio of the measurement error components of the power system, the correction weight is obtained, and a leveraged bad data identification model is established, which solves the problem of identifying and correcting leveraged bad data in the power system and improves the accuracy of data processing and error estimation.

CN114386237BActive Publication Date: 2024-10-29GUILIN UNIV OF ELECTRONIC TECH
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111499254.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-09
Publication Date
2024-10-29
Estimated Expiration
2041-12-09

AI Technical Summary

Technical Problem

In power systems, it is difficult to accurately identify and correct leverage bad data with existing technology, making it difficult to overcome the interaction between measurement errors and affecting the accuracy of state estimation.

Method used

By calculating the approximate ratio of the measurement error components, the correction weight is obtained, a leveraged bad data identification model is established, the estimated error of the measurement is obtained, and the bad data is corrected through the error to improve the accuracy of data processing.

Benefits of technology

It achieves accurate identification and correction of leverage bad data, improves the accuracy of power system data processing, improves the accuracy of leverage bad data processing and the accuracy of error estimation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114386237B_ABST
    Figure CN114386237B_ABST
Patent Text Reader

Abstract

The present invention relates to a method, device and storage medium for processing bad data of a power system lever, and belongs to the technical field of power system data processing; the method comprises the steps of: calculating the approximate ratio of the measurement error component of the power system; obtaining the correction weight of the power system measurement according to the approximate ratio; establishing a lever bad data identification model according to the correction weight; obtaining the estimated error of the measurement according to the lever bad data identification model; obtaining the correction value of the bad data according to the estimated error. The present invention obtains the correction weight by the calculated approximate ratio, and establishes the lever bad data identification model by the correction weight, and obtains the estimated error of the measurement by the lever bad data identification model, and obtains the correction value of the bad data by the estimated error, thereby correcting the bad data and improving the accuracy of the power system lever bad data processing.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention mainly relates to the technical field of power system data processing, and in particular to a method, device and storage medium for processing bad data of a power system lever. Background Art

[0002] The larger the scale of the power system, the more measuring instruments it covers, and the accuracy of the instruments varies greatly, resulting in different errors in different measurements. In addition, due to the topological correlation between measurements, bad data show obvious leverage characteristics, multi-correlation and consistency. How to accurately determine the weights of measurements of different qualities and overcome the mutual influence between measurement errors is a key issue that needs to be solved in state estimation.

[0003] Researchers have defined leveraged measurement from both qualitative and quantitative perspectives. The qualitative definition of leveraged measurement is to use injection measurements with a large number of adjacent branches and transmission measurements with branch parameters that are larger than other branches as leveraged measurements. However, it does not specify how many adjacent branches and how large the difference in branch parameters must be to meet the standard for leveraged measurement, so it can only be roughly determined whether it is a suspicious leveraged measurement. The quantitative definition is to calculate the Mahalanobis distance of the measurement. If the Mahalanobis distance is greater than a certain threshold, the measurement is considered to be a leveraged measurement. Although quantitative methods can accurately identify leveraged measurements, there is no very effective identification method for how large the error contained in the leveraged measurement is. Summary of the invention

[0004] The technical problem to be solved by the present invention is to provide a method, device and storage medium for processing bad data of a power system lever in view of the deficiencies in the prior art.

[0005] The technical solution of the present invention to solve the above technical problem is as follows: A method for processing bad data of a power system lever comprises the following steps:

[0006] Calculate the approximate ratio of the measurement error component of the power system;

[0007] Obtaining a correction weight for power system measurements according to the approximation ratio;

[0008] Establishing a leverage bad data identification model according to the modified weights;

[0009] Obtaining an estimated error of measurement according to the lever bad data identification model;

[0010] A correction value of the bad data is obtained according to the estimated error.

[0011] The beneficial effects of the present invention are: a correction weight is obtained through the calculated approximation ratio, and a lever bad data identification model is established through the correction weight, and the measured estimated error is obtained through the lever bad data identification model, and the correction value of the bad data is obtained through the estimated error, so that a more accurate estimated error can be directly obtained, thereby correcting the bad data and improving the accuracy of lever bad data processing in the power system.

[0012] Based on the above technical solution, the present invention can also be improved as follows.

[0013] Further, the approximate ratio of the measurement error component of the electric power system is calculated as follows:

[0014] The approximate ratio of the measurement error component of the power system is calculated according to the first formula, which is:

[0015]

[0016] in, e is the actual value of the error vector measured in the power system, e i and e j are the i-th and j-th elements of e, respectively. U and e D are the two components of the measurement error e, e i,U for e U The i-th element of i,D for e D The i-th element of , K is the projection operator, K = (H T WH) -1 H T W, K i is the i-th row of K, K ii is the value of the element at the i-th row and i-th column of K, K ij is the element value of the i-th row and j-th column of K, H is the measurement Jacobian matrix, and W is the weight matrix m is the total number of measurements, σ i is the standard deviation of the i-th (i=1, 2, …, m) measurement, and i and j are index numbers.

[0017] The beneficial effect of adopting the above further solution is: combining the projection operator K and by calculating the two components e of the error e U and e D The elements in are summed to obtain the approximate ratio of the error component, thereby improving the accuracy of subsequent data processing.

[0018] Further, the correction weight of the power system measurement is obtained according to the approximation ratio, specifically:

[0019] The correction weight of the power system measurement is obtained according to the second formula and the approximation ratio, wherein the second formula is:

[0020]

[0021] in, is the i-th correction weight of the power system measurement, κ i is the approximate ratio, w i are the i-th original weights of the power system measurements,

[0022] The beneficial effect of adopting the above further solution is: using the approximation ratio to obtain the correction weight of the power system measurement, thereby establishing a leveraged bad data identification model through the correction weight.

[0023] Furthermore, the leverage bad data identification model is established according to the modified weights, specifically:

[0024] The leverage bad data identification model is:

[0025] Among them, r i is the ith residual of the power system measurement, r i =z i -h i (x), h i (x) is the power system state variable, z i is the i-th measurement of the power system.

[0026] Further, the estimated error of the measurement obtained according to the lever bad data identification model is specifically:

[0027] Obtaining a regularized residual of power system measurement based on the leveraged bad data identification model;

[0028] The estimated error of the measurement is obtained according to the third formula and the regularized residual, and the third formula is:

[0029]

[0030] in, is the estimated error of power system measurements, r i N is the ith regularized residual of the power system measurement,

[0031] The beneficial effect of adopting the above further scheme is: the regularized residual is automatically and quickly obtained by leveraging the bad data identification model, and a more accurate estimation error is obtained through the regularized residual.

[0032] Further, the correction value of the bad data is obtained according to the estimated error, specifically:

[0033] The correction value of the bad data is obtained according to the fourth formula and the estimated error, and the fourth formula is:

[0034]

[0035] in, is the correction value, z i is the ith measurement of the power system, is the estimated error of power system measurements.

[0036] The beneficial effect of adopting the above further solution is: obtaining a correction value of bad data by estimating the error, and correcting the bad data by using the correction value.

[0037] Another technical solution of the present invention to solve the above technical problem is as follows: a device for processing bad data of a power system lever, comprising:

[0038] An approximation ratio calculation module, used for calculating the approximation ratio of the measurement error component of the power system;

[0039] A weight calculation module, used to obtain a correction weight of the power system measurement according to the approximation ratio;

[0040] A model building module, used to build a leverage bad data identification model according to the modified weights;

[0041] An error calculation module, used for obtaining an estimated error of measurement according to the lever bad data identification model;

[0042] The correction module is used to obtain a correction value of the bad data according to the estimated error.

[0043] Another technical solution of the present invention to solve the above-mentioned technical problem is as follows: a device for processing bad data of power system levers, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor; when the processor executes the computer program, the method for processing bad data of power system levers as described above is implemented.

[0044] Another technical solution of the present invention to solve the above technical problem is as follows: a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method for processing bad data of a power system lever as described above is implemented. BRIEF DESCRIPTION OF THE DRAWINGS

[0045] Figure 1 A flow chart of a method for processing bad data of a power system lever provided by an embodiment of the present invention;

[0046] Figure 2 Another flowchart of a method for processing bad data of a power system lever provided by an embodiment of the present invention;

[0047] Figure 3 A functional module block diagram of a method for processing bad data of a power system lever provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0048] The principles and features of the present invention are described below in conjunction with the accompanying drawings. The examples given are only used to explain the present invention and are not used to limit the scope of the present invention.

[0049] Embodiment 1:

[0050] like Figure 1 As shown, a method for processing bad data of power system lever includes the following steps:

[0051] Calculate the approximate ratio of the measurement error component of the power system;

[0052] Obtaining a correction weight for power system measurements according to the approximation ratio;

[0053] Establishing a leverage bad data identification model according to the modified weights;

[0054] Obtaining an estimated error of measurement according to the lever bad data identification model;

[0055] A correction value of the bad data is obtained according to the estimated error.

[0056] In the above embodiment, the correction weight is obtained by calculating the approximate ratio, and the lever bad data identification model is established by the correction weight. The measured estimated error is obtained by the lever bad data identification model, and the correction value of the bad data is obtained by the estimated error. A more accurate estimated error can be directly obtained, thereby correcting the bad data and improving the accuracy of lever bad data processing in the power system.

[0057] Specifically, the approximate ratio of the measurement error component of the electric power system is calculated as follows:

[0058] The approximate ratio of the measurement error component of the power system is calculated according to the first formula, which is:

[0059]

[0060] in, e is the actual value of the error vector measured in the power system, e i and e j are the i-th and j-th elements of e, respectively. U and e Dare the two components of the measurement error e, e i,U for e U The i-th element of i,D for e D The i-th element of , K is the projection operator, K = (H T WH) -1 H T W, K i is the i-th row of K, K ii is the value of the element at the i-th row and i-th column of K, K ij is the element value of the i-th row and j-th column of K, H is the measurement Jacobian matrix, and W is the weight matrix m is the total number of measurements, σ i is the standard deviation of the i-th (i=1, 2, …, m) measurement, and i and j are index numbers.

[0061] In the above embodiment, the projection operator K is combined and the two components e of the error e are U and e D The elements in are summed to obtain the approximate ratio of the error component, thereby improving the accuracy of subsequent data processing.

[0062] Specifically, the correction weight of the power system measurement is obtained according to the approximation ratio, specifically:

[0063] The correction weight of the power system measurement is obtained according to the second formula and the approximation ratio, wherein the second formula is:

[0064]

[0065] in, is the i-th correction weight of the power system measurement, κ i is the approximate ratio, w i are the i-th original weights of the power system measurements,

[0066] In the above embodiment, the approximation ratio is used to obtain the correction weight of the power system measurement, so as to establish the leveraged bad data identification model through the correction weight.

[0067] Specifically, the lever bad data identification model is established according to the modified weights, specifically:

[0068] The leverage bad data identification model is:

[0069] Among them, r i is the ith residual of the power system measurement, r i =z i -h i (x), hi (x) is the power system state variable, z i is the i-th measurement of the power system.

[0070] Specifically, the estimated error of the measurement obtained according to the leveraged bad data identification model is:

[0071] Obtaining a regularized residual of power system measurement based on the leveraged bad data identification model;

[0072] The estimated error of the measurement is obtained according to the third formula and the regularized residual, and the third formula is:

[0073]

[0074] in, is the estimated error of power system measurements, r i N is the ith regularized residual of the power system measurement,

[0075] like Figure 2 As shown, the calculation process of the leverage bad data identification model is:

[0076] S1: Set the number of iterations k = 1, and start the state estimation at the flat value;

[0077] S2: Calculate measurement weights Measure the Jacobian matrix H and the projection operator K;

[0078] S3: Calculate measurement correction weights Get the measurement correction weight matrix

[0079] S4: According to Get the power system state variable correction value Δx of the k-th iteration (k) , and according to x (k) =x (k-1) +Δx (k) Update the state variable x (k) :

[0080] S5: If max{|Δx (k) |}<ε (ε is the convergence criterion), then execute S6; otherwise k=k+1, return to execute S4;

[0081] S6: According to Calculate the estimated errors of all power system measurements. If the maximum measurement estimated error is greater than a certain threshold δ (δ=3), obtain a correction value of the bad data according to the estimated error, and return to execute S2. Otherwise, execute S7.

[0082] S7: State estimation converges and outputs results.

[0083] In the above embodiment, the regularized residual is automatically and quickly obtained by leveraging the bad data identification model, and a relatively accurate estimation error is obtained through the regularized residual.

[0084] Specifically, in step S6, the correction value of the bad data is obtained according to the estimated error, specifically:

[0085] The correction value of the bad data is obtained according to the fourth formula and the estimated error, and the fourth formula is:

[0086]

[0087] in, is the correction value, z i is the ith measurement of the power system, is the estimated error of power system measurements.

[0088] In the above embodiment, the correction value of the bad data is obtained by estimating the error, and the bad data is corrected by the correction value.

[0089] Embodiment 2:

[0090] like Figure 3 As shown, a device for processing bad data of a power system lever comprises:

[0091] An approximation ratio calculation module, used for calculating the approximation ratio of the measurement error component of the power system;

[0092] A weight calculation module, used to obtain a correction weight of the power system measurement according to the approximation ratio;

[0093] A model building module, used to build a leverage bad data identification model according to the modified weights;

[0094] An error calculation module, used for obtaining an estimated error of measurement according to the lever bad data identification model;

[0095] The correction module is used to obtain a correction value of the bad data according to the estimated error.

[0096] Specifically, in the approximation ratio calculation module, the approximation ratio of the measurement error component of the power system is calculated as follows:

[0097] The approximate ratio of the measurement error component of the power system is calculated according to the first formula, which is:

[0098]

[0099] in, e is the actual value of the error vector measured in the power system, ei and e j are the i-th and j-th elements of e, respectively. U and e D are the two components of the measurement error e, e i,U for e U The i-th element of i,D for e D The i-th element of , K is the projection operator, K = (H T WH) -1 H T W, K i is the i-th row of K, K ii is the value of the element at the i-th row and i-th column of K, K ij is the element value of the i-th row and j-th column of K, H is the measurement Jacobian matrix, and W is the weight matrix m is the total number of measurements, σ i is the standard deviation of the i-th (i=1, 2, …, m) measurement, and i and j are index numbers.

[0100] Another technical solution of the present invention to solve the above-mentioned technical problem is as follows: a device for processing bad data of power system levers, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor; when the processor executes the computer program, the method for processing bad data of power system levers as described above is implemented.

[0101] Another technical solution of the present invention to solve the above technical problem is as follows: a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method for processing bad data of a power system lever as described above is implemented.

[0102] The following table 1 and table 2 illustrate the error detection results obtained by using the method and device for processing the power system lever bad data of the present invention. Table 1 shows the measurement configuration, and Table 2 shows the error detection results of the lever bad data.

[0103] Table 1

[0104]

[0105] Table 2

[0106]

[0107] The "failed" in Table 2 indicates that the algorithm missed the bad data. From the error detection results in Table 2, among the 10 groups of leveraged bad data scenarios, WLS failed to detect bad data in 3 groups, while CWLS only failed to detect in 2 groups. In the scenarios where both WLS and CWLS successfully detected, the error estimate of CWLS was closer to the actual error, reflecting that the leveraged bad data detection capability of CWLS is significantly improved compared with WLS.

[0108] It is not difficult to see from the above embodiments that the lever bad data identification method proposed by the present invention has the advantage of very high identification accuracy.

[0109] Compared with the prior art, the present invention has the following advantages:

[0110] 1. High accuracy in identifying bad lever data: Under the same convergence conditions, the identification result of bad lever data of the present invention is more accurate than the traditional least squares state estimation.

[0111] 2. The error estimation accuracy of bad lever data is high: under the same convergence conditions, the estimation of the error size contained in the bad lever data by the present invention is closer to the actual error than the traditional least squares state estimation.

[0112] 3. Good application prospects: The current power system is still mainly based on SCADA measurement, and its measuring instruments have more noise and errors, and the high-precision PMU has not yet been fully configured. Therefore, the measurement error will inevitably lead to the emergence of leveraged bad data. The present invention can provide good technical support for it, so it has a good application prospect.

[0113] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device.

[0114] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0115] In the several embodiments provided in this application, it should be understood that the disclosed systems and methods can be implemented in other ways. For example, the system embodiments described above are only schematic, for example, the division of units is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed.

[0116] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the embodiments of the present invention.

[0117] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0118] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the various embodiments of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.

[0119] 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 method for processing bad data of power system lever, characterized in that: The steps include: Calculate the approximate ratio of the measurement error component of the power system; Obtaining a correction weight for power system measurements according to the approximation ratio; Establishing a leverage bad data identification model according to the modified weights; Obtaining an estimated error of measurement according to the lever bad data identification model; Obtaining a correction value of the bad data according to the estimated error; The approximate ratio of the measurement error component of the calculation power system is specifically: The approximate ratio of the measurement error component of the power system is calculated according to the first formula, which is: in, e is the actual value of the error vector measured in the power system, e i and e j are the i-th and j-th elements of e, respectively. U and e D are the two components of the measurement error e, e i,U for e U The i-th element of i,D for e D The i-th element of , K is the projection operator, K = (H T WH) -1 H T W, K i is the i-th row of K, K ii is the value of the element at the i-th row and i-th column of K, K ij is the element value of the i-th row and j-th column of K, H is the measurement Jacobian matrix, and W is the weight matrix m is the total number of measurements, σ i is the standard deviation of the i-th (i=1,2,…,m) measurement, i and j are index numbers; The correction weight of the power system measurement obtained according to the approximation ratio is specifically: The correction weight of the power system measurement is obtained according to the second formula and the approximation ratio, wherein the second formula is: in, is the i-th correction weight of the power system measurement, κ i is the approximate ratio, w i are the i-th original weights of power system measurements, 2. The method for processing bad data of power system leverage according to claim 1, characterized in that: The lever bad data identification model is established according to the modified weights, specifically: The leverage bad data identification model is: Among them, r i is the ith residual of the power system measurement, r i =z i -h i (x), h i (x) is the power system state variable, z i is the i-th measurement of the power system.

3. The method for processing bad data of power system leverage according to claim 1, characterized in that: The estimated error measured according to the leveraged bad data identification model is specifically: Obtaining a regularized residual of power system measurement based on the leveraged bad data identification model; The estimated error of the measurement is obtained according to the third formula and the regularized residual, and the third formula is: in, is the estimated error of power system measurements, r i N is the ith regularized residual of the power system measurement, 4. The method for processing bad data of power system leverage according to claim 3, characterized in that: The correction value of the bad data is obtained according to the estimated error, specifically: The correction value of the bad data is obtained according to the fourth formula and the estimated error, and the fourth formula is: in, is the correction value, z i is the ith measurement of the power system, is the estimated error of power system measurements.

5. A device for processing bad data of power system lever, characterized in that: include: An approximation ratio calculation module, used for calculating the approximation ratio of the measurement error component of the power system; A weight calculation module, used to obtain a correction weight of the power system measurement according to the approximation ratio; A model building module, used to build a leverage bad data identification model according to the modified weights; An error calculation module, used for obtaining an estimated error of measurement according to the lever bad data identification model; A correction module, used for obtaining a correction value of bad data according to the estimated error; In the approximation ratio calculation module, the approximation ratio of the measurement error component of the power system is calculated, specifically: The approximate ratio of the measurement error component of the power system is calculated according to the first formula, which is: in, e is the actual value of the error vector measured in the power system, e i and e j are the i-th and j-th elements of e, respectively. U and e D are the two components of the measurement error e, e i,U for e U The i-th element of i,D for e D The i-th element of , K is the projection operator, K = (H T WH) -1 H T W, K i is the i-th row of K, K ii is the value of the element at the i-th row and i-th column of K, K ij is the element value of the i-th row and j-th column of K, H is the measurement Jacobian matrix, and W is the weight matrix m is the total number of measurements, σ i is the standard deviation of the i-th (i=1,2,…,m) measurement, i and j are index numbers; In the weight calculation module, the correction weight of the power system measurement is obtained according to the approximation ratio, specifically: The correction weight of the power system measurement is obtained according to the second formula and the approximation ratio, wherein the second formula is: in, is the i-th correction weight of the power system measurement, κ i is the approximate ratio, w i are the i-th original weights of the power system measurements, 6. A device for processing bad data of power system lever, characterized in that: The method comprises a memory, a processor and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the method for processing bad data of a power system lever as claimed in any one of claims 1 to 4 is implemented.

7. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method for processing bad data of a power system lever as claimed in any one of claims 1 to 4 is implemented.

Citation Information

Patent Citations

  • Rapid detection and identification method for measured bad data of mass power grid data

    CN107403261A

  • AC / DC hybrid power distribution network robust state estimation method and terminal equipment

    CN112968473A