CN111551785A - Frequency and harmonic detection method based on unscented Kalman filter - Google Patents
Frequency and harmonic detection method based on unscented Kalman filter Download PDFInfo
- Publication number
- CN111551785A CN111551785A CN202010359460.9A CN202010359460A CN111551785A CN 111551785 A CN111551785 A CN 111551785A CN 202010359460 A CN202010359460 A CN 202010359460A CN 111551785 A CN111551785 A CN 111551785A
- Authority
- CN
- China
- Prior art keywords
- harmonic
- frequency
- phase
- amplitude
- unscented kalman
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000001514 detection method Methods 0.000 title claims abstract description 32
- 238000004422 calculation algorithm Methods 0.000 claims abstract description 15
- 238000005259 measurement Methods 0.000 claims abstract description 15
- 238000000034 method Methods 0.000 claims abstract description 13
- 238000001914 filtration Methods 0.000 claims abstract description 12
- 238000005070 sampling Methods 0.000 claims abstract description 11
- 238000004364 calculation method Methods 0.000 abstract description 9
- 230000004888 barrier function Effects 0.000 abstract description 5
- 230000000694 effects Effects 0.000 abstract description 5
- 238000001228 spectrum Methods 0.000 abstract description 5
- 238000000691 measurement method Methods 0.000 abstract description 4
- 238000010586 diagram Methods 0.000 description 3
- 238000004088 simulation Methods 0.000 description 1
- 230000001360 synchronised effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01R—MEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
- G01R23/00—Arrangements for measuring frequencies; Arrangements for analysing frequency spectra
- G01R23/02—Arrangements for measuring frequency, e.g. pulse repetition rate; Arrangements for measuring period of current or voltage
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01R—MEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
- G01R23/00—Arrangements for measuring frequencies; Arrangements for analysing frequency spectra
- G01R23/16—Spectrum analysis; Fourier analysis
- G01R23/165—Spectrum analysis; Fourier analysis using filters
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02E—REDUCTION OF GREENHOUSE GAS [GHG] EMISSIONS, RELATED TO ENERGY GENERATION, TRANSMISSION OR DISTRIBUTION
- Y02E40/00—Technologies for an efficient electrical power generation, transmission or distribution
- Y02E40/40—Arrangements for reducing harmonics
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Mathematical Physics (AREA)
- Measuring Phase Differences (AREA)
- Complex Calculations (AREA)
Abstract
The invention discloses a frequency and harmonic detection method based on unscented Kalman filtering, which defines a fundamental frequency component in an observation state variable, can directly measure the fundamental frequency without a separate frequency measurement algorithm, and solves the problems of inaccurate zero crossing point detection when the harmonic is serious and asynchronous interpolation period method sampling in the existing frequency measurement method, such as a zero crossing point method, which cause linearization error. The amplitude and the phase of each harmonic are directly selected as the components of the state variables, so that the amplitude and the phase information of each harmonic can be directly measured without further calculation; by using unscented Kalman filtering, the problems of frequency spectrum leakage and barrier effect caused by sampling asynchrony of a Fourier transform method during frequency measurement or harmonic measurement are avoided.
Description
Technical Field
The invention relates to the field of power quality detection of power systems, in particular to a frequency and harmonic detection method based on unscented Kalman filtering.
Background
The measurement of frequency in the power system is the basis for the measurement of other parameters of the quality of electric energy. Taking harmonic measurement as an example, the frequency of each harmonic is a multiple of the frequency of the fundamental wave, and if the amplitude and phase of each harmonic are to be measured accurately, the fundamental frequency must be known, i.e., it needs to be measured in advance.
The frequency measurement method comprises a zero crossing point method, wherein the frequency is calculated by detecting the time interval between two zero crossing points of a waveform, but the frequency measurement is inaccurate due to inaccurate zero crossing point detection when harmonic waves are serious, and meanwhile, the problem of zero drift of a device can bring errors to the measurement. The interpolation period method carries out interpolation processing near the zero crossing point, reduces the difficulty of zero crossing point detection, but the sampling is asynchronous, which can cause linearization error. The fourier transform method can be used for measuring frequency and harmonic wave, but the method needs to obtain data of one period before calculation, has poor real-time performance, and has the problems of frequency spectrum leakage and barrier effect caused by the fact that the sampling period and the waveform period are not strictly synchronous. In the traditional algorithm for measuring harmonic waves by Kalman filtering, most state variables are selected asThe amplitude and phase cannot be derived directly from the state variables and further calculations are required.
Disclosure of Invention
The invention aims to provide a frequency and harmonic detection method based on unscented Kalman filtering.
The technical scheme for realizing the purpose of the invention is as follows: a frequency and harmonic detection method based on unscented Kalman filtering comprises the following steps:
where y is the observed signal, r is the harmonic order, M is the total harmonic order, f is the fundamental frequency, ArIs the amplitude of the order r of the harmonic,is the R harmonic phase, e is zero mean gaussian white noise with covariance R;
step 2, selecting observation state variables:
wherein A isr,kIs the magnitude of the order r harmonic at time k,is the phase of the subharmonic of time k, fkIs the fundamental frequency at time k;
step 3, establishing a system dynamic equation and a measurement equation:
ηkand ekIs process noise and observation noise, the variance is QkAnd Rk,TsIs the sampling interval;
step 4, performing unscented Kalman filtering to obtain an estimated value of the state variable:
wherein,is the amplitude of the r-th harmonic at time k obtained by the algorithm,the phase of the r-th harmonic at time k, obtained by the algorithm, is 1,2, …, M,is obtained by an algorithmThe fundamental frequency at time k.
Compared with the prior art, the invention has the following remarkable advantages: the detection method of the invention gives consideration to the frequency detection problem when establishing the harmonic detection model, does not need a separate frequency measurement algorithm any more, and avoids some problems existing in the existing frequency measurement method; the detection method can directly measure the amplitude and phase information of each harmonic without further calculation; the detection method of the invention avoids the problems of frequency spectrum leakage and barrier effect caused by asynchronous sampling of the Fourier transform method.
Drawings
FIG. 1 is a flow chart of an algorithm used by the present invention.
Fig. 2 is a diagram showing the detection result of the fundamental frequency in the embodiment of the present invention.
FIG. 3 is a diagram illustrating the detection result of each harmonic amplitude in the embodiment of the present invention.
Fig. 4 is a diagram illustrating the detection result of each harmonic phase in the embodiment of the present invention.
Detailed Description
As shown in fig. 1, a frequency and harmonic detection method based on unscented kalman filter includes the following steps:
where y is the observed signal, r is the harmonic order, M is the total harmonic order, f is the fundamental frequency, ArIs the amplitude of the order r of the harmonic,is the R harmonic phase, e is zero mean gaussian white noise with covariance R;
step 2, selecting observation state variables:
each specific subharmonic has its amplitude and phase in pairTwo components, the fundamental frequency corresponds to one component, where Ar,kIs the magnitude of the order r harmonic at time k,is the phase of the subharmonic of time k, fkIs the fundamental frequency at time k;
step 3, establishing a system dynamic equation and a measurement equation:
ηkand ekIs process noise and observation noise, the variance is QkAnd Rk,TsIs the sampling interval;
step 4, performing unscented Kalman filtering to obtain an estimated value of the state variable:
wherein,is the amplitude of the r-th harmonic at time k obtained by the algorithm,the phase of the r-th harmonic at time k, obtained by the algorithm, is 1,2, …, M,is the fundamental frequency at time k obtained by the algorithm. These amplitude, phase and frequency information are the final result of the detection method.
The invention selects the state variableThe frequency and the amplitude and the phase of each harmonic can be directly measured at one time, a separate frequency measurement algorithm is not needed, the amplitude and the phase are not needed to be further calculated, and the problems of the frequency and harmonic detection method are solved. The unscented Kalman filtering does not need to strictly control the number of sampling points in each waveform period, namely, the problems of frequency spectrum leakage and barrier effect caused by asynchronous sampling of the Fourier transform method do not exist.
The present invention will be described in detail with reference to examples.
Examples
This section will describe the embodiments of the present invention in detail by taking the detection of 3, 5 th harmonic components in the output waveform of the system as an example.
Then adding a certain white Gaussian noise signal into the amplitude, the phase and the frequency, and discretizing to simulate the system state:
wherein, ηk~N(0,Qk),Qk=0.001*[0.04,0.001,0.01,0.0004,0.002,0.0001,0.01]T;
And finally, adding Gaussian white noise with the signal-to-noise ratio of 35dB into the i signal, discretizing, and simulating signals collected by a mutual inductor:
wherein, Ts=0.0002,ekUsed for corresponding to the added Gaussian white noise signal;
step 2, selecting observation state variables:
the state variables comprise amplitude phase information of fundamental waves, 3 and 5 harmonics and fundamental wave frequency information;
step 3, establishing a system dynamic equation and a measurement equation:
step 4, performing unscented kalman filtering, which mainly comprises two steps of prediction and updating, specifically as follows:
r in the following calculationk=0.02;
Equation of state prediction
Calculation of Sigma points:
represents (n + λ) Pk-1Column i of square root, where n is 7 and λ is α2(n + K) -n, α ═ 1 for the scale correction factor, and κ ═ 2 for the prior knowledge of the higher order state distribution;
and (3) prediction:
observation equation prediction
Calculation of Sigma points:
and (3) prediction:
status update
The calculation results of the algorithm are shown in fig. 2, fig. 3, and fig. 4, which are the fundamental frequency detection result, the amplitude detection result of each harmonic, and the phase detection result of each harmonic, respectively.
The detection method of the invention gives consideration to the frequency detection problem when establishing the harmonic detection model, does not need a separate frequency measurement algorithm any more, and avoids some problems existing in the existing frequency measurement method; the detection method can directly measure the amplitude and phase information of each harmonic without further calculation; the detection method of the invention avoids the problems of frequency spectrum leakage and barrier effect caused by asynchronous sampling of the Fourier transform method.
The embodiments and drawings are to describe the function of the invention and not to limit the invention, and any equivalent changes made on the basis of the invention are included in the protection scope of the invention.
Claims (2)
1. A frequency and harmonic detection method based on unscented Kalman filtering is characterized by comprising the following steps:
step 1, establishing a signal model containing harmonic waves:
where y is the observed signal, r is the harmonic order, M is the total harmonic order, f is the fundamental frequency, ArIs the amplitude of the order r of the harmonic,is the R harmonic phase, e is zero mean gaussian white noise with covariance R;
step 2, selecting observation state variables:
wherein A isr,kIs the magnitude of the order r harmonic at time k,is the phase of the subharmonic of time k, fkIs the fundamental frequency at time k;
step 3, establishing a system dynamic equation and a measurement equation:
ηkand ekIs process noise and observation noise, the variance is QkAnd Rk,TsIs the sampling interval;
step 4, performing unscented Kalman filtering to obtain an estimated value of the state variable:
2. The unscented kalman filter-based frequency and harmonic detection method according to claim 1, wherein in the observation state variables selected in step 2, the amplitude and phase of each specific subharmonic correspond to two components, and the fundamental frequency corresponds to one component.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010359460.9A CN111551785B (en) | 2020-04-29 | 2020-04-29 | Frequency and harmonic detection method based on unscented Kalman filter |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010359460.9A CN111551785B (en) | 2020-04-29 | 2020-04-29 | Frequency and harmonic detection method based on unscented Kalman filter |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111551785A true CN111551785A (en) | 2020-08-18 |
CN111551785B CN111551785B (en) | 2022-08-12 |
Family
ID=72003300
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010359460.9A Active CN111551785B (en) | 2020-04-29 | 2020-04-29 | Frequency and harmonic detection method based on unscented Kalman filter |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111551785B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114034927A (en) * | 2021-11-01 | 2022-02-11 | 南京国电南自电网自动化有限公司 | Signal measurement method and system based on frequency-following interpolation sampling |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US4661769A (en) * | 1985-01-23 | 1987-04-28 | North Carolina State University | Measurement of magnitude and phase angle of voltage and current phasors and frequency deviation in power systems |
WO2007034474A1 (en) * | 2005-09-19 | 2007-03-29 | Meteoronics Ltd | Electric locks with release hammer |
CN103245831A (en) * | 2013-04-08 | 2013-08-14 | 哈尔滨工程大学 | Method for harmonic identification based on generalized Kalman filter |
CN105044456A (en) * | 2015-07-21 | 2015-11-11 | 电子科技大学 | Power grid instantaneous frequency measuring and tracking method based on orthogonal sub-band |
CN107276220A (en) * | 2017-05-08 | 2017-10-20 | 国网江西省电力公司电力科学研究院 | A kind of electric network information observation system and method based on Kalman filter algorithm |
CN107783944A (en) * | 2017-09-20 | 2018-03-09 | 北京航空航天大学 | A kind of multi-model self calibration Unscented kalman filtering method |
CN108197073A (en) * | 2018-02-09 | 2018-06-22 | 国网江苏省电力有限公司电力科学研究院 | A kind of improved electric vehicle rechargeable electrical energy signature analysis method |
CN110907702A (en) * | 2019-10-30 | 2020-03-24 | 中国电力科学研究院有限公司 | Improved dynamic harmonic estimation method and system |
-
2020
- 2020-04-29 CN CN202010359460.9A patent/CN111551785B/en active Active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US4661769A (en) * | 1985-01-23 | 1987-04-28 | North Carolina State University | Measurement of magnitude and phase angle of voltage and current phasors and frequency deviation in power systems |
WO2007034474A1 (en) * | 2005-09-19 | 2007-03-29 | Meteoronics Ltd | Electric locks with release hammer |
CN103245831A (en) * | 2013-04-08 | 2013-08-14 | 哈尔滨工程大学 | Method for harmonic identification based on generalized Kalman filter |
CN105044456A (en) * | 2015-07-21 | 2015-11-11 | 电子科技大学 | Power grid instantaneous frequency measuring and tracking method based on orthogonal sub-band |
CN107276220A (en) * | 2017-05-08 | 2017-10-20 | 国网江西省电力公司电力科学研究院 | A kind of electric network information observation system and method based on Kalman filter algorithm |
CN107783944A (en) * | 2017-09-20 | 2018-03-09 | 北京航空航天大学 | A kind of multi-model self calibration Unscented kalman filtering method |
CN108197073A (en) * | 2018-02-09 | 2018-06-22 | 国网江苏省电力有限公司电力科学研究院 | A kind of improved electric vehicle rechargeable electrical energy signature analysis method |
CN110907702A (en) * | 2019-10-30 | 2020-03-24 | 中国电力科学研究院有限公司 | Improved dynamic harmonic estimation method and system |
Non-Patent Citations (3)
Title |
---|
HAPPY NOVANDA 等: "Unscented Kalman Filter for frequency and amplitude estimation", 《2011 IEEE TRONDHEIM POWERTECH》 * |
付巍 等: "基于中心差分扩展卡尔曼滤波的电源频率估计", 《探测与控制学报》 * |
田笑: "面向负荷快速响应的频率测量算法研究", 《中国优秀硕士学位论文全文数据库 工程科技Ⅱ辑》 * |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114034927A (en) * | 2021-11-01 | 2022-02-11 | 南京国电南自电网自动化有限公司 | Signal measurement method and system based on frequency-following interpolation sampling |
Also Published As
Publication number | Publication date |
---|---|
CN111551785B (en) | 2022-08-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103576002B (en) | A kind of computing method of capacitive insulator arrangement dielectric loss angle | |
CN105044456B (en) | A kind of Instantaneous Frequency of Power Grid measurement and tracking based on orthogonal subbands | |
CN104820786B (en) | A kind of instantaneous weighting is synchronous to squeeze small echo double-spectrum analysis method | |
CN109633271A (en) | The traveling wave Time-Frequency Analysis Method being distributed based on variation mode decomposition and Eugene Wigner Weir | |
CN105548739B (en) | A kind of arrester operating state signal processing method | |
CN203287435U (en) | A micro electrical network harmonic wave and inter-harmonic wave test apparatus based on an STM32F107VCT6 | |
CN106250904A (en) | Based on Power Disturbance analyser and the sorting technique of improving S-transformation | |
CN109142863B (en) | Power system frequency measurement method and system | |
CN112269054A (en) | Power adaptive algorithm based on improved Prony | |
Giarnetti et al. | Non recursive multi-harmonic least squares fitting for grid frequency estimation | |
CN104502707A (en) | Synchronized phasor measurement method for electrical power system based on cubic spline interpolation | |
CN104217112A (en) | Multi-type signal-based power system low-frequency oscillation analysis method | |
CN106501602A (en) | One kind is based on the detached fundamental wave measurement method of parameters of sliding window frequency spectrum | |
Føyen et al. | Prony's method as a tool for power system identification in Smart Grids | |
CN104833852A (en) | Power system harmonic signal estimation and measurement method based on artificial neural network | |
Petrović et al. | Computational effective modified Newton–Raphson algorithm for power harmonics parameters estimation | |
CN103969508A (en) | Real-time high-precision power harmonic analysis method and device | |
CN111551785B (en) | Frequency and harmonic detection method based on unscented Kalman filter | |
Yang et al. | Oscillation mode analysis for power grids using adaptive local iterative filter decomposition | |
CN114460527B (en) | Correlation degree continuation Hilbert phase-shifting electronic transformer calibrator source tracing method and system | |
CN104076203B (en) | A kind of intrasonic harmonic detection method considering that negative frequency affects | |
CN114280526B (en) | Digital differential traceability system and method for electronic transformer calibrator | |
CN101609112B (en) | Node phase relation identification method of electric system based on wide area measurement noise signal | |
CN104808060B (en) | A kind of digital measuring method of electrical signal phase difference | |
CN103543331A (en) | Method for calculating harmonics and inter-harmonics of electric signal |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |