Sunteți pe pagina 1din 6

Proceedings of the 14th International Middle East Power Systems Conference (MEPCON10), Cairo University, Egypt, December 19-21,

2010, Paper ID 189.

Wavelet, Kalman Filter and Fuzzy-Expert Combined System for Classifying Power System Disturbances
A. A. Abdelsalam1,*, eng.abdelazeem@gmail.com,
1

A. A. Eldesouky2, A. A. Sallam, Member, IEEE2 azzaeldesouky@yahoo.com, aasallam@ucalgary.ca


2

Dept of Electrical Engineering, Suez Canal University, Ismailia, 41522, Egypt

Dept of Electrical Engineering, Port-Said University, Port-Said, 42523, Egypt

Abstract: A new algorithm for power system disturbance classification is proposed in this paper. It is a two-stage system that employs the great potentials of the discrete wavelet transform (DWT), Kalman filter and a fuzzy-expert system. For the first stage, the captured voltage waveform is passed through the DWT to determine the noise inside it. The covariance of this noise is then calculated and fed together with the captured voltage waveform to the Kalman filter to provide the amplitude and the slope of this waveform. These are considered as an input to the fuzzy-expert system in the second stage to determine the class to which the waveform belongs. Simulation and experimental results confirm the aptness and the capability of the proposed system in power system disturbance detection and classification. keywords: Power quality, DWT, Kalman filter, Fuzzy expert
system, Power System Disturbance.

I. INTRODUCTION Any variation in voltage, current or frequency which may lead to an equipment failure or malfunction is potentially a power quality problem. The widespread use of electronic equipment, such as information technology equipment, power electronics such as adjustable speed drives, programmable logic controllers, energy-efficient lighting, have led to a change in the nature of electric loads. These loads are simultaneously the major causes and the major victims of power quality problems. Due to their non-linearity, all these loads cause disturbances in the voltage waveform. One critical aspect of power quality (PQ) studies is the ability to perform automatic power quality data analysis and classification. An important step in understanding and hence improving the quality of electric power is to extract sufficient information about the events that cause the power quality issues. A number of techniques have been investigated in literature for automatic classification of different types of power quality events. Such an automated PQ assessment requires a high level of engineering expertise and powerful tools. A number of papers based on different techniques for ________________________________________________
* Corresponding author

detection and classification of power quality phenomena have been published over the past years. Theoretical foundations of voltage disturbances are for example described in [1-3]. Wavelet analysis has been used for identification of power system disturbances. The use of wavelets permits the study of a signal with different time-frequency resolution. Use of the coefficients of the high frequency decomposition of the discrete wavelet transform (DWT) has been proposed in the literature for identification and estimation of the related parameters of a voltage event [4-6]. In [7] an algorithm based on the energies of decomposed signals from wavelet multi resolution analysis (MRA) was proposed to distinguish different classes of power quality events. This algorithm had drawback that the phase shifts of the signals studied were not considered despite their impact on the results. Using the change in magnitude of the fundamental component of supply voltage, Kalman filter can be employed to detect and to analyse voltage event [8-9]. The results of Kalman filter depend on the model of the system used and the suitable selection of the filter parameters. If the selection of the Kalman filter parameters is not suitable, the rate of convergence of the results will be slow or the results will diverge. Expert systems have been proposed to identify, classify and diagnose power system events successfully for a limited number of events [9-11]. Rules based expert systems are highly dependent on if ..then clauses. If many event types or features are analyzed, the expert system would become more complicated and risks of losing selectivity would increase. Another drawback is that these systems are not always portable due to the settings that depend mostly on the designer or operator of the systems for a particular set of events. A two stage system for classifying the power system disturbances is proposed in this paper. In the first stage, the captured voltage waveform is passed through DWT to identify its noise. The covariance of this noise together with the captured voltage waveform is fed to the Kalman filter to enhance and speed up its rate of convergence. In the second stage, the outputs of the Kalman filter; the amplitude of the captured voltage waveform and its rate of change with time (slope), are passed through a fuzzy expert system that identifies the class to which the disturbance waveform

398

belongs. Several digital simulation results using MATLAB [12] and practical test waveform are presented to satisfy and ensure the capability of the proposed system for classifying the disturbances successfully. II. THE PROPOSED SYSTEM The proposed system which consists of two stages as mentioned above is shown in Fig. 1. The two stages are performed with each new voltage sample; (i) evaluating a new value of the amplitude and slope using Kalman filter with the help of DWT, (ii) classifying the disturbance using fuzzyexpert system according to the evaluated values.

First of all, it is necessary to have a mathematical description both of the system and of the measurement. The process will be estimated at time t+1 based on the knowledge of the a-priori process at time tk. x k +1 = K x k + wk (4) Next, the state variables and the stochastic system model will be defined. It is assumed that the signal system under study (voltage signal) corresponds to a sinusoidal signal as is expressed in the following equation:
s k = A sin(kT + )

(5) (6)

For the next time step k+1:


s k +1 = A sin( (k + 1)T + )

Considering the state variables as the following:


x1, k = A cos( ) x 2, k = A sin( )

(7)

Fig. 1 Block diagram for the proposed technique

The following relationship can be obtained: x1 1 0 x1 x k +1 = x = 0 1 x 2 k 2 k +1

(8)

2.1 Wavelet Transform Wavelet transform is a useful tool in signal analysis. The continuous Wavelet Transform (WT) of a signal x(t) is defined as [13].
X a ,b = 1 a 1 a

x(t ) (
(

t b )dt a

(1)

where is the angular frequency =250 rad/s, and T is the sampling interval. Consequently, the measurement at time k+1 may be related with the state variables at time k+1, as: T sin( ( k + 1) T ) x1 z k +1 = cos( (k + 1) T ) x2
= H k +1 xk +1 (9) where H is the Matrix giving the ideal connection between the measurement and the state vector at time tk. The measurement of the process is assumed to occur at discrete points in time in accordance with the linear relationship: (10) z k = H k xk + vk where vk is the measurement error which is evaluated by DWT. The random process can be modeled by:

a ,b (t ) =

t b ) a

(2)

where () is the mother wavelet, and other wavelets are its dilated and translated versions, where a and b are the dilation parameter and translation parameter respectively, The discrete WT (DWT) Calculations are made for chosen subset of scales and positions. This scheme is conducted by using filters and computing the so called approximations and details. The approximations (A) are the high-scale, low frequency components of the signal. The details (D) are the low-scale, high-frequency components. The DWT coefficients are computed using the equation:
X a ,b = X j ,k = x[n]g j ,k [n]
nZ

(11) The estimation of the process covariance, P, in the next time step k+1 can be obtained by the following equation: P k +1 = k Pk kT + Qk (12)

k +1 = k x k x

(3)

Qk is the covariance matrix of wk and is assumed to be equal


to the identity matrix in this model. The Kalman gain, K, can be computed as:
K k = Pk H kT H k Pk H kT + R k (13) Rk is the covariance matrix of vk . the value of Rk is not assumed but it is considered the covariance of the details coefficients of the first level of DWT of the measurement signal. With this information the state estimation can be updated knowing the measured k = x k + K k zk H k x k x (14)

where a=2j, b=k2j, jN, kN. The wavelet filter g plays the role of . The covariance of the details (D) is determined to be considered as an initial input to the Kalman filter. 2.2 Kalman Filter Kalman algorithm is applied in order to compute the amplitude of the waveform. The Kalman filtering performs the following operations [14]..

399

D egree of m em bership

and the process covariance can be updated according to: Pk = (I K k H k )Pk (15) The waveform amplitude is directly computed at any time instant k from the estimated state variables as follows:
Ak = ( x12 + x 22 ) k

1.2 NS 1 ZS PS

0.8

0.6

(16)

0.4

and the slope is obtained from the following relationship: ( A Ak 1 ) Sk = k (17) T where: Ak, Ak-1 are the waveform amplitudes at the time instants k and k-1 respectively. 2.3 Fuzzy-Expert Systems It is usually appropriate to use fuzzy logic when a mathematical model of a process doesn't exist or does exist but is too difficult to encode and too complex to be evaluated fast enough for real time operation. The accuracy of the fuzzy logic systems is based on the knowledge of human experts; hence, it is only as good as the validity of the rules. As the power system data is highly uncertain and the power disturbance monitoring is a pattern classification problem, the fuzzy expert system approach can be adopted for this problem. The outputs of the Kalman filter are considered as inputs to the fuzzy-expert system to classify the different waveform disturbances. The input variables membership functions of the fuzzy expert system are shown in Figs. 2 & 3. For classifying the disturbance waveforms, five fuzzy sets are chosen for the amplitude (A), the first input of fuzzy-expert, designated as VSA (very small amplitude), SA (small amplitude), NA (normal amplitude), LA (large amplitude), and VLA (very large amplitude). The slope (S), the second input of fuzzy-expert, has three fuzzy sets that are designated as PS (positive slope), NS (negative slope) and ZS (zero slope).
1.2 SA NA LA VLA VSA

0.2

-1

-0.8

-0.6

-0.4

-0.2

0 Slope

0.2

0.4

0.6

0.8

Fig. 3 Input slope membership function

1.2 Interruption 1 D e g re eo fm e m b e rsh ip Sag Normal Swell Surge

0.8

0.6

0.4

0.2

0.1

0.2

0.3

0.4

0.5 Fuzzy output

0.6

0.7

0.8

0.9

Fig. 4 Output membership function The brief rule sets of fuzzy expert system are below: 1. If amplitude is VSA and slope is PS) then output is INTERRUPTION. 2. If amplitude is VSA and slope is ZS then output is INTERRUPTION. 3. If amplitude is VSA and slope is NS then output is INTERRUPTION. 4. If amplitude is SA and slope is NS then output is SAG. 5. If amplitude is SA and slope is ZS then output is SAG. 6. If amplitude is SA and slope is PS then output is SAG. 7. If amplitude is NA and slope is ZS then output is NORMAL. 8. If amplitude is NA and slope is NS then output is NORMAL. 9. If amplitude is NA and slope is PS then output is NORMAL. 10. If amplitude is LA and slope is PS then output is SWELL. 11. If amplitude is LA and slope is ZS then output is SWELL. 12. If amplitude is LA and slope is NS then output is SWELL. 13. If amplitude is VLA and slope is PS then output is SURGE. 14. If amplitude is VLA and slope is ZS then output is SURGE. 15. If amplitude is VLA and slope is NS then output is SURGE. III. SIMULATION RESULTS The example taken for the study is a simple power system consisting of a generator supplying a power network that comprises a short transmission line section and three loads (normal, heavy, and nonlinear loads) at the point of common coupling (PCC). The heavy and nonlinear loads are connected to the system through a circuit breaker as shown in Fig. 5. Different power quality events have been generated using the power system simulation tools, MATLAB - Simulink, Fig. 6.

1 Degree of membership

0.8

0.6

0.4

0.2

0.5

1.5

2.5 amplitude (pu)

3.5

4.5

Fig. 2 Input amplitude membership function

The output membership function is defined by five sets as shown in Fig. 4. These sets are designated as interruption, sag, normal, swell, and surge. Any output value which is not belonging to these sets represents the distortion. The crisp output of the fuzzy system can assume values between 0.0 and 1.0, where 0.05 Interruption 0.25 Sag 0.5 Normal 0.75 Swell 0.95 Surge.

400

W a v e f o rm

1 0 -1 0 0.05 0.1 0.15 0.2 0.25 Time (sec) 0.3 0.35 0.4 0.45 0.5

(a)

1 S lo p e 0 -1 0 0.05 0.1 0.15 0.2 0.25 Time (sec) 0.3 0.35 0.4 0.45 0.5

(b)

Fig.5 System configuration of the model used for testing.

The generated signals are mixed with random white noise of zero mean and the signal to noise ratio (SNR) is 30 db. Each generated waveform consists of 25 cycles of a voltage waveform sampled at a rate of 6.4 kHz, which is equal to 128 samples per cycle. The following case studies are presented to illustrate the aptness of the proposed system:
To File voltage.m at Dem ux Scope Heavy load
A B C a b c

F uz z y output

0.5

(c)
0 0.05 0.1 0.15 0.2 0.25 Time (sec) 0.3 0.35 0.4 0.45 0.5

Fig. 7 Voltage interruption: (a) waveform, (b) slope and (c) classification system output
1 W av eform 0 -1

A B C

C. B
A B C

A B C Z_source

A B C

A B C

Vabc a b c

A B C A B Z_feeder

A B C

A B C single line to ground fault

(a)
0 0.05 0.1 0.15 0.2 0.25 Time (sec) 0.3 0.35 0.4 0.45 0.5

voltage source

PCC

Universal Bridge Resistive load


+ A B C a b c

C. B 1

1 S lope 0 -1

A B C

C three phase short circuit fault

(b)
0 0.05 0.1 0.15 0.2 0.25 Time (sec) 0.3 0.35 0.4 0.45 0.5

C Load

F uz z y output

0.6 0.5 0.25 0 0 0.05 0.1 0.15 0.2 0.25 Time (sec) 0.3 0.35 0.4 0.45 0.5

(c)

Fig. 6 MATLAB simulation block diagram of the simulated system

Voltage Interruption: an interruption may be seen as a loss of voltage on a power system. Such disturbance describes a drop of 90-100% of the rated system voltage for duration of 0.5 cycles to 1 min. A waveform of the voltage interruption generated by a 5 cycle three phase short circuit fault at PCC is shown in Fig. 7(a). Output of the Kalman filter, slope, is shown in Fig. 7(b). The output of the fuzzy expert system is shown in Fig. 7(c). It is observed that the proposed system can accurately detect the interruption in the distorted waveform. The tracking error, which is defined as the difference between the actual and the estimated values of the amplitude voltage, is found to be less than 0.8%. Voltage Sag: voltage sage is a decrease of 10-90% of the rated system voltage for duration of 0.5 cycles to 1 min. The sag disturbance is generated by the occurrence of a single line to ground fault for 5 cycles at the end of the short transmission line. The results are shown in Fig. 8. The tracking error of results is less than 0.2%. Voltage Swell: in the case of voltage swell, there is a rise of 10 to 90% in the voltage magnitude for 0.5 cycles to 1 min. The swell is generated by disconnecting the heavy load for 5 cycles. From the results depicted in Fig. 9, the proposed system clearly detects and classifies the swell disturbance. The tracking error is less than 0.4%

Fig. 8 Voltage sag: (a) waveform, (b) slope and (c) classification system output
2 W a v e fo rm 0 -2

(a)
0 0.05 0.1 0.15 0.2 0.25 Time (sec) 0.3 0.35 0.4 0.45 0.5

2 S lope 0 -2

(b)

0.05

0.1

0.15

0.2

0.25 Time (sec)

0.3

0.35

0.4

0.45

0.5

F uz z y o utpu t

1 0.75 0.5 0.25 0 0.05 0.1 0.15 0.2 0.25 Time (sec) 0.3 0.35 0.4 0.45 0.5

(c)

Fig.9 Voltage swell: (a) waveform, (b) slope and (c) classification system output.

Voltage surge: the surge occurs on disconnecting the heavy load for one-quarter cycle as shown in Fig. 10(a), where the amplitude is suddenly increased from 1 to 3 p.u. Such a distorted waveform is tested by the proposed system and the

401

results are shown in Fig. 10(b), 10(c) and 10(d). The tracking error of the magnitude is less than 0.5%.
3 2 1 0 -1 0 1 S lope 0 -1 0.05 0.1 0.15 0.2 0.25 Time (sec) 0.3 0.35 0.4 0.45 0.5 W av eform

2.5 2 1.5

Signal Waveform

(a)

0.5 0 -0.5 -1 -1.5

(b)
0 0.05 0.1 0.15 0.2 0.25 Time (sec) 0.3 0.35 0.4 0.45 0.5

0.1

0.2

0.3

0.4

0.5 Time (sec)

0.6

0.7

0.8

0.9

F uz z y output

1 0.5 0

Fig. 12 Waveform of the captured voltage.


(c)
0 0.05 0.1 0.15 0.2 0.25 Time (sec) 0.3 0.35 0.4 0.45 0.5

Fig. 10 Voltage surge: (a) waveform, (b) slope and (c) classification system output

Voltage distortion: distortion of the voltage waveform is generated by connecting the nonlinear load for 5 cycles where the harmonic is generated. The original distorted waveform and the corresponding Kalman filter and fuzzy expert system outputs are shown in Fig. 11.
2 W a v e f o rm 0 -2

The voltage sag occurs at t=0.1s for 5 cycles while the outage is started at t=0.3 s and ends at t=0.4 s. The swell is initiated at t=0.6 s and persists for 5 cycles while the harmonic distortion is generated at t= 0.8 s for 5 cycles. The output slope of the Kalman filter is shown in Fig. 13, while the output of the fuzzy expert system is shown in Fig. 14. Comparing the output waveform of Fig. 14 with the output membership function, Fig. 4, it is observed that the proposed system has successfully detected each disturbance included in the captured voltage waveform with an average tracking error of less than 0.5%.
0.5 0.4

(a)
0 0.05 0.1 0.15 0.2 0.25 Time (sec) 0.3 0.35 0.4 0.45 0.5

0.3 0.2 0.1 0 -0.1 -0.2

S lo p e

(b)
0 -1

0.05

0.1

0.15

0.2

0.25 Time (sec)

0.3

0.35

0.4

0.45

0.5

Slope

-0.3 -0.4

0.1

0.2

0.3

0.4

1 F u z z y o utp u t 0.75 0.5 0.25 0 0.05 0.1 0.15 0.2 0.25 Time (sec) 0.3 0.35 0.4 0.45 0.5
0.75

0.5 Time (sec)

0.6

0.7

0.8

0.9

Fig. 13 Slope of the captured voltage


(c)
1

Fig. 11 Voltage distortion: (a) waveform, (b) amplitude, (c) slope and (d) classification system output.

Fuzzy output

0.5

0.25

Comparing the results of the proposed system shown fin Figs. 7 through 11 with the output membership function, Fig. 4, it is observed that each category of the simulated waveforms is successfully detected and classified. Another case study is reported to test the overall performance of the proposed system. In this case, the voltage waveform at PCC which is captured for fifty cycles and consists of sag, interruption, swell, and harmonic distortion as shown in Fig. 12 is applied to the proposed system.

0.1

0.2

0.3

0.4

0.5 Time (sec)

0.6

0.7

0.8

0.9

Fig. 14 Output of fuzzy-expert system

In addition, the proposed system is computationally simple in comparison to Fourier linear combiner based approach [9] and yields classification in short time as it needs two samples to evaluate the amplitude and slope of the captured voltage waveform instead of the whole cycle as in [9]. The Kalman filter, on the other hand, yields more accurate results as the initial value of the measurement error covariance is not assumed and instead it is accurately extracted with the help of DWT.

402

IV. EXPERIMENTAL RESULTS Fig. 15 shows a test waveform that is obtained from the IEEE Project Group 1159.2 [15]. The sample frequency used is fs=/15 360 Hz, or 256 samples per 60 Hz cycle. The proposed technique is applied on this test waveform. Kalman filter is used to extract the fundamental frequency amplitude and its slope as shown in Figs. 16 & 17 from the practical waveform. The fuzzy expert system output shows that the test waveform contains a voltage sag disturbance, Fig. 18, and there are not harmonic contents in it.
1 0.8 0.6 0.4 0.2 0 -0.2 -0.4 -0.6 -0.8 -1 0 0.01 0.02 0.03 0.04 0.05 Time (sec) 0.06 0.07 0.08 0.09 0.1

V. CONCLUSIONS A system based on the DWT, Kalman filter and fuzzyexpert system is proposed in this paper for classifying power system disturbances. The DWT is used to extract the noise of the captured waveform. The covariance of this noise is calculated and applied to the Kalman filter with the captured voltage waveform to improve its performance. The Kalman filter is then used to estimate the amplitude and the slope of the waveform which become the inputs to the fuzzy expert system for classification of the waveforms. Several simulation and experimental tests have been conducted to validate the performance of the proposed system. The results show that the proposed system performs very well in the detection and classification of various power system disturbances. REFERENCES
[1] M. H. J. Bollen, "Understanding Power Quality Problems, Voltage Sags and Interruptions". Piscataway, NJ: IEEE Press, 2000. [2] M. H. J. Bollen and I. Y. H. Gu, "Signal Processing of Power Quality Disturbances", Wiley_IEEE, 2006 [3] Angelo Baggini, "Handbook of Power Quality" John Wiley & Sons, 2008 [4] A. Elmitwally, S. Farghal, M. Kandil, S. Abdelkader, and M.Elkateb, Proposed wavelet-neurofuzzy combined system for power quality violations detection and diagnosis, Proc. IEE, Gen. Transm. Distrib., vol. 148, no. 1, pp. 1520, Jan. 2001. [5] S. Santoso, J. P. Edward, W. M. Grady, and A. C. Parsons, Power Quality Disturbance Waveform Recognition Using Wavelet-Based Neural ClassifierPart 1: Theoretical Foundation, IEEE Trans. Power Del., vol. 15, no. 2, pp. 222228, Feb. 2000. [6] S. Santoso, J. P. Edward, W. M. Grady, and A. C. Parsons, Power Quality Disturbance Waveform Recognition Using Wavelet-Based Neural Classifiers-Part 2: Application, IEEE Trans. Power Del., vol. 15, no. 1, pp. 229235, Feb. 2000. [7] Z. L. Gaing, "Wavelet-based neural network for power disturbance recognition and classification" IEEE Trans. Power Del, Vol. 19, No. 4, pp. 1560-1568, October 2004. [8] E. Perez and J. Barros, "A Proposal for On-Line Detection and Classification of Voltage Events in Power Systems", IEEE Trans Power Del, vol 23, no. 4, pp. 2132-2138, October 2008. [9] P.K. Dash, S. Mishra, M.M.A. Salama, A.C. Liew, Classification of Power System Disturbances Using A Fuzzy Expert System and A Fourier Linear Combiner, IEEE Trans. Power Del, Vol. 15, No. 2, pp.472-477, April 2000. [10] M. Reaz, F. Choong, M. Sulaiman, F. Yasin and M. Kamada, " Expert System for Power Quality Disturbanc Classifier", IEEE Trans Power Del, vol 22, no. 3, pp. 1979-1988, July 2007. [11] E. Styvaktatis, M. H. J. Bollen and I. Y. H. Gu, "Expert System for Classification and Analysis of Power System Events", IEEE Trans Power Del, vol 17, no. 2, pp. 423-428, April 2002. [12] Power System Blockset. User`s Guide, The Math Works, Inc., Natick, MA, 2000. [13] Stephane Mallat, ' A Wavelet Tour of Signal Processing' Academic press, USA, 1999. [14] A. Girgis, W. Chang, E. Makram, "A Digital Recursive Measurement Scheme for on-Line Tracking of Power System Harmonics", IEEE Transactions on Power Delivery, Vol. 6, No. 3, pp. 1153-1160, July 1991. [15] http://www.standards.ieee.org.

Fig. 15 The practical captured waveform.


1

Waveform
am plitude (pu)

0.8

0.6

0.4

0.2

0.01

0.02

0.03

0.04

0.05 Time (sec)

0.06

0.07

0.08

0.09

0.1

Fig. 16 The amplitude of the practical waveform


1

0.5

0 Slope -0.5 -1 -1.5

0.01

0.02

0.03

0.04

0.05 Time (sec)

0.06

0.07

0.08

0.09

0.1

Fig. 17 The amplitude slope of the practical waveform


0.75

0.5 Fuzzy output 0.25 0

0.01

0.02

0.03

0.04

0.05 Time (sec)

0.06

0.07

0.08

0.09

0.1

Fig. 18 Fuzzy-expert system output

403

S-ar putea să vă placă și