Power grid report data exception cleaning method and system

By setting cluster centers in power grid report data and performing data clustering search and time-series continuity analysis, the problems of low accuracy in identifying abnormal data and low cleaning efficiency in power grid report data are solved, achieving a highly efficient data cleaning effect.

CN117520328BActive Publication Date: 2026-11-24国家电网有限公司客户服务中心
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311601147.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-11-28
Publication Date
2026-11-24
Estimated Expiration
2043-11-28

AI Technical Summary

Technical Problem

The problem of low accuracy in identifying abnormal data and low efficiency in cleaning data in power grid reports.

Method used

By constructing a report dataset, setting the number of cluster centers and randomly distributing them, performing data clustering search, obtaining search results and calculating the central gradient, executing search iterations to identify isolated data, and performing time-series continuity analysis to perform data cleaning.

Benefits of technology

This improved the accuracy of abnormal data identification and cleaning efficiency, ensuring the quality and reliability of power grid report data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117520328B_ABST
    Figure CN117520328B_ABST
Patent Text Reader

Abstract

This application discloses a method and system for cleaning abnormal power grid report data, relating to the field of data processing technology. The method includes: establishing power grid communication and performing data interaction to construct a report dataset, which contains power grid status quantity identifiers; setting the number of cluster centers based on the power grid status quantity data and randomly distributing the cluster centers, then performing a distribution determination of the cluster centers; if a predetermined number of adjacent data exist within a center determination step, the cluster center distribution is successful, and the cluster centers are used as search centers for data clustering search; obtaining one round of search results and calculating the center gradient, then moving the search center based on the calculation results; performing search iterations and identifying isolated data based on the search iteration results; performing temporal continuity analysis on the isolated data within the report dataset, and performing data cleaning based on the analysis results. This achieves the technical effect of high accuracy in identifying abnormal data and improved cleaning efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of data processing technology, and in particular to a method and system for cleaning abnormal power grid report data. Background Technology

[0002] Power grid reports contain various data related to the operation of the power system, including information such as power load, voltage, current, and power. This data is typically collected by monitoring equipment, sensors, and measuring instruments. Power grid report data is characterized by its large volume and complex formats, leading to technical challenges such as low accuracy in identifying abnormal data and low efficiency in data cleansing. Summary of the Invention

[0003] The purpose of this application is to provide a method and system for cleaning abnormal data in power grid reports. This is to solve the technical problems of low accuracy in identifying abnormal data and low cleaning efficiency in existing technologies.

[0004] In view of the above technical problems, this application provides a method and system for cleaning abnormal power grid report data.

[0005] Firstly, this application provides a method for cleaning up anomaly data in power grid reports, wherein the method includes:

[0006] A report dataset is constructed, which is obtained through data interaction after establishing power grid communication. The report dataset contains power grid status quantity identifiers. The number of cluster centers is set based on the power grid status quantity data, and the cluster centers are randomly distributed. A distribution determination of the cluster centers is performed. If a predetermined number of adjacent data exist within a center determination step, the cluster center distribution is successful. After all cluster centers are distributed, the cluster centers are used as search centers for data clustering search. One round of search results is obtained, and a center gradient is calculated on the search results. The search center is moved based on the calculation results. Search iteration is performed, and isolated data is identified based on the search iteration results. Temporal continuity analysis of the isolated data within the report dataset is performed, and data cleaning is performed based on the analysis results.

[0007] Secondly, this application also provides a power grid report data anomaly cleaning system, wherein the system includes:

[0008] The system comprises the following modules: a data interaction module for constructing a report dataset obtained through data interaction after establishing power grid communication, the report dataset containing power grid status indicators; a clustering distribution module for setting the number of cluster centers based on the power grid status data and randomly distributing the cluster centers, and performing cluster center distribution determination; a clustering search module for determining successful cluster center distribution if a predetermined number of adjacent data exist within a center determination step, and performing data clustering search using the distributed cluster centers as search centers after all cluster centers have been distributed; a center adjustment module for obtaining a round of search results, calculating the center gradient of the search results, and moving the search center based on the calculation results; an iterative search module for performing search iterations and identifying isolated data based on the search iteration results; and an analysis and cleaning module for performing temporal continuity analysis on the isolated data within the report dataset and performing data cleaning based on the analysis results.

[0009] One or more technical solutions provided in this application have at least the following technical effects or advantages:

[0010] By constructing a report dataset, obtained through data interaction after establishing power grid communication, and including power grid status indicators, the system determines the number of cluster centers based on the power grid status data and randomly distributes them. A distribution determination is then performed. If a predetermined number of adjacent data exist within a center determination step, the cluster center distribution is considered successful. Once all cluster centers are distributed, they are used as search centers for data clustering search. One round of search results is obtained, and a center gradient is calculated for each search result. The search center is then moved based on the calculation result. Search iterations are performed, and isolated data is identified based on the iteration results. Temporal continuity analysis of the isolated data within the report dataset is conducted, and data cleaning is performed based on the analysis results. This achieves the technical effect of high accuracy in identifying abnormal data and improved cleaning efficiency.

[0011] The above description is merely an overview of the technical solution of this application. In order to more clearly explain the technical means of this application, and to enable its implementation in accordance with the contents of the specification, and to make the above and other objectives, features and advantages of this application more apparent and understandable, specific embodiments of this application are described below. Attached Figure Description

[0012] The embodiments of the present invention and the following brief description are illustrated in conjunction with the figures, which are described below:

[0013] Figure 1 This is a flowchart illustrating the method for cleaning abnormal power grid report data in this application;

[0014] Figure 2 This is a flowchart illustrating the mobile search center process in the power grid report data anomaly cleaning method of this application;

[0015] Figure 3 This is a schematic diagram of the power grid report data anomaly cleaning system of this application.

[0016] Figure labeling: Data interaction module 11, clustering distribution module 12, clustering search module 13, center adjustment module 14, iterative search module 15, analysis and cleaning module 16. Detailed Implementation

[0017] This application provides a method and system for cleaning abnormal power grid report data, which solves the technical problems of low accuracy in identifying abnormal data and low cleaning efficiency in the prior art.

[0018] The overall approach adopted in this technical embodiment to solve the above problems is as follows:

[0019] First, power grid communication was established, and a report dataset was constructed, containing power grid state variable identifiers. This data, obtained through data interaction, provides a detailed description of the power grid's operational status. Then, the number of cluster centers was determined based on the power grid state variable data, and these centers were formed through random distribution. The distribution of cluster centers was determined, ensuring a predetermined number of adjacent data points within a specified step size. Once the cluster centers were successfully distributed, they were used as search centers for data clustering search. A round of search results was obtained, and a central gradient was calculated based on these results to move the search centers and more accurately capture different changes in the power grid's state. Subsequently, search iterations were performed, and isolated data was identified based on the results. Finally, temporal continuity analysis was conducted on the isolated data within the report dataset to identify temporal patterns and continuity. Based on the analysis results, data cleaning was performed. This achieves the technical effect of high accuracy in identifying abnormal data and improved cleaning efficiency.

[0020] To better understand the above technical solutions, the following detailed description will be provided in conjunction with the accompanying drawings and specific embodiments. It should be noted that the described embodiments are only a part of the embodiments of this application, not all of them. It should be understood that this application is not limited to the exemplary embodiments described herein. All other embodiments obtained by those skilled in the art based on the embodiments of this invention without creative effort are within the scope of protection of this invention. Furthermore, it should be noted that, for ease of description, only the parts related to this invention are shown in the accompanying drawings, not all of them.

[0021] Example 1

[0022] like Figure 1As shown, this application provides a method for cleaning abnormal power grid report data, the method comprising:

[0023] S100: Construct a report dataset, which is obtained by performing data interaction after establishing power grid communication, and the report dataset carries power grid status quantity identifiers;

[0024] Optionally, a communication channel can be established with the power grid monitoring system through a specific data interface, enabling data exchange, transmission, and acquisition. This includes using appropriate communication protocols to interact with power grid equipment or connecting to relevant data sources via APIs. Establishing data interaction with the power grid ensures the acquisition of real-time or periodically updated power grid status data, allowing for updates to report datasets.

[0025] Optionally, the report dataset includes data or information on the operating status, energy consumption, and fault conditions of power grid equipment. Power grid status indicators are identifiers that reflect the overall state of the data. The corresponding power grid status indicators differ for power grids of different regions, types, and compositions. For example, power grid status indicator identifiers are obtained through analysis of the target power grid monitoring deployment scheme.

[0026] Optionally, the report dataset also has a time identifier and a location identifier, wherein the time identifier reflects the time when the report data was acquired, and the location identifier reflects the location of the collection point or block corresponding to the report dataset.

[0027] S200: Set the number of cluster centers based on the power grid state data, randomly distribute the cluster centers, and perform cluster center distribution determination;

[0028] Optionally, multiple cluster centers correspond to preset states in various power grid reports. By using a preset number of cluster centers corresponding to the power grid state data, the report dataset can be divided into multiple power grid states based on data characteristics using a clustering algorithm. This allows for the retrieval and identification of outliers during the clustering process; these outliers are the abnormal data to be identified. Common clustering algorithms include K-means clustering, hierarchical clustering, and DBSCAN. Each algorithm has its applicable scenarios and characteristics. For example, K-means clustering is used, where K power grid states correspond to K cluster centers.

[0029] The cluster center distribution determination is used to ensure the quality of the cluster center distribution, thereby ensuring the quality of subsequent clustering results. Optionally, first, a decision step size is selected, which determines the neighborhood range of the cluster center. Then, the number of neighboring data points within each decision step size is determined. Neighboring data is determined by traversing the dataset to obtain the distance between excess data points and cluster centers, and comparing this distance with the decision step size. The number of neighboring data points within each decision step size is then counted, and it is checked whether the calculated number of neighboring data points meets the predetermined number. If it does, the location is marked as a cluster center.

[0030] Optionally, the step size and the number of adjacent data to be reserved are determined based on the total amount of data in the report dataset and the power grid status data in practical applications. The larger the report dataset, the larger the number of adjacent data to be reserved; the smaller the power grid status data, the larger the number of adjacent data to be reserved.

[0031] S300: If there are a predetermined number of adjacent data within the center determination step, the cluster center distribution is successful. After all cluster centers are distributed, the cluster centers are used as search centers to perform data clustering search.

[0032] Optionally, after all cluster centers are determined, these centers can be used as search centers to perform further data clustering. For example, to perform data clustering search based on the K-means clustering algorithm, first, set the cluster centers: use the cluster centers you determined as the initial centers for the K-Means clustering algorithm. Then, apply the K-Means clustering algorithm to the dataset, using the previously determined cluster centers as initial centers. This will divide the dataset into K clusters, where K is the number of cluster centers. These K clusters and the K sets of data contained in the K clusters constitute the data clustering search results.

[0033] Optionally, the clustering effect can be verified by visualizing the cluster distribution and calculating the variance within and between clusters. This helps determine whether the chosen cluster centers and algorithm parameters are appropriate.

[0034] S400: Obtain a round of search results, calculate the central gradient of the search results, and move the search center based on the calculation result;

[0035] Optionally, a central gradient is calculated for the center of each cluster. The central gradient represents the direction in which moving near the current center position might improve clustering. Gradient calculation can be performed using various methods, such as gradient descent or other optimization algorithms. Based on the calculated central gradient, the positions of the cluster centers are updated. This is achieved by making small adjustments to the current center position along the gradient direction. The moved center becomes the starting center for the next round of searching. Iterative optimization of clustering through searching center movement based on central gradient calculation ensures the effectiveness and accuracy of the clustering search.

[0036] Furthermore, such as Figure 2 As shown, a round of search results is obtained, and the central gradient of the search results is calculated. Based on the calculation result, the search center is moved. Step S400 includes:

[0037] Configure calibration step size constraints, and determine the center offset direction and offset gravity through the center gradient calculation results;

[0038] The center movement is calculated by rounding down using the offset gravity and the calibration step size constraint.

[0039] The search center is moved based on the rounded-down calculation result and the center offset direction.

[0040] The calibration step size constraint refers to the step size constraint for moving the search center. The center gradient calculation result determines the direction of movement of the search center, while the calibration step size constraint determines the distance the search center moves. The offset gravity is an index of the magnitude of the trend in the center offset direction obtained based on the center gradient calculation result, used to reflect the force or magnitude of the movement required at the current position. A larger gradient value in the center gradient calculation result results in a larger offset gravity.

[0041] Optionally, the offset direction of the center can be determined based on the calculated center gradient. The offset direction of the center is the direction of the gradient, which is the direction in which the objective function increases the most rapidly near the current center position.

[0042] Optionally, the search center is moved using offset gravity, calibration step size constraints, and center offset direction, achieving adaptive direction and distance movement of the search center. The step size is adjusted according to the offset gravity; for example, if the gradient is large, the corresponding offset gravity is large, so a larger step size is used, facilitating a faster movement of the search center to a better position in the early stages of the search iteration. Conversely, if the gradient is small, the corresponding offset gravity is small, so a smaller step size is used, enabling a more precise movement of the search center to a better position in the later stages of the search iteration. By allowing the step size to adaptively adjust in different iterations, it better adapts to the data structure and improves the efficiency of the search iteration.

[0043] S500: Performs search iterations and identifies isolated data based on the search iteration results;

[0044] Optionally, search iteration refers to using the updated cluster centers as search centers, performing data clustering search and search center movement, and repeating multiple rounds of search, center gradient calculation and center movement until a satisfactory clustering effect is achieved or convergence to a certain condition is reached.

[0045] Optionally, convergence conditions include: when the central gradients of the cluster centers are isotropically balanced or the data within each cluster converge with the objective function (standard deviation, variance, etc.) of the cluster centers for a predetermined number of consecutive iterations, the search iteration is considered to have reached the optimal solution. By iteratively adjusting the position of the cluster centers, the clustering effect is gradually optimized, thereby better adapting to the data structure and achieving better clustering results.

[0046] Furthermore, a search iteration is performed, and isolated data is identified based on the search iteration results. Step S500 includes:

[0047] During the search iteration process, determine whether there is a clustering result merging event;

[0048] If it exists, add a new center generation instruction;

[0049] Add cluster centers in the unclustered dataset according to the center generation instructions;

[0050] The clustering iteration is completed based on the distribution results of the newly added cluster centers.

[0051] Optionally, firstly, the criteria for determining a clustering event should be clearly defined. For example, during the search iteration, this could include determining if the distance between the center of a cluster and the centers of other clusters is less than or equal to twice the center determination step size, or if data points from one cluster overlap with data points from other clusters. Then, after each round of search iteration, the distance between the centers of each cluster or the overlap of data points should be monitored. If some clusters are found to have potentially been merged, a new center generation instruction is added. The center generation instruction is used to add cluster centers within the unclustered dataset. Then, the distribution of the newly added cluster centers is determined, and the next round of search iteration is performed based on the updated cluster centers.

[0052] Optionally, the entire process is performed in each search iteration to ensure that merging events are detected and handled promptly. This is used to maintain the accuracy and stability of clustering.

[0053] Furthermore, performing search iterations and identifying isolated data based on the search iteration results, step S500 also includes:

[0054] Set a threshold for the number of iterations;

[0055] Determine whether the clustering result merging event occurs after the threshold number of iterations;

[0056] If the clustering result merging event occurs after the iteration number threshold, no new cluster centers will be added, and the clustering iteration will be completed based on the clustering merging results.

[0057] Optionally, if a clustering result merging event occurs after the iteration count threshold, it indicates a deviation in the power grid state data or that the target power grid report dataset does not actually contain power grid report data for all states in the power grid state data. The clusters that disappear after the merging event are clusters corresponding to one or more missing power grid states in the target power grid report dataset. No new cluster centers are needed. The iteration count threshold ensures that the clusters have undergone a certain number of iterations of clustering search when a merging event occurs. If the merging event occurs after the iteration count threshold, it indicates that the merging is not accidental or due to unreasonable cluster center locations. Through the above method steps, the rationality of merging during the clustering process is fully considered, maintaining the accuracy of the clustering results.

[0058] S600: Perform time-series continuity analysis on the isolated data within the report dataset, and perform data cleaning based on the analysis results.

[0059] Optionally, isolated data is obtained based on iterative search results, evaluating whether a given point is isolated. The method involves setting an objective function (e.g., the sum of squared cluster errors in the kmene method); if removing a point significantly improves this objective function, then that point can be identified as an isolated point.

[0060] Optionally, based on the analysis results, perform appropriate data cleaning operations. These include deleting orphaned data, repairing outliers, interpolation, and smoothing. Furthermore, record the data cleaning operations performed to track the data processing history. This helps in further analysis and management of the report dataset based on the history of outlier data cleaning, and allows for further improvement of the cleaning strategy based on subsequent data observation and analysis.

[0061] Furthermore, step S600 further includes performing time-series continuity analysis on the isolated data within the report dataset, and also includes:

[0062] The isolated data collection time node is invoked, and a judgment time window is created based on the collection time node, wherein the time window includes the time period before and after the collection time node;

[0063] The report dataset data within the time window is retrieved, and the retrieved data is recorded as associated data;

[0064] The trend consistency of the corresponding isolated data is determined using the associated data;

[0065] The temporal continuity analysis is completed based on the judgment results.

[0066] By analyzing the continuity of time series, isolated data is compared with adjacent data in the report dataset, and timestamps or other time series attributes are checked to analyze the continuity of data in time series.

[0067] Specifically, time series continuity analysis includes: timestamp analysis, used to ensure there are no abnormal intervals or jumps between the timestamps of isolated data and adjacent data; numerical change analysis, used to analyze the numerical changes between adjacent data points to see if the isolated data conforms to a reasonable numerical change trend; and anomaly detection, using anomaly detection algorithms such as Isolation Forest or LOF (Local Outlier Factor) to identify whether isolated data contains anomalies. Through these steps, isolated data can be better processed, ensuring the data integrity of the report dataset and improving data quality and reliability.

[0068] For example, the time periods before and after the collection time node of isolated data are obtained to generate a time window. Then, a coordinate system for the time series and consistency judgment parameters within this time window is established. Multiple related data within the time window are represented as multiple coordinate points in the above coordinate system. Based on regression calculation, a mathematical model or equation reflecting the trend of the related data is obtained as a trend consistency judgment operator. Finally, the trend consistency of isolated data is judged using the above trend consistency judgment operator, and the deviation or confidence level of the isolated data is calculated to obtain the judgment result.

[0069] Furthermore, in one feasible embodiment, the method further includes:

[0070] The report dataset is sorted in order, and the region is divided into grids based on the number of cluster centers according to the sorting result, generating the grid division result;

[0071] In the grid partitioning results, cluster centers are randomly distributed, and the distribution of cluster centers is determined.

[0072] When a cluster within any grid partitioning result is merged, a new cluster center distribution is created based on the same grid constraint, and the clustering iteration is completed based on the result of the new cluster center distribution.

[0073] Optionally, the report dataset is sorted using the Analytic Hierarchy Process (AHP). The decision objectives, decision criteria (factors considered), and decision objects corresponding to the report dataset are plotted as a hierarchical diagram, including an objective layer, a criterion layer, and a sub-criterion layer. The decision objective is the power grid state, the decision object is the report data, and the decision criteria are determined based on report analysis rules. A pairwise comparison method is used to compare the relative importance of each pair of criteria, using a scale from 1 to 9, where 1 represents equal importance and 9 represents extreme importance. Then, a judgment matrix is ​​constructed based on the pairwise comparison results, with each element representing the relative weight of a criterion. Next, the weight vector for each criterion is calculated using AHP mathematical calculation methods. Finally, each report data point in the report dataset is multiplied by the weight of the criterion to obtain a comprehensive score for the report data, and the dataset is sorted based on these comprehensive scores.

[0074] Optionally, when a cluster within any grid partitioning result sends a merge event, the distribution of new cluster centers is determined based on the same-grid constraint. This same-grid constraint specifies the generation location of the new clusters, and can include, for example, generating them within the partitioning grid where the merge event occurred, or generating them within the partitioning grid that was merged. This helps to discover clustering structures in different regions of the dataset and to iteratively adjust the distribution of cluster centers.

[0075] It is important to understand that the cluster swallowing event detection within any grid partitioning result is implemented based on the same method principle as the aforementioned swallowing event detection. For the sake of brevity, further explanation will not be provided here.

[0076] Furthermore, in one feasible embodiment, the method further includes:

[0077] Establish a feedback network, which is a statistical network that performs cleaning feedback based on the data cleaning results;

[0078] The feedback network generates feedback constraints based on the data cleaning results;

[0079] The basic parameters for subsequent data cleaning are optimized based on the feedback constraints.

[0080] Optionally, a feedback network is used to generate statistical feedback on the cleaning quality based on the data cleaning results. Feedback analysis results are generated by analyzing and statistically processing the data cleaning. These results reflect the cleaning quality, such as the type and frequency of cleaning errors.

[0081] Optionally, a set of feedback constraints can be generated using the statistical results of the feedback network. These feedback constraints involve optimizations or adjustments to data cleaning requirements or standards, as well as parameter changes. They are used to guide subsequent data cleaning work. The generated feedback constraints are used to optimize the basic parameters of subsequent data cleaning, better satisfying the previously set feedback constraints and improving the effectiveness of data cleaning. Examples include adjustments to step size, threshold, number of iterations, or changes to constraint conditions.

[0082] In summary, the power grid report data anomaly cleaning method provided by this invention has the following technical effects:

[0083] By constructing a report dataset, obtained through data interaction after establishing power grid communication, and including power grid status indicators, the system determines the number of cluster centers based on the power grid status data and randomly distributes them. A distribution determination is then performed. If a predetermined number of adjacent data exist within a center determination step, the cluster center distribution is considered successful. Once all cluster centers are distributed, they are used as search centers for data clustering search. One round of search results is obtained, and a center gradient is calculated for each search result. The search center is then moved based on the calculation result. Search iterations are performed, and isolated data is identified based on the iteration results. Temporal continuity analysis of the isolated data within the report dataset is conducted, and data cleaning is performed based on the analysis results. This achieves the technical effect of high accuracy in identifying abnormal data and improved cleaning efficiency.

[0084] Example 2

[0085] Based on the same concept as the power grid report data anomaly cleaning method in the above embodiment, such as Figure 3 As shown, this application also provides a power grid report data anomaly cleaning system, the system comprising:

[0086] Data interaction module 11 is used to construct a report dataset, which is obtained by performing data interaction after establishing power grid communication, and the report dataset carries power grid status quantity identifiers;

[0087] Clustering distribution module 12 is used to set the number of cluster centers based on the power grid state data, randomly distribute the cluster centers, and perform distribution determination of the cluster centers;

[0088] The clustering search module 13 is used to determine if there are a predetermined number of adjacent data within the center determination step, then the clustering center distribution is successful. After all clustering centers are distributed, the clustering center is used as the search center to perform data clustering search.

[0089] The center adjustment module 14 is used to obtain a round of search results, perform center gradient calculation on the round of search results, and move the search center based on the calculation results;

[0090] Iterative search module 15 is used to perform search iterations and determine isolated data based on the search iteration results;

[0091] The analysis and cleaning module 16 is used to perform time-series continuity analysis on the isolated data within the report dataset and to perform data cleaning based on the analysis results.

[0092] Furthermore, the center adjustment module 14 also includes:

[0093] The offset calculation unit is used to configure the calibration step size constraint and determine the center offset direction and offset gravity through the center gradient calculation results.

[0094] The rounding calculation unit is used for downward rounding calculation of the center movement with the offset gravity and the calibration step size constraint;

[0095] The search center movement unit is used to move the search center based on the rounding down calculation result and the center offset direction.

[0096] Furthermore, the iterative search module 15 also includes:

[0097] The merge event discrimination unit is used to determine whether there is a clustering result merge event during the search iteration process;

[0098] A new instruction generation unit is added to generate new central instructions if they exist.

[0099] The cluster center addition unit is used to add cluster centers in the unclustered dataset according to the center generation instruction;

[0100] The decision iteration unit is used to complete the clustering iteration based on the distribution of newly added cluster centers.

[0101] Furthermore, the iterative search module 15 also includes:

[0102] Threshold setting unit, used to set the threshold number of iterations;

[0103] An iterative discrimination unit is used to determine whether a clustering result merging event occurs after the iteration number threshold.

[0104] The merging iteration unit is used to prevent the addition of new cluster centers and complete the clustering iteration based on the clustering merging results if the clustering result merging event occurs after the iteration number threshold.

[0105] Furthermore, the analysis and cleaning module 16 also includes:

[0106] A window setting unit is used to call the collection time node of the isolated data and create a judgment time window based on the collection time node, wherein the time window is a time window that includes the time period before and after the collection time node;

[0107] The data retrieval unit is used to retrieve report dataset data within the time window and record the retrieved data as associated data.

[0108] A trend consistency determination unit is used to determine the trend consistency of corresponding isolated data based on the associated data.

[0109] The temporal continuity analysis unit is used to perform temporal continuity analysis based on the decision results.

[0110] Furthermore, the system also includes:

[0111] The regional grid partitioning unit is used to sort the data of the report dataset in order, and to partition the regional grid according to the number of cluster centers based on the sorting result, thereby generating the grid partitioning result.

[0112] A random distribution unit is used to randomly distribute cluster centers in the grid partitioning result and perform cluster center distribution determination;

[0113] The grid clustering iteration unit is used to add new cluster center distributions based on the same grid constraint when a cluster within any grid partitioning result is merged, and completes the clustering iteration based on the result of the new cluster center distribution.

[0114] Furthermore, the system also includes:

[0115] A feedback construction unit is used to establish a feedback network, which is a statistical network that performs cleaning feedback based on data cleaning results;

[0116] A feedback constraint unit is used to generate feedback constraints based on the data cleaning results using the feedback network.

[0117] The cleaning and optimization unit is used to optimize the basic parameters of subsequent data cleaning based on the feedback constraints.

[0118] It should be understood that the focus of the embodiments mentioned in this specification is their difference from other embodiments. The specific embodiments in the aforementioned Embodiment 1 are also applicable to the power grid report data anomaly cleaning system described in Embodiment 2. For the sake of brevity, they will not be further elaborated here.

[0119] It should be understood that the embodiments disclosed in this application and the above description can enable those skilled in the art to implement this application. At the same time, this application is not limited to the embodiments mentioned above; obvious modifications and variations to the embodiments mentioned in this application also fall within the scope of this application's principles.

Claims

1. A method for cleaning abnormal data in power grid reports, characterized in that, The method includes: A report dataset is constructed, which is obtained by performing data interaction after establishing power grid communication, and the report dataset contains power grid status quantity identifiers. The number of cluster centers is set based on the power grid state data, and the cluster centers are randomly distributed to perform a distribution determination of the cluster centers; If a predetermined number of adjacent data exist within the center's determination step size, then the cluster center distribution is successful. Once all cluster centers have been distributed, the cluster centers are used as search centers to perform data clustering search. Obtain a round of search results, calculate the central gradient of the search results, and move the search center based on the calculation result; Perform search iterations and identify isolated data based on the search iteration results; Perform time-series continuity analysis on the isolated data within the report dataset, and perform data cleaning based on the analysis results; The step of performing time-series continuity analysis on the isolated data within the report dataset also includes: The isolated data collection time node is invoked, and a judgment time window is created based on the collection time node, wherein the time window includes the time period before and after the collection time node; The report dataset data within the time window is retrieved, and the retrieved data is recorded as associated data; The trend consistency of the corresponding isolated data is determined using the associated data; The temporal continuity analysis is completed based on the judgment results.

2. The method as described in claim 1, characterized in that, The method further includes: Configure calibration step size constraints, and determine the center offset direction and offset gravity through the center gradient calculation results; The center movement is calculated by rounding down using the offset gravity and the calibration step size constraint. The search center is moved based on the rounded-down calculation result and the center offset direction.

3. The method as described in claim 2, characterized in that, The method further includes: During the search iteration, it is determined whether there is a clustering result merging event. The criteria for determining the merging event include: if the distance between the center of a cluster and the center of other clusters is less than or equal to twice the center determination step size, or if the data points of a cluster overlap with the data points of other clusters during the search iteration. If it exists, add a new center generation instruction; Add cluster centers in the unclustered dataset according to the center generation instructions; The clustering iteration is completed based on the distribution results of the newly added cluster centers.

4. The method as described in claim 3, characterized in that, The method further includes: Set a threshold for the number of iterations; Determine whether the clustering result merging event occurs after the threshold number of iterations; If the clustering result merging event occurs after the iteration number threshold, no new cluster centers will be added, and the clustering iteration will be completed based on the clustering merging results.

5. The method as described in claim 1, characterized in that, The method further includes: The report dataset is sorted in order, and the region is divided into grids based on the number of cluster centers according to the sorting result, generating the grid division result; In the grid partitioning results, cluster centers are randomly distributed, and the distribution of cluster centers is determined. When a cluster merge event occurs within any grid partitioning result, a new cluster center distribution is added based on the same grid constraint, and the clustering iteration is completed based on the result of the new cluster center distribution.

6. The method as described in claim 1, characterized in that, The method further includes: Establish a feedback network, which is a statistical network that performs cleaning feedback based on the data cleaning results; The feedback network generates feedback constraints based on the data cleaning results; The basic parameters for subsequent data cleaning are optimized based on the feedback constraints.

7. A power grid report data anomaly cleaning system, characterized in that, The system is used to perform the method according to any one of claims 1-6, the system comprising: The data interaction module is used to construct a report dataset, which is obtained by performing data interaction after establishing power grid communication, and the report dataset carries power grid status quantity identifiers. A clustering distribution module is used to set the number of cluster centers based on the power grid state data, randomly distribute the cluster centers, and perform distribution determination of the cluster centers; The clustering search module is used to determine if a predetermined number of adjacent data exist within a center determination step, in which case the clustering center distribution is successful. After all clustering centers are distributed, the clustering center is used as the search center to perform data clustering search. A center adjustment module is used to obtain a round of search results, perform center gradient calculation on the round of search results, and move the search center based on the calculation result. An iterative search module is used to perform search iterations and determine isolated data based on the search iteration results. An analysis and cleaning module is used to perform time-series continuity analysis on the isolated data within the report dataset, and to perform data cleaning based on the analysis results. The analysis and cleaning module also includes: A window setting unit is used to call the collection time node of the isolated data and create a judgment time window based on the collection time node, wherein the time window is a time window that includes the time period before and after the collection time node; The data retrieval unit is used to retrieve report dataset data within the time window and record the retrieved data as associated data. A trend consistency determination unit is used to determine the trend consistency of corresponding isolated data based on the associated data. The temporal continuity analysis unit is used to perform temporal continuity analysis based on the decision results.

Citation Information

Patent Citations

  • Abnormal account identification method and system, computing device and storage medium

    CN114201999A

  • Line loss abnormity identification method of power distribution network

    CN116522268A