Design of infinite impulse response (IIR) bandpass filter structure using particle swarm optimization

Similar documents
Infinite Impulse Response (IIR) Filter. Ikhwannul Kholis, ST., MT. Universitas 17 Agustus 1945 Jakarta

LECTURER NOTE SMJE3163 DSP

IIR Filter Design Chapter Intended Learning Outcomes: (i) Ability to design analog Butterworth filters

DIGITAL FILTERS. !! Finite Impulse Response (FIR) !! Infinite Impulse Response (IIR) !! Background. !! Matlab functions AGC DSP AGC DSP

Digital Processing of Continuous-Time Signals

EE 470 Signals and Systems

4. Design of Discrete-Time Filters

Digital Processing of

NH 67, Karur Trichy Highways, Puliyur C.F, Karur District DEPARTMENT OF INFORMATION TECHNOLOGY DIGITAL SIGNAL PROCESSING UNIT 3

Digital Signal Processing

ELEC-C5230 Digitaalisen signaalinkäsittelyn perusteet

EELE 4310: Digital Signal Processing (DSP)

Analog Lowpass Filter Specifications

UNIT-II MYcsvtu Notes agk

Digital Filters IIR (& Their Corresponding Analog Filters) Week Date Lecture Title

Part B. Simple Digital Filters. 1. Simple FIR Digital Filters

8: IIR Filter Transformations


Chapter 7 Filter Design Techniques. Filter Design Techniques

Filters. Phani Chavali

Designing Filters Using the NI LabVIEW Digital Filter Design Toolkit

Digital Filtering: Realization

(i) Understanding of the characteristics of linear-phase finite impulse response (FIR) filters

B.Tech III Year II Semester (R13) Regular & Supplementary Examinations May/June 2017 DIGITAL SIGNAL PROCESSING (Common to ECE and EIE)

ECE438 - Laboratory 7a: Digital Filter Design (Week 1) By Prof. Charles Bouman and Prof. Mireille Boutin Fall 2015

(i) Understanding of the characteristics of linear-phase finite impulse response (FIR) filters

The University of Texas at Austin Dept. of Electrical and Computer Engineering Final Exam

Discretization of Continuous Controllers

Experiment 4- Finite Impulse Response Filters

EEM478-DSPHARDWARE. WEEK12:FIR & IIR Filter Design

Multirate Digital Signal Processing

PHYS225 Lecture 15. Electronic Circuits

DSP Laboratory (EELE 4110) Lab#10 Finite Impulse Response (FIR) Filters

Digital Filters FIR and IIR Systems

CHAPTER 14. Introduction to Frequency Selective Circuits

FIR Digital Filter and Its Designing Methods

Computer-Aided Design (CAD) of Recursive/Non-Recursive Filters

Signals and Filtering

Performance Analysis of FIR Filter Design Using Reconfigurable Mac Unit

Continuous-Time Analog Filters

arxiv: v1 [cs.it] 9 Mar 2016

ECE503: Digital Filter Design Lecture 9

We are IntechOpen, the world s leading publisher of Open Access books Built by scientists, for scientists. International authors and editors

Brief Introduction to Signals & Systems. Phani Chavali

Design IIR Filter using MATLAB

Aparna Tiwari, Vandana Thakre, Karuna Markam Deptt. Of ECE,M.I.T.S. Gwalior, M.P, India

Multirate DSP, part 1: Upsampling and downsampling

F I R Filter (Finite Impulse Response)

EE 422G - Signals and Systems Laboratory

Narrow-Band Low-Pass Digital Differentiator Design. Ivan Selesnick Polytechnic University Brooklyn, New York

Performance Evaluation of Mean Square Error of Butterworth and Chebyshev1 Filter with Matlab

1. Find the magnitude and phase response of an FIR filter represented by the difference equation y(n)= 0.5 x(n) x(n-1)

DESIGN OF FIR AND IIR FILTERS

EEO 401 Digital Signal Processing Prof. Mark Fowler

Copyright S. K. Mitra

Design of IIR Digital Filters with Flat Passband and Equiripple Stopband Responses

GEORGIA INSTITUTE OF TECHNOLOGY. SCHOOL of ELECTRICAL and COMPUTER ENGINEERING. ECE 2026 Summer 2018 Lab #8: Filter Design of FIR Filters

Optimal FIR filters Analysis using Matlab

Frequency-Response Masking FIR Filters

Design of FIR Filters

Noise removal example. Today s topic. Digital Signal Processing. Lecture 3. Application Specific Integrated Circuits for

EELE503. Modern filter design. Filter Design - Introduction

Filters and Tuned Amplifiers

UNIT II IIR FILTER DESIGN

Classic Filters. Figure 1 Butterworth Filter. Chebyshev

Lecture XII: Ideal filters

NOVEMBER 13, 1996 EE 4773/6773: LECTURE NO. 37 PAGE 1 of 5

ECE 203 LAB 2 PRACTICAL FILTER DESIGN & IMPLEMENTATION

Adaptive Filters Application of Linear Prediction

The University of Texas at Austin Dept. of Electrical and Computer Engineering Midterm #1

Design of a Sharp Linear-Phase FIR Filter Using the α-scaled Sampling Kernel

Design and Simulation of Two Channel QMF Filter Bank using Equiripple Technique.

The University of Texas at Austin Dept. of Electrical and Computer Engineering Midterm #2

Digital Filters IIR (& Their Corresponding Analog Filters) 4 April 2017 ELEC 3004: Systems 1. Week Date Lecture Title

3 Analog filters. 3.1 Analog filter characteristics

Biosignal filtering and artifact rejection. Biosignal processing I, S Autumn 2017

Analysis The IIR Filter Design Using Particle Swarm Optimization Method

Signals and Systems Using MATLAB

Biosignal filtering and artifact rejection. Biosignal processing, S Autumn 2012

Keywords FIR lowpass filter, transition bandwidth, sampling frequency, window length, filter order, and stopband attenuation.

Final Exam Solutions June 14, 2006

Digital Filter Design

A Comparative Performance Analysis of High Pass Filter Using Bartlett Hanning And Blackman Harris Windows

Signals and Systems Lecture 6: Fourier Applications

HIGH FREQUENCY FILTERING OF 24-HOUR HEART RATE DATA

Signals and Systems Lecture 6: Fourier Applications

Digital Signal Processing

Electric Circuit Theory

Dorf, R.C., Wan, Z. Transfer Functions of Filters The Electrical Engineering Handbook Ed. Richard C. Dorf Boca Raton: CRC Press LLC, 2000

Application of Fourier Transform in Signal Processing

Design Digital Non-Recursive FIR Filter by Using Exponential Window

Application Note 7. Digital Audio FIR Crossover. Highlights Importing Transducer Response Data FIR Window Functions FIR Approximation Methods

DESIGN OF LATTICE FORM OPTICAL DELAY LINE STRUCTURE FOR MICROWAVE BAND PASS FILTER APPLICATIONS

Analog Filters D R. T A R E K T U T U N J I P H I L A D E L P H I A U N I V E R S I T Y, J O R D A N

Infinite Impulse Response Filters

Electrical & Computer Engineering Technology

Chapter 2 Infinite Impulse Response (IIR) Filter

APPENDIX A to VOLUME A1 TIMS FILTER RESPONSES

Analog Design-filters

CHAPTER -2 NOTCH FILTER DESIGN TECHNIQUES

Transcription:

Standard Scientific Research and Essays Vol1 (1): 1-8, February 13 http://www.standresjournals.org/journals/ssre Research Article Design of infinite impulse response (IIR) bandpass filter structure using particle swarm optimization Ejike C. Anene* and Johnson Otitolaiye Department of Electrical Engineering, Abubakar Tafawa Balewa University, PMB 48 Bauchi, Nigeria. *Corresponding Author Email: ejikeanene@yahoo.com Received 16 January 13; Accepted 1 February 13 --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Abstract This article presents the application of particle swarm optimization (PSO) algorithm for the design of infinite impulse response (IIR) bandpass digital filter. Bilinear transform (BLT) design method was first used as baseline method to compute the filters approximate transfer functions based on conversion of the analog filter s transfer function from the s-plane to the equivalent digital filter transfer function in z-plane. The filter transfer function was obtained from the BLT design based on the given specifications. PSO algorithm was also used to generate the optimal filter coefficients for the same specifications. A population of particles was initialized to probe the search space. The particles performance was evaluated by the fitness function defined as the mean square error between the magnitude of the designed filter and the magnitude of the desired (ideal) filter. The particle s velocity and position in the search space are adjusted according to the PSO equations. The response of the PSO designed filter was compared with the response of BLT designed filter. Simulation results show close performance of both filters in discriminating a multi-frequency input signal. Keywords: Digital filter, particle swarm optimization, fast Fourier transform, fitness function, bilinear transformation. INTRODUCTION Digital filters belong to the class of linear time invariant systems, which are characterized by the properties of causality, stability and recursive properties (Tan, 1999). They can be characterized in the time domain by their unit-impulse response and in the frequency domain by their transfer function. Filters are basically described by their frequency response as lowpass, highpass, bandstop or bandpass filters. The problem addressed in this work is to investigate the use of particle swarm optimization technique to design the infinite impulse bandpass filter and compare its response with that designed using the classical Bilinear transform method. The Bilinear transformation (BLT) design technique is a well-known, well established design method used universally to design Infinite Impulse Response filters. It has yielded classical solutions for decades even though it suffers a basic deficiency of frequency warping and gain distortion. In the Bilinear transformation design technique the analog filter transfer function from the s-plane is transformed to the digital filter transfer function in the z plane. This technique can be used to design digital filters with Butterworth or Tschebyscheff approximations for IIR filters.

Stand. Sci. Res. Essays Anene and Otitolaiye Computational intelligent algorithms are capable of handling non-differentiable, non-linear and multi -objective function optimization problems. They are therefore suitable for digital filter design. PSO and its Hybrid differential evolution particle swarm optimization (DE-PSO) were applied to design an FIR filter in a work done by Bipul(8). Kazhar and Khaled(6) applied rational based PSO to design vectored filter whose coefficients approximate the response of a color image interpolator. The main merits of this interpolator are its edge preserving capabilities and the absence of artifacts normally associated with classical linear and even some nonlinear interpolation schemes. Multi -objective function PSO has been applied to design an optimal hybrid power filter compensator. Filter parameters such as were combined as a single objective (fitness) function (Adel et al., 9). A variant of PSO with P,, A and S max Amin Perturb velocity has been applied for the design of two dimensional zero-phase IIR filter. The stability criteria were incorporated as constraints to the minimization task fitness function (Swagatam et al., 5). The filter thus obtained has a reasonably good stability margin. PSO technique because of its efficiency has also been applied to design optical finite impulse response (FIR) filters (Ying et al., 3). Particle swarm optimization has equally been applied for nonlinear parameter identification of digital filters (Omizegba et al., 1). Its attractiveness for this application comes from its high efficiency with few parameters to adjust for good performance. The study presents the design of the bandpass filter structure using the bilinear technique applied to the given specifications, the PSO design for the same specifications and the resultant transfer function. It also presents the filter responses and results discussion. Finally the summary, conclusion and the references were also given. BILINEAR TRANSFORM DESIGN TECHNIQUE The specification for the bandpass filter is as follows: Design a bandpass filter of sampling frequency of 1 khz with a 3dB passband frequency from 1-4Hz and at least db attenuation at 45 and 45Hz with monotonic roll off beyond these frequencies. For the classical design, the digital frequencies for the lowpass filter are obtained in line with BLT design procedure and converted to bandpass using the transformation. The design procedure includes the following steps: (1) transforming digital filter specifications into analog filter specifications, () performing analog filter design, and (3) applying bilinear transformation and verifying its frequency response. For the bilinear transformation, given the digital filter frequency specifications, first prewarp the digital frequency specifications to the analog frequency specifications and perform the prototype transformation using the analog lowpass prototype to analog bandpass. Hp(s): s sw H z = H s z 1 s = z +1, Lh (Li, 1999) T h, l The digital frequencies were obtained as follows; d h l d =π 4rad/s =8π rad/s = π 1rad/s =π rad/s 1 1 T 1 f S f S l and is the sampling frequency analog frequencies were obtained as follows: d h d are the upper and lower pass band digital frequencies. The prewarp h a = ht tan d T = tan 8π 1 = 6155.36 rad s ω a l = T tan ω π dt = tan 1 = 649.8 rad s The filter order was obtained using the Butterworth approximation formula in the equation

Anene and Otitolaiye 3 n log 1.1A S 1 1 ε log 1 V S Where, n is the order of the filter and; V s = ω as h ω as l ω ap h ω ap l Substituting the given passband and stopband attenuation figures into the equation to yield,.1 1 1 log1 n 1 1.56, the order of the filter is approximated to. log.5 1 Choosing the second order Butterworth prototype transfer function combined with the analog transform prototype function for bandpass filter we obtain; H s = s +ω o SW 1 + 1.414 s +ω SW + 1 Substituting for s from the bilinear functionh z = H s z 1 s =. The transfer function computed from the design for the z+1 T bandpass filter specifications is then given by; H Bp =.3516 1.484 Z +.834 Z 4 1.8938Z +.311 Z 4 (1) PSO BASED DESIGN Table 1 lists the PSO parameters used for the design of the filter structures considered. Making the acceleration constant c1 and c equal has been shown to be a good starting point while the inertia constant can start typically at.9 and then decreased as the iteration increases (De Valle et al., 8). In selecting the PSO equation parameters typical values of constants shown in Table 1 were chosen for simplicity. The fitness function adopted in this work is defined as the mean square error between the magnitude of the designed filter and the magnitude of the desired filter (Bipul, 9). Table 1. Summary of PSO parameters. Parameter Value C 1 C Max. Velocity 15 Particle number Number of Iterations Particle dimension 5 Inertia weight(w).8 This is sufficient because the design objective is centered on the frequency response of the designed filter. The fitness function J is given by Equation () and h is equal to the folding frequency.

Mean Square error Anene and Otitolaiye 4 J 1 h ( m( k) designed m( k) desired ) () h i The ideal filter is made very simple having a magnitude of 1 at the passband and a magnitude of at the stopband. The transfer function obtained using PSO design for the bandpass is shown in equation (3). H z =.4516 1.484z +.634z 4 1.8938z +.311z 4 (3) FILTER RESPONSES AND DISCUSSION Responses obtained from BLT classical design method and PSO algorithms are presented. Simulated multi-frequency sinusoidal input signal given by Equation (4) was used to test both designed bandpass filter structures. f=5; w=*pi*f; x sin( nt) sin(nt) sin(8 nt) sin(.1 nt) sin(9nt) sin(5nt) (4) Figure 1 shows the plot of the mean square error of the PSO in 5 epochs. The algorithm converged in about the 14 th iteration to the optimal coefficients of the filter. Magnitude frequency response of the PSO designed filter compared with the ideal filter is shown in Figures to 5 for both designs.the magnitude response of the PSO designed filter compared with the ideal bandpass filter is shown in Figure. It is noteworthy that the designed filter is maximally flat at the passband showing characteristics of Butterworth filters. The figure also shows the -3dB point at 9-4Hz which is close to the 1-4Hz passband specified. 1 x 1-3.9.8.7.6.5.4.3..1 5 1 15 5 3 35 4 45 5 Epochs Figur e 1. MSE graph for bandpass filter. Response of the filter obtained from BLT technique is presented in Figure 4. This figure shows that the design by BLT does not closely approximate the ideal case. The response is not monotonic at the stopband and has some noticeable ripple at the passband. The -3dB point is at 5-45Hz which is far removed from the 1Hz lower passband frequency.

phase(degrees) magnitude (db) Anene and Otitolaiye 5 X: 9 Y: -3-5 -1-15 -3dB Point Designed filter ideal filter - -5-3 -35-4 -45 Transition width -5 5 1 15 5 3 35 4 45 5 frequency(hz) Figure. Gain plot of bandpass generated using PSO. The phase responses of the filters designed by PSO and BLT are given in Figures 3 and 5. Both show the characteristics of non-linearity that is known for IIR filters. The FFT plot of the multi-frequency test signal in Figure 6 shows the various bands of frequencies used to test the ability of both filters to discriminate unwanted frequency bands. Inspecting Figures 7 and 8 closely, signals from the lower passband frequency of 1Hz to the upper passband frequency of 4Hz are seen to pass through the output of both filters with very little attenuation while signals at the cutoff frequencies of 5 and 45Hz are greatly attenuated. Yet for the BLT designed filter, the signal at the 5 and 45Hz frequency band, show a marked increase in gain when compared with that designed by PSO. It can be observed thus that the attenuation of the BLT designed filter is poorer. 3 1-1 - -3 5 1 15 5 3 35 4 45 5 frequency(hz) Figure3. Phase plot of bandpass generated using PSO.

Amplitude phase(degrees) magnitude (db) Anene and Otitolaiye 6 - X: 5 Y: -.949 Designed -4 Ideal -6-8 -3db point -1-1 -14 5 1 15 5 3 35 4 45 5 frequency(hz) Figure 4. Gain plot of Bandpass generated using BLT. 3 1-1 - -3 5 1 15 5 3 35 4 45 5 frequency(hz) Figure 5: Phase plot of bandpass filter generated using BLT. 5 15 1 5 5 1 15 5 3 35 4 45 5 Frequency(Hz) Figure 6. FFT of test signal.

Amplitude Amplitude Anene and Otitolaiye 7 5 15 1 5 5 1 15 5 3 35 4 45 5 Frequency(Hz) Figure 7. FFT of PSO designed BPF s response to test signal. 5 15 1 5 5 1 15 5 3 35 4 45 5 Frequency(Hz) Figure 8. FFT of BLT designed BPF s response to test signal. CONCLUSION The classical bilinear transform (BLT) filter design technique and particle swarm optimization technique were applied to design the specified bandpass filters. Responses of the filters designed with both methods show good performance in discrimination against unwanted frequency bands. Results of the simulated tests carried out on the filters conform to the given filter specifications. Magnitude responses of the designed filters compared with the ideal filter response clearly demonstrated the efficacy of PSO method in digital filter design. It is pertinent to note that the response of the filter designed using PSO satisfies the given specifications. Further work on hardware implementation of particle swarm optimization in digital filter design is an area of future focus. References Adel M, Sharaf A A, EL Gammal (9). Optimal Hybrid Power Filter Compensator Design Using Multi Objective Particle Swarm Optimization (MOPSO), UKSIM, Pp. 391 397. UKSIM 9: 11 th International conference on computer modeling and simulation. Bipul L (9), Application OfSwarm, Evolutionary And Quantum Algorithms In System Identification And Digital Filter Design:Msc. Thesis Missouri University of Science and Technology, p p. 5 35.

Anene and Otitolaiye 8 Bipul L, Venayagamorthy G K (8), Differential Evolution Particle Swarm Optimization For Digital Filter Design: 8 IEEE congress on Evolutionary Computation, p p. 3955 396. Del Valle Y, Ganesh Kumar Venayagamoorthy, Salman Mohagheghi, Jean-Carlos Hernandez, Ronald G Harley (8).Particle Swarm Optimization: Basic Concepts,Variants and Applications in Power Systems, IEEE Transactions on Evolutionary Computation, 1 () : 171 195 Kazhar K, Khaled E M (6). Rational Based Particle Swarm Optimization For Digital Image Interpolation: Inter. J. Intelligent systems. Technol. Pp. 3 6. Li Tan (1999). Digital Signal Processing Fundamentals And Applications: Elsevier, USA. Pp 314-333 Omizegba C, Monikang A Fidelis,Ahmed O D (1). Non Linear Parameter Identification Using Particle Swarm Algorithm:In proceeding of J. sustainable technol. 1(1): 85 91 Swagatam D (5) An Efficient Evolutionary Algorithm Applied To The Design Of Two Dimensional IIR Filters: Electronics and Telecom department, Jabalpur University, Kolkata 73, India. Ying Z, Zeng Guangjie, Yu Feihong (3). Particle Swarm Optimization Based Approach For Optical Finite Impulse Response Filter Design: Optical Society of America, OCIS codes, 1.44, 1.464, 6.144, 35.46. Pp 153-157