CN103427845A - Method for compressing and reconstructing harmonic data of power system on basis of two-dimensional block DCT (discrete cosine transformation) - Google Patents

Method for compressing and reconstructing harmonic data of power system on basis of two-dimensional block DCT (discrete cosine transformation) Download PDF

Info

Publication number
CN103427845A
CN103427845A CN201310336592XA CN201310336592A CN103427845A CN 103427845 A CN103427845 A CN 103427845A CN 201310336592X A CN201310336592X A CN 201310336592XA CN 201310336592 A CN201310336592 A CN 201310336592A CN 103427845 A CN103427845 A CN 103427845A
Authority
CN
China
Prior art keywords
matrix
matrixes
harmonic
data
dimensional
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.)
Pending
Application number
CN201310336592XA
Other languages
Chinese (zh)
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.)
Electric Power Research Institute of Guangxi Power Grid Co Ltd
Original Assignee
Electric Power Research Institute of Guangxi Power Grid Co Ltd
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 Electric Power Research Institute of Guangxi Power Grid Co Ltd filed Critical Electric Power Research Institute of Guangxi Power Grid Co Ltd
Priority to CN201310336592XA priority Critical patent/CN103427845A/en
Publication of CN103427845A publication Critical patent/CN103427845A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Compression, Expansion, Code Conversion, And Decoders (AREA)

Abstract

The invention discloses a method for compressing and reconstructing harmonic data of a power system on the basis of two-dimensional block DCT (discrete cosine transformation). The method includes steps of 1, transforming sampled one-dimensional time-series harmonic signals into a two-dimensional matrix; 2, performing block processing on the two-dimensional matrix to obtain various block matrixes; 3, performing LXL DCT on the block matrixes to obtain DTC result matrixes; 4, rearranging elements of the block matrixes and combining elements at the same positions with one another to form rearranged matrixes; 5, computing the average energy of the various rearranged matrixes, judging energy of the rearranged matrixes according to an energy threshold value to create quantization matrixes, setting the elements larger than the energy threshold value as 1 and setting the elements smaller than the energy threshold value as 0; 6, creating a structure array H from the quantization matrixes and the block rearranged matrixes. The structure array H is a harmonic real-time data compression result. The method has the advantages that an excellent compression effect can be realized, the compression ratio is higher than 20.2381, and standard mean-square errors are smaller than 3.291X10<-5>.

Description

Harmonious Waves in Power Systems data compression and reconstruction method based on two-dimentional block DCT transform
Technical field
The present invention relates to the Harmonious Waves in Power Systems data compression method, specifically a kind of Harmonious Waves in Power Systems data compression and reconstruction method based on two-dimentional block DCT transform.
Background technology
Along with the application in electric power system of a large amount of power electronic device, the harmonic pollution of generation is also more and more serious, and its impact on electrical network has: the energy loss that increases electrical network; Make the grid equipment misoperation, cause the accident; Increase the excess loss of grid equipment, reduce life; When harmonic frequency approaches fundamental frequency, cause flickering; The resonance, the noise and vibration that cause equipment, lost efficacy grid equipment and even damage.Therefore, the harmonic wave of electric power system has caused extensive concern both domestic and external.Round-the-clock Detecting Power Harmonics be wave recording device not only harmonic parameters (harmonic amplitude, phase angle) detected, and record the enforcement waveform of harmonic wave, in recent years, the application of Harmonic Measurer is more and more extensive.Power Harmonic Monitoring Instrument has recorded the harmonic data of magnanimity, and the communication data amount of each Power Harmonic Monitoring Instrument and monitoring center is large, and the Detecting Power Harmonics data need to guarantee high real-time and high synchronism, just can carry out effective electric harmonic analysis.And huge harmonic data amount causes the transmission time long, must carry out data compression to the Detecting Power Harmonics data thus, extraction property information, reduce data volume.
Harmonic data has periodically, the compression performance that can utilize it periodically to obtain.At present the harmonic data compression method mainly contains threshold pressure compression method, wavelet coefficient threshold pressure compression method based on FFT, improves small echo (Slantlet) threshold pressure compression method etc., revolves conversion (DCT) compression method more than discrete.
FFT threshold pressure compression method efficiency is high, but its shortcoming FFT does not have time-frequency characteristic, will lose the harmonic wave temporal information; The wavelet threshold compression has iconicity, degree of correlation advantages of higher because of it, has obtained compression effectiveness preferably.But the calculating of wavelet transformation need to consume a large amount of internal memories, calculation of complex, realize that the real-time cost is high; The base vector of dct transform matrix is similar to the characteristic vector of Toeplitz matrix, be considered to the accurate optimal mapping of performance close to the K.L conversion, there is very high time-frequency concentration of energy characteristic, but the energy of its most of signals all concentrates on the low frequency part after conversion, the compression of inapplicable harmonic wave.
Summary of the invention
The present invention, by the simplicity of property harmonic period and dct transform algorithm, makes dct transform better be applicable to the Harmonious Waves in Power Systems compression, has proposed a kind of Harmonious Waves in Power Systems data compression and reconstruction method based on two-dimentional block DCT transform.
Discrete cosine transform (Discrete Cosine Transform) is a kind of real number field conversion, and its transformation kernel is the real number cosine function.
The two-dimensional dct transform of a matrix is defined as follows:
X = x 1,1 K x 1 , N M O M x M , 1 L x M , N - - - ( 1 )
B pq = a p q q &Sigma; m = 0 M - 1 &Sigma; n = 0 N - 1 x m , n cos &pi; ( 2 m + 1 ) p 2 M cos &pi; ( 2 n + 1 ) q 2 N - - - ( 2 )
Wherein,
a p = 1 M , p = 0 2 M , 1 &le; p &le; M - 1 - - - ( 3 )
a q = 1 N , q = 0 2 N , 1 &le; q &le; N - 1 - - - ( 4 )
When p, q constantly increase, the frequency of corresponding cosine function also constantly increases.
If the sampling time sequence of Detecting Power Harmonics data is x (i), 0≤i≤m * n wherein, wherein m, n are the multiples of L, L meets
L=2 y
(5)
In formula, y is positive integer, and 2<y<8.
J M L &times; N L i , j = j 1,1 K j 1 , N L M O M j M L , 1 L j M L , N L - - - ( 6 )
Wherein,
j i,k=x(i+(k-1)×L)?(7)
Matrix J is carried out to piecemeal, and separately dividing block size is L * L, obtains matrix as follows
J = A L &times; L p , q K A L &times; L 1 , N L M O M A L &times; L M L , 1 L A L &times; L M L , N L M L &times; N L - - - ( 8 )
A L &times; L p , q = a 1,1 p , q K a 1 , L p , q M O M a L , 1 p , q L a L , L p , q L &times; L - - - ( 9 )
To matrix in block form Do two-dimensional dct transform, obtain each blocking factor matrix
B L &times; L p , q = B 1,1 p , q K B 1 , L p , q M O M B L , 1 p , q L B L , L p , q L &times; L - - - ( 10 )
Each blocking factor matrix Energy distribution difference is very large, and the energy of conversion coefficient concentrates on the upper left corner mostly, and has the advantages that to reduce gradually to the lower right corner.The dct transform coefficient that position in each blocking factor matrix is identical is arranged together, is about to all
Figure BDA00003621309600041
The identical element in middle position forms a matrix, and matrix is rearranged, and obtains Matrix C, and Matrix C is by L * L Matrix form
Figure BDA00003621309600043
Wherein,
Figure BDA00003621309600044
Each piecemeal is reset in matrix, data all be in an order of magnitude and variance very little.Therefore, adopt the energy threshold method to choose and contribute large piecemeal to reset matrix to initial data, the element that the filtering average energy is less, realize the data compression of harmonic wave.Calculated the average energy value of each matrix column vector by following formula
Figure BDA00003621309600045
In formula,
Figure BDA00003621309600046
Mean value for this matrix column vector.
Ask capable phasor mean square deviation
Figure BDA00003621309600047
In formula, k i,jMean average energy, obtain the L * L average energy matrix of:
G L &times; L = k 1,1 K k 1 , L M O M k L , 1 L k L , L - - - ( 15 )
Define an energy threshold ε, work as k i,jWhile being greater than this energy threshold, corresponding matrix in block form element is put to reservation, the quantization matrix correspondence position is set to 1; Work as k i,jWhile being less than this energy threshold, the position that quantization matrix is corresponding is 0, and quantization matrix is
U L &times; L = &epsiv; ) 1,1 &epsiv; ) 1 , L M O M &epsiv; ) L , 1 L &epsiv; ) L , L - - - ( 16 )
In formula, It is 0,1 two-valued variable.ε is larger, and compression ratio can increase, but can produce larger error.The user can, by different requirements such as data precision, compression ratios, select the energy threshold parameter flexibly.When ε gets 0.932, it is less that the higher and standard of compression ratio is divided equally error, can realize compression effectiveness preferably, and the present invention chooses this and is worth parameter by default.According to quantization matrix, build the structure array.
Figure BDA00003621309600054
Wherein, Row row matrix position, Coloum is the rectangular array position, Value is that matrix element is put.For the non-zero element of quantization matrix, record its each matrix in block form ranks position, each element value of its matrix in block form remains unchanged, and it is retained to structure array H, for quantization matrix 0 element, by each rejection of data of its matrix in block form.
The structure data that obtain, be final harmonic compression data.Shown in harmonic data compression process Fig. 1.
During data decompression, line position, column position and the original value corresponding by the structure data build matrix in block form, and blank position is filled with 0.To reset matrix according to the reverse arrangement of reordering rule, obtain each blocking factor matrix that data are recovered, then, respectively the blocking factor matrix of L * L be carried out to inverse dct transform.Through the two-dimensional dct inverse transformation, can obtain M * N Two-Dimensional Reconstruction matrix, then expand into successively One-dimension Time Series according to 2-D data, can obtain the harmonic signal after decompress(ion) reconstruct.Harmonic data reconstruct flow process as shown in Figure 2.
The outstanding substantial effect of the present invention is:
Can realize compression effectiveness preferably, compression ratio>20.2381, standardization mean square error<3.291 * 10 -5.
The accompanying drawing explanation
Fig. 1 is harmonic signal compression process figure.
Fig. 2 is harmonic signal reconstruct flow chart.
Fig. 3 be original harmonic signal,
Fig. 4 is two-dimensional data matrix,
Fig. 5 is the reconstruct harmonic signal
Fig. 6 is the error curve signal.
Fig. 7 is the harmonic analyzer structure chart.
Fig. 8 is that Harmonious Waves in Power Systems is host computer reconstruct harmonic wave forms figure.
Embodiment
By the following examples technical scheme of the present invention is described further.
Harmonious Waves in Power Systems data compression and reconstruction method based on two-dimentional block DCT transform of the present invention, comprise the steps:
(1) One-dimension Time Series harmonic signal sampling obtained is converted into two-dimensional matrix;
(2) two dimension is carried out to the piecemeal processing, obtain each matrix in block form;
(3) matrix in block form is carried out to L * L dct transform, obtain the dct transform matrix of consequence;
(4) the matrix in block form element is rearranged, the element of same position is formed and resets matrix;
(5) calculate the average energy of respectively resetting matrix, and carry out the energy threshold judgement, build thus quantization matrix, the element that is greater than energy threshold is put to 1, the element that is less than energy threshold sets to 0;
(6) reset matrix by quantization matrix and piecemeal and build structure array H, H is harmonic wave real-time waveform data compression result.
Data reconstruction carries out data reconstruction by the two-dimensional dct inverse transformation, by structure array reduction dct transform matrix in block form, the blank element of matrix in block form mends 0, piecemeal is reset to reconstruct and be reduced to the DCT matrix of consequence, it is carried out to the two-dimensional dct inverse transformation, obtain two-dimensional data matrix, by two-dimensional data matrix, recover to obtain one dimension harmonic wave time series.
Fig. 3 is that original harmonic signal, Fig. 4 are that two-dimensional data matrix, Fig. 5 are reconstruct harmonic signal and Fig. 5 error curve signal contrast figure, and as seen from Figure 5, the whole and part information of signal remains unchanged substantially, has reached good reconstruct effect.The compression before and the reduction after waveform error as shown in Figure 6, as seen from the figure, each point effective error<0.02p.u, reduction effect is good.
For the validity of checking compression algorithm of the present invention, the definition compression ratio
C R = Size ( A ) Size ( B ) &times; 100 % - - - ( 17 )
In formula, the shared byte-sized of data after Size (A) compression, Size (B) is the shared byte-sized of primary signal data.Compression ratio is larger, and compression effectiveness is more obvious.
In order to estimate the quality of reconstruct harmonic signal, definition standardization mean square error is
N MSE = &Sigma; p = 1 m &times; n | | f 0 ( p ) - f ^ 0 ( p ) | | 2 &Sigma; p = 1 m &times; n | | f 0 ( p ) | | 2 - - - ( 18 )
In formula, f 0(p) be original harmonic signal,
Figure BDA00003621309600082
For the reconstruct harmonic signal.The standardization mean square error is less, and humorous reconstructed wave effect is better, more approaches original waveform.
Adopt respectively the original harmonic signal of different relative harmonic contents, every kind of containing ratio is got 100 signals and is done test, and ε gets 0.9213, L and gets 16, and then pressure shrinkage and standardization mean square deviation are that mean value is done statistics, and result is as shown in table 1.
The interpretation of result of table 1 harmonic data compression verification
Relative harmonic content/(%) C R/(%) N MSE
1 18.3432 1.835×10 -7
5 20.2381 3.291×10 -5
10 23.7361 1.821×10 -8
20 26.3190 1.819×10 -10
50 30.8316 1.127×10 -6
From table 1, for the harmonic signal of different relative harmonic contents, the compression method based on DCT all has good compression effectiveness, compression ratio>20.2381, standardization mean square error<3.291 * 10 -5.
Harmonious Waves in Power Systems data analyzer structure based on the inventive method as shown in Figure 7.Harmonic signal enters ADS8367 through low-pass filtering and carries out the multi-channel synchronous analog-to-digital conversion, after conversion, digital signal is sent into DSP(TMS320VC5509A) processed, TMS320VC5509A is analyzed harmonic data, obtain the harmonic datas such as harmonic parameters and harmonic wave forms, data are compressed, its compression method adopts institute of the present invention extracting method, and DSP adds the writing data into memory compressed and stored.Data can reach host computer by the TCP/IP communication modes.Host computer can be by reconstructing method reduction harmonic data of the present invention.Fig. 8 is the harmonic wave forms figure that host computer reconstruct obtains, and reconstructed image is clear, can reflect the harmonic distortion characteristic.

Claims (1)

1. the Harmonious Waves in Power Systems data compression and reconstruction method based on two-dimentional block DCT transform, is characterized in that, comprises the steps:
(1) One-dimension Time Series harmonic signal sampling obtained is converted into two-dimensional matrix;
(2) two dimension is carried out to the piecemeal processing, obtain each matrix in block form;
(3) matrix in block form is carried out to L * L dct transform, obtain the dct transform matrix of consequence;
(4) the matrix in block form element is rearranged, the element of same position is formed and resets matrix;
(5) calculate the average energy of respectively resetting matrix, and carry out the energy threshold judgement, build thus quantization matrix, the element that is greater than energy threshold is put to 1, the element that is less than energy threshold sets to 0;
(6) reset matrix by quantization matrix and piecemeal and build structure array H, H is harmonic wave real-time waveform data compression result,
Data reconstruction is to carry out data reconstruction by the two-dimensional dct inverse transformation, by structure array reduction dct transform matrix in block form, the blank element of matrix in block form mends 0, piecemeal is reset to reconstruct and be reduced to the DCT matrix of consequence, it is carried out to the two-dimensional dct inverse transformation, obtain two-dimensional data matrix, by two-dimensional data matrix, recover to obtain one dimension harmonic wave time series.
CN201310336592XA 2013-08-05 2013-08-05 Method for compressing and reconstructing harmonic data of power system on basis of two-dimensional block DCT (discrete cosine transformation) Pending CN103427845A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310336592XA CN103427845A (en) 2013-08-05 2013-08-05 Method for compressing and reconstructing harmonic data of power system on basis of two-dimensional block DCT (discrete cosine transformation)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310336592XA CN103427845A (en) 2013-08-05 2013-08-05 Method for compressing and reconstructing harmonic data of power system on basis of two-dimensional block DCT (discrete cosine transformation)

Publications (1)

Publication Number Publication Date
CN103427845A true CN103427845A (en) 2013-12-04

Family

ID=49652098

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310336592XA Pending CN103427845A (en) 2013-08-05 2013-08-05 Method for compressing and reconstructing harmonic data of power system on basis of two-dimensional block DCT (discrete cosine transformation)

Country Status (1)

Country Link
CN (1) CN103427845A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109995374A (en) * 2019-02-28 2019-07-09 北京交通大学 A kind of principal component component iteration selection method for electric power system data compression
CN110753224A (en) * 2018-07-23 2020-02-04 中国石油化工股份有限公司 Data rearrangement method and system for measurement while drilling data compression
CN112054806A (en) * 2020-09-15 2020-12-08 西南交通大学 Subway sliding plug door data compression method based on two-dimensional adaptive threshold wavelet

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040096116A1 (en) * 2002-11-20 2004-05-20 Samsung Electronics Co., Ltd. Method and apparatus for performing inverse discrete cosine transform
CN1777038A (en) * 2005-12-01 2006-05-24 武汉大学 Two-dimensional vector data compression method

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040096116A1 (en) * 2002-11-20 2004-05-20 Samsung Electronics Co., Ltd. Method and apparatus for performing inverse discrete cosine transform
CN1777038A (en) * 2005-12-01 2006-05-24 武汉大学 Two-dimensional vector data compression method

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
BOEY S.H: "Fast 2-D 8×8 discrete cosine transform algorithm for image coding", 《SCIENCE IN CHINA(SERIES F:INFORMATION SCIENCES》 *
胡志坤等: "基于二维DCT的电能质量监测数据压缩方法", 《中南大学学报(自然科学版)》 *

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110753224A (en) * 2018-07-23 2020-02-04 中国石油化工股份有限公司 Data rearrangement method and system for measurement while drilling data compression
CN110753224B (en) * 2018-07-23 2022-02-01 中国石油化工股份有限公司 Data rearrangement method and system for measurement while drilling data compression
CN109995374A (en) * 2019-02-28 2019-07-09 北京交通大学 A kind of principal component component iteration selection method for electric power system data compression
CN109995374B (en) * 2019-02-28 2021-02-26 北京交通大学 Principal component iterative selection method for data compression of power system
CN112054806A (en) * 2020-09-15 2020-12-08 西南交通大学 Subway sliding plug door data compression method based on two-dimensional adaptive threshold wavelet
CN112054806B (en) * 2020-09-15 2023-07-25 西南交通大学 Subway sliding plug door data compression method based on two-dimensional self-adaptive threshold wavelet

Similar Documents

Publication Publication Date Title
CN103036573B (en) Based on the compressed sensing signal acquisition method of filtering
CN107037486B (en) The Time-frequency Spectrum Analysis method and system of earth natural pulses electromagnetic field data processing
CN107045142B (en) Compressed sensing based wavelet field seismic data Real Time Compression and High precision reconstruction method
CN107192878A (en) A kind of trend of harmonic detection method of power and device based on compressed sensing
Khan et al. Embedded-zerotree-wavelet-based data denoising and compression for smart grid
CN104807534B (en) Equipment eigentone self study recognition methods based on on-line vibration data
CN102035200B (en) Method and device for processing signals
CN102982805A (en) Multi-channel audio signal compressing method based on tensor decomposition
CN104360305A (en) Radiation source direction finding positioning method of uniting compressed sensing and signal cycle stationary characteristics
CN101988935A (en) Digital down converter-Hilbert-Huang transform based instantaneous frequency measuring method
CN103823133A (en) On-line power quality monitoring system based on compression sensing
CN103427845A (en) Method for compressing and reconstructing harmonic data of power system on basis of two-dimensional block DCT (discrete cosine transformation)
CN102332268A (en) Speech signal sparse representation method based on self-adaptive redundant dictionary
CN113359157A (en) Method, system, medium and equipment for suppressing continuous wave interference in Rowland signal
WO2024109031A1 (en) Hht-based voltage quality disturbance detection method
CN103985100A (en) Partitioned compression sensing method based on self-adaptive observation combinational optimization
Jose et al. Smart grid data compression of power quality events using wavelet transform
Singh et al. Image compression using wavelet and wavelet packet transformation
Zhao et al. Medical image lossless compression based on combining an integer wavelet transform with DPCM
CN102982563A (en) Image compression method based on optical contourlet transformation
Acharya et al. Exploiting network-induced correlation for efficient compression of PMU data
Ji et al. A wavelet-based universal data compression method for different types of signals in power systems
Cao et al. Compressed Sampling and Reconstruction Method of Transient Power Quality Signal
Brindha et al. Power quality monitoring and compression using the discrete wavelet transform
CN103746379A (en) Method for suppressing harmonic wave of interference signal based on electromagnetic compatibility

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20131204