A method, device, electronic device and storage medium for calculating electric meter error
By performing data ultra-clear processing and establishing a mapping relationship on the high-frequency and low-frequency data of the electric meter, the problem of low accuracy of the electric meter error calculation is solved, the accuracy of the error calculation is improved and the labor cost is reduced.
Patent Information
- Application Number
- CN202111517967.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-13
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2041-12-13
AI Technical Summary
Existing remote monitoring technology has a low accuracy in calculating meter errors, resulting in a large difference between the calculated error value and the actual error value.
By collecting high-frequency measurement data and low-frequency measurement data from electric meters, a generative adversarial network is used to perform data ultra-clear processing, establish a mapping relationship between generated samples and line losses, and calculate electric meter errors.
The accuracy of meter error calculation is improved, making the calculated error value closer to the actual error value and reducing labor costs.
Smart Images

Figure CN114200382B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of electric meter monitoring, and in particular to an electric meter error calculation method, device, electronic equipment and storage medium. Background Art
[0002] In recent years, the field of image processing has been able to achieve high-precision super-resolution reconstruction, that is, to make blurred images clear and restore their internal details. This technology takes advantage of the advantages of deep learning methods in image processing and is a major breakthrough in the field of image processing. Its essence is to achieve the transformation of data from low dimensions to high dimensions, or from incomplete information to complete information. To achieve this transformation, it is necessary to select the correct one from multiple possible high-dimensional results, which is very difficult.
[0003] Electricity meters are widely used in various fields of the power system due to their monitoring and billing functions. One of the development factors of the power market under the digital grid is data with higher sampling frequency, richer details and more accurate measurement, which is used to explore the relationship between market players and market rules.
[0004] At present, most of the remote monitoring technologies for electricity meter errors use data with preset sampling frequencies for data mining. However, the low sampling frequency of the electricity meter will inevitably lead to insufficient data features, making the calculated electricity meter error value far from the actual error value. Summary of the invention
[0005] The present invention provides an electric meter error calculation method, device, electronic equipment and storage medium, which are used to solve the technical problem that the calculation accuracy of the electric meter error in the existing remote monitoring technology is low.
[0006] The present invention provides an electric meter error calculation method, comprising:
[0007] Collect high-frequency and low-frequency measurement data of each electric meter in the preset area;
[0008] Generate a data ultra-definition model using the low-frequency measurement data, the high-frequency measurement data and a preset generative adversarial network;
[0009] Inputting the low-frequency measurement data into the data ultra-definition model and outputting generated samples;
[0010] Acquire a mapping relationship between a generated sample and a line loss, and acquire a line loss value of the generated sample according to the mapping relationship;
[0011] An electric meter error of the electric meter is calculated according to the generated sample and the line loss value.
[0012] Optionally, the generative adversarial network includes a generator and a discriminator; the step of using the low-frequency measurement data, the high-frequency measurement data and a preset generative adversarial network to generate a data ultra-definition model includes:
[0013] Inputting the low-frequency measurement data into the generator to obtain an initial generated sample;
[0014] Inputting the initial generated sample and the high-frequency measurement data into the discriminator, and outputting a sample error between the initial generated sample and the high-frequency measurement data;
[0015] The generator parameters of the generator and the discriminator parameters of the discriminator are adjusted according to the sample error, and the low-frequency measurement data is input into the generator to obtain the step of initially generating samples, until the sample error is lower than a preset threshold, and the generator parameters and the discriminator parameters are used to generate a data ultra-definition model.
[0016] Optionally, before the step of obtaining a mapping relationship between the generated sample and the line loss, the method further includes:
[0017] Extracting a target sample from the generated sample; the target sample has corresponding feature data;
[0018] Dividing the target sample into a plurality of data segments;
[0019] Dividing the characteristic data into characteristic segments that are in the same period as the plurality of data segments;
[0020] Merge the data segments and feature segments of the same period to generate input values;
[0021] Get the actual line loss value corresponding to each input value;
[0022] The input value and the actual line loss value are used in combination with an extreme learning machine to generate a mapping relationship between the generated sample and the line loss.
[0023] Optionally, the step of calculating the meter error of the electric meter according to the generated sample and the line loss value includes:
[0024] Obtaining the number of electric meters in the area and the current metering period of the area;
[0025] The meter error of the meter is calculated using the number of meters, the metering period, the generated samples and the line loss value.
[0026] The present invention also provides an electric meter error calculation device, comprising:
[0027] The acquisition module is used to collect high-frequency measurement data and low-frequency measurement data of each electric meter in the preset area;
[0028] A model generation module, used to generate a data ultra-definition model using the low-frequency measurement data, the high-frequency measurement data and a preset generative adversarial network;
[0029] A sample generation output module is used to input the low-frequency measurement data into the data ultra-definition model and output a generated sample;
[0030] A line loss value acquisition module, used to acquire a mapping relationship between a generated sample and a line loss, and acquire a line loss value of the generated sample according to the mapping relationship;
[0031] An electric meter error calculation module is used to calculate the electric meter error of the electric meter according to the generated sample and the line loss value.
[0032] Optionally, the generative adversarial network includes a generator and a discriminator; the model generation module includes:
[0033] An initial generation sample generation submodule, used for inputting the low-frequency measurement data into the generator to obtain an initial generation sample;
[0034] An output submodule, used for inputting the initial generated sample and the high-frequency measurement data into the discriminator, and outputting a sample error between the initial generated sample and the high-frequency measurement data;
[0035] The model generation submodule is used to adjust the generator parameters of the generator and the discriminator parameters of the discriminator according to the sample error, and return to the step of inputting the low-frequency measurement data into the generator to obtain the initial generation sample until the sample error is lower than a preset threshold, and use the generator parameters and the discriminator parameters to generate a data ultra-definition model.
[0036] Optionally, it also includes:
[0037] A target sample extraction module, used to extract a target sample from the generated sample; the target sample has corresponding feature data;
[0038] A data segment division module, used for dividing the target sample into multiple data segments;
[0039] A feature segment division module, used for dividing the feature data into feature segments of the same period as the plurality of data segments;
[0040] A merging module, used to merge data segments and feature segments of the same period to generate input values;
[0041] An actual line loss value acquisition module is used to obtain the actual line loss value corresponding to each input value;
[0042] A mapping relationship generation module is used to use the input value and the actual line loss value in combination with an extreme learning machine to generate a mapping relationship between a generated sample and the line loss.
[0043] Optionally, the electric meter error calculation module includes:
[0044] The electric meter quantity and metering cycle acquisition submodule is used to acquire the electric meter quantity of the area and the metering cycle the area is currently in;
[0045] The electric meter error calculation submodule is used to calculate the electric meter error of the electric meter by using the number of electric meters, the metering period, the generated samples and the line loss value.
[0046] The present invention also provides an electronic device, the device comprising a processor and a memory:
[0047] The memory is used to store program code and transmit the program code to the processor;
[0048] The processor is used to execute the electric meter error calculation method as described in any one of the above items according to the instructions in the program code.
[0049] The present invention also provides a computer-readable storage medium, wherein the computer-readable storage medium is used to store program codes, and the program codes are used to execute the electric meter error calculation method as described in any one of the above items.
[0050] It can be seen from the above technical solutions that the present invention has the following advantages: the present invention performs data ultra-definition processing on the collected low-frequency measurement data and high-frequency measurement data, and establishes a mapping relationship between the generated samples generated by the data ultra-definition processing and the line loss, so as to calculate the error value of the electric meter through the generated samples and the mapping relationship estimated based on the mapping relationship. Since the collected data is subjected to data ultra-definition processing, the features of the collected data can be enriched, so that the electric meter error calculated based on the generated samples obtained after the data ultra-definition processing is closer to the actual error, thereby improving the accuracy of the electric meter error calculation. In addition, by establishing a mapping relationship between the generated samples and the line loss, the line loss value corresponding to the generated sample can be estimated, without the need to actually collect the line loss value, thereby reducing labor costs. BRIEF DESCRIPTION OF THE DRAWINGS
[0051] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0052] Figure 1 A flowchart of a method for calculating an electric meter error provided by an embodiment of the present invention;
[0053] Figure 2 A flowchart of a method for calculating an electric meter error provided by another embodiment of the present invention;
[0054] Figure 3 A structural block diagram of an electric meter error calculation device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0055] The embodiments of the present invention provide an electric meter error calculation method, device, electronic device and storage medium, which are used to solve the technical problem that the calculation accuracy of the electric meter error in the existing remote monitoring technology is low.
[0056] In order to make the purpose, features and advantages of the present invention more obvious and easy to understand, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the embodiments described below are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0057] See also Figure 1 , Figure 1 A flowchart of a method for calculating an electric meter error provided by an embodiment of the present invention.
[0058] The present invention provides an electric meter error calculation method, which may specifically include the following steps:
[0059] Step 101, collecting high-frequency measurement data and low-frequency measurement data of each electric meter in a preset area;
[0060] In the embodiment of the present invention, a high-frequency data collector can be used to collect high-frequency measurement data and low-frequency measurement data of each electric meter in the substation area; wherein low frequency refers to the frequency of data obtained from the operating electric meters, and high frequency refers to the frequency of data obtained by the high-frequency data collector. In the embodiment of the present invention, the high-frequency measurement data obtained by the high-frequency data collector can be defined as a real sample.
[0061] Step 102, using low-frequency measurement data, high-frequency measurement data and a preset generative adversarial network to generate a data ultra-definition model;
[0062] After obtaining the low-frequency measurement data and the high-frequency measurement data, the low-frequency measurement data and the high-frequency measurement data can be divided into a training set and a test set, and the training set and the test set are used to train a data ultra-definition model constructed based on a generative adversarial network.
[0063] Step 103, inputting the low-frequency measurement data into the data ultra-definition model, and outputting the generated samples;
[0064] The low-frequency data measurement data is input into the data ultra-definition model of the training number, and the generated samples can be output. Among them, the generated samples and the real samples have the same frequency.
[0065] Step 104, obtaining a mapping relationship between the generated sample and the line loss, and obtaining the line loss value of the generated sample according to the mapping relationship;
[0066] Step 105, calculating the meter error of the electric meter according to the generated samples and the line loss value.
[0067] After the generated sample is obtained, the line loss value of the generated sample can be obtained based on the mapping relationship between the generated sample and the line loss, so as to calculate the meter error of the electric meter according to the line loss value and the generated sample.
[0068] The present invention performs data ultra-definition processing on the collected low-frequency measurement data and high-frequency measurement data, and establishes a mapping relationship between the generated samples generated by the data ultra-definition processing and the line loss, so as to calculate the error value of the electric meter through the generated samples and the mapping relationship estimated based on the mapping relationship. Since the collected data is subjected to data ultra-definition processing, the characteristics of the collected data can be enriched, so that the electric meter error calculated based on the generated samples obtained after the data ultra-definition processing is closer to the actual error, thereby improving the accuracy of the electric meter error calculation. In addition, by establishing a mapping relationship between the generated samples and the line loss, the line loss value corresponding to the generated sample can be estimated, without the need to actually collect the line loss value, thereby reducing labor costs.
[0069] See also Figure 2 , Figure 2 A flowchart of a method for calculating an electric meter error provided by another embodiment of the present invention. Specifically, the following steps may be included:
[0070] Step 201, collecting high-frequency measurement data and low-frequency measurement data of each electric meter in a preset area;
[0071] In the embodiment of the present invention, a high-frequency data collector can be used to collect high-frequency measurement data and low-frequency measurement data of each electric meter in the substation area; wherein low frequency refers to the frequency of data obtained from the operating electric meters, and high frequency refers to the frequency of data obtained by the high-frequency data collector. In the embodiment of the present invention, the high-frequency measurement data obtained by the high-frequency data collector can be defined as a real sample.
[0072] Step 202, using low-frequency measurement data, high-frequency measurement data and a preset generative adversarial network to generate a data ultra-definition model;
[0073] After obtaining the low-frequency measurement data and the high-frequency measurement data, the low-frequency measurement data and the high-frequency measurement data can be divided into a training set and a test set, and the training set and the test set are used to train a data ultra-definition model constructed based on a generative adversarial network.
[0074] In one example, the generative adversarial network includes a generator and a discriminator; the step of using low-frequency measurement data, high-frequency measurement data and a preset generative adversarial network to generate a data ultra-definition model may include:
[0075] S21, inputting low-frequency measurement data into the generator to obtain an initial generated sample;
[0076] S22, inputting the initial generated sample and the high-frequency measurement data into a discriminator, and outputting a sample error between the initial generated sample and the high-frequency measurement data;
[0077] S23, adjust the generator parameters of the generator and the discriminator parameters of the discriminator according to the sample error, and return to the step of inputting the low-frequency measurement data into the generator to obtain the initial generation sample, until the sample error is lower than the preset threshold, and use the generator parameters and the discriminator parameters to generate a data ultra-definition model.
[0078] In the specific implementation, the generative adversarial network consists of a generator and a discriminator; the input of the generator is low-frequency measurement data, and the output is the initial generated sample. The input of the discriminator is the real sample and the initial generated sample, and the output is the sample error between the initial generated sample and the real sample. The model training process optimizes the generator parameters and the discriminator parameters by minimizing the generator loss function and the discriminator loss function, thereby reducing the error between the generated sample and the real sample.
[0079] Among them, the generator loss function L G for:
[0080] L G =λ 1 L A +λ 2 L R +λ 3 L F
[0081] Among them, L A is the generation of adversarial loss; L R is the actual loss; L F is the feature loss; 1 ,λ 2 ,λ 3 is the weight coefficient, and its value range is (0,1).
[0082] Generate adversarial loss L A for:
[0083]
[0084] Among them, G represents the generator; θ G represents the parameters of the generator; D represents the generator; θ D represents the parameters of the discriminator; x LF is a low-frequency measurement data set; x SF,i and All are generated samples; is the discriminant result of the generated sample; n is the number of samples in the training set.
[0085] The real loss L R for:
[0086]
[0087] Among them, x HF For real samples.
[0088] Feature loss L F The calculation method is to first use a pre-trained feature extraction model (such as the VGG-16 model or the VGG-19 model) to extract the features of the generated samples respectively. SF,i and the feature φ of the real sample HF,i , and then compare the differences between the two sample features, as follows:
[0089]
[0090] Discriminator loss function L D for:
[0091]
[0092] in, is the discriminator's discrimination result for the real sample.
[0093] Step 203, inputting the low-frequency measurement data into the data ultra-definition model, and outputting the generated samples;
[0094] After the training is completed, the low-frequency measurement data can be input into the data ultra-definition model to obtain the final generated samples.
[0095] Furthermore, the embodiment of the present invention can also perform accuracy evaluation on the generated samples obtained, specifically:
[0096] The accuracy evaluation indicators include: mean absolute error, mean absolute percentage error, distribution similarity and high-frequency detail restoration.
[0097] The calculation method of distribution similarity is: first, calculate the cumulative distribution function of the ultra-clear data set and the real sample during the test process, and then calculate the cosine distance of the two cumulative distributions. The value range of the cosine distance is [-1,1]. The closer to 1, the smaller the difference between the two cumulative distributions.
[0098] The calculation method of high-frequency detail restoration is as follows: divide the basic interval by two adjacent low-frequency data points as the boundary, and the sampling frequency within the basic interval is the high frequency; in the ultra-clear data set and the real samples, count the peak and valley conditions of each high-frequency sampling moment in each basic interval; then the ratio of the number of times the peak and valley conditions are the same at the same sampling moment in the basic interval to the total number of sampling moments is the interval high-frequency detail restoration degree; the average value of the high-frequency detail restoration degree of all intervals is the high-frequency detail restoration degree.
[0099] Step 204, obtaining a mapping relationship between the generated sample and the line loss, and obtaining the line loss value of the generated sample according to the mapping relationship;
[0100] After the generated sample is obtained, the line loss value of the generated sample can be obtained based on the mapping relationship between the generated sample and the line loss.
[0101] The mapping relationship between the generated samples and the line loss can be established through the following steps:
[0102] S31, extracting a target sample from the generated samples; the target sample has corresponding feature data;
[0103] S32, dividing the target sample into multiple data segments;
[0104] S33, dividing the characteristic data into characteristic segments that are in the same period as the multiple data segments;
[0105] S34, merging the data segments and feature segments of the same period to generate input values;
[0106] S35, obtaining actual line loss values corresponding to each input value;
[0107] S36, using the input value and the actual line loss value in combination with the extreme learning machine, generates a mapping relationship between the generated sample and the line loss.
[0108] In the specific implementation, first, a small number of generated samples can be extracted as target samples, and the target samples can be divided into multiple data segments of length q. Then, the feature data of the generated samples can be arranged into one column and divided into feature segments of length q in the same period as the data segments. The data segments and feature segments of the same period are merged as the input values of the extreme learning machine.
[0109] Next, you can set the number of nodes, set the activation function, determine the matrix dimensions of the input and output, and randomly generate the hidden layer input weights and biases of the extreme learning machine.
[0110] Finally, based on each input value, the actual line loss value corresponding to each input value, the hidden layer input weight, bias, and activation function, the hidden layer output weight is calculated to form a mapping relationship between the generated samples and the line loss.
[0111] Based on this mapping relationship, the line loss value corresponding to each generated sample can be obtained.
[0112] Extreme Learning Machine (ELM) is a type of machine learning system or method built on a feedforward neural network (FNN), which is suitable for supervised learning and unsupervised learning problems.
[0113] Step 205, obtaining the number of electric meters in the area and the current metering cycle of the area;
[0114] Step 206, using the number of electricity meters, the metering period, the generated samples and the line loss value, calculate the meter error of the electricity meter.
[0115] After obtaining the line loss value of the generated sample, the meter error solution equation can be established according to the law of conservation of energy. Substituting the line loss value as a known value into the meter error solution equation and solving it using the ridge regression method, the meter error and fixed loss of each meter in each metering cycle can be obtained.
[0116] Among them, the meter error solution equation established according to the law of conservation of energy is specifically:
[0117]
[0118] Where J is the number of electricity meters in the area; x SF,j (i) is the generated sample of the jth meter obtained by the ultra-definition method in the measurement period i; e j (i) is the relative error of the jth meter in measurement period i; e line (i) is the line loss rate in metering cycle i; e 0 (i) is the fixed loss in metering period i.
[0119] The present invention performs data ultra-definition processing on the collected low-frequency measurement data and high-frequency measurement data, and establishes a mapping relationship between the generated samples generated by the data ultra-definition processing and the line loss, so as to calculate the error value of the electric meter through the generated samples and the mapping relationship estimated based on the mapping relationship. Since the collected data is subjected to data ultra-definition processing, the characteristics of the collected data can be enriched, so that the electric meter error calculated based on the generated samples obtained after the data ultra-definition processing is closer to the actual error, thereby improving the accuracy of the electric meter error calculation. In addition, by establishing a mapping relationship between the generated samples and the line loss, the line loss value corresponding to the generated sample can be estimated, without the need to actually collect the line loss value, thereby reducing labor costs.
[0120] See also Figure 3 , Figure 3 A structural block diagram of an electric meter error calculation device provided by an embodiment of the present invention.
[0121] An embodiment of the present invention provides an electric meter error calculation device, comprising:
[0122] The acquisition module 301 is used to acquire high-frequency measurement data and low-frequency measurement data of each electric meter in a preset area;
[0123] A model generation module 302, for generating a data ultra-definition model using low-frequency measurement data, high-frequency measurement data and a preset generative adversarial network;
[0124] A sample generation output module 303 is used to input low-frequency measurement data into a data ultra-definition model and output a generated sample;
[0125] The line loss value acquisition module 304 is used to acquire the mapping relationship between the generated sample and the line loss, and acquire the line loss value of the generated sample according to the mapping relationship;
[0126] The electric meter error calculation module 305 is used to calculate the electric meter error of the electric meter according to the generated samples and the line loss value.
[0127] In the embodiment of the present invention, the generative adversarial network includes a generator and a discriminator; the model generation module 302 includes:
[0128] The initial generation sample generation submodule is used to input low-frequency measurement data into the generator to obtain the initial generation sample;
[0129] An output submodule, used to input the initial generated sample and the high-frequency measurement data into the discriminator, and output the sample error between the initial generated sample and the high-frequency measurement data;
[0130] The model generation submodule is used to adjust the generator parameters of the generator and the discriminator parameters of the discriminator according to the sample error, and return to the step of inputting low-frequency measurement data into the generator to obtain the initial generation sample until the sample error is lower than the preset threshold, and use the generator parameters and the discriminator parameters to generate a data ultra-definition model.
[0131] In an embodiment of the present invention, it also includes:
[0132] A target sample extraction module is used to extract a target sample from the generated sample; the target sample has corresponding feature data;
[0133] A data segmentation module, used for dividing a target sample into multiple data segments;
[0134] A feature segment division module, used to divide the feature data into feature segments that are in the same period as the multiple data segments;
[0135] A merging module, used to merge data segments and feature segments of the same period to generate input values;
[0136] An actual line loss value acquisition module is used to obtain the actual line loss value corresponding to each input value;
[0137] The mapping relationship generation module is used to use the input value and the actual line loss value in combination with the extreme learning machine to generate a mapping relationship between the generated sample and the line loss.
[0138] In the embodiment of the present invention, the electric meter error calculation module 305 includes:
[0139] The submodule for obtaining the number of electric meters and the metering cycle is used to obtain the number of electric meters in the area and the current metering cycle of the area;
[0140] The electric meter error calculation submodule is used to calculate the electric meter error of the electric meter by using the number of electric meters, the metering period, the generated samples and the line loss value.
[0141] An embodiment of the present invention further provides an electronic device, the device comprising a processor and a memory:
[0142] The memory is used to store the program code and transmit the program code to the processor;
[0143] The processor is used to execute the electric meter error calculation method of the embodiment of the present invention according to the instructions in the program code.
[0144] The embodiment of the present invention further provides a computer-readable storage medium, which is used to store program codes, and the program codes are used to execute the electric meter error calculation method of the embodiment of the present invention.
[0145] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0146] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.
[0147] It will be appreciated by those skilled in the art that the embodiments of the present invention may be provided as methods, devices, or computer program products. Therefore, the embodiments of the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the embodiments of the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.
[0148] The embodiments of the present invention are described with reference to the flowcharts and / or block diagrams of the methods, terminal devices (systems), and computer program products according to the embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of the processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing terminal device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing terminal device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0149] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing terminal device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0150] These computer program instructions can also be loaded onto a computer or other programmable data processing terminal device so that a series of operating steps are executed on the computer or other programmable terminal device to produce a computer-implemented process, thereby providing instructions for executing on the computer or other programmable terminal device to implement the process. Figure 1 A process or multiple processes and / or boxes Figure 1The steps for the functions specified in one or more boxes.
[0151] Although the preferred embodiments of the present invention have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the embodiments of the present invention.
[0152] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or terminal device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or terminal device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or terminal device including the elements.
[0153] As described above, the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features thereof may be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A method for calculating an electric meter error, characterized in that: include: Collect high-frequency and low-frequency measurement data of each electric meter in the preset area; Generate a data ultra-definition model using the low-frequency measurement data, the high-frequency measurement data and a preset generative adversarial network; Inputting the low-frequency measurement data into the data ultra-definition model and outputting generated samples; Acquire a mapping relationship between a generated sample and a line loss, and acquire a line loss value of the generated sample according to the mapping relationship; Calculating an electric meter error of the electric meter according to the generated sample and the line loss value; The generative adversarial network includes a generator and a discriminator; the step of using the low-frequency measurement data, the high-frequency measurement data and a preset generative adversarial network to generate a data ultra-definition model includes: Inputting the low-frequency measurement data into the generator to obtain an initial generated sample; Inputting the initial generated sample and the high-frequency measurement data into the discriminator, and outputting a sample error between the initial generated sample and the high-frequency measurement data; The generator parameters of the generator and the discriminator parameters of the discriminator are adjusted according to the sample error, and the low-frequency measurement data is input into the generator to obtain the step of initially generating samples, until the sample error is lower than a preset threshold, and the generator parameters and the discriminator parameters are used to generate a data ultra-definition model.
2. The method according to claim 1, characterized in that Before the step of obtaining the mapping relationship between the generated samples and the line loss, the method further includes: Extracting a target sample from the generated sample; the target sample has corresponding feature data; Dividing the target sample into a plurality of data segments; Dividing the characteristic data into characteristic segments that are in the same period as the plurality of data segments; Merge the data segments and feature segments of the same period to generate input values; Get the actual line loss value corresponding to each input value; The input value and the actual line loss value are used in combination with an extreme learning machine to generate a mapping relationship between the generated sample and the line loss.
3. The method according to claim 1, characterized in that: The step of calculating the meter error of the electric meter according to the generated sample and the line loss value comprises: Obtaining the number of electric meters in the area and the current metering period of the area; The meter error of the meter is calculated using the number of meters, the metering period, the generated samples and the line loss value.
4. An electric meter error calculation device, characterized in that: include: The acquisition module is used to collect high-frequency measurement data and low-frequency measurement data of each electric meter in the preset area; A model generation module, used to generate a data ultra-definition model using the low-frequency measurement data, the high-frequency measurement data and a preset generative adversarial network; A sample generation output module is used to input the low-frequency measurement data into the data ultra-definition model and output a generated sample; A line loss value acquisition module, used to acquire a mapping relationship between a generated sample and a line loss, and acquire a line loss value of the generated sample according to the mapping relationship; An electric meter error calculation module, used for calculating the electric meter error of the electric meter according to the generated sample and the line loss value; The generative adversarial network includes a generator and a discriminator; the model generation module includes: An initial generation sample generation submodule, used for inputting the low-frequency measurement data into the generator to obtain an initial generation sample; An output submodule, used for inputting the initial generated sample and the high-frequency measurement data into the discriminator, and outputting a sample error between the initial generated sample and the high-frequency measurement data; The model generation submodule is used to adjust the generator parameters of the generator and the discriminator parameters of the discriminator according to the sample error, and return to the step of inputting the low-frequency measurement data into the generator to obtain the initial generation sample until the sample error is lower than a preset threshold, and use the generator parameters and the discriminator parameters to generate a data ultra-definition model.
5. The device according to claim 4, characterized in that Also includes: A target sample extraction module, used to extract a target sample from the generated sample; The target sample has corresponding feature data; A data segment division module, used for dividing the target sample into multiple data segments; A feature segment division module, used for dividing the feature data into feature segments of the same period as the plurality of data segments; A merging module, used to merge data segments and feature segments of the same period to generate input values; An actual line loss value acquisition module is used to obtain the actual line loss value corresponding to each input value; The mapping relationship generation module is used to use the input value and the actual line loss value in combination with an extreme learning machine to generate a mapping relationship between the generated sample and the line loss.
6. The device according to claim 4, characterized in that The electric meter error calculation module comprises: The electric meter quantity and metering cycle acquisition submodule is used to acquire the electric meter quantity of the area and the metering cycle the area is currently in; The electric meter error calculation submodule is used to calculate the electric meter error of the electric meter by using the number of electric meters, the metering period, the generated samples and the line loss value.
7. An electronic device, characterized in that: The device comprises a processor and a memory: The memory is used to store program code and transmit the program code to the processor; The processor is used to execute the electric meter error calculation method according to any one of claims 1 to 3 according to the instructions in the program code.
8. A computer-readable storage medium, characterized in that: The computer-readable storage medium is used to store program codes, and the program codes are used to execute the electric meter error calculation method according to any one of claims 1 to 3.
