A method for identifying bad power grid data based on voltage coding
The voltage encoding method is used to directly identify bad data in the power grid, which solves the problem of complex and real-time identification of bad data in the power grid, achieves fast and accurate identification of bad data in the power grid, and improves the stability and safety of the power grid operation.
Patent Information
- Application Number
- CN202311054764.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-08-22
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2043-08-22
AI Technical Summary
Existing power grid bad data identification methods have complex residual calculation problems and difficulty in balancing real-time performance. Especially in noisy power systems, traditional methods are difficult to quickly and accurately identify and process bad data.
A method based on voltage coding is used to directly identify bad data by calculating the system node admittance matrix and voltage coding, avoiding residual calculation and preprocessing steps. The voltage coding matrix is used to quickly identify changes in the power grid operating mode to achieve rapid identification.
This method can quickly and accurately identify bad power grid data, avoid residual pollution and redundant calculations in traditional methods, improve the identification speed and accuracy, and take into account the identification effect and real-time performance.
Smart Images

Figure CN117289072B
Abstract
Description
Technical Field
[0001] The invention relates to a method for identifying bad data of a power grid, and belongs to the technical field of power systems. Background Art
[0002] With the development of society, the complexity of the power system is also increasing. In order to facilitate the operation and maintenance personnel to monitor the operating status of the power system in real time, many measuring devices such as mutual inductors are installed at various locations in the system. The real-time data obtained by the measuring device is transmitted to the dispatching center through the data transmission system. The power grid staff makes power dispatching based on these real-time data to ensure the stable and efficient operation of the power system.
[0003] In the actual operation of the power system, due to the accuracy of the measuring instruments and the interference of external signals on the system, various measurement errors and even erroneous data will occur. If the bad data is not screened and processed, it will interfere with the dispatching decision and even endanger the safe operation of the power system in serious cases. Therefore, it is very necessary to accurately and immediately "eliminate" bad data during the operation of the system.
[0004] At present, the identification algorithms for bad data mainly include two categories: identification algorithms based on state estimation and identification methods based on data mining. The identification algorithm based on state estimation uses external measurement data to estimate the parameters of the power grid, and then compares the state estimation value with the collected value to obtain the residual, and then uses mathematical methods to analyze the residual data to identify the bad data in the system. However, this method always involves residual calculation, and there will be problems of residual pollution and residual drowning. This problem is particularly prominent in power systems with large noise; and as the scale of the system expands, the real-time data that needs to be processed continues to increase, and the disadvantages of traditional residual calculation operations that are too complicated are becoming more and more obvious. The identification method based on data mining is to first preprocess the sample parameters obtained by sampling. In the preprocessing, some edge parameters can be filtered out to obtain a series of irregular and noisy actual data, and then take appropriate analysis methods to extract the hidden rules of the preprocessed data and make evaluations and analyses to achieve the purpose of obtaining information and rules hidden in the original data. However, the recognition effect of this method is closely related to the quality of preprocessing. A good preprocessing method often requires a long computing time. In other words, it is difficult to achieve good data recognition effect and real-time performance at the same time.
[0005] Therefore, it is urgent to propose a method for identifying bad power grid data based on voltage coding to solve the above technical problems. Summary of the invention
[0006] The purpose of the present invention is to solve the problem that the existing bad data identification is too complicated, and to provide a method for identifying bad data of a power grid based on voltage coding. A brief overview of the present invention is given below to provide a basic understanding of certain aspects of the present invention. It should be understood that this overview is not an exhaustive overview of the present invention. It is not intended to determine the key or important parts of the present invention, nor is it intended to limit the scope of the present invention.
[0007] The technical solution of the present invention:
[0008] A method for identifying bad power grid data based on voltage coding comprises the following steps:
[0009] Step 1: Calculation of voltage coding;
[0010] Step 2: Identification of bad data.
[0011] Preferably: Step 1 comprises the following steps:
[0012] Step 1.1: Import the parameters of the power network;
[0013] Step 1.2: Calculate the system node admittance matrix;
[0014] Step 1.3: Calculate the voltage code.
[0015] Preferably: in step 1.1, the power network parameters include the number of branches, node information, branch information, the number and number of nodes of the generator (load) nodes;
[0016] In step 1.2, the voltage encoding is the inverse matrix Y of the node admittance matrix -1 The column vector corresponding to the node number at the generator (load) node; uniquely related to the circuit topology;
[0017] In step 1.3, the node admittance matrix is used to set the injected current of the Xth generator (load) node to 1 unit, and the injected current of the remaining generator (load) nodes to 0. The resulting current column vector is recorded as I X , X is a natural number;
[0018] Using the definition of the node admittance matrix I=YU, Y can be inverted to get U=Y -1 I, U are the voltages of each node in the system, I is the injected current of each node in the system (the injection of the intermediate bus node is 0), and I is replaced by X Available U X , which is the basic voltage code V of the Xth generator (load) node cbx , all generators (loads) are traversed to obtain the voltage codes of all nodes; these column vectors are combined into a matrix, which is the voltage code matrix Vcb.
[0019] Preferably: Step 2 comprises the following steps:
[0020] Step 2.1: Determine the type of bad data and enter the corresponding algorithm according to the bad data type;
[0021] Step 2.2: Bad data identification.
[0022] Preferably: Step 2.2 comprises the following steps:
[0023] Step 2.2.1: Identify the location of a bad voltage data;
[0024] Step 2.2.2: Identify the location of a bad current data;
[0025] Step 2.2.3: Identification of two voltage bad data;
[0026] Step 2.2.4: Identification of two bad current data;
[0027] Step 2.2.5: Identification of two current bad data.
[0028] Preferably: Step 2.1 comprises the following steps:
[0029] Step 2.1.1: Set the threshold P0 and count the number of elements in the error vector ΔU that exceed P0;
[0030] Step 2.1.2: If there are two elements exceeding P0, go to step 2.2.3;
[0031] Step 2.1.3: If only one element exceeds P0, then only one node voltage is bad data or one voltage node and one current node are both bad data;
[0032] Step 2.1.4: If no element exceeds P0, then there are two bad current data or one bad current data.
[0033] The present invention has the following beneficial effects:
[0034] 1. The present invention identifies bad data based on voltage coding and measured data itself, and is a new state estimation method that does not have a series of problems in residual calculation of traditional state estimation; nor does it require preprocessing of the measured data.
[0035] 2. The method of the present invention incorporates the change of the system operation mode into the change of the voltage code. Each time the operation mode changes, only a certain correction needs to be made to the voltage code, and the recognition speed is very fast. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] Figure 1It is a flow chart of a method for identifying bad power grid data based on voltage coding;
[0037] Figure 2 It is a flow chart for judging bad data types;
[0038] Figure 3 This is a flow chart for identifying poor voltage data.
[0039] Figure 4 This is the identification flow chart of two voltage bad data
[0040] Figure 5 This is a flow chart for identifying bad current data;
[0041] Figure 6 It is a flow chart for identifying bad current data and bad voltage data;
[0042] Figure 7 It is a flow chart for identifying two bad current data. DETAILED DESCRIPTION
[0043] In order to make the purpose, technical scheme and advantages of the present invention clearer, the present invention is described below by the specific embodiments shown in the accompanying drawings. However, it should be understood that these descriptions are only exemplary and are not intended to limit the scope of the present invention. In addition, in the following description, the description of well-known structures and technologies is omitted to avoid unnecessary confusion of the concept of the present invention.
[0044] Specific implementation method 1: Combination Figure 1 The present embodiment is described as follows: a method for identifying bad power grid data based on voltage coding in the present embodiment comprises the following steps:
[0045] Step 1: Calculation of voltage coding;
[0046] Step 2: Identification of bad data.
[0047] Specific implementation method 2: Combination Figure 1-7 This embodiment is described. This embodiment is a method for identifying bad power grid data based on voltage coding. The voltage coding under the current operation mode is calculated through the structure and parameters of the system. Step 1 includes the following steps:
[0048] Step 1.1: Import the parameters of the power network;
[0049] Step 1.2: Calculate the system node admittance matrix;
[0050] Step 1.3: Calculate the voltage code.
[0051] Specific implementation method three: Combination Figure 1-7This embodiment is described. In this embodiment, a method for identifying bad power grid data based on voltage coding is provided. In step 1.1, the power network parameters include the number of branches, node information, branch information, the number of nodes of the generator (load) node, and the specific number of the generator (load) node;
[0052] In step 1.2, the voltage encoding is the column vector of the inverse matrix of the node admittance matrix corresponding to the node number of the generator (load) node; it is uniquely related to the topological structure of the circuit;
[0053] In step 1.3, the node admittance matrix is used to set the injected current of the first generator (load) node to 1 unit, and the injected current of the remaining generator (load) nodes to 0. The obtained current column vector is recorded as I1;
[0054] Using the definition of the node admittance matrix I=YU, Y can be inverted to get U=Y -1 I, U are the voltages of each node in the system, I is the injected current of each node in the system (the injection of the intermediate bus node is 0), and U1 can be obtained by substituting I1, which is the voltage code Vcb1 of the first generator (load) node. All generators (loads) are traversed, and the voltage codes of other nodes can be obtained similarly; these column vectors are combined into a matrix, which is the voltage code matrix Vcb; the method of the present invention contains the changes in the system operation mode in the changes in the voltage code. Every time the operation mode changes, only a certain correction needs to be made to the voltage code, and no power flow calculation is required, and the identification speed is very fast.
[0055] Specific implementation method four: Combination Figure 1-7 This embodiment is described. In this embodiment, a method for identifying bad power grid data based on voltage coding is described. Step 2 includes the following steps:
[0056] Step 2.1: Determine the type of bad data and enter the corresponding algorithm according to the bad data type;
[0057] Step 2.2: bad data identification; the present invention identifies bad data based on voltage coding and the measured data itself, which is a new state estimation method. It does not have a series of problems in residual calculation of traditional state estimation; it does not need to preprocess the measured data, and can better balance the identification effect and identification speed.
[0058] Specific implementation method five: Combination Figure 3-7 This embodiment is described. In this embodiment, a method for identifying bad power grid data based on voltage coding is described. Step 2.2 includes the following steps:
[0059] Step 2.2.1: Identify the location of a bad voltage data; Figure 3 As shown, the following steps are included:
[0060] Step 2.2.1.1: First, according to the superposition theorem, measure the current I mes and voltage coding V cb Get the calculated voltage U cal ;
[0061]
[0062] Then measure the voltage U mes Make a difference and get the error vector ΔU;
[0063]
[0064] Where: I mesi is the measured current of the ith node, V cbi is the voltage code of the i-th node, and m is a natural number;
[0065] Step 2.2.1.2: Determine the position i where the element with the largest modulus value in ΔU is located, which is the node where the bad voltage data is located;
[0066] Step 2.2.2: Identification of two bad voltage data; Figure 4 As shown, the following steps are included:
[0067] Step 2.2.2.1: First, according to the superposition theorem, measure the current I mes and voltage coding V cb Get the calculated voltage U cal ;
[0068]
[0069] Then measure the voltage U mes Make a difference and get the error vector ΔU;
[0070]
[0071] Step 2.2.2.2: Determine the position i and j of the element with the largest modulus value in ΔU, which is the node where the bad voltage data is located;
[0072] Step 2.2.3: Identify the location of a bad current data; Figure 5 As shown, the following steps are included:
[0073] Step 2.2.3.1: First, according to the superposition theorem, measure the current I mes and voltage coding V cb Get the calculated voltage U cal
[0074]
[0075] Then measure the voltage U mes Make a difference and get the error vector ΔU;
[0076]
[0077] Where: ΔI i is the deviation between the measured value and the true value of the i-node;
[0078] Step 2.2.3.2: Calculate the corresponding quotient vector Q of each voltage encoding vector i and its standard deviation std(Q i ), . / is the division of corresponding elements of matrices of the same size;
[0079]
[0080] Find the minimum value among the standard deviations, and the corresponding node is the node where the bad current data is located;
[0081] Step 2.2.4: Identification of a bad current data and a bad voltage data; Figure 6 As shown, the following steps are included:
[0082] Step 2.2.4.1: First, according to the superposition theorem, measure the current I mes and voltage coding V cb Get the calculated voltage U cal ;
[0083]
[0084] Then measure the voltage U mes Make a difference and get the error vector ΔU;
[0085]
[0086] Step 2.2.4.2: Determine the position i where the element with the largest modulus value in ΔU is located, which is the node where the voltage bad data is located;
[0087] Step 2.2.4.3: Remove the elements corresponding to the nodes where the voltage bad data is located in the voltage code and ΔU, and for the remaining elements, calculate the corresponding quotient vector Q of each voltage code vector i and its standard deviation std(Q i );
[0088]
[0089] Find the minimum value among the standard deviations, and the corresponding node is the node where the bad current data is located;
[0090] Step 2.2.5: Identification of two bad current data; Figure 7 As shown, the following steps are included:
[0091] Step 2.2.5.1: First, according to the superposition theorem, measure the current I mes and voltage coding V cb Get the calculated voltage U cal ;
[0092]
[0093] Then measure the voltage U mes Make a difference and get the error vector ΔU;
[0094]
[0095] Step 2.2.5.2: Select two voltage codes V cbi and V cbj Form a voltage coding group, take the first two rows of elements and the first two rows of elements in ΔU to construct an equation group and solve it to obtain ΔI i and ΔI j ;
[0096]
[0097] Step 2.2.5.3: Construct the difference vector D ij , calculate its standard deviation std(D ij );
[0098]
[0099] Where: V cbi and V cbj is the voltage code corresponding to the i-th and j-th current input nodes, ΔI i , ΔI j The solution is obtained by using the first two rows of the two codes to construct the equations, and this solution is used to fit the elements of other columns. ij It is used to describe the location of the error. It is the last identification method, which is to combine any two different i and j nodes. After the combination, the two nodes correspond to two voltage codes, and use the two voltage codes and △U to solve ΔI. i and ΔI j , but it has many elements, so we first take the first two rows to construct a solution, and then use this solution to bring back the elements of other columns to determine whether it is the solution of the entire vector group;
[0100] Step 2.2.5.4: Find the minimum value among the standard deviations. The corresponding node combination is the node where the two current bad data are located.
[0101] Specific implementation method six: Combination Figure 2-7This embodiment is described. This embodiment is a method for identifying bad power grid data based on voltage coding. Since the element modulus of the voltage coding vector is small, the influence of bad current data on the error vector ΔU after coding is significantly smaller than the direct influence of bad voltage data. Therefore, the element modulus in ΔU can be counted to exceed a certain threshold as a criterion for bad voltage data. Based on this, the algorithm corresponding to different types according to the bad data type in step 2.1 includes the following steps:
[0102] Step 2.1.1: Set a threshold value P0 and count the number of elements in the error vector ΔU whose modulus exceeds P0;
[0103] Step 2.1.2: If there are two elements exceeding P0, go to step 2.2.3;
[0104] Step 2.1.3: If only one element exceeds P0, it is possible that only one node voltage is bad data or one voltage node and one current node are bad data; if the bad voltage data node is removed, the remaining elements in ΔU are close to 0, and go to step 2.2.1; otherwise, go to step 2.2.5;
[0105] Step 2.1.4: If no element exceeds P0, it may be two bad current data or one bad current data; further analysis is performed in combination with the discrete degree of ΔU. If the discrete degree is small, proceed to step 2.2.2, otherwise proceed to step 2.2.4;
[0106] The voltage coding corresponds to the structure and parameters of the system. When the system structure and parameters remain unchanged, the voltage coding will not change either. The sampled data can be directly identified during system operation. Conventional state estimation algorithms require a large amount of iterative processing of data. In contrast, this algorithm is based on the superposition theorem of circuits. The analysis process does not involve complex iterative processes and there will be no convergence problems. Therefore, the judgment speed is faster and the accuracy is higher.
[0107] It should be noted that in the above embodiments, as long as there are no contradictory technical solutions, they can be arranged and combined, and those skilled in the art can exhaust all possibilities based on the mathematical knowledge of arrangement and combination. Therefore, the present invention will no longer describe the technical solutions after arrangement and combination one by one, but it should be understood that the technical solutions after arrangement and combination have been disclosed by the present invention, and the parts not described in this embodiment are the same as the prior art.
[0108] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A method for identifying bad power grid data based on voltage coding, characterized in that: The following steps are involved: Step 1: Calculation of voltage coding; Step 1 includes the following steps: Step 1.1: Import the parameters of the power network; In step 1.1, the power network parameters include the number of branches, node information, branch information, the number and number of generator nodes; Step 1.2: Calculate the system node admittance matrix; In step 1.2, the voltage encoding is the inverse matrix Y of the node admittance matrix -1 The column vector corresponding to the node number at the generator node; uniquely related to the topological structure of the circuit; Step 1.3: Calculate the voltage code; In step 1.3, the node admittance matrix is used to set the injected current of the Xth generator node to 1 unit, and the injected current of the other generator nodes to 0. The obtained current column vector is recorded as IX, where X is a natural number; Using the definition of the node admittance matrix I=YU, Y can be inverted to get U=Y -1 I, U are the voltages of each node in the system, I is the injected current of each node in the system, and UX can be obtained by substituting IX. By traversing all generators, the voltage codes of other nodes can be obtained; these column vectors are combined into a matrix, which is the voltage coding matrix Vcb; Step 2: Identification of bad data; Step 2 includes the following steps: Step 2.1: Determine the type of bad data and enter the corresponding algorithm according to the bad data type; Step 2.2: Identification of bad data; Step 2.2 includes the following steps: Step 2.2.1: Identify the location of a poor voltage data; including the following steps: Step 2.2.1.1: First, according to the superposition theorem, measure the current I mes and voltage coding V cb Get the calculated voltage U cal ; Then measure the voltage U mes Make a difference and get the error vector ΔU; Where: I mesi is the measured current of the ith node, V cbi is the voltage code of the i-th node, and m is a natural number; Step 2.2.1.2: Determine the position i where the element with the largest modulus value in ΔU is located, which is the node where the bad voltage data is located; Step 2.2.2: Identification of two bad voltage data; including the following steps: Step 2.2.2.1: First, according to the superposition theorem, measure the current I mes and voltage coding V cb Get the calculated voltage U cal ; Then measure the voltage U mes Make a difference and get the error vector ΔU; Step 2.2.2.2: Determine the position i and j of the element with the largest modulus value in ΔU, which is the node where the bad voltage data is located; Step 2.2.3: Identify the location of a bad current data; including the following steps: Step 2.2.3.1: First, according to the superposition theorem, measure the current I mes and voltage coding V cb Get the calculated voltage U cal ; Then measure the voltage U mes Make a difference and get the error vector ΔU; Where: ΔI i is the deviation between the measured value and the true value of the i-node; Step 2.2.3.2: Calculate the corresponding quotient vector Q for each voltage encoding vector i and its standard deviation std(Q i ), . / is the division of corresponding elements of matrices of the same size; Find the minimum value among the standard deviations, and the corresponding node is the node where the bad current data is located; Step 2.2.4: Identification of a bad current data and a bad voltage data; including the following steps: Step 2.2.4.1: First, according to the superposition theorem, measure the current I mes and voltage coding V cb Get the calculated voltage U cal ; Then measure the voltage U mes Make a difference and get the error vector ΔU; Step 2.2.4.2: Determine the position i where the element with the largest modulus value in ΔU is located, which is the node where the bad voltage data is located; Step 2.2.4.3: Remove the elements corresponding to the nodes where the voltage bad data is located in the voltage code and ΔU, and for the remaining elements, calculate the corresponding quotient vector Q of each voltage code vector i and its standard deviation std(Q i ); Find the minimum value among the standard deviations, and the corresponding node is the node where the bad current data is located; Step 2.2.5: Identification of two bad current data; including the following steps: Step 2.2.5.1: First, according to the superposition theorem, measure the current I mes and voltage coding V cb Get the calculated voltage U cal ; Then measure the voltage U mes Make a difference and get the error vector ΔU; Step 2.2.5.2: Select two voltage codes V cbi and V cbj Form a voltage coding group, take the first two rows of elements and the first two rows of elements in ΔU to construct an equation group and solve it to obtain ΔI i and ΔI j ; Step 2.2.5.3: Construct the difference vector D ij , calculate its standard deviation std(D ij ); Where: V cbi and V cbj is the voltage code corresponding to the i-th and j-th current input nodes, ΔI i , ΔI j The solution is obtained by using the first two rows of the two codes to construct the equations, and this solution is used to fit the elements of other columns. ij It is used to describe the location of the error. It is the last identification method, which is to combine any two different i and j nodes. After the combination, the two nodes correspond to two voltage codes, and use the two voltage codes and △U to solve ΔI. i and ΔI j , but it has many elements, so we first take the first two rows to construct a solution, and then use this solution to bring back the elements of other columns to determine whether it is the solution of the entire vector group; Step 2.2.5.4: Find the minimum value among the standard deviations. The corresponding node combination is the node where the two current bad data are located.
