You are on page 1of 6

Energy Procedia 17 ( 2012 ) 18 23

1876-6102 2012 Published by Elsevier Ltd. Selection and/or peer-review under responsibility of Hainan University.
doi: 10.1016/j.egypro.2012.02.056
Algorithm Analysis on Measuring the Begin-end Time of
Voltage Sag Based on Biorthogonal Wavelet
Zhao Hongtu, Xi Dongmei
College of Computer Science & Technology, Henan Polytechnic University, HPU, Jiao Zuo, China
Abstract
With the development of economy, technology and society, the requirements of power quality improved gradually.
To improve power quality should obtain power informations first, and the direct approach of obtaining informations
is detecting the power quality. It is quite effective to detect and analyze the singularity and singularity positions of
signals by using wavelet transform, because wavelet transform has space localized properties. This paper firstly
expounds the principle of wavelet singularity detection and the relationships between signal singularity and maximal
modulus of wavelet transform. Secondly, the algorithm on measuring the begin-end time of voltage sag in the
electrical distribution system is analyzed by using binary wavelet. Finally, this algorithm is simulated by MATLAB.
Experimental results show that this method can detect the begin-end time of disturbance signal accurately.
2011 Published by Elsevier Ltd. Selection and/or peer-review under responsibility of [name organizer]
Keywords: power quality; singularity detection; modulus maxima of wavelet transform; voltage sag; MATLAB simulation
1. Introduction
A. The Importance of Power Quality
Electrical energy is an energy form of economic and practical, clean and convenient and easy to
transport, control and transform. It is also a special product which is offered to customers by electrical
power department and its quality is assured mutually by both sides. The higher requirement of electrical
power quality is a reflection of national industry developed, technology level improved and social
civilization progressed; it is the inevitable result of the development of the information age and information
society; it is also the technology guarantee of enhancing the electricity utilization efficiency, saving energy
and reducing wastage, improving electrical environment, enhancing the overall benefit of national
economy and sustainable development of industrial production. Whether the power quality is good has
become an important symbol of the movement of electrical power system and the management level. The
inferior electrical energy causes power cutting in large scope of grid, influences normal work of electrical
equipments and brings serious damage for electrical power system and equipments[1-2]. The problem of
power quality is not only a basic technical problem of voltage and frequency in electrical power system. It
has been promoted to a height to know which is relating to the whole power system and equipments safety,
stabilization, economy, reliability service, project protection of electrical environment strategy of the entire
national economy[3].
Available online at www.sciencedirect.com
2012 Published by Elsevier Ltd. Selection and/or peer-review under responsibility of Hainan University.
Zhao Hongtu and Xi Dongmei / Energy Procedia 17 ( 2012 ) 18 23 19
B. Function of Detection
The direct approach to obtain information of power quality is to detect it and the problem to solve
firstly is to detect the power quality disturbance. Real-time detection and data collection of all kinds of
electrical power quality indicators and completed the identification, extraction and analysis of various
disturbance information can provide the credible basis for making specific measures to improve electrical
power quality and govern electrical network. And about the problems that may be caused should take
corresponding measures to minimize the loss.
Voltage sag is a common voltage disturbance in the electrical power distribution system. In recent
years, microprocessor control equipments and power electronic devices which is widely applied in industry
are particularly sensitive to voltage sag, and voltage sag will often cause equipment troubles or
misoperations. Therefore, the voltage sag has become a question of electrical power quality which is
concerned by all aspects in recent years. Detection the begin-end time of voltage sag has the vital
significance for us to take corresponding measures and prevent voltage from falling below the permossible
value.
The method of observing and detecting directly which is used to process the large storage of
disturbance data of electrical power quality is both time-consuming and arduous, moreover it cannot
achieve the aim of automatical identify and statistical analysis. The appearance of wavelet transform
provide a new mathematical tool and research direction for the detection and analysis of electrical power
quality. The wavelet transform has characters of the time domain and frequency domain localization, and it
overcome the shortcoming of Fourier Transform and short-time Fourier Transform method. It is suitable
especially for the analysis of the abrupt change signal and the unsteady signal. Thus it widely applies in the
disturbance detection of electrical power quality.
2. Algorithm principle of wavelet singularity detection
It is said that a function has the character of singularity if the function interrupt in somewhere or some
step derivative is not continual. The signal singularity points and the anomalous mutation parts usually
contain the essential information of signal, it is one of the important characteristics of signal. Due to the
Fourier Transform lacks spatial localitization, it can only determine the global property of signal
singularity, and it is difficult to determine the spatial distributed situation of the signal singularity points.
Wavelet transform has the nature of localitization, therefore it may be better to analyze the signal
singularity, the position of singularity and the size of singularity.
The position of signal singularity point may be detected through tracking the modulus maxima curve of
wavelet transform under the thin criterion. The intensity of singularity of the signal singularity points can
be depicted by attenuating property of the modulus maxima of wavelet transform which is getting along
with the scale parameter, and in mathematics usually depicts the signal singularity size with Lipschitz
index. The Lipschitz index is bigger, the function is smoother[4]. If the Lipschitz index ( o ) of
signal( ( ) t f ) is less than 1 at the point(
0
t ), the signal( ( ) t f ) is singularity at the point(
0
t ). According to
the detection principle of signal singularity, when wavelet takes the first derivative of smooth function, the
modulus maxima point of wavelet transform is the abrupt change point. The signal singularity and the
modulus maxima of wavelet transform has the following relations:
If
0
t is a partial singularity point of the signal, namely the wavelet transform of the function has
maxima value at the point, in some a neighborhood of
0
t , there is o assigned willfully less than 1, and
existing a constant A make the following expression right:
( )
o
Aa t Wf s
(1)
When use the binary wavelet(
j
a 2 = ), the above expression can be changed into the following:
( )
j
A t f W
j
2
2
s
(2)
The logarithm of both sides to the base 2:
20 Zhao Hongtu and Xi Dongmei / Energy Procedia 17 ( 2012 ) 18 23
( )
j
A
t f W
j
o + s
2 2
log log
2
( ) Z j e (3)
Know from expression(3):
When 0 > o , namely smoothness of signals are rather good, the scale(
j
a 2 = ) increases
uninterrupted and the modulus maxima of wavelet transform also increases with the increase of j;
When 0 < o , namely singularity of signals are bigger, the modulus maxima of wavelet transform
decreases with the increase of j[5].
The noise which is produced in the detection process of the actual voltage signal is generally
considered the white noise, it is a stochastic distribution function of singularity almost everywhere, and its
Lipschitz index-- c o = 2 / 1 ( ) 0 > c is negative. Therefore, the modulus maxima of noise will
decrease with the increase of the scale of wavelet transform. From this, the different relations between the
singularity of signal and noise and the modulus maxima of wavelet transform, namely the respective
transformation characteristics of the modulus maxima of wavelet transform is different in different scales,
can be used to distinguish them. Then the begin-end time of voltage sag disturbance can be judged
according to the modulus maxima of wavelet transform which correspond with the disturbance signal.
In order to avoid the distortion of the signal, the biorthogonal spline wavelet is used to analyze in this
algorithm. The biorthogonal spline wavelet race can be expressed by bior
1
n .
2
n , indicated that
1
n ,
2
n are
positive integers. The
1
n represents the step of the spline function, and its length is longer, the length of
the reconstruction scale filter and the decomposition wavelet filter is longer. The
2
n is larger, the length of
the scale function and the decomposition wavelet function supported is longer, is also that the length of the
scale filter and the reconstruction wavelet filter is longer. When
2
n is increasing, the length of the
reconstruction wavelet supported is increasing, and the smoothness is also increasing[6].
The biorthogonal spline wavelet has the following good natures[7]:
(a)The number of the filters coefficient is limited;
(b)The coefficient are all rational numbers;
(c)Symmetry;
(d)Linear phase.
The flowchart of this algorithm is shown as figure(1):
X
scale at the ansform wavelet tr
of maxima modulus biggest The
point extremal each of transform
wavelet of maxima modulus The
=
M X >
Y
N
) 2 scale(a large at
(M) threshold a Choose
5
=
eliminate should point the
and noise by producted
was ansform wavelet tr
of maxima modulus The
. 2 a of
scale at the maxima remaining the
with correspond hich upwardly w
curve maxima modulus Search the
5
=
1 2 3 4
2 2 2 2 a of scale at the
curve maxima modulus any in
not is which maxima the Leave
=
sag. voltage
of point end - begin the correspond
) 2 2 (a scale - small at transform
wavelet of maxima modulus remaining
the among is which amplitude maximum
the of points maxima modulus two The
2 1
=
Figure 1. Algorithm flowchart.
Zhao Hongtu and Xi Dongmei / Energy Procedia 17 ( 2012 ) 18 23 21
3. Simulation instance
C. Program flow
The flowchart of this program is shown as figure(2).
Begin
End
waveform. its draw and signal
fault with signal original an Set
bior2.2. with signal original the
of layer sixth the Decomposes
waveform. its draw and signals,
dimension - one the of l] c, structure[
ion decomposit in the layer sixth the
of part frequency low t the Reconstruc
waveform. its draw and
l], c, structure[ ion decomposit the of
part frequency high each t Reconstruc
Figure 2. Program flowchart.
The MATLAB simulated program based on the above process is listed below:
t=0:pi/125:4*pi;
s1=sin(t); %setting an undesirable signal
s2=sin(10*t); %setting a fault signal, represented the mutation of frequency
s3=sin(t); %the undesirable signal
s=[s1,s2,s3]; %the whole signal
figure(1);
plot(s);
title('Original signal');
Ylabel('s');
[c,l]=wavedec(s,6,'bior2.2');
a6=wrcoef('a',c,l,'bior2.2',6);
figure(2);
subplot(7,1,1);
plot(a6);
title('Decomposes the sixth layer with bior2.2s=a6+d6+d5+d4+d3+d2+d1');
Ylabel('a6');
for i=1:6
decmp=wrcoef('d',c,l,'bior2.2',7-i);
subplot(7,1,i+1);
22 Zhao Hongtu and Xi Dongmei / Energy Procedia 17 ( 2012 ) 18 23
plot(decmp);
Ylabel(['d',num2str(7-i)]);
End
D. Simulation results
Its simulation chart is shown in figure(3):
0 200 400 600 800 1000 1200 1400 1600
-1
-0.8
-0.6
-0.4
-0.2
0
0.2
0.4
0.6
0.8
1
Original signal
s
0 200 400 600 800 1000 1200 1400 1600
-2
0
2
Decomposes the sixth layer with bior2.2s=a6+d6+d5+d4+d3+d2+d1
a
6
0 200 400 600 800 1000 1200 1400 1600
-1
0
1
d
6
0 200 400 600 800 1000 1200 1400 1600
-2
0
2
d
5
0 200 400 600 800 1000 1200 1400 1600
-2
0
2
d
4
0 200 400 600 800 1000 1200 1400 1600
-0.5
0
0.5
d
3
0 200 400 600 800 1000 1200 1400 1600
-0.2
0
0.2
d
2
0 200 400 600 800 1000 1200 1400 1600
-0.1
0
0.1
d
1
Figure 3. Simulation diagram of measuring the begin-end time of disturbance signal with bior2.2.
From the graph, we can see when t = 500, the abnormal circumstance was occurred and when t=1000,
the system work returned to normal. Moreover in wavelet decomposition of this signal, due to the existence
of detection noise, the modulus maxima point of wavelet transform is not obvious and is not easy to judge;
and the amplitude of the modulus maxima point which corresponds with the detection noise reduces
unceasingly along with the increase of wavelet transform scales. Thus the discontinuous points of the
signal in the high-frequency part of first layer (d1) and the second layer (d2) will demonstrate quite
obviously, and the begin-end point of the corresponding voltage sag and the time of the disturbance can be
judged easily.
If this kind of signal is analyzed with Fourier Transform, the frequency change point of the signal is
unable to detect in frequency domain. But the wavelet analysis has the incomparable advantages which the
Fourier Transform is unable to compare with on the detection of signal singularity points. The wavelet
analysis can detect the begin-end time of the abrupt signal accurately.
Zhao Hongtu and Xi Dongmei / Energy Procedia 17 ( 2012 ) 18 23 23
4. Conclusion
This paper, by using the wavelet transform, analyze characters of the abrupt signals and unsteady
signals, and use the biorthogonal spline wavelet to detect the begin-end time of voltage sag in the
disturbance of electrical power quality. According to the different relations between the singularity of
signal and noise and the modulus maxima of wavelet transform, they can be distinguished. Then the begin-
end time of voltage sag disturbance can be judged according to the modulus maxima of wavelet transform
which correspond to the disturbance signal. MATLAB simulation has verified the feasibility of this method.
Through the contrast of the effects of solving the problem by using Fourier Transform, the accuracy of this
method can be seen. This method is simple, feasible and precise, and it has certain practical significance to
guarantee the voltage quality and reduce the loss.
References
[1] Xia Xiangning and Han Minxiao, Analysis and control of power quality, Bei Jing: China's power press, 2004.
[2] Cheng Haozhong and Ai Qian, Power quality, Bei Jing: Tsinghua university press, 2006, 9.
[3] Su Shiping and Liu Guiying, Testing technology of modern power quality, Bei Jing: China's power press, 2008.
[4] Sun Yankui, Analysis and application of wavelet, Bei Jing: Mechanical industry press, 2005, 3.
[5] Li Hongyan, Zhang Xuan and Hou Yuanbin, New methods of inrush current discrimination based on wavelet
transform, High voltage engineering, 2008, 3(3), P500-503.
[6] Zhao Weijun, Tian Gang and Shi Zhanjie, Filtering the finite impulse signals using biorthogonal wavelets, World
geology, 2002, 12(4).
[7] Liu Mingcai, Analysis and application of wavelet, Bei Jing: Tsinghua university press, 2005, 9.

You might also like