Extraction and dimension reduction method and system based on full life cycle data of electric energy meter

Through the multi-dimensional fusion associated data extraction and dimensionality reduction method, the problem of data dispersion and insufficient value mining in the analysis of electric energy meter quality data is solved, the refined management and real-time monitoring of the entire life cycle of the electric energy meter are realized, and the quality and performance of the electric energy meter are improved. Reliability to support power companies’ digital transformation.

CN118568461APending Publication Date: 2024-08-30STATE GRID JIANGSU ELECTRIC POWER CO LTD MARKETING SERVICE CENT +1

Patent Information

Application Number
CN202410530069.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-04-29
Publication Date
2024-08-30

AI Technical Summary

Technical Problem

Existing technologies suffer from data dispersion, insufficient value mining applications, insufficient real-time and dynamic adaptability in the analysis of energy meter quality data, and are unable to effectively cope with complex nonlinear temperature anomalies, resulting in insufficient power grid digital transformation and quality control.

Method used

Using the data extraction and dimensionality reduction method of multi-dimensional fusion association, by obtaining the full life cycle data of the electric energy meter for preprocessing, data association, correlation analysis, key factor extraction and association rule analysis, a multi-dimensional associated data key factor library is constructed, using Apache Flink Carry out incremental association rule mining to achieve in-depth data mining and real-time monitoring.

Benefits of technology

It achieves refined management and monitoring of the entire life cycle of electric energy meters, can track status and quality information in real time, improve maintenance and management efficiency, discover the root causes of electric energy meter quality problems and provide improvement measures, and improve the quality and reliability of electric energy meters. Meet the needs of power companies for massive amounts of accurate measurement data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118568461A
    Figure CN118568461A
Patent Text Reader

Abstract

An extraction and dimension reduction method based on full-life-cycle data of an electric energy meter comprises the following steps that the full-life-cycle data of the electric energy meter are obtained, the obtained full-life-cycle data of the electric energy meter are preprocessed, and preprocessing comprises the steps of deleting repeated data, filling missing values and correcting error data; performing data association on the acquired and preprocessed data; performing correlation analysis on the associated data; performing key factor preliminary extraction on the data after correlation analysis to realize dimension reduction of the data; performing factor inspection on the obtained key factors; and carrying out association rule analysis on the key factors to construct a multi-dimensional associated data key factor library. Through a multi-dimensional fusion associated data extraction and dimension reduction technology and a multi-factor intelligent association analysis algorithm, the root of the quality problem of the electric energy meter is found, corresponding improvement measures are provided, and the quality and reliability of the electric energy meter are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of full life cycle management and data analysis of electric energy meters, and in particular relates to a method and system for extracting and reducing dimension based on full life cycle data of electric energy meters. Background Art

[0002] With the vigorous development of the digital economy, digital technology has become a new development engine. Driving the development of the metrology industry with digitalization is not only an urgent need in reality, but also the direction of industrial development. In the new historical period, accelerating the construction of a national modern advanced measurement system is a major topic of metrology work in the new era. It has pointed out the direction for the reform and development of the metrology industry in the future period and is of great significance to serving the high-quality development of the economy and society.

[0003] As an important part of smart grid data analysis, electricity meters acquire and analyze relevant data, improve the quality control level of electricity meters, promote the digital transformation of metering services, improve the efficiency and accuracy of metering services, and provide reliable basic data support for energy management and billing, playing an important role.

[0004] CN202311489219.8A discloses a method and system for inspecting and supervising a power grid company for improving the efficiency of the entire business process, including: receiving inspection and supervision related data, pre-processing and integrating the inspection and supervision related data, and inspecting and supervising processing data, wherein the inspection and supervision related data includes inspection and supervision basic data, keyword library, process data and result data; performing data fusion on the inspection and supervision processing data to obtain fused data, performing data extraction on the fused data to obtain key fields, performing short text pre-processing and word vectorization processing on the key fields to obtain word vectorization results; the method does not It is clear whether all key information sources involved in the entire business process of the power grid company have been fully considered, such as equipment status data, operation and maintenance records, user feedback, external environmental factors, etc.; the single data source may lead to limited comprehensiveness and accuracy of the analysis results; and real-time and dynamic adaptability are not considered enough: the business environment and data characteristics of the power grid company may change dynamically over time, but the description does not make it clear whether the method has real-time data processing capabilities and model dynamic update mechanisms to adapt to changes in the business environment; the lack of real-time and dynamic adaptability may lead to delayed analysis results, unable to reflect the business status in a timely manner, and affect the decision-making effect.

[0005] CN202410043822.1A discloses a method for analyzing abnormal temperature data of a preheating pipeline for aluminum metal smelting; the method obtains a local extreme value curve of the abnormal score of a temperature monitoring data set according to an isolation forest model; obtains a fluctuation factor, a difference factor, and a variation factor according to the data characteristics in the local extreme value curve; obtains the recommended degree, recommended threshold, and detection accuracy of the local minimum point according to the fluctuation factor, difference factor, and variation factor; the method does not mention whether to consider integrating other anomaly detection algorithms or technologies to improve robustness and generalization capabilities. A single model may have limitations and may not be able to effectively cope with various complex and nonlinear temperature anomaly situations.

[0006] To sum up, the scattered quality data of electricity meters, the insufficient application of data value mining, and the insufficient intelligence, automation, and digitization of electricity meter quality inspection and verification, operation status monitoring, fault analysis, quality analysis and prediction make it difficult to meet the demand for massive and accurate metering data for the digital transformation of power grids. There is an urgent need for a data extraction and dimensionality reduction method to promote the in-depth application of advanced technologies such as digital twins, big data, and artificial intelligence in the entire life cycle of electricity meters, activate massive data resources, mine the value of electricity meter quality-related data, and realize comprehensive recording and real-time updating of information, which will promote the digital transformation of the electricity meter industry and improve overall operational efficiency and quality control. Summary of the invention

[0007] In view of the dispersion of electricity meter quality data, insufficient application of data value mining, and insufficient intelligence, automation, and digitization in electricity meter quality inspection and verification, operation status monitoring, fault analysis, quality analysis and prediction, the present invention provides a data extraction and dimensionality reduction method and system based on multi-dimensional fusion association. Through multi-dimensional fusion association data extraction and dimensionality reduction technology and multi-factor intelligent association analysis algorithm, the root causes of electricity meter quality problems are discovered, and corresponding improvement measures are provided to improve the quality and reliability of electricity meters.

[0008] The present invention adopts the following technical solution.

[0009] A method for extracting and reducing dimension based on the full life cycle data of an electric energy meter, the method comprising the following steps:

[0010] Step 1: Acquire the full life cycle data of the electric energy meter, and preprocess the acquired full life cycle data of the electric energy meter, wherein the preprocessing includes deleting duplicate data, filling missing values, and correcting erroneous data;

[0011] Step 2: Perform data association on the data acquired and preprocessed in step 1;

[0012] Step 3: Perform correlation analysis on the data associated in step 2;

[0013] Step 4: Preliminary extraction of key factors from the data after correlation analysis in step 3 to achieve data dimensionality reduction;

[0014] Step 5: Perform factor test on the key factors obtained in step 4;

[0015] Step 6: After step 5, perform association rule analysis on the key factors to build a multi-dimensional association data key factor library.

[0016] The present invention further includes the following preferred embodiments:

[0017] In step 1, the full life cycle data of the electric energy meter includes structured data and unstructured data, wherein the structured data includes the production data, calibration data and operation data of the electric energy meter, and the unstructured data includes the user manual and usage report; the production data of the electric energy meter includes the accuracy and production process data of the electric energy meter, the calibration data includes the calibration bench grade and error data, and the operation data includes the voltage, current data and fault data of the electric energy meter during operation.

[0018] In step 1, obtaining the full life cycle data of the electric energy meter includes: obtaining structured data from the historical library and collecting it in real time; the recognition and extraction of unstructured data includes: unifying the RGB value of each pixel of the original image into a fixed value, dividing the image data into pixel groups greater than a threshold and pixel groups less than a threshold, correcting the tilt of the image based on straight line features and angle estimation, segmenting the suspected text part in the image, building a classifier to recognize and extract text information, and correcting and optimizing the extracted text results.

[0019] In step 1, deleting duplicate data includes: serially numbering the obtained data of the same type and calculating the hash value of the data, using the calculated hash value as the unique identifier of the data, and determining that two or more data with the same hash value are duplicate data; retaining the first data in the physical arrangement of the duplicate data, and deleting other data.

[0020] In step 1, filling missing values ​​involves:

[0021] Step 1.1: Combining the elbow rule and the silhouette coefficient method, an adaptive method is used to determine a cluster number N;

[0022] Step 1.2: Randomly select N data from the acquired data as the centroid;

[0023] Step 1.3: Calculate the Euclidean distance between each data point and the N centroids, and divide the points involved in the calculation into the set of centroids with the closest Euclidean distance to them;

[0024] Step 1.4: After all data are grouped into N sets, recalculate the centroid of each set;

[0025] Step 1.5: When the distance between the newly calculated centroid and the original centroid is less than the set threshold, the algorithm terminates. Otherwise, repeat steps 1.3 to 1.4 until the distance between the new centroid and the original centroid is less than the set threshold.

[0026] Step 1.6: Calculate the mean values ​​of the data contained in the N data sets respectively, and use the calculated mean values ​​as the filling values ​​for the missing values ​​in the corresponding data sets.

[0027] In step 1, correcting erroneous data includes: selecting a set number of features in the acquired full life cycle data set of the electric energy meter, and determining the range of feature values; constructing a binary tree, and dividing the data in the sample set into two left and right sub-data sets according to the selected features and feature value ranges; repeating the above steps until the maximum limited height of the tree is reached or only one data is left in the minimum subset; repeating the above steps to construct multiple independent random trees; for new data points, determining whether they are abnormal points by calculating their path lengths in each tree.

[0028] In step 2, data association is based on the open source stream processing framework Apache Flink, and an incremental association rule mining algorithm based on confidence calculation is used to mine association rules between data after data processing.

[0029] In step 4, the preliminary extraction of key factors from the data after the correlation analysis in step 3 includes: mapping the data after the correlation analysis to a new feature space.

[0030] In step 5, the factor test uses the following algorithm:

[0031]

[0032] Among them, T represents the index used to compare the simple correlation coefficient and partial correlation coefficient between data, r ij represents the simple correlation coefficient, represents the partial correlation coefficient.

[0033] In step 6, association rule analysis of key factors is performed using an incremental association rule mining algorithm based on probability.

[0034] At the same time, the present invention realizes an extraction and dimension reduction system based on the full life cycle data of the electric energy meter, the system includes: a data identification and acquisition module, a data association and extraction module, a data dimension reduction module and a data key factor library module;

[0035] The data identification and acquisition module includes the identification and acquisition of data of the entire life cycle of the electric energy meter;

[0036] The data association and extraction module is based on the open source stream processing framework Apache Flink and uses an incremental association rule mining algorithm to mine the association rules between the acquired data of the entire life cycle of the electric energy meter;

[0037] The data dimension reduction module is used to reduce the data dimension to extract the key factors of the data;

[0038] The multi-dimensional associated data key factor library module establishes a factor library according to the factor association rules mined by the key factor association rule unit. The factor library includes an archive factor library, an operation factor library, an environment factor library and a management factor library.

[0039] The data dimension reduction module includes: data correlation analysis unit, preliminary extraction unit of key factors, real-time factor data verification unit and key factor association rule unit;

[0040] The data correlation analysis unit is used to perform correlation analysis on the data after the data correlation and extraction module are associated;

[0041] The preliminary extraction unit of key factors is used to map the data analyzed by the data correlation analysis unit to a new feature space to reduce the feature dimension and obtain preliminary key factors;

[0042] The real-time factor data verification unit is used to calculate the correlation and commonality between the preliminary key factors obtained by the preliminary extraction unit of key factors;

[0043] The key factor association rule unit is used to mine association rules for the factor data output by the real-time factor data verification unit.

[0044] The beneficial effect of the present invention is that, compared with the prior art, through the application of data correlation analysis and data feature dimensionality reduction technology, a large number of originally unrelated data items are deeply mined for valuable information, realizing refined management and monitoring of the entire life cycle of the electric energy meter, being able to track the status, performance and quality information of the electric energy meter in real time, and deeply revealing the intrinsic structure information of the data, thereby improving maintenance and management efficiency. It effectively reduces the input of human resources and reduces maintenance costs. Through the application of multi-dimensional fusion correlation data extraction and dimensionality reduction technology and multi-factor intelligent correlation analysis algorithm, the root cause of the quality problems of the electric energy meter can be discovered, and corresponding improvement measures can be provided to improve the quality and reliability of the electric energy meter. Based on the data mining results of the entire life cycle of the electric energy meter, the massive electric energy meter measurement data can be subjected to multi-dimensional fusion analysis, which helps to deeply understand the usage and demand characteristics of electric energy, and provide more accurate electricity consumption forecasting and load control strategies for power companies.

[0045] By applying advanced technologies such as data feature dimensionality reduction, machine learning, and big data analysis, a complete digital management system can be formed. Through its application throughout the life cycle of electricity meters, it will promote the digital transformation of power metering and improve the technical and management levels of electricity meters.

[0046] By improving the management efficiency and power quality of electricity meters throughout their life cycle, we can provide better electricity services and optimize the analysis and application of electricity metering data, thereby improving the company's operational efficiency and service quality and meeting the growing demand for electricity. BRIEF DESCRIPTION OF THE DRAWINGS

[0047] Figure 1 It is a step diagram of a data extraction and dimensionality reduction method based on multi-dimensional fusion association of the present invention;

[0048] Figure 2 This is a comparison diagram of a key component image data before and after recognition in an electric energy meter in one embodiment of the present invention;

[0049] Figure 3 This is a diagram showing the effect of filling missing values ​​in one embodiment of the present invention;

[0050] Figure 4 It is a comparison diagram of daily voltage abnormality data identification using an erroneous data correction algorithm in one embodiment of the present invention;

[0051] Figure 5 It is a block diagram of a data extraction and dimensionality reduction system based on multi-dimensional fusion association in an embodiment of the present invention. DETAILED DESCRIPTION

[0052] In order to make the purpose, technical scheme and advantages of the present invention clearer, the technical scheme of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. The embodiments described in this application are only embodiments of a part of the present invention, rather than all embodiments. Based on the spirit of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work belong to the protection scope of the present invention.

[0053] The embodiment of the present invention provides a method for extracting and reducing dimension based on multi-dimensional fusion related data. Figure 1 The figure shows a step diagram of a method for extracting and reducing dimensionality based on the full life cycle data of an electric energy meter in an embodiment of the present invention, the steps comprising:

[0054] Step 1: Obtain the full life cycle data of the electric energy meter and preprocess the full life cycle data of the electric energy meter.

[0055] In one embodiment of the present invention, in step 1, the life cycle data of the electric energy meter includes structured data and unstructured data, wherein the structured data includes production data, verification data, and operation data of the electric energy meter, and the unstructured data includes a user manual and a usage report;

[0056] The production data of the electric energy meter includes the accuracy of the electric energy meter and the production process data; the calibration data includes the calibration bench grade and error data; the operation data includes the voltage, current data and fault data of the electric energy meter during operation.

[0057] In one embodiment of the present invention, in step 1, obtaining the full life cycle data of the electric energy meter includes: obtaining structured data from a historical library and collecting it in real time; identifying and extracting unstructured data; identifying and extracting unstructured data includes: unifying the RGB value of each pixel of the original image into a fixed value, dividing the image data into a pixel group greater than a threshold and a pixel group less than a threshold, correcting the inclination of the image based on straight line features and angle estimation, segmenting the suspected text part in the image, building a classifier to identify and extract text information, and correcting and optimizing the extracted text results.

[0058] In one embodiment of the present invention, the unstructured data may be production data such as a user manual, or usage data such as a usage report; the identification and extraction of unstructured data includes: unifying the RGB value of each pixel in the original image, converting the traditional RGB value to other color spaces for processing when facing a high-order complex image, converting it into a fixed value range based on the above operation for subsequent data processing and analysis, and dividing the image data into pixel groups greater than a certain threshold and less than a certain threshold according to the value of the pixel. In order to better adapt to the characteristics of different images, the present invention also adds an adaptive method for selecting the threshold, and selects the threshold according to the image content and characteristics. The feature dynamically selects the threshold value, so as to achieve more refined binarization processing of the image, further improve the processing effect, and facilitate the subsequent feature extraction and analysis; for the possible tilt in the image, the image can be corrected for tilt based on the straight line feature and angle estimation method, and the correction of the tilt can effectively improve the accuracy of text recognition and extraction; at the same time, for the possible text part in the image, the segmentation technology is used to separate the text part from the image, and the extracted text information is identified and extracted by building a classifier to realize the automatic processing of the text content; the text correction algorithm is added to correct and optimize the extracted text results, so as to further improve the data quality and credibility; such as Figure 2 This is a comparison diagram of a key component image data before and after recognition in an electric energy meter in one embodiment of the present invention.

[0059] In a specific embodiment of the present invention, the steps of the text correction algorithm include:

[0060] 1) Detecting whether there are incorrect words or spelling errors in the text to be corrected by comparing the text with a known valid word list or a spelling checker;

[0061] 2) Calculate words similar to the wrong word, or find semantically close words based on semantic similarity, and generate a set of possible candidate correction words for each wrong word;

[0062] 3) For each incorrect word and candidate correction word, extract relevant feature information, such as word frequency, context information, part of speech, etc. These features can be used to measure the rationality of the word and the consistency of the context.

[0063] 4) Use the labeled calibration data set for model training;

[0064] 5) Use the trained model to score each candidate correction word. According to the score, the candidates are sorted to obtain a ranking list of correction words;

[0065] 6) According to the ranking and score of the candidate correction words, a threshold is set to select only the words with high ranking or high score as the correction results;

[0066] 7) Replace the incorrect words in the original text with the correction results to generate the final corrected text.

[0067] In step 1, the data of the entire life cycle of the electric energy meter is preprocessed, including deleting duplicate data, filling missing values, and correcting erroneous data.

[0068] In one embodiment of the present invention, the filling of missing values ​​includes the following:

[0069] Step 1.1: Combining the elbow rule and the silhouette coefficient method, an adaptive method is used to determine a cluster number N;

[0070] Specifically, by calculating the clustering error under different N values ​​(such as the sum of squares (SSE) of the average distance from the sample to the centroid of the cluster to which it belongs), the trend of the clustering error with the change of N value is observed. When the N value increases, if the clustering error decreases rapidly and tends to be stable, it can be considered that a suitable N value has been found. On the other hand, by calculating the silhouette coefficient of each sample under different N values, and then taking the average value to obtain the overall silhouette coefficient of the cluster. Select the N value that can maximize the overall silhouette coefficient as the final number of clusters. The two methods complement each other and improve the accuracy of N value selection;

[0071] Step 1.2: Randomly select N data from the acquired data as the centroid;

[0072] Step 1.3: Calculate the Euclidean distance between each data point and the N centroids, and divide the points involved in the calculation into the set of centroids with the closest Euclidean distance to them;

[0073] For each point in the data set, the Euclidean distance from the centroid is calculated, and based on the distance measurement result, the target point is divided into the centroid set. The present invention innovatively combines cosine similarity and Jaccard similarity to more accurately measure the similarity between data points and obtain a more accurate distance measurement value.

[0074] Step 1.4: After all the data are grouped, there are N sets in total, and then recalculate the centroid of each set;

[0075] Step 1.5: If the distance between the newly calculated centroid and the original centroid is less than the set threshold, the clustering achieves the desired result and the algorithm terminates. Otherwise, repeat steps 1.3-1.4 until the distance between the new centroid and the original centroid is less than the set threshold.

[0076] Step 1.6: Calculate the mean values ​​of the data contained in each of the N data sets, and use the calculated mean values ​​as the filling points for the missing values ​​in the corresponding data sets.

[0077] like Figure 3 The figure shows the effect of filling missing values ​​in one embodiment of the present invention; for daily electricity data, the comparison example before and after filling missing value data is shown in Table 1:

[0078] Table 1 Comparison example before and after filling missing value data

[0079]

[0080] There were missing values ​​in the daily electricity consumption data on 2022-06-27. After filling in the missing values, the daily electricity consumption data was adjusted to 0.239.

[0081] In one embodiment of the present invention, the correcting the error data includes:

[0082] A set number of features are selected from the acquired full life cycle data set of the electric energy meter, and the range of feature values ​​is determined; a binary tree is constructed, and the data in the sample set is divided into two left and right sub-data sets according to the selected features and feature value ranges; the above steps are repeated until the maximum limited height of the tree is reached or only one data is left in the minimum subset; the above steps are repeated to construct multiple independent random trees; for a new data point, whether it is an abnormal point is determined by calculating its path length in each tree.

[0083] Furthermore, for new data points, in addition to using the conventional method of calculating the path length in each tree to determine whether it is an outlier, the present invention organically combines outlier detection, density estimation and other methods to comprehensively judge the abnormality of new data points, effectively improving the reliability and stability of outlier detection results.

[0084] In a specific embodiment of the present invention, when performing outlier detection, it is first necessary to preprocess the original data, including data cleaning, normalization and other operations to ensure data quality and consistency; next, it is necessary to select appropriate features or attributes for outlier detection, and usually features related to the problem are selected to better identify outliers; selecting a suitable outlier detection algorithm is one of the key steps, and common algorithms include distance-based methods, density-based methods and clustering-based methods; the distance-based method determines outliers by calculating the distance between data points, the density-based method identifies outliers by evaluating the density around the data points, and the clustering-based method detects outliers as cluster centers; in the specific outlier detection process, it is first necessary to calculate the distance between data points, and then calculate the local density of each data point, and usually use a kernel function for density estimation; then, the local outlier factor is calculated based on the local density of the data point and the local density of the neighboring points to measure the degree of outlier of the data point; finally, according to the calculated local outlier factor value, the data point with a higher outlier factor is identified as an outlier.

[0085] Figure 4 2 is a comparison diagram of daily voltage abnormal data recognition using the erroneous data correction algorithm according to an embodiment of the present invention; Table 2 is a comparison diagram of daily voltage abnormal data recognition using the erroneous data correction algorithm according to an embodiment of the present invention.

[0086] Table 2 Comparison of daily voltage abnormal data recognition using the error data correction algorithm in the embodiment of the present invention

[0087] date 2023-04-21 2023-04-22 2023-04-23 2023-04-23 2023-04-23 Before identification 220 221 369 221 226 After identification 220 221 222 221 226

[0088] In one embodiment of the present invention, the deleting duplicate data includes: serially numbering the obtained similar data and calculating the hash value of the data, using the calculated hash value as the unique identifier of the data, if two or more data with the same hash value appear, the data is determined to be duplicate data; retaining the first data in the physical arrangement of the duplicate data, and deleting other data.

[0089] In another embodiment of the present invention, the deletion of duplicate data can also be based on unique identifier deletion. For a unique identifier (such as ID, primary key, etc.) in a data set, whether the data record is duplicated is determined based on the unique identifier, and then the duplicate records are deleted.

[0090] In another embodiment of the present invention, the duplicate data can also be deleted based on comparison of all attributes, and each attribute in the data set to be processed is compared one by one to identify whether there are two records with exactly the same attribute values. If they are exactly the same, they are regarded as duplicate records and deleted.

[0091] Step 2: Perform data association on the full life cycle data of the electric energy meter obtained and preprocessed in step 1.

[0092] In one embodiment of the present invention, the data association in step 2 is based on the open source stream processing framework Apache Flink, and an incremental association rule mining algorithm is used to mine association rules between the obtained data; the steps of the incremental association rule mining algorithm are as follows:

[0093] Step 2.1: Use association rule mining algorithms such as Apriori and FP-Growth to mine the original data set;

[0094] Step 2.2: Processing new data. When new data is added, first perform frequent item set mining on the new data separately, and then count the support of the frequent item sets in the new data;

[0095] In a specific embodiment of the present invention, a support threshold may be used to define frequent itemsets; support refers to the proportion of transactions containing a certain itemset, indicating the importance of the itemset in the data.

[0096] Step 2.3: Update frequent itemsets, merge the frequent itemsets of the new data with the original frequent itemsets; update the support count of the frequent itemsets, if the frequent itemsets in the new data are also frequent in the old data, increase their count; if the frequent itemsets in the new data are not frequent in the old data, re-evaluate whether they become frequent itemsets due to the addition of new data;

[0097] Step 2.4: Generate new association rules. Based on the updated frequent item sets, use the association rule generation algorithm (such as confidence calculation) to generate new association rules. Then evaluate the newly generated rules and eliminate the rules that do not meet the minimum support and minimum confidence thresholds.

[0098] Step 2.5: Merge and prune rules. Merge the new and old association rules and perform pruning operations to remove those rules that are no longer frequent. Optimize the merged rule set, for example, remove redundant rules and retain the most useful rules.

[0099] Step 3: Perform correlation analysis on the data associated in step 2.

[0100] In another embodiment of the present invention, the correlation analysis of data is to use the Pearson correlation coefficient, Spearman correlation coefficient, and Kendall correlation coefficient to conduct a correlation study on the associated data. The correlation study is also a key step in the data processing of the entire life cycle of the electric energy meter. The correlation coefficient can be used to evaluate the linear relationship between two variables. Its value is between -1 and 1. -1 or 1 represents a perfect negative correlation and positive correlation, and 0 indicates that there is no linear relationship. The scheme of the present invention uses the Pearson correlation coefficient, Spearman correlation coefficient, and Kendall correlation coefficient to perform data correlation analysis. If the results of the Pearson correlation coefficient and the Spearman correlation coefficient differ greatly, it indicates that there are outliers or nonlinear relationships in the data. If the results are consistent, the linear correlation or monotonic correlation between the data can be more determined.

[0101] The Pearson correlation coefficient, also known as the Pearson product-moment correlation coefficient, is a linear correlation coefficient. It is a statistic used to reflect the degree of linear correlation between two variables.

[0102] The Pearson correlation calculation formula is as follows:

[0103]

[0104] Here, the denominator is the covariance of the two variables.

[0105] The larger the covariance of two variables, the more similar the trends of their values ​​over a series of data points will be.

[0106]

[0107] Among them, X in the formula i represents the i-th element in variable X, Y i represents the i-th element in variable Y, represents the mean of variable X, Represents the mean of the variable Y.

[0108] The correlation coefficient is generally divided into: 0.8-1.0 extremely strong; 0.6-0.8 strong; 0.4-0.6 medium; 0.2-0.4 weak; 0.0-0.2 extremely weak.

[0109] Spearman correlation analysis, rank correlation coefficient, also known as the rank correlation coefficient, reflects the correlation between the direction and strength of the change trend of two random variables. It is a statistic obtained by arranging the sample values ​​of two random variables in order of data size and replacing the actual data with the rank of each element sample value. The Spearman correlation coefficient is defined as the Pearson correlation coefficient between rank variables. It mainly examines the strength of the monotonic relationship between two variables.

[0110] The calculation of Spearman correlation coefficient is shown in formula (3):

[0111]

[0112] Among them, n represents the number of data, d i Represents the difference between two data orders, d i The calculation of is shown in formula (4):

[0113] d i = rg(X i )-rg(Y i ) (4)

[0114] Among them, rg() is a sorting function. First, the data of the two variables (X, Y) are sorted separately, and the position after sorting (X', Y') is recorded. The value of (X', Y') is called the rank, and the difference in rank is the d in the formula. i , n is the number of data in the variable, and finally the formula can be used to solve the result. The experimental data is shown in Table 3 as follows:

[0115] Table 3 Experimental data table

[0116]

[0117] Substitute into the formula and obtain the Spearman correlation coefficient:

[0118] ρ s = 1-6*(1+1+1+9) / 6*35=0.657 (5)

[0119] Furthermore, the present invention uses the Kendall correlation coefficient to analyze the rank correlation between data to help eliminate the influence of outliers on the correlation analysis; the Kendall correlation coefficient is calculated as follows:

[0120] When there are no identical ranks in the data (i.e., no ties), the Kendall correlation coefficient is calculated as follows:

[0121] [\taua=\frac{Nc-Nd}{\frac{1}{2}n(n-1)}] (6)

[0122] where Nc is the number of consistent pairs, i.e., the number of pairs in which one observation is ranked higher than another observation on one variable and also ranks higher on the other variable in all pairwise comparisons;

[0123] Nd is the number of discordant pairs, that is, the number of pairs where one observation ranks higher on one variable but lower on another; n is the sample size, frac{1}{2}n(n-1) is the total number of pairs, that is, the number of combinations of any two of the n observations for comparison; Kendall's tau-b (allowing ties) is more appropriate when there are tied ranks in the data, and its calculation formula is:

[0124] \taub=\frac{nc-nd}{\sqrt{(n0-n1)(n0-n2)}}] (7)

[0125] where nc and nd are the adjusted numbers of concordant and discordant pairs, respectively, taking into account the count correction in the case of ties; n0 is the sum of the rank sums, i.e., the sum of the ranks of all observations on the two variables; n1 is the sum of the squares of the ranks of each observation; n2 is the sum of the cubes of the ranks of each observation;

[0126] The Kendall correlation coefficient ranges from -1 to +1, where: tau = +1 indicates a perfect positive correlation, that is, the ranks of the two variables are exactly the same; tau = -1 indicates a perfect negative correlation, that is, a high ranking of one variable always corresponds to a low ranking of the other variable; \tau = 0 indicates no correlation, that is, there is no systematic correlation between the ranks of the two variables.

[0127] Step 4: Perform preliminary extraction of key factors on the data after correlation analysis in step 3 to achieve data dimensionality reduction.

[0128] In another embodiment of the present invention, the preliminary extraction of key factors is also feature extraction. Feature extraction is the process of converting or mapping raw data to a new feature space. This process involves extracting information from the raw data and converting it into a more effective representation (i.e., a feature set). Feature extraction aims to reduce the dimension of the original data set while retaining as much important information as possible about the original data set. This method is particularly common in fields such as image processing, text analysis, and speech recognition. Feature extraction can be manually designed features or can be achieved through automated methods (such as through deep learning models) to reduce the feature dimension of data. The preliminary extraction of key factors is to reduce the feature dimension while minimizing information loss. The specific algorithm steps are as follows:

[0129] By finding the best linear combination between d data, a hyperplane is found (which maximizes the variance or covariance of the data in this direction) as the principal component, and the data is projected onto this hyperplane, thus compressing the d linearly correlated data dimensions into d-1 dimensions.

[0130] Assuming there are n data and p factors, a sample matrix X of size np can be constructed:

[0131]

[0132] Suppose we want to find a new set of variables z1, z2, …z m (m≤p), and the conditions they satisfy are shown in formula (9):

[0133]

[0134] Coefficient l ij Principles for determination:

[0135] A)z i With z j (i≠j; i,j=1,2,…,m) are independent of each other;

[0136] B) z1 and x1, x2, …, x p The one with the largest variance among all linear combinations of

[0137] C) z2 is uncorrelated with z1 by x1, x2, …, x p The one with the largest variance among all linear combinations of

[0138] D) Infer successively, z m with z1,z2,…,z m-1 Uncorrelated x1, x2, …, x p The one with the largest variance among all linear combinations of

[0139] E) New variable indicators z1, z2, …, z m , are respectively called the original variable indicators x1, x2, …, x p The 1st, 2nd, …, mth principal component of .

[0140] The extraction process of key factors is as follows:

[0141] Step 9.1: Normalize the matrix X in formula (8):

[0142] Calculate mean by column and standard deviation Calculated standardized data The original sample matrix is ​​standardized into:

[0143]

[0144] Step 9.2: Calculate the covariance matrix of the standard deviation sample as shown in formula (11):

[0145]

[0146] in,

[0147]

[0148] Step: 9.3: Calculate the eigenvalues ​​and eigenvectors of R:

[0149] Eigenvalue: λ1≥λ2≥…≥λ p ≥0(R is a semi-positive definite matrix, and

[0150] The eigenvector is shown in formula (13):

[0151]

[0152] Step 9.4: Calculate the principal component contribution rate and cumulative contribution rate:

[0153] The contribution rate is shown in formula (14):

[0154]

[0155] The cumulative contribution rate is shown in formula (15):

[0156]

[0157] Step 9.5: Write out the principal components, and take the first, second, ..., mth (m≤p)th principal components corresponding to the eigenvalues ​​whose cumulative contribution rate exceeds 80%; the i-th principal component is shown in formula (16):

[0158] F i =a 1i X1+a 2i X2+……+a pi X p (i=1,2……,m) (16)

[0159] Step 9.6: According to the coefficient l ij Analyze the significance of the principal components. For a principal component, the larger the coefficient in front of the indicator, the greater the influence of the indicator on the principal component.

[0160] Step 5: Perform factor test on the key factors obtained in step 4.

[0161] In another embodiment of the present invention, the data verification of the real-time factor is as shown in formula (17):

[0162]

[0163] In the above formula, r ij represents the simple correlation coefficient, represents the partial correlation coefficient. Obviously, when When T≈1; when When T≈0, the value of T is between 0 and 1. The T test is used to check the correlation and partial correlation between variables, and its value is between 0 and 1; the closer the T statistic is to 1, the stronger the correlation between variables, the weaker the partial correlation, and the better the effect of factor analysis. In actual analysis, the effect is better when the T statistic is above 0.7; when the T statistic is below 0.5, it is not suitable to apply factor analysis, and redesigning the variable structure or using other statistical analysis methods should be considered. Table 4 shows the specific evaluation criteria for factor testing in the present invention.

[0164] Table 4 Factor test evaluation table

[0165] T-value Applicability of analysis 0.90-1.00 very good 0.80-0.89 good 0.70-0.79 generally 0.60-0.69 Difference 0.50-0.59 Very bad 0.00-0.49 Unable to analyze

[0166] Step 6: After step 5, perform association rule analysis on the key factors to build a multi-dimensional association data key factor library.

[0167] In another embodiment of the present invention, in step 6, the association rule analysis of key factors and the construction of the key factor library are based on the aforementioned Apache Flink open source streaming processing framework, and the incremental association rule mining algorithm is used to select specific association rules between data; and a multidimensional association data key factor library is constructed according to the association results, and the multidimensional association data key factor library includes: archive factor library, operation factor library, environmental factor library, management factor library, etc. At the same time, the present invention realizes an extraction and dimensionality reduction system based on the full life cycle data of the electric energy meter; such as Figure 5 The figure shows a block diagram of an extraction and dimension reduction system based on the full life cycle data of an electric energy meter implemented by the present invention. The system includes: a data identification and acquisition module, a data association and extraction module, a data dimension reduction module and a data key factor library module;

[0168] The data identification and acquisition module includes the identification and acquisition of data of the entire life cycle of the electric energy meter;

[0169] The data association and extraction module is based on the open source stream processing framework Apache Flink and uses an incremental association rule mining algorithm to mine the association rules between the acquired data of the entire life cycle of the electric energy meter;

[0170] The data dimension reduction module is used to reduce the data dimension to extract the key factors of the data;

[0171] The multi-dimensional associated data key factor library module establishes a factor library according to the factor association rules mined by the key factor association rule unit. The factor library includes an archive factor library, an operation factor library, an environment factor library and a management factor library.

[0172] The data dimension reduction module includes: data correlation analysis unit, preliminary extraction unit of key factors, real-time factor data verification unit and key factor association rule unit;

[0173] The data correlation analysis unit is used to perform correlation analysis on the data after the data association and extraction modules are associated;

[0174] The preliminary extraction unit of key factors is used to reduce the feature dimension of the data analyzed by the data correlation analysis unit to obtain preliminary key factors;

[0175] The real-time factor data verification unit is used to calculate the correlation and commonality between the preliminary key factors obtained by the preliminary extraction unit of the key factors;

[0176] The key factor association rule unit is used to mine association rules for the factor data output by the real-time factor data verification unit.

[0177] The present disclosure may be a system, a method and / or a computer program product. The computer program product may include a computer-readable storage medium carrying computer-readable program instructions for causing a processor to implement various aspects of the present disclosure.

[0178] A computer-readable storage medium may be a tangible device that can hold and store instructions used by an instruction execution device. A computer-readable storage medium may be, for example, but not limited to, an electrical storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the foregoing. More specific examples of computer-readable storage media (a non-exhaustive list) include: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a static random access memory (SRAM), a portable compact disk read-only memory (CD-ROM), a digital versatile disk (DVD), a memory stick, a floppy disk, a mechanical encoding device, such as a punch card or a raised structure in a groove on which instructions are stored, and any suitable combination of the foregoing. As used herein, a computer-readable storage medium is not to be interpreted as a transient signal per se, such as a radio wave or other freely propagating electromagnetic wave, an electromagnetic wave propagating through a waveguide or other transmission medium (e.g., a light pulse through a fiber optic cable), or an electrical signal transmitted through a wire.

[0179] The computer-readable program instructions described herein can be downloaded from a computer-readable storage medium to each computing / processing device, or downloaded to an external computer or external storage device via a network, such as the Internet, a local area network, a wide area network, and / or a wireless network. The network can include copper transmission cables, optical fiber transmissions, wireless transmissions, routers, firewalls, switches, gateway computers, and / or edge servers. The network adapter card or network interface in each computing / processing device receives the computer-readable program instructions from the network and forwards the computer-readable program instructions for storage in the computer-readable storage medium in each computing / processing device.

[0180] The computer program instructions for performing the operation of the present disclosure may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-related instructions, microcode, firmware instructions, state setting data, or source code or object code written in any combination of one or more programming languages, including object-oriented programming languages, such as Smalltalk, C++, etc., and conventional procedural programming languages, such as "C" language or similar programming languages. Computer-readable program instructions may be executed completely on a user's computer, partially on a user's computer, as an independent software package, partially on a user's computer, partially on a remote computer, or completely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., using an Internet service provider to connect via the Internet). In some embodiments, an electronic circuit, such as a programmable logic circuit, a field programmable gate array (FPGA), or a programmable logic array (PLA), may be customized by utilizing the state information of the computer-readable program instructions, and the electronic circuit may execute the computer-readable program instructions, thereby realizing various aspects of the present disclosure.

[0181] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the above embodiments, ordinary technicians in the relevant field should understand that the specific implementation methods of the present invention can still be modified or replaced by equivalents, and any modifications or equivalent replacements that do not depart from the spirit and scope of the present invention should be covered within the scope of protection of the claims of the present invention.

Claims

1. A method for extracting and reducing dimensionality based on the data of the entire life cycle of electric energy meters. It is characterized in that The data extraction and dimensionality reduction method comprises the following steps: Step 1: Acquire the full life cycle data of the electric energy meter, and preprocess the acquired full life cycle data of the electric energy meter, wherein the preprocessing includes deleting duplicate data, filling missing values, and correcting erroneous data; Step 2: Perform data association on the data acquired and preprocessed in step 1; Step 3: Perform correlation analysis on the data associated in step 2; Step 4: Preliminary extraction of key factors from the data after correlation analysis in step 3 to achieve data dimensionality reduction; Step 5: Perform factor test on the key factors obtained in step 4; Step 6: After step 5, perform association rule analysis on the key factors to build a multi-dimensional association data key factor library.

2. The method for extracting and reducing dimensionality based on the full life cycle data of an electric energy meter according to claim 1, Features: In step 1, the life cycle data of the electric energy meter includes structured data and unstructured data, wherein the structured data includes production data, verification data and operation data of the electric energy meter, and the unstructured data includes user manuals and usage reports; The production data of the electric energy meter includes the accuracy and production process data of the electric energy meter, the calibration data includes the calibration bench grade and error data, and the operation data includes the voltage, current data and fault data during the operation of the electric energy meter.

3. The method for extracting and reducing dimensionality based on the full life cycle data of an electric energy meter according to claim 2, Features: In step 1, obtaining the full life cycle data of the electric energy meter includes: Acquire structured data from historical repositories and collect it in real time; The recognition and extraction of unstructured data include: unifying the RGB value of each pixel in the original image into a fixed value, dividing the image data into pixel groups greater than a threshold and pixel groups less than a threshold, correcting the tilt of the image based on straight line features and angle estimation, segmenting the suspected text part in the image, building a classifier to recognize and extract text information, and correcting and optimizing the extracted text results.

4. The method for extracting and reducing dimensionality based on the full life cycle data of an electric energy meter according to claim 3, Features: In step 1, deleting duplicate data includes: serially numbering the obtained data of the same type and calculating the hash value of the data, using the calculated hash value as the unique identifier of the data, and determining that two or more data with the same hash value are duplicate data; retaining the first data in the physical arrangement of the duplicate data, and deleting other data.

5. The method for extracting and reducing dimension based on the full life cycle data of electric energy meters according to claim 3, Features: In step 1, filling missing values ​​includes: Step 1.1: Combining the elbow rule and the silhouette coefficient method, an adaptive method is used to determine a cluster number N; Step 1.2: Randomly select N data from the acquired data as the centroid; Step 1.3: Calculate the Euclidean distance between each data point and the N centroids, and divide the points involved in the calculation into the set of centroids with the closest Euclidean distance to them; Step 1.4: After all data are grouped into N sets, recalculate the centroid of each set; Step 1.5: When the distance between the newly calculated centroid and the original centroid is less than the set threshold, the algorithm terminates. Otherwise, repeat steps 1.3 to 1.4 until the distance between the new centroid and the original centroid is less than the set threshold. Step 1.6: Calculate the mean values ​​of the data contained in the N data sets respectively, and use the calculated mean values ​​as the filling values ​​for the missing values ​​in the corresponding data sets.

6. The method for extracting and reducing dimension based on the full life cycle data of electric energy meters according to claim 3, Features: In step 1, the correction of erroneous data includes: selecting a set number of features in the acquired full life cycle data set of the electric energy meter, and determining the range of feature values; constructing a binary tree, and dividing the data in the sample set into two left and right sub-data sets according to the selected features and feature value ranges; repeating the above steps until the maximum limited height of the tree is reached or only one data is left in the minimum subset; repeating the above steps to construct multiple independent random trees; for new data points, determining whether they are abnormal points by calculating their path lengths in each tree.

7. The method for extracting and reducing dimension based on the full life cycle data of electric energy meters according to claim 1, Features: In step 2, data association is based on the open source stream processing framework Apache Flink, and an incremental association rule mining algorithm based on confidence calculation is used to mine association rules between data after data processing.

8. The method for extracting and reducing dimension based on the full life cycle data of electric energy meters according to claim 1, Features: In step 4, the preliminary extraction of key factors from the data after the correlation analysis in step 3 to achieve data dimensionality reduction includes: mapping the data after the correlation analysis to a new feature space.

9. The method for extracting and reducing dimensionality based on the full life cycle data of an electric energy meter according to claim 1, Features: In step 5, the factor test adopts the following algorithm: Among them, T represents the index used to compare the simple correlation coefficient and partial correlation coefficient between data, r ij represents the simple correlation coefficient, represents the partial correlation coefficient.

10. The method for extracting and reducing dimension based on the full life cycle data of electric energy meters according to claim 1, Features: In step 6, association rule analysis of key factors is performed using an incremental association rule mining algorithm based on probability.

11. A system for extracting and reducing dimension based on the full life cycle data of an electric energy meter using the method according to any one of claims 1 to 10, wherein the system include: Data identification and acquisition module, data association and extraction module, data dimension reduction module and data key factor library module; The data identification and acquisition module includes a module for identifying and acquiring data of the entire life cycle of the electric energy meter; The data association and extraction module is based on the open source stream processing framework Apache Flink and uses an incremental association rule mining algorithm to mine the association rules between the acquired data of the entire life cycle of the electric energy meter; The data dimension reduction module is used to reduce the data dimension to extract the key factors of the data; The multi-dimensional associated data key factor library module establishes a factor library according to the factor association rules mined by the key factor association rule unit. The factor library includes an archive factor library, an operation factor library, an environment factor library and a management factor library.

12. The system for extracting and reducing dimensionality based on the full life cycle data of electric energy meters according to claim 11, It is characterized in that The data dimension reduction module includes: a data correlation analysis unit, a preliminary extraction unit of key factors, a real-time factor data verification unit and a key factor association rule unit; The data correlation analysis unit is used to perform correlation analysis on the data after the data correlation and extraction module are associated; The preliminary extraction unit of key factors is used to map the data analyzed by the data correlation analysis unit to a new feature space to reduce the feature dimension and obtain preliminary key factors; The real-time factor data verification unit is used to calculate the correlation and commonality between the preliminary key factors obtained by the preliminary extraction unit of key factors; The key factor association rule unit is used to mine association rules for the factor data output by the real-time factor data verification unit.

13. A terminal comprising a processor and a storage medium; Features: The storage medium is used to store instructions; The processor is configured to operate according to the instructions to execute the steps of the method according to any one of claims 1-10.

14. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the program is executed by a processor, the steps of the method according to any one of claims 1 to 10 are implemented.

Citation Information

Patent Citations

  • Full-life-cycle cloud platform management system for intelligent electric energy meter

    CN106845816A

  • A transformer state evaluation method and system based on a principal component analysis method and a support vector machine

    CN109740859A

  • A quality accident root cause identification method

    CN109919446A

  • Electric power marketing report realization method and system based on report factors

    CN113590607A

  • PM2.5 prediction method and prediction model training method based on hybrid clustering

    CN114626593A

Cited By

  • New energy field group power generation capacity influence factor identification method based on dimension reduction analysis

    CN118863296A

  • Identification method of factors affecting power generation capacity of renewable energy farms based on dimensionality reduction analysis

    CN118863296B

  • Power grid inspection optimization method and system based on digital twinning

    CN118941278A

  • Power grid inspection optimization method and system based on digital twin

    CN118941278B