A Comparison between Craziness based Particle Swarm Optimization and Particle Swarm Optimization for the Design of Digital FIR Band Pass Filter

DOI : 10.17577/IJERTCONV4IS15026

Download Full-Text PDF Cite this Publication

Text Only Version

A Comparison between Craziness based Particle Swarm Optimization and Particle Swarm Optimization for the Design of Digital FIR Band Pass Filter

Kirandeep Kaur

Department of Electronics & Communication Engg Giani Zail Singh PTU Campus, Bathinda

Beant Singh

Department of Electronics & Communication Engg Giani Zail Singh PTU Campus, Bathinda

Balraj Singh

Department of Electronics & Communication Engg Giani Zail Singh PTU Campus, Bathinda

Darshan Singh Sidhu Govt. Polytechnic College, Bathinda

AbstractDigital filters play an important role in the field of digital signal processing. Linear phase Finite Impulse Response (FIR) filters are used in numerous applications due to their nature of phase linearity as well as frequency stability. The design of Finite Impulse Response (FIR) digital band-pass filter using two population based global stochastic search technique have been implemented. Craziness based Particle Swarm Optimization (CRPSO) and Particle Swarm Optimization (PSO). CRPSO is the advance version of Particle Swarm Optimization. A comparison of CRPSO and PSO has been made on the basis of their control parameters. The achieved results show that the CRPSO Algorithm perform better than that of PSO in terms of achieved magnitude error and ripples in pass- band and stop-band.

Keywords Craziness based Particle Swarm Optimization, FIR Band Pass Filter, Particle Swarm Optimization

  1. INTRODUCTION

    A signal is defined as any physical quantity that varies with time, space, or any other independent variables. Basically signal is the carrier of information which is germinated in almost every field of science and engineering. The operation which modifies, analyzes and manipulates the information bearing signal is called signal processing. Signal processing have two subcategories named as analog signal processing (ASP) and digital signal processing (DSP) [9].

    A digital signal processor is an integrated circuit which is designed for high speed data manipulation. DSP is used in variety of applications like audio, communications image manipulation, data acquisition and data control applications. DSP is the method of performing the mathematical operations on the signals in digital domain. The main objective of the DSP is to measure, filter and compress continuous real world analog signals. Real time signals are analog in nature [9].

    In signal processing, a filter is essentially a network or system that are commonly used in signal processing and communication circuit systems to extract the useful portion of the signal and remove the unwanted portion such as random

    noise which could be generated due to unavoidable circumstances.

    Filters are frequency selective devices that allow a certain range of frequency to pass while others are attenuated. This categorizes the filters into four different groups: i) Low Pass

    ii) High Pass iii) Band Pass iv) Band Stop Filters. Filters are also classified on the basis of input signal: i) Analog Filters ii) Digital Filters. Analog filters use electronic components such as resistors, capacitors and op-amps and operate on continuous time signals. On the other side, digital filter performs mathematical operation on a sampled, discrete time signal with the help of digital signal processor (DSP) to enhance the desired features of the applied signal. The major advantages of digital filters over analog filters are their small physical size, high accuracy and reliability [9].

    Digital filters are divided into two broad categories depending on their impulse responses: Finite Impulse Response (FIR), Infinite Impulse Response (IIR). IIR filter have infinite impulse response. IIR filters are known as recursive filter. IIR filters output depend on the past and present inputs also. FIR filters are known as non recursive filters because of absence of feedback in the circuit. The output of the filter depends only on the present input. FIR filters having a finite impulse response with in a finite time. The main advantages of the FIR filter over the IIR filter, linear phase and stability whereas IIR filter has nonlinear phase and are not stable. Digital FIR filters involve only zeroes and digital IIR filters involves both poles and zeroes [1, 4].

    Optimization is the process of selecting best element from the set of available elements regarding to the specified criteria. It can be described as a process of finding the condition that gives the optimum value of objective function. There are many types of optimization techniques which are used to design the digital FIR filters such as Genetic Algorithms (GA), Ant colony Optimization (ACO), Artificial Bee Colony (ABC), Particle Swarm Optimization (PSO), Predator Prey Optimization (PPO) and Differential Evolution [10].

    Particle Swarm Optimization technique was developed by Eberhart and Kennedy in 1995. PSO is a flexible, robust

    population based stochastic optimization algorithm. This optimization technique requires no gradient and achieves a global optimal solution for the given multimodal objective function minimization in digital design problems. PSO is easy to implement when compared to other methods and its convergence can be controlled with few parameters only. The

    The absolute error 1() and squared error of magnitude response e2(x) are defined as given below:

    1() = absolute error 1 norm of magnitude response.

    2()= squared error 2 norm of magnitude response.

    k

    speed of the PSO algorithm is very fast. It is based on the swarm intelligence. It can be useful for the both engineering

    e1(x) = |Hd(i) |H(i, x)||

    i=0

    (7)

    use and scientific research fields [10].

    The limitations of the classical PSO are premature convergence and stagnation problem. To overcome these

    e x K

    2

    2

    i 0

    Hd i H i , x

    2 1/ 2

    (8)

    problem, an improved version of PSO, called craziness based particle swarm optimization (CRPSO) technique is used which

    Desired magnitude response:

    ( ) = {1,

    (9)

    is improved version of PSO and employed for FIR band pass

    0,

    filter design. The CRPSO algorithm tries to find the best coefficients that are closely match to the ideal frequency response and it presents the effectiveness, comprehensive set

    The ripple magnitudes of pass band 1() and stop band

    2() are to be minimized. Ripple magnitudes are defined as:

    1() = {|(,)|} {|(,)|} (10)

    of results and better performance of the applied designed algorithm [2].

    This paper is arranged as follows: In section II, the FIR band pass filter design problem is formulated. Section III

    i

    i

    For p passband 2(x) = max{|H(i, x)|} For s stopband

    presents a summary of the Optimization techniques and basic steps involved. Section IV consists of the simulation results that are obtained for Band Pass FIR digital filter. Finally, Section V concludes the paper.

  2. FIR FILTER DESIGN PROBLEM

    FIR filters are known as non recursive filters because the absence of the feedback in the circuit. The output of the FIR filter depends only on the present input. FIR filters having a finite impulse response with in a finite time. The main advantage of the digital FIR filter structure is that it can easily achieve exact linear phase frequency response. For Digital FIR Filter, design problem can be declared as (i) the highest tolerable pass-band ripple, (ii) th highest tolerable stop-band ripples, (iii) the pass-band edge frequencies, (iv) the stop-band edge frequencies.

    Difference equation of FIR Filter is shown as below:

    1

    () = ( ) (1)

    =0

    M is selected as the length of filter. M-1 is the order of

    filter. The output () is the function of input signal (),

    is coefficient.

    The transfer function of FIR filter is identified by:

    1

    Aggregating all objectives, the multi-criterion constrained

    optimization problem is affirmed as:

    1() = 1() (12a)

    2() = 2() (12b)

    3() = 1() (12c)

    4() = 2() (12d)

    In numerous-condition constrained optimization problem

    for the design of the design of digital FIR filter a single optimal tradeoff point can be set up with following expression [3]:

    4

    () = () (13)

    =1

    The prescribed design condition for the design of band-

    pass Digital FIR Filter has been given in Table 2.1 below.

    Table-2.1: Prescribed design condition for the design of band-pass Digital FIR Filter

    Filter Type

    Pass-Band

    Stop-Band

    Band-Pass

    0.4 0.6

    0 0.25

    0.75

  3. OPTIMIZATION METHODOLOGY Optimization is the minimization or maximization of an

    objective function value. Optimization algorithms are

    () = ()

    =0

    (2)

    becoming popular day by day because of the availability and affordability of high speed computers. Optimal digital FIR

    The unit sample response of the digital FIR system is identical to the coefficients {} , that is defined as:

    band pass filter is designed using different optimization techniques. In this paper two optimization techniques have

    () = { , 0 1

    0, otherwise

    (3)

    been applied, Particle Swarm Optimization and Craziness

    based Particle Swarm Optimization which are discussed in

    An FIR filter has linear phase response if its unit sample response satisfies the following condition:

    detail as follow [7, 5]:

    1. Particle Swarm Optimization

      () = +( 1 )

      (4)

      H(, x)

      = c0

      + c1ej + +c

      M1

      ej(M1) (5)

      One of the simplest optimization techniques is Particle Swarm Optimization which was discovered by Eberhart and

      where = [0, 1, 2.1] (6)

      () = Desired magnitude response

      (,) = Obtained magnitude response

      Kennedy. PSO is robust and flexible optimization technique. PSO optimization techniques with implicit parallelism can be easily handled with non-differential objective function, unlike conventional optimization techniques. PSO is population

      based optimization technique. The population of the algorithm is called swarm. Member of the swarm is called particle. Personal best position of a given particle is called pbest

      where 1, 2 and 3 are the random parameters uniformly taken from the interval [0,1] and sign (3) is a function expressed as follows:

      (personal best). Position of the best particle member of the neighborhood of a given particle is called lbest (local best).

      1 where 0.05

      3

      3

      (3) = { 1 where 3 < 0.05

      (18)

      Position of the best particle of the entire swarm is called gbest (global best). PSO has two important operators namely velocity update and position update. For the duration of each generation, every particle is accelerated on the way to the particles previous best position and the global best position. A collection of particles are randomly set into motion through this search space. The new velocity is then used to calculate the next generation of the particle in the search space [7, 8, 11].

      The velocity and position updating is exempted using particle Eq (1.14), Eq (1.15) & Eq (1.16) as given below:

      +1 = + 1 () ( ) + 2

      1 and 2 are two parameters independent parameters that are used in PSO. If both are small then both the social and personal experiences are not used full and convergence speed is decreased. So instead of using independent parameters single parameter is used so 1 is large and 1-1 is small and vice-versa. To control the balance between local and global searches 2 random parameter is introduced. In the birds flocking, a bird often changes its direction suddenly. This is defined by a craziness factor and modeled in the methodology by using a craziness variable. A craziness operator is introduced. Before updating the position

      of particles the velocity of particle is crazed by:

      () ( ) (14)

      (+1) = (+1) + (4) (4) (19)

      +1 = + +1 (15) where 4 is a random parameter which is chosen uniformly

      (

      ) / (16)

      within the interval [0, 1], is a random parameter

      =

      where 1 2 are acceleration constants which which is uniformly chosen from the interval [ , ] and

      represent weighting of stochastic acceleration terms that pull each particle toward pbest and gbest positions.

      represents the individual best.

      represents the global best.

      rand() and Rand() are two random functions in the range

      P(4) ,sign(4) are defined as:

      4 = {

      4 = {

      ( ) 1, 4

      0, 4 >

      4 = {

      4 = {

      ( ) 1, 4 0.5

      +1, 4 < 0.05

      (20)

      (21)

      [0,1]

      = (1 , 2, . ) represents the ith particle .

      Algorithm of PSO

      The steps involved for the global version of PSO are written as follows:

      1. Initialize the population velocities in the d- dimensional search space.

      2. Examine the desired optimization fitness function for all particles.

      3. Now, compare the observed fitness value with the swarm particles pbest. If the fitness function value is better as compared to the pbest, then set the value of pbest equal to the present value and also the pbest location to the same as current location in d- dimensional space.

      4. After this, compare the fitness evaluation value with populations overall previous best value, if the fitness evaluation is better than gbest then update gbest value to current particles array index and value.

      5. After finding the pbest and gbest value, change the velocity and position of the particle according to Eq (14), Eq (15) and Eq (16).

      6. Go to step 2 until gbest and pbest values obtained. 7) End [11].

    2. Craziness based Particle Swarm Optimization

    CRPSO methodology is modified from PSO. CRPSO has a special feature like sudden change velocity, craziness factor and change of direction of flying to words an apparently non promising area of food depends upon the particle mood. In the craziness based particle swarm optimization technique velocity can be defined as follows:

    (+1) = 2 (3) () + (1 2) 1 1 { }

    where is a predefined probability of craziness. The steps of CRPSO as implemented for linear phase FIR band pass filter design is as follows:

    1. Initialize the population for a swarm of vectors, in which every vector represents a solution of filter coefficient values.

    2. Computation of initial cost (fitness) values of the total population, .

    3. Take the particle with the best fitness value or

      minimum fitness value that is global best (gbest) and personal best (pbest).

    4. Compare the newly calculated fitness value with previous one and select the one having better fitness value as personal best(pbest).

    5. Update velocity of particles as per Eq (17) and Eq

      (19) and position of particles as per Eq (15).

    6. Update the pbest and gbest vectors and replace the updated particle vectors as initial particle vectors.

    7. Iteration continues till the maximum iteration cycles or the convergence of minimum cost values are reached [6, 2].

  4. SIMULATION RESULTS

    FIR band-pass Digital Filter has been designed using Particle Swarm Optimization technique and Craziness Particle Swarm Optimization. The both algorithms have been executed by 100 times and 200 iterations to design the Digital FIR band-pass filter.

    1. Comparision Between PSO and CRPSO

      The orders from 20 to 36 have been varied to obtain the minimum objective function. CRPSO and PSO have been applied to design FIR Band Pass filter with order from 20 to

      +(1 )

      (1 ) { }

      36. Fig. 4.1 shows the graph of PSO verses CRPSO and it is

      2 2 1

      (17)

      plotted between different orders of filter and objective function. The minimum objective function (1.277338) is achieved at the filter order 28 with CRPSO as compared to PSO.

      Fig.4.1: Graph between Filter Orders and Objective Function for CRPSO and PSO

      For the design of Band-Pass Digital FIR Filter by implementing PSO and CRPSO the comparison in terms of parameters have been drawn in Table-4.1 below:

      Table-4.1: Comparision of parameters of CRPSO and PSO

      Parameters

      CRPSO

      PSO

      Filter Order

      28

      28

      Population Size

      110

      100

      Accelartion Constant

      0.2

      0.2

      0.2

      0.0001

      Parameters

      CRPSO

      PSO

      Magnitude Error 1

      0.846234

      1.406852

      Magnitude Error 2

      0.133962

      0.196262

      Pass-band Performance

      0.008517

      0.014578

      Stop-band Performance

      0.060822

      0.075343

      Parameters

      CRPSO

      PSO

      Magnitude Error 1

      0.846234

      1.406852

      Magnitude Error 2

      0.133962

      0.196262

      Pass-band Performance

      0.008517

      0.014578

      Stop-band Performance

      0.060822

      0.075343

      Table 4.2: Design Results for Digital FIR Band Pass Filter.

      Table 4.4: Achieved Objective Function For Filter Order 28 for CRPSO and PSO

      Objective Function

      CRPSO

      PSO

      Minimum Value

      1.277338

      2.510969

      Maximum Value

      1.756396

      2.58892

      Averagev Value

      1.683367

      2.518715

      Standard Deviation

      0.009659

      0.016295

      CRPSO gives better performance and minimum objective function. The design results for Digital FIR Band Pass have been depicted in Table 4.2. Table 4.3 shows the best optimized filter coefficients shows the best optimized filter coefficients obtained for BP filter with the order of 28 by PSO and CRPSO. For both Craziness based Particle Swarm Optimization and Particle Swarm Optimization, the achieved value of Standard Deviation for objective function is less than 1 which authenticates the robustness of the designed band- pass FIR Digital filter which is shown in Table 4.4.

    2. Analysis of Magnitude and Phase Response

    After best technique has been found out, magnitude response and phase response are plotted in MATLAB software as shown below:

    Magnitude Response:

    Fig.4.2: Magnitude Response for Band-pass Digital FIR Filter with CRPSO Algorithm

    Table-4.3: Comparison of CRPSO and PSO with Optimized Band Pass FIR Filter coefficients of Order 28

    Sr.

    No.

    No. of Coefficients

    Values of Coefficients CRPSO

    Values of Coefficients PSO

    1

    A(0)=A(28)

    -0.006525

    0.002362

    2

    A(1)=A(27)

    -0.005029

    0.001210

    3

    A(2)=A(26)

    0.013993

    -0.016115

    4

    A(3)=(25)

    0.001782

    0.001986

    5

    A(4)=A(24)

    0.007180

    0.000286

    6

    A(5)=A(23)

    0.0008493

    -0.003186

    7

    A(6)=A(22)

    -0.052160

    0.051421

    8

    A(7)=A(21)

    -0.008571

    -0.000301

    9

    A(8)=A(20)

    0.036106

    -0.043963

    10

    A(9)=A(19)

    -0.004252

    0.003411

    11

    A(10)=A(18)

    0.100029

    -0.093945

    12

    A(11)=A(17)

    0.012346

    -0.001759

    13

    A(12)=A(16)

    -0.288062

    0.291579

    14

    A(13)=A(15)

    -0.006661

    -0.000386

    15

    A(14)

    0.376800

    -0.385969

    Phase Response:

    Fig.4.3: Phase Response for Band-pass Digital FIR Filter with CRPSO Algorithm

  5. CONCLUSION

This paper presents an accurate method for designing digital band pass FIR filters by using CRPSO as a much improved version of PSO. The two heuristic optimization techniques namely Particle Swarm Optimization and

Craziness based Particle Swarm Optimization have been explored for the design of band-pass digital FIR filter. The results of both techniques have been compared in terms of magnitude errors and ripples in pass band and stop band along with the order of filter by optimizing various control parameters of Particle Swarm Optimization and Craziness based Particle Swarm Optimization algorithm. The results presented in this paper depict that CRPSO algorithm is better than PSO for solving the optimization problems. From the achieved value of Objective function, it is concluded that both PSO and CRPSO are robust in nature and CRPSO gives better results as compared to Particle Swarm Optimization.

REFERENCES

  1. Surekha Rani, Balwinder Singh and Dhaliwal Sandeep Singh Gill, Differential Evolution Biogeography Based Optimization for Linear Phase FIR Low Pass Filter Design, Chemical and Process Engineering Resarch, vol. 31, no. 6, pp.81-88, 2015.

  2. Shinam Rani and D Sidhu, Design of Digital Band Stop FIR Filter using Craziness Based Particle Swarm Optimization(CRPSO) Technique, International Journal of Scientific Research Engineering & Technology, vol. 4, no. 5, pp. 464-471, 2015.

  3. Amarjeet Kaur Jatana and D. S. Sidhu, Design of Digital FIR High Pass Filter using Particle Swarm Optimization Technique,

    International Journal of Scientific Research Engineering & Technology, vol. 4, no. 5, pp. 472-479, 2015.

  4. li>

    M. Bansal, D. S. Sidhu and B. S. Sidhu, Optimal Design of Digital IIR Band Pass Filter Using Particle Swarm Optimization, International Journal of Advanced Research in Computer Science and Software Engineering, vol.4, no. 5, pp.1133-1139, 2014.

  5. N. S. Grewal and A. Singh, Review on FIR Filter designing by Implementations of Different Optimization Algorithm, International Journal of Advanced Research in Computer Science and Software Engineering, vol. 31, no. 31, pp. 171-175, 2014.

  6. S. K. Seha, R. Kar, D. Mandal and S.P. Ghosal, IIR Filter design with Craziness based Partcle Swarm Optimization Technique, World Academy of Science, Engineering and Technology, vol. 5, no. 12, pp. 1051-1059, 2011.

  7. S. Mondal, Vasundhara, R. Kar, D. Mandal and S.P. Ghoshal, Linear Phase High Pass FIR Filter Design using Improved Particle Swarm Optimization, World Academy of Science, Engineering and Technology, vol. 5, no. 12, pp.1044-1050, 2011.

  8. R. Kaur, D. Mandal, D. Roy and S. P. Ghoshal, FIR Filter Design using Particle Swarm Optimization with Constriction Factor and Inertia Weight Approach, International Journal of Electrical and Electronics Engineering, vol. 02, no. 02, pp. 296-301, 2011.

  9. J. G. Prokis and D. G Manolakis, Digital Signal Processing: Principle, Algorithm and Applications, New Delhi: Pearson Education, Inc., Fourth Edition, 2007.

  10. K. Deb, Optimization for Engineering Design: Algorithms and Examples, Ashok K. Ghosh, Prentice Hall, Second Edition, 2005.

  11. M. Clerc and J. Kennedy, The Particle Swarm-Explosion, Stability and Convergence in a Multimodal Complex Space, IEEE Transaction on Evolutionary Computation, vol. 6, no. 1, pp. 58-73, 2002.

Leave a Reply