DC watt-hour meter measurement standard analysis method, device, equipment and storage medium
By performing missing value and abnormal value processing, feature extraction and coding on the measurement data of the DC energy meter, combined with the pre-trained analysis model, rapid abnormality judgment of the DC energy meter is achieved, which solves the problem of low measurement standard analysis efficiency in the existing technology. problems, improving analysis efficiency and accuracy.
Patent Information
- Application Number
- CN202311586975.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-24
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2043-11-24
AI Technical Summary
The existing DC energy meter measurement standard analysis efficiency is low, resulting in long data analysis time and affecting the analysis efficiency.
By obtaining the DC energy meter measurement data within the preset working hours, processing missing values and outliers, using data feature extraction algorithms and preset coding functions to extract and code features of the data, and combining pre-trained analysis models to perform measurement standard analysis. , determine whether the DC energy meter is abnormal.
It improves the accuracy and analysis efficiency of data, can quickly determine the abnormal state of the DC energy meter, and solves the problem of low measurement standard analysis efficiency under the existing method.
Smart Images

Figure CN117633680B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data analysis, and in particular to a measurement standard analysis method, device, electronic equipment and computer-readable storage medium for a direct current electric energy meter. Background Art
[0002] The DC energy meter is designed for applications such as DC panels, solar power supply, telecommunication base stations, subways, etc. This series of meters can measure the voltage, current, power, forward and reverse energy in the DC system.
[0003] Under the existing method, the measurement standard analysis of the DC power meter usually involves analyzing the data generated when the DC power meter is in operation item by item. This analysis method takes a long time, thus affecting the efficiency of the DC power meter measurement standard analysis. Summary of the invention
[0004] The present invention provides a device and a storage medium, the main purpose of which is to solve the problem of low efficiency in analysis of measurement standards of direct current electric energy meters.
[0005] To achieve the above object, the present invention provides a method for analyzing the measurement standard of a DC electric energy meter, comprising:
[0006] Acquire metering data of a DC electric energy meter within a preset working time, perform missing value processing and outlier processing on the metering data, and obtain a metering data set;
[0007] Extracting features from the measurement data set using a data feature extraction algorithm to obtain feature data;
[0008] Performing feature encoding processing on the processed feature data using a preset encoding function to obtain encoding features;
[0009] A pre-trained analysis model is used to perform measurement standard analysis on the DC electric energy meter according to the coding features to determine whether the DC electric energy meter is abnormal.
[0010] Optionally, obtaining the metering data of the DC electric energy meter within a preset working time includes:
[0011] Acquiring the working environment of the DC electric energy meter;
[0012] According to the working environment, obtaining electric energy meter parameters generated by the DC electric energy meter during a preset working time;
[0013] The electric energy meter measurement parameters are extracted from the electric energy meter parameters to obtain the measurement data.
[0014] Optionally, the extracting features of the measurement data set using a data feature extraction algorithm to obtain feature data includes:
[0015] Identify the data attributes of each metering data in the metering data, and obtain preset service attributes;
[0016] Normalizing the data attributes and the service attributes to obtain a data attribute scalar and a service attribute scalar;
[0017] Calculating the matching degree between the attribute scalar and the service attribute scalar;
[0018] When the matching degree is less than a preset matching degree, the data corresponding to the attribute scalar is discarded;
[0019] When the matching degree is greater than a preset matching degree, calculating the Pearson correlation coefficient between the data attribute scalar and the preset business attribute scalar;
[0020] When the Pearson correlation coefficient is not within a preset range, discarding the data corresponding to the attribute scalar;
[0021] When the Pearson correlation coefficient is within a preset range, the measurement data corresponding to the data attribute scalar is used as the feature data.
[0022] Optionally, the calculating the Pearson correlation coefficient between the data attribute scalar and the preset service attribute scalar includes:
[0023] The matching degree between the data attribute scalar and the preset service attribute scalar is calculated using the following formula:
[0024] ;
[0025] in, represents the data attribute scalar, represents the business attribute scalar, Indicates the matching degree, express and Covariance, express The variance of express The variance of .
[0026] Optionally, before performing measurement standard analysis on the DC electric energy meter according to the coding feature using the pre-trained measurement standard analysis model, the method further includes:
[0027] Acquire historical metering data of a DC electric energy meter, perform feature extraction on the historical metering data to obtain historical feature data, and use the historical feature data as a training data set;
[0028] Analyzing the DC electric energy meter according to the training data set using a neural network model, predicting the power of the DC electric energy meter when it is running, and obtaining a first power;
[0029] Calculating a difference value between the first power and a preset standard power of the training data set;
[0030] Determine whether the difference value is greater than or equal to a preset difference threshold;
[0031] If the difference value is greater than or equal to the difference threshold, after adjusting the bias term of the neural network model, the step of using the neural network model to analyze the DC power meter according to the training data set and predict the operating power is performed again;
[0032] If the difference value is less than the difference threshold, it is confirmed that the model training is completed and the measurement standard analysis model is obtained.
[0033] Optionally, the difference value between the first measurement standard analysis result and the training data set preset standard measurement standard analysis result is calculated using the following difference value algorithm:
[0034] ;
[0035] in, is the difference value, The first power , is the preset standard power of the training data set.
[0036] In order to solve the above problems, the present invention further provides a measurement standard analysis device for a DC electric energy meter, the device comprising:
[0037] A data acquisition module, for acquiring metering data of the DC electric energy meter, and performing missing value processing and abnormal value processing on the metering data;
[0038] A feature extraction module performs missing value processing and outlier processing on the feature data;
[0039] A data encoding module performs feature encoding on the processed feature data to obtain encoding features;
[0040] The model analysis module determines whether the DC electric energy meter is abnormal according to the feature code and through a measurement standard analysis model.
[0041] In order to solve the above problem, the present invention further provides an electronic device, the electronic device comprising:
[0042] at least one processor; and,
[0043] a memory communicatively connected to the at least one processor; wherein,
[0044] The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the measurement standard analysis method of the DC electric energy meter described above.
[0045] In order to solve the above problem, the present invention also provides a computer-readable storage medium, in which at least one computer program is stored. The at least one computer program is executed by a processor in an electronic device to implement the measurement standard analysis method of the DC electric energy meter described above.
[0046] The embodiment of the present invention obtains the metering data of the DC electric energy meter within the preset working time, and processes the missing values and abnormal values of the metering data to obtain a metering data set, which can improve the accuracy of the data. Subsequently, by extracting features from the metering data set and performing feature encoding, a coding feature that is easy for the computer to understand and learn is obtained. Finally, a pre-trained metering standard analysis model is used to perform a metering standard analysis on the DC electric energy meter according to the coding feature and determine whether the DC electric energy meter is abnormal, which can solve the problem of low efficiency when performing metering standard analysis in the existing method. BRIEF DESCRIPTION OF THE DRAWINGS
[0047] Figure 1 A schematic diagram of a flow chart of a method for analyzing a measurement standard of a DC electric energy meter provided in one embodiment of the present invention;
[0048] Figure 2 A schematic diagram of a process for extracting features from a metering data set provided by an embodiment of the present invention;
[0049] Figure 3 A schematic diagram of a process for training a measurement standard analysis model provided by an embodiment of the present invention;
[0050] Figure 4 A schematic diagram of a flow chart of a measurement standard analysis model provided in an embodiment of the present invention performing measurement standard analysis on a DC electric energy meter;
[0051] Figure 5 A functional module diagram of a measurement standard analysis device for a DC electric energy meter provided in one embodiment of the present invention;
[0052] Figure 6 A schematic diagram of the structure of an electronic device for implementing the measurement standard analysis method of a DC electric energy meter provided by an embodiment of the present invention;
[0053] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0054] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.
[0055] The embodiment of the present application provides one. The execution subject includes but is not limited to at least one of the electronic devices such as the server and the terminal that can be configured to execute the method provided in the embodiment of the present application. In other words, the software or hardware installed on the terminal device or the server device can be executed, and the software can be a blockchain platform. The server includes but is not limited to: a single server, a server cluster, a cloud server or a cloud server cluster, etc. The server can be an independent server, or it can be a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (Content Delivery Network, CDN), and big data and artificial intelligence platforms.
[0056] S1. Obtain metering data of a DC electric energy meter within a preset working time, perform missing value processing and outlier processing on the metering data, and obtain a metering data set.
[0057] In the embodiment of the present invention, the preset working time can be set to one minute, ten minutes, one hour, etc., and can also be set according to the needs of the business scenario.
[0058] In the embodiment of the present invention, the DC electric energy meter is an instrument for measuring the consumption or generation of DC electric energy, and is composed of a measuring circuit, a display device and a control device. The DC electric energy meter calculates the consumption or generation of electric energy by measuring the product of current and voltage. It uses a resistive current transformer and a voltage transformer to measure current and voltage.
[0059] In detail, the measuring circuit processes the current and voltage signals and converts them into output signals proportional to the power consumption or generation. The display device can display the value of the power consumption or generation, usually expressed in kilowatt-hours (kWh). The control device is used to control the functions and operations of the power meter.
[0060] Furthermore, the DC energy meter is widely used in DC power systems, such as solar power generation systems, electric vehicle charging piles, telecommunication base stations, and DC power industries. It can help users monitor and manage the consumption or generation of DC power for energy management and billing.
[0061] In the embodiment of the present invention, the step of obtaining the metering data of the DC electric energy meter within the preset working time includes:
[0062] Acquiring the working environment of the DC electric energy meter;
[0063] According to the working environment, obtaining electric energy meter parameters generated by the DC electric energy meter during a preset working time;
[0064] The electric energy meter measurement parameters are extracted from the electric energy meter parameters to obtain the measurement data.
[0065] In detail, the working environment refers to the environment when the DC electric energy meter is operating, such as the above-mentioned working environments such as solar power supply, electric vehicle charging piles, telecommunication base stations, etc. The electric energy meter parameters refer to the data generated by the DC electric energy meter when it is working, such as interface parameters, electric energy parameters and equipment parameters, etc. The electric energy meter measurement parameters refer to the parameters used to characterize whether the DC electric energy meter is in an abnormal state during operation, such as the above-mentioned interface parameters, electric energy parameters, etc.
[0066] Furthermore, in an embodiment of the present invention, the metering parameters of the electric energy meter can be realized by a similarity matching algorithm, that is, each parameter of the electric energy meter parameters is matched with a parameter in a standard electric energy meter metering parameter library, and the similarity algorithm includes a distance formula, a cosine similarity algorithm, and the like.
[0067] In the embodiment of the present invention, the standard electric energy meter measurement parameter library is a database storing parameters related to electric energy measurement, which is used to record parameters such as the manufacturer, model, rated voltage, rated current, and electric revolutions per kilowatt-hour (degree) of the electric energy meter. These parameters are the basis of electric energy meter measurement and help maintain the normal operation of the electric energy meter.
[0068] In the embodiment of the present invention, the missing value processing refers to deleting samples containing missing values or filling them with average values.
[0069] In detail, the deletion process refers to deleting samples or features with missing information attribute values, so as to obtain a complete data table. It is very effective when the object has multiple attribute missing values and the deleted objects with missing values are small compared to the data volume of the initial data set; the average value filling process refers to dividing the attributes in the initial data set into numerical attributes and non-numerical attributes and processing them separately. If the null value is numeric, the missing attribute value is filled according to the average value of the attribute in all other objects. If the null value is non-numeric, the missing attribute value is filled with the value with the largest number of values of the attribute in all other objects (that is, the value with the highest frequency of occurrence) according to the majority principle in statistics.
[0070] Furthermore, in a data set, we often refer to variables without missing values as complete variables, and variables with missing values in a data set as incomplete variables.
[0071] Specifically, the types of missing data can be divided into Missing at Random (MAR), Missing Completely at Random (MCAR), and Missing not at Random (MNAR). Random missing means that the probability of data missing is not related to the missing data itself, but only to some of the observed data. In other words, the missing data is not completely random, and the missing of this type of data depends on other complete variables. Completely random missing means that the missing data is completely random, does not depend on any incomplete or complete variables, and does not affect the unbiasedness of the sample. Simply put, the probability of data missing is completely unrelated to its hypothetical value and the values of other variables. Non-random missing means that the missing data is related to the value of the incomplete variable itself.
[0072] In the embodiment of the present invention, the outlier processing refers to deleting samples in the feature data that contain values far greater than or far less than the normal value, thereby eliminating the influence of the outliers on the feature data.
[0073] In the embodiment of the present invention, by performing missing value processing and outlier processing on the measurement data, the availability of the feature data is improved and the accuracy of subsequent analysis is improved.
[0074] S2. Extract features from the measurement data set using a data feature extraction algorithm to obtain feature data.
[0075] In the embodiment of the present invention, the data feature extraction algorithm may be a filtering method, a wrapping method, or an embedding method.
[0076] In the embodiment of the present invention, the step of extracting features from the metering data set using a data feature extraction algorithm to obtain feature data includes:
[0077] S21, identifying the data attribute of each metering data in the metering data, and obtaining a preset service attribute;
[0078] S22, normalizing the data attributes and the service attributes to obtain a data attribute scalar and a service attribute scalar;
[0079] S23, calculating the matching degree between the attribute scalar and the service attribute scalar;
[0080] S24, determining whether the matching degree is greater than or equal to a preset matching degree;
[0081] When the matching degree is less than the preset matching degree, executing S25, discarding the data corresponding to the attribute scalar;
[0082] When the matching degree is greater than the preset matching degree, S26 is executed to calculate the Pearson correlation coefficient between the data attribute scalar and the preset business attribute scalar.
[0083] S27, determining whether the Pearson correlation coefficient is within a preset range;
[0084] When the Pearson correlation coefficient is not within the preset range, executing S28, discarding the data corresponding to the attribute scalar;
[0085] When the Pearson correlation coefficient is within a preset range, S29 is executed to use the measurement data corresponding to the data attribute scalar as the feature data.
[0086] Among them, the data attribute refers to the information dimension used to describe the metering data, that is, the data information of the metering data can be clarified through the data attribute, and the preset business attribute refers to the data attribute that needs to be extracted in different business scenarios. For example, in the telecommunications base station scenario, the preset business attribute can be set to protocol attributes, power attributes, etc. In the solar power supply scenario, the preset business attribute can be set to current, voltage and other attributes.
[0087] In the embodiment of the present invention, the normalization process is a method of simplifying calculations, which is mainly used to transform a dimensional expression into a dimensionless expression and become a scalar. Normalization is an effective way to reduce the value of a quantity, so that the absolute value of the physical system value becomes a relative value relationship.
[0088] In the embodiment of the present invention, the matching degree between the data attribute scalar and the preset service attribute scalar is calculated using the following formula:
[0089] ;
[0090] in, represents the data attribute scalar, represents the business attribute scalar, Indicates the matching degree, express and Covariance, express The variance of express The variance of .
[0091] Furthermore, before calculating the matching degree between the data attribute and the preset business attribute, the method of the embodiment of the present invention also includes: converting the data attribute and the preset business attribute into vector form respectively to realize the numerical conversion between the data attribute and the preset business attribute, thereby ensuring the premise of subsequent matching degree calculation. The preset matching degree needs to be set according to the actual business scenario.
[0092] In an embodiment of the present invention, the Pearson correlation coefficient can be used to evaluate the correlation between two variables. It is a value between -1 and 1, indicating the strength and direction of the linear relationship between the two variables. The closer the value of the Pearson correlation coefficient is to 1 or -1, the stronger the correlation between the feature and the target variable; the closer it is to 0, the weaker the linear relationship between the feature and the target variable.
[0093] In detail, the Pearson correlation coefficient can be expressed by the following formula:
[0094] ;
[0095] in, represents the Pearson correlation coefficient, and The first data, and Respectively represent the average values of data attribute scalar and business attribute scalar, Indicates sum.
[0096] In the embodiment of the present invention, by performing feature extraction on the measurement data, key data in the measurement data is obtained, thereby improving the processing speed of subsequent data.
[0097] S3. Perform feature encoding processing on the processed feature data using a preset encoding function to obtain encoding features.
[0098] In the embodiment of the present invention, the step of encoding the feature data using a preset encoding function to obtain the encoded data includes:
[0099] Determine the encoding form and encoding rules of each data in the characteristic data according to a preset encoding function;
[0100] According to the encoding rule, each data in the feature data is encoded according to the encoding form to obtain encoded data.
[0101] In detail, the encoding form refers to the data format of the feature data after encoding, such as binary form, and the encoding rule refers to the rule that the feature data needs to follow when encoding the data, which is determined based on different encoding functions.
[0102] In the embodiment of the present invention, the encoding function includes: one-hot encoding and label encoding.
[0103] In detail, the one-hot encoding is a method of converting categorical data into numerical data that can be used by machine learning algorithms. In one-hot encoding, each value of each categorical variable is converted into a binary vector in which only one element is 1 and the rest are 0.
[0104] Furthermore, the label encoding is a method of converting category features into numerical values, and the label encoding maps each category to an integer value, starting from 0 and increasing.
[0105] In the embodiment of the present invention, the processed feature data is converted into a numerical form through feature coding, thereby achieving a unified information format of the data, facilitating computer understanding and learning, and improving the efficiency of subsequent data processing.
[0106] S4. Performing a measurement standard analysis on the DC electric energy meter according to the coding features using a pre-trained measurement standard analysis model to determine whether the DC electric energy meter is abnormal.
[0107] In an embodiment of the present invention, the measurement standard analysis model may be a neural network model, including but not limited to a CNN (Convolutional Neural Networks) model and an RNN (Recurrent Neural Network) model.
[0108] In the embodiment of the present invention, before performing measurement standard analysis on the DC electric energy meter according to the coding feature using the pre-trained measurement standard analysis model, the method further includes:
[0109] S31, obtaining historical metering data of a DC electric energy meter, performing feature extraction on the historical metering data to obtain historical feature data, and using the historical feature data as a training data set;
[0110] S32, using a neural network model to analyze the DC power meter according to the training data set, predicting the power of the DC power meter when it is running, and obtaining a first power;
[0111] S33, calculating a difference value between the first power and a preset standard power of the training data set;
[0112] S34, determining whether the difference value is greater than or equal to a preset difference threshold;
[0113] If the difference value is greater than or equal to the difference threshold, execute S35, adjust the bias item of the neural network model, and then execute again the step of analyzing the DC power meter according to the training data set using the neural network model and predicting the operating power;
[0114] If the difference value is less than the difference threshold, execute S36 to confirm that the model training is completed, and obtain the measurement standard analysis model.
[0115] In detail, the calculating the difference between the first measurement standard analysis result and the training data set preset standard measurement standard analysis result includes:
[0116] The difference value between the first measurement standard analysis result and the preset standard measurement standard analysis result of the training data set is calculated using the following difference value algorithm:
[0117] ;
[0118] in, is the difference value, The first power , is the preset standard power of the training data set.
[0119] In the embodiment of the present invention, the bias term refers to a parameter added in the neural network learning to control the degree of fit of the model to the input data. The bias term can make the model move up or down at the best fit position to better adapt to different data distributions. By adjusting the bias term, the prediction accuracy of the model can be improved.
[0120] In an embodiment of the present invention, the method of performing measurement standard analysis on the DC electric energy meter according to the coding feature using a pre-trained measurement standard analysis model includes:
[0121] S41, using the measurement standard analysis model to perform data conversion processing on the characteristic data to obtain a characteristic matrix;
[0122] S42, using the metrology standard analysis model to perform a convolution operation on the feature matrix through a convolution layer to obtain a convolution feature;
[0123] S43, using the metrology standard analysis model to perform a maximum pooling operation on the convolutional features through a pooling layer to obtain a pooling feature;
[0124] S44. Utilize the measurement standard analysis model to perform abnormality detection on the DC electric energy meter according to the pooling features through a fully connected layer to obtain an abnormality probability.
[0125] In the embodiment of the present invention, the abnormal probability is used to indicate the abnormal degree of the DC electric energy meter. An abnormal probability threshold may be set to determine whether the DC electric energy meter is abnormal based on whether the abnormal probability is greater than the abnormal probability threshold.
[0126] In the embodiment of the present invention, the abnormal probability threshold needs to be determined after measurement based on actual conditions.
[0127] In an embodiment of the present invention, historical metering data of a DC electric energy meter is collected and features are extracted from the historical metering data to obtain historical feature data. The historical feature data is used as a training set to train a metering standard analysis model. The metering standard analysis model is subsequently used to analyze parameters of the electric energy meter during operation to determine whether the electric energy meter is abnormal, thereby improving the metering standard analysis efficiency of the DC electric energy meter.
[0128] In the embodiment of the present invention, the data conversion process refers to representing the text in the form of word vectors and then concatenating the word vectors to form a matrix.
[0129] Specifically, each word in the text is first mapped into a word vector of a fixed length, and then all the word vectors are concatenated into a matrix in order, as shown below:
[0130] ;
[0131] in, is the concatenated matrix, is the length of the text, is the dimension of the word vector, which refers to the number of parameters used when converting words or characters into a vector matrix.
[0132] In the embodiment of the present invention, the convolution operation refers to extracting some features from the feature matrix by performing a convolution operation on the feature matrix and the convolution kernel.
[0133] Specifically, the feature matrix is convolved with a convolution kernel of size h*d to obtain a feature map Ci, where h is the height of the convolution kernel and d is the dimension of the word vector. Then, the convolution kernel is moved to the right by one step, and the vector matrix and the convolution kernel are convolved again to obtain another feature map Ci+1. This is repeated until the convolution kernel moves to the right end of the input matrix, and finally the feature map C=[C1, C2, ..., Ck] is obtained. Here, k is the number of convolution kernels, indicating that k convolution kernels of different sizes are used for convolution operation. The convolution operation can be expressed by the following formula:
[0134] ;
[0135] in, is the matrix obtained by convolution operation, The first characteristic matrix is represented by OK, is the convolution kernel parameter, is the bias term, As the activation function, the ReLU function is usually used.
[0136] In the embodiment of the present invention, the maximum pooling operation refers to taking the maximum value of each channel in the feature map as the output of the channel, and finally obtaining a feature vector after dimensionality reduction.
[0137] Specifically, each feature map in the feature map C is subjected to maximum pooling, and the maximum value pi in each feature map Ci is extracted. Since the feature map C = [C1, C2, ..., Ck], the feature vector after pooling can be expressed by the following formula:
[0138] p=[p1,p2,p3,…,pk] ;
[0139] Among them, k is the number of convolution kernels, which is the same as the number of feature maps output by the convolution layer.
[0140] In the embodiment of the present invention, the fully connected layer is used to map the feature vector p output by the pooling layer to the dimension of the classification result, which can be specifically expressed by the formula:
[0141] ;
[0142] in, is the output of the fully connected layer, is the weight parameter of the fully connected layer, which is determined according to the actual task requirements. is the bias term, As the activation function, the softmax function is usually used.
[0143] In the embodiment of the present invention, by using a large number of training samples, the measurement standard analysis model can learn the complex relationship between the operating parameters and abnormal states of the DC electric energy meter under different operating environments, so as to accurately judge the abnormality of new unknown samples. In addition, the performance and stability of the model can be further improved through appropriate model selection, data preprocessing, training and tuning steps.
[0144] It should be noted that the performance of the model depends largely on the quality of available data and the representativeness of the sample. Therefore, collecting sufficient, representative and accurately labeled DC power meter operating parameter data is the key to ensuring the accuracy of the model. In addition, timely updating and maintenance of the model is also an important factor in ensuring the effectiveness of the model under different operating environments and data changes.
[0145] In detail, the measurement standard analysis model has a powerful nonlinear mapping capability. The measurement standard analysis model is composed of multiple neurons and layers. Each neuron nonlinearly maps the input signal through an activation function, and then passes the mapping result to the next layer. This nonlinear mapping capability enables the measurement standard analysis model to model complex nonlinear relationships. For the complex relationship that may exist between the operating parameters and abnormal conditions of the DC power meter, the measurement standard analysis model can capture this complexity through layer-by-layer nonlinear transformation.
[0146] Furthermore, the measurement standard analysis model has the ability to learn implicit features. During the training process, the measurement standard analysis model will continuously update the parameters of the model through the back propagation algorithm, so that the model can automatically learn the implicit features in the data. In the problem of abnormality detection of the DC power meter, these implicit features may be abstract features related to the abnormality, such as a certain waveform shape, spectrum distribution, etc. Through deep neural networks, higher-level and more expressive features can be gradually extracted to better describe the operating status of the DC power meter.
[0147] Furthermore, the measurement standard analysis model usually requires a large number of samples for training to exert its powerful learning ability. By providing large-scale electricity meter operating parameter data and corresponding abnormal labels, the measurement standard analysis model can more accurately learn the relationship between operating parameters and abnormal states. Large sample learning can help the measurement standard analysis model generalize better and make better abnormal judgments in practical applications.
[0148] Furthermore, the measurement standard analysis model has strong pattern recognition capabilities and can automatically extract relevant features from the input operating parameter data. By adjusting the network structure and parameters, the measurement standard analysis model can learn features related to abnormal states and map these features to the operating parameters of the electric energy meter into abnormal judgment results.
[0149] Therefore, the metrology standard analysis model can become a powerful tool to complete the modeling task of DC power meter anomaly detection.
[0150] In an embodiment of the present invention, firstly, by collecting metering data of a DC electric energy meter and performing feature extraction on the metering data to obtain feature data, key data in the metering data can be obtained, thereby improving the processing speed of subsequent data; secondly, in an embodiment of the present invention, by performing missing value processing and abnormal value processing on the feature data to obtain processed feature data, the availability of the feature data is improved, and the accuracy of subsequent analysis is improved; further, in an embodiment of the present invention, by performing feature encoding on the processed feature data using a preset encoding function to obtain encoding features, the information format of the feature data is unified, thereby further improving the processing efficiency of subsequent data; further, in the present invention, by collecting historical metering data of a DC electric energy meter and performing feature extraction on the historical metering data to obtain historical feature data, the historical feature data is used as a training set and a metering standard analysis model is trained, and subsequently the metering standard analysis model is used to analyze according to the parameters of the electric energy meter during operation to determine whether the electric energy meter is abnormal, thereby improving the metering standard analysis efficiency of the DC electric energy meter.
[0151] like Figure 5 , which is a functional module diagram of a measurement standard analysis device for a DC electric energy meter provided in an embodiment of the present invention.
[0152] The measurement standard analysis device 100 of the DC electric energy meter of the present invention can be installed in an electronic device. According to the functions to be implemented, the measurement standard analysis device 100 of the DC electric energy meter can include a data acquisition module 101, a feature extraction module 102, a data encoding module 103 and a model analysis module 104. The module of the present invention can also be called a unit, which refers to a series of computer program segments that can be executed by a processor of an electronic device and can complete fixed functions, which are stored in the memory of the electronic device.
[0153] In this embodiment, the functions of each module / unit are as follows:
[0154] The data acquisition module 101 acquires the metering data of the DC electric energy meter and performs missing value processing and abnormal value processing on the metering data;
[0155] The feature extraction module 102 performs missing value processing and outlier processing on the feature data;
[0156] The data encoding module 103 performs feature encoding on the processed feature data to obtain encoding features;
[0157] The model analysis module 104 determines whether the DC energy meter is abnormal according to the feature code and through a measurement standard analysis model.
[0158] In detail, each module described in the measurement standard analysis device 100 of the DC electric energy meter in the embodiment of the present invention is used in the same manner as described above. Figures 1 to 4 The same technical means as described in and can produce the same technical effects, which will not be repeated here.
[0159] like Figure 6 FIG. 1 is a schematic diagram of the structure of an electronic device implemented according to an embodiment of the present invention.
[0160] The electronic device 1 may include a processor 10, a memory 11, a communication bus 12, and a communication interface 13, and may also include a computer program stored in the memory 11 and executable on the processor 10, such as a measurement standard analysis program for a DC electric energy meter.
[0161] In some embodiments, the processor 10 may be composed of an integrated circuit, for example, a single packaged integrated circuit, or a plurality of packaged integrated circuits with the same or different functions, including one or more central processing units (CPUs), microprocessors, digital processing chips, graphics processors, and combinations of various control chips. The processor 10 is the control core (ControlUnit) of the electronic device, and uses various interfaces and lines to connect various components of the entire electronic device, and executes various functions and processes data of the electronic device by running or executing programs or modules stored in the memory 11 (for example, executing a measurement standard analysis program of a DC electric energy meter, etc.), and calling data stored in the memory 11.
[0162] The memory 11 includes at least one type of readable storage medium, and the readable storage medium includes a flash memory, a mobile hard disk, a multimedia card, a card-type memory (for example, an SD or DX memory, etc.), a magnetic memory, a disk, an optical disk, etc. In some embodiments, the memory 11 may be an internal storage unit of an electronic device, such as a mobile hard disk of the electronic device. In other embodiments, the memory 11 may also be an external storage device of an electronic device, such as a plug-in mobile hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. equipped on the electronic device. Further, the memory 11 may also include both an internal storage unit of the electronic device and an external storage device. The memory 11 can not only be used to store application software and various types of data installed in the electronic device, such as the code of the measurement standard analysis program of the DC electric energy meter, but also be used to temporarily store data that has been output or is to be output.
[0163] The communication bus 12 may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. The bus is configured to realize connection and communication between the memory 11 and at least one processor 10, etc.
[0164] The communication interface 13 is used for communication between the above-mentioned electronic device and other devices, including a network interface and a user interface. Optionally, the network interface may include a wired interface and / or a wireless interface (such as a WI-FI interface, a Bluetooth interface, etc.), which is generally used to establish a communication connection between the electronic device and other electronic devices. The user interface may be a display (Display), an input unit (such as a keyboard (Keyboard)), and optionally, the user interface may also be a standard wired interface, a wireless interface. Optionally, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, and an OLED (Organic Light-Emitting Diode, organic light-emitting diode) touch device, etc. Among them, the display may also be appropriately referred to as a display screen or a display unit, which is used to display information processed in the electronic device and to display a visual user interface.
[0165] The figure only shows an electronic device with components. Those skilled in the art will understand that the structure shown in the figure does not constitute a limitation on the electronic device, and may include fewer or more components than shown in the figure, or combine certain components, or arrange the components differently.
[0166] For example, although not shown, the electronic device may also include a power source (such as a battery) for supplying power to various components. Preferably, the power source may be logically connected to the at least one processor 10 through a power management device, so that the power management device can realize functions such as charging management, discharging management, and power consumption management. The power source may also include one or more DC or AC power sources, recharging devices, power failure detection circuits, power converters or inverters, power status indicators, and other arbitrary components. The electronic device may also include a variety of sensors, Bluetooth modules, Wi-Fi modules, etc., which will not be repeated here.
[0167] It should be understood that the embodiment is for illustration only and the scope of the patent application is not limited to this structure.
[0168] The measurement standard analysis program of the DC electric energy meter stored in the memory 11 of the electronic device 1 is a combination of multiple instructions. When running in the processor 10, it can achieve:
[0169] Acquire metering data of a DC electric energy meter within a preset working time, perform missing value processing and outlier processing on the metering data, and obtain a metering data set;
[0170] Extracting features from the measurement data set using a data feature extraction algorithm to obtain feature data;
[0171] Performing feature encoding processing on the processed feature data using a preset encoding function to obtain encoding features;
[0172] A pre-trained analysis model is used to perform measurement standard analysis on the DC electric energy meter according to the coding features to determine whether the DC electric energy meter is abnormal.
[0173] Specifically, the specific implementation method of the processor 10 for the above instructions can refer to the description of the relevant steps in the corresponding embodiment of the accompanying drawings, which will not be repeated here.
[0174] Furthermore, if the module / unit integrated in the electronic device 1 is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. The computer-readable storage medium can be volatile or non-volatile. For example, the computer-readable medium can include: any entity or device capable of carrying the computer program code, a recording medium, a USB flash drive, a mobile hard disk, a magnetic disk, an optical disk, a computer memory, and a read-only memory (ROM).
[0175] The present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor of an electronic device, the computer program can implement:
[0176] Acquire metering data of a DC electric energy meter within a preset working time, perform missing value processing and outlier processing on the metering data, and obtain a metering data set;
[0177] Extracting features from the measurement data set using a data feature extraction algorithm to obtain feature data;
[0178] Performing feature encoding processing on the processed feature data using a preset encoding function to obtain encoding features;
[0179] A pre-trained analysis model is used to perform measurement standard analysis on the DC electric energy meter according to the coding features to determine whether the DC electric energy meter is abnormal.
[0180] In the several embodiments provided by the present invention, it should be understood that the disclosed devices, apparatuses and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of the modules is only a logical function division, and there may be other division methods in actual implementation.
[0181] The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0182] In addition, each functional module in each embodiment of the present invention may be integrated into one processing unit, each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of hardware plus software functional modules.
[0183] It is obvious to those skilled in the art that the present invention is not limited to the details of the above exemplary embodiments, and that the present invention can be implemented in other specific forms without departing from the spirit or essential characteristics of the present invention.
[0184] Therefore, no matter from which point of view, the embodiments should be regarded as illustrative and non-restrictive, and the scope of the present invention is not limited only according to the above description, and it is intended that all changes within the meaning and scope of equivalent elements within the scope of protection are included in the present invention.
[0185] The embodiments of the present application can acquire and process relevant data based on artificial intelligence technology. Artificial Intelligence (AI) is the theory, method, technology and application system that uses digital computers or machines controlled by digital computers to simulate, extend and expand human intelligence, perceive the environment, acquire knowledge and use knowledge to obtain the best results.
[0186] In addition, it is clear that the word "comprising" does not exclude other units or steps, and the singular does not exclude the plural. Multiple units or devices stated in the system can also be implemented by one unit or device through software or hardware. The words first, second, etc. are used to indicate names, and do not indicate any particular order.
[0187] Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solution of the present invention can be modified or replaced by equivalents without departing from the spirit and scope of the technical solution of the present invention.
Claims
1. A method for analyzing the measurement standard of a DC electric energy meter, characterized in that: The method comprises: Acquire metering data of a DC electric energy meter within a preset working time, perform missing value processing and outlier processing on the metering data, and obtain a metering data set; Extracting features from the measurement data set using a data feature extraction algorithm to obtain feature data; Performing feature encoding processing on the feature data using a preset encoding function to obtain encoding features; Using a pre-trained analysis model to perform a measurement standard analysis on the DC electric energy meter according to the coding features to determine whether the DC electric energy meter is abnormal; Before performing measurement standard analysis on the DC electric energy meter according to the coding feature using the pre-trained measurement standard analysis model, the method further includes: Acquire historical metering data of a DC electric energy meter, perform feature extraction on the historical metering data to obtain historical feature data, and use the historical feature data as a training data set; Analyzing the DC electric energy meter according to the training data set using a neural network model, predicting the power of the DC electric energy meter when it is running, and obtaining a first power; Calculating a difference value between the first power and a preset standard power of the training data set; Determine whether the difference value is greater than or equal to a preset difference threshold; If the difference value is greater than or equal to the difference threshold, after adjusting the bias term of the neural network model, the step of using the neural network model to analyze the DC power meter according to the training data set and predict the operating power is performed again; If the difference value is less than the difference threshold, it is confirmed that the model training is completed and the measurement standard analysis model is obtained.
2. The DC electric energy meter measurement standard analysis method according to claim 1, characterized in that: The step of obtaining the metering data of the DC electric energy meter within the preset working time includes: Acquiring the working environment of the DC energy meter; According to the working environment, obtaining electric energy meter parameters generated by the DC electric energy meter during a preset working time; The electric energy meter measurement parameters are extracted from the electric energy meter parameters to obtain the measurement data.
3. The measurement standard analysis method of a DC electric energy meter according to claim 2, characterized in that: The method of extracting features from the measurement data set using a data feature extraction algorithm to obtain feature data includes: Identify the data attributes of each metering data in the metering data, and obtain preset service attributes; Normalizing the data attributes and the service attributes to obtain a data attribute scalar and a service attribute scalar; Calculating the matching degree between the attribute scalar and the service attribute scalar; When the matching degree is less than a preset matching degree, the data corresponding to the attribute scalar is discarded; When the matching degree is greater than a preset matching degree, calculating the Pearson correlation coefficient between the data attribute scalar and the business attribute scalar; When the Pearson correlation coefficient is not within a preset range, discarding the data corresponding to the attribute scalar; When the Pearson correlation coefficient is within a preset range, the measurement data corresponding to the data attribute scalar is used as the feature data.
4. The measurement standard analysis method of a DC electric energy meter according to claim 3, characterized in that: The calculating the Pearson correlation coefficient between the data attribute scalar and the business attribute scalar includes: The matching degree between the data attribute scalar and the service attribute scalar is calculated using the following formula: ; in, represents the data attribute scalar, represents the business attribute scalar, Indicates the matching degree, express and Covariance, express The variance of express The variance of .
5. The DC electric energy meter measurement standard analysis method according to claim 1, characterized in that: The difference value between the first power and the analysis result of the preset standard measurement standard of the training data set is calculated using the following difference value algorithm: ; in, is the difference value, The first power , is the preset standard power of the training data set.
6. The DC electric energy meter measurement standard analysis method according to claim 1, characterized in that:The method of using a pre-trained measurement standard analysis model to perform measurement standard analysis on the DC electric energy meter according to the coding feature includes: Performing data conversion processing on the characteristic data using the measurement standard analysis model to obtain a characteristic matrix; Using the metrology standard analysis model to perform a convolution operation on the feature matrix through a convolution layer to obtain convolution features; Using the metrology standard analysis model, a maximum pooling operation is performed on the convolutional features through a pooling layer to obtain a pooling feature; The measurement standard analysis model is used to perform anomaly detection on the DC electric energy meter according to the pooling features through a fully connected layer to obtain anomaly probability.
7. A measurement standard analysis device for a DC electric energy meter, used to implement the measurement standard analysis method for a DC electric energy meter as claimed in claim 1, characterized in that: The device comprises: A data acquisition module, for acquiring metering data of the DC electric energy meter, and performing missing value processing and abnormal value processing on the metering data; Feature extraction and processing module, which processes missing values and outliers for feature data; A data encoding module performs feature encoding on the processed feature data to obtain encoding features; A model analysis module, which determines whether the DC electric energy meter is abnormal according to the characteristic code and through a measurement standard analysis model; Before performing measurement standard analysis on the DC electric energy meter according to the coding feature using the pre-trained measurement standard analysis model, the method further includes: Acquire historical metering data of a DC electric energy meter, perform feature extraction on the historical metering data to obtain historical feature data, and use the historical feature data as a training data set; Analyzing the DC electric energy meter according to the training data set using a neural network model, predicting the power of the DC electric energy meter when it is running, and obtaining a first power; Calculating a difference value between the first power and a preset standard power of the training data set; Determine whether the difference value is greater than or equal to a preset difference threshold; If the difference value is greater than or equal to the difference threshold, after adjusting the bias term of the neural network model, the step of using the neural network model to analyze the DC power meter according to the training data set and predict the operating power is performed again; If the difference value is less than the difference threshold, it is confirmed that the model training is completed and the measurement standard analysis model is obtained.
8. An electronic device, characterized in that: The electronic device comprises: at least one processor; and, a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the measurement standard analysis method for a DC electric energy meter as described in any one of claims 1 to 6.
9. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the measurement standard analysis method of a DC electric energy meter as claimed in any one of claims 1 to 6 is implemented.
Citation Information
Patent Citations
Power distribution network user electricity stealing behavior diagnosis method based on three-layer progressive analysis model
CN113094884A
Power utilization acquisition data missing value filling method, system and device
CN113469189A
Metering equipment abnormity on-line monitoring model and error calculation method
CN114325555A
Equipment parameter analysis and adjustment method and system for special transformer acquisition terminal
CN114331761A
Metering standard analysis method and device for direct-current electric energy meter
CN115561700A
