A smart electric energy meter measuring method and smart electric energy meter

By extracting the waveform characteristics and power factor characteristics of the smart energy meter, the load is classified, and the phase shift compensation parameter is used to correct the data, which solves the problem of inaccurate measurement data of the smart energy meter and improves the accuracy and reliability of measurement.

CN118444239BActive Publication Date: 2024-09-24武汉阿迪克电子股份有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410904239.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-08
Publication Date
2024-09-24
Estimated Expiration
2044-07-08

AI Technical Summary

Technical Problem

Measurement data errors may occur in smart energy meters in practical applications, especially voltage and current waveform distortion caused by nonlinear loads, which affects the accuracy of measurement data.

Method used

By obtaining the initial power sampling data of the circuit to be measured, extracting waveform features and power factor features, classifying the load based on these features, obtaining the load classification results, and then extracting the corresponding phase shift compensation parameters from the preset correction parameter database, and calculating Phase shift correction parameter, used to correct energy metering data.

Benefits of technology

It can effectively reduce measurement errors, improve the accuracy and reliability of electric energy measurement, adapt to the characteristics of different types of loads, and enhance the ability to compensate for non-linear loads.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118444239B
    Figure CN118444239B
Patent Text Reader

Abstract

The present invention provides an electric meter measurement method of an intelligent electric energy meter and an intelligent electric energy meter, the method comprising the following steps: obtaining initial electric energy sampling data of a circuit to be measured; extracting waveform characteristics and power factor characteristics of the initial electric energy sampling data; classifying the current operating load in the circuit to be measured in combination with the waveform characteristics and the power factor characteristics to obtain a load classification result; extracting corresponding multiple phase shift compensation parameters from a preset correction parameter database according to the load classification result; calculating a phase shift correction parameter based on the load classification result and through multiple phase shift compensation parameters; calculating electric energy measurement data in combination with the initial electric energy sampling data and the phase shift correction parameters, and outputting the electric energy measurement data through the intelligent electric energy meter. The present invention has the effect of higher accuracy of electric meter measurement data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of smart electric energy meters, and in particular relates to an electric energy meter measurement method of a smart electric energy meter and a smart electric energy meter. Background Art

[0002] With the modernization of the power system, traditional mechanical energy meters are gradually being replaced by smart energy meters. Smart energy meters are advanced devices used for power metering and management, which can record power consumption and transmit data to power companies and users through communication networks. Smart energy meters can help users better understand and manage their power consumption, thereby improving energy efficiency, reducing unnecessary waste, and achieving the goal of energy conservation and emission reduction. Through smart energy meters, power companies can also monitor and analyze the operation of the power grid in real time, adjust load distribution in time, avoid power grid overload and power outage accidents, and improve the stability and reliability of the power grid.

[0003] However, smart electricity meters may have various metering data errors in actual applications. In particular, nonlinear loads widely used in modern power systems will generate harmonics in the circuit, which will lead to voltage and current waveform distortion. Voltage and current waveform distortion is usually considered to be the most serious factor affecting the accuracy of smart electricity meter metering data. Waveform distortion makes the metering data output by smart electricity meters relatively inaccurate, which is also a major issue that needs to be urgently addressed in the industry. Summary of the invention

[0004] The present invention provides an electric energy meter measurement method of an intelligent electric energy meter and an intelligent electric energy meter, so as to solve the problem that the measurement data output by the intelligent electric energy meter is relatively inaccurate.

[0005] In a first aspect, the present invention provides an electric energy meter measurement method for a smart electric energy meter, which is applied to the smart electric energy meter, and the method comprises the following steps:

[0006] Obtaining initial electric energy sampling data of the circuit to be measured;

[0007] Extracting waveform characteristics and power factor characteristics of the initial electric energy sampling data;

[0008] Classifying the current operating load in the circuit to be measured in combination with the waveform feature and the power factor feature to obtain a load classification result, wherein the load classification types in the load classification result include linear load and nonlinear load;

[0009] Extracting corresponding multiple phase shift compensation parameters from a preset correction parameter database according to the load classification result;

[0010] Obtaining a phase shift correction parameter based on the load classification result and by calculating a plurality of the phase shift compensation parameters;

[0011] The electric energy metering data is calculated by combining the initial electric energy sampling data and the phase shift correction parameter, and the electric energy metering data is outputted through the smart electric energy meter.

[0012] Optionally, the extracting of waveform characteristics and power factor characteristics of the initial electric energy sampling data comprises the following steps:

[0013] Extracting fundamental waveform features from the initial electric energy sampling data using a fast Fourier transform algorithm;

[0014] Determining the harmonic calculation order according to the maximum amplitude of the fundamental wave in the fundamental wave waveform characteristics;

[0015] Extracting Nth harmonic waveform features from the initial electric energy sampling data based on the harmonic calculation order and using the fast Fourier transform algorithm;

[0016] A first power factor characteristic is calculated by the fundamental waveform characteristic, and a second power factor characteristic is calculated by the Nth harmonic waveform characteristic;

[0017] The power factor characteristic of the initial electric energy sampling data is calculated by combining the first power factor characteristic and the second power factor characteristic.

[0018] Optionally, classifying the current operating load in the circuit to be measured by combining the waveform feature and the power factor feature to obtain a load classification result comprises the following steps:

[0019] The harmonic distortion value of the initial electric energy sampling data is calculated by combining the fundamental wave waveform characteristics and the Nth harmonic waveform characteristics;

[0020] Statistically calculating and obtaining the total harmonic amplitude of the Nth harmonic waveform characteristics;

[0021] If the harmonic distortion value is less than the distortion value threshold and the total harmonic amplitude is less than the fundamental amplitude of the fundamental waveform feature, classifying the current operating load as a linear load;

[0022] classifying the linear load as a purely resistive load, an inductive load, or a capacitive load based on the power factor characteristic;

[0023] If the harmonic distortion value is greater than or equal to the distortion value threshold and the total harmonic amplitude is greater than or equal to the fundamental amplitude of the fundamental waveform feature, the currently operating load is classified as a nonlinear load;

[0024] If the harmonic distortion value is less than the distortion value threshold and the total harmonic amplitude is greater than or equal to the fundamental amplitude of the fundamental waveform feature;

[0025] or,

[0026] If the harmonic distortion value is greater than or equal to the distortion value threshold and the total harmonic amplitude is less than the fundamental amplitude of the fundamental waveform feature, classifying the current operating load as a neutral load;

[0027] The number of load types of each load classification is counted respectively, and all the load classifications and the corresponding numbers of load types are integrated into a load classification result.

[0028] Optionally, the method further comprises the following steps:

[0029] The initial electric energy sampling data is stored as historical sampling data in a preset local storage space, a load type label is added to the waveform feature according to the load classification result, and the waveform feature is stored as a historical waveform feature in the local storage space;

[0030] Cache the load classification result corresponding to the initial electric energy sampling data into a preset cache space;

[0031] Sampling the circuit to be measured at a preset sampling interval to obtain real-time electric energy sampling data;

[0032] Each time the real-time electric energy sampling data is successfully sampled, the real-time electric energy sampling data is stored in the local storage space, and a classification result updating step is performed using the real-time electric energy sampling data to update the load classification result in the cache space.

[0033] Optionally, the classification result updating step includes the following steps:

[0034] Using the fast Fourier transform algorithm to obtain the real-time waveform characteristics of the real-time electric energy sampling data;

[0035] Extracting the target historical waveform feature whose storage timestamp is closest to the current time from the local storage space;

[0036] By comparing the characteristic difference between the real-time waveform characteristic and the target historical waveform characteristic, it is determined whether there is a load start-stop action in the circuit to be measured at the current moment;

[0037] If the load start-stop action does not exist in the circuit to be measured at the current moment, the load classification result at the current moment is maintained unchanged, and the classification result updating step is terminated at the same time;

[0038] If the load start-stop action exists in the circuit to be measured at the current moment, a waveform separation technology is used to separate the current load waveform feature from the real-time waveform feature based on the historical waveform feature, and the current load waveform feature is the waveform feature of the target load that performs the load start-stop action at the current moment;

[0039] Obtaining a current load power factor characteristic of the target load by calculating the current load waveform characteristic;

[0040] Complete load classification of the target load in combination with the current load waveform feature and the current load power factor feature, add the load type label to the current load waveform feature according to the classification result of the target load, and store the current load waveform feature as the historical waveform feature in the local storage space;

[0041] The load classification result in the cache space is updated based on the classification result of the target load, and the classification result updating step is ended at the same time.

[0042] Optionally, the step of calculating a phase shift correction parameter based on the load classification result and through a plurality of phase shift compensation parameters comprises the following steps:

[0043] Extracting the load classification result at the current moment from the cache space;

[0044] Retrieving a target waveform feature corresponding to the load type label from the local storage space based on the load type label in the load classification result at the current moment;

[0045] Calculating the power contribution of each target waveform feature in the waveform feature at the current moment respectively;

[0046] According to the power contribution, different contribution weights are assigned to each of the target waveform features;

[0047] The phase shift correction parameter is calculated based on the phase shift compensation parameters corresponding to all the target waveform features and the corresponding contribution weights.

[0048] Optionally, the calculation formula of the phase shift correction parameter is as follows:

[0049] ,

[0050] Where: represents the phase shift correction parameter at the current moment, Indicates the phase shift compensation parameter of the target waveform characteristic, Indicates the contribution weight of each of the target waveform features, Indicates the number of features of the target waveform at the current moment.

[0051] Optionally, after outputting the electric energy metering data through the smart electric energy meter, the method further includes the following steps:

[0052] Extracting all the historical sampling data from the local storage space;

[0053] Combining all the historical sampling data and predicting through a data prediction algorithm to obtain the initial predicted metering data at the current moment;

[0054] Using preset forecast metering adjustment parameters to adjust the initial forecast metering data to target forecast metering data;

[0055] Calculating and obtaining a data difference between the electric energy metering data and the target predicted metering data;

[0056] Determine the phase shift compensation parameters to be adjusted corresponding to all the target waveform features in the correction parameter database at the current moment;

[0057] Based on the data difference and according to the contribution weight, each of the phase shift compensation parameters to be adjusted is respectively adjusted in the correction parameter database.

[0058] In a second aspect, the present invention further provides a smart electric energy meter, the smart electric energy meter comprising:

[0059] A data sampling module, used to obtain initial electric energy sampling data of the circuit to be measured;

[0060] A feature extraction module, used to extract waveform features and power factor features of the initial electric energy sampling data;

[0061] A feature classification module, used to classify the current operating load in the circuit to be measured in combination with the waveform feature and the power factor feature to obtain a load classification result;

[0062] A data storage module, used for storing a preset calibration parameter database;

[0063] A parameter extraction module, used for extracting a plurality of corresponding phase shift compensation parameters from the correction parameter database according to the load classification result;

[0064] A correction parameter calculation module, configured to calculate a phase shift correction parameter based on the load classification result and through a plurality of the phase shift compensation parameters;

[0065] The metering output module is used to calculate the electric energy metering data by combining the initial electric energy sampling data and the phase shift correction parameter, and output the electric energy metering data through the smart electric energy meter.

[0066] Optionally, the feature extraction module includes:

[0067] A fundamental wave extraction unit, used to extract fundamental wave waveform features from the initial electric energy sampling data using a fast Fourier transform algorithm;

[0068] A harmonic pre-calculation unit, used for determining the harmonic calculation order according to the maximum amplitude of the fundamental wave in the fundamental wave waveform characteristics;

[0069] A harmonic extraction unit, used to extract Nth harmonic waveform features from the initial electric energy sampling data based on the harmonic calculation order and using the fast Fourier transform algorithm;

[0070] A power factor characteristic pre-calculation unit, used for extracting Nth harmonic waveform characteristics from the initial electric energy sampling data based on the harmonic calculation order and using the fast Fourier transform algorithm;

[0071] A power factor feature extraction unit is used to calculate the power factor feature of the initial electric energy sampling data by combining the first power factor feature and the second power factor feature.

[0072] The beneficial effects of the present invention are:

[0073] By acquiring the initial electric energy sampling data of the circuit to be measured and extracting its waveform characteristics and power factor characteristics, the current operating load can be accurately classified as a linear load or a nonlinear load, and then the corresponding multiple phase shift compensation parameters are extracted from a preset correction parameter database according to the load classification result, and the phase shift correction parameters are calculated based on these compensation parameters. Then, more accurate electric energy metering data is calculated in combination with the initial electric energy sampling data and the phase shift correction parameters, and output through an intelligent electric energy meter, thereby effectively adapting to the characteristics of different types of loads, reducing metering errors, and improving the accuracy and reliability of electric energy metering. BRIEF DESCRIPTION OF THE DRAWINGS

[0074] Figure 1 It is a flow chart of an electric energy meter measurement method of a smart electric energy meter in one embodiment of the present application.

[0075] Figure 2 This is a system structure diagram of a smart electric energy meter in one embodiment of the present application. DETAILED DESCRIPTION

[0076] The following will be combined with the drawings in the embodiments of the present application to clearly describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments in the present application belong to the scope of protection of this application.

[0077] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.

[0078] Figure 1 FIG. 1 is a flow chart of a method for measuring electric energy by a smart electric energy meter in an embodiment. The method for measuring electric energy by a smart electric energy meter disclosed in this embodiment is applied to a smart electric energy meter. It should be understood that although Figure 1 The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, Figure 1 At least part of the steps in the above method may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be executed in turn or alternately with other steps or at least part of the sub-steps or stages of other steps. Figure 1 As shown, the electric energy meter measurement method of a smart electric energy meter disclosed in the present invention specifically includes the following steps:

[0079] S101. Obtain initial electric energy sampling data of the circuit to be measured.

[0080] Among them, smart energy meters continuously monitor the voltage and current signals in the circuit through built-in voltage and current sensors. Smart energy meters are usually equipped with high-precision analog-to-digital converters (ADCs) that can convert analog signals into digital signals for subsequent digital processing. The sampling frequency is a key parameter, usually set in the range of several thousand hertz (kHz) to tens of kilohertz to ensure that subtle changes and high-frequency components of the power signal can be captured.

[0081] S102. Extracting waveform characteristics and power factor characteristics of initial electric energy sampling data.

[0082] The extraction of waveform features involves frequency domain analysis of voltage and current signals. The commonly used method is the Fast Fourier Transform (FFT), which can convert time domain signals into frequency domain signals, thereby identifying harmonic components and other frequency features in the signal. The power factor feature reflects the effective use of electric energy, which is usually obtained by calculating the ratio of active power to apparent power.

[0083] For example, for a motor load containing harmonics. Through fast Fourier transform, the voltage and current waveforms can be decomposed into fundamental and harmonic components. Among them, it may be found that the third harmonic and the fifth harmonic occupy a significant proportion in the signal, and this information will be used as part of the waveform characteristics. The power factor characteristics can be obtained by calculating the active power (actual electric energy consumed) and apparent power (the product of voltage and current) of the motor. If the power factor of the motor is low, it means that its electric energy utilization efficiency is not high, and there may be a problem of large reactive power. The extraction of waveform characteristics and power factor characteristics can deeply understand the composition and characteristics of the electric energy signal, which provides the necessary data support for subsequent load classification and phase shift compensation, and helps to improve the accuracy and reliability of electric energy metering.

[0084] S103. Classify the current operating load in the circuit to be measured in combination with the waveform characteristics and the power factor characteristics to obtain a load classification result.

[0085] Among them, the current operating load in the circuit to be measured is classified by combining the extracted waveform features and power factor features to obtain a load classification result, and the load classification types in the load classification result include linear load and nonlinear load. The accuracy of the load classification result directly affects the effectiveness of the subsequent steps. Through accurate load classification, corresponding compensation measures can be taken for different load types, thereby improving the accuracy and reliability of electric energy metering.

[0086] S104. Extracting a plurality of corresponding phase shift compensation parameters from a preset correction parameter database according to the load classification result.

[0087] Among them, the correction parameter database is a pre-established database that stores phase shift compensation parameters corresponding to different types of loads, which are used to correct the electric energy metering error caused by load characteristics. For example, if the current load is classified as a nonlinear load in the previous step, the phase shift compensation parameters corresponding to the nonlinear load will be searched in the correction parameter database. The database may contain multiple parameter groups, each group of parameters corresponding to different harmonic frequencies and phase offsets. For example, some nonlinear loads may produce significant third and fifth harmonics, and there will be compensation parameters for these harmonics in the database. These compensation parameters usually include the amplitude and phase information of the harmonics, which are used to adjust the phase of the electric energy signal to make it closer to the ideal sinusoidal waveform. By extracting these parameters, the system provides the necessary data support for subsequent phase shift correction calculations. By extracting the corresponding compensation parameters from the correction parameter database, accurate phase shift compensation can be performed for different types of loads. This step ensures the accuracy and applicability of the compensation parameters, making the subsequent phase shift correction calculation more accurate, which helps to improve the accuracy of electric energy metering.

[0088] S105. Calculate a phase shift correction parameter based on the load classification result and through multiple phase shift compensation parameters.

[0089] Among them, the extracted compensation parameters are used to specifically calculate the phase shift correction parameters through a weighted average algorithm or some optimization algorithms, and finally the phase shift correction parameters are used to adjust the phase of the initial power sampling data, thereby correcting the power metering error. In the specific implementation process, the system will combine the initial power sampling data with the compensation parameters to calculate the phase adjustment value of each sampling point. These adjustment values ​​are used to correct the phase of the voltage and current signals, thereby reducing the metering error caused by harmonics and phase offset.

[0090] S106. Calculate the electric energy metering data by combining the initial electric energy sampling data and the phase shift correction parameter, and output the electric energy metering data through the smart electric energy meter.

[0091] The initial power sampling data is combined with the phase shift correction parameters to adjust the voltage and current signals at each sampling point to correct the phase shift and harmonic distortion. These adjustments can calculate more accurate active power and reactive power, thereby obtaining accurate power consumption data. Ultimately, the smart energy meter will output this data through display screens, communication modules, etc. for use by users and power companies.

[0092] In one implementation manner, step S102 specifically includes the following steps:

[0093] The fundamental waveform characteristics are extracted from the initial electric energy sampling data using the fast Fourier transform algorithm;

[0094] Determine the harmonic calculation order according to the maximum amplitude of the fundamental wave in the fundamental wave waveform characteristics;

[0095] Based on the harmonic calculation order and using the fast Fourier transform algorithm, the Nth harmonic waveform characteristics are extracted from the initial electric energy sampling data;

[0096] A first power factor characteristic is obtained by calculating the fundamental waveform characteristic, and a second power factor characteristic is obtained by calculating the Nth harmonic waveform characteristic;

[0097] The power factor characteristic of the initial electric energy sampling data is calculated by combining the first power factor characteristic and the second power factor characteristic.

[0098] In this embodiment, the fast Fourier transform (FFT) algorithm is an efficient algorithm for converting time domain signals into frequency domain signals. In specific implementation, the voltage and current signals in the smart energy meter acquisition circuit are expressed as waveform data on the time axis. Through the FFT algorithm, these time domain waveform data can be converted into frequency domain data, so as to identify the various frequency components in the signal. The fundamental wave refers to the component with the lowest frequency and the largest amplitude, which usually corresponds to the power frequency of the power grid (such as 50Hz or 60Hz). For example, if the collected voltage signal is expressed as a periodic waveform in the time domain, after FFT processing, an obvious peak can be seen on the spectrum diagram. The frequency corresponding to this peak is the fundamental frequency, and the height of the peak represents the amplitude of the fundamental. By identifying this peak, the frequency and amplitude characteristics of the fundamental wave can be extracted.

[0099] Harmonics refer to frequency components that are integer multiples of the fundamental frequency. Usually in power systems, due to the presence of nonlinear loads, multiple harmonics are generated. Determining the maximum amplitude of the fundamental wave can help the system determine the significance of the harmonics and the number of times they need to be calculated. In specific implementation, the system will first determine the maximum amplitude of the fundamental wave, and then determine the number of harmonics that need to be calculated based on a preset threshold or empirical formula. For example, if the fundamental wave amplitude is large, it means that the harmonic component may be more significant, and the system may choose to calculate more harmonics, such as the first 10 or 20 times. This process ensures that the system can capture the main harmonic components without wasting computing resources on insignificant higher-order harmonics.

[0100] Next, the FFT algorithm will be applied again to extract the Nth harmonic waveform features from the initial power sampling data. In the frequency domain signal, in addition to the fundamental wave, the frequency and amplitude of each harmonic can also be seen. According to the harmonic order determined in the previous step, the frequency and amplitude of the first N harmonics are extracted. For example, if the system determines that the first 10 harmonics need to be calculated, then on the spectrum graph, the system will identify the harmonic components of 2 times, 3 times, and up to 10 times in turn, and record their amplitude and phase information. These harmonic features provide the necessary data support for the subsequent power factor calculation.

[0101] The first power factor feature can be calculated by the fundamental waveform feature. The power factor refers to the ratio of active power to apparent power, which reflects the effective utilization rate of electric energy. In specific implementation, the amplitude and phase information of the fundamental wave are used to calculate the active power and apparent power of the fundamental wave. For example, the active power of the fundamental wave can be calculated by multiplying the fundamental wave components of the voltage and current and considering the phase difference, while the apparent power is the product of the fundamental wave amplitudes of the voltage and current. Through these calculations, the power factor of the fundamental wave, that is, the first power factor feature, can be obtained. Similarly, the second power factor feature can be calculated by the Nth harmonic waveform feature. The calculation of the harmonic power factor is similar to the fundamental power factor, but the amplitude and phase of each harmonic need to be considered. In specific implementation, the active power and apparent power of each harmonic can be calculated separately, and these results can be combined. For example, the active power of each harmonic can be added to obtain the total harmonic active power, and then the apparent power of each harmonic can be added to obtain the total harmonic apparent power. Through these calculations, the power factor of the harmonics, i.e., the second power factor characteristic, can be obtained. Finally, the first power factor characteristic and the second power factor characteristic are combined to calculate the overall power factor characteristic of the initial electric energy sampling data. In specific implementation, the power factors of the fundamental wave and the harmonics are weighted averaged or otherwise mathematically processed to obtain a comprehensive power factor.

[0102] In one implementation manner, step S103 specifically includes the following steps:

[0103] The harmonic distortion value of the initial electric energy sampling data is calculated by combining the fundamental wave waveform characteristics and the Nth harmonic waveform characteristics;

[0104] The total harmonic amplitude of the Nth harmonic waveform characteristics is obtained by statistical calculation;

[0105] If the harmonic distortion value is less than the distortion value threshold and the total harmonic amplitude is less than the fundamental amplitude of the fundamental waveform characteristic, the current operating load is classified as a linear load;

[0106] Classify linear loads as purely resistive, inductive, or capacitive based on power factor characteristics;

[0107] If the harmonic distortion value is greater than or equal to the distortion value threshold and the total harmonic amplitude is greater than or equal to the fundamental amplitude of the fundamental waveform characteristic, the current operating load is classified as a nonlinear load;

[0108] If the harmonic distortion value is less than the distortion value threshold and the total harmonic amplitude is greater than or equal to the fundamental amplitude of the fundamental waveform feature;

[0109] or,

[0110] If the harmonic distortion value is greater than or equal to the distortion value threshold and the total harmonic amplitude is less than the fundamental amplitude of the fundamental waveform characteristic, the current operating load is classified as a neutral load;

[0111] The number of load types of each load classification is counted respectively, and all load classifications and the corresponding number of load types are integrated into the load classification result.

[0112] In this embodiment, when calculating the harmonic distortion value of the initial electric energy sampling data by combining the fundamental waveform characteristics and the Nth harmonic waveform characteristics, it is first necessary to clarify the definition of the harmonic distortion value. The harmonic distortion value is usually expressed as total harmonic distortion (THD), and the calculation formula is:

[0113] ,

[0114] In the formula: It is The amplitude of the subharmonic waveform characteristics, It is the amplitude of the fundamental waveform feature. In specific implementation, the fast Fourier transform (FFT) is used to extract the amplitude of each harmonic and the amplitude of the fundamental wave, and the harmonic distortion value is calculated by substituting it into the formula. This value reflects the proportion of the harmonic component to the fundamental component. By calculating the harmonic distortion value, the influence of harmonics in electric energy can be understood, thus providing a basis for subsequent load classification.

[0115] The key to the next step is to calculate the total harmonic amplitude of the Nth harmonic waveform characteristics. By calculating the total harmonic amplitude, the total impact of harmonics on electric energy can be quantified, thus providing more comprehensive information for load classification. The influence of weighting coefficients and phase angles can be considered in the calculation process. Assume that The amplitude of the subharmonic waveform characteristic is , the phase angle is , through the preset weighting coefficient To emphasize the influence of different harmonics, the total harmonic amplitude is calculated as:

[0116] .

[0117] The characteristics of linear loads are that the current is proportional to the voltage and there are fewer harmonic components. In specific implementation, a distortion value threshold is set, such as 5%. If the calculated harmonic distortion value is less than 5% and the total harmonic amplitude is less than the fundamental amplitude, the load can be determined to be a linear load. Further, the linear load is classified as a pure resistive load, an inductive load, or a capacitive load based on the power factor characteristics. The power factor characteristics include the relationship between active power, reactive power, and apparent power. The power factor of a pure resistive load is close to 1, the power factor of an inductive load lags behind 1, and the power factor of a capacitive load is ahead of 1. In specific implementation, the power factor of the load is calculated. If the power factor is close to 1, it is classified as a pure resistive load; if the power factor lags, it is classified as an inductive load; if the power factor is ahead, it is classified as a capacitive load. For example, through measurement and calculation, if the power factor of an electrical appliance is 0.95 and lags, it can be classified as an inductive load. This can further refine the load classification and improve the accuracy of power management.

[0118] If the harmonic distortion value is greater than or equal to the distortion value threshold and the total harmonic amplitude is greater than or equal to the fundamental amplitude of the fundamental waveform feature, the currently running load is classified as a nonlinear load. The characteristic of a nonlinear load is that the current and voltage are not proportional, and a large number of harmonics are generated. In specific implementation, if the calculated harmonic distortion value is greater than or equal to 5%, and the total harmonic amplitude is greater than or equal to the fundamental amplitude, the load can be determined to be a nonlinear load. If the harmonic distortion value is less than the distortion value threshold and the total harmonic amplitude is greater than or equal to the fundamental amplitude of the fundamental waveform feature, or if the harmonic distortion value is greater than or equal to the distortion value threshold and the total harmonic amplitude is less than the fundamental amplitude of the fundamental waveform feature, the currently running load is classified as a neutral load. The characteristic of a neutral load is that the influence of the harmonic component and the fundamental component is relatively balanced.

[0119] Finally, count the number of load types in each load classification, and integrate all load classifications and the corresponding number of load types into the load classification result. In specific implementation, count the number of each type of load (such as linear load, nonlinear load, neutral load), and record the specific types of each type of load (such as pure resistive load, inductive load, capacitive load). Integrate these statistical results into a complete load classification report. For example, through the measurement and classification of multiple electrical appliances, it is counted that there are 10 pure resistive loads, 5 inductive loads, 3 capacitive loads, 8 nonlinear loads, and 4 neutral loads in the linear load. This detailed statistics and classification facilitates the subsequent retrieval of compensation parameters and the calculation of phase shift correction.

[0120] In this embodiment, the electric energy meter measurement method of the smart electric energy meter may further include the following steps:

[0121] The initial electric energy sampling data is stored as historical sampling data in a preset local storage space, a load type label is added to the waveform feature according to the load classification result, and the waveform feature is stored as a historical waveform feature in the local storage space;

[0122] Cache the load classification results corresponding to the initial electric energy sampling data into a preset cache space;

[0123] The circuit to be measured is sampled at a preset sampling interval to obtain real-time electric energy sampling data;

[0124] Each time the real-time electric energy sampling data is successfully sampled, the real-time electric energy sampling data is stored in the local storage space, and the classification result updating step is performed using the real-time electric energy sampling data to update the load classification result in the cache space.

[0125] In this embodiment, the sampled electric energy parameters such as voltage and current are recorded and saved in the local storage space preset in the storage module of the smart electric energy meter. When storing, a certain format, such as timestamp, voltage value, current value, etc., can be used for subsequent processing and analysis. The purpose of this is to retain all historical data for long-term analysis and trend prediction. According to the load classification results, a load type label is added to the waveform feature. For example, a "load type" field can be added to each record in the database. The advantage of this is that different types of loads can be quickly identified and distinguished in subsequent data analysis. The waveform features are stored in the local storage space as historical waveform features. The waveform features may include parameters such as instantaneous values, mean values, peak values, and frequencies of voltage and current. When storing, these feature data can be saved together with the corresponding timestamp and load type label to form a complete record.

[0126] The load classification results corresponding to the initial electric energy sampling data are cached in the preset cache space in the storage module of the smart electric energy meter. The cache space can be an area in the storage module for quickly accessing the most recent classification results. In the specific implementation, a key-value pair can be used, with the timestamp as the key and the classification result as the value stored in the cache. In this way, the most recent classification results can be quickly obtained in the subsequent real-time data processing process, thereby improving processing efficiency. The smart electric energy meter samples the circuit to be measured at a preset sampling interval to obtain real-time electric energy sampling data, and the sampling interval can be set according to actual needs. Each time the real-time electric energy sampling data is successfully sampled, the real-time sampled voltage, current and other parameters can be saved in the storage module together with the timestamp. The storage format can be consistent with the historical data for subsequent processing and analysis.

[0127] A classification result update step is performed using real-time electric energy sampling data to update the load classification results in the cache space. In specific implementation, the real-time sampled data can be classified using the classification method described in the aforementioned implementation method, or the real-time sampled data can be input into the classification algorithm to obtain the current load classification result. The classification algorithm can be a model based on machine learning, such as a decision tree, a support vector machine, or a neural network. After obtaining the classification result, it is updated to the cache space. This ensures that the classification results in the cache space are always up to date and can accurately reflect the current load situation.

[0128] In this embodiment, the classification result updating step includes the following steps:

[0129] The real-time waveform characteristics of real-time electric energy sampling data are obtained by using the fast Fourier transform algorithm;

[0130] Extract the target historical waveform feature whose storage timestamp is closest to the current time from the local storage space;

[0131] By comparing the characteristic gap between the real-time waveform characteristics and the target historical waveform characteristics, it is determined whether there is a load start-stop action in the circuit to be measured at the current moment;

[0132] If there is no load start-stop action in the circuit to be measured at the current moment, the load classification result at the current moment is maintained unchanged, and the classification result updating step is terminated at the same time;

[0133] If there is a load start-stop action in the circuit to be measured at the current moment, the waveform separation technology is used to separate the current load waveform feature from the real-time waveform feature based on the historical waveform feature. The current load waveform feature is the waveform feature of the target load that is performing the load start-stop action at the current moment;

[0134] The current load power factor characteristic of the target load is calculated by the current load waveform characteristic;

[0135] The load classification of the target load is completed by combining the current load waveform characteristics and the current load power factor characteristics, a load type label is added to the current load waveform characteristics according to the classification result of the target load, and the current load waveform characteristics are stored as historical waveform characteristics in the local storage space;

[0136] The load classification result in the cache space is updated based on the classification result of the target load, and the classification result updating step is ended at the same time.

[0137] In this embodiment, the sampled real-time electric energy sampling data, that is, the real-time voltage and current data, is first preprocessed to remove DC offset and noise, and then the FFT algorithm is applied to calculate the amplitude and phase of each frequency component. Assuming that the sampling frequency is 1kHz and the number of sampling points is 1024, FFT can convert the time domain signal into a frequency domain signal to obtain frequency components from 0Hz to 500Hz. By analyzing the amplitude and phase of these frequency components, the characteristics of the real-time waveform, such as the amplitude and phase of the fundamental wave and each harmonic, can be obtained. Then all the stored historical waveform features can be read from the local storage space and sorted according to the timestamp. According to the sorting result, the waveform feature corresponding to the timestamp closest to the current moment is found as the target historical waveform feature. The purpose of this is to find a historical waveform feature with similar conditions to the current moment for subsequent comparison and analysis.

[0138] By comparing the feature gap between the real-time waveform feature and the target historical waveform feature, it is determined whether there is a load start-stop action in the circuit to be measured at the current moment. The feature gap can be achieved by calculating the difference between the real-time waveform feature and the target historical waveform feature in each frequency component, which can be calculated using the Euclidean distance formula. If the gap exceeds the preset threshold, it is considered that there is a load start-stop action, that is, in the circuit to be measured, there is a load connected to the circuit or cut out of the circuit at the current moment. If there is no load start-stop action in the circuit to be measured at the current moment, the load classification result at the current moment is maintained unchanged, and the classification result update step is terminated at the same time.

[0139] If there is a load start-stop action in the circuit to be measured at the current moment, the waveform separation technology is used to separate the current load waveform feature from the real-time waveform feature based on the historical waveform feature. The waveform separation technology can use a blind source separation (BSS) algorithm, such as independent component analysis (ICA), to decompose the mixed signal into independent source signals. In specific implementation, the real-time waveform feature can be used as input, and each independent load waveform feature can be separated by the ICA algorithm. Assuming that the real-time waveform feature contains the signals of two loads, the independent waveform features of the two loads can be separated by ICA. Through the separated waveform features, the load that is starting and stopping at the current moment can be identified. The current load power factor feature of the target load is calculated by the current load waveform feature. The load classification of the target load is completed by combining the current load waveform feature and the current load power factor feature. In specific implementation, the current load waveform feature and the power factor feature can be input into the classification algorithm to obtain the classification result of the load. According to the classification result, a load type label is added to the current load waveform feature, and the current load waveform feature is stored as a historical waveform feature in the local storage space to replace the previous classification result. This ensures that the classification results in the cache are always up-to-date and accurately reflect the current load conditions.

[0140] In this embodiment, step S105 specifically includes the following steps:

[0141] Extract the load classification result at the current moment from the cache space;

[0142] Based on the load type label in the load classification result at the current moment, the target waveform feature corresponding to the label is retrieved from the local storage space;

[0143] Calculate the power contribution of each target waveform feature in the waveform feature at the current moment respectively;

[0144] Different contribution weights are assigned to each target waveform feature according to the power contribution;

[0145] The phase shift correction parameters are calculated based on the phase shift compensation parameters corresponding to all target waveform features and the corresponding contribution weights.

[0146] In this embodiment, the load classification result at the current moment is extracted from the cache space, and then the target waveform feature corresponding to the label is retrieved from the local storage space based on the load type label in the load classification result at the current moment. For any target waveform feature, the contribution of active power, reactive power and apparent power needs to be considered separately when calculating the power contribution. The total power parameter is the sum of all load powers, which respectively represent the actual consumption of electric energy, reactive power (used to establish an electric field or magnetic field) and apparent power (the total amount of active and reactive power).

[0147] Specifically, for each target waveform feature, its power contribution at the current moment is calculated step by step. First, the active power contribution is calculated, that is, the proportion of the active power of the target waveform feature to the total active power. Then the reactive power contribution is calculated, that is, the proportion of the reactive power of the target waveform feature to the total reactive power. Next, the apparent power contribution is calculated, that is, the proportion of the apparent power of the target waveform feature to the total apparent power. In addition to the power parameters, the harmonic distortion value and the voltage and current phase difference can also be considered. The harmonic distortion value reflects the content of harmonics in the waveform, and a higher harmonic distortion value indicates that the waveform distortion is larger. When calculating the contribution of the harmonic distortion value of the target waveform feature, its harmonic distortion value can be added to 1 and then the reciprocal is taken, so that the larger the harmonic distortion value, the smaller the contribution. Finally, the phase difference between voltage and current is considered. The smaller the phase difference, the higher the power factor, which means that the energy utilization efficiency is higher. The contribution of the phase difference can be reflected by calculating its cosine value.

[0148] After calculating all the individual contributions, they need to be combined. To do this, a weight can be assigned to each contribution, which reflects the relative importance of each factor in the overall contribution. Finally, each individual contribution is multiplied by its corresponding weight, and then all the results are added. Through the above steps, the comprehensive power contribution of each target waveform feature at the current moment can be obtained. This comprehensive contribution not only takes into account the basic power parameters, but also combines the power quality parameters, making the calculation results more comprehensive and accurate. Finally, these comprehensive contributions can be used for subsequent phase shift correction and other power quality analysis.

[0149] Different contribution weights are assigned to each target waveform feature according to the power contribution. The contribution weight is assigned based on the power contribution and is used to measure the importance of each target waveform feature in the total power. In specific implementation, the power contribution can be directly used as the contribution weight, or adjusted according to certain rules. Then the phase shift correction parameter can be calculated based on the phase shift compensation parameters corresponding to all target waveform features and the corresponding contribution weights. The phase shift compensation parameter refers to the parameter set in the process of electric energy sampling to correct the phase difference between the voltage and current signals. In this embodiment, the waveform feature at the current moment can be the waveform feature of the initial electric energy sampling data, or it can be the waveform feature corresponding to the real-time electric energy sampling data at any time. This means that whether it is the data just sampled or the real-time data after a certain period of time, it can be processed as the waveform feature at the current moment. This ensures that accurate waveform feature analysis and correction can be performed at different time points. Through the above steps, accurate analysis and correction of real-time electric energy data can be achieved.

[0150] In this embodiment, the calculation formula of the phase shift correction parameter is as follows:

[0151] ,

[0152] Where: represents the phase shift correction parameter at the current moment, Indicates The phase shift compensation parameters of the target waveform characteristics, Indicates The contribution weight of each target waveform feature, The number of features representing the target waveform characteristics at the current moment.

[0153] In this embodiment, after the smart electric energy meter outputs the electric energy metering data in step S106, the following steps are also included:

[0154] Extract all historical sampling data from local storage space;

[0155] Combine all historical sampling data and use the data prediction algorithm to predict the initial predicted measurement data at the current moment;

[0156] Using preset forecast measurement adjustment parameters to adjust the initial forecast measurement data to target forecast measurement data;

[0157] Calculate the data difference between the electric energy metering data and the target predicted metering data;

[0158] Determine the phase shift compensation parameters to be adjusted corresponding to all target waveform features in the correction parameter database at the current moment;

[0159] Based on the data difference and according to the contribution weight, each phase shift compensation parameter to be adjusted is adjusted in the correction parameter database.

[0160] In this embodiment, the process of extracting all historical sampled data from the local storage space involves reading data files or database records on the storage device. These data typically include detailed information such as timestamps, sampled values, voltage, current, frequency, etc. When extracting these data, it is necessary to ensure the integrity and accuracy of the data. Programming languages ​​(such as Python, SQL, etc.) can be used to write scripts to automate the data extraction process. For example, SQL queries can be used to retrieve all historical sampled records from the database, or file I / O operations can be used to read data stored in local files. The extracted data should be arranged in chronological order for subsequent analysis and prediction.

[0161] Combine all historical sampling data and predict the initial predicted metering data at the current moment through the data prediction algorithm. This step requires the use of data prediction algorithms, such as time series analysis, machine learning or deep learning algorithms. Common time series algorithms include ARIMA, Exponential Smoothing, etc., while machine learning algorithms such as random forests, support vector machines, and deep learning algorithms such as LSTM (long short-term memory network) can also be used for prediction. First, the historical sampling data is divided into a training set and a validation set. The training set is used to train the model, and the validation set is used to evaluate the model performance. After selecting a suitable model, the trained model is used to predict the current moment to generate initial predicted metering data. This predicted value represents the expected electric energy metering value based on historical data and trends at the current moment. Since the process of using machine learning or deep learning algorithms for prediction requires a large amount of computing power, it is not practical to run on smart electric energy meters. Therefore, in this embodiment, a communication connection can be established between the communication device of the smart electric energy meter and the cloud server, and the smart electric energy meter sends the historical sampling data to the cloud server. After the cloud server predicts the initial predicted metering data at the current moment through the data prediction algorithm, the initial predicted metering data is transmitted back to the smart electric energy meter.

[0162] In another embodiment, the prediction process of the initial predicted metering data can also be implemented through the data prediction module in the smart electric energy meter. Specifically, all historical sampling data are input into the data prediction module, and the initial predicted metering data at the current moment is calculated through the prediction methods such as the exponential smoothing algorithm and regression analysis algorithm pre-set in the data prediction module.

[0163] In this embodiment, the initial predicted metering data is adjusted to the target predicted metering data using the preset predicted metering adjustment parameters, and then the data difference between the electric energy metering data and the target predicted metering data is calculated. The electric energy metering data is the value actually measured, and the target predicted metering data is the adjusted predicted value. The difference between the two reflects the error between the prediction and the actual. The formula for calculating the difference is: data difference = actual electric energy metering data - target predicted metering data. This difference can be used to evaluate the accuracy of the prediction model and to adjust the phase shift compensation parameters in subsequent steps. Then, the phase shift compensation parameters to be adjusted corresponding to all target waveform features in the correction parameter database at the current moment are determined. The specific retrieval process can use a database query statement to extract the corresponding compensation parameters from the database according to the matching conditions of the waveform features.

[0164] Based on the data difference and according to the contribution weight, each phase shift compensation parameter to be adjusted is adjusted in the correction parameter database. The data difference reflects the error between the prediction and the actual, while the contribution weight indicates the contribution of each waveform feature to the total error. According to the contribution weight, the total error can be distributed to each waveform feature, and the corresponding phase shift compensation parameter can be adjusted accordingly. The adjustment formula can be expressed as: new phase shift compensation parameter = old phase shift compensation parameter + (data difference × contribution weight). In this way, the phase shift compensation parameters of each waveform feature can be gradually corrected, so that the prediction accuracy of the system is continuously improved. The effect of this step is to reduce the prediction error and improve the accuracy and reliability of electric energy metering.

[0165] In one implementation manner, the step of adjusting each phase shift compensation parameter to be adjusted in the correction parameter database based on the data difference and according to the contribution weight specifically includes the following steps:

[0166] The process of adjusting each phase shift compensation parameter to be adjusted in the correction parameter database based on the data difference and according to the contribution weight can be achieved by building a common phase shift compensation parameter adjustment model through a cloud server. First, the smart energy meter uploads the data difference, contribution weight and corresponding phase shift compensation parameter to be adjusted calculated locally to the cloud server. The upload process can ensure the security and integrity of data transmission through a secure communication protocol (such as HTTPS). The uploaded data includes the specific difference of each waveform feature, the corresponding contribution weight and the currently used phase shift compensation parameter. After receiving the data from multiple smart energy meters, the cloud server inputs the data into the phase shift compensation parameter adjustment model. This model can be an algorithm model based on machine learning or deep learning, which can calculate new phase shift compensation parameters based on the input data difference and contribution weight. After the phase shift compensation parameter adjustment result is output by the phase shift compensation parameter adjustment model, the cloud server returns the new phase shift compensation parameter to each smart energy meter. After receiving the new phase shift compensation parameter, the smart energy meter updates the local phase shift compensation parameter database. The updated phase shift compensation parameter will be used for subsequent energy metering correction, making the new prediction result more accurate. Through collaborative learning of multiple smart energy meters, the accuracy and adaptability of the phase shift compensation parameter adjustment model can be effectively improved. The data uploaded by each smart energy meter reflects the error situation under different environments and conditions. By integrating this data, the cloud server can build a more comprehensive and accurate adjustment model. The effect of collaborative learning is to improve the accuracy of overall energy metering, reduce errors, and improve energy utilization efficiency.

[0167] The present invention also discloses an electric meter measurement system for a smart electric energy meter, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the electric meter measurement method for the smart electric energy meter as described in any one of the above embodiments is implemented.

[0168] Among them, the processor can adopt a central processing unit (CPU). Of course, according to actual usage, other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. can also be adopted. The general-purpose processor can adopt a microprocessor or any conventional processor, etc., and this application does not impose any restrictions on this.

[0169] Among them, the memory can be an internal storage unit of a computer device, such as a hard disk or memory of a computer device, or an external storage device of a computer device, such as a plug-in hard disk, a smart memory card (SMC), a secure digital card (SD) or a flash memory card (FC) equipped on the computer device, and the memory can also be a combination of an internal storage unit and an external storage device of a computer device. The memory is used to store computer programs and other programs and data required by the computer device. The memory can also be used to temporarily store data that has been output or is to be output, and this application does not impose any restrictions on this.

[0170] The present invention also discloses a smart electric energy meter, referring to Figure 2 , smart energy meters specifically include:

[0171] A data sampling module, used to obtain initial electric energy sampling data of the circuit to be measured;

[0172] A feature extraction module is used to extract waveform features and power factor features of initial electric energy sampling data;

[0173] A feature classification module is used to classify the current operating load in the circuit to be measured by combining the waveform features and the power factor features to obtain a load classification result;

[0174] A data storage module, used for storing a preset calibration parameter database;

[0175] A parameter extraction module, used for extracting corresponding multiple phase shift compensation parameters from a correction parameter database according to the load classification result;

[0176] A correction parameter calculation module, used for calculating a phase shift correction parameter based on a load classification result and through a plurality of phase shift compensation parameters;

[0177] The metering output module is used to calculate the electric energy metering data by combining the initial electric energy sampling data and the phase shift correction parameter, and output the electric energy metering data through the intelligent electric energy meter.

[0178] In one embodiment, the feature extraction module includes:

[0179] A fundamental wave extraction unit, used for extracting fundamental wave waveform characteristics from initial electric energy sampling data using a fast Fourier transform algorithm;

[0180] A harmonic pre-calculation unit, used to determine the harmonic calculation order according to the maximum amplitude of the fundamental wave in the fundamental wave waveform characteristics;

[0181] A harmonic extraction unit, used to extract Nth harmonic waveform features from the initial electric energy sampling data based on harmonic calculation order and using a fast Fourier transform algorithm;

[0182] A power factor characteristic pre-calculation unit is used to extract Nth harmonic waveform characteristics from the initial electric energy sampling data based on harmonic calculation times and using a fast Fourier transform algorithm;

[0183] The power factor feature extraction unit is used to calculate the power factor feature of the initial electric energy sampling data by combining the first power factor feature and the second power factor feature.

[0184] In one embodiment, the feature classification module includes:

[0185] A distortion calculation unit, used to calculate the harmonic distortion value of the initial electric energy sampling data by combining the fundamental waveform characteristics and the Nth harmonic waveform characteristics;

[0186] An amplitude calculation unit is used to obtain the total harmonic amplitude of the Nth harmonic waveform characteristics by statistical calculation;

[0187] A first classification unit is used to classify the current running load as a linear load when the harmonic distortion value is less than the distortion value threshold and the total harmonic amplitude is less than the fundamental amplitude of the fundamental waveform feature;

[0188] A linear load classification unit for classifying a linear load into a purely resistive load, an inductive load, or a capacitive load based on a power factor characteristic;

[0189] A second classification unit is used to classify the current operating load as a nonlinear load when the harmonic distortion value is greater than or equal to the distortion value threshold and the total harmonic amplitude is greater than or equal to the fundamental amplitude of the fundamental waveform feature;

[0190] a third classification unit, for classifying the current operating load as a neutral load when the harmonic distortion value is less than the distortion value threshold and the total harmonic amplitude is greater than or equal to the fundamental amplitude of the fundamental waveform feature, or when the harmonic distortion value is greater than or equal to the distortion value threshold and the total harmonic amplitude is less than the fundamental amplitude of the fundamental waveform feature;

[0191] The classification result generating unit is used to count the number of load types of each load classification respectively, and integrate all load classifications and the corresponding number of load types into a load classification result.

[0192] In one embodiment, the data storage module is also used to store the initial electric energy sampling data as historical sampling data in a preset local storage space, add a load type label to the waveform feature according to the load classification result, and store the waveform feature as a historical waveform feature in the local storage space; cache the load classification result corresponding to the initial electric energy sampling data in a preset cache space; when the data sampling module samples the circuit to be measured at a preset sampling interval and successfully samples real-time electric energy sampling data once, the data storage module is also used to store the real-time electric energy sampling data in the local storage space.

[0193] In one embodiment, Figure 2 As shown, the meter measurement system of the smart electric energy meter also includes a classification update module, wherein:

[0194] The classification update module is used to perform a classification result update step using the real-time power sampling data to update the load classification result in the cache space when the data sampling module samples the circuit to be measured at a preset sampling interval and successfully samples real-time power sampling data.

[0195] In one embodiment, the classification update module includes:

[0196] A real-time feature extraction unit, used to obtain real-time waveform features of real-time electric energy sampling data using a fast Fourier transform algorithm;

[0197] A historical feature extraction unit, used to extract the target historical waveform feature whose storage timestamp is closest to the current time from the local storage space;

[0198] A load start-stop judgment unit is used to judge whether there is a load start-stop action in the circuit to be measured at the current moment by comparing the characteristic difference between the real-time waveform characteristic and the target historical waveform characteristic;

[0199] A waveform separation unit, when the load start-stop judgment unit judges that there is no load start-stop action in the circuit to be measured at the current moment, is used to maintain the load classification result at the current moment unchanged; when the load start-stop judgment unit judges that there is a load start-stop action in the circuit to be measured at the current moment, is used to separate the current load waveform feature from the real-time waveform feature based on the historical waveform feature by using the waveform separation technology, and the current load waveform feature is the waveform feature of the target load that is performing the load start-stop action at the current moment;

[0200] A load power factor calculation unit, used to calculate the current load power factor characteristics of the target load through the current load waveform characteristics;

[0201] A load classification storage unit, used to complete the load classification of the target load in combination with the current load waveform characteristics and the current load power factor characteristics, add a load type label to the current load waveform characteristics according to the classification result of the target load, and store the current load waveform characteristics as historical waveform characteristics in the local storage space;

[0202] The load classification updating unit is used to update the load classification result in the cache space based on the classification result of the target load, and simultaneously terminate the current classification result updating step.

[0203] In one embodiment, the correction parameter calculation module includes:

[0204] A classification result extraction unit, used to extract the load classification result at the current moment from the cache space;

[0205] A waveform retrieving unit, used to retrieve a target waveform feature corresponding to the label from a local storage space based on the load type label in the load classification result at the current moment;

[0206] A contribution calculation unit, used to calculate the power contribution of each target waveform feature in the waveform feature at the current moment;

[0207] A weight allocation unit, used to allocate different contribution weights to each target waveform feature according to the power contribution;

[0208] The correction parameter calculation unit is used to calculate the phase shift correction parameter based on the phase shift compensation parameters corresponding to all target waveform features and the corresponding contribution weights.

[0209] In this embodiment, the calculation formula of the phase shift correction parameter is as follows:

[0210] ,

[0211] Where: represents the phase shift correction parameter at the current moment, Indicates The phase shift compensation parameters of the target waveform characteristics, Indicates The contribution weight of each target waveform feature, The number of features representing the target waveform characteristics at the current moment.

[0212] In one embodiment, Figure 2 As shown, the meter measurement system of the smart electric energy meter also includes a parameter adjustment module, which specifically includes:

[0213] A historical data extraction unit, used to extract all historical sampling data from a local storage space;

[0214] The first prediction unit is used to combine all historical sampling data and predict the initial predicted measurement data at the current moment through a data prediction algorithm;

[0215] A second prediction unit, configured to adjust the initial predicted measurement data to target predicted measurement data using a preset predicted measurement adjustment parameter;

[0216] A data difference calculation unit, used for calculating the data difference between the electric energy metering data and the target predicted metering data;

[0217] A parameter selection unit, used to determine the phase shift compensation parameters to be adjusted corresponding to all target waveform features in the correction parameter database at the current moment;

[0218] The parameter adjustment unit is used to adjust each phase shift compensation parameter to be adjusted in the correction parameter database based on the data difference and according to the contribution weight.

[0219] A person skilled in the art should understand that the discussion of any of the above embodiments is merely illustrative and is not intended to imply that the scope of protection of the present application is limited to these examples. In line with the concept of the present application, the technical features in the above embodiments or different embodiments may be combined, the steps may be implemented in any order, and there are many other variations of different aspects of one or more embodiments of the present application as above, which are not provided in detail for the sake of simplicity.

[0220] One or more embodiments of the present application are intended to cover all such substitutions, modifications and variations that fall within the broad scope of the present application. Therefore, any omissions, modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of one or more embodiments of the present application should be included in the protection scope of the present application.

Claims

1. A method for measuring electric energy using a smart electric energy meter, characterized in that: Applied to smart energy meters, including the following steps: Obtaining initial electric energy sampling data of the circuit to be measured; Extracting waveform characteristics and power factor characteristics of the initial electric energy sampling data; Classifying the current operating load in the circuit to be measured in combination with the waveform feature and the power factor feature to obtain a load classification result, wherein the load classification types in the load classification result include linear load and nonlinear load; Extracting corresponding multiple phase shift compensation parameters from a preset correction parameter database according to the load classification result; Obtaining a phase shift correction parameter based on the load classification result and by calculating a plurality of the phase shift compensation parameters; The electric energy metering data is calculated by combining the initial electric energy sampling data and the phase shift correction parameter, and the electric energy metering data is outputted through the smart electric energy meter.

2. The electric energy meter measurement method of the smart electric energy meter according to claim 1, characterized in that: The step of extracting the waveform characteristics and power factor characteristics of the initial electric energy sampling data comprises the following steps: Extracting fundamental waveform features from the initial electric energy sampling data using a fast Fourier transform algorithm; Determining the harmonic calculation order according to the maximum amplitude of the fundamental wave in the fundamental wave waveform characteristics; Extracting Nth harmonic waveform features from the initial electric energy sampling data based on the harmonic calculation order and using the fast Fourier transform algorithm; A first power factor characteristic is calculated by the fundamental waveform characteristic, and a second power factor characteristic is calculated by the Nth harmonic waveform characteristic; The power factor characteristic of the initial electric energy sampling data is calculated by combining the first power factor characteristic and the second power factor characteristic.

3. The electric meter measurement method of the smart electric energy meter according to claim 2, characterized in that: The step of classifying the current operating load in the circuit to be measured by combining the waveform feature and the power factor feature to obtain a load classification result comprises the following steps: The harmonic distortion value of the initial electric energy sampling data is calculated by combining the fundamental wave waveform characteristics and the Nth harmonic waveform characteristics; Statistically calculating and obtaining the total harmonic amplitude of the Nth harmonic waveform characteristics; If the harmonic distortion value is less than a distortion value threshold and the total harmonic amplitude is less than the fundamental amplitude of the fundamental waveform feature, classifying the current operating load as a linear load; classifying the linear load as a purely resistive load, an inductive load, or a capacitive load based on the power factor characteristic; If the harmonic distortion value is greater than or equal to the distortion value threshold and the total harmonic amplitude is greater than or equal to the fundamental amplitude of the fundamental waveform feature, the currently operating load is classified as a nonlinear load; If the harmonic distortion value is less than the distortion value threshold and the total harmonic amplitude is greater than or equal to the fundamental amplitude of the fundamental waveform feature; or, If the harmonic distortion value is greater than or equal to the distortion value threshold and the total harmonic amplitude is less than the fundamental amplitude of the fundamental waveform feature, classifying the current operating load as a neutral load; The number of load types of each load classification is counted respectively, and all the load classifications and the corresponding numbers of load types are integrated into a load classification result.

4. The electric meter measurement method of the smart electric energy meter according to claim 3, characterized in that: The method further comprises the steps of: The initial electric energy sampling data is stored as historical sampling data in a preset local storage space, a load type label is added to the waveform feature according to the load classification result, and the waveform feature is stored as a historical waveform feature in the local storage space; Cache the load classification result corresponding to the initial electric energy sampling data into a preset cache space; Sampling the circuit to be measured at a preset sampling interval to obtain real-time electric energy sampling data; Each time the real-time electric energy sampling data is successfully sampled, the real-time electric energy sampling data is stored in the local storage space, and a classification result updating step is performed using the real-time electric energy sampling data to update the load classification result in the cache space.

5. The electric meter measurement method of the smart electric energy meter according to claim 4, characterized in that: The classification result updating step comprises the following steps: Using the fast Fourier transform algorithm to obtain the real-time waveform characteristics of the real-time electric energy sampling data; Extracting the target historical waveform feature whose storage timestamp is closest to the current time from the local storage space; By comparing the characteristic difference between the real-time waveform characteristic and the target historical waveform characteristic, it is determined whether there is a load start-stop action in the circuit to be measured at the current moment; If the load start-stop action does not exist in the circuit to be measured at the current moment, the load classification result at the current moment is maintained unchanged, and the classification result updating step is terminated at the same time; If the load start-stop action exists in the circuit to be measured at the current moment, a waveform separation technology is used to separate the current load waveform feature from the real-time waveform feature based on the historical waveform feature, and the current load waveform feature is the waveform feature of the target load that performs the load start-stop action at the current moment; Obtaining a current load power factor characteristic of the target load by calculating the current load waveform characteristic; Complete load classification of the target load in combination with the current load waveform feature and the current load power factor feature, add the load type label to the current load waveform feature according to the classification result of the target load, and store the current load waveform feature as the historical waveform feature in the local storage space; The load classification result in the cache space is updated based on the classification result of the target load, and the classification result updating step is ended at the same time.

6. The electric meter measurement method of the smart electric energy meter according to claim 4, characterized in that: The step of calculating the phase shift correction parameter based on the load classification result and through the plurality of phase shift compensation parameters comprises the following steps: Extracting the load classification result at the current moment from the cache space; Retrieving a target waveform feature corresponding to the load type label from the local storage space based on the load type label in the load classification result at the current moment; Calculating the power contribution of each target waveform feature in the waveform feature at the current moment respectively; According to the power contribution, different contribution weights are assigned to each of the target waveform features; The phase shift correction parameter is calculated based on the phase shift compensation parameters corresponding to all the target waveform features and the corresponding contribution weights.

7. The electric meter measurement method of the smart electric energy meter according to claim 6, characterized in that: The calculation formula of the phase shift correction parameter is as follows: ; Where: represents the phase shift correction parameter at the current moment, Indicates the phase shift compensation parameter of the target waveform characteristic, Indicates the contribution weight of each of the target waveform features, Indicates the number of features of the target waveform at the current moment.

8. The electric meter measurement method of the smart electric energy meter according to claim 6, characterized in that: After the electric energy metering data is outputted through the smart electric energy meter, the following steps are also included: Extracting all the historical sampling data from the local storage space; Combining all the historical sampling data and predicting through a data prediction algorithm to obtain the initial predicted metering data at the current moment; Using preset forecast metering adjustment parameters to adjust the initial forecast metering data to target forecast metering data; Calculating and obtaining a data difference between the electric energy metering data and the target predicted metering data; Determine the phase shift compensation parameters to be adjusted corresponding to all the target waveform features in the correction parameter database at the current moment; Based on the data difference and according to the contribution weight, each of the phase shift compensation parameters to be adjusted is respectively adjusted in the correction parameter database.

9. A smart electric energy meter, characterized in that: The smart electric energy meter comprises: A data sampling module, used to obtain initial electric energy sampling data of the circuit to be measured; A feature extraction module, used to extract waveform features and power factor features of the initial electric energy sampling data; A feature classification module, used to classify the current operating load in the circuit to be measured in combination with the waveform feature and the power factor feature to obtain a load classification result; A data storage module, used for storing a preset calibration parameter database; A parameter extraction module, used for extracting a plurality of corresponding phase shift compensation parameters from the correction parameter database according to the load classification result; A correction parameter calculation module, configured to calculate a phase shift correction parameter based on the load classification result and through a plurality of the phase shift compensation parameters; The metering output module is used to calculate the electric energy metering data by combining the initial electric energy sampling data and the phase shift correction parameter, and output the electric energy metering data through the smart electric energy meter.

10. The smart electric energy meter according to claim 9, characterized in that: The feature extraction module comprises: A fundamental wave extraction unit, used to extract fundamental wave waveform features from the initial electric energy sampling data using a fast Fourier transform algorithm; A harmonic pre-calculation unit, used for determining the harmonic calculation order according to the maximum amplitude of the fundamental wave in the fundamental wave waveform characteristics; A harmonic extraction unit, used to extract Nth harmonic waveform features from the initial electric energy sampling data based on the harmonic calculation order and using the fast Fourier transform algorithm; A power factor characteristic pre-calculation unit, used for extracting Nth harmonic waveform characteristics from the initial electric energy sampling data based on the harmonic calculation order and using the fast Fourier transform algorithm; A power factor feature extraction unit is used to calculate the power factor feature of the initial electric energy sampling data by combining a first power factor feature and a second power factor feature, wherein the first power factor feature is calculated by the fundamental waveform feature, and the second power factor feature is calculated by the Nth harmonic waveform feature.