Electric energy metering compensation method, device, equipment and medium
By obtaining sampled energy values from the energy meter, calculating errors, and constructing an interval compensation model, the problem that traditional energy meter metering compensation methods cannot be adjusted in real time is solved, thus achieving accuracy and fairness in energy metering.
Patent Information
- Application Number
- CN202511555918.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-10-29
- Publication Date
- 2026-02-17
- Estimated Expiration
- 2045-10-29
AI Technical Summary
Traditional electricity metering compensation methods cannot adjust the compensation value in real time according to changes in actual operating conditions, resulting in inaccurate metering results.
By obtaining the sampled energy value of the energy meter under preset experimental conditions, calculating the energy error value, plotting the difference change curve, dividing the difference change interval, constructing an error interval compensation model, determining the error compensation value, and compensating and correcting the actual energy value.
It enables comprehensive error analysis of the energy values collected by the electricity meter, automatically performs error compensation, improves the accuracy and fairness of energy metering, and ensures the impartiality of electricity bill settlement.
Smart Images

Figure CN121027972B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of electric power metering, and in particular to an electric energy metering compensation method, device, equipment and medium. BACKGROUND
[0002] As a key device for measuring electric energy consumption, the accuracy of electric energy metering is directly related to the fairness of electric power transaction, the safe and stable operation of the electric power system and the economic interests of users. With the continuous development of the electric power system and the increasing perfection of the electric power market, the requirement for the accuracy of electric energy metering is becoming higher and higher.
[0003] The traditional electric energy metering compensation usually adopts a static compensation method. This method is to pre-set a fixed compensation coefficient by calibrating and adjusting the hardware circuit of the electric energy meter during the production process of the electric energy meter. For example, according to the test results of the electric energy meter in the laboratory environment, an average error compensation value is determined, and in the subsequent use process, the electric energy meter always compensates the metering result according to this fixed compensation coefficient. However, the actual electric power system operating environment is complex and changeable, and the error of the electric energy meter will be affected by many factors. The traditional static compensation method cannot adjust the compensation value in real time according to the change of the actual operating conditions, resulting in inaccurate metering results.
[0004] Therefore, how to comprehensively analyze the error of the electric energy value collected by the electric energy meter to determine the error compensation, so as to automatically compensate and correct the actual electric energy value to obtain the compensated electric energy value has become a problem to be solved. SUMMARY
[0005] Therefore, the embodiments of the present application provide an electric energy metering compensation method, device, equipment and medium to solve the problem of how to comprehensively analyze the error of the electric energy value collected by the electric energy meter to determine the error compensation, so as to automatically compensate and correct the actual electric energy value to obtain the compensated electric energy value.
[0006] In a first aspect, the embodiments of the present application provide an electric energy metering compensation method, comprising:
[0007] Obtaining the sampling electric energy of the electric energy meter under the preset experimental conditions to obtain the to-be-analyzed electric energy value corresponding to each sampling time point, calculating each to-be-analyzed electric energy value with the preset standard electric energy value to obtain the electric energy error value corresponding to each sampling time point;
[0008] According to the electric energy error value of each sampling time point, a difference change curve is obtained, the difference change rate is calculated according to the difference change curve, the difference change curve is divided into intervals according to the difference change rate, and the difference change interval is obtained;
[0009] For any difference value change interval, an error interval compensation model is constructed, an actual electric energy value at a current time is obtained, and an error compensation value at the current time is determined according to the error interval compensation model;
[0010] According to the error compensation value, the actual electric energy value is compensated and corrected to obtain a compensated electric energy value.
[0011] In a second aspect, an embodiment of the present application provides an electric energy metering compensation device, which comprises:
[0012] An error calculation module is configured to obtain a sampling electric energy of an electric energy meter under preset experimental conditions, to obtain a to-be-analyzed electric energy value corresponding to each sampling time point, and to calculate each to-be-analyzed electric energy value with a preset standard electric energy value to obtain an electric energy error value corresponding to each sampling time point.
[0013] An interval division module is configured to obtain a difference value change curve according to the electric energy error value of each sampling time point, to calculate a difference value change rate according to the difference value change curve, and to divide the difference value change curve into difference value change intervals according to the difference value change rate.
[0014] An error compensation value calculation module is configured to, for any difference value change interval, construct an error interval compensation model, to obtain an actual electric energy value at a current time, and to determine an error compensation value at the current time according to the error interval compensation model.
[0015] A compensation module is configured to compensate and correct the actual electric energy value according to the error compensation value to obtain a compensated electric energy value.
[0016] In a third aspect, an embodiment of the present application provides a computer device, which comprises a processor, a memory, and a computer program stored in the memory and executable on the processor, and the processor implements the electric energy metering compensation method of the first aspect when executing the computer program.
[0017] In a fourth aspect, an embodiment of the present application provides a computer readable storage medium, which stores a computer program, and the computer program is executable on a processor to implement the electric energy metering compensation method of the first aspect.
[0018] Compared with the prior art, the embodiment of the present application has the following beneficial effects:
[0019] The application obtains the sampling electric energy of the electric energy meter under the preset experimental condition, obtains the to-be-analyzed electric energy value corresponding to each sampling time point, calculates each to-be-analyzed electric energy value with the preset standard electric energy value respectively, obtains the electric energy error value corresponding to each sampling time point, obtains the difference value change curve according to the electric energy error value of each sampling time point, calculates the difference value change rate according to the difference value change curve, divides the difference value change curve into intervals according to the difference value change rate, obtains the difference value change interval, constructs an error interval compensation model for any difference value change interval, obtains the actual electric energy value at the current time, determines the error compensation value at the current time according to the error interval compensation model, compensates and corrects the actual electric energy value according to the error compensation value, and obtains the compensated electric energy value. By first obtaining the to-be-analyzed electric energy value of the electric energy meter at each sampling time point under the preset experimental condition, calculating the electric energy error value by taking the to-be-analyzed electric energy value and the standard electric energy value, drawing the difference value change curve and calculating the change rate, dividing the difference value change interval according to the change rate, constructing the error interval compensation model for each interval, and determining the error compensation value at the current time according to the model, the actual electric energy value is compensated and corrected to obtain the compensated electric energy value. BRIEF DESCRIPTION OF DRAWINGS
[0020] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following will briefly introduce the drawings needed to be used in the embodiments or prior art description. Obviously, the drawings in the following description are only some embodiments of the present application, and other drawings can also be obtained by those skilled in the art without creative labor.
[0021] Figure 1 is an application environment schematic diagram of an electric energy meter measurement compensation method provided by an embodiment of the present application;
[0022] Figure 2 is a flowchart of an electric energy meter measurement compensation method provided by an embodiment of the present application;
[0023] Figure 3 is a flowchart of an electric energy meter measurement compensation method provided by an embodiment of the present application;
[0024] Figure 4 is a flowchart of an electric energy meter measurement compensation method provided by an embodiment of the present application;
[0025] Figure 5 is a structural schematic diagram of an electric energy meter measurement compensation device provided by an embodiment of the present application;
[0026] Figure 6Fig. 6 is a structural schematic diagram of a computer device provided by an embodiment of the present application. DETAILED DESCRIPTION
[0027] In the following description, for the purposes of explanation and not limitation, specific details are set forth, such as particular sequences of steps, techniques, etc., in order to provide a thorough understanding of the embodiments of the application. However, it will be apparent to those skilled in the art that the embodiments of the application can be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known methods, devices, circuits, and
[0028] It is to be understood that the terminology "includes", "has", "holds", "contains" or "comprises", "comprising", or "including" when used in this specification and in the following claims specifies the presence of the stated features, integers, steps, operations, elements, or components, but does not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, or groups thereof.
[0029] It is also to be understood that the terminology "and / or" when used in this specification and in the following claims, refers to at least one of the items, or any combination of the items, or all of the items listed together.
[0030] As used in this specification and in the claims, the terms "if" and "when" can be interpreted to mean "upon" or "in response to a determination" or "in response to a detection" depending on the context. Similarly, the phrase "if it is determined" or "if [a described condition or event] is detected" can be interpreted to mean "upon a determination" or "in response to a determination" or "upon detecting [a described condition or event]" or "in response to detecting [a described condition or event]" depending on the context.
[0031] In addition, the terms "first", "second", "third", etc. in the description of the present application and the following claims are only used to distinguish descriptions, and cannot be understood as indicating or implying relative importance.
[0032] Reference in the specification to "one embodiment" or "some embodiments" means that a particular feature, structure, or characteristic described in connection with the embodiment is included in at least one embodiment of the application. The appearances of the phrase "in one embodiment" or "in some embodiments" in various places in the specification are not necessarily all referring to the same embodiment, although it can. The terms "comprise", "comprising", "have", "having", "include", "including", and "contain", "containing" are used in the specification to mean "including but not limited to", unless otherwise noted.
[0033] The embodiments of the present application can acquire and process related data based on artificial intelligence technology. Among them, artificial intelligence (AI) is the theory, method, technology and application system of using 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.
[0034] The basic technology of artificial intelligence generally includes technologies such as sensors, special artificial intelligence chips, cloud computing, distributed storage, big data processing technology, operation / interaction system, mechatronics, etc. The software technology of artificial intelligence mainly includes computer vision technology, robot technology, biometric technology, speech processing technology, natural language processing technology, and machine learning / deep learning, etc.
[0035] It should be understood that the size of the serial number of each step in the following embodiments does not mean the order of execution, and the execution order of each process should be determined according to its function and inherent logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
[0036] In order to illustrate the technical solutions of the present application, the following will be explained by specific embodiments.
[0037] The electric energy metering compensation method provided by the first embodiment of the present application can be applied in an application environment such as Figure 1 , wherein the client and the server are connected for communication, the user can provide the conditions, requirements and operation instructions of the electric energy metering compensation by operating the client, and the server is used to control the electric energy metering compensation method according to the control instructions sent by the client.
[0038] The above-mentioned electric energy metering compensation method can be developed by a software development kit (SDK), and application authentication modules, intelligent routing modules, high availability management modules, etc. can be developed. Among them, the client includes but is not limited to palmtop computers, desktop computers, notebook computers, ultra-mobile personal computers (UMPC), netbooks, cloud terminal devices, personal digital assistants (PDA), etc. The server can be a stand-alone server, or a cloud server providing cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, content distribution networks (CDN), and big data and artificial intelligence platforms, etc. Basic cloud computing services.
[0039] Referring to Figure 2 , it is a flowchart of an electric energy metering compensation method provided in Embodiment Two of the present application. The electric energy metering compensation method can be applied to Figure 1 a server.
[0040] As shown in Figure 2 , the electric energy metering compensation method can include the following steps:
[0041] Step S201: Obtain the sampling electric energy of an electric energy meter under preset experimental conditions, obtain the to-be-analyzed electric energy value corresponding to each sampling time point, and calculate each to-be-analyzed electric energy value with a preset standard electric energy value to obtain the electric energy error value corresponding to each sampling time point.
[0042] Optionally, step S201 can include the following steps:
[0043] Obtain the sampling electric energy of the electric energy meter under preset current and voltage values to obtain the to-be-analyzed electric energy value corresponding to each sampling time point;
[0044] Differentially calculate the to-be-analyzed electric energy value and the standard electric energy value at a preset time interval to obtain the electric energy error value corresponding to each sampling time point.
[0045] During the electric energy metering performance test, it is necessary to be performed under specific conditions to ensure the accuracy and comparability of the test results. The preset experimental conditions include preset current and voltage values.
[0046] The reference voltage and the maximum current are applied to the electric energy meter, and the electric energy data of the electric energy meter is sampled at a certain time interval to obtain the electric energy error value measured by the electric energy meter. This time interval can be set according to actual needs, such as sampling once every 1 minute, 5 minutes, or 10 minutes. The electric energy data obtained each time is the to-be-analyzed electric energy value corresponding to this sampling time point.
[0047] Record each sampling time point and the corresponding to-be-analyzed electric energy value to form a data set. For example, the electric energy value obtained at 9:00 is 100 kWh, the electric energy value obtained at 9:01 is 100.02 kWh, and so on.
[0048] The standard electric energy value is a theoretical accurate value, which is obtained according to an ideal electric energy calculation method or by measuring a high-precision standard electric energy meter. Under the same experimental conditions, the standard electric energy value represents the accurate electric energy consumption that should be obtained. For example, according to the relationship between power and time (electric energy = power × time), the theoretical standard electric energy value can be calculated under the condition that the preset current and voltage values are known.
[0049] The electric energy value to be analyzed at each sampling time point is calculated with the preset standard electric energy value respectively, and a difference value operation is performed. The calculation formula is: electric energy error value = electric energy value to be analyzed - standard electric energy value. For example, at a certain sampling time point, the electric energy value to be analyzed is 100.05 kWh, and the standard electric energy value is 100 kWh, so the electric energy error value at the sampling time point is 100.05-100 = 0.05 kWh.
[0050] In step S202, a difference value change curve is obtained according to the electric energy error value at each sampling time point, a difference value change rate is calculated according to the difference value change curve, and the difference value change curve is divided into intervals according to the difference value change rate to obtain a difference value change interval.
[0051] Optionally, the calculation of the difference value change rate according to the difference value change curve and the interval division of the difference value change curve according to the difference value change rate in step S202 can include the following steps:
[0052] Derivative calculation is performed on the difference value change curve to obtain the difference value change rate of the electric energy error value.
[0053] A change rate curve is obtained according to the difference value change rate, and a change rate inflection point of the difference value change rate is determined according to the change rate curve.
[0054] The difference value change curve is divided into intervals according to the change rate inflection point to obtain a difference value change interval.
[0055] Optionally, the interval division of the difference value change curve according to the change rate inflection point to obtain a difference value change interval can include the following steps:
[0056] The difference value change rate corresponding to the change rate inflection point in the change rate curve is determined.
[0057] The difference value change rate is sorted to obtain a change rate sorting, and a change rate moment corresponding to the change rate sorting is determined according to the change rate sorting.
[0058] The difference value change curve is divided into intervals according to the change rate moment to obtain a difference value change interval.
[0059] Wherein, with the sampling time point as the horizontal coordinate, the corresponding electric energy error value as the vertical coordinate, the electric energy error value of each sampling time point is marked in the coordinate system, and then the points are connected by a smooth curve to obtain the difference change curve. The curve intuitively shows the trend of the electric energy error value over time. For example, if the curve shows an upward trend, it means that the electric energy error value is gradually increasing over time; if the curve is relatively flat, it means that the error value is relatively stable.
[0060] The derivative of the difference change curve is calculated. The derivative represents the rate of change of a function in mathematics. In this context, the difference change curve can be regarded as a function of the electric energy error value with respect to time, and the derivative of the function is the rate of change of the electric energy error value. The rate of change of the difference reflects the speed of change of the electric energy error value at each time point. For example, when the derivative is large, it means that the error value changes rapidly near the time point; when the derivative is small, the error value changes relatively slowly.
[0061] The calculated rate of change of the difference at each time point is taken as the vertical coordinate, and the corresponding time point is taken as the horizontal coordinate to draw a rate of change curve. The rate of change curve can more clearly show the change of the error rate over time.
[0062] The rate of change inflection point refers to the point where the slope of the rate of change curve changes abruptly, that is, the point where the trend of the rate of change of the difference changes. At these points, the error rate changes from accelerating to decelerating, or from decelerating to accelerating. By observing the rate of change curve, the points where the slope changes significantly are found, which are the rate of change inflection points. For example, the rate of change curve originally shows an upward trend, and after a certain point it starts to decline, which is a rate of change inflection point.
[0063] The difference change curve is divided into different intervals with the time points corresponding to the rate of change inflection points as boundaries. Because the error change law changes before and after the rate of change inflection point, the error change in each interval after division is relatively consistent.
[0064] Wherein, the rate of change curve obtained in the foregoing shows the change of the rate of change of the electric energy error value over time. The rate of change inflection point is the point where the slope of the rate of change curve changes abruptly, representing a change in the trend of the error rate. At this time, we need to accurately find these rate of change inflection points in the graph and determine the specific rate of change of the difference value corresponding to each inflection point.
[0065] For example, there is a point on the rate of change curve, before which the curve is rising, and after which the curve starts to decline, which is a rate of change inflection point. We read the value corresponding to the point on the vertical coordinate, which is the rate of change of the difference corresponding to the rate of change inflection point.
[0066] Sort the magnitude of the difference value change rate to obtain a change rate order, determine a change rate time corresponding to the change rate order according to the change rate order, collect the difference value change rates corresponding to each change rate inflection point determined in the foregoing, and arrange the difference value change rates in descending order or ascending order to form the change rate order. The purpose of sorting is to more clearly sort the magnitude relationship between the key difference value change rates, and facilitate subsequent analysis and processing.
[0067] In the change rate curve, each difference value change rate corresponds to a specific time point, that is, a change rate time. After sorting the difference value change rates, we find the time point corresponding to the difference value change rate at each sorting position. Thus, a change rate time sequence sorted according to the magnitude of the difference value change rate is obtained.
[0068] For example, the difference value change rates corresponding to the three change rate inflection points are 0.5, 0.3, and 0.7, which are sorted in ascending order as 0.3, 0.5, and 0.7. Then, the time points corresponding to the three difference value change rates are t1, t2, and t3 in the change rate curve, which are the change rate times corresponding to the change rate order.
[0069] According to the change rate times, interval division is performed on the difference value change curve to obtain a difference value change interval. The difference value change curve is divided by taking the change rate times as boundaries. Because the change rate inflection points represent changes in the error change rule, the change of the electric energy error value has relative consistency between different change rate times.
[0070] In step S203, for any difference value change interval, an error interval compensation model is constructed, the actual electric energy value at the current time is obtained, and the error compensation value at the current time is determined according to the error interval compensation model.
[0071] In the foregoing steps, the change curve of the electric energy error value with time is divided into different difference value change intervals, and the change of the electric energy error has a relatively consistent rule in each interval. Because the error change rules in different intervals are different, a unified model cannot be used for error compensation, and an error interval compensation model needs to be constructed for each difference value change interval, so that the error can be more accurately corrected.
[0072] There are various methods for constructing error interval compensation model. If the error value and time or other related factors present an approximate linear relationship in a certain interval, a linear model can be constructed using linear regression method. For example, assume that the error value E and time t satisfy the linear relationship E = at + b, where a and b are parameters to be determined. The values of a and b can be determined by using least square method or other methods based on the sampling data in the interval, thereby obtaining a specific linear error interval compensation model.
[0073] When the error variation presents a complex nonlinear relationship, a nonlinear model such as a polynomial model or an exponential model can be used. For example, a polynomial model can be expressed as E = a0 + a1t + a2t2 +... + antn, and the values of the coefficients ai can be determined based on the sampling data in the interval. In actual application, the actual energy value measured by the energy meter at the current time needs to be obtained in real time. This can be obtained by directly reading the metering system of the energy meter. For example, in a smart energy meter, there are corresponding sensors and data acquisition modules that can accurately record the energy consumption at the current time and output it as the actual energy value.
[0074] First, it needs to be determined in which interval the current time is located. This can be determined according to the change rate time used for dividing the interval. For example, if the interval boundaries are t1, t2, t3, and the current time is t, if t1 < t < t2, then the current time is in the second interval.
[0075] After determining the interval in which the current time is located, the relevant information (such as time, actual energy value, etc., depending on the constructed error interval compensation model) of the current time is substituted into the error interval compensation model corresponding to the interval, and the error compensation value is calculated. For example, for the linear model E = at + b constructed above, the current time t is substituted into the model, and the calculated E value is the error compensation value at the time. This error compensation value represents the amount of correction that needs to be made to the actual energy value in order to make the measurement result of the energy meter closer to the true value.
[0076] Step S204, compensating and correcting the actual energy value according to the error compensation value to obtain a compensated energy value.
[0077] In the actual working process of the energy meter, due to various factors (such as self-heating effect, component aging, etc.), measurement errors will be generated. In the previous steps, we obtained the error compensation value through analysis and modeling, which reflects the deviation between the actual measurement value and the true value. Therefore, we can eliminate or reduce this deviation by adjusting the actual energy value accordingly, so that the final energy value is closer to the true energy consumption.
[0078] The specific operation of compensating and correcting the actual energy value according to the error compensation value can be positive or negative. When the error compensation value is positive, it means that the actual measured energy value is smaller than the true value, and the error compensation value needs to be added to the actual energy value. When the error compensation value is negative, it means that the actual measured energy value is larger than the true value, and the absolute value of the error compensation value needs to be subtracted from the actual energy value.
[0079] The compensated energy value obtained by compensating and correcting the actual energy value can more accurately reflect the actual energy consumption of the user. This can be more fair and accurate for the power company to settle electricity bills, and for the user to avoid overpayment or underpayment of electricity bills due to metering error of the electric energy meter. At the same time, accurate energy metering can also help to improve the management efficiency of the power system and the energy utilization efficiency.
[0080] Optionally, after the step of compensating and correcting the actual energy value according to the error compensation value in step S204 to obtain the compensated energy value, the following steps can be included:
[0081] The step of compensating and correcting the actual energy value according to the error compensation value to obtain the compensated energy value is repeatedly performed until the compensated energy value meets the error range of the standard energy value to obtain a stable energy value.
[0082] Since the error sources of the electric energy meter are complex and may change dynamically with time, environment and other factors in actual situations, it is difficult to make the compensated energy value accurately meet the error range of the standard energy value in one step when performing error compensation and correction for the first time. For example, the performance of internal components of the electric energy meter may change slowly with the increase of usage time, and environmental temperature, humidity and other conditions may also have a continuous impact on the metering of the electric energy meter. Therefore, by repeatedly performing compensation and correction, the accurate energy metering result can be approached. The first compensated energy value is compared with the standard energy value to determine whether it is within the error range of the standard energy value. The error range of the standard energy value is determined according to relevant power industry standards or regulations, which represents the upper and lower limits of the allowed metering error. For example, the error range can be specified as ±1% of the standard energy value.
[0083] If the electric energy value after the first compensation is not within the error range of the standard electric energy value, it indicates that the current compensation is not accurate enough and needs to be compensated and corrected again. A new error compensation value is obtained again (this error compensation value can be recalculated according to new measurement data and a model), and then the electric energy value obtained just now is compensated and corrected again using the new error compensation value to obtain a new compensated electric energy value. Then, the new compensated electric energy value is compared with the standard electric energy value again to determine whether it meets the error range. The above operations are repeatedly performed in this way to continuously adjust the compensated electric energy value.
[0084] After multiple repeated compensation corrections, when the compensated electric energy value finally falls within the error range of the standard electric energy value, the electric energy value obtained at this time is considered to be a stable electric energy value. This stable electric energy value can more accurately reflect the actual electric energy consumed by the user and meet the accuracy requirements of electric power measurement. For the electric power enterprise, fair and accurate electricity settlement can be performed according to this stable electric energy value, and for the user, the calculation of the electricity cost can also be ensured to be reasonable and fair.
[0085] In the present application, the sampling electric energy of the electric energy meter under the preset experimental conditions is obtained to obtain the to-be-analyzed electric energy value corresponding to each sampling time point. Each to-be-analyzed electric energy value is calculated with the preset standard electric energy value to obtain the electric energy error value corresponding to each sampling time point. According to the electric energy error value of each sampling time point, a difference change curve graph is obtained. According to the difference change curve graph, a difference change rate is calculated. According to the difference change rate, the difference change curve graph is divided into intervals to obtain the difference change interval. For any difference change interval, an error interval compensation model is constructed. The actual electric energy value at the current time is obtained. According to the error interval compensation model, the error compensation value at the current time is determined. According to the error compensation value, the actual electric energy value is compensated and corrected to obtain a compensated electric energy value. By first obtaining the to-be-analyzed electric energy value of the electric energy meter at each sampling time point under the preset experimental conditions, calculating the electric energy error value with the standard electric energy value, drawing the difference change curve graph and calculating the change rate, dividing the difference change interval according to the difference change rate, constructing the error interval compensation model for each interval, and then determining the error compensation value at the current time according to the model, the actual electric energy value is compensated and corrected. Thus, the error analysis of the electric energy value collected by the electric energy meter is performed to determine the error compensation, so as to automatically compensate and correct the actual electric energy value to obtain a compensated electric energy value.
[0086] Referring to Figure 3 is a flowchart of an electric energy metering compensation method provided by Embodiment Three of the present application. As shown in Figure 3 , the step of constructing an error interval compensation model for any of the difference change intervals in step S203 can include the following steps:
[0087] Step S301, according to the preset experimental conditions, determine the current value in the difference value change interval;
[0088] Step S302, screen the target current in the current value that meets the preset intensity, determine the residence time of the target current;
[0089] Step S303, according to the electric energy error value, determine the error fluctuation in the difference value change interval;
[0090] Step S304, according to the error fluctuation combined with the residence time, construct the error interval compensation model.
[0091] Among them, the preset experimental condition is a series of parameters and environmental factors that are set in advance when studying the electric energy measurement error, such as voltage, frequency, temperature, etc. These conditions will affect the working state and measurement results of the electric energy meter. Under different experimental conditions, the error performance of the electric energy meter will also be different.
[0092] In the known difference value change interval, the corresponding current value is determined according to the preset experimental condition. This may need to use measuring equipment (such as ammeter) to monitor and record the current in the interval in real time. Because the current is one of the important factors affecting electric energy measurement, different current size may cause electric energy meter to produce different degree of error, so accurate acquisition of the current value in the interval is the basis for subsequent construction of compensation model.
[0093] The preset intensity is the pre-set current intensity range. After obtaining all the current values in the difference value change interval, the current in the preset intensity range is screened out, which is called target current. The purpose of screening target current is to focus on the influence of current with specific intensity on electric energy measurement error, because under certain specific current intensity, the error of electric energy meter may be more obvious or have specific change rule.
[0094] For the screened target current, determine its residence time in the difference value change interval. The residence time reflects the duration of the effect of the target current, which is also an important factor affecting the electric energy measurement error. For example, long time under a certain specific intensity of current, electric energy meter may produce greater error because of the heating of components and other factors.
[0095] In the difference value change interval, the electric energy error value is not fixed, but will fluctuate with time and other factors. By analyzing the electric energy error value at each time point in the interval, the error fluctuation can be determined. This can be achieved by calculating the change amplitude, frequency and other indicators of error value. Error fluctuation reflects the instability of error, and different error fluctuation may need different compensation strategies.
[0096] Error fluctuation and residence time are important factors affecting the error of electric energy measurement. Combining these two factors can more comprehensively describe the variation of error in the difference value variation interval. The process of constructing the error interval compensation model is to find the mathematical relationship between error fluctuation, residence time and error compensation value. Various mathematical methods can be used to construct the model, such as linear regression, nonlinear regression, etc. Taking linear regression as an example, it is assumed that the error compensation value C satisfies the linear relationship C=aF+bT+c, where c is a coefficient to be determined. Through multiple sets of error fluctuation, residence time and corresponding error compensation value data in the difference value variation interval, the least square method can be used to determine the value of these coefficients, thereby obtaining the specific error interval compensation model.
[0097] The embodiments of the present application construct a more accurate error interval compensation model through factors such as current intensity, residence time and error fluctuation, thereby more effectively compensating for the error of electric energy measurement.
[0098] Reference Figure 4 is a flowchart of a power meter measurement compensation method provided by Embodiment Four of the present application. As Figure 4 indicated, the step S203 of determining the error compensation value of the current time according to the error interval compensation model can include the following steps:
[0099] Step S401, determine the current variation interval of the current time in the difference value variation interval.
[0100] Step S402, determine the error interval compensation model corresponding to the current time according to the current variation interval.
[0101] Step S403, calculate the error compensation value of the current time using the error interval compensation model of the current time.
[0102] Wherein, the previous steps have divided the curve of the change of electric energy error value with time into multiple difference value variation intervals, and the change of electric energy error in each interval has a relatively consistent rule, so different error interval compensation models are constructed for different intervals.
[0103] First, it is necessary to determine which difference value variation interval the current time is in, that is, the current variation interval. This can be determined by comparing the current time with the change rate time based on which the interval is divided.
[0104] Since the error change law is different in each difference value change interval, an error interval compensation model is separately constructed for each interval. These models are constructed according to the current value, target current residence time, error fluctuation and other factors in the interval, and can accurately reflect the change characteristics of the error in the interval. After determining the current change interval, the corresponding error interval compensation model can be found. This model is used as the basis for calculating the error compensation value at the current time.
[0105] The error interval compensation model at the current time is a mathematical expression that contains various variables related to error compensation. When using the model to calculate the error compensation value, the relevant parameters corresponding to the current time need to be substituted into the model. These parameters may include the current value, target current residence time, etc., depending on the factors considered when constructing the model.
[0106] After substituting the relevant parameters into the error interval compensation model at the current time, the error compensation value at the current time can be obtained by performing the mathematical operations specified by the model.
[0107] In the embodiments of the present application, the error interval compensation model is pre-constructed to accurately calculate the error compensation value at the current time, providing key data for subsequent accurate compensation of the metering results of the electric energy meter.
[0108] The electric energy metering compensation method corresponding to the above embodiments, Figure 5 The structure block diagram of the electric energy metering compensation device provided by the sixth embodiment of the present application is shown, and the above electric energy metering compensation device can be applied to Figure 1 the server. For ease of illustration, only the parts related to the embodiments of the present application are shown.
[0109] Referring to Figure 5 , the electric energy metering compensation device comprises:
[0110] The error calculation module 51 is configured to obtain the sampled electric energy of the electric energy meter under the preset experimental conditions, obtain the to-be-analyzed electric energy value corresponding to each sampling time point, and calculate each to-be-analyzed electric energy value with the preset standard electric energy value to obtain the electric energy error value corresponding to each sampling time point.
[0111] The interval division module 52 is configured to obtain the difference value change curve according to the electric energy error value of each sampling time point, calculate the difference value change rate according to the difference value change curve, divide the difference value change curve into intervals according to the difference value change rate, and obtain the difference value change interval.
[0112] The error compensation value calculation module 53 is configured to, for any difference value change interval, construct an error interval compensation model, acquire an actual electric energy value at a current time, and determine an error compensation value at the current time according to the error interval compensation model.
[0113] The compensation module 54 is configured to compensate and correct the actual electric energy value according to the error compensation value, to obtain a compensated electric energy value.
[0114] Optionally, the error calculation module 51 comprises:
[0115] The electric energy sampling unit is configured to acquire a sampling electric energy of the electric energy meter at a preset current value and voltage value, to obtain a to-be-analyzed electric energy value corresponding to each sampling time point.
[0116] The difference value calculation unit is configured to perform difference value calculation on the to-be-analyzed electric energy value and the standard electric energy value at a preset time interval, to obtain an electric energy error value corresponding to each sampling time point.
[0117] Optionally, the interval division module 52 comprises:
[0118] The derivative calculation unit is configured to perform derivative calculation on the difference value change curve, to obtain a difference value change rate of the electric energy error value.
[0119] The change rate inflection point determination unit is configured to obtain a change rate curve according to the difference value change rate, and determine a change rate inflection point of the difference value change rate according to the change rate curve.
[0120] The inflection point division unit is configured to divide the difference value change curve into intervals according to the change rate inflection point, to obtain a difference value change interval.
[0121] Optionally, the inflection point division unit comprises:
[0122] The difference value change rate subunit is configured to determine a difference value change rate corresponding to the change rate inflection point in the change rate curve.
[0123] The change rate sorting subunit is configured to sort the difference value change rates according to their sizes, to obtain a change rate sorting, and determine a change rate time corresponding to the change rate sorting according to the change rate sorting.
[0124] The change rate interval division subunit is configured to divide the difference value change curve into intervals according to the change rate time, to obtain a difference value change interval.
[0125] Optionally, the error compensation value calculation module 53 comprises:
[0126] The current value determination unit is configured to determine the current value in the difference variation interval according to the preset experiment condition.
[0127] The residence time determination unit is configured to filter a target current with a preset intensity from the current values, and determine the residence time of the target current.
[0128] The error fluctuation determination unit is configured to determine the error fluctuation in the difference variation interval according to the electric energy error value.
[0129] The model construction unit is configured to construct an error interval compensation model according to the error fluctuation and the residence time.
[0130] Optionally, the error compensation value calculation module 53 comprises:
[0131] The current variation interval determination unit is configured to determine a current variation interval of the current moment in the difference variation interval.
[0132] The current moment model determination unit is configured to determine an error interval compensation model corresponding to the current moment according to the current variation interval.
[0133] The current moment compensation value calculation unit is configured to calculate the error compensation value of the current moment by using the error interval compensation model of the current moment.
[0134] Optionally, the electric energy metering compensation device comprises:
[0135] The repeated execution module is configured to repeatedly execute the step of compensating and correcting the actual electric energy value according to the error compensation value to obtain the compensated electric energy value until the compensated electric energy value meets the error range of the standard electric energy value to obtain a stable electric energy value.
[0136] It should be noted that the information interaction, execution process and the like between the above modules, units and sub-units are based on the same concept as the method embodiments of the present application, and the specific functions and technical effects brought by the same can be referred to the method embodiments part, which will not be described here.
[0137] Figure 6 A structural schematic diagram of a computer device provided in Embodiment Six of the present application is shown in FIG. 6. Figure 6 As shown in FIG. 6, the computer device of this embodiment comprises at least one processor (CPU) 61, memory (MEM) 62 and power supply 63. Figure 6The computer device can include, but is not limited to, a processor, a memory, and a computer program stored in the memory and executable on the at least one processor, the processor implementing the steps of any of the above-described electric energy metering compensation methods or the steps of the above-described electric energy metering compensation method embodiments when executing the computer program.
[0138] The computer device can include, but is not limited to, a processor, a memory, and a computer program stored in the memory and executable on the at least one processor, the processor implementing the steps of any of the above-described electric energy metering compensation methods or the steps of the above-described electric energy metering compensation method embodiments when executing the computer program. Figure 6 The computer device is merely an example and does not constitute a limitation on the computer device, the computer device can include more or fewer components than shown, or combine certain components, or include different components, for example, the computer device can also include a network interface, a display screen, an input device, and the like.
[0139] The processor can be a CPU, and the processor can also be other general-purpose processors, digital signal processors (DSP), application specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gates or transistor logic components, discrete hardware components, and the like. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor.
[0140] The memory includes a readable storage medium, an internal memory, and the like, wherein the internal memory can be a memory of the computer device, and the internal memory provides an environment for the operation of the operating system and the computer readable instructions in the readable storage medium. The readable storage medium can be a hard disk of the computer device, and in other embodiments, the readable storage medium can also be an external storage device of the computer device, for example, a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, and the like. Further, the memory can include both an internal storage unit of the computer device and an external storage device. The memory is used to store an operating system, an application program, a boot loader, data, and other programs, such as program codes of computer programs. The memory can also be used to temporarily store data that has been output or will be output.
[0141] Those skilled in the art can clearly understand that, for the convenience and brevity of description, only the above-mentioned division of each functional unit and module is exemplified, and in actual application, the above-mentioned functions can be completed by different functional units and modules according to needs, that is, the internal structure of the device is divided into different functional units or modules to complete all or part of the functions described above. Each functional unit and module in the embodiment can be integrated in one processing unit, or each unit can be physically present separately, or two or more units can be integrated in one unit. The integrated unit can be realized in the form of hardware or in the form of software functional unit. In addition, the specific names of each functional unit and module are only for easy distinction, and do not limit the protection scope of the present application. The specific working process of the units and modules in the above device can refer to the corresponding process in the foregoing method embodiments, which will not be repeated here. If the integrated unit is realized in the form of software functional unit and sold or used as an independent product, it can be stored in a computer readable storage medium. Based on this understanding, all or part of the processes in the above embodiment methods can be completed by a computer program instructing related hardware. The computer program can be stored in a computer readable storage medium. When the processor executes the computer program, the steps of the above method embodiments can be implemented. The computer program includes computer program code, which can be in the form of source code, object code, executable file or some intermediate form. The computer readable medium at least includes any entity or device capable of carrying computer program code, recording medium, computer memory, read-only memory (ROM), random access memory (RAM), electrical carrier signal, telecommunication signal and software distribution medium. For example, U disk, mobile hard disk, magnetic disk or optical disk, etc. In some jurisdictions, according to legislation and patent practice, computer readable medium cannot be electrical carrier signal and telecommunication signal.
[0142] The above embodiment methods can also be completed by a computer program product, which, when running on a computer device, causes the computer device to execute the steps of the above method embodiments.
[0143] In the above embodiments, the description of each embodiment has its own emphasis, and the parts not described or recorded in detail in a certain embodiment can be referred to the related description of other embodiments.
[0144] Those skilled in the art can understand that the units and algorithm steps of each example described in combination with the embodiments disclosed herein can be realized in electronic hardware or a combination of computer software and electronic hardware. Whether the functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of the present application.
[0145] In the embodiments provided by the present application, it should be understood that the disclosed apparatus / computer device and method can be implemented in other ways. For example, the apparatus / computer device embodiments described above are merely schematic. The division of the modules or units is merely a logical function division, and there can be another division manner in actual implementation. For example, a plurality of units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the displayed or discussed mutual couplings or direct couplings or communication connections between the units can be indirect couplings or communication connections through some interfaces, devices or units, and can be electrical, mechanical or in other forms.
[0146] The units described as separate components can or can not be physically separate, and the components shown as units can or can not be physical units, i.e. can be located in one place, or can be distributed on a plurality of network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the embodiments.
[0147] The above embodiments are only used to illustrate the technical solutions of the present application, but not limit them; although the present application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that the technical solutions recorded in the foregoing embodiments can be modified, or some technical features can be replaced by equivalents; and these modifications or replacements do not make the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present application, and should be included in the protection scope of the present application.
Claims
1. A method of metering compensation for electric energy, characterized in that, The method comprises the following steps: obtaining the sampling electric energy of the electric energy meter under the preset experimental conditions, obtaining the to-be-analyzed electric energy value corresponding to each sampling time point, calculating each to-be-analyzed electric energy value with the preset standard electric energy value, and obtaining the electric energy error value corresponding to each sampling time point; obtaining the difference value change curve according to the electric energy error value of each sampling time point, calculating the difference value change rate according to the difference value change curve, and dividing the difference value change curve into intervals according to the difference value change rate to obtain the difference value change interval; for any difference value change interval, constructing an error interval compensation model, obtaining the actual electric energy value at the current time, determining the error compensation value at the current time according to the error interval compensation model; compensating and correcting the actual electric energy value according to the error compensation value to obtain the compensated electric energy value.
2. The method of claim 1, wherein, The method comprises the following steps: obtaining the sampling electric energy of the electric energy meter under the preset experimental conditions, obtaining the to-be-analyzed electric energy value corresponding to each sampling time point, calculating each to-be-analyzed electric energy value with the preset standard electric energy value, and obtaining the electric energy error value corresponding to each sampling time point; obtaining the sampling electric energy of the electric energy meter under the preset experimental conditions, obtaining the to-be-analyzed electric energy value corresponding to each sampling time point, calculating each to-be-analyzed electric energy value with the preset standard electric energy value, and obtaining the electric energy error value corresponding to each sampling time point; 3. The method of claim 1, wherein, The method comprises the following steps: derivative calculation is performed on the difference value change curve to obtain the difference value change rate of the electric energy error value; obtaining the change rate curve according to the difference value change rate, determining the change rate inflection point of the difference value change rate according to the change rate curve, and dividing the difference value change curve into intervals according to the change rate inflection point to obtain the difference value change interval. The method comprises the following steps:
4. The method of claim 3, wherein, determining the difference value change rate corresponding to the change rate inflection point in the change rate curve; sorting the size of the difference value change rate to obtain the change rate sorting, and determining the change rate time corresponding to the change rate sorting according to the change rate sorting; dividing the difference value change curve into intervals according to the change rate time to obtain the difference value change interval. The method comprises the following steps:
5. The method of claim 1, wherein, determining the current change interval of the current time in the difference value change interval according to the error interval compensation model; The method comprises the following steps: determining the current change interval of the current time in the difference value change interval according to the error interval compensation model; 6. The method of claim 1, wherein, According to the current variation interval, an error interval compensation model corresponding to the current time is determined; Using the error interval compensation model of the current time, an error compensation value of the current time is calculated.
7. The method of claim 1 to 6, wherein, After the actual electric energy value is compensated and corrected according to the error compensation value to obtain a compensated electric energy value, the method further comprises: The step of compensating and correcting the actual electric energy value according to the error compensation value to obtain a compensated electric energy value is repeatedly performed until the compensated electric energy value meets the error range of the standard electric energy value, and a stable electric energy value is obtained.
8. An electric energy metering compensation device, characterized by Comprises: An error calculation module is configured to obtain sampling electric energy of an electric energy meter under preset experimental conditions, to obtain a to-be-analyzed electric energy value corresponding to each sampling time point, to calculate each to-be-analyzed electric energy value with a preset standard electric energy value, and to obtain an electric energy error value corresponding to each sampling time point; An interval division module is configured to obtain a difference value change curve according to the electric energy error value of each sampling time point, to calculate a difference value change rate according to the difference value change curve, to divide the difference value change curve into intervals according to the difference value change rate, and to obtain a difference value change interval. An error compensation value calculation module is configured to construct an error interval compensation model for any difference value change interval, to obtain an actual electric energy value of a current time, and to determine an error compensation value of the current time according to the error interval compensation model. A compensation module is configured to compensate and correct the actual electric energy value according to the error compensation value, to obtain a compensated electric energy value.
9. A computer device, comprising: The computer device comprises a processor, a memory, and a computer program stored in the memory and executable on the processor, and the processor implements the electric energy meter compensation method of any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium storing a computer program, the computer program comprising instructions that, when executed by a computer, cause the computer to perform the method of any one of claims 1 to 9. The computer program is executed by the processor to implement the electric energy meter compensation method of any one of claims 1 to 7.
Citation Information
Patent Citations
Segmented compensation method for errors of electric energy meter
CN105093160A
Electric energy meter metering bidirectional compensation method and device
CN117572330A