Method, system, electronic device and storage medium for optimizing missing fitting of metering data at plant and station gateways based on historical data analysis
By using a method based on historical data analysis and combining data missing characteristics and equipment failure modes to perform power fitting and filling, the deviation problem in the processing of missing measurement data in the existing technology is solved, and the data accuracy and stability of the power system are improved.
Patent Information
- Application Number
- CN202410828711.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-25
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2044-06-25
AI Technical Summary
When dealing with missing metering data at power system plant and station gates, the existing technology fails to fully consider factors such as equipment failure modes, load change trends, and meteorological conditions, causing the fitted power data to deviate from the actual situation, affecting the accuracy and accuracy of the metering data. Analyze effectiveness.
Using a method based on historical data analysis, by obtaining metering data information and equipment fault records, extracting missing data feature vectors, combining load characteristics, meteorological characteristics and holiday effects, traversing historical data to obtain the target power with the highest similarity, and calculating based on fault sets Correction coefficient, power fitting and filling.
It improves the accuracy and completeness of metering data, ensures the fairness of power market transactions and the accuracy of power grid dispatching decisions, and enhances the operational stability of the power system and the intelligent level of operation management.
Smart Images

Figure CN118378156B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of power metering, and in particular to a method, system, electronic device and storage medium for optimizing missing fitting of metering data at a power station gateway based on historical data analysis. Background Art
[0002] In the daily operation and management of the power system, the plant-station gateway is a key node for the exchange of electric energy. The accuracy and integrity of its metering data are crucial to ensure the fairness of power market transactions, the stable operation of the power system and the reliability of economic evaluation. However, in actual operations, due to factors such as aging of metering equipment and external environmental interference, metering data is often missing to varying degrees, which not only directly affects the accuracy of electricity settlement, but may also interfere with the efficiency and quality of grid dispatch decisions and power market analysis.
[0003] Existing methods for dealing with missing data, such as linear interpolation and nearest neighbor filling, are simple and easy to use, but they often ignore the specific context of missing data and fail to fully consider the potential impact of factors such as equipment failure modes, load change trends, and meteorological fluctuations on electricity consumption patterns. Existing simple filling strategies often cause the fitted electricity data to deviate from the actual situation, resulting in reduced availability of metering data and reduced effectiveness of analysis. Summary of the invention
[0004] To solve the above technical problems, the present invention provides a method, system, electronic device and storage medium for optimizing missing fitting of metering data at plant and substation gateways based on historical data analysis, which improves the efficiency of the power system and increases the operational stability of the power system.
[0005] In a first aspect, the present invention provides a method for optimizing missing fitting of metering data at a plant / station gateway based on historical data analysis, the method comprising:
[0006] Obtain metering data information at plant and station gateways and fault record information of metering equipment at plant and station gateways;
[0007] Inputting the metering data information at the plant / station gateway into a pre-built metering data missing feature extraction model to obtain a metering data missing feature vector; the metering data missing feature vector includes a data missing topological range and a data missing time range;
[0008] Obtaining a measurement data influencing feature set in the same dimension as the measurement data missing feature vector;
[0009] According to the metering data influencing feature set, traverse the pre-collected historical metering data information of the plant and station gateway to obtain the target power with the highest similarity to the metering data influencing feature set;
[0010] Based on the missing characteristic vector of metering data, the fault record information of the metering equipment at the plant and station is screened, and the metering equipment at the plant and station that fails under the condition limited by the missing characteristic vector of metering data is counted to generate the fault set of metering equipment at the plant and station;
[0011] Input the fault set of metering equipment at the plant and substation into the pre-built target power correction analysis model to obtain the correction coefficient of missing metering data;
[0012] Based on the target electricity quantity and the metering data missing correction coefficient, the fitted electricity quantity of the missing metering data at the plant / station gateway is calculated and filled back into the metering data information at the plant / station gateway.
[0013] Furthermore, the calculation formula of the target power correction analysis model is:
[0014] ;
[0015] Where C represents the missing measurement data correction coefficient; It is k The indicator variable of the type of fault, there are K different types of faults; It is with k The correction factor related to the type of fault is used to characterize the degree of influence of different fault types on power loss; Indicates The number of days that equipment failures lasted, a total of The duration of each fault instance is considered; It is Correction parameter for the duration of a device fault.
[0016] Furthermore, a method for acquiring a target power quantity having the highest similarity to the measurement data influencing feature set includes:
[0017] Standardize the set of features that influence measurement data;
[0018] Traverse the historical measurement data information and calculate the similarity between each historical measurement data and the influencing feature set of the current measurement data;
[0019] Arrange the calculated similarities in descending order;
[0020] Select the historical metering data with the highest similarity, and select its metering power as the "target power".
[0021] Furthermore, the method for obtaining the plant and station gateway metering equipment fault set includes:
[0022] The missing characteristic vector of measurement data is used as the screening condition, where the data missing topological range limits the specific location where the data missing occurs, and the data missing time range limits the start and end time of the data missing;
[0023] According to the screening conditions, query and filter the metering equipment fault record database to filter out the fault records that occurred within the data missing time range and data missing topology range;
[0024] The filtered fault records are statistically analyzed to identify the types of equipment faults and their duration, and generate a set of plant gateway metering equipment faults; the plant gateway metering equipment fault set includes the types of faults and durations that occurred within the data missing time range and the data missing topology range.
[0025] Furthermore, the metering equipment fault record database includes:
[0026] Equipment basic information table: used to record the basic information of each metering equipment, including equipment ID, model, installation location, factory station and installation date;
[0027] Fault record table: used to record detailed information of each fault event, including fault ID, associated device ID, fault start time, end time, fault type, fault description, handling measures and handling results;
[0028] Data missing feature table: used to store the missing feature vectors of metering data related to faulty equipment, including feature ID, associated fault record ID, data missing time period, missing data type and data fluctuation characteristics.
[0029] Furthermore, the method of calculating the missing fitted electricity quantity of the plant and station gateway metering data and filling it back into the plant and station gateway metering data information includes:
[0030] Multiply the target power by the measurement data missing correction coefficient to obtain the fitted power;
[0031] Perform time series smoothing on the fitted electrical quantity and its adjacent actual measured values;
[0032] The smoothed fitted electricity is used to fill in the missing positions in the original data set according to its corresponding timestamp;
[0033] For filled data points, they are marked as "fitted values" in the database to distinguish them from direct measurements.
[0034] Furthermore, the metering data influencing feature set includes load characteristics, meteorological characteristics and holiday effects;
[0035] Load characteristics include daily load curves, weekly load patterns, and seasonal load variations;
[0036] Meteorological characteristics include temperature, humidity, wind speed, rainfall, and sunshine duration;
[0037] The holiday effect includes the change in the total load value and the change in the shape of the load curve on weekdays, weekends and statutory holidays.
[0038] On the other hand, the present application also provides a plant station gateway metering data missing fitting optimization system based on historical data analysis, the system comprising:
[0039] Data acquisition module, used to obtain metering data information at plant and station gateways and fault record information of metering equipment at plant and station gateways;
[0040] A feature extraction module is used to input the metering data information of the plant and station gateway into a pre-built metering data missing feature extraction model to obtain a metering data missing feature vector; the metering data missing feature vector includes a data missing topological range and a data missing time range;
[0041] An influencing feature set acquisition module, used to acquire a measurement data influencing feature set in the same dimension as the measurement data missing feature vector;
[0042] The historical data analysis module traverses the pre-collected historical metering data information of the plant and station gateways according to the metering data influencing feature set, and obtains the target power with the highest similarity to the metering data influencing feature set;
[0043] The fault impact analysis module screens the fault record information of the metering equipment at the plant and station based on the missing characteristic vector of the metering data, counts the metering equipment at the plant and station that fails under the condition limited by the missing characteristic vector of the metering data, and generates a set of metering equipment faults at the plant and station;
[0044] The correction coefficient calculation module inputs the fault set of the metering equipment at the plant and station into the pre-built target power correction analysis model to obtain the correction coefficient of missing metering data;
[0045] The fitting power calculation and filling module calculates the fitting power of the missing power of the plant and station gateway metering data based on the target power and the metering data missing correction coefficient, and fills it back into the plant and station gateway metering data information.
[0046] In a third aspect, the present application provides an electronic device, comprising a bus, a transceiver, a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the transceiver, the memory, and the processor are connected via the bus, and the computer program, when executed by the processor, implements the steps of any one of the above methods.
[0047] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program implements the steps in any one of the above-mentioned methods when executed by a processor.
[0048] Compared with the prior art, the present invention has the following beneficial effects: by introducing the missing characteristic vector of measurement data, the method can more carefully describe the situation of missing data, help to more accurately identify the real cause of missing data, and thus improve the accuracy of fitting results;
[0049] This method not only considers the similarity of historical data, but also takes the equipment failure mode into consideration by analyzing the failure records of metering equipment, and combines the influencing feature set formed by factors such as load change trends and meteorological conditions, so that the fitting process can more comprehensively reflect the complex situation in actual operation;
[0050] The correction coefficient calculated based on the set of faulty equipment realizes personalized adjustment of the fitted power. This dynamic correction mechanism can effectively make up for the fitting deviation caused by the traditional method ignoring the impact of specific faults. By finely filling the missing data, the integrity and reliability of the metering data at the plant and station are significantly improved, thereby ensuring the fairness of power market transactions, the accuracy of power grid dispatching decisions, and the effectiveness of economic evaluation.
[0051] The entire method process reflects the application of big data and machine learning technology, which can automatically process large amounts of data, reduce manual intervention, and improve the intelligence level and efficiency of power system operation and management;
[0052] In summary, this method significantly improves the processing effect of missing metering data, improves the efficiency of the power system, and increases the operational stability of the power system through sophisticated data feature analysis, multi-dimensional factor fusion considerations, and intelligent correction strategies. BRIEF DESCRIPTION OF THE DRAWINGS
[0053] Figure 1 is a logic flow chart of the present invention;
[0054] Figure 2 It is a flowchart of the method for constructing a missing feature extraction model for measurement data;
[0055] Figure 3 It is the structural diagram of the missing fitting optimization system of metering data at plant and station gateways based on historical data analysis. DETAILED DESCRIPTION
[0056] In the description of this application, those skilled in the art should know that this application can be implemented as a method, an apparatus, an electronic device, and a computer-readable storage medium. Therefore, this application can be specifically implemented in the following forms: complete hardware, complete software (including firmware, resident software, microcode, etc.), a combination of hardware and software. In addition, in some embodiments, this application can also be implemented in the form of a computer program product in one or more computer-readable storage media, and the computer-readable storage medium contains computer program code.
[0057] The above-mentioned computer-readable storage medium may adopt any combination of one or more computer-readable storage media. Computer-readable storage media include: electrical, magnetic, optical, electromagnetic, infrared or semiconductor systems, devices or devices, or any combination of the above. More specific examples of computer-readable storage media include: portable computer disks, hard disks, random access memories, read-only memories, erasable programmable read-only memories, flash memories, optical fibers, optical disc read-only memories, optical storage devices, magnetic storage devices, or any combination of the above. In the present application, computer-readable storage media can be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, device, or device.
[0058] The acquisition, storage, use, and processing of data in the technical solution of this application comply with the relevant provisions of national laws.
[0059] The present application describes the provided methods, devices, and electronic devices through flowcharts and / or block diagrams.
[0060] It should be understood that each box in the flowchart and / or block diagram and the combination of boxes in the flowchart and / or block diagram can be implemented by computer-readable program instructions. These computer-readable program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer or other programmable data processing device to produce a machine, and these computer-readable program instructions are executed by a computer or other programmable data processing device to produce a device that implements the functions / operations specified by the boxes in the flowchart and / or block diagram.
[0061] These computer-readable program instructions may also be stored in a computer-readable storage medium that enables a computer or other programmable data processing device to work in a specific manner. In this way, the instructions stored in the computer-readable storage medium produce an instruction device product including functions / operations specified in the blocks in the flowchart and / or block diagram.
[0062] Computer-readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device, so that a series of operational steps are performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process, thereby enabling the instructions executed on the computer or other programmable data processing apparatus to provide a process for implementing the functions / operations specified in the blocks in the flowchart and / or block diagram.
[0063] The present application is described below in conjunction with the drawings in the present application.
[0064] Embodiment 1: Figure 1 to Figure 2 As shown, the plant station gateway metering data missing fitting optimization method based on historical data analysis of the present invention specifically includes the following steps:
[0065] S1. Obtaining metering data information at the plant and station gateway and fault record information of metering equipment at the plant and station gateway;
[0066] Step S1 is the starting point of the entire data missing fitting optimization method, which involves the collection and organization of two key data sets and is the basis for all subsequent analysis and processing. The following is a detailed introduction to step S1:
[0067] Obtain metering data information at the plant and station gateway: obtain real-time and historical electric energy metering data at the plant and station gateway from the power dispatching center, automated monitoring system, and metering automation system; electric energy metering data includes electricity, voltage, current, and power factor, and the recording time interval is set according to actual needs; before the data is officially used, the collected data is quality controlled, including checking the integrity, continuity, and rationality of the data, eliminating obviously erroneous data points, and ensuring that the data used truly reflects the actual operating conditions of the plant and station;
[0068] Integrate metering equipment fault record information: collect metering equipment fault records from equipment maintenance management system, work ticket system and fault report; metering equipment fault record information includes fault occurrence time, fault type, duration, affected metering points and repair details;
[0069] Analyze fault records: identify common fault modes, understand the extent and characteristics of the impact of different faults on metering data, and prepare for subsequent fault impact assessments; establish a corresponding relationship between fault records and metering data, and clarify which metering data absences and anomalies are directly caused by known equipment failures.
[0070] In this step, by collecting and controlling the quality of metering data at the plant and station gates, it is possible to ensure that the data used is authentic and accurate, thereby improving the reliability of subsequent analysis and processing; integrating metering equipment fault record information helps to establish an understanding of equipment failure modes and identify common fault types; it provides a basis for subsequent fault impact assessment and can help the operation and maintenance team better understand the equipment operating status; establishing a correspondence between fault records and metering data can clearly determine which metering data missing anomalies are directly caused by known equipment failures; it helps to more accurately consider the impact of equipment failures on data in the subsequent data missing fitting process, and improve the accuracy and reliability of data fitting; through the integrated analysis of historical data and fault records, it can provide support for the operation decision-making of the power system and improve the stability and reliability of the system;
[0071] In summary, the beneficial effects of step S1 include improving data quality, providing a basis for fault analysis, clarifying the association between data and faults, and supporting operational decisions.
[0072] S2. Inputting the metering data information of the plant and station gateway into a pre-built metering data missing feature extraction model to obtain a metering data missing feature vector; the metering data missing feature vector includes a data missing topological range and a data missing time range;
[0073] Step S2 involves the design and application of a missing feature extraction model for metering data, the purpose of which is to extract missing data features from metering data at the plant and station gateways so that subsequent steps can optimize and fill in missing data based on these features;
[0074] The method for constructing the measurement data missing feature extraction model includes:
[0075] S21. Collect historical measurement data and pre-process the collected data, including processing missing values, outliers and data standardization, eliminating noise and ensuring data quality;
[0076] S22, selecting a machine learning model as the infrastructure of the measurement data missing feature extraction model, wherein the machine learning model includes a neural network, a random forest, and a support vector machine;
[0077] S23, divide the data set into a training set and a validation set to ensure that there is independent data to evaluate the model performance during the model training process; use the training set to train the selected model and adjust the model parameters;
[0078] S24. Evaluate the feature extraction effect of the feature extraction model for missing measurement data through the validation set; adjust the model architecture and parameters according to the validation results;
[0079] S25. Verify the generalization ability of the model on an independent test set to ensure that the model not only performs well on the training data, but can also be effectively applied to unseen data;
[0080] S26. Apply the trained model to actual data to extract missing features of measurement data.
[0081] In this step, the missing data features can be extracted from the metering data at the plant station through the missing feature extraction model of metering data, which helps to understand the specific situation of missing data and provide guidance for subsequent data filling and analysis; in the process of building the model, data preprocessing is first performed to ensure the quality of the data, which helps to improve the accuracy and stability of the model; the data set is divided into a training set and a validation set, and the model is trained on the training set and the model performance is evaluated on the validation set to ensure that the model has independent data for evaluation during the training process, thereby improving the generalization ability of the model; the generalization ability of the model is verified on an independent test set to ensure that the model not only performs well on the training data, but can also be effectively applied to unseen data; it helps to verify the actual application effect of the model and improve the reliability of the model in actual scenarios; the trained model is applied to actual data to extract missing features of metering data; the results of the model output can obtain feature information about missing data, which provides an important reference for subsequent data filling and analysis.
[0082] More specifically, the missing data feature vector of measurement mainly includes two core dimensions: the topological range of missing data and the time range of missing data;
[0083] Data missing topological scope: This can be a vector or code that indicates in which area or nodes of the power grid the data missing occurs. It can be regarded as the geographical distribution of metering data in the power network or the identification of a specific circuit segment to define the physical area where the data missing occurs. For example, if the power grid is divided into different topological areas, it can be represented by a binary vector, where 1 indicates that there is data missing in the area and 0 indicates no missing data. More complex expressions include direct encoding of the topological structure, such as node numbers or geographical coordinates.
[0084] Data missing time range: Use time series or time intervals to express the specific time period when data missing occurs; for example, a time period can be defined by a combination of a start time point and an end time point, or expressed as a relative time (such as the number of hours from the last complete record);
[0085] When training the missing metering data feature extraction model, the input parameters include the electricity and timestamp of the historical metering data, as well as the marking information of the missing data, that is, which data points are missing; the missing data topological range and time range are used as additional input features or as part of the post-processing of the missing metering data feature extraction model training to guide the generation of feature vectors; the output of the missing metering data feature extraction model is the missing metering data feature vector, including the encoding of the missing data topological range and the encoding of the missing data time range.
[0086] For example, suppose there is a metering data set that records the electricity data of multiple metering points in a plant station over a period of time; the input of the metering data missing feature extraction model is a vector containing the following information: [timestamp, electricity, geographic location code]; among them, the geographic location code and timestamp can help the metering data missing feature extraction model understand the spatiotemporal distribution of the data, and the electricity is the actual metering data; the output of the metering data missing feature extraction model is the metering data missing feature vector, that is, [topological range code, missing start time code, missing end time code]; the topological range code and missing time code are feature representations obtained after model processing based on the geographic location and timestamp information in the input data.
[0087] S3, obtaining a metering data influencing feature set in the same dimension as the metering data missing feature vector, wherein the metering data influencing feature set includes load characteristics, meteorological characteristics, and holiday effects;
[0088] Step S3 aims to comprehensively consider the impact of various factors on the potential missing of metering data at the plant and station gateway, so as to improve the accuracy and practicality of subsequent data fitting; the following is a detailed description of step S3:
[0089] Load characteristics: By analyzing the historical data of the plant SCADA system, the historical load data of the plant and station are collected, including daily load curves, weekly load patterns, and seasonal load changes. These data reveal the law of changes in power demand over time; by analyzing the historical load data, the statistical characteristics of maximum load, minimum load, average load, load peak-to-valley difference, load change rate, and the shape characteristics of the load curve are extracted;
[0090] Meteorological characteristics: Meteorological service providers that cooperate with power companies or operate independently collect real-time and historical meteorological data through a network of meteorological stations, integrating synchronized meteorological data from meteorological stations, including temperature, humidity, wind speed, rainfall, and sunshine duration; analyzing the correlation between meteorological parameters and historical load data to identify which meteorological factors have a significant impact on load; constructing meteorological influencing factors based on the results of the correlation analysis;
[0091] Holiday effect: The dispatch center of the power system uses EMS to coordinate power generation, transmission and distribution. The system contains a large amount of historical operating data, which can be used to analyze the impact of holiday effects on load patterns; organize holiday calendars over the years, identify weekdays, weekends, statutory holidays, and mark special events; analyze the differences in load patterns between holidays and non-holidays, including changes in the total load and changes in the shape of the load curve; assign a corresponding holiday label to each date to indicate the holiday type as part of the feature; among them, the change in the curve shape can be characterized by a variety of characteristic quantities, such as statistical indicators such as maximum load, minimum load, average load, load peak-to-valley difference, load change rate, and mathematical characteristics such as the slope and curvature of the load curve; through these quantitative indicators, the difference in the shape of the load curve between holidays and non-holidays can be quantitatively analyzed, thereby more accurately reflecting the impact of the holiday effect on the load pattern.
[0092] In this step, by collecting historical load data and extracting relevant statistical features, we can better understand the changing laws of power demand, help identify the trends and patterns of load fluctuations, and provide important references for subsequent data fitting; by integrating meteorological data and analyzing its correlation with historical load data, we can determine the meteorological factors that have a significant impact on the load; constructing meteorological influencing factors can more accurately predict load changes and improve the accuracy of data fitting; by analyzing the differences in load patterns during holidays and non-holidays, we can identify the impact of specific dates on the load; using holiday labels as part of the features can better distinguish the load characteristics of different dates, thereby more accurately filling in the missing metering data;
[0093] In summary, the beneficial effect of step S3 is that by comprehensively considering the impact of multiple factors on metering data, the accuracy and practicality of data fitting are improved; this helps to ensure the reliability of subsequent data analysis and decision-making, thereby improving the operating efficiency and stability of the power system.
[0094] S4. According to the metering data influencing feature set, traverse the pre-collected historical metering data information of the plant and station gateways to obtain the target power with the highest similarity to the metering data influencing feature set;
[0095] Step S4 is responsible for finding the samples that are most similar to the current data missing situation from the historical data, so as to facilitate the subsequent power fitting; this step can be understood as a matching technology based on feature similarity, which aims to locate those instances that are most consistent with the current data missing scenario in terms of load characteristics, meteorological conditions and holiday effects by comparing various influencing factors in the historical data;
[0096] The method for obtaining the target power with the highest similarity to the measurement data influencing feature set includes:
[0097] S41. Standardize the feature set that affects the measurement data to ensure that each feature is compared at the same level to avoid deviations caused by different dimensions;
[0098] S42, traversing historical measurement data information, and calculating the similarity between each historical measurement data and the influencing feature set of the current measurement data;
[0099] S43, arranging the calculated similarities in descending order;
[0100] S44. Select several historical measurement data with the highest similarity, and select their measured power as “target power”.
[0101] In this step, by calculating the similarity, it can be ensured that the selected historical metering data and the current data are highly similar in terms of load characteristics, meteorological conditions and holiday effects; the target power selected in this way is more likely to reflect the actual situation when the current data is missing, thereby improving the accuracy of data filling; by matching the feature similarity of the historical metering data, the model can be better adapted to different situations and conditions; through feature similarity matching, the specific scenarios of data missing can be considered more carefully, thereby avoiding the defects of simple filling methods; selecting the historical metering data with the highest similarity to the current data missing situation as the target power can reduce the error introduced in the filling process; the selected historical metering data is more representative and credible, and the filled data is closer to the true value, thereby reducing the error caused by filling;
[0102] In summary, the beneficial effects of step S4 can directly improve the efficiency and reliability of power system operation and management; by filling in missing data more accurately, it can ensure the fairness of power market transactions, the stable operation of the power system and the reliability of economic evaluation.
[0103] S5. Based on the missing characteristic vector of metering data, the fault record information of the metering equipment at the plant and station gateway is screened, and the metering equipment at the plant and station gateway that fails under the condition limited by the missing characteristic vector of metering data is counted to generate a set of metering equipment failures at the plant and station gateway;
[0104] The core task of step S5 is to screen the fault record information of the metering equipment at the plant and station to count the metering equipment at the plant and station that fails under the condition of the missing characteristic vector of the metering data, and generate a set of metering equipment failures at the plant and station. The purpose is to more accurately understand the reasons behind the missing data, thereby improving the reliability and accuracy of data filling.
[0105] The method for obtaining the plant station gateway metering equipment fault set includes:
[0106] S51. The filtering condition is defined by using the missing characteristic vector of the metering data; the topological range limits the specific location or network area where the data missing occurs, and the time range limits the start and end time of the data missing; the two limiting elements jointly define a specific spatiotemporal condition for identifying the equipment that may fail under this condition;
[0107] S52. According to the above-defined screening conditions, query is performed in the metering equipment fault record database; the metering equipment fault record database includes a basic equipment information table, a fault record table, and a data missing feature table, which respectively record detailed equipment information, a full picture of the fault event, and data missing features related to the fault;
[0108] S53, using the missing characteristic vector of metering data as a filter condition for query, filtering out the records of faults occurring within a specific time range and topology range from the fault record table; only when the time and location of the equipment fault matches the missing characteristic vector of data, the fault record will be included in further analysis;
[0109] S54. Perform statistical analysis on the filtered equipment failure records, identify the equipment failure type and failure duration, and generate a plant gateway metering equipment failure set; the plant gateway metering equipment failure set includes the equipment failure type and failure duration that occurred within a specific time range and topology range.
[0110] In this step, by establishing an association with known metering equipment failure modes and combining it with the missing characteristic vector of metering data, it is possible to more accurately identify equipment failures occurring within a specific time range and topological range; thereby avoiding misjudging non-fault data missing as caused by failures, and improving the accuracy of the filled data; by statistically analyzing the screened equipment failure records, it is possible to identify the failure and type; it is helpful to discover common failure patterns, and thus provide reference and guidance for the handling of similar situations in the future; the generation of a set of metering equipment failures at plant and station gateways helps to understand the common failure modes and their characteristics under specific data missing conditions; it enables targeted selection of appropriate correction models and strategies in the data filling process to better fit the missing data and improve the accuracy and reliability of the filling results; through the analysis of failure modes, it is possible to better understand the impact of data missing on metering data, and adjust the parameters and methods in the filling process accordingly, reduce the deviation between the filled data and the actual situation, and improve the quality of the filling results.
[0111] Specifically, the steps for constructing the metering equipment fault record database are as follows:
[0112] Record the information that is most closely related to the missing metering data and equipment failure; including basic equipment information, failure details, timestamp, failure impact range, handling process and results, etc.;
[0113] Table structure design: Based on demand analysis, design a reasonable database table structure; set up multiple related tables to ensure efficient storage and query of data; core tables include:
[0114] Equipment basic information table: record the basic information of each metering equipment, such as equipment ID, model, installation location, factory station, installation date, etc.;
[0115] Fault record table: records detailed information of each fault event, including fault ID, associated device ID, fault start time, end time, fault type, fault description, handling measures, handling results, etc.
[0116] Data missing feature table: stores the missing feature vectors of metering data related to faulty equipment, including feature ID, associated fault record ID (foreign key), feature description (such as data missing time period, missing data type, data fluctuation characteristics, etc.);
[0117] Index settings: To speed up the query, especially when performing queries related to time range, device ID or features, you need to set indexes for key fields such as device ID, fault start time, feature ID, etc.
[0118] Through the above database design, it is possible to effectively support the screening, statistics and analysis of metering equipment fault record information in step S5, and then generate a highly targeted set of metering equipment faults at plant and station gateways, providing strong support for solving the problem of missing data.
[0119] S6. Input the failure set of metering equipment at the plant / station gateway into the pre-built target power correction analysis model to obtain the metering data missing correction coefficient;
[0120] Step S6 aims to further determine the specificity and potential impact of data loss by analyzing the selected plant and station gateway metering equipment failure set, so as to calculate an accurate correction coefficient to adjust the target power and ensure the accuracy of the fitted power;
[0121] The method for constructing the target power correction analysis model includes:
[0122] S61. Collect historical plant and station gateway metering data information, and clean the collected data, remove outliers, and process missing values;
[0123] S62, selecting a deep learning model as a basis for the target power correction analysis model, wherein the deep learning model includes linear regression, polynomial regression, random forest, support vector machine and neural network;
[0124] S63, dividing the processed data into a training set and a test set, using the training set to train the target power correction analysis model, and iteratively optimizing the model parameters to minimize the loss function; monitoring the performance of the target power correction analysis model during the training process to prevent overfitting;
[0125] S64, evaluating the performance of the target power correction analysis model on the test set, and if the target power correction analysis model performs poorly, tuning the target power correction analysis model and performing cross-validation to improve the stability of the evaluation;
[0126] S65. Integrate the trained target power correction analysis model into the actual metering data processing system for power data correction.
[0127] In this step, through the construction and training of the model, the missing values in the historical data can be filled, thereby improving the integrity and continuity of the data, which is conducive to subsequent data analysis and decision-making; based on historical data and feature engineering, the constructed model can identify and correct outliers, filter noise, and improve the quality and accuracy of the data; the trained and evaluated model can accurately predict the filling value of the missing data and make corrections according to the fault mode, so that the corrected data is closer to the actual situation and improves the reliability of the data; an effective data correction model can reduce the need for manual intervention, save labor costs and time costs, and reduce the risks caused by human errors; the accuracy and reliability of the data improve the accuracy and efficiency of decision-making, which is conducive to optimizing the decision-making in power system operation management, fault diagnosis and preventive maintenance; through the analysis and correction of historical data, the operating status and trends of the power system can be better understood and mastered, which helps to improve the stability and reliability of the system;
[0128] In summary, by constructing a target power correction analysis model and performing data correction based on historical data and fault modes, the integrity, quality and accuracy of the data can be effectively improved, costs and risks can be reduced, and decision-making efficiency and system stability can be improved.
[0129] More specifically, the input of the target power correction analysis model is the set of metering equipment failures at the plant and station gateways, and the output is the metering data missing correction coefficient. The calculation formula of the target power correction analysis model is:
[0130] ;
[0131] Where C represents the correction coefficient for missing measurement data; It is k The indicator variable of the type of fault (1 if it occurs, 0 otherwise), there are K different types of faults; It is with kThe correction factors related to the type of fault reflect the degree of influence of different fault types on the power loss; Indicates The number of days that equipment failures lasted, a total of The duration of each fault instance is considered; It is The correction parameter for the duration of a device fault reflects the logic that the longer the fault lasts, the more serious the power loss may be.
[0132] S7. Based on the target power and the metering data missing correction coefficient, calculate the fitted power of the missing metering data of the plant and station gateway, and fill it back into the metering data information of the plant and station gateway;
[0133] The method of calculating the missing fitted electricity of the plant and station gateway metering data and filling it back into the plant and station gateway metering data information includes:
[0134] The target power is the power value with highly similar characteristics to the current missing period in history; then, the metering data missing correction coefficient reflects the actual impact of metering equipment failure or other specific conditions on the power reading; the target power is multiplied by the metering data missing correction coefficient to obtain the fitted power;
[0135] Before filling the missing time period with the fitted value, in order to ensure the smooth transition of the data series, the fitted value and its adjacent actual measured values are smoothed in time series to reduce the mutation points caused by filling the data; the actual measured values adjacent to the fitted electricity are determined according to the time series; when filling the missing data points, it is necessary to find the previous and next actual measured values closest to the fitting point in time, and these two values are the adjacent actual measured values; the actual measured value refers to the electricity data directly obtained from the metering equipment without any filling processing;
[0136] The adjusted fitted electric quantity is accurately filled into the missing position in the original data set according to its corresponding timestamp;
[0137] For filled data points, they need to be marked as "fitted values" in the database to distinguish them from directly measured values;
[0138] Regularly compare and verify the filled data with subsequent actual measurement data to evaluate the accuracy and effectiveness of the fitting model.
[0139] In this step, by using historical data and metering equipment fault records, combined with target electricity and metering data missing correction coefficients, the calculated fitted electricity can fill the missing positions more accurately, thereby improving the integrity and accuracy of the data; by performing time series smoothing on the fitted values and their adjacent actual measured values, the mutation points caused by filling in the data can be reduced, making the filled data series smoother and more continuous, which is conducive to subsequent data analysis and application; the adjusted fitted electricity is accurately filled into the missing positions in the original data set to ensure the continuity of the data, so that the data is consistent in time, which is conducive to subsequent data processing and system operation; marking the filled data points as "fitted values" in the database can clearly distinguish between filled data and directly measured data, which is helpful for subsequent data analysis and diagnosis, and improves the traceability and comprehensibility of the data; regularly comparing and verifying the filled data with the subsequent actual metering data can evaluate the accuracy and effect of the fitting model, timely discover and correct possible problems, and ensure the quality and reliability of data filling;
[0140] In summary, the method in this step can effectively deal with the problem of missing metering data at plant and station gateways, improve the integrity, accuracy and continuity of data, and provide reliable data support for the stable operation and economic evaluation of the power system.
[0141] Embodiment 2: Figure 3 As shown, the plant and station gateway metering data missing fitting optimization system based on historical data analysis of the present invention specifically includes the following modules:
[0142] Data acquisition module, used to obtain metering data information at plant and station gateways and fault record information of metering equipment at plant and station gateways;
[0143] A feature extraction module is used to input the metering data information of the plant and station gateway into a pre-built metering data missing feature extraction model to obtain a metering data missing feature vector; the metering data missing feature vector includes a data missing topological range and a data missing time range;
[0144] An influencing feature set acquisition module, used to acquire a measurement data influencing feature set in the same dimension as the measurement data missing feature vector;
[0145] The historical data analysis module traverses the pre-collected historical metering data information of the plant and station gateways according to the metering data influencing feature set, and obtains the target power with the highest similarity to the metering data influencing feature set;
[0146] The fault impact analysis module screens the fault record information of the metering equipment at the plant and station based on the missing characteristic vector of the metering data, counts the metering equipment at the plant and station that fails under the condition limited by the missing characteristic vector of the metering data, and generates a set of metering equipment faults at the plant and station;
[0147] The correction coefficient calculation module inputs the fault set of the metering equipment at the plant and station into the pre-built target power correction analysis model to obtain the correction coefficient of missing metering data;
[0148] The fitting power calculation and filling module calculates the fitting power of the missing power of the plant and station gateway metering data based on the target power and the metering data missing correction coefficient, and fills it back into the plant and station gateway metering data information.
[0149] The system combines multiple modules to comprehensively consider the specific situations and influencing factors of missing measurement data, so as to fill in the missing data more accurately;
[0150] Through the historical data analysis module and the fault impact analysis module, the system can accurately find the target power and correction factor that are consistent with the actual situation based on the metering data impact feature set and equipment fault conditions, thereby improving the accuracy and reliability of filling data;
[0151] By fitting the power calculation and filling module, the system can fill the optimized data back into the metering data information at the plant and station gateway, thereby ensuring the availability of data and improving the effectiveness and accuracy of data analysis;
[0152] The system uses pre-built models and algorithms, which can intelligently adjust the filling strategy according to the actual situation. It has a certain level of adaptability and intelligence, and can better deal with data missing problems in different situations.
[0153] By improving the accuracy and completeness of metering data, the system can effectively improve the operating efficiency of the power system and the fairness of market transactions, and help ensure the stable operation of the power system and the healthy development of the power market;
[0154] In summary, the system has many advantages in solving the problem of missing metering data in the power system. It can effectively improve the intelligence level of data processing and the reliability of the system, and provide strong support for the development and operation management of the power industry.
[0155] The various variations and specific embodiments of the plant and station gateway metering data missing fitting optimization method based on historical data analysis in the aforementioned embodiment 1 are also applicable to the plant and station gateway metering data missing fitting optimization system based on historical data analysis in this embodiment. Through the aforementioned detailed description of the plant and station gateway metering data missing fitting optimization method based on historical data analysis, those skilled in the art can clearly understand the implementation method of the plant and station gateway metering data missing fitting optimization system based on historical data analysis in this embodiment, so for the sake of brevity of the specification, it will not be described in detail here.
[0156] In addition, the present application also provides an electronic device, including a bus, a transceiver, a memory, a processor, and a computer program stored in the memory and executable on the processor. The transceiver, the memory, and the processor are respectively connected via a bus. When the computer program is executed by the processor, each process of the above-mentioned method for controlling output data is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be described here.
[0157] The above is only a preferred embodiment of the present invention. It should be pointed out that a person skilled in the art can make several improvements and modifications without departing from the technical principle of the present invention. These improvements and modifications should also be regarded as within the scope of protection of the present invention.
Claims
1. A method for optimizing missing metering data at plant and substation gateways based on historical data analysis, characterized in that: The method comprises: Obtain metering data information at plant and station gateways and fault record information of metering equipment at plant and station gateways; Inputting the metering data information at the plant / station gateway into a pre-built metering data missing feature extraction model to obtain a metering data missing feature vector; the metering data missing feature vector includes a data missing topological range and a data missing time range; Obtaining a measurement data influencing feature set in the same dimension as the measurement data missing feature vector; According to the metering data influencing feature set, traverse the pre-collected historical metering data information of the plant and station gateway to obtain the target power with the highest similarity to the metering data influencing feature set; Based on the missing characteristic vector of metering data, the fault record information of the metering equipment at the plant and station is screened, and the metering equipment at the plant and station that fails under the condition limited by the missing characteristic vector of metering data is counted to generate the fault set of metering equipment at the plant and station; Input the fault set of metering equipment at the plant and substation into the pre-built target power correction analysis model to obtain the correction coefficient of missing metering data; Based on the target power and the metering data missing correction coefficient, the fitted power of the missing metering data of the plant and station gateway is calculated and filled back into the metering data information of the plant and station gateway; The metering data influencing feature set includes load characteristics, meteorological characteristics and holiday effects; Load characteristics include daily load curves, weekly load patterns, and seasonal load variations; Meteorological characteristics include temperature, humidity, wind speed, rainfall, and sunshine duration; The holiday effect includes the change in the total load value and the change in the shape of the load curve on weekdays, weekends and statutory holidays; The calculation formula of the target power correction analysis model is: ; Where C represents the missing measurement data correction coefficient; It is k The indicator variable of the type of fault, there are K different types of faults; It is with k The correction factor related to the type of fault is used to characterize the degree of influence of different fault types on power loss; represents the duration of the lth equipment failure in days, and a total of 𝐿 fault instances are considered; is the correction parameter for the duration of the lth device failure; The method of calculating the missing fitted electricity of the metering data at the plant and station gateway and filling it back into the metering data information at the plant and station gateway includes: Multiply the target power by the measurement data missing correction coefficient to obtain the fitted power; Perform time series smoothing on the fitted electrical quantity and its adjacent actual measured values; The smoothed fitted electricity is used to fill in the missing positions in the original data set according to its corresponding timestamp; For filled data points, they are marked as "fitted values" in the database to distinguish them from direct measurements.
2. The method for optimizing missing metering data at plant and substation gateways based on historical data analysis according to claim 1, characterized in that: The method for obtaining the target power with the highest similarity to the measurement data influencing feature set includes: Standardize the set of features that influence measurement data; Traverse the historical measurement data information and calculate the similarity between each historical measurement data and the influencing feature set of the current measurement data; Arrange the calculated similarities in descending order; Select the historical metering data with the highest similarity, and select its metering power as the "target power".
3. The method for optimizing missing metering data at plant and substation gateways based on historical data analysis according to claim 1, characterized in that: The method for obtaining the plant station gateway metering equipment fault set includes: The missing characteristic vector of measurement data is used as the screening condition, where the data missing topological range limits the specific location where the data missing occurs, and the data missing time range limits the start and end time of the data missing; According to the screening conditions, query and filter the metering equipment fault record database to filter out the fault records that occurred within the data missing time range and data missing topology range; The filtered fault records are statistically analyzed to identify the types of equipment faults and their duration, and generate a set of plant gateway metering equipment faults; the plant gateway metering equipment fault set includes the types of faults and durations that occurred within the data missing time range and the data missing topology range.
4. The method for optimizing missing metering data at plant and substation gateways based on historical data analysis according to claim 3 is characterized in that: The metering equipment fault record database includes: Equipment basic information table: used to record the basic information of each metering equipment, including equipment ID, model, installation location, factory station and installation date; Fault record table: used to record detailed information of each fault event, including fault ID, associated device ID, fault start time, end time, fault type, fault description, handling measures and handling results; Data missing feature table: used to store the missing feature vectors of metering data related to faulty equipment, including feature ID, associated fault record ID, data missing time period, missing data type and data fluctuation characteristics.
5. A plant and station gateway metering data missing fitting optimization system based on historical data analysis, characterized in that: The system comprises: Data acquisition module, used to obtain metering data information at plant and station gateways and fault record information of metering equipment at plant and station gateways; A feature extraction module is used to input the metering data information of the plant and station gateway into a pre-built metering data missing feature extraction model to obtain a metering data missing feature vector; the metering data missing feature vector includes a data missing topological range and a data missing time range; An influencing feature set acquisition module, used to acquire a measurement data influencing feature set in the same dimension as the measurement data missing feature vector; The historical data analysis module traverses the pre-collected historical metering data information of the plant and station gateways according to the metering data influencing feature set, and obtains the target power with the highest similarity to the metering data influencing feature set; The fault impact analysis module screens the fault record information of the metering equipment at the plant and station based on the missing characteristic vector of the metering data, counts the metering equipment at the plant and station that fails under the condition limited by the missing characteristic vector of the metering data, and generates a set of metering equipment faults at the plant and station; The correction coefficient calculation module inputs the fault set of the metering equipment at the plant and station into the pre-built target power correction analysis model to obtain the correction coefficient of missing metering data; The fitting power calculation and filling module calculates the fitting power of the missing power of the plant and station gateway metering data based on the target power and the metering data missing correction coefficient, and fills it back into the plant and station gateway metering data information; The metering data influencing feature set includes load characteristics, meteorological characteristics and holiday effects; Load characteristics include daily load curves, weekly load patterns, and seasonal load variations; Meteorological characteristics include temperature, humidity, wind speed, rainfall, and sunshine duration; The holiday effect includes the change in the total load value and the change in the shape of the load curve on weekdays, weekends and statutory holidays; The calculation formula of the target power correction analysis model is: ; Where C represents the missing measurement data correction coefficient; It is k The indicator variable of the type of fault, there are K different types of faults; It is with k The correction factor related to the type of fault is used to characterize the degree of influence of different fault types on power loss; represents the duration of the lth equipment failure in days, and a total of 𝐿 fault instances are considered; is the correction parameter for the duration of the lth device failure; The method of calculating the missing fitted electricity of the metering data at the plant and station gateway and filling it back into the metering data information at the plant and station gateway includes: Multiply the target power by the measurement data missing correction coefficient to obtain the fitted power; Perform time series smoothing on the fitted electrical quantity and its adjacent actual measured values; The smoothed fitted electricity is used to fill in the missing positions in the original data set according to its corresponding timestamp; For filled data points, they are marked as "fitted values" in the database to distinguish them from direct measurements.
6. An electronic device for optimizing missing fitting of metering data at a plant / station gateway based on historical data analysis, comprising a bus, a transceiver, a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the transceiver, the memory, and the processor are connected via the bus, and characterized in that: When the computer program is executed by the processor, the steps in the method according to any one of claims 1 to 4 are implemented.
7. 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 in the method according to any one of claims 1 to 4 are implemented.
