A method and system for analyzing electric energy meter measurement errors based on electric power data acquisition

By measuring and analyzing the input voltage and current signals of the electric energy meter, combined with pitch detection and frequency domain analysis, the measurement error of the electric energy meter is identified and adjusted, which solves the problem of measurement error of the electric energy meter in non-linear loads and long-term operation, and realizes the realization of electric energy Table accuracy and stability optimization and continuous performance monitoring.

CN118151087BActive Publication Date: 2024-08-23江苏西欧电子有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410565234.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-05-09
Publication Date
2024-08-23
Estimated Expiration
2044-05-09

AI Technical Summary

Technical Problem

Existing electric energy meters may cause measurement errors under nonlinear loads and long-term operation, and it is difficult to achieve real-time monitoring and continuous evaluation of electric energy meter performance with existing technology, leading to problems with measurement accuracy and stability.

Method used

By periodically measuring the input voltage and current signals of the electric energy meter, the fundamental tone detection algorithm is used to identify the basic signal frequency and the frequency domain analysis algorithm is used to calculate the harmonic content. The frequency error and load error are combined for comprehensive evaluation, and the calibration parameters are adjusted to optimize the performance of the electric energy meter.

Benefits of technology

It achieves effective identification and analysis of measurement errors of electric energy meters, improves measurement accuracy and stability, can optimize the performance of electric energy meters under different load conditions, and realizes continuous monitoring and evaluation of electric energy meter performance, extending the service life and Reduced maintenance costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118151087B
    Figure CN118151087B
Patent Text Reader

Abstract

The present invention discloses a method and system for analyzing the metering error of an electric energy meter based on electric power data acquisition, and relates to the field of electric variable measurement and analysis. The method comprises the following steps: deploying voltage and current sensors at the input end of the electric energy meter, periodically measuring the input voltage and current to obtain voltage signals and current signals; using a fundamental frequency detection algorithm to identify the basic signal frequency of the voltage signal and the current signal, and analyzing the frequency error of the electric energy meter according to the stability of the basic signal frequency; using a frequency domain analysis algorithm to calculate the harmonic content of the voltage signal and the current signal, and analyzing the load error of the electric energy meter according to the harmonic content; comprehensively evaluating the metering error of the electric energy meter by combining the frequency error and the load error, and adjusting the calibration parameters of the electric energy meter. The present invention can effectively identify and analyze the metering error of the electric energy meter and improve the metering accuracy of the electric energy meter by accurately measuring and analyzing the voltage signal and the current signal at the input end of the electric energy meter.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of electric variable measurement and analysis, and in particular to a method and system for analyzing electric energy meter measurement errors based on electric power data acquisition. Background Art

[0002] In the power system, the energy meter is a key device for measuring and metering energy consumption. With the development of the power industry, the accuracy and stability of the energy meter are increasingly required. The traditional energy meter is mainly based on the principle of electromagnetic induction. The magnetic field is generated by the current coil and the voltage coil to make the aluminum disk rotate, and the amount of energy used is recorded by the mechanical counter. With the development of technology, electronic energy meters have gradually replaced mechanical energy meters. They measure voltage and current through electronic circuits and provide energy data through digital display or remote communication. Electronic energy meters have higher measurement accuracy, better environmental adaptability and stronger data management capabilities.

[0003] Although electronic energy meters have made technological progress, they still face some challenges in practical applications. In particular, the metering accuracy of energy meters may be affected when nonlinear loads and fluctuating power sources are connected. In addition, the performance of energy meters may degrade in long-term operation, resulting in metering errors. Therefore, metering error analysis of energy meters to ensure the accuracy and stability of energy meters under various working conditions remains an important issue in the power industry.

[0004] The disadvantages of the existing technology are mainly reflected in the following aspects: First, the accuracy of electrical variable measurement. Under nonlinear load conditions, the electric energy meter may not be able to accurately measure the electric energy consumption containing harmonics. Due to the presence of harmonics, the electric energy meter may overestimate or underestimate the actual electric energy usage, resulting in measurement errors; second, the long-term stability problem: the electric energy meter may be affected by environmental factors, component aging and other factors in long-term operation, resulting in a decrease in measurement performance. This performance degradation may be manifested as instability of the basic signal frequency or changes in harmonic content, thereby affecting the long-term stability of the electric energy meter; third, there is a lack of effective methods for measuring electrical variables and measuring errors. Existing methods for evaluating and calibrating electric energy meter performance often rely on regular on-site inspections and laboratory tests. These methods are costly, inefficient, and difficult to achieve real-time monitoring and continuous evaluation of electric energy meter performance. Therefore, there is an urgent need for a solution for analyzing electric energy meter measurement errors based on power data acquisition to effectively identify and analyze the metering errors of electric energy meters, improve the metering accuracy of electric energy meters, and optimize the performance of electric energy meters under different load conditions.

[0005] Currently, no effective solution has been proposed for the problems in the related technologies. Summary of the invention

[0006] In response to the problems in the related technology, the present invention proposes a method and system for analyzing the metering errors of electric energy meters based on power data acquisition, which has the advantages of being able to effectively identify and analyze the metering errors of electric energy meters, improve the metering accuracy of electric energy meters, and optimize the performance of electric energy meters under different load conditions, thereby solving the problems in the prior art of high cost, low efficiency, and difficulty in achieving real-time monitoring and continuous evaluation of electric energy meter performance.

[0007] To this end, the specific technical solution adopted by the present invention is as follows:

[0008] According to one aspect of the present invention, a method for analyzing an electric energy meter measurement error based on electric power data collection is provided. The method for analyzing an electric energy meter measurement error based on electric power data collection comprises the following steps:

[0009] S1, periodically measuring the input voltage and input current of the electric energy meter, and performing preprocessing to obtain voltage signals and current signals;

[0010] S2. Using a fundamental frequency detection algorithm to identify the basic signal frequencies of the voltage signal and the current signal, analyzing the frequency error of the electric energy meter according to the stability of the basic signal frequency, and selecting a stable frequency reference point;

[0011] S3. Based on the stable frequency reference point, the harmonic content of the voltage signal and the current signal is calculated using the frequency domain analysis algorithm, and the load error of the electric energy meter is analyzed based on the harmonic content;

[0012] S4. Comprehensively evaluate the metering error of the electric energy meter by combining the frequency error and the load error, and adjust the calibration parameters of the electric energy meter.

[0013] Furthermore, the fundamental signal frequencies of the voltage signal and the current signal are identified by using a fundamental tone detection algorithm, the frequency error of the electric energy meter is analyzed according to the stability of the fundamental signal frequency, and the stable frequency reference point is selected, including the following steps:

[0014] S21, selecting a pitch function and a transformation coefficient according to the frequency components of the voltage signal and the current signal;

[0015] S22, decomposing the voltage signal and the current signal by using the selected pitch function to obtain a high-frequency signal band and a low-frequency signal band;

[0016] S23, reconstructing the low-frequency signal band using the selected transformation coefficients, analyzing the peak sequence of the reconstructed low-frequency signal band and identifying the periodic components to obtain the basic signal frequency;

[0017] S24. Calculate the stability of the basic signal frequency using a statistical method, obtain the frequency error of the electric energy meter, and select a stable frequency reference point.

[0018] Further, selecting the pitch function and the transformation coefficient according to the frequency components of the voltage signal and the current signal includes the following steps:

[0019] S211, judging the frequency component range of the voltage signal and the current signal according to the frequency components of the voltage signal and the current signal and the standard frequency of the power grid;

[0020] S212, based on the judgment result, dividing the voltage signal and the current signal into a low-frequency dividing point and a high-frequency dividing point;

[0021] S213. Select a pitch function and a transform coefficient according to the divided low-frequency dividing point and high-frequency dividing point.

[0022] Further, decomposing the voltage signal and the current signal by using the selected pitch function to obtain the high-frequency signal band and the low-frequency signal band includes the following steps:

[0023] S221, decomposing the voltage signal and the current signal into high-frequency components and low-frequency components by using the selected fundamental pitch function;

[0024] S222, downsampling the decomposed high-frequency component by half to obtain a high-frequency downsampled component, and constructing a high-frequency signal band;

[0025] S223, downsample the decomposed low-frequency component by half to obtain a low-frequency downsampled component, and construct a low-frequency signal band.

[0026] Further, reconstructing the low-frequency signal band using the selected transform coefficients, analyzing the peak sequence of the reconstructed low-frequency signal band and identifying the periodic components, and obtaining the basic signal frequency includes the following steps:

[0027] S231, reconstructing the low-frequency signal band using the selected low-frequency coefficients to obtain a reconstructed low-frequency waveform signal;

[0028] S232, performing peak detection on the reconstructed low-frequency waveform signal to identify a peak sequence;

[0029] S233, analyzing the periodicity of the peak sequence, and calculating the time interval between adjacent peaks to obtain the basic signal frequency.

[0030] Furthermore, using a statistical method to calculate the stability of the basic signal frequency, obtaining the frequency error of the electric energy meter, and selecting a stable frequency reference point includes the following steps:

[0031] S241, performing statistical calculation on the basic signal frequency to obtain statistical indicators;

[0032] S242, evaluating the stability of the basic signal frequency based on statistical indicators to obtain a frequency error of the electric energy meter;

[0033] S243. Select the time point with the highest frequency stability as the stable frequency reference point.

[0034] Further, based on the stable frequency reference point, the harmonic content of the voltage signal and the current signal is calculated using a frequency domain analysis algorithm, and the load error of the electric energy meter is analyzed based on the harmonic content, including the following steps:

[0035] S31, taking the stable frequency reference point as the center, select the frequency domain analysis window;

[0036] S32, performing fast Fourier transform on the voltage signal and the current signal in the frequency domain analysis window to obtain frequency spectra of the voltage signal and the current signal;

[0037] S33, calculating the amplitude and phase of each harmonic in the spectrum to obtain the harmonic content;

[0038] S34. Based on the harmonic content, analyze the load error of the electric energy meter under different load conditions.

[0039] Furthermore, performing fast Fourier transform on the voltage signal and the current signal in the frequency domain analysis window to obtain the frequency spectrum of the voltage signal and the current signal includes the following steps:

[0040] S321, selecting a corresponding sampling frequency based on the range of the frequency domain analysis window;

[0041] S322, sampling the voltage signal and the current signal, and recording the data for a preset time to cover different load conditions;

[0042] S323, performing fast Fourier transform on the sampled signal and performing spectrum analysis, and only displaying the spectrum within the frequency domain analysis window.

[0043] Furthermore, calculating the amplitude and phase of each harmonic in the spectrum to obtain the harmonic content includes the following steps:

[0044] S331, identifying harmonic components in the spectrum, including the fundamental wave and harmonics that are integer multiples of the fundamental wave;

[0045] S332, calculating the amplitude of each harmonic based on the fundamental wave and the harmonics that are integer multiples of the fundamental wave;

[0046] S333. Based on the fundamental wave and the harmonics that are integer multiples of the fundamental wave, the phase of each harmonic is calculated, and the amplitude and phase value of each harmonic calculated are recorded to obtain the harmonic content.

[0047] According to another aspect of the present invention, there is also provided an electric energy meter measurement error analysis system based on electric power data collection, the electric energy meter measurement error analysis system based on electric power data collection comprising:

[0048] The electric variable acquisition module is used to periodically measure the input voltage and input current of the electric energy meter and perform preprocessing to obtain voltage signals and current signals;

[0049] A frequency error analysis module is used to identify the basic signal frequency of the voltage signal and the current signal by using a fundamental frequency detection algorithm, analyze the frequency error of the electric energy meter according to the stability of the basic signal frequency, and select a stable frequency reference point;

[0050] A load error analysis module is used to calculate the harmonic content of the voltage signal and the current signal based on a stable frequency reference point using a frequency domain analysis algorithm, and to analyze the load error of the electric energy meter based on the harmonic content;

[0051] The error comprehensive evaluation module is used to comprehensively evaluate the metering error of the electric energy meter by combining the frequency error and the load error, and adjust the calibration parameters of the electric energy meter;

[0052] Among them, the electric variable acquisition module is connected with the load error analysis module through the frequency error analysis module, and the load error analysis module is connected with the error comprehensive evaluation module.

[0053] Further,.

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

[0055] (1) The present invention can effectively identify and analyze the metering error of the electric energy meter by accurately measuring and analyzing the voltage signal and current signal at the input end of the electric energy meter, and improve the metering accuracy of the electric energy meter by combining the fundamental tone detection algorithm and the frequency domain analysis. At the same time, by analyzing the harmonic content of the voltage signal and the current signal, the load error of the electric energy meter under nonlinear load can be evaluated, thereby facilitating the optimization of the performance of the electric energy meter under different load conditions. In addition, the present invention can also realize continuous monitoring and evaluation of the performance of the electric energy meter, timely discover and solve the problem of metering error of the electric energy meter, and improve the service life and reliability of the electric energy meter.

[0056] (2) The present invention can optimize the performance of the electric energy meter under different load conditions and ensure that the electric energy meter can provide accurate metering results under various load conditions. In actual applications, the electric energy meter will encounter various load conditions, including linear loads and nonlinear loads. Nonlinear loads will generate harmonics, which will affect the metering accuracy of the electric energy meter. The present invention can evaluate the load error of the electric energy meter under nonlinear load by analyzing the harmonic content of voltage signals and current signals. By identifying the main harmonic components that cause the load error, a basis can be provided for the optimization and calibration of the electric energy meter. At the same time, by analyzing the load error of the electric energy meter according to the harmonic content, the metering accuracy of the electric energy meter under different load conditions can be evaluated.

[0057] (3) The present invention can not only evaluate and optimize the metering performance of the electric energy meter under current conditions, but also detect the performance degradation or failure that may occur in the long-term operation of the electric energy meter in a timely manner by continuously monitoring and analyzing the voltage signal and the current signal. When it is monitored that the stability of the basic signal frequency decreases or the harmonic content changes abnormally, this may indicate that the sensor or circuit element inside the electric energy meter is degrading or damaged, so that timely calibration and maintenance can be carried out to prevent these problems from causing greater metering errors and extend the service life of the electric energy meter. In addition, by measuring and analyzing the performance data of the electric energy meter at different time points, the present invention can provide data support for the preventive maintenance of the electric energy meter, reduce service interruptions and maintenance costs caused by equipment failures, improve the long-term stability and reliability of the electric energy meter, and ensure the stable operation of the power grid. BRIEF DESCRIPTION OF THE DRAWINGS

[0058] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0059] Figure 1 It is a flow chart of a method for analyzing electric energy meter measurement errors based on electric power data collection according to an embodiment of the present invention;

[0060] Figure 2 The present invention is a block diagram of a system for analyzing electric energy meter measurement errors based on electric power data collection according to an embodiment of the present invention. DETAILED DESCRIPTION

[0061] To further illustrate each embodiment, the present invention provides drawings, which are part of the disclosure of the present invention and are mainly used to illustrate the embodiments and can be used in conjunction with the relevant descriptions in the specification to explain the operating principles of the embodiments. With reference to these contents, ordinary technicians in the field should be able to understand other possible implementations and advantages of the present invention. The components in the figures are not drawn to scale, and similar component symbols are generally used to represent similar components.

[0062] According to an embodiment of the present invention, a method and system for analyzing electric energy meter measurement errors based on electric power data collection are provided.

[0063] The present invention is further described with reference to the accompanying drawings and specific embodiments. Figure 1 As shown, according to one embodiment of the present invention, a method for analyzing an electric energy meter measurement error based on electric power data collection is provided, and the method for analyzing an electric energy meter measurement error based on electric power data collection comprises the following steps:

[0064] S1, periodically measuring the input voltage and input current of the electric energy meter, and performing preprocessing to obtain voltage signals and current signals;

[0065] Specifically, a voltage sensor is installed at the input end of the electric energy meter (a grid-side access point in this embodiment) to measure the voltage of the grid, and a current sensor is installed to measure the current of the grid, ensuring that the electrical connection between the sensor and the input end of the electric energy meter is correct and there is no phase error; a measurement cycle is set (in this embodiment, the measurement cycle is set to once per second), and a voltage sensor (in this embodiment, the voltage sensor uses a voltage transformer with a rated voltage ratio of 220V:1V) and a current sensor (in this embodiment, the current sensor uses a current transformer with a rated current ratio of 10A:1mA) are used to read the real-time voltage and current values, and an analog-to-digital converter (in this embodiment, an analog-to-digital converter is used to digitize the voltage signal and the current signal at a sampling rate of 1000 times per second) is used to convert the analog signal into a digital signal, remove the noise of the digital signal, and obtain the voltage signal and the current signal.

[0066] S2. Using a fundamental frequency detection algorithm to identify the basic signal frequencies of the voltage signal and the current signal, analyzing the frequency error of the electric energy meter according to the stability of the basic signal frequency, and selecting a stable frequency reference point;

[0067] S3. Based on the stable frequency reference point, the harmonic content of the voltage signal and the current signal is calculated using the frequency domain analysis algorithm, and the load error of the electric energy meter is analyzed based on the harmonic content;

[0068] S4. Comprehensively evaluate the metering error of the electric energy meter by combining the frequency error and the load error, and adjust the calibration parameters of the electric energy meter.

[0069] Specifically, the frequency error obtained in step S2 and the load error obtained in step S3 are integrated by weighted averaging, and the relationship between the frequency error and the load error is analyzed. For example, the weight of the frequency error is 0.6, the weight of the load error is 0.4, the frequency error obtained in step S2 is 0.5%, and the load error obtained in step S3 is 1%. The weighted error is: (0.5%×0.6)+(1.0%×0.4), and the weighted error is calculated to be 0.7%. According to the weighted error, the adjustment amount of the calibration parameter of the electric energy meter is determined. For example, if the standard error of the electric energy meter is 0.2%, the adjustment amount is: 0.7%-0.2% (weighted error−standard error), and the adjustment amount is calculated to be 0.5%. The parameters of the electric energy meter are calibrated according to the adjustment amount, and after calibration, the metering error analysis is re-performed to verify the calibration effect.

[0070] In one embodiment, the fundamental signal frequencies of the voltage signal and the current signal are identified by using a fundamental frequency detection algorithm, the frequency error of the electric energy meter is analyzed according to the stability of the fundamental signal frequency, and the stable frequency reference point is selected, including the following steps:

[0071] S21, selecting a pitch function and a transformation coefficient according to the frequency components of the voltage signal and the current signal;

[0072] S22, decomposing the voltage signal and the current signal by using the selected pitch function to obtain a high-frequency signal band and a low-frequency signal band;

[0073] S23, reconstructing the low-frequency signal band using the selected transformation coefficients, analyzing the peak sequence of the reconstructed low-frequency signal band and identifying the periodic components to obtain the basic signal frequency;

[0074] S24. Calculate the stability of the basic signal frequency using a statistical method, obtain the frequency error of the electric energy meter, and select a stable frequency reference point.

[0075] Specifically, the fundamental frequency detection algorithm in this embodiment adopts the wavelet analysis algorithm. The wavelet analysis algorithm is a time-frequency domain detection method that can simultaneously extract information in the time domain and frequency domain of the signal, and is particularly suitable for multi-scale time-frequency decomposition analysis of the signal. The wavelet function is the core of the wavelet analysis algorithm, including the Haar wavelet function, the Daubechies wavelet function, the Symlet wavelet function and the Mexican hat wavelet, among which: the Haar wavelet function is the simplest wavelet function and is suitable for binary discrete data; the Daubechies wavelet function includes the DbN series, N represents the vanishing moment order of the wavelet, and Db6 (Daubechies 6) in the series provides better time-frequency localization characteristics; the Symlet wavelet function includes the SymN series, which is similar to the DbN series, but the Symlet wavelet function has better symmetry; the Mexican hat wavelet function has two peaks, a center and a negative sidelobe, which is used for instantaneous frequency analysis of the signal; the wavelet function in this embodiment adopts the Daubechies 6 function.

[0076] In one embodiment, selecting the pitch function and the transform coefficient according to the frequency components of the voltage signal and the current signal comprises the following steps:

[0077] S211, judging the frequency component range of the voltage signal and the current signal according to the frequency components of the voltage signal and the current signal and the standard frequency of the power grid;

[0078] S212, based on the judgment result, dividing the voltage signal and the current signal into a low-frequency dividing point and a high-frequency dividing point;

[0079] S213. Select a pitch function and a transform coefficient according to the divided low-frequency dividing point and high-frequency dividing point.

[0080] Specifically, wavelet transform is used to analyze the frequency components of the voltage signal and the current signal, and the frequency component range contained in the voltage signal and the current signal is determined in combination with the standard frequency of the power grid (set to 50 Hz in this embodiment), and a frequency range close to the standard frequency of the power grid is selected (45 Hz to 55 Hz is selected in this embodiment) to divide the low-frequency dividing point, and a frequency range far from the standard frequency of the power grid (above 60 Hz is selected in this embodiment) is selected to divide the high-frequency dividing point, and then the Daubechies6 wavelet function is selected as the fundamental frequency function, and the transformation coefficient (that is, the wavelet order, the wavelet order is selected as 4 in this embodiment) is selected for the subsequent decomposition of the voltage signal and the current signal.

[0081] In one embodiment, decomposing the voltage signal and the current signal using the selected pitch function to obtain a high-frequency signal band and a low-frequency signal band comprises the following steps:

[0082] S221, decomposing the voltage signal and the current signal into high-frequency components and low-frequency components by using the selected fundamental pitch function;

[0083] S222, downsampling the decomposed high-frequency component by half to obtain a high-frequency downsampled component, and constructing a high-frequency signal band;

[0084] S223, downsample the decomposed low-frequency component by half to obtain a low-frequency downsampled component, and construct a low-frequency signal band.

[0085] Specifically, the Daubechies6 wavelet function is used to perform continuous wavelet transform (CWT) on the voltage signal and the current signal to decompose the signal into multiple frequency levels. In this embodiment, a 4th-order transformation coefficient is used. For a voltage signal and a current signal with a period of 1 second, the sampling frequency is 1024 Hz. After decomposition using the 4-layer Daubechies6 wavelet, 5 frequency levels are obtained, including 1 approximate coefficient (low-frequency component) and 4 detail coefficients (high-frequency components); then, each detail coefficient (high-frequency component) is downsampled, and the downsampling rate is set to 2, that is, a sample point is taken every other point (for example, in this embodiment, the length of a high-frequency component is 512, and the length after downsampling is 256), and the 4 downsampled high-frequency components are merged into a multidimensional signal array to obtain a high-frequency signal band; similarly, the approximate coefficient (low-frequency component) is downsampled, and the size is also halved, and the downsampled low-frequency component is used as a separate signal array to obtain a low-frequency signal band.

[0086] In one embodiment, reconstructing the low-frequency signal band using the selected transform coefficients, analyzing the peak sequence of the reconstructed low-frequency signal band and identifying the periodic components to obtain the basic signal frequency includes the following steps:

[0087] S231, reconstructing the low-frequency signal band using the selected low-frequency coefficients to obtain a reconstructed low-frequency waveform signal;

[0088] S232, performing peak detection on the reconstructed low-frequency waveform signal to identify a peak sequence;

[0089] S233, analyzing the periodicity of the peak sequence, and calculating the time interval between adjacent peaks to obtain the basic signal frequency.

[0090] Specifically, the low-frequency subsampling component (low-frequency signal band) obtained in step S223 is used as input, the inverse transform of the Daubechies6 wavelet function is applied, and the 4th-order transform coefficient is used for reconstruction, and the reconstructed low-frequency waveform signal is output, which should reflect the main trend of the original signal, and the threshold of the peak detection is set (in this embodiment, 2 times of the signal standard deviation is taken as the threshold), and the window size of the peak detection is set (in this embodiment, the window size is set to 5 sample points) to avoid the influence of adjacent peaks, identify all peaks in the low-frequency waveform signal, and record their moments and amplitudes; then calculate the time difference between every two adjacent peaks in the peak sequence, ignore the first and last peaks to prevent boundary effects, and obtain the average period by calculating the average of all time intervals, and calculate the basic signal frequency based on the average period. The formula for calculating the basic signal frequency is:

[0091] ;

[0092] In the formula, f Indicates the fundamental signal frequency;

[0093] T Represents the averaging period.

[0094] In one embodiment, using a statistical method to calculate the stability of the basic signal frequency, obtaining the frequency error of the electric energy meter, and selecting a stable frequency reference point includes the following steps:

[0095] S241, performing statistical calculation on the basic signal frequency to obtain statistical indicators;

[0096] S242, evaluating the stability of the basic signal frequency based on statistical indicators to obtain a frequency error of the electric energy meter;

[0097] S243. Select the time point with the highest frequency stability as the stable frequency reference point.

[0098] Specifically, collect the basic signal frequency time series data obtained in step S233 and calculate the mean of the basic signal frequency m and standard deviation s , and calculate the coefficient of variation c v = s / m , and obtain statistical indicators to evaluate the stability of the basic signal frequency (frequency error), that is, the difference between the actual frequency and the standard frequency (50Hz). m The closer to 50Hz, the smaller the system error of the energy meter. If the standard deviation s The smaller the coefficient of variation, the smaller the random error of the electric energy meter. c v The smaller it is, the higher the frequency stability of the electric energy meter is. The formula for evaluating the frequency error is:

[0099] ;

[0100] In the formula, s 1 indicates frequency error;

[0101] m represents the calculated mean of the fundamental signal frequency;

[0102] m 0 indicates the standard frequency.

[0103] Specifically, we then analyze the coefficient of variation c v time series, find the time period with the smallest coefficient of variation, and within the time period with the smallest coefficient of variation, select the time point with the highest frequency stability as the stable frequency reference point (for example, in this embodiment, if the coefficient of variation is the smallest within a certain time period and the frequency is stable between 49.98 Hz and 50.02 Hz, then select a time point within this time period as the stable frequency reference point) for subsequent analysis.

[0104] In one embodiment, based on a stable frequency reference point, the harmonic content of the voltage signal and the current signal is calculated using a frequency domain analysis algorithm, and the load error of the electric energy meter is analyzed based on the harmonic content, including the following steps:

[0105] S31, taking the stable frequency reference point as the center, select the frequency domain analysis window;

[0106] S32, performing fast Fourier transform on the voltage signal and the current signal in the frequency domain analysis window to obtain frequency spectra of the voltage signal and the current signal;

[0107] S33, calculating the amplitude and phase of each harmonic in the spectrum to obtain the harmonic content;

[0108] S34. Based on the harmonic content, analyze the load error of the electric energy meter under different load conditions.

[0109] Specifically, the frequency domain analysis algorithm in this embodiment is a fast Fourier transform algorithm. Fast Fourier transform (FFT) is an efficient algorithm used to calculate discrete Fourier transform (DFT) and inverse transform. It can convert signals from time domain to frequency domain, or from frequency domain to time domain. In frequency domain analysis, the fast Fourier transform algorithm can reveal the amplitude and phase information of different frequency components in the signal, which is crucial for analyzing the performance of the electric energy meter under different load conditions.

[0110] Specifically, a frequency domain analysis window is selected, and a symmetrical frequency band range is selected, with the stable frequency reference point as the center. For example, if the stable frequency reference point is determined to be 50 Hz in step S24, the frequency domain analysis window is selected to be 45 Hz to 55 Hz, and the data of the voltage signal and the current signal are collected, and a fast Fourier transform is performed. The result of the fast Fourier transform will display the spectrum in the frequency domain analysis window, identify the harmonic components in the spectrum, and calculate the amplitude and phase of each harmonic. Then, according to the operating data of the electric energy meter, the load conditions are divided into different categories, including light load, normal load and heavy load. The mean and standard deviation of the harmonic content under each load condition are calculated, and the difference in harmonic content under different load conditions is compared. According to the relationship between the harmonic content and the load, the load error of the electric energy meter under different load conditions is evaluated (the load error under heavy load conditions is taken as an example in this embodiment). The formula for evaluating the load error is:

[0111] ;

[0112] In the formula, s 2 indicates load error;

[0113] A n Indicates n The amplitude of the harmonics (actual amplitude);

[0114] A 0 represents the theoretical amplitude, which is set by the specifications of the energy meter.

[0115] In one embodiment, performing fast Fourier transform on the voltage signal and the current signal in the frequency domain analysis window to obtain the frequency spectrum of the voltage signal and the current signal includes the following steps:

[0116] S321, selecting a corresponding sampling frequency based on the range of the frequency domain analysis window;

[0117] S322, sampling the voltage signal and the current signal, and recording the data for a preset time to cover different load conditions;

[0118] S323, performing fast Fourier transform on the sampled signal and performing spectrum analysis, and only displaying the spectrum within the frequency domain analysis window.

[0119] In one embodiment, calculating the amplitude and phase of each harmonic in the spectrum to obtain the harmonic content includes the following steps:

[0120] S331, identifying harmonic components in the spectrum, including the fundamental wave and harmonics that are integer multiples of the fundamental wave;

[0121] S332, calculating the amplitude of each harmonic based on the fundamental wave and the harmonics that are integer multiples of the fundamental wave;

[0122] S333. Based on the fundamental wave and the harmonics that are integer multiples of the fundamental wave, the phase of each harmonic is calculated, and the amplitude and phase value of each harmonic calculated are recorded to obtain the harmonic content.

[0123] Specifically, the formula for calculating the amplitude of each harmonic is:

[0124] ;

[0125] The formula to calculate the phase of each harmonic is:

[0126] ;

[0127] In the formula, A n Indicates n The amplitude of each harmonic;

[0128] X n Indicates n The real part of the harmonic;

[0129] Y n Indicates n The imaginary part of the harmonic;

[0130] i n Indicates n The phase of the harmonics.

[0131] In order to facilitate the understanding of the above technical solution of the present invention, an electric energy meter with a rated voltage of 220V and a calibrated current of 60A is selected for measurement error analysis in a residential area under the jurisdiction of a municipal power grid company. The electric energy meter is responsible for monitoring the electricity consumption of 20 households in the entire building. The specific description is as follows:

[0132] The present invention is used to perform metering error analysis on the electric energy meter. First, a voltage sensor and a current sensor are deployed at the input end of the electric energy meter to ensure that the electrical connection is correct. Then, the measurement cycle is set to once per second. The voltage signal and the current signal are digitized using an analog-to-digital converter at a sampling rate of at least 1000 times per second. The digitized voltage signal and the current signal are then filtered to remove high-frequency noise and interference. Then, the fundamental frequency detection algorithm is used to identify the basic signal frequency of the voltage signal and the current signal, and the frequency components of the voltage signal and the current signal are analyzed. In combination with the standard frequency of the power grid (50Hz), a low-frequency demarcation point (45-55Hz) and a high-frequency demarcation point (above 60Hz) are divided. The fundamental frequency function and the transformation coefficient are selected to decompose the voltage signal and the current signal into high-frequency components and low-frequency components. The peak sequence is identified by reconstructing the low-frequency components, and the basic signal frequency is calculated. The frequency error of the electric energy meter is obtained based on the stability analysis of the basic signal frequency. s 1 is 0.5%, and a stable frequency reference point is selected with reference to the stability of the basic signal frequency; then, based on the stable frequency reference point, the frequency domain analysis algorithm is used to calculate the harmonic content of the voltage signal and the current signal. The frequency domain analysis window (45Hz to 55Hz) is selected with the stable frequency reference point as the center, and the voltage signal and the current signal in the frequency domain analysis window are subjected to fast Fourier transform to obtain the spectrum. The harmonic content is obtained by calculating the amplitude and phase of each harmonic in the spectrum, and the load error of the electric energy meter under heavy load conditions is obtained based on the harmonic content analysis. s 2 is 1%; finally, the frequency error and the load error are weighted averaged, and the metering error of the electric energy meter is calculated to be 0.7%. According to the weighted error, the adjustment amount of the calibration parameters of the electric energy meter is determined to be 0.5%. The parameters of the electric energy meter are calibrated according to the adjustment amount to improve the metering accuracy of the electric energy meter in the residential area. Through the implementation of the present invention, the metering error of the electric energy meter can be effectively identified and analyzed, and a scientific basis can be provided for the calibration and optimization of the electric energy meter.

[0133] like Figure 2 As shown, according to another embodiment of the present invention, there is also provided an electric energy meter measurement error analysis system based on electric power data collection, the electric energy meter measurement error analysis system based on electric power data collection comprising:

[0134] The electric variable acquisition module 1 is used to periodically measure the input voltage and input current of the electric energy meter, and perform preprocessing to obtain voltage signals and current signals;

[0135] The frequency error analysis module 2 is used to identify the basic signal frequency of the voltage signal and the current signal by using the fundamental frequency detection algorithm, analyze the frequency error of the electric energy meter according to the stability of the basic signal frequency, and select a stable frequency reference point;

[0136] The load error analysis module 3 is used to calculate the harmonic content of the voltage signal and the current signal based on the stable frequency reference point using the frequency domain analysis algorithm, and analyze the load error of the electric energy meter based on the harmonic content;

[0137] The error comprehensive evaluation module 4 is used to comprehensively evaluate the metering error of the electric energy meter by combining the frequency error and the load error, and adjust the calibration parameters of the electric energy meter;

[0138] Among them, the electric variable acquisition module 1 is connected to the load error analysis module 3 through the frequency error analysis module 2, and the load error analysis module 3 is connected to the error comprehensive evaluation module 4.

[0139] In summary, with the aid of the above technical scheme of the present invention, by accurately measuring and analyzing the voltage signal and the current signal at the input end of the electric energy meter, combined with the fundamental tone detection algorithm and the frequency domain analysis, the metering error of the electric energy meter can be effectively identified and analyzed, and the metering accuracy of the electric energy meter can be improved. First, by analyzing the harmonic content of the voltage signal and the current signal, the load error of the electric energy meter under a nonlinear load can be evaluated, thereby facilitating the optimization of the performance of the electric energy meter under different load conditions. Secondly, the present invention can also realize continuous monitoring and evaluation of the performance of the electric energy meter, timely discover and solve the problem of metering error of the electric energy meter, and improve the service life and reliability of the electric energy meter. At the same time, the present invention can optimize the performance of the electric energy meter under different load conditions, and ensure that the electric energy meter can provide accurate metering results under various load conditions. The electric energy meter will encounter various load conditions in actual applications, including linear loads and nonlinear loads. The nonlinear load will generate harmonics, which will affect the metering accuracy of the electric energy meter. The present invention can evaluate the electric energy meter under nonlinear loads by analyzing the harmonic content of the voltage signal and the current signal. The load error under the condition of load error can provide a basis for the optimization and calibration of the electric energy meter by identifying the main harmonic components that cause the load error, and the load error of the electric energy meter can be analyzed according to the harmonic content, so as to evaluate the metering accuracy of the electric energy meter under different load conditions; in addition, the present invention can not only evaluate and optimize the metering performance of the electric energy meter under the current conditions, but also timely discover the performance degradation or failure that may occur in the long-term operation of the electric energy meter by continuously monitoring and analyzing the voltage signal and the current signal. When the stability of the basic signal frequency decreases or the harmonic content changes abnormally, this may indicate that the sensor or circuit element inside the electric energy meter is degenerating or damaged, so that timely calibration and maintenance can be carried out to prevent these problems from causing greater metering errors and extend the service life of the electric energy meter. The present invention can provide data support for the preventive maintenance of the electric energy meter by measuring and analyzing the performance data of the electric energy meter at different time points, reduce service interruption and maintenance costs caused by equipment failure, improve the long-term stability and reliability of the electric energy meter, and ensure the stable operation of the power grid.

[0140] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims

1. A method for analyzing electric energy meter measurement errors based on electric power data collection, characterized in that: The electric energy meter measurement error analysis method based on power data acquisition includes the following steps: S1, periodically measuring the input voltage and input current of the electric energy meter, and performing preprocessing to obtain voltage signals and current signals; S2. Using a fundamental frequency detection algorithm to identify the basic signal frequencies of the voltage signal and the current signal, analyzing the frequency error of the electric energy meter according to the stability of the basic signal frequency, and selecting a stable frequency reference point; S3. Based on the stable frequency reference point, the harmonic content of the voltage signal and the current signal is calculated using the frequency domain analysis algorithm, and the load error of the electric energy meter is analyzed based on the harmonic content; S4. Comprehensively evaluate the metering error of the electric energy meter by combining the frequency error and the load error, and adjust the calibration parameters of the electric energy meter; The method of calculating the harmonic content of the voltage signal and the current signal based on the stable frequency reference point by using a frequency domain analysis algorithm and analyzing the load error of the electric energy meter based on the harmonic content includes the following steps: S31, taking the stable frequency reference point as the center, select the frequency domain analysis window; S32, performing fast Fourier transform on the voltage signal and the current signal in the frequency domain analysis window to obtain frequency spectra of the voltage signal and the current signal; S33, calculating the amplitude and phase of each harmonic in the spectrum to obtain the harmonic content; S34. Analyze the load error of the electric energy meter under different load conditions based on the harmonic content; The method of performing fast Fourier transform on the voltage signal and the current signal in the frequency domain analysis window to obtain the frequency spectrum of the voltage signal and the current signal comprises the following steps: S321, selecting a corresponding sampling frequency based on the range of the frequency domain analysis window; S322, sampling the voltage signal and the current signal, and recording the data for a preset time to cover different load conditions; S323, performing fast Fourier transform on the sampled signal and performing spectrum analysis, and only displaying the spectrum within the frequency domain analysis window.

2. The method for analyzing electric energy meter measurement errors based on electric power data collection according to claim 1 is characterized in that: The method of using a fundamental frequency detection algorithm to identify the basic signal frequencies of the voltage signal and the current signal, analyzing the frequency error of the electric energy meter according to the stability of the basic signal frequency, and selecting a stable frequency reference point includes the following steps: S21, selecting a pitch function and a transformation coefficient according to the frequency components of the voltage signal and the current signal; S22, decomposing the voltage signal and the current signal by using the selected pitch function to obtain a high-frequency signal band and a low-frequency signal band; S23, reconstructing the low-frequency signal band using the selected transformation coefficients, analyzing the peak sequence of the reconstructed low-frequency signal band and identifying the periodic components to obtain the basic signal frequency; S24. Calculate the stability of the basic signal frequency using a statistical method, obtain the frequency error of the electric energy meter, and select a stable frequency reference point.

3. The method for analyzing electric energy meter measurement errors based on electric power data collection according to claim 2 is characterized in that: The step of selecting the pitch function and the transform coefficient according to the frequency components of the voltage signal and the current signal comprises the following steps: S211, judging the frequency component range of the voltage signal and the current signal according to the frequency components of the voltage signal and the current signal and the standard frequency of the power grid; S212, based on the judgment result, dividing the voltage signal and the current signal into a low-frequency dividing point and a high-frequency dividing point; S213: Select a pitch function and a transform coefficient according to the divided low-frequency dividing point and high-frequency dividing point.

4. The method for analyzing electric energy meter measurement errors based on electric power data collection according to claim 3 is characterized in that: Decomposing the voltage signal and the current signal by using the selected pitch function to obtain the high-frequency signal band and the low-frequency signal band comprises the following steps: S221, decomposing the voltage signal and the current signal into high-frequency components and low-frequency components by using the selected fundamental pitch function; S222, downsampling the decomposed high-frequency component by half to obtain a high-frequency downsampled component, and constructing a high-frequency signal band; S223, downsample the decomposed low-frequency component by half to obtain a low-frequency downsampled component, and construct a low-frequency signal band.

5. The method for analyzing electric energy meter measurement errors based on electric power data collection according to claim 4 is characterized in that: The method of reconstructing the low-frequency signal band by using the selected transform coefficients, analyzing the peak sequence of the reconstructed low-frequency signal band and identifying the periodic components to obtain the basic signal frequency comprises the following steps: S231, reconstructing the low-frequency signal band using the selected low-frequency coefficients to obtain a reconstructed low-frequency waveform signal; S232, performing peak detection on the reconstructed low-frequency waveform signal to identify a peak sequence; S233, analyzing the periodicity of the peak sequence, and calculating the time interval between adjacent peaks to obtain the basic signal frequency.

6. The method for analyzing electric energy meter measurement errors based on electric power data collection according to claim 5 is characterized in that: The method of calculating the stability of the basic signal frequency by using a statistical method, obtaining the frequency error of the electric energy meter, and selecting a stable frequency reference point comprises the following steps: S241, performing statistical calculation on the basic signal frequency to obtain statistical indicators; S242, evaluating the stability of the basic signal frequency based on statistical indicators to obtain a frequency error of the electric energy meter; S243. Select the time point with the highest frequency stability as the stable frequency reference point.

7. The method for analyzing electric energy meter measurement errors based on electric power data collection according to claim 1 is characterized in that: The step of calculating the amplitude and phase of each harmonic in the spectrum to obtain the harmonic content comprises the following steps: S331, identifying harmonic components in the spectrum, including the fundamental wave and harmonics that are integer multiples of the fundamental wave; S332, calculating the amplitude of each harmonic based on the fundamental wave and the harmonics that are integer multiples of the fundamental wave; S333. Based on the fundamental wave and the harmonics that are integer multiples of the fundamental wave, the phase of each harmonic is calculated, and the amplitude and phase value of each harmonic calculated are recorded to obtain the harmonic content.

8. An electric energy meter measurement error analysis system based on electric power data collection, used to implement the electric energy meter measurement error analysis method based on electric power data collection according to any one of claims 1 to 7, characterized in that: The electric energy meter measurement error analysis system based on power data acquisition includes: The electric variable acquisition module is used to periodically measure the input voltage and input current of the electric energy meter and perform preprocessing to obtain voltage signals and current signals; A frequency error analysis module is used to identify the basic signal frequency of the voltage signal and the current signal by using a fundamental frequency detection algorithm, analyze the frequency error of the electric energy meter according to the stability of the basic signal frequency, and select a stable frequency reference point; A load error analysis module is used to calculate the harmonic content of the voltage signal and the current signal based on a stable frequency reference point using a frequency domain analysis algorithm, and to analyze the load error of the electric energy meter based on the harmonic content; The error comprehensive evaluation module is used to comprehensively evaluate the metering error of the electric energy meter by combining the frequency error and the load error, and adjust the calibration parameters of the electric energy meter; Among them, the electrical variable acquisition module is connected to the load error analysis module through the frequency error analysis module, and the load error analysis module is connected to the error comprehensive evaluation module.