You are on page 1of 6

,QWHUQDWLRQDO6\PSRVLXPRQ$UWLILFLDO,QWHOOLJHQFHDQG6LJQDO3URFHVVLQJ $,63

A Modified Imperialist Competitive Algorithm


for Digital IIR Filter Design

MohammadAli Sharifi Hamed Mojallali


Department of Electrical, Computer and Biomedical Electrical Engineering Department
Engineering Faculty of Engineering
Islamic Azad University, Qazvin Branch University of Guilan
Qazvin, Iran Rasht, Iran
m.sharifi6283@gmail.com mojallali@guilan.ac.ir

Abstract Digital infinite impulse response (IIR) filter have based algorithms, the ICA starts with a random generated
become the target of growing interest, because they often provide population called countries. The countries with best costs are
a much better performance and less computational cost than considered as imperialists and the rest of them are called
finite impulse response (FIR) filters. Since the problem of error colonies. Movement of the colonies toward their related
surface of designing Digital IIR filters is generally nonlinear and
imperialist and imperialistic competition among the empires
multimodal, global optimization techniques are required in order
to avoid local minima. In this paper, an evolutionary method form the basis of the ICA. These mechanisms make population
based on Imperialist Competitive Algorithm (ICA) has been to converge to certain spots in the search space where the best
proposed to design Digital IIR filters. By adding a step to the solution founded so far are located.
standard ICA algorithm, its performance has been improved in Exploration and exploitation are two major concepts in
searching solution space and convergence to the global minima. evolutionary algorithms. More exploration results in creating
Simulation results show the efficiency of the proposed method to more solution candidate in the search space which helps the
design Digital IIR filter. algorithm to escape from local minima. On the contrary,
exploitation improves existing solutions and results in fast
Index Terms IIR digital filter, Adaptive filter, System
identification, Optimization, Imperialist Competitive Algorithm. convergence in these algorithms. For instance, in GA,
crossover and mutation operators provide exploitation and
exploration, respectively. Also, lower and upper values for
learning factors result in better exploitation and exploration in
I.INTRODUCTION
PSO algorithm, respectively. In addition, appropriate
Digital IIR filters are useful in a wide range of applications modification in evolutionary algorithms can improve
where a highly-selective processing of discrete signals is exploration and exploitation concepts. Changing operators and
desirable. They are used to modify, reshape, or manipulate the steps and also adding some steps to the existing steps are
frequency spectrum of a signal according to some desired examples of appropriate modification in these algorithms [8-
specifications. These filters often provide a much better 10].
performance and less computational cost than FIR filters [1-3]. In this paper, performance of standard ICA has been
A major concern in IIR filter design is that the cost function improved by an additional step. This modification improves
of design problem has generally multimodal error surface. This exploration and exploitation and results in better balance
multimodal error surface causes the design process to get stuck between these two concepts. Application of the modified ICA
in local minima easily and prevents it to converge to global (MICA) for designing digital IIR filters shows the performance
optimum. In order to deal with this problem, a design method of MICA to find better solution and escape from local minima.
is required to achieve global minima in a multi-modal error The remainder of the paper is organized as follows. The
surface. In recent years, evolutionary algorithms have been problem of digital IIR filter design is described in section 2. In
employed to find global optimum and scape from local section 3, the standard ICA is introduced and then MICA is
minimum in a nonlinear searching space for multimodal presented. Section 4 investigates the application of this
optimization problem and adaptive filtering. Some employed modified algorithm to design digital IIR filter. Then, the
ones include genetic algorithm (GA) [4], harmony search simulation results are compared to the results obtained from
algorithm (HS) [5], particle swarm optimization algorithm other optimization algorithms such as differential evolution
(PSO) [6] and ICA [7]. (DE), PSO, standard ICA, orthogonal ICA (OICA) [11] and
ICA is a meta-heuristic algorithm which was inspired by ICA combined with GA (GAICA) [9].
the process of socio-political evolution. Like other population

,((( 
II.STATEMENT OF THE PROBLEM based on the probability of each one. The initial countries are
The relation between input, output and the transfer formed according to Eq. 4.
function of digital IIR filter is as the following:
x = xmin + (xmax xmin ) rand (1, nvar) (4)
y(n) = U
k=0 bk x nk - V
k=0 ak y nk (1)
where xmin and xmax are lower and upper limits,
respectively. nvar is the number of problem parameters that is
U
k=0 bk Z
-k
H(z) = (2) going to be determined. rand (1, nvar) is a random vector.
-k
1+ V
k=1 ak Z Forming initial empires, imperialists started to improve their
colonies. This fact has been modeled by moving all colonies
where ak and bk are filter coefficients, x(n) and y(n) are toward their imperialist. Figure 2 shows the colonies
input and output, respectively. In digital IIR filter design, the movement toward their imperialist. Also, the relation of this
desired system is unknown. Therefore, the design process is movement is shown in Eq. 5.
defined as a system identification problem as shown in Fig. 1
[12 -14]. In fact, digital IIR filter designing problem is
x' = x + {r} (t x)  
introduced as minimization of a cost function defined as mean
squared error (MSE) according to Eq. 3. When this error
Where is greater than 1 and close to 2; > 2 values cause
function reaches its minimum value, optimum weights are
instability [7]. {r} is a random vector and its dimensions is
obtained for the filter.
equal to the problem dimension. It is used to cause deviation on
1 2 the way of movement. t and x are the imperialist and colony
J= kN= 1 d(k) y(k) (3) positions respectively.
N

Fig. 2. Movement of colonies to its new location in the standard ICA [7].

Fig. 1. Block diagram of system identification process using adaptive IIR The next step in revolution. It causes a country to have a
filter. suddenly change in its socio-political characteristics. It is
modeled by random movement of a colony and getting placed
at a new random position. This random movement results in
III.MODIFIED IMPERIALIST COMPETITIVE ALGORITHM exploration and creating new solution candidates to escape
from local minima. Figure 3 describes the random changes in
A. Standard imperialist competitive algorithm colonies position. Equation 6 shows how revolution changes
ICA, introduced by Atashpaz and Lucas [7], is a new colonies position.
evolutionary optimization method which is inspired by
imperialistic competition. Movement of the colonies toward x ~ N(x, ) ~ x + N(0 , 1) (6)
their related imperialist and imperialistic competition among
the empires form basis of the ICA. These mechanisms cause where N(0,1) is a random number between 0 and 1 with
initial population to converge to certain spots in the search normal distribution. is the step length and its value is often
space where the best solution founded so far are located. considered to be equal to (xmax xmin) where is almost
Like other evolutionary algorithms, it starts with an initial equal to 0.1 [7].
population called country. Then, this population is divided into After revolution step, the position of a colony is checked in
two types of colonies and imperialists which all together form each empire. If a colony has better position than imperialist, the
empires. Some countries with lower cost are determined as imperialist country is replaced by the colony.
imperialist and other countries are allocated to each imperialist


learning factors a1 and a2 are set 1.5 and 2.5 respectively.
Although this relation is almost like particle velocity relation in
PSO algorithm, there are some differences between them. In
PSO, particle velocity is related to best position of the particle
and the best position of whole particle swarms' best position.
But, in our modified ICA according to the Eq. 8, new position
of each colony is related to the vectors between the colony
toward its imperialist and the best imperialist.
As the assimilation step causes population convergence to
location of the best solution founded so far in the search space,
additional step in MICA improves the colonies obtained from
assimilation and revolution and converges them to better
solution found so far. Also, choosing appropriate values for a1
and a2 provides better exploration and exploitation to escape
from local minima and converge to global minimum. Figure 4
Fig. 3. Revolution in colonies [10]. shows the colony movement toward its new location in
additional step. Pseudo-code of MICA is shown in Fig. 5.
Then, total power of each empire is calculated as the
imperialist power plus a percentage of the colonies total power
as shown in Eq. 7.

total cost = f (imp)+ mean (f(col))  

determines more or less imperialist or colony role in the


emperor objective function. Its value is less than one [7]. In
each iteration the weakest imperialist loses one of its colonies
and a more powerful one which is determined through a
selection method like roulette wheel selection gradually add
this colony to their colonies. When an imperialist loses all its
colonies, it becomes the colony of one of the imperialists.
These stages are repeated frequently until stopping criteria is
satisfied.
B. Modified imperialist competitive algorithm Fig. 4.  Movement of colonies to its new location in the modified ICA.
In this paper, performance of ICA has been improved by
adding a step. In this modified version of ICA, after
exchanging position between the colony with better position IV.SIMULATION RESULTS
and imperialist, the best imperialist among the imperialists is This section investigates the utilization of MICA to design
determined and new position of each colony is calculated as Digital IIR filters. Then, simulation results are compared with
Eq. 8. the results obtained from other evolutionary algorithms. Each
algorithm is evaluated for 100 times; minimums, means,
xnew = xold + rand1 a1 (xImp - xCol ) + rand2 a2 (xbestImp - maximums and standard deviations of errors are shown in
xCol ) (8) tables. High and low value of the filter coefficients for the
system is +2 and -2, respectively. For PSO algorithm,
xImp and xbestImp are the positions of the related imperialist of population number is 80; Inertia weight is 0.9. c1 and c2 are set
the colony and the best imperialist in that iteration, 2.05. Number of countries and imperialists in ICA and MICA
respectively. rand1 and rand2 are random numbers between 0 to are 80 and 8, respectively. Probability of revolution occurrence
1. a1 and a2 are learning factors which determine the is 0.1. In MICA, Learning factors a1 and a2 are set 1.5 and 2.5,
effectiveness of (xImp - xCol ) and (xbestImp - xCol ) vectors in the respectively.
movement. The larger values for a1 and a2 are applied for fine
exploration of a region while smaller values result in fine Example 1: The system and filter transfer functions are,
exploitation and faster convergence. So, they can adopt various respectively [2, 15]
values to reach better exploitation or exploration. In this paper,
to increase the effectiveness of movement toward the best 1 0.4 z -2 - 0.65 z -4 + 0.26 z -6
Hd z-1 = (9)
imperialist (best solution has been ever found), a2 is set larger 1 0.77 z -2 - 0.8498 z -4 + 0.6486 z -6

than a1. Also, to reach better exploration to escape from local


b0 + b1 z -1 + b2 z -2 + b3 z -3 + b4 z -4 + b5 z -5
minima and better exploitation to improve existing solutions H z-1 =   
and to make better balance between these two concepts, the 1 + a1 z -1 + a2 z -2 + a3 z -3 + a4 z -4 + a5 z -5


TABLE I. RESULTS OF DIFFERENT ALGORITHMS FOR EXAMPLE 1.

Approach Min Mean Max SD

DE 0.21338 0.39875 0.8504 0.11667

PSO 0.094362 0.35613 1.8726 0.28653

ICA 0.16462 0.46374 1.6796 0.298

OICA 0.11391 0.41083 1.3535 0.26594

GAICA 0.14241 0.56876 1.6469 0.34174

MICA 0.03279 0.22964 1.6094 0.28211

Fig. 5. Pseudo-code of MICA.

The input to the system and the filter is a white-noise


sequence; the data length is N = 100; white-Gaussian noise
with zero mean and unit variance is added to output of the
desired filter with 20dB SNR; Iteration number is 6000. The
filter transfer function order is less than the desired one. So, the
error surface is multimodal.
Table I shows minimums, means, maximums and standard
Fig. 6. Normalized cost function value versus number of cost function
deviations of errors values for different evolutionary iterations averaged over 100 random runs of different algorithms
algorithms. Figure 6 indicates the comparison between errors (Example 1).
obtained from different algorithms in 100 evaluations.
According to the Table I and Fig. 6, the minimum cost
obtained from MICA algorithm is 0.22964 which is lower than
The input to the system and the filter is a white-noise
other algorithms.
sequence; the data length is N = 1000; SNR is 30dB for
additional white-Gaussian noise with zero mean and unit
Example 2: Digital IIR filter and desired filter transfer
variance to the output of desired filter; Iteration number is 500.
functions are given in equations 11 and 12, respectively [3, 15].
Since the reduced order filter is employed for the identification,
the error surface is multi-modal.
1 1.8 z -2 + 1.04 z -4 + 0.05 z -5 + 0.192 z -6 Table II shows minimums, means, maximums and standard
Hd z-1 = (11)
1 0.8 z -2 - 0.17 z -4 - 0.56 z -6 deviations of errors values for different evolutionary
algorithms. Figure 7 indicates the comparison of errors
b0 + b1 z -1 + b2 z -2 + b3 z -3 + b4 z -4 + b5 z -5 obtained from different algorithms in 100 evaluations.
H z-1 = (12)
1 + a1 z -1 + a2 z -2 + a3 z -3 + a4 z -4 + a5 z -5 Comparing six algorithms, the MSE of the MICA is 0.13
which is better than the other algorithms. Also, the superiority
of MICA to reach minimum cost is shown in Fig. 7.


TABLE II. RESULTS OF DIFFERENT ALGORITHMS FOR EXAMPLE 2. TABLE III. RESULTS OF DIFFERENT ALGORITHMS FOR EXAMPLE 3.

Approach Min Mean Max SD Approach Min Mean Max SD

DE 0.20774 0.28983 0.36614 0.030403 DE 2.0621e-005 0.00022916 0.0012309 0.00021096

PSO 0.088339 0.25279 0.3426 0.055488 PSO 2.728e-005 0.00022163 3.9569e-005


7.8908e-007

ICA 0.11009 0.21189 0.31927 0.053804 ICA 0.0019267 0.015781 0.0028352


1.3831e-006

OICA 0.098886 0.18841 0.30411 0.050093 OICA 0.0059582


2.2445e-006 0.00099203 0.0012911

GAICA 0.10417 0.21143 0.32781 0.062821


GAICA 5.4514e-008 0.00050732 0.0051602 0.00086285

MICA 0.076191 0.13884 0.31075 0.049566


MICA 2.6923e-026 7.8852e-020 3.2937e-018 3.8218e-019

Fig. 7. Normalized cost function value versus number of cost function


iterations averaged over 100 random runs of different algorithms
(Example 2). Fig. 8. Normalized cost function value versus number of cost function
iterations averaged over 100 random runs of different algorithms
Example 3: Digital IIR filter and desired filter transfer (Example 3).
function are given in equations 13 and 14 respectively [2, 15].
V.CONCLUSION
-1 0.05 0.4 z -1 The presented study describes a modified version of ICA
Hd z = (13)
1 1.1314 z -1 + 0.25 z -2 (MICA). The difference between MICA and standard ICA is
b0 b z -1 an extra step which results in better exploration and
H z-1 = (14)
1 + a0 z -1 + a1 z -2 exploitation and a good balance between these two major
concepts. This modified ICA was applied to design of digital
The input to the system and the filter is a white-Gaussian IIR filter in three examples. The comparison of simulation
noise with zero mean and unit variance which its data length is results obtained from MICA and some evolutionary
N = 1000; Iteration number is 200. algorithms show the effectiveness of the MICA to escape from
Table III and Fig. 8 show the mean square error (MSE) local minima and converge faster to the global minima.
averaged over 100 different runs. The error value of modified
ICA is considerably less than other algorithms. Also, the
convergence speed of MICA to global minima is superior to
other ones.


REFERENCES [9] M.H. Moradi, A. Zeinalzadeh, Y. Mohammadi and M. Abedini,
"An efficient hybrid method for solving the optimal sitting and
[1] A. Kalinli and N. Karaboga, A new method for adaptive IIR
sizing problem of DG and shunt capacitor banks simultaneously
filter design based on Tabu search algorithm, Int. J. Electron.
based on imperialist competitive algorithm and genetic
Commun. (AE), vol. 59, no. 2, pp. 111117, 2005.
algorithm", International Journal of Electrical Power & Energy
[2] N. Karaboga, A new design method based on artificial bee Systems, vol. 54, pp.101-111, January 2014.
colony algorithm for digital IIR filters, Journal of the Franklin
[10]M. Sharifi, H. Mojallali, Design of IIR Digital Filter using
Institute 346, pp. 328-348, November 2009.
modified chaotic orthogonal imperialist competitive algorithm,
[3] Ch. Dai & W. Weirong, Seeker Optimization Algorithm for International Journal of Engineering, Transactions A: Basics,
Digital IIR Filter Design, IEEE Transactions on industrial Vol. 27, No. 7, pp. 1035- 1044, 2014.
electronics, Vol. 57, no. 5, may 2010.
[11]A. Kaveh, S. Talatahari, "Optimum design of skeletal structures
[4] S.C. NG, S.H. LEUNG, C.Y.CHUNG, A. LUK & W.H. LAU, using imperialist competitive algorithm", journal ScienceDirect,
The Genetic Search Approach. A new Learning algorithm for Computers and Structures, vol. 88, pp.12201229, 2010.
Adaptive IIR filtering, Signal Processing Magazine, IEEE, vol.
[12]A. Kalinli and N. Karaboga, Artificial immune algorithm for
13, Issue 6, pp. 38 46, November 1996.
IIR filter design, J. Eng. Appl. Artif. Intell., vol. 18, no. 5, pp.
[5] S. Ghosh, D. Kundu, K. Suresh, S. Das and A. Abraham, 919929, December. 2005.
Design of Optimal Digital IIR Filters by Using a Bandwidth
[13]J. Luukko, K. Rauma, "Open-loop adaptive filter for power
Adaptive Harmony Search Algorithm, World Congress on
electronics applications", IEEE Transactions on Industrial
Nature & Biologically Inspired Computing (NaBIC), pp. 481-
Electronics, vol. 55 (2), pp. 910917, February 2008.
486, December 2009.
[14]D. J. Krusienski and W. K. Jenkins, Particle swarm
[6] R. Singh and S. K. Arya, Optimization of IIR digital filters
optimization for adaptive IIR filter structures, in Proc. Congr.
using Particle Swarm Optimization, International Conference
Evol.Comput, pp. 965970, January 2004.
on Communication, Information & Computing Technology
(ICCICT), pp. 1 7, October 2012. [15]M. S. White & S. J. Flockton, Adaptive recursive filtering
using evolutionary algorithms, in Evolutionary Algorithms in
[7] E. Atashpaz-Gargari, C. Lucas, Imperialist competitive
Engineering Applications, D. Dasgupta and Z. Michalewicz,
algorithm: an algorithm for optimization inspired by
Eds. Berlin, Germany: Springer-Verlag, 1997, pp. 361376.
imperialistic competition, IEE Cong Evol. Comput, pp.46617,
2007.
[8] S. Talatahari, B. Farahmand Azar , R. Sheikholeslami and A.H.
Gandomi, Imperialist competitive algorithm combined with
chaos for global optimization, Commun Nonlinear Sci. Numer.
Simulat, vol. 17, pp. 1312-1319, March 2012.



You might also like