Intelligent classification decision-making method and system for power grid data quality problems
Through integrated analysis methods and association rule analysis, a data detection model and classification feature library are constructed to solve the problems of automated troubleshooting and abnormal cause identification in power grid data quality control, improve data quality and operational stability, and achieve efficient anomaly detection and Traceability.
Patent Information
- Application Number
- CN202410701799.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-31
- Publication Date
- 2024-08-27
AI Technical Summary
The existing power grid control system lacks integrity in terms of basic data quality control, has a low level of automated investigation, has many false positives and omissions, and lacks effective ability to investigate the causes of data anomalies, which affects the safe and stable operation of the power grid.
The integrated analysis method (K-means algorithm) is used to group the power grid monitoring data, combined with association rule analysis (FP-Growth algorithm) to find out the association rules that affect data quality, and a data detection model is built through the clustering algorithm to generate alarm thresholds. The power grid topology and remote signaling and power flow constraint relationships are used to identify and warn abnormal data, establish a classification feature library for data quality issues, and use frequent item set association algorithms to establish association rules that affect data quality.
It improves the quality and credibility of basic data, realizes intelligent classification of power grid data quality issues, improves software operation level, and ensures the safe and stable operation of large power grids. The accuracy of anomaly detection reaches more than 95%, and the total load addition of a single line is The test, troubleshooting and traceability takes less than 3 minutes.
Smart Images

Figure CN118551279A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of power grid data analysis, and in particular to a method and system for intelligent classification and decision-making on power grid data quality issues. Background Art
[0002] With the large-scale distributed power generation connected to the grid and the large-scale random multi-load access, the scope of monitoring equipment in the power grid control system is becoming wider and wider, and the number and types of direct-purchase and direct-control plants and stations have increased dramatically, and the safe operation and control of the power grid faces major challenges. As the core support system for power grid operation control and dispatching production management, the power grid dispatching and control system is the center for real-time data aggregation, processing and dispatching control of various types of power grid equipment. How to ensure the quality of the basic data of the system is of vital importance and is an urgent problem that needs to be solved for the safe and stable operation of the power grid. The existing power grid control and control system still has the following weak links in basic data quality control:
[0003] (1) There is a lack of a complete basic data quality control system, and the level of automation in problem troubleshooting is not high.
[0004] (2) There is a lack of effective means to assess the quality of basic data, and thresholds are mainly set based on experience, which leads to frequent false positives and omissions.
[0005] (3) The level of automation in troubleshooting the causes of data anomalies is low, and the correlation between faults has not been established, which limits the ability to eliminate data quality risks from the root causes, such as missing measurements and incorrect model parameters.
[0006] In response to the above problems and needs, a method and system for intelligent classification and decision-making of power grid data quality problems are proposed. First, the integrated analysis method (K-means algorithm) is used to group the power grid monitoring data, and then the association rule analysis method (FP-Growth algorithm) is used in each group to find the association rules that affect the data quality. In this way, the system can intelligently classify data quality problems and find out the key factors that affect data quality, thereby improving the quality and credibility of basic data, improving the software operation level, and ensuring the safe and stable operation of large power grids. Summary of the invention
[0007] In view of the above-mentioned problems, the present invention is proposed.
[0008] Therefore, the technical problem solved by the present invention is: how to provide a method and system for intelligent classification and decision-making of power grid data quality issues.
[0009] To solve the above technical problems, the present invention provides the following technical solutions: an intelligent classification decision-making method for power grid data quality problems, comprising: based on the laws and characteristics of historical power grid control basic data, using a clustering algorithm to build a data detection model, and using the data detection model to detect in real time the key total added measurement data in the historical power grid control basic data; analyzing and mining the operation laws of power data, combining electrical physical relationships and limit parameters, generating alarm thresholds for equipment measurement data, and using the power grid topology, telesignaling and flow constraint relationships to identify and warn abnormal telemetry data; building a classification feature library for power grid control data quality problems; using a frequent item set association algorithm to compress the original data through a frequent pattern tree data structure, and establish association rules that affect data quality; classifying data quality problems according to the association rules to find out the key factors that affect data quality.
[0010] As a preferred scheme of the intelligent classification and decision-making method for power grid data quality problems described in the present invention, wherein: the laws of the historical power grid regulation basic data include statistical distribution laws, time series characteristics and electrical physical laws satisfied between data; the characteristics of the historical power grid regulation basic data include characteristic patterns of abnormal data, network element topology correlation, and multi-source heterogeneity.
[0011] As a preferred solution of the intelligent classification decision-making method for power grid data quality problems described in the present invention, wherein: using a clustering algorithm to construct a data detection model refers to iteratively training the data detection model by regulating the historical power grid regulation basic data, aggregating the factors of relevant features for classification, and learning data rules, which specifically includes the following steps: feature selection is performed according to the analysis target and power grid domain knowledge, wherein the features include basic power grid information, monitoring information, network status information, and database status; feature standardization is performed based on the robust standardization method of median and quartile statistics, and the calculation formula is as follows:
[0012]
[0013] Among them, x represents the original value of the feature; median represents the median of the feature; IQR represents the interquartile range.
[0014] The silhouette coefficient method is used to measure the compactness and separation within the cluster. The value range of the silhouette coefficient is [-1,1]. For sample i, the formula for calculating its silhouette coefficient is as follows:
[0015]
[0016] Where a represents the average distance between sample i and other samples in the cluster; b represents the average distance between sample i and all samples outside the cluster.
[0017] Randomly select K data points from the initial data sample set as the initial cluster centers; calculate the Euclidean distance between each data point and each cluster center and assign it to the cluster closest to it. The specific formula is:
[0018] C i =argmin j ||x i -μ i || 2 ;
[0019] Among them, C i Represents data point x i The category with the closest distance between clusters; μ i Represents the cluster center of the data class, and the calculation formula is as follows:
[0020]
[0021] Among them, l{C i =j} represents the distance set, and the data point x is set according to the shortest distance principle. i Assign to a cluster and iterate multiple times until all data points are classified, the algorithm ends, and the clustering result is obtained.
[0022] As a preferred solution of the intelligent classification decision-making method for power grid data quality problems described in the present invention, wherein: identification and early warning of abnormal telemetry data include false telesignal identification, telesignal and telemetry inconsistency check, PQI inconsistency check, and unbalanced quantity check; the false telesignal identification is the correctness of the telesignal status of the topological analysis equipment, the equipment measurement status is "telemetry is not zero, telesignal is divided", if the static connected bus has active power balance, it is considered "telemetry error"; if the static connected bus power is unbalanced, and the power is balanced after adding the equipment active power, it is considered "telesignal error"; the telesignal and telemetry inconsistency check includes the equipment status is exit When the device is running or charging, and all switches connected to the device are open, and the absolute value of the measured value is greater than 0, it is considered that "the remote signal is open and the remote measurement has a value"; when the device status is normal, and at least one switch connected to the device is in the closed position, the absolute value of the measured value is 0 and the device topology is energized, it is considered that "the remote signal is closed, but the remote measurement has no value"; the PQI inconsistency check includes when the difference between the calculated current and the actual current is greater than the threshold value, it is judged as "PQI inconsistency"; the imbalance check includes bus active / reactive balance, line head and end current balance and transformer active / reactive balance. When the imbalance exceeds the threshold value, the user is prompted to monitor.
[0023] As a preferred solution of the intelligent classification decision method for power grid data quality problems described in the present invention, the construction of a classification feature library for power grid control data quality problems includes the following steps: defining the measurement data set of the power grid control database as I = {i1, i2, ..., i n}, which contains n data items; define D as a set of measurement data transaction sets of the power grid control database, T is a subset of I in step 1, and the transaction data in D is composed of each TI in the information set I, and TID is the unique identifier of the power grid control measurement information and data quality problem node transaction set; define the item set There is an association rule for X: when X appears, Y will also appear with a certain probability. X represents an abnormal data point measured by a master station, and Y represents a certain type of data quality problem point. The association rule is that when the abnormal data point X appears in a certain monitoring record, a certain data quality problem Y will also appear with a certain probability.
[0024] As a preferred solution of the intelligent classification decision method for power grid data quality problems described in the present invention, wherein: the frequent item set association algorithm is used to compress the original data through the frequent pattern tree data structure to establish association rules that affect data quality, including the following steps, using support and confidence as measurement indicators of association rules; wherein the support refers to the percentage of the number of information that contains both X and Y in D to the number of all transactions in D; the confidence refers to the ratio of the number of information that contains both X and Y in D to the number of information that contains X in D, that is, the confidence measures the conditional probability of the occurrence of the result item Y when the premise item X occurs, and the specific formula is as follows: The formula for the support of the association relationship is:
[0025]
[0026] Where D represents the total transaction set; Num(D) represents the number of total transaction sets; Num(X∪Y) represents the number of transaction sets containing {X,Y}.
[0027] The formula for the confidence of the association relationship is:
[0028]
[0029] Among them, P(Y|X) represents the degree of information about the correctness of the rule that can be used to infer the result item Y when the current item X occurs.
[0030] Set the support and confidence thresholds to evaluate the information value and gain of association rules, and define s x is the support of X in D, given the minimum support S min , given the minimum confidence C min ; For item sets If x ≥S min , then X is the data set D at the minimum support S min Frequent item sets under If all supersets of X are infrequent itemsets, then X is the dataset D with the minimum support S. minThe maximum frequent itemset under ; for a given minimum confidence C min The probability of data quality problem points appearing in the abnormal measurement is screened out and sorted in descending order; the item set is constructed according to the above rules: the power data set is traversed, and the power consumption value in each data record is used as the element of the item set. The minimum support threshold can be set as needed to filter out infrequent item sets.
[0031] As a preferred solution of the intelligent classification decision-making method for power grid data quality problems described in the present invention, wherein: the data quality problems are classified according to association rules to find out the key factors affecting data quality, including constructing a support count table of item sets, specifically establishing an item header table, counting the frequency of each item set appearing in the data set, the first column of the table is the frequent items arranged in descending order of support, and the second column is a node list; each frequent set is the head of a node list, which points to the position where the frequent set appears in the FP-Tree in sequence, and the support count table will be used to determine the frequent item sets.
[0032] To further solve the above technical problems, the present invention provides the following technical solutions: an intelligent classification decision system for power grid data quality problems, comprising: a data preprocessing module, which is used to construct a data detection model based on the laws and characteristics of historical power grid control basic data using a clustering algorithm, and to detect key total measurement data in the historical power grid control basic data in real time through the data detection model; an anomaly detection and early warning module, which is used to analyze and mine the operation laws of power data, combine electrical physical relationships and limit parameters, generate alarm thresholds for equipment measurement data, and use power grid topology, remote signaling and flow constraint relationships to identify and warn telemetry abnormal data; a feature library construction module, which is used to construct a classification feature library for power grid control data quality problems; an association rule modeling module, which is used to use a frequent item set association algorithm to compress the original data through a frequent pattern tree data structure to establish association rules that affect data quality; a classification decision module, which is used to classify data quality problems according to association rules and find out key factors that affect data quality.
[0033] A computer device includes a memory and a processor, wherein the memory stores a computer program, and is characterized in that when the processor executes the computer program, the steps of the intelligent classification and decision-making method for power grid data quality problems as described above are implemented.
[0034] A computer-readable storage medium having a computer program stored thereon, characterized in that when the computer program is executed by a processor, the steps of the intelligent classification and decision-making method for power grid data quality problems as described above are implemented.
[0035] Beneficial effects of the invention: The invention proposes an intelligent classification decision-making method and system for the quality problems of basic data of power grid regulation based on time series data feature analysis and electrical mechanism constraints, which solves the problems of low flexibility and efficiency of traditional detection methods relying on threshold setting and manual troubleshooting, and realizes real-time detection of key measurements of basic data of power grid regulation by integrating multiple algorithms, and automatically traces the root cause based on the electrical mechanism. The accuracy of anomaly detection is over 95%, and the time taken to troubleshoot and trace the total added measurement of a single load is less than 3 minutes. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative work.
[0037] Figure 1 It is the overall flow chart of the present invention.
[0038] Figure 2 It is an execution flow chart of the clustering algorithm of the present invention.
[0039] Figure 3 This is a flow chart for implementing the frequent item set association algorithm of the present invention.
[0040] Figure 4 This is the frequent item set graph mined by the present invention.
[0041] Figure 5 It is the association rule graph of the present invention.
[0042] Figure 6 A diagram of a computer device according to the present invention. DETAILED DESCRIPTION
[0043] In order to make the above-mentioned purposes, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are described in detail below in conjunction with the drawings of the specification. Obviously, the described embodiments are part of the embodiments of the present invention, but not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary persons in the art without creative work should fall within the scope of protection of the present invention.
[0044] In the following description, many specific details are set forth to facilitate a full understanding of the present invention, but the present invention may also be implemented in other ways different from those described herein, and those skilled in the art may make similar generalizations without violating the connotation of the present invention. Therefore, the present invention is not limited to the specific embodiments disclosed below.
[0045] Example 1
[0046] Reference Figure 1 to Figure 5 , is an embodiment of the present invention, and provides an intelligent classification decision method for power grid data quality problems, comprising:
[0047] S1: Based on the rules and characteristics of historical power grid control basic data, a data detection model is constructed using a clustering algorithm. The data detection model is used to detect the key total measurement data in the historical power grid control basic data in real time.
[0048] Among them, as shown in Tables 1 and 2, the laws of historical power grid control basic data include statistical distribution laws, time series characteristics, and electrical physical laws satisfied between data. The characteristics of historical power grid control basic data include characteristic patterns of abnormal data, network element topology correlation, and multi-source heterogeneity.
[0049] Table 1 Regularity of historical power grid control basic data
[0050]
[0051] Table 2 Characteristics of historical power grid control basic data
[0052]
[0053] It should be noted that the historical grid control basic data is obtained from the power data set, which is collected from the equipment model connected to the monitoring system, monitoring data (telemetry, telesignaling, remote control, remote regulation), online monitoring information of power transmission and transformation, online monitoring data of secondary equipment (such as recording data), and power grid and equipment operation data. "Cleaning" incomplete or erroneous data, and performing necessary data conversion to improve data quality, ensure that each data record in the data set contains power-related information, such as timestamps, power consumption values, etc.
[0054] Furthermore, the key total added measurement data include system load data, power generation end data, trunk transmission line data, and regional networking channel data. Among them, the system load data includes the total load power of the regional control center node, the total load power of the main substation bus node and the total power of the large user load center; the power generation end data includes the total output of the main power plant units and the total power generation power of new energy; the trunk transmission line data refers to the total active power flow of the main transmission lines of the power grid; the regional networking channel data refers to the main networking channel flow between regional power grids.
[0055] Furthermore, the clustering algorithm used in this embodiment is the K-means clustering analysis algorithm. By iteratively training the data detection model by regulating the historical power grid regulation basic data, the factors of relevant characteristics are clustered for classification, the data rules are learned, and the model training is carried out in a targeted manner to effectively, quickly and accurately identify the suspicious data. The results can be continuously improved with the correctness of the model training results, and can be used for real-time data quality analysis to improve the quality of power grid basic data.
[0056] Specifically, the steps of the K-means clustering analysis method are as follows:
[0057] 1) Feature selection: According to the analysis objectives and knowledge of the power grid, basic power grid information (including equipment type, equipment name, plant station, interval, and voltage level), monitoring information (including telesignaling, telemetry, equipment current, equipment voltage, active power, reactive power, and calculation amount), network status information (such as node status), and database status are selected as features.
[0058] Among them, by analyzing the data related to the real-time measurement of various types of equipment, the characteristic factors that have a great impact on the prediction target are extracted, thereby providing a high-quality data basis for predictive modeling and avoiding the interference of invalid features. Predictive modeling integrates multiple algorithms to conduct targeted modeling training for real-time measurements of various types of equipment (such as bus load) to achieve high-precision prediction.
[0059] 2) Feature standardization: Clustering algorithms are sensitive to the scale of features, so feature standardization is required. The robust standardization method based on median and quartile statistics can effectively reduce the impact of outliers on the standardized results and has better robustness. The calculation formula is as follows:
[0060]
[0061] Among them, x represents the original value of the feature; median represents the median of the feature; IQR represents the interquartile range (this method can make the median of the data 0 and the interquartile range 1).
[0062] 3) Select the number of clusters (K value): The silhouette coefficient method is used to measure the compactness and separation within the cluster. The value range of the silhouette coefficient is [-1, 1]. The closer it is to 1, the higher the compactness of the sample and the data within the cluster. For sample i, the formula for calculating its silhouette coefficient is as follows:
[0063]
[0064] Among them, a(i) represents the average distance between sample i and other samples in the cluster; b(i) represents the average distance between sample i and all samples outside the cluster; s(i) represents the silhouette coefficient of sample i.
[0065] A set of sample data is selected, different K values (2 to 9) are set, the average silhouette coefficient of all samples is calculated, and the average silhouette coefficients at different K values are compared. As shown in Table 3, K=3 has the largest silhouette coefficient, so K=3 is selected.
[0066] Table 3 Silhouette coefficients of different K values
[0067]
[0068] 4) Initialize cluster centers: Randomly select K data points from the initial data sample set as initial cluster centers.
[0069] 5) Assign data points to the nearest cluster: Calculate the Euclidean distance between each data point and the center of each cluster and assign it to the cluster closest to it. The formula is:
[0070] C i = arg min j ||x i -μ i || 2 ;
[0071] Among them, C i Represents data point x i The category with the closest distance between clusters; μ i Represents the cluster center of the data class, and the calculation formula is as follows:
[0072]
[0073] Among them, l{C i =j} represents the distance set, and the data point x is set according to the shortest distance principle. i Assign to a cluster and iterate multiple times until all data points are classified and the algorithm ends.
[0074] 6) Get the clustering results.
[0075] S2: Analyze and mine the operating rules of power data, combine electrical physical relationships and limit constraints, generate reasonable alarm thresholds for measurements such as transformer three-phase current and line active power, and use the power grid topology structure and telemetering data to automatically identify and warn abnormal telemetering data.
[0076] Specifically, adaptive thresholds are constrained based on electrical mechanisms. Based on the analysis and mining of the operating rules of power data, combined with electrical physical relationships and limit parameters, reasonable alarm thresholds are generated for measurements such as transformer three-phase current and line active power, reducing reliance on manual experience. By parsing the power grid structure or model file to obtain the power grid topology, as well as the correspondence between power grid telemetry and telesignaling data and equipment, the constrained relationship between topology, telesignaling and power flow is used to identify and warn abnormal telemetry data. It mainly includes false telesignaling identification, telesignaling and telemetry inconsistency check, PQI inconsistency check, unbalanced quantity check, etc.
[0077] Furthermore, 1) false telesignaling identification: topological analysis of the correctness of the telesignaling status of the equipment. If the equipment measurement status is "telemetry is not zero, telesignaling is divided", if the active power of the statically connected bus is balanced, it is considered "telemetry error"; if the power of the statically connected bus is unbalanced, and the power is balanced after adding the active power of the equipment, it is considered "telesignaling error".
[0078] 2) Check for inconsistency between telemetering and telesignaling: If the device is in the state of exiting operation or charging, and the switches connected to the device are all open, and the absolute value of the measured value is greater than 0, then it is considered that "the telesignaling is open and the telemetering has a value"; if the device is in the state of normal, and at least one of the switches connected to the device is in the closed position, the absolute value of the measured value is 0 and the device topology is energized, then "the telesignaling is closed, but the telemetering has no value".
[0079] 3) PQI inconsistency check: If the difference between the calculated current and the actual current is greater than the threshold value, it is judged as "PQI inconsistency".
[0080] 4) Unbalance check: including busbar active (reactive) balance, line head and end current balance, transformer active (reactive) balance. If the unbalance exceeds the threshold value, the user is prompted to monitor.
[0081] S3: Construct a classification feature library for power grid control data quality issues.
[0082] S4: Use the frequent item set association algorithm to compress the original data through the frequent pattern tree data structure and establish association rules that affect data quality.
[0083] S5: Classify data quality issues according to association rules and find out the key factors affecting data quality.
[0084] Furthermore, the association analysis of quality problems of power grid control big data is realized based on the FP-growth algorithm (frequent pattern growth algorithm). First, a data quality problem classification feature library is constructed, and then the frequent item set (frequent-pattern growth, FP-Growth) association algorithm is used to perform data quality problem association analysis. This algorithm compresses the database that provides frequent item sets into a frequent pattern tree (FP-Tree), but still retains the item set association information. By compressing the original power grid control data through the FP-tree data structure, it is only necessary to traverse the database twice at most to efficiently establish data quality problem association rules.
[0085] Step 1: Define the measurement data set of the power grid control database as I = {i1, i2, …, i n}, which contains n data items;
[0086] Step 2: Define D as a set of measurement data transaction sets of the power grid control database, T is a subset of I in step 1, and the transaction data in D is composed of each TI in the information set I. TID is the unique identifier of the power grid control measurement information and data quality problem node transaction set;
[0087] Step 3: Define itemsets There is an association rule for X: when X appears, Y will also appear with a certain probability. X represents an abnormal data point measured by a master station, and Y represents a certain type of data quality problem point. The association rule is that when the abnormal data point X appears in a certain monitoring record, a certain data quality problem Y will also appear with a certain probability.
[0088] Step 4: Support and confidence are often used as measurement indicators for association rules. Support refers to the percentage of information that contains both X and Y in D to the number of all transactions in D. Confidence refers to the ratio of information that contains both X and Y in D to the number of information that contains X in D, that is, confidence measures the conditional probability of the occurrence of the result item Y when the premise item X occurs. The specific formula is as follows:
[0089] a) Support of association relationship
[0090]
[0091] Where: D represents the total transaction set; Num(D) represents the number of total transaction sets; Num(X∪T) represents the number of transaction sets containing {X,Y}.
[0092] b) Confidence of association
[0093]
[0094] Where: P(Y|X) represents the degree of information about the correctness of the rule that can be used to deduce the result item Y when the current item X occurs.
[0095] Step 5: Set the support and confidence thresholds to evaluate the information value and gain of the association rules. x is the support of X in D, given the minimum support S min , given the minimum confidence C min ;
[0096] For item sets If x ≥S min , then X is the data set D at the minimum support S min Frequent itemsets under ;
[0097] For item sets If all supersets of X are infrequent itemsets, then X is the dataset D with the minimum support S. min The maximum frequent itemset under .
[0098] For a given minimum confidence level C min The probability of data quality problem points appearing in the abnormal measurement is screened out and sorted in descending order.
[0099] Construct an itemset according to the above rules: traverse the power data set and take the power consumption value in each data record as an element of the itemset. You can set the minimum support threshold as needed to filter out infrequent itemsets.
[0100] Step 6: Construct a support count table for item sets. In order to facilitate traversal of the entire tree, an item header table is established to count the frequency of each item set in the data set. The first column in the table is the frequent items arranged in descending order of support, and the second column is a node list. Each frequent set is the head of a node list, which points to the position where the frequent set appears in the FP-Tree. The support count table will be used to determine the frequent item sets. As shown in Table 2.
[0101] Table 4 Support ranking of transaction T item header table
[0102]
[0103] Step 7: Construct FP-tree. Select the power grid control measurement data in May 2020, select Longshan substation, set the confidence level to 0.7, the support level to 20, and group them according to the same station, same interval, and 5-second time. Use the above rules to mine the data quality problem points in the power grid operation monitoring records of the abnormal data points in each power grid control measurement data, and construct FP-tree. Then perform frequent item set mining and association rule mining.
[0104] a) Construct the root node of FP-tree: Create an empty FP tree as the storage structure of frequent itemsets. The count value of the root node can be set to 0 or other initial value;
[0105] b) First scan of FP-tree: For each data record, insert it into FP-tree according to the order in the item set support count table. If the same item set path already exists in the tree, update the count value of the corresponding node; otherwise, create a new node and add it to the tree.
[0106] Step 8: Mining frequent patterns from FP-tree.
[0107] First, the conditional pattern base of a certain element of the power grid control measurement data quality problem is obtained in the FP-tree. The conditional pattern base refers to a sub-dataset based on each element of the frequent item set.
[0108] Secondly, a conditional FP-tree is recursively constructed using the conditional pattern base. For each conditional pattern base, the same construction steps are used to recursively construct the conditional FP-tree for further mining of frequent item sets. Figure 4 is the mined frequent itemset.
[0109] Finally, recursively traverse the conditional FP-tree to extract frequent item sets. Starting from the root node, generate combinations of frequent item sets according to the order in the support count table and calculate their support. According to the set minimum support S min and the minimum confidence C min Condition, the transactions that meet the minimum support are mined according to the support to obtain the strong association rules between the transactions, and the associations that meet the minimum confidence are sorted. The association rules are as follows: Figure 5 shown.
[0110] In summary, the intelligent classification and decision-making method for power grid data quality problems based on time series data feature analysis and electrical mechanism constraints proposed in the present invention solves the problems of low flexibility and efficiency of traditional detection methods relying on threshold setting and manual troubleshooting, and realizes real-time detection of key measurements of basic data of power grid regulation by integrating multiple algorithms, and automatically traces the root cause based on the electrical mechanism. The accuracy of anomaly detection is over 95%, and the time required for troubleshooting and tracing the total added measurement of a single load is less than 3 minutes.
[0111] Example 2
[0112] Reference Figure 1 , is an embodiment of the present invention, and provides an intelligent classification decision-making system for power grid data quality problems, comprising:
[0113] The data preprocessing module is used to construct a data detection model based on the rules and characteristics of the historical power grid control basic data using a clustering algorithm, and to detect the key total added measurement data in the historical power grid control basic data in real time through the data detection model;
[0114] The anomaly detection and early warning module is used to analyze and mine the operation rules of power data, combine electrical physical relationships and limit parameters, generate alarm thresholds for equipment measurement data, and use the power grid topology, remote signaling and power flow constraint relationships to identify and warn abnormal telemetry data;
[0115] A feature library construction module is used to construct a classification feature library for power grid control data quality issues;
[0116] The association rule modeling module is used to compress the original data through the frequent pattern tree data structure using the frequent item set association algorithm to establish association rules that affect data quality;
[0117] The classification decision module is used to classify data quality issues according to association rules and find out the key factors affecting data quality.
[0118] Example 3
[0119] Reference Figure 6 , is an embodiment of the present invention, which is different from the previous embodiment in that:
[0120] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several 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 methods described in each embodiment 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, etc., which can store program codes.
[0121] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute instructions), or in conjunction with such instruction execution systems, devices or apparatuses. For the purposes of this specification, "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in conjunction with such instruction execution systems, devices or apparatuses.
[0122] More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection with one or more wires (electronic device), a portable computer disk case (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be a paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium, followed by editing, deciphering or, if necessary, processing in another suitable manner, and then stored in a computer memory.
[0123] It should be understood that the various parts of the present invention can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, a plurality of steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.
[0124] It should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solutions of the present invention may be modified or replaced by equivalents without departing from the spirit and scope of the technical solutions of the present invention, which should all be included in the scope of the claims of the present invention.
Claims
1. An intelligent classification and decision-making method for power grid data quality problems, characterized in that: include: Based on the rules and characteristics of historical power grid control basic data, a data detection model is constructed using a clustering algorithm, and the key total added measurement data in the historical power grid control basic data is detected in real time through the data detection model; Analyze and mine the operation rules of power data, combine electrical physical relationships and limit parameters, generate alarm thresholds for equipment measurement data, and use the power grid topology, remote signaling and power flow constraint relationships to identify and warn abnormal telemetry data; Construct a classification feature library for power grid control data quality issues; Use frequent item set association algorithm to compress raw data through frequent pattern tree data structure and establish association rules that affect data quality; Classify data quality issues according to association rules and find out the key factors affecting data quality.
2. The intelligent classification and decision-making method for power grid data quality problems according to claim 1, characterized in that: The laws of the historical power grid control basic data include statistical distribution laws, time series characteristics and electrical physical laws satisfied between data; the characteristics of the historical power grid control basic data include characteristic patterns of abnormal data, network element topology correlation, and multi-source heterogeneity.
3. The intelligent classification and decision-making method for power grid data quality problems according to claim 2, characterized in that: Using clustering algorithms to build a data detection model means iteratively training the data detection model by regulating the historical power grid regulation basic data, clustering the factors of relevant characteristics for classification, and learning the data rules. The specific steps include the following: Select features based on the analysis objectives and knowledge of the power grid domain, where the features include basic power grid information, monitoring information, network status information, and database status; The robust standardization method based on median and quartile statistics is used to perform feature standardization. The calculation formula is as follows: Among them, x represents the original value of the feature; median represents the median of the feature; IQR represents the interquartile range; The silhouette coefficient method is used to measure the compactness and separation within the cluster. The value range of the silhouette coefficient is [-1,1]. For sample i, the formula for calculating the silhouette coefficient is as follows: Where a(i) represents the average distance between sample i and other samples in the cluster; b(i) represents the average distance between sample i and all samples outside the cluster; s(i) represents the silhouette coefficient of sample i; Randomly select K data points from the initial data sample set as the initial cluster centers; Calculate the Euclidean distance between each data point and each cluster center and assign it to the cluster closest to it. The specific formula is: C i =arg min j ||x i -m i || 2 ; Among them, C i Represents data point x i The category with the closest distance between clusters; μ i Represents the cluster center of the data class, and the calculation formula is as follows: Among them, l{C i =j} represents a set of distances. According to the shortest distance principle, the data point xi is assigned to a cluster and iterated multiple times until all data points are classified, the algorithm ends, and the clustering result is obtained.
4. The intelligent classification and decision-making method for power grid data quality problems according to claim 3, characterized in that: Identification and early warning of abnormal telemetry data, including false telemetering identification, telemetering and telemetering inconsistency check, PQI inconsistency check, and imbalance check; The false telesignaling identification is to analyze the correctness of the telesignaling status of the topological equipment. If the equipment measurement status is "telemetry is not zero, telesignaling is divided", if the active power of the statically connected bus is balanced, it is considered "telemetry error"; if the power of the statically connected bus is unbalanced, and the power is balanced after adding the active power of the equipment, it is considered "telesignaling error"; The inconsistency check of telesignaling and telemetering includes: when the equipment state is exiting operation or charging, and the switches connected to the equipment are all open, and the absolute value of the measured value is greater than 0, it is considered that "the telesignaling is open, and the telemetering has a value"; when the equipment state is normal, and at least one switch connected to the equipment is in the closed position, the absolute value of the measured value is 0, and the equipment topology color is energized, it is considered that "the telesignaling is closed, but the telemetering has no value"; The PQI inconsistency check includes judging as "PQI inconsistency" when the difference between the calculated current and the actual current is greater than a threshold value; The unbalance check includes busbar active / reactive balance, line head-end current balance and transformer active / reactive balance. When the unbalance exceeds a threshold value, the user is prompted to monitor.
5. The intelligent classification and decision-making method for power grid data quality problems according to claim 4, characterized in that: The construction of a classification feature library for power grid control data quality issues includes the following steps: The measurement data set of the power grid control database is defined as I = {i1, i2, ..., i n }, which contains n data items; Define D as a set of measurement data transaction sets of the power grid control database, T is a subset of I in step 1, and the transaction data in D is composed of each TI in the information set I. TID is the unique identifier of the power grid control measurement information and data quality problem node transaction set; Defining Itemsets There is an association rule for X: when X appears, Y will also appear with a certain probability. X represents an abnormal data point measured by a master station, and Y represents a certain type of data quality problem point. The association rule is that when the abnormal data point X appears in a certain monitoring record, a certain data quality problem Y will also appear with a certain probability.
6. The intelligent classification and decision-making method for power grid data quality problems according to claim 5, characterized in that: The frequent item set association algorithm is used to compress the original data through the frequent pattern tree data structure to establish association rules that affect data quality, including the following steps: Support and confidence are used as the measurement indicators of association rules; the support refers to the percentage of the number of information containing both X and Y in D to the number of all transactions in D; the confidence refers to the ratio of the number of information containing both X and Y in D to the number of information containing X in D, that is, the confidence measures the conditional probability of the occurrence of the result item Y when the premise item X occurs. The specific formula is as follows: The formula for the support of the association relationship is: Where D represents the total transaction set; Num(D) represents the number of total transaction sets; Num(X∪Y) represents the number of transaction sets containing {X,Y}; The formula for the confidence of the association relationship is: Among them, P(Y|X) represents the degree of information about the correctness of the rule that can be used to infer the result item Y when the current item X occurs; Set the support and confidence thresholds to evaluate the information value and gain of association rules, and define s x is the support of X in D, given the minimum support S min , given the minimum confidence C min ; For item sets If x ≥S min , then X is the data set D at the minimum support S min Frequent itemsets under ; For item sets If all supersets of X are infrequent itemsets, then X is the dataset D with the minimum support S. min The maximum frequent itemset under ; For a given minimum confidence level C min Next, the probability of data quality problem points appearing in the abnormal measurement is screened out, and the data quality problem points are sorted in descending order; Construct an itemset according to the above rules: traverse the power data set and take the power consumption value in each data record as the element of the itemset.
7. The intelligent classification and decision-making method for power grid data quality problems according to claim 6, characterized in that: The method of classifying data quality issues according to association rules and finding out the key factors affecting data quality includes constructing a support count table of item sets, specifically establishing an item header table to count the frequency of each item set in the data set. The first column in the table is the frequent items arranged in descending order of support, and the second column is a node list; each frequent set is the head of a node list, which points to the position where the frequent set appears in the FP-Tree in sequence. The support count table will be used to determine the frequent item sets.
8. A system using the intelligent classification and decision-making method for power grid data quality problems as described in any one of claims 1 to 7, characterized in that: include: The data preprocessing module is used to construct a data detection model based on the rules and characteristics of the historical power grid control basic data using a clustering algorithm, and to detect the key total added measurement data in the historical power grid control basic data in real time through the data detection model; The anomaly detection and early warning module is used to analyze and mine the operation rules of power data, combine electrical physical relationships and limit parameters, generate alarm thresholds for equipment measurement data, and use the power grid topology, remote signaling and power flow constraint relationships to identify and warn abnormal telemetry data; A feature library construction module is used to construct a classification feature library for power grid control data quality issues; The association rule modeling module is used to compress the original data through the frequent pattern tree data structure using the frequent item set association algorithm to establish association rules that affect data quality; The classification decision module is used to classify data quality issues according to association rules and find out the key factors affecting data quality.
9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method for intelligent classification and decision-making of power grid data quality problems described in any one of claims 1 to 7 are implemented.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method for intelligent classification and decision-making of power grid data quality problems described in any one of claims 1 to 7 are implemented.
