CN111551785A - Frequency and harmonic detection method based on unscented Kalman filter - Google Patents

Frequency and harmonic detection method based on unscented Kalman filter Download PDF

Info

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
Application number
CN202010359460.9A
Other languages
Chinese (zh)
Other versions
CN111551785B (en
Inventor
吕广强
安路
蒋海峰
王宝华
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nanjing University of Science and Technology
Original Assignee
Nanjing University of Science and Technology
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Nanjing University of Science and Technology filed Critical Nanjing University of Science and Technology
Priority to CN202010359460.9A priority Critical patent/CN111551785B/en
Publication of CN111551785A publication Critical patent/CN111551785A/en
Application granted granted Critical
Publication of CN111551785B publication Critical patent/CN111551785B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R23/00Arrangements for measuring frequencies; Arrangements for analysing frequency spectra
    • G01R23/02Arrangements for measuring frequency, e.g. pulse repetition rate; Arrangements for measuring period of current or voltage
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R23/00Arrangements for measuring frequencies; Arrangements for analysing frequency spectra
    • G01R23/16Spectrum analysis; Fourier analysis
    • G01R23/165Spectrum analysis; Fourier analysis using filters
    • YGENERAL 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
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02EREDUCTION OF GREENHOUSE GAS [GHG] EMISSIONS, RELATED TO ENERGY GENERATION, TRANSMISSION OR DISTRIBUTION
    • Y02E40/00Technologies for an efficient electrical power generation, transmission or distribution
    • Y02E40/40Arrangements for reducing harmonics

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Mathematical Physics (AREA)
  • Complex Calculations (AREA)
  • Measuring Phase Differences (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

Frequency and harmonic detection method based on unscented Kalman filter
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 as
Figure BDA0002474557930000011
The 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:
step 1, establishing a signal model containing harmonic waves:
Figure BDA0002474557930000012
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,
Figure BDA0002474557930000013
is the R harmonic phase, e is zero mean gaussian white noise with covariance R;
step 2, selecting observation state variables:
Figure BDA0002474557930000014
wherein A isr,kIs the magnitude of the order r harmonic at time k,
Figure BDA0002474557930000021
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:
Figure BDA0002474557930000022
wherein the content of the first and second substances,
Figure BDA0002474557930000023
Figure BDA0002474557930000024
η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:
Figure BDA0002474557930000025
wherein the content of the first and second substances,
Figure BDA0002474557930000026
is the amplitude of the r-th harmonic at time k obtained by the algorithm,
Figure BDA0002474557930000027
the phase of the r-th harmonic at time k, obtained by the algorithm, is 1,2, …, M,
Figure BDA0002474557930000028
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:
step 1, establishing a signal model containing harmonic waves:
Figure BDA0002474557930000031
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,
Figure BDA0002474557930000032
is the R harmonic phase, e is zero mean gaussian white noise with covariance R;
step 2, selecting observation state variables:
Figure BDA0002474557930000033
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,
Figure BDA0002474557930000034
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:
Figure BDA0002474557930000035
wherein the content of the first and second substances,
Figure BDA0002474557930000036
Figure BDA0002474557930000037
η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:
Figure BDA0002474557930000038
wherein the content of the first and second substances,
Figure BDA0002474557930000039
is the amplitude of the r-th harmonic at time k obtained by the algorithm,
Figure BDA00024745579300000310
the phase of the r-th harmonic at time k, obtained by the algorithm, is 1,2, …, M,
Figure BDA00024745579300000312
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 variable
Figure BDA00024745579300000311
The 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.
Step 1, generating an expression containing 3 and 5 harmonic components in advance in simulation according to a model set by an algorithm:
Figure BDA0002474557930000041
wherein A is1=1,
Figure BDA0002474557930000042
A3=0.23,
Figure BDA0002474557930000043
A5=0.13,
Figure BDA0002474557930000044
ω=2πf=2π×50.1;
Then adding a certain white Gaussian noise signal into the amplitude, the phase and the frequency, and discretizing to simulate the system state:
Figure BDA0002474557930000045
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:
Figure BDA0002474557930000046
wherein, Ts=0.0002,ekUsed for corresponding to the added Gaussian white noise signal;
step 2, selecting observation state variables:
Figure BDA0002474557930000047
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:
Figure BDA0002474557930000048
wherein the content of the first and second substances,
Figure BDA0002474557930000049
Figure BDA00024745579300000410
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:
Figure BDA0002474557930000051
Figure BDA0002474557930000052
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:
Figure BDA0002474557930000053
Figure BDA0002474557930000054
Figure BDA0002474557930000055
Figure BDA0002474557930000056
observation equation prediction
Calculation of Sigma points:
Figure BDA0002474557930000057
Figure BDA0002474557930000058
represents (n + λ) Pk|k-1Column i of the square root;
and (3) prediction:
Figure BDA0002474557930000059
Figure BDA00024745579300000510
Figure BDA00024745579300000511
status update
Figure BDA0002474557930000061
Figure BDA0002474557930000062
Figure BDA0002474557930000063
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:
Figure FDA0002474557920000011
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,
Figure FDA0002474557920000012
is the R harmonic phase, e is zero mean gaussian white noise with covariance R;
step 2, selecting observation state variables:
Figure FDA0002474557920000013
wherein A isr,kIs the magnitude of the order r harmonic at time k,
Figure FDA0002474557920000014
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:
Figure FDA0002474557920000015
wherein the content of the first and second substances,
Figure FDA0002474557920000016
Figure FDA0002474557920000017
η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:
Figure FDA0002474557920000018
wherein the content of the first and second substances,
Figure FDA0002474557920000019
is k times obtained by algorithmThe amplitude of the order r harmonic is carved,
Figure FDA00024745579200000110
the phase of the r-th harmonic at time k, obtained by the algorithm, is 1,2, …, M,
Figure FDA00024745579200000111
is the fundamental frequency at time k obtained by the algorithm.
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.
CN202010359460.9A 2020-04-29 2020-04-29 Frequency and harmonic detection method based on unscented Kalman filter Active CN111551785B (en)

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)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
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

Patent Citations (8)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
Title
HAPPY NOVANDA 等: "Unscented Kalman Filter for frequency and amplitude estimation", 《2011 IEEE TRONDHEIM POWERTECH》 *
付巍 等: "基于中心差分扩展卡尔曼滤波的电源频率估计", 《探测与控制学报》 *
田笑: "面向负荷快速响应的频率测量算法研究", 《中国优秀硕士学位论文全文数据库 工程科技Ⅱ辑》 *

Cited By (1)

* Cited by examiner, † Cited by third party
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
Tu et al. Phase correction autocorrelation-based frequency estimation method for sinusoidal signal
CN101915874A (en) Harmonic wave detection method based on Fourier transformation
CN103257271A (en) Device and method for detecting micro grid harmonic wave and inter-harmonics based on STM32F107VCT6
CN103941088A (en) Method for quickly measuring frequency of electric power system based on three-phase signals
CN203287435U (en) A micro electrical network harmonic wave and inter-harmonic wave test apparatus based on an STM32F107VCT6
CN109142863B (en) Power system frequency measurement method and system
CN103941072A (en) Power signal catastrophe parameter measurement method based on real strong tracking filter
CN113675850B (en) Power grid information rapid and accurate sensing method based on nonlinear robust estimation
Giarnetti et al. Non recursive multi-harmonic least squares fitting for grid frequency estimation
CN103983849A (en) Real-time high-accuracy power harmonic analysis method
CN104833852A (en) Power system harmonic signal estimation and measurement method based on artificial neural network
CN103543331B (en) A kind of method calculating electric signal harmonic wave and m-Acetyl chlorophosphonazo
CN114280526B (en) Digital differential traceability system and method for electronic transformer calibrator
CN103969508A (en) Real-time high-precision power harmonic analysis method and device
Yang et al. Oscillation mode analysis for power grids using adaptive local iterative filter decomposition
CN111551785B (en) Frequency and harmonic detection method based on unscented Kalman filter
CN114460527A (en) Correlation degree continuation Hibert phase-shift electronic transformer calibrator source tracing method and system
de la Rosa et al. An application of the spectral kurtosis to characterize power quality events
Kaiser et al. Estimation of power systems amplitudes, frequencies, and phase characteristics using energy operators
CN104215833A (en) Power system frequency measuring method and device
CN101609112B (en) Node phase relation identification method of electric system based on wide area measurement noise signal
CN104076203B (en) A kind of intrasonic harmonic detection method considering that negative frequency affects
CN104808060B (en) A kind of digital measuring method of electrical signal phase difference
Serov et al. Features of application of frequency measurement technique based on spectral analysis for real electrical power networks
Li et al. Mono-trend mode decomposition for robust feature extraction from vibration signals of rotating Machinery

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