Вы находитесь на странице: 1из 5

Volume 2 Special Issue ISSN 2079-8407

Journal of Emerging Trends in Computing and Information Sciences

©2010-11 CIS Journal. All rights reserved.

http://www.cisjournal.org

A Wavelet Based Multi-Resolution Controller


Leena G. Jeevana, Vini Malikb
a b
Department of electrical and electronics Engg ., Department of electronics n communication Engg.
Manav Rachna International University, IILM engg. College
a b
leenagjeevan@rediffmail.com vinimalik@rediffmail.com

ABSTRACT
In this paper, wavelet based PID controller is studied. There are two different approaches by which a frequency analysis of
a time dependent signal can be affected, locally in time. The first procedure is the short-time FT, the second is the ‘wavelet
Transform' in which high frequency component are studied with sharper time resolution than low frequency components.
The similarities and differences between these two are studied. The principle of PID control system is simple and function
is robust if it were well tuned, however it tends to fall in sustaining oscillations state because of bad tuning in actual plant.
The non-linear and time-varying natures of the process together with the large disturbances of several types were the key
challenge for the control design. A controller based on multi- resolution decomposition using wavelets is presented in the
paper. The controller is similar to proportional integral derivative controller in principle and application. The principle of
PID control system is simple and function is robust if it were well tuned, however, it tends to fall in sustaining oscillation
state because of bad tuning in actual plant. Also, the output from a control system represents the cumulative effect of
uncertainties such as measurement noise, frictional variations and external torque disturbances which manifest at different
scales. These scales are then used to compensate for the uncertainties in the plant. The wavelet is used to decompose the
error signal into signals at different scales. These signals are then used to compensate for the uncertainties in the plant.

Keywords: Wavelets, Wavelet controller, PID control, Noise identification

I. INTRODUCTION of sustaining oscillations may be clearly separated and


defects of control system would be detected. Hitherto,
Generally, control system is having a feedback frequency analyses of any signals have been mainly
structure, where the corrective function is designed to carried out by means of fast Fourier transform (FFT). FFT
work for minimizing deviation from the target value. But analysis is applied to diagnose oscillating behaviours and
as for the actual control system, improper behaviour the method for the root cause identification is established.
would be yielded due to poor tuning resulting in low Now, FFT is challenged by a new method of frequency
adjustment capability [2]. The pid controller has been analysis i.e. Wavelet transform (WT).
around for more than eighty years and is still widely used In section II, wavelet transform and its
across the industry. The reason for its longevity can be decomposition are given. In section III, a brief
traced to the fact that it is easy to implement in analog introduction of PID, its tuning methods and the framework
circuits and is intuitive, which makes it easy to tune. On of an MRPID is given in section III. Finally some
the other hand, this very simplicity limits the performance concluding remarks are included in section IV.
of PID controllers. In some cases, due to improper control
behaviour, a part of signal is additionally applied as a II. WAVELET TRANSFORM
positive feedback that may newly cause not only lowered II.1 Contrast against Fourier
adjustment capability but also fluctuation deviation
(sustaining oscillations). The wavelet transform, Transform
developed earlier as a mathematical tool has in recent Fourier transform decomposes a signal to
years been used in various industrial applications. complex exponential functions of different frequencies. In
Wavelets possess two properties that make them Fourier Transform, the signal x
especially valuable for data analysis: they reveal local
properties of data and they allow multi scale analysis. (t) is multiplied with an exponential term, at some
Recently, some work has been reported on the use of time- frequency ‘f’ and then integrated over all times. The
frequency localization of wavelet transform in control exponential term can also be written as:
industry. In this paper multi resolution property of wavelet Cos (2.pi.f.t)+ j sin (2.pi.f.t) ..(1.1)
transform is used to design a controller. The controller is
analogous to the well-known proportional-integral- The above expression has a real part of cosine of
derivative controller is represented. frequency f, and an imaginary part of sine of frequency f.
The wavelet transform provides another vehicle So what we are actually doing is, multiplying the original
in developing high performance controllers based on PID signal with a complex expression which has sines and
principles. The variations caused by control system is cosines of frequency f. then we integrate this product [2].
characterised by its sustaining oscillations. By If the result of this integration is a large value then we say
transforming time series data into frequency, components that: the signal x(t), has a domain spectral component of
17
Volume 2 Special Issue ISSN 2079-8407
Journal of Emerging Trends in Computing and Information Sciences

©2010-11 CIS Journal. All rights reserved.

http://www.cisjournal.org

frequency ‘f’. this means that major portion of this signal functions obtained by shifting and dilating the graph of a
is composed of frequency f. If the integration result is a wavelet.
small value, then this means that the signal does not have a ψa,b (τ) = 1/√a ψ ( (t−b)/a) ,..(1.3)
major frequency component of frequency in it. If this
integration result is zero, then the signal does not contain Where b is the shift or center of ψa,b , and a is
the frequency at all. So, the information provided by the the scale. Alternatively, the scaling factor 1/a may be used.
integral, corresponds to all time instances, since the If a > 1, then ψa,b is obtained by stretching the graph of ψ,
integration from minus infinity to plus infinity overtime. It and if a < 1, then the graph of ψ is contracted. The value a
follows that no matter where in time the component with corresponds to the notion of frequency in Fourier analysis.
frequency ‘f’ appears, it will affect the result of integration Wavelet transform can treat time and frequency
as well. This is why Fourier transform is not suitable if the simultaneously in time-frequency domain. The wavelet
signal has time varying frequency i.e. the signal is non- transform seems to provide another vehicle in developing
stationary.[3] high performance controllers based on PID principles.
Fourier transforms (transformation to frequency The basic idea of multi-resolution analysis is to
domain) and wavelet transform (transformation to time- represent a function as a limit of successive
frequency domain) are carried out to compare these two approximations.[3][4] Each of these successive
transformations. The case of Fourier transform is a power approximations is a smoother version of the original
spectrum with 2-dimensional coordinate system where function with more and more of the finer details added.
frequency (or period) at the abscissa axis and power Consider a continuous signal f (t) and generate the
(square of amplitude) at the ordinate axis is drawn in the following sequence of approximation. The continuous
frequency domain where the time factor is lost. wavelet transform was computed by changing the scale of
On the other hand, in case of wavelet transform, analysis window, shifting the window in time, multiplying
3-dimensional information (containing time factor)is by the signal, and integrating over all times. In multi
provided, where time at the abscissa axis, frequency(or resolution analysis, filters of different cut-off frequencies
period) at the ordinate axis and amplitude intensity by are used to analyze the signal at different scales. The
contour lines with different hues are presented. signal is passed through a series of high pass filters to
analyze the high frequencies, and it is passed through a
II.2 Wavelets and Multi -Resolution series of low pass filters to analyse the low frequencies.
Decomposition The resolution of the signal, which is a measure of the
A wavelet is defined like a wave of very short amount of detail information in the signal, is changed by
duration. The wavelet function ψ(t) is called mother the filtering operations, and the scale is changed by the up
wavelet because different wavelets are generated from it, sampling and down sampling operations. Each
by its dilation to contraction and translation, these are approximation is expressed as a weighted sum of the
called daughter wavelet ψ a.b (τ) and its mathematical shifted versions of the same function.
representation is Subsampling a signal corresponds to reducing the
ψ a.b (τ) = ψ(t-b) a>0; a,b₃R;τ=(t-b)/a..(1.2) sampling rate, or removing some of the samples of the
signal. For example, subsampling by two refers to
Where a is the dilation variable and b is the translation dropping every other sample of the signal. Subsampling
variable. There are different mother wavelets like: Haar, by a factor n reduces the number of samples in the signal n
Mexican Hat, Morlet, Meyer, Daubechies, Rasp1 and times. Upsampling a signal corresponds to increasing the
others more. sampling rate of a signal by adding new samples to the
Some well-known wavelets are: signal.for example, upsampling by two refers to adding a
new sample, usually a zero or an interpolated
1. Mexican hat: useful for detection in computer value,between every two samples of the
vision. It is the second derivative of a Gaussian signal.Upsampling a signal by a factor of n increasesthe
function. number to samples in the signal by a factor of n.
2. Haar: The first wavelet, introduced in 1909. Although it not the only possible choice, DWT
Its simple definition is helpful for computing coefficients are usually sampled from the CWT on a
wavelet transforms, but because it is not dyadic grid, i.e., s0 = 2 and τ 0 = 1, yielding s=2j and τ
continuous, it is not as useful as other wavelets =k*2j. This sequence will be denoted by x[n], where n is
for analyzing continuous signals. an integer. The procedure starts with passing this signal
3. Daubechies-2p: Wavelets with p vanishing (sequence) through a half band digital lowpass filter with
moments, to represent poly-nomials of degree impulse response h[n]. Filtering a signal corresponds to
at most p − 1. A Daubechies-2 wavelet is the mathematical operation of convolution of the signal
equivalent to the Haar wavelet. As p increases, with the impulse response of the filter.
signals can be represented using fewer The convolution operation in discrete time is
coefficients, due to fewer scales being required. defined as follows:

A wavelet family is a collection of (1.4)


18
Volume 2 Special Issue ISSN 2079-8407
Journal of Emerging Trends in Computing and Information Sciences

©2010-11 CIS Journal. All rights reserved.

http://www.cisjournal.org

P out= K p e(t)

A half band lowpass filter removes all A high proportional gain results in a large change
frequencies that are above half of the highest frequency in in the output for a given change in the error. If the
the signal. proportional gain is too high, the system can become
unstable. In contrast, a small gain results in a small output
response to a large input error, and a less responsive (or
sensitive) controller. If the proportional gain is too low,
the control action may be too small when responding to
system disturbances. Summing the instantaneous error
over time (integrating the error) gives the accumulated
offset that should have been corrected previously. The
accumulated error is then multiplied by the integral gain
and added to the controller output. The magnitude of the
contribution of the integral term to the overall control
action is determined by the integral gain,
Ki.
The integral term is given by:

I out = K i ∫e(t)

The integral term (when added to the


proportional term) accelerates the movement of the
process towards setpoint and eliminates the residual
steady-state error that occurs with a proportional only
controller. However, since the integral term is responding
to accumulated errors from the past, it can cause the
present value to overshoot the setpoint value (cross over
the setpoint and then create a deviation in the other
Fig. 1 Subband Coding Algorithm direction). The rate of change of the process error is
calculated by determining the slope of the error over time
and multiplying this rate of change by the derivative gain
For example, if a signal has a maximum of 1000 Hz
K d . The magnitude of the contribution of the derivative
component, then half band low pass filtering removes all
term to the overall control action is termed the derivative
the frequencies above 500 Hz.
This process can mathematically express as: gain, K d .
The derivative term is given by: Dout= K d
de(t)/dt
(1.5) The derivative term slows the rate of change of
the controller output and this effect is most noticeable
close to the controller setpoint. Hence, derivative control
is used to reduce the magnitude of the overshoot produced
III. MULTI-RESOLUTION PID
by the integral component and improve the combined
CONTROLLER controller-process stability. However, differentiation of a
signal amplifies noise and thus this term in the controller
III.1 Introduction: PID Controller and is highly sensitive to noise in the error term, and can cause
its tuning a process to become unstable if the noise and the
derivative gain are sufficiently large.
In general, a PID controller takes as its input the The proportional, integral, and derivative terms
error (e), acts on the error to generate a control output (u), are summed to calculate the output of the PID controller.
as shown in following equation:
Loop tuning
u= K p e(t)+K i ∫e(t)dt+K d de(t)/dt (1.6)
Tuning a control loop is the adjustment of its
Where K p, K i and K d are the pid gains to be selected. It is control parameters (gain/proportional band, integral
this error based design philosophy that has made the PID a gain/reset, derivative gain/rate) to the optimum values for
successful controller in industrial settings, where the plant the desired control response. Stability (bounded
is often highly nonlinear, uncertain and time varying. oscillation) is a basic requirement. The choice of method
The proportional term is given by: will depend largely on whether or not the loop can be

19
Volume 2 Special Issue ISSN 2079-8407
Journal of Emerging Trends in Computing and Information Sciences

©2010-11 CIS Journal. All rights reserved.

http://www.cisjournal.org

taken "offline" for tuning, and the response time of the PID controllers, when used alone, can give poor
system. If the system can be taken offline, the best tuning performance when the PID loop gains must be reduced so
method often involves subjecting the system to a step that the control system does not overshoot, oscillate about
change in input, measuring the output as a function of the control set point value. They also have difficulties in
time, and using this response to determine the control the presence of non-linearity, may trade off regulation
parameters. versus response time, do not react to changing process
TABLE 1 behaviour , and have lag in responding to large
disturbances.

Method Advantages Disadvantages III.3 Multi-resolution PID Controller


Manual No Math Requires
Tuning required experienced A generalization of PID controller, based on
Online personnel multi-resolution decomposition of error by using small
method waves popularly known as wavelets. The basic idea is that
Ziegler Proven Process upset, if e is decomposed as
- Method Some trial and e=∑ e i
Nichols error,
Online Aggressive Then a generalized PID controller can be formulated as
method tunning
Software Consistent Some cost u= ∑ K i e i
Tools tuning training
Online or involved Where K i are controller parameters to be determined.
offline
method. In general, a pid controller takes as its input the
May include error e and then acts on the error to generate the control
valve output u as shown in equation (1.6). Gains K P , K I , K D are
analysis the proportion derivative gains used by the system to act
sensor and on the error, respectively. In terms of frequency
allow information, the proportional and integral terms tends to
simulation capture the low-frequency information of the error signal
before and derivative captures the high-frequency information of
downloading the error signal [1]. In a similar manner, an MRPID
Cohen- Good process Offline method decomposes the error signal into its high, low and
Coon models Only good for intermediate scale components, as shown here:
first-order
processes f (x) = f H (x)+f M1 (x)+….+f M((N-1) (x)+f L (x) (1.7)

III.2 Limitations of PID control Each of these components are scaled by their
respective gains and then added together to generate the
While PID controllers are applicable to many control signal u or Applying wavelet decomposition to the
control problems, and often perform satisfactorily without error signal, as well as the cumulative effect of many
any improvements or even tuning, they can perform underlying phenomenon such as measurement noise and
poorly in some applications, and do not in general provide effects of external disturbances, which manifest on
optimal control. The fundamental difficulty with PID different scales.
control is that it is a feedback system, with constant Then each one of these components is scaled by
parameters, and no direct knowledge of the process, and its respective gain and then added together to generate the
thus overall performance is reactive and a compromise – control signal (u).
while PID control is the best controller with no model of
the process, better performance can be obtained by u =K H e H + K M1 e M1 + . . . +K MN-1 +K L e L (1.8)
incorporating a model of the process.
The most significant improvement is Unlike a PID controller, which has three tuning
to incorporate feed-forward control with knowledge about parameters (Kp, K i , K d ), an MRPID can have two or
the system, and using the PID only to control error. more parameters based on the no. of decomposition levels
Alternatively, PIDs can be modified in more minor ways, performed on the error signal.
such as by changing the parameters, improving
measurement (higher sampling rate, precision, and
accuracy, and low-pass filtering if necessary), or
cascading multiple PID controllers.

20
Volume 2 Special Issue ISSN 2079-8407
Journal of Emerging Trends in Computing and Information Sciences

©2010-11 CIS Journal. All rights reserved.

http://www.cisjournal.org

REFERENCES
[1] Shahid Parvez and Zhiqiang Gao, “A wavelet based
multi-resolution PID Controller,” IEEE Trans. on
industry application, vol. 41, no. 2, pp. 537-543,
mar 2005.

[2] Joonas Varso, Kai Zenger, Vesa holtta and Heikki,


“Advanced Solution for a benchmark Robot
For example, one-level decomposition yields a Control problem,”IEEE international symposium
low and a high-frequency component. So a controller with on computational intelligence in robotics and
one-level decomposition has two gains. In order to achieve automation,proceedings 2005,pp. 373-378, Jun 27-
higher resolution, a two-level decomposition is done on 30.
the error signal, three signal components of e are
generated. Each one of these components can be scaled by [3] J. A. Cruz-tolentino, L.E. ramos-velasco,
gain and added to generate the control signal [2][3]. A M.A.Espejel-rivera, “A self-tuning of a wavelet Pid
schematic diagram of a plant using MRPID is shown in Controller,” IEEE proceedings 2010, pp.73-78.
above figure.
All physical systems are subjected to some type [4] Toru Matsuo,“ Application of Wavelet transform to
of extraneous signals or noise during operation. Therefore, control system diagnosis,” IEE Control and
in the design of a control system, consideration has to be automation professional network, pp.81-88.
made that the system provides greater insensitivity to
noise and disturbance. The effect of feedback on noise and [5] F.Merrikh Bayat and M. Karimi Ghartemani,
disturbance greatly depends on where these extraneous “Method for designing PID Stabilisers for
signals occur in the system. In practice, disturbance and minimum phase fractional order systems,” IET
commands are often low-frequency signals, whereas control theory and applications, vol. 4,Iss 1, pp.61-
sensor noises are often high-frequency signals. This makes 70,2010.
it difficult to minimize the effect of these uncertainties
simultaneously. It is under these conditions that an [6] Shahid Parvez and Zhiqiang Gao, “A
MRPID performs extremely well. wavelet based multi-resolution PID Controller,”
IEEE proceedings, pp.1-5,2003.
IV. CONCLUSION
[7] Rached Dhaouadi, Yousef al-Assaf and Wissam
The wavelet decomposition provides much Hassounch, “A Self Tuning PID Controller using
higher resolution than the traditional PID in describing the Wavelet Networks,”IEEE proceedings ,pp. 773-
history and predicting the immediate future of the error. 777, june 15-19.
The wavelet decomposition, which represents the error
signal at different scales, provides higher resolution [8] Hui Li and Hongzhang Jin and Chen Guo, “PID
representation of the error signals than the one used in Control Based on Wavelet Neural network
existing PID and is the basis of the new controller design. Identification and Tuning and Its application to Fin
More research efforts are underway by simulation to fully Stablizer,”IEEE International Conference on
explore the potential of this new concept. Mechatronics and Automation proc. 2005,pp. 1907-
1911,July 2005.

21

Вам также может понравиться