SlideShare a Scribd company logo
Arshdeep Singh et al Int. Journal of Engineering Research and Applications
ISSN : 2248-9622, Vol. 3, Issue 6, Nov-Dec 2013, pp.1304-1308

RESEARCH ARTICLE

www.ijera.com

OPEN ACCESS

Adaptive Filter for Ecg Noise Reduction Using Rls Algorithm
Arshdeep Singh, Rajesh Mehra
M.E Scholar National Institute of Teachers Training & Research,Chandigarh
Associate Professor, Electronics & Communication Engineering department National Institute of Teachers
Training & Research,Chandigarh

Abstract
Noise reduction in ECG signal is an important task of biomedical science.Adaptive filtering algorithms are
evolving rapidly in biomedical science to remove the noise by an appreciable amount.In this paper, noise of
ECG signal has been reduced by using adaptive filter based on RLS algorithm.The RLS algorithm performs well
irrespective of the nature of signal and noise and its convergence rate is very fast. The abrupt changes in the
ECG signal are best handled by RLS algorithm. The proposed filter has been designed and simulated using
MATLAB. The results show that the developed filter can reduce ECG noise to 0.15 percent upto 30 order filter
with 0.4680 seconds convergence time.
Keywords: Adaptive Filter, ECG, MATLAB

I. INTRODUCTION:
ECG(electrocardiogram signal) plays a
pivotal role in providing the functions of heart.It
records the heart’s electrical activity. With each
heartbeat, an electrical signal spreads from the top of
the heart to the bottom. As it travels, the signal causes
the heart to contract and pump blood. The process
repeats with each new heartbeat. It gives the
information about the rhythm of the heart providing
information about the normal and abnormal behavior
of heart. ECG of a normal human has a characteristic
shape. Any abnormality in the heart of the patient
changes the shape of recorded ECG. This change may
occur owing to their family history of heart disease or
because of obesity,smoking or having diabetes, high
blood pressure or cholesterol. The ECG test is
performed by transferring the electrical activity on the
skin using electrode to displayed system. Different
types of leads are used for recording. These leads are
based on the simultaneous measure of electrical signal
from different parts of the body. 3-lead, 5-lead, 12lead are generally used for recording[1].
The ECG Signal is basically an
electromagnetic wave generated by heart. The signal
is converted into electrical form to observe on a
display system. During this processing, several
sources of noise, affects the original ECG signal. A

www.ijera.com

small change in amplitude or shape of the ECG signal
may cause a severe problem in decision making by
doctors.This variation changes the form factor of ECG
signal(coming from patient). The ECG signal can be
corrupted by power line interference, electrode contact
noise, baseline drift,instrumental noise, Motion
artifacts. Power lineconsists of (50-60) Hz harmonics.
This noise can be modeled as sinusoids. The variation
in the electrode-skin impedance causes the motion
artifacts noise. The impedance mismatching causes
less power transfer to the ECG amplifier used for
converting ECG electromagnetic signal into a
particular level of electrical ECG signal. Baseline
Drift noise is continuous drifting of ECG signal from
base line. The sinusoidal component of frequency of
respiration added to ECG signal can be represented by
base line drift noised ECG signal. The noise added in
the ECG signal, is variable in amplitude and
frequency. We can’t design a notch filter to remove
noise. Instead we need a dynamic system, in which
filtered frequency should be adjusted time by
time.Adaptive filtering is a kind of dynamic approach
which can adapt itself depending upon requirement
[2].

1304 | P a g e
Arshdeep Singh et al Int. Journal of Engineering Research and Applications
ISSN : 2248-9622, Vol. 3, Issue 6, Nov-Dec 2013, pp.1304-1308

The recursive least square algorithm is used
in adaptive filters to find the filter coefficients which
provides highly correlated output as that of noise
signal added in original ECG signal. As shown in
Figure1, The ECG signal, s is the uncontaminated
signal. (s+c) is the contaminated ECG signal. c and d
are the noisy signals, generated by noisy source. Our
basic task here is to correlate the signal n (which is the
reference signal)with that of c by identifying the
parameters of adaptive filter. This n signal is mixed
with the contaminated ECG signal. At the end we
obtain the original ECG signal. So the filter
coefficients are estimated iteratively to minimize the
error between contaminated signal and original ECG
signal just by finding the closest value of n as that of
c.

II. Adaptive Algorithm
An adaptive filter adjusts or modified its
frequency response automatically to improve its
performance according to some criterion. Owing to
the self- adjusting performance and in-built flexibility,
adaptive filters are used in diverse applications. We
use adaptive filters where it is must for the filter
characteristics to be variable and adapted to changing
condition and when there is a spectral overlap between
the signal and noise. Adaptive algorithms are used to
modify the coefficients of digital filter. LMS (least
mean square) and RLS(recursive least square)
algorithms are basically used. The LMS is based on
the steepest descent algorithm where the weight
vector(coefficients) is updated from sample to sample
.The LMS algorithm does not require any priori
information of the signal statistics that is correlation,
but it provides the estimation of filter coefficients

www.ijera.com

www.ijera.com

which are gradually improved with time. The RLS
algorithm is based on the least squares.The RLS
algorithm has fast convergence than LMS algorithm.
It has more complexity than LMS but high
convergence speed, makes it pretty good choice. The
following equation provides the update coefficients
for RLS algorithm[3]-[4].
w(n+1) = w(n)+e(n).k(n)
…………………..(i)
where w(n) is the filter coefficient vector,k(n) is the
gain factor, e(n) is error signal.
k(n) is defined by the following equation:

Where is the forgetting factor and
is inverse
correlation matrix of the input signal and is defined as
Where is regulation factor and u(n) is unity matrix.
The RLS algorithm uses following equation(iv) to
update the inverse correlation matrix.
(n)-

The parameter that we can adjust in RLS
algorithms are forgetting factor and regulation factor.
The range of forgetting factor lies between 0 to 1. The
regulation factor is the initial value of inverse
correlation matrix.

III. MATLAB based design simulation
Noise free ECG signal is generated from
MATLAB function of desired length and then mixed
with random noise. And after that RLS algorithm is
used to nullify the effect of noise. The whole step is
illustrated in Figure2(a)-(d).

1305 | P a g e

(a)
Arshdeep Singh et al Int. Journal of Engineering Research and Applications
ISSN : 2248-9622, Vol. 3, Issue 6, Nov-Dec 2013, pp.1304-1308

www.ijera.com

Figure2 (a) Original error free signal (b) Contaminated ECG signal (c) ECG signal recovered after
adaptive filtering (d) Mean square error plot

Figure2(a) shows the original ECG signal which is
free from noise. While travelling through system some
noise gets added to the original ECG signal.
Figure2(b) shows the noise corrupted signal. we can
see from figure2(b) that owing to addition of noise,
the shape of ECG pulse changes as compared to

original ECG signal shown in Figure2(a). Figure2(c)
shows the ECG signal recovered using adaptive filter.
Figure2(d) is the mean square error plot.

IV. Result Analysis

samples
(a)

www.ijera.com

1306 | P a g e
Arshdeep Singh et al Int. Journal of Engineering Research and Applications
ISSN : 2248-9622, Vol. 3, Issue 6, Nov-Dec 2013, pp.1304-1308

www.ijera.com

Samples
(b)

Samples

(c)
Figure3. Mean square error plot v/s Samples ; Number of Filter coefficients (a) 10 ,(b) 20 ,
(c) 30
The Figure3.Shows the plot between mean
square error and filter coefficients. The error gives the
mean square difference between the desired output

and the output coming after using adaptive filter. The
Figure3.Shows the plot for different number of
samples.The Figure4.Shows the convergence time
versus
filter
order
plot.

Figure4. Adaptive filter convergence time versus filter order
www.ijera.com

1307 | P a g e
Arshdeep Singh et al Int. Journal of Engineering Research and Applications
ISSN : 2248-9622, Vol. 3, Issue 6, Nov-Dec 2013, pp.1304-1308

www.ijera.com

For filter lenth 10, the system takes
0.1560sec to converge.For filter lenth 20, it takes
0.3744sec and for 30, it takes 0.4680sec to converge.
The convergence time increases as complexity in the
system increases.The convergence time and mean
square error gets adjusted by changing the adaptive
filter parameter that is the forgetting factor and
regulation factor. The adaptive filter gets its optimum
value when forgetting factor lies between .98 and 1.

V. CONCLUSION
The proposed adaptive RLS technique
provides an optimum quality of the corrupted ECG
signal. The analysis is done on different filter lengths.
The mean square error and convergence time has a
trade off on each other. An optimum value of
convergence time is being taken where the mean
square error is also optimum. As the order of filter
gets increased, the adaptive filter noise reduction
system takes more time to converge. The convergence
time and mean square error gets adjusted by changing
the adaptive filter parameter that is the forgetting
factor and regulation factor. The adaptive filter gets its
optimum value when forgetting factor lies between .98
and 1. As the order increases, the optimal condition is
obtained by choosing large values of regulation factor
and keeping forgetting factor is equal to 1. For lower
values of forgetting factor , the system takes more
time to converge . For lower values of regulation
facor the mean sqaure error is greater as compared to
large values of regulation factoe. The proposed
method gives a satisfactoryresults whether it is the
concern of mean square error or the convergence time.

Reference
[1]
[2]

[3]

[4]

http://en.wikipedia.org/wiki/Electrocardiogra
phy,2012
Syed Zahurul Islam,Syed Zahidi Islam,
Razali Jidin, Mohd. Alauddin Mohd.
Ali,”Performance Study of Adaptive Filtering
Algorithms For Noise Cancellation of ECG
signal”, Information, Communication and
Signal processing(ICICS);PP 1-5,2009
GuoQuan Xing, YuXiaZHang,” Analysis and
Comparison of RLS Adaptive Filter in Signal
De-noising”,Electrical
and
Control
Engineering (ICECE);PP. 5754-5758,2011
Li Gui-qing,Yang JI-mei, Li Xiang-chen,”
An Improved RLS Adaptive Filter Algorithm
Used to Process Human Body Balance
Signal,Future Computer Science and
Education (ICFCSE); PP.275-278,2011.

www.ijera.com

1308 | P a g e

More Related Content

PDF
M010417478
IOSR Journals
 
PDF
A novel adaptive algorithm for removal of power line interference from ecg si...
International Journal of Computer and Communication System Engineering
 
PDF
Noise reduction in ECG Signals for Bio-telemetryb
IJECEIAES
 
PPTX
rupesh k10741
shailesh yadav
 
PDF
Non-conventional Energy Operated ECG System
IRJET Journal
 
PPTX
DE-NOISING OF ECG USING WAVELETS AND MULTIWAVELETS
ajayhakkumar
 
PDF
Accelerometer and EOG Based Wireless Gesture Controlled Robotic Arm
IJMER
 
M010417478
IOSR Journals
 
A novel adaptive algorithm for removal of power line interference from ecg si...
International Journal of Computer and Communication System Engineering
 
Noise reduction in ECG Signals for Bio-telemetryb
IJECEIAES
 
rupesh k10741
shailesh yadav
 
Non-conventional Energy Operated ECG System
IRJET Journal
 
DE-NOISING OF ECG USING WAVELETS AND MULTIWAVELETS
ajayhakkumar
 
Accelerometer and EOG Based Wireless Gesture Controlled Robotic Arm
IJMER
 

What's hot (20)

PDF
F1101043356
IOSR Journals
 
PPTX
Ecg Signal Processing
Bellie Bambilla
 
PDF
Controlling of EDM Servo System Using Fuzzy Logic Controller
Scientific Review SR
 
PDF
Design of Digital Circuits for ECG Data Acquisition System Using 90nm CMOS Te...
Associate Professor in VSB Coimbatore
 
PDF
DENOISING OF ECG SIGNAL USING FILTERS AND WAVELET TRANSFORM
IJEEE
 
PDF
1 s2.0-s1876610211018820-main
Deny Saputro
 
PDF
Ecg programa simulado
Eduard Stiven Marin Montoya
 
PDF
ANALYSIS OF ECG SIGNAL USING SELF ORGANISING MAP
MAHESH SONI
 
PDF
QRS signal ECG detection
Exalta Insparc Technologies pvt. Limited
 
PDF
A Novel Technique to Enhance the Lifetime of Wireless Sensor Networks through...
IJECEIAES
 
PDF
Method to control the output power of Laser in the variation of Ambient Temp...
International Journal of Engineering Inventions www.ijeijournal.com
 
PDF
Three phase grid connected inverter using current
IAEME Publication
 
PPTX
ECG DENOISING USING NN.pp
bobbydm
 
PDF
A low-cost electro-cardiograph machine equipped with sensitivity and paper sp...
TELKOMNIKA JOURNAL
 
PPTX
Complete pan tompkins implementation of ecg qrs detector
vanikeerthika
 
PPTX
ECG SIGNAL GENERATED FROM DATA BASE USING MATLAB
UdayKumar937
 
PDF
IRJET- Flame Scaner Circuit
IRJET Journal
 
PDF
An Adaptive Soft Calibration Technique for Thermocouples using Optimized ANN
idescitation
 
F1101043356
IOSR Journals
 
Ecg Signal Processing
Bellie Bambilla
 
Controlling of EDM Servo System Using Fuzzy Logic Controller
Scientific Review SR
 
Design of Digital Circuits for ECG Data Acquisition System Using 90nm CMOS Te...
Associate Professor in VSB Coimbatore
 
DENOISING OF ECG SIGNAL USING FILTERS AND WAVELET TRANSFORM
IJEEE
 
1 s2.0-s1876610211018820-main
Deny Saputro
 
Ecg programa simulado
Eduard Stiven Marin Montoya
 
ANALYSIS OF ECG SIGNAL USING SELF ORGANISING MAP
MAHESH SONI
 
A Novel Technique to Enhance the Lifetime of Wireless Sensor Networks through...
IJECEIAES
 
Method to control the output power of Laser in the variation of Ambient Temp...
International Journal of Engineering Inventions www.ijeijournal.com
 
Three phase grid connected inverter using current
IAEME Publication
 
ECG DENOISING USING NN.pp
bobbydm
 
A low-cost electro-cardiograph machine equipped with sensitivity and paper sp...
TELKOMNIKA JOURNAL
 
Complete pan tompkins implementation of ecg qrs detector
vanikeerthika
 
ECG SIGNAL GENERATED FROM DATA BASE USING MATLAB
UdayKumar937
 
IRJET- Flame Scaner Circuit
IRJET Journal
 
An Adaptive Soft Calibration Technique for Thermocouples using Optimized ANN
idescitation
 
Ad

Similar to Hj3613041308 (20)

PDF
Noise reduction in ECG signals for bio-telemetry
IJECEIAES
 
PDF
ECG signal denoising using a novel approach of adaptive filters for real-time...
IJECEIAES
 
PDF
Suppression of power line interference correction of baselinewanders and
IAEME Publication
 
PDF
Fo3610221025
IJERA Editor
 
PDF
ECG Signal Denoising using Digital Filter and Adaptive Filter
IRJET Journal
 
PDF
Noise Cancellation in ECG Signals using Computationally
CSCJournals
 
PDF
Filtering Electrocardiographic Signals using filtered- X LMS algorithm
IDES Editor
 
PDF
Simulation of Adaptive Noise Canceller for an ECG signal Analysis
IDES Editor
 
PDF
IRJET- Design Simulation and Analysis of Efficient De-Noising of ECG Signals ...
IRJET Journal
 
PPTX
VISHAV snp.pptx
NeerajBhatt62
 
PDF
IRJET- R Peak Detection with Diagnosis of Arrhythmia using Adaptive Filte...
IRJET Journal
 
PPSX
Performance analysis of adaptive noise canceller for an ecg signal
Raj Kumar Thenua
 
PDF
Ax2419441946
IJMER
 
PDF
Noise analysis & qrs detection in ecg signals
Harshal Ladhe
 
PDF
Performance Study of Various Adaptive filter algorithms for Noise Cancellatio...
CSCJournals
 
PDF
FPGA IMPLEMENTATION OF NOISE CANCELLATION USING ADAPTIVE ALGORITHMS
Editor IJMTER
 
PDF
Multidimensional Approaches for Noise Cancellation of ECG signal
Sikkim Manipal Institute Of Technology
 
PDF
Execution Analysis of Lynn Wavelet Filter Algorithms for Removal of Low Frequ...
Associate Professor in VSB Coimbatore
 
PDF
ECG SIGNAL DE-NOISING USING DIGITAL FILTER TECHNIQUES
IRJET Journal
 
PPSX
Simulation and hardware implementation of Adaptive algorithms on tms320 c6713...
Raj Kumar Thenua
 
Noise reduction in ECG signals for bio-telemetry
IJECEIAES
 
ECG signal denoising using a novel approach of adaptive filters for real-time...
IJECEIAES
 
Suppression of power line interference correction of baselinewanders and
IAEME Publication
 
Fo3610221025
IJERA Editor
 
ECG Signal Denoising using Digital Filter and Adaptive Filter
IRJET Journal
 
Noise Cancellation in ECG Signals using Computationally
CSCJournals
 
Filtering Electrocardiographic Signals using filtered- X LMS algorithm
IDES Editor
 
Simulation of Adaptive Noise Canceller for an ECG signal Analysis
IDES Editor
 
IRJET- Design Simulation and Analysis of Efficient De-Noising of ECG Signals ...
IRJET Journal
 
VISHAV snp.pptx
NeerajBhatt62
 
IRJET- R Peak Detection with Diagnosis of Arrhythmia using Adaptive Filte...
IRJET Journal
 
Performance analysis of adaptive noise canceller for an ecg signal
Raj Kumar Thenua
 
Ax2419441946
IJMER
 
Noise analysis & qrs detection in ecg signals
Harshal Ladhe
 
Performance Study of Various Adaptive filter algorithms for Noise Cancellatio...
CSCJournals
 
FPGA IMPLEMENTATION OF NOISE CANCELLATION USING ADAPTIVE ALGORITHMS
Editor IJMTER
 
Multidimensional Approaches for Noise Cancellation of ECG signal
Sikkim Manipal Institute Of Technology
 
Execution Analysis of Lynn Wavelet Filter Algorithms for Removal of Low Frequ...
Associate Professor in VSB Coimbatore
 
ECG SIGNAL DE-NOISING USING DIGITAL FILTER TECHNIQUES
IRJET Journal
 
Simulation and hardware implementation of Adaptive algorithms on tms320 c6713...
Raj Kumar Thenua
 
Ad

Recently uploaded (20)

PDF
The Future of Artificial Intelligence (AI)
Mukul
 
PDF
How Open Source Changed My Career by abdelrahman ismail
a0m0rajab1
 
PDF
Doc9.....................................
SofiaCollazos
 
PDF
Research-Fundamentals-and-Topic-Development.pdf
ayesha butalia
 
PPTX
The-Ethical-Hackers-Imperative-Safeguarding-the-Digital-Frontier.pptx
sujalchauhan1305
 
PDF
Google I/O Extended 2025 Baku - all ppts
HusseinMalikMammadli
 
PDF
How-Cloud-Computing-Impacts-Businesses-in-2025-and-Beyond.pdf
Artjoker Software Development Company
 
PDF
Oracle AI Vector Search- Getting Started and what's new in 2025- AIOUG Yatra ...
Sandesh Rao
 
PDF
MASTERDECK GRAPHSUMMIT SYDNEY (Public).pdf
Neo4j
 
PPTX
Applied-Statistics-Mastering-Data-Driven-Decisions.pptx
parmaryashparmaryash
 
PDF
Automating ArcGIS Content Discovery with FME: A Real World Use Case
Safe Software
 
PDF
Unlocking the Future- AI Agents Meet Oracle Database 23ai - AIOUG Yatra 2025.pdf
Sandesh Rao
 
PDF
Presentation about Hardware and Software in Computer
snehamodhawadiya
 
PDF
The Evolution of KM Roles (Presented at Knowledge Summit Dublin 2025)
Enterprise Knowledge
 
PDF
Tea4chat - another LLM Project by Kerem Atam
a0m0rajab1
 
PDF
AI-Cloud-Business-Management-Platforms-The-Key-to-Efficiency-Growth.pdf
Artjoker Software Development Company
 
PDF
Orbitly Pitch Deck|A Mission-Driven Platform for Side Project Collaboration (...
zz41354899
 
PPTX
OA presentation.pptx OA presentation.pptx
pateldhruv002338
 
PDF
Data_Analytics_vs_Data_Science_vs_BI_by_CA_Suvidha_Chaplot.pdf
CA Suvidha Chaplot
 
PDF
Make GenAI investments go further with the Dell AI Factory
Principled Technologies
 
The Future of Artificial Intelligence (AI)
Mukul
 
How Open Source Changed My Career by abdelrahman ismail
a0m0rajab1
 
Doc9.....................................
SofiaCollazos
 
Research-Fundamentals-and-Topic-Development.pdf
ayesha butalia
 
The-Ethical-Hackers-Imperative-Safeguarding-the-Digital-Frontier.pptx
sujalchauhan1305
 
Google I/O Extended 2025 Baku - all ppts
HusseinMalikMammadli
 
How-Cloud-Computing-Impacts-Businesses-in-2025-and-Beyond.pdf
Artjoker Software Development Company
 
Oracle AI Vector Search- Getting Started and what's new in 2025- AIOUG Yatra ...
Sandesh Rao
 
MASTERDECK GRAPHSUMMIT SYDNEY (Public).pdf
Neo4j
 
Applied-Statistics-Mastering-Data-Driven-Decisions.pptx
parmaryashparmaryash
 
Automating ArcGIS Content Discovery with FME: A Real World Use Case
Safe Software
 
Unlocking the Future- AI Agents Meet Oracle Database 23ai - AIOUG Yatra 2025.pdf
Sandesh Rao
 
Presentation about Hardware and Software in Computer
snehamodhawadiya
 
The Evolution of KM Roles (Presented at Knowledge Summit Dublin 2025)
Enterprise Knowledge
 
Tea4chat - another LLM Project by Kerem Atam
a0m0rajab1
 
AI-Cloud-Business-Management-Platforms-The-Key-to-Efficiency-Growth.pdf
Artjoker Software Development Company
 
Orbitly Pitch Deck|A Mission-Driven Platform for Side Project Collaboration (...
zz41354899
 
OA presentation.pptx OA presentation.pptx
pateldhruv002338
 
Data_Analytics_vs_Data_Science_vs_BI_by_CA_Suvidha_Chaplot.pdf
CA Suvidha Chaplot
 
Make GenAI investments go further with the Dell AI Factory
Principled Technologies
 

Hj3613041308

  • 1. Arshdeep Singh et al Int. Journal of Engineering Research and Applications ISSN : 2248-9622, Vol. 3, Issue 6, Nov-Dec 2013, pp.1304-1308 RESEARCH ARTICLE www.ijera.com OPEN ACCESS Adaptive Filter for Ecg Noise Reduction Using Rls Algorithm Arshdeep Singh, Rajesh Mehra M.E Scholar National Institute of Teachers Training & Research,Chandigarh Associate Professor, Electronics & Communication Engineering department National Institute of Teachers Training & Research,Chandigarh Abstract Noise reduction in ECG signal is an important task of biomedical science.Adaptive filtering algorithms are evolving rapidly in biomedical science to remove the noise by an appreciable amount.In this paper, noise of ECG signal has been reduced by using adaptive filter based on RLS algorithm.The RLS algorithm performs well irrespective of the nature of signal and noise and its convergence rate is very fast. The abrupt changes in the ECG signal are best handled by RLS algorithm. The proposed filter has been designed and simulated using MATLAB. The results show that the developed filter can reduce ECG noise to 0.15 percent upto 30 order filter with 0.4680 seconds convergence time. Keywords: Adaptive Filter, ECG, MATLAB I. INTRODUCTION: ECG(electrocardiogram signal) plays a pivotal role in providing the functions of heart.It records the heart’s electrical activity. With each heartbeat, an electrical signal spreads from the top of the heart to the bottom. As it travels, the signal causes the heart to contract and pump blood. The process repeats with each new heartbeat. It gives the information about the rhythm of the heart providing information about the normal and abnormal behavior of heart. ECG of a normal human has a characteristic shape. Any abnormality in the heart of the patient changes the shape of recorded ECG. This change may occur owing to their family history of heart disease or because of obesity,smoking or having diabetes, high blood pressure or cholesterol. The ECG test is performed by transferring the electrical activity on the skin using electrode to displayed system. Different types of leads are used for recording. These leads are based on the simultaneous measure of electrical signal from different parts of the body. 3-lead, 5-lead, 12lead are generally used for recording[1]. The ECG Signal is basically an electromagnetic wave generated by heart. The signal is converted into electrical form to observe on a display system. During this processing, several sources of noise, affects the original ECG signal. A www.ijera.com small change in amplitude or shape of the ECG signal may cause a severe problem in decision making by doctors.This variation changes the form factor of ECG signal(coming from patient). The ECG signal can be corrupted by power line interference, electrode contact noise, baseline drift,instrumental noise, Motion artifacts. Power lineconsists of (50-60) Hz harmonics. This noise can be modeled as sinusoids. The variation in the electrode-skin impedance causes the motion artifacts noise. The impedance mismatching causes less power transfer to the ECG amplifier used for converting ECG electromagnetic signal into a particular level of electrical ECG signal. Baseline Drift noise is continuous drifting of ECG signal from base line. The sinusoidal component of frequency of respiration added to ECG signal can be represented by base line drift noised ECG signal. The noise added in the ECG signal, is variable in amplitude and frequency. We can’t design a notch filter to remove noise. Instead we need a dynamic system, in which filtered frequency should be adjusted time by time.Adaptive filtering is a kind of dynamic approach which can adapt itself depending upon requirement [2]. 1304 | P a g e
  • 2. Arshdeep Singh et al Int. Journal of Engineering Research and Applications ISSN : 2248-9622, Vol. 3, Issue 6, Nov-Dec 2013, pp.1304-1308 The recursive least square algorithm is used in adaptive filters to find the filter coefficients which provides highly correlated output as that of noise signal added in original ECG signal. As shown in Figure1, The ECG signal, s is the uncontaminated signal. (s+c) is the contaminated ECG signal. c and d are the noisy signals, generated by noisy source. Our basic task here is to correlate the signal n (which is the reference signal)with that of c by identifying the parameters of adaptive filter. This n signal is mixed with the contaminated ECG signal. At the end we obtain the original ECG signal. So the filter coefficients are estimated iteratively to minimize the error between contaminated signal and original ECG signal just by finding the closest value of n as that of c. II. Adaptive Algorithm An adaptive filter adjusts or modified its frequency response automatically to improve its performance according to some criterion. Owing to the self- adjusting performance and in-built flexibility, adaptive filters are used in diverse applications. We use adaptive filters where it is must for the filter characteristics to be variable and adapted to changing condition and when there is a spectral overlap between the signal and noise. Adaptive algorithms are used to modify the coefficients of digital filter. LMS (least mean square) and RLS(recursive least square) algorithms are basically used. The LMS is based on the steepest descent algorithm where the weight vector(coefficients) is updated from sample to sample .The LMS algorithm does not require any priori information of the signal statistics that is correlation, but it provides the estimation of filter coefficients www.ijera.com www.ijera.com which are gradually improved with time. The RLS algorithm is based on the least squares.The RLS algorithm has fast convergence than LMS algorithm. It has more complexity than LMS but high convergence speed, makes it pretty good choice. The following equation provides the update coefficients for RLS algorithm[3]-[4]. w(n+1) = w(n)+e(n).k(n) …………………..(i) where w(n) is the filter coefficient vector,k(n) is the gain factor, e(n) is error signal. k(n) is defined by the following equation: Where is the forgetting factor and is inverse correlation matrix of the input signal and is defined as Where is regulation factor and u(n) is unity matrix. The RLS algorithm uses following equation(iv) to update the inverse correlation matrix. (n)- The parameter that we can adjust in RLS algorithms are forgetting factor and regulation factor. The range of forgetting factor lies between 0 to 1. The regulation factor is the initial value of inverse correlation matrix. III. MATLAB based design simulation Noise free ECG signal is generated from MATLAB function of desired length and then mixed with random noise. And after that RLS algorithm is used to nullify the effect of noise. The whole step is illustrated in Figure2(a)-(d). 1305 | P a g e (a)
  • 3. Arshdeep Singh et al Int. Journal of Engineering Research and Applications ISSN : 2248-9622, Vol. 3, Issue 6, Nov-Dec 2013, pp.1304-1308 www.ijera.com Figure2 (a) Original error free signal (b) Contaminated ECG signal (c) ECG signal recovered after adaptive filtering (d) Mean square error plot Figure2(a) shows the original ECG signal which is free from noise. While travelling through system some noise gets added to the original ECG signal. Figure2(b) shows the noise corrupted signal. we can see from figure2(b) that owing to addition of noise, the shape of ECG pulse changes as compared to original ECG signal shown in Figure2(a). Figure2(c) shows the ECG signal recovered using adaptive filter. Figure2(d) is the mean square error plot. IV. Result Analysis samples (a) www.ijera.com 1306 | P a g e
  • 4. Arshdeep Singh et al Int. Journal of Engineering Research and Applications ISSN : 2248-9622, Vol. 3, Issue 6, Nov-Dec 2013, pp.1304-1308 www.ijera.com Samples (b) Samples (c) Figure3. Mean square error plot v/s Samples ; Number of Filter coefficients (a) 10 ,(b) 20 , (c) 30 The Figure3.Shows the plot between mean square error and filter coefficients. The error gives the mean square difference between the desired output and the output coming after using adaptive filter. The Figure3.Shows the plot for different number of samples.The Figure4.Shows the convergence time versus filter order plot. Figure4. Adaptive filter convergence time versus filter order www.ijera.com 1307 | P a g e
  • 5. Arshdeep Singh et al Int. Journal of Engineering Research and Applications ISSN : 2248-9622, Vol. 3, Issue 6, Nov-Dec 2013, pp.1304-1308 www.ijera.com For filter lenth 10, the system takes 0.1560sec to converge.For filter lenth 20, it takes 0.3744sec and for 30, it takes 0.4680sec to converge. The convergence time increases as complexity in the system increases.The convergence time and mean square error gets adjusted by changing the adaptive filter parameter that is the forgetting factor and regulation factor. The adaptive filter gets its optimum value when forgetting factor lies between .98 and 1. V. CONCLUSION The proposed adaptive RLS technique provides an optimum quality of the corrupted ECG signal. The analysis is done on different filter lengths. The mean square error and convergence time has a trade off on each other. An optimum value of convergence time is being taken where the mean square error is also optimum. As the order of filter gets increased, the adaptive filter noise reduction system takes more time to converge. The convergence time and mean square error gets adjusted by changing the adaptive filter parameter that is the forgetting factor and regulation factor. The adaptive filter gets its optimum value when forgetting factor lies between .98 and 1. As the order increases, the optimal condition is obtained by choosing large values of regulation factor and keeping forgetting factor is equal to 1. For lower values of forgetting factor , the system takes more time to converge . For lower values of regulation facor the mean sqaure error is greater as compared to large values of regulation factoe. The proposed method gives a satisfactoryresults whether it is the concern of mean square error or the convergence time. Reference [1] [2] [3] [4] http://en.wikipedia.org/wiki/Electrocardiogra phy,2012 Syed Zahurul Islam,Syed Zahidi Islam, Razali Jidin, Mohd. Alauddin Mohd. Ali,”Performance Study of Adaptive Filtering Algorithms For Noise Cancellation of ECG signal”, Information, Communication and Signal processing(ICICS);PP 1-5,2009 GuoQuan Xing, YuXiaZHang,” Analysis and Comparison of RLS Adaptive Filter in Signal De-noising”,Electrical and Control Engineering (ICECE);PP. 5754-5758,2011 Li Gui-qing,Yang JI-mei, Li Xiang-chen,” An Improved RLS Adaptive Filter Algorithm Used to Process Human Body Balance Signal,Future Computer Science and Education (ICFCSE); PP.275-278,2011. www.ijera.com 1308 | P a g e