SlideShare a Scribd company logo
ACEEE Int. J. on Signal & Image Processing, Vol. 03, No. 01, Jan 2012



   Simulation of Adaptive Noise Canceller for an ECG
                    signal Analysis
                              Dr. D.C. Dhubkarya1, Aastha Katara2, and Raj Kumar Thenua2
                                1
                               Department of Electronics & Communication, BIET, Jhansi, India
                                                 Email: dcd3580@yahoo.com
                    2
                      Department of Electronics & Instrumentation, Anand Engineering College, Agra, India
                                  Email: aastha.katara@gmail.com, kumarraj04in@gmail.com


Abstract— In numerous applications of signal processing,               These are preferable because they are stable, and no special
communications and biomedical we are faced with the                    adjustments are needed for their implementation.Fig.1
necessity to remove noise and distortion from the signals.             illustrates the general configuration for an Adaptive filter [4].
Adaptive filtering is one of the most important areas in digital
                                                                       The adaptive filter has two inputs: the primary input d(n),
signal processing to remove background noise and distortion.
In last few years various adaptive algorithms are developed
                                                                       which represents the desired signal corrupted with undesired
for noise cancellation. In this paper we have presented an             noise, and the reference signal x(n), which is the undesired
implementation of LMS (Least M ean Square), NLM S                      noise to be filtered out of the system.
(Normalized Least Mean Square) and RLS (Recursive Least                     The goal of adaptive filtering systems is to reduce the
Square) algorithms on MATLAB platform with the intention               noise portion, and to obtain the uncorrupted desired signal.
to compare their performance in noise cancellation application.        In order to achieve this task, a reference of the noise signal is
We simulate the adaptive filter in MATLAB with a noisy ECG             needed. That reference is fed to the system, and it is called a
signal and analyze the performance of algorithms in terms of           reference signal x(n). However, the reference signal is typically
M SE (Mean Squared Error), SNR Improvement,
                                                                       not the same signal as the noise portion of the primary signal
computational complexity and stability. The obtained results
shows that, the RLS algorithm eliminates more noise from
                                                                       - it can vary in amplitude, phase or time delay. Therefore the
noisy ECG signal and has the best performance but at the cost          reference signal cannot be simply subtracted from the primary
of large computational complexity and higher memory                    signal to obtain the desired portion at the output.
requirements.                                                               The basic idea for the adaptive filter is to predict the
                                                                       amount of noise in the primary signal, and then subtract that
Index Terms— Adaptive filters, LMS, Mean Squared Error                 noise from it. The prediction is based on filtering the reference
(MSE), RLS                                                             signal x(n), which contains a solid reference of the noise
                                                                       present in the primary signal. The noise in the reference signal
                          I. INTRODUCTION                              is filtered to compensate for the amplitude, phase and time
    An adaptive filter has the property of self-modifying its          delay, and then subtracted from the primary signal. This
frequency response to change the behavior in time, allowing            filtered noise is the system’s prediction of the noise portion
the filter to adapt the response to the input signal                   of the primary signal, y(n). The resulting signal is called error
characteristics change. Due to this capability, the overall            signal e(n), and it presents the output of the system. Ideally,
performance and the construction flexibility, the adaptive             the resulting error signal would be only the desired portion
filters have been employed in many different applications,             of the primary signal.
some of the most important are: telephonic echo cancellation,               In this work we investigate the performance of various
radar signal processing, navigation systems, communications            adaptive algorithms with the help of MATLAB simulation [7]
channel equalization and biomedical signals processing [1-             and tested for an ECG signal. The paper is organized in four
3].The most common adaptive filters, which are used during             sections; section 2 gives an idea of adaptive algorithms, in
the adaption process, are the finite impulse response (FIR)            section 3 an Adaptive Noise Cancellation (ANC) model is
types.                                                                 designed and finally the results are discussed in section 4.

                                                                                         II. ADAPTIVE ALGORITHMS
                                                                       A. LEAST MEAN SQUARE A LGORITHM
                                                                           The LMS algorithm [4], is a type of adaptive filter algorithm
                                                                       that is also known as stochastic gradient-based algorithm as
                                                                       it utilizes the gradient vector of the filter tap weights to
                                                                       converge on the optimal wiener solution. With each iteration
                                                                       of the LMS algorithm, the filter tap weights of the adaptive
                                                                       filter are updated according to the following formula:
          Figure 1. General Adaptive filter configuration

© 2012 ACEEE                                                       1
DOI: 01.IJSIP.03.01. 47
ACEEE Int. J. on Signal & Image Processing, Vol. 03, No. 01, Jan 2012


Here x(n) is the input vector of time delayed input values,


                                                                           In the RLS algorithm the estimate of previous samples of
The vector
                                                                        output signal, error signal and filter weight is required that
represents the coefficients of the adaptive FIR filter tap weight
                                                                        leads to higher memory requirements.
vector at time n.
     The parameter µ is known as the step size parameter and
                                                                                     III. ADAPTIVE NOISE CANCELLATION
is a small positive constant. This step size parameter controls
the influence of the updating factor. Selection of a suitable               Adaptive noise cancellation (ANC) is performed by
value for µ is imperative to the performance of the LMS                 subtracting noise from a received signal, and an operation
algorithm, if the value is too small the time the adaptive filter       controlled in an adaptive manner is done during the
takes to converge on the optimal solution will be too long; if          adaptation process to get an improved signal-to-noise ratio.
µ is too large the adaptive filter becomes unstable and its             Noise subtraction from a received signal could generate
output diverges.                                                        disastrous results by causing an increase in the average
                                                                        power of the output noise. However when filtering and
B.NORMALIZED LEAST MEAN SQUARED A LGORITHM
                                                                        subtraction are controlled by an adaptive process, it is
    In the standard LMS algorithm, when the convergence                 possible to achieve a superior system performance compared
factor µ is large, the algorithm experiences a gradient noise           to direct filtering of the received signal. Fig.2 shows adaptive
amplification problem. In order to solve this difficulty, we can        noise canceling system.
use the NLMS (Normalized Least Mean Square) algorithm.                      The ANC system composed of two separate inputs, a
The correction applied to the weight vector w(n) at iteration           primary input or ECG signal source which is shown as s(n)
n+1 is “normalized” with respect to the squared Euclidian               and a reference input that is the noise input shown as x(n) .
norm of the input vector x(n) at iteration n.                           The primary signal is corrupted by noise x1(n). The signal
    We may view the NLMS algorithm as a time-varying step-              x1(n) is highly correlated with noise signal or reference signal
size algorithm, calculating the convergence factor µ as in Eq.          x(n). Desired signal d(n) results from addition of primary
(3)[5].                                                                 signal s(n) and correlated noise signal x1(n). The reference
                                                                        signal x(n) is fed into adaptive filter and its output y(n) is
                                                                        subtracted from desired signal d(n). Output of the summer
                                                                        block is then fed back to adaptive filter to update filter
    Where: α is the NLMS adaption constant, which optimize
                                                                        coefficients. This process is run recursively to obtain the
the convergence rate of the algorithm and should satisfy the            noise free signal which is supposed to be the same or very
condition 0< α<2, and c is the constant term for normalization          similar to primary signal s(n) .
and is always less than 1.
    In NLMS algorithm, the filter weights are updated by the
Eq. (4).




C. RECURSIVE LEAST SQUARE A LGORITHM
    The RLS algorithm is known for its excellent performance
when working in time varying environments but at the cost
of an increased computational complexity and some stability
problems. In this algorithm the filter tap weight vector is
updated using Eq. (5) [7].                                                        Figure 2. Adaptive Noise Cancellation system

                                                                                           IV. SIMULATION RESULTS
Eq. (6) and (7) are intermediate gain vector used to compute
                                                                            The adaptive noise canceller was implemented in
tap weights.
                                                                        MATLAB for three algorithms; LMS, NLMS and RLS [7]. In
                                                                        the simulation the reference input signal x(n) was a white
                                                                        Gaussian noise of power 1-dB generated using randn function
     Where: λ is a small positive constant very close to, but           in MATLAB, and source signal s(n) was a clean amplified
smaller than 1.                                                         ECG signal recorded with 12-lead configuration [6], the desired
     The filter output is calculated using the filter tap weights       signal d(n) ,obtained by adding a delayed version of x(n)
of previous iteration and the current input vector as in Eq.            into clean signal s(n), d(n) = s(n) + x1(n) as shown in Fig.3.
(8).
© 2012 ACEEE                                                        2
DOI: 01.IJSIP.03.01. 47
ACEEE Int. J. on Signal & Image Processing, Vol. 03, No. 01, Jan 2012


The simulation of the LMS, NLMS and RLS algorithms was                     algorithms.When input signal is non-stationary in nature,
carried out with the following specifications:                             the RLS algorithm proved to have the highest convergence
Filter order N=19, step size µ= 0.009 and iterations= 1000,                speed, less MSE,and higher SNR Improvement but at the
c= 0.001                                                                   cost of large computational complexity and memory
    The LMS filtered output is shown in Fig.4 (a), the mean                requirement. The NLMS algorithm changes the step-size
squared error generated as per adaption of filter parameters               according to the energy of input signals hence it is suitable
is shown in Fig.4 (b). The step size µ control the performance             for both stationary as well as non-stationary environment
of the algorithm, if µ is too large the convergence speed is               and its performance lies between LMS and RLS. Hence it
fast but filtering is not proper, if µ is too small the filter gives       provides a trade-off in convergence speed and computational
slow response, hence the selection of proper value of step-                complexity. The implementation of algorithms was
size for specific application is prominent to get good results.            successfully achieved, with results that have a really good
Fig.5 and Fig.6 shows the output results for NLMS and RLS                  response.
algorithms respectively. If we investigate the filtered output
of all algorithms, LMS adopt the approximate correct output                                       ACKNOWLEDGMENT
in 750 samples, NLMS adopt in 600 samples and RLS adopt
                                                                               The authors gratefully acknowledge Dr. B.D. Gupta
in 250 samples. This shows that RLS has fast learning rate.
                                                                           Director, Anand Engineering College, Agra, India and the
In Table-I performance analysis of all three algorithms is
                                                                           department of Electronics and Communication, Bundelkhand
presented in term of Mean Squared Error (MSE),
                                                                           Institute of Engineering and Technology (BIET), Jhansi, U.P.,
computational complexity and stability. It is clear from the
                                                                           India for providing necessary support and research facilities.
Table-I, the computational complexity and stability problems
increases in an algorithm as we try to reduce the mean squared
                                                                                                     REFERENCES
error.
                                                                           [1] Bernard Widrow, John R. Glover, John M. Mccool, John
       TABLE I. PERFORMANCE COMPARISON OF ADAPTIVE ALGORITHMS
                                                                           Kaunitz, Charles S. Williams, Robert H. Hean, James R. Zeidler,
                                                                           Eugene Dong, Jr. and Robert C. Goodlin, “Adaptive Noise
                                                                           Cancelling: Principles and Applications”, Proceedings of the IEEE,
                                                                           1975, Vol.63 , No. 12 , Page(s): 1692 – 1716.
                                                                           [2] J. Benesty, F. Amand , A. Gilloire and Y. Grenier , “Adaptive
                                                                           Filtering Algorithms for Stereophonic Acoustic Echo Cancellation”,
    In Table-II SNR Improvement is presented for each                      International Conference on Acoustics, Speech, and Signal
algorithm. From Table-I & Table-II it is clear that the RLS                Processing, 1995, vol.5, Page(s): 3099 – 3102.
                                                                           [3] Simon Haykin, “Adaptive Filter Theory”, Prentice Hall, 4 th
algorithm has best performance but same time the
                                                                           edition.
computational complexity is also increased. If we investigate              [4] Paulo S.R. Diniz, “Adaptive Filtering: Algorithms and Practical
NLMS algorithm its performance is comparable with RLS                      Implemetations” ,ISBN 978-0-387-31274-3, Kluwer Academic
algorithm with slight additional complexity hence NLMS is                  Publisher © 2008 Springer Science+Business Media, LLC, pp.77-
the favorable choice for most of the industries.                           195.
                                                                           [5] Abhishek Tandon, M. Omair Ahmad, “An efficient, low-
              TABLEII. COMPARISON OF SNR IMPROVEMENT
                                                                           complexity, normalized LMS algorithm for echo cancellation” The
                                                                           2nd Annual IEEE Northeast Workshop on Circuits and Systems,
                                                                           2004. NEWCAS 2004, Page(s): 161 – 164.
                                                                           [6] Ch. Renumadhavi, Dr. S.Madhava Kumar, Dr. A. G. Ananth,
                                                                           Nirupama Srinivasan, “A New Approach for Evaluating SNR of
                                                                           ECG Signals and Its Implementation”, Proceedings of the 6th
                          CONCLUSIONS                                      WSEAS International Conference on Simulation, Modelling and
                                                                           Optimization, Lisbon, Portugal, September 22-24, 2006.
    The main objective of this paper was to implement an                   [7] Ying He Hong He, Yi Wu and Hongyan Pan, “The Applications
adaptive noise canceller for de-noising an ECG signal and                  and Simulation of Adaptive Filter in Noise Canceling”, 2008
test the performance of the system for various adaptive                    International Conference on Computer Science and Software
                                                                           Engineering, 2008, Vol.4, Page(s): 1 – 4.




© 2012 ACEEE                                                           3
DOI: 01.IJSIP.03.01. 47
ACEEE Int. J. on Signal & Image Processing, Vol. 03, No. 01, Jan 2012




                          Figure. 3(a) Clean ECG signal s(n);(b) Noise signal x(n);(c) desired
                                                     signal d(n)




                              Figure 4. MATLAB simulation for LMS algorithm; N=19, step
                                                    size=0.009




                             Figure 5. MATLAB simulation for NLMS algorithm; N=19, step
                                                    size=0.001




                              Figure 6. MATLAB simulation for RLS algorithm; N=19, λ=1




© 2012 ACEEE                                                4
DOI: 01.IJSIP.03.01. 47

More Related Content

PDF
Oo2423882391
PDF
Echo Cancellation Algorithms using Adaptive Filters: A Comparative Study
PDF
Comparison of different Sub-Band Adaptive Noise Canceller with LMS and RLS
PDF
LMS Adaptive Filters for Noise Cancellation: A Review
PPTX
Adaptive Noise Cancellation
PPTX
Low power vlsi implementation adaptive noise cancellor based on least means s...
PPSX
Simulation and hardware implementation of Adaptive algorithms on tms320 c6713...
PPT
Acoustic echo cancellation using nlms adaptive algorithm ranbeer
Oo2423882391
Echo Cancellation Algorithms using Adaptive Filters: A Comparative Study
Comparison of different Sub-Band Adaptive Noise Canceller with LMS and RLS
LMS Adaptive Filters for Noise Cancellation: A Review
Adaptive Noise Cancellation
Low power vlsi implementation adaptive noise cancellor based on least means s...
Simulation and hardware implementation of Adaptive algorithms on tms320 c6713...
Acoustic echo cancellation using nlms adaptive algorithm ranbeer

What's hot (19)

PPTX
Acoustic echo cancellation
PDF
Adaptive Digital Filter Design for Linear Noise Cancellation Using Neural Net...
PDF
International Journal of Engineering Research and Development (IJERD)
DOC
Implementation Adaptive Noise Canceler
PPT
Antinoise system & Noise Cancellation
PDF
IJCER (www.ijceronline.com) International Journal of computational Engineerin...
DOCX
PDF
Analysis the results_of_acoustic_echo_cancellation_for_speech_processing_usin...
PDF
Basics of Digital Filters
PDF
Conditional Averaging a New Algorithm for Digital Filter
PPT
Lecture: Digital Signal Processing Batch 2009
PDF
Performance Evaluation of Different Thresholding Method for De-Noising of Vib...
PDF
Lc3618931897
PDF
Paper id 252014135
PDF
M.Tech Thesis on Simulation and Hardware Implementation of NLMS algorithm on ...
PDF
PPTX
Introduction to wavelet transform
PDF
E0162736
PPT
Thresholding eqns for wavelet
Acoustic echo cancellation
Adaptive Digital Filter Design for Linear Noise Cancellation Using Neural Net...
International Journal of Engineering Research and Development (IJERD)
Implementation Adaptive Noise Canceler
Antinoise system & Noise Cancellation
IJCER (www.ijceronline.com) International Journal of computational Engineerin...
Analysis the results_of_acoustic_echo_cancellation_for_speech_processing_usin...
Basics of Digital Filters
Conditional Averaging a New Algorithm for Digital Filter
Lecture: Digital Signal Processing Batch 2009
Performance Evaluation of Different Thresholding Method for De-Noising of Vib...
Lc3618931897
Paper id 252014135
M.Tech Thesis on Simulation and Hardware Implementation of NLMS algorithm on ...
Introduction to wavelet transform
E0162736
Thresholding eqns for wavelet
Ad

Viewers also liked (16)

PDF
Novel method to find the parameter for noise removal from multi channel ecg w...
PDF
Master thesis
PPTX
Technical pres
PPTX
Removing_movement_artifacts_from_ECG_signals_EIRINI_NIKOLAOU_4
PDF
Noise Cancellation in ECG Signals using Computationally
PDF
Analysis of Butterworth and Chebyshev Filters for ECG Denoising Using Wavelets
PDF
Swarm algorithm based adaptive filter design to remove power line interferenc...
PPTX
Pre amplifier desiging for phsiological
DOC
various type of artifacts in ECG signal & how it's remove
PPTX
Instrumentation amplifier in ECG
PPSX
Performance analysis of adaptive noise canceller for an ecg signal
PPT
Active filters
PDF
Basics of Analogue Filters
PPTX
ECG Noise cancelling
PPTX
PPTX
Ecg Signal Processing
Novel method to find the parameter for noise removal from multi channel ecg w...
Master thesis
Technical pres
Removing_movement_artifacts_from_ECG_signals_EIRINI_NIKOLAOU_4
Noise Cancellation in ECG Signals using Computationally
Analysis of Butterworth and Chebyshev Filters for ECG Denoising Using Wavelets
Swarm algorithm based adaptive filter design to remove power line interferenc...
Pre amplifier desiging for phsiological
various type of artifacts in ECG signal & how it's remove
Instrumentation amplifier in ECG
Performance analysis of adaptive noise canceller for an ecg signal
Active filters
Basics of Analogue Filters
ECG Noise cancelling
Ecg Signal Processing
Ad

Similar to Simulation of Adaptive Noise Canceller for an ECG signal Analysis (20)

PDF
P ERFORMANCE A NALYSIS O F A DAPTIVE N OISE C ANCELLER E MPLOYING N LMS A LG...
PDF
Filtering Electrocardiographic Signals using filtered- X LMS algorithm
PDF
A Decisive Filtering Selection Approach For Improved Performance Active Noise...
PDF
Z4301132136
PDF
Design and Implementation of Polyphase based Subband Adaptive Structure for N...
PDF
FPGA IMPLEMENTATION OF NOISE CANCELLATION USING ADAPTIVE ALGORITHMS
PDF
D017632228
PDF
K0466974
PDF
Paper id 26201481
PPT
Introduction to adaptive filtering and its applications.ppt
PPTX
Adaptive equalization
PDF
IRJET- Design Simulation and Analysis of Efficient De-Noising of ECG Signals ...
PDF
A novel adaptive algorithm for removal of power line interference from ecg si...
PDF
Adaptive Equalization
PDF
SIMULATIONS OF ADAPTIVE ALGORITHMS FOR SPATIAL BEAMFORMING
PDF
Hardware Implementation of Adaptive Noise Cancellation over DSP Kit TMS320C6713
PDF
Comparison of fx lms and n fxlms algorithms in matlab using active vibration ...
PDF
A_Noise_Reduction_Method_Based_on_LMS_Adaptive_Fil.pdf
PDF
DESIGN REALIZATION AND PERFORMANCE EVALUATION OF AN ACOUSTIC ECHO CANCELLATIO...
P ERFORMANCE A NALYSIS O F A DAPTIVE N OISE C ANCELLER E MPLOYING N LMS A LG...
Filtering Electrocardiographic Signals using filtered- X LMS algorithm
A Decisive Filtering Selection Approach For Improved Performance Active Noise...
Z4301132136
Design and Implementation of Polyphase based Subband Adaptive Structure for N...
FPGA IMPLEMENTATION OF NOISE CANCELLATION USING ADAPTIVE ALGORITHMS
D017632228
K0466974
Paper id 26201481
Introduction to adaptive filtering and its applications.ppt
Adaptive equalization
IRJET- Design Simulation and Analysis of Efficient De-Noising of ECG Signals ...
A novel adaptive algorithm for removal of power line interference from ecg si...
Adaptive Equalization
SIMULATIONS OF ADAPTIVE ALGORITHMS FOR SPATIAL BEAMFORMING
Hardware Implementation of Adaptive Noise Cancellation over DSP Kit TMS320C6713
Comparison of fx lms and n fxlms algorithms in matlab using active vibration ...
A_Noise_Reduction_Method_Based_on_LMS_Adaptive_Fil.pdf
DESIGN REALIZATION AND PERFORMANCE EVALUATION OF AN ACOUSTIC ECHO CANCELLATIO...

More from IDES Editor (20)

PDF
Power System State Estimation - A Review
PDF
Artificial Intelligence Technique based Reactive Power Planning Incorporating...
PDF
Design and Performance Analysis of Genetic based PID-PSS with SVC in a Multi-...
PDF
Optimal Placement of DG for Loss Reduction and Voltage Sag Mitigation in Radi...
PDF
Line Losses in the 14-Bus Power System Network using UPFC
PDF
Study of Structural Behaviour of Gravity Dam with Various Features of Gallery...
PDF
Assessing Uncertainty of Pushover Analysis to Geometric Modeling
PDF
Secure Multi-Party Negotiation: An Analysis for Electronic Payments in Mobile...
PDF
Selfish Node Isolation & Incentivation using Progressive Thresholds
PDF
Various OSI Layer Attacks and Countermeasure to Enhance the Performance of WS...
PDF
Responsive Parameter based an AntiWorm Approach to Prevent Wormhole Attack in...
PDF
Cloud Security and Data Integrity with Client Accountability Framework
PDF
Genetic Algorithm based Layered Detection and Defense of HTTP Botnet
PDF
Enhancing Data Storage Security in Cloud Computing Through Steganography
PDF
Low Energy Routing for WSN’s
PDF
Permutation of Pixels within the Shares of Visual Cryptography using KBRP for...
PDF
Rotman Lens Performance Analysis
PDF
Band Clustering for the Lossless Compression of AVIRIS Hyperspectral Images
PDF
Microelectronic Circuit Analogous to Hydrogen Bonding Network in Active Site ...
PDF
Texture Unit based Monocular Real-world Scene Classification using SOM and KN...
Power System State Estimation - A Review
Artificial Intelligence Technique based Reactive Power Planning Incorporating...
Design and Performance Analysis of Genetic based PID-PSS with SVC in a Multi-...
Optimal Placement of DG for Loss Reduction and Voltage Sag Mitigation in Radi...
Line Losses in the 14-Bus Power System Network using UPFC
Study of Structural Behaviour of Gravity Dam with Various Features of Gallery...
Assessing Uncertainty of Pushover Analysis to Geometric Modeling
Secure Multi-Party Negotiation: An Analysis for Electronic Payments in Mobile...
Selfish Node Isolation & Incentivation using Progressive Thresholds
Various OSI Layer Attacks and Countermeasure to Enhance the Performance of WS...
Responsive Parameter based an AntiWorm Approach to Prevent Wormhole Attack in...
Cloud Security and Data Integrity with Client Accountability Framework
Genetic Algorithm based Layered Detection and Defense of HTTP Botnet
Enhancing Data Storage Security in Cloud Computing Through Steganography
Low Energy Routing for WSN’s
Permutation of Pixels within the Shares of Visual Cryptography using KBRP for...
Rotman Lens Performance Analysis
Band Clustering for the Lossless Compression of AVIRIS Hyperspectral Images
Microelectronic Circuit Analogous to Hydrogen Bonding Network in Active Site ...
Texture Unit based Monocular Real-world Scene Classification using SOM and KN...

Recently uploaded (20)

PDF
Electronic commerce courselecture one. Pdf
PPT
Teaching material agriculture food technology
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PDF
Empathic Computing: Creating Shared Understanding
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PDF
Network Security Unit 5.pdf for BCA BBA.
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PPTX
MYSQL Presentation for SQL database connectivity
PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
PDF
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PDF
Encapsulation theory and applications.pdf
PPTX
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
Electronic commerce courselecture one. Pdf
Teaching material agriculture food technology
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
Understanding_Digital_Forensics_Presentation.pptx
Empathic Computing: Creating Shared Understanding
Reach Out and Touch Someone: Haptics and Empathic Computing
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
Network Security Unit 5.pdf for BCA BBA.
Mobile App Security Testing_ A Comprehensive Guide.pdf
Building Integrated photovoltaic BIPV_UPV.pdf
Chapter 3 Spatial Domain Image Processing.pdf
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
MYSQL Presentation for SQL database connectivity
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
Dropbox Q2 2025 Financial Results & Investor Presentation
Encapsulation theory and applications.pdf
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx

Simulation of Adaptive Noise Canceller for an ECG signal Analysis

  • 1. ACEEE Int. J. on Signal & Image Processing, Vol. 03, No. 01, Jan 2012 Simulation of Adaptive Noise Canceller for an ECG signal Analysis Dr. D.C. Dhubkarya1, Aastha Katara2, and Raj Kumar Thenua2 1 Department of Electronics & Communication, BIET, Jhansi, India Email: dcd3580@yahoo.com 2 Department of Electronics & Instrumentation, Anand Engineering College, Agra, India Email: aastha.katara@gmail.com, kumarraj04in@gmail.com Abstract— In numerous applications of signal processing, These are preferable because they are stable, and no special communications and biomedical we are faced with the adjustments are needed for their implementation.Fig.1 necessity to remove noise and distortion from the signals. illustrates the general configuration for an Adaptive filter [4]. Adaptive filtering is one of the most important areas in digital The adaptive filter has two inputs: the primary input d(n), signal processing to remove background noise and distortion. In last few years various adaptive algorithms are developed which represents the desired signal corrupted with undesired for noise cancellation. In this paper we have presented an noise, and the reference signal x(n), which is the undesired implementation of LMS (Least M ean Square), NLM S noise to be filtered out of the system. (Normalized Least Mean Square) and RLS (Recursive Least The goal of adaptive filtering systems is to reduce the Square) algorithms on MATLAB platform with the intention noise portion, and to obtain the uncorrupted desired signal. to compare their performance in noise cancellation application. In order to achieve this task, a reference of the noise signal is We simulate the adaptive filter in MATLAB with a noisy ECG needed. That reference is fed to the system, and it is called a signal and analyze the performance of algorithms in terms of reference signal x(n). However, the reference signal is typically M SE (Mean Squared Error), SNR Improvement, not the same signal as the noise portion of the primary signal computational complexity and stability. The obtained results shows that, the RLS algorithm eliminates more noise from - it can vary in amplitude, phase or time delay. Therefore the noisy ECG signal and has the best performance but at the cost reference signal cannot be simply subtracted from the primary of large computational complexity and higher memory signal to obtain the desired portion at the output. requirements. The basic idea for the adaptive filter is to predict the amount of noise in the primary signal, and then subtract that Index Terms— Adaptive filters, LMS, Mean Squared Error noise from it. The prediction is based on filtering the reference (MSE), RLS signal x(n), which contains a solid reference of the noise present in the primary signal. The noise in the reference signal I. INTRODUCTION is filtered to compensate for the amplitude, phase and time An adaptive filter has the property of self-modifying its delay, and then subtracted from the primary signal. This frequency response to change the behavior in time, allowing filtered noise is the system’s prediction of the noise portion the filter to adapt the response to the input signal of the primary signal, y(n). The resulting signal is called error characteristics change. Due to this capability, the overall signal e(n), and it presents the output of the system. Ideally, performance and the construction flexibility, the adaptive the resulting error signal would be only the desired portion filters have been employed in many different applications, of the primary signal. some of the most important are: telephonic echo cancellation, In this work we investigate the performance of various radar signal processing, navigation systems, communications adaptive algorithms with the help of MATLAB simulation [7] channel equalization and biomedical signals processing [1- and tested for an ECG signal. The paper is organized in four 3].The most common adaptive filters, which are used during sections; section 2 gives an idea of adaptive algorithms, in the adaption process, are the finite impulse response (FIR) section 3 an Adaptive Noise Cancellation (ANC) model is types. designed and finally the results are discussed in section 4. II. ADAPTIVE ALGORITHMS A. LEAST MEAN SQUARE A LGORITHM The LMS algorithm [4], is a type of adaptive filter algorithm that is also known as stochastic gradient-based algorithm as it utilizes the gradient vector of the filter tap weights to converge on the optimal wiener solution. With each iteration of the LMS algorithm, the filter tap weights of the adaptive filter are updated according to the following formula: Figure 1. General Adaptive filter configuration © 2012 ACEEE 1 DOI: 01.IJSIP.03.01. 47
  • 2. ACEEE Int. J. on Signal & Image Processing, Vol. 03, No. 01, Jan 2012 Here x(n) is the input vector of time delayed input values, In the RLS algorithm the estimate of previous samples of The vector output signal, error signal and filter weight is required that represents the coefficients of the adaptive FIR filter tap weight leads to higher memory requirements. vector at time n. The parameter µ is known as the step size parameter and III. ADAPTIVE NOISE CANCELLATION is a small positive constant. This step size parameter controls the influence of the updating factor. Selection of a suitable Adaptive noise cancellation (ANC) is performed by value for µ is imperative to the performance of the LMS subtracting noise from a received signal, and an operation algorithm, if the value is too small the time the adaptive filter controlled in an adaptive manner is done during the takes to converge on the optimal solution will be too long; if adaptation process to get an improved signal-to-noise ratio. µ is too large the adaptive filter becomes unstable and its Noise subtraction from a received signal could generate output diverges. disastrous results by causing an increase in the average power of the output noise. However when filtering and B.NORMALIZED LEAST MEAN SQUARED A LGORITHM subtraction are controlled by an adaptive process, it is In the standard LMS algorithm, when the convergence possible to achieve a superior system performance compared factor µ is large, the algorithm experiences a gradient noise to direct filtering of the received signal. Fig.2 shows adaptive amplification problem. In order to solve this difficulty, we can noise canceling system. use the NLMS (Normalized Least Mean Square) algorithm. The ANC system composed of two separate inputs, a The correction applied to the weight vector w(n) at iteration primary input or ECG signal source which is shown as s(n) n+1 is “normalized” with respect to the squared Euclidian and a reference input that is the noise input shown as x(n) . norm of the input vector x(n) at iteration n. The primary signal is corrupted by noise x1(n). The signal We may view the NLMS algorithm as a time-varying step- x1(n) is highly correlated with noise signal or reference signal size algorithm, calculating the convergence factor µ as in Eq. x(n). Desired signal d(n) results from addition of primary (3)[5]. signal s(n) and correlated noise signal x1(n). The reference signal x(n) is fed into adaptive filter and its output y(n) is subtracted from desired signal d(n). Output of the summer block is then fed back to adaptive filter to update filter Where: α is the NLMS adaption constant, which optimize coefficients. This process is run recursively to obtain the the convergence rate of the algorithm and should satisfy the noise free signal which is supposed to be the same or very condition 0< α<2, and c is the constant term for normalization similar to primary signal s(n) . and is always less than 1. In NLMS algorithm, the filter weights are updated by the Eq. (4). C. RECURSIVE LEAST SQUARE A LGORITHM The RLS algorithm is known for its excellent performance when working in time varying environments but at the cost of an increased computational complexity and some stability problems. In this algorithm the filter tap weight vector is updated using Eq. (5) [7]. Figure 2. Adaptive Noise Cancellation system IV. SIMULATION RESULTS Eq. (6) and (7) are intermediate gain vector used to compute The adaptive noise canceller was implemented in tap weights. MATLAB for three algorithms; LMS, NLMS and RLS [7]. In the simulation the reference input signal x(n) was a white Gaussian noise of power 1-dB generated using randn function Where: λ is a small positive constant very close to, but in MATLAB, and source signal s(n) was a clean amplified smaller than 1. ECG signal recorded with 12-lead configuration [6], the desired The filter output is calculated using the filter tap weights signal d(n) ,obtained by adding a delayed version of x(n) of previous iteration and the current input vector as in Eq. into clean signal s(n), d(n) = s(n) + x1(n) as shown in Fig.3. (8). © 2012 ACEEE 2 DOI: 01.IJSIP.03.01. 47
  • 3. ACEEE Int. J. on Signal & Image Processing, Vol. 03, No. 01, Jan 2012 The simulation of the LMS, NLMS and RLS algorithms was algorithms.When input signal is non-stationary in nature, carried out with the following specifications: the RLS algorithm proved to have the highest convergence Filter order N=19, step size µ= 0.009 and iterations= 1000, speed, less MSE,and higher SNR Improvement but at the c= 0.001 cost of large computational complexity and memory The LMS filtered output is shown in Fig.4 (a), the mean requirement. The NLMS algorithm changes the step-size squared error generated as per adaption of filter parameters according to the energy of input signals hence it is suitable is shown in Fig.4 (b). The step size µ control the performance for both stationary as well as non-stationary environment of the algorithm, if µ is too large the convergence speed is and its performance lies between LMS and RLS. Hence it fast but filtering is not proper, if µ is too small the filter gives provides a trade-off in convergence speed and computational slow response, hence the selection of proper value of step- complexity. The implementation of algorithms was size for specific application is prominent to get good results. successfully achieved, with results that have a really good Fig.5 and Fig.6 shows the output results for NLMS and RLS response. algorithms respectively. If we investigate the filtered output of all algorithms, LMS adopt the approximate correct output ACKNOWLEDGMENT in 750 samples, NLMS adopt in 600 samples and RLS adopt The authors gratefully acknowledge Dr. B.D. Gupta in 250 samples. This shows that RLS has fast learning rate. Director, Anand Engineering College, Agra, India and the In Table-I performance analysis of all three algorithms is department of Electronics and Communication, Bundelkhand presented in term of Mean Squared Error (MSE), Institute of Engineering and Technology (BIET), Jhansi, U.P., computational complexity and stability. It is clear from the India for providing necessary support and research facilities. Table-I, the computational complexity and stability problems increases in an algorithm as we try to reduce the mean squared REFERENCES error. [1] Bernard Widrow, John R. Glover, John M. Mccool, John TABLE I. PERFORMANCE COMPARISON OF ADAPTIVE ALGORITHMS Kaunitz, Charles S. Williams, Robert H. Hean, James R. Zeidler, Eugene Dong, Jr. and Robert C. Goodlin, “Adaptive Noise Cancelling: Principles and Applications”, Proceedings of the IEEE, 1975, Vol.63 , No. 12 , Page(s): 1692 – 1716. [2] J. Benesty, F. Amand , A. Gilloire and Y. Grenier , “Adaptive Filtering Algorithms for Stereophonic Acoustic Echo Cancellation”, In Table-II SNR Improvement is presented for each International Conference on Acoustics, Speech, and Signal algorithm. From Table-I & Table-II it is clear that the RLS Processing, 1995, vol.5, Page(s): 3099 – 3102. [3] Simon Haykin, “Adaptive Filter Theory”, Prentice Hall, 4 th algorithm has best performance but same time the edition. computational complexity is also increased. If we investigate [4] Paulo S.R. Diniz, “Adaptive Filtering: Algorithms and Practical NLMS algorithm its performance is comparable with RLS Implemetations” ,ISBN 978-0-387-31274-3, Kluwer Academic algorithm with slight additional complexity hence NLMS is Publisher © 2008 Springer Science+Business Media, LLC, pp.77- the favorable choice for most of the industries. 195. [5] Abhishek Tandon, M. Omair Ahmad, “An efficient, low- TABLEII. COMPARISON OF SNR IMPROVEMENT complexity, normalized LMS algorithm for echo cancellation” The 2nd Annual IEEE Northeast Workshop on Circuits and Systems, 2004. NEWCAS 2004, Page(s): 161 – 164. [6] Ch. Renumadhavi, Dr. S.Madhava Kumar, Dr. A. G. Ananth, Nirupama Srinivasan, “A New Approach for Evaluating SNR of ECG Signals and Its Implementation”, Proceedings of the 6th CONCLUSIONS WSEAS International Conference on Simulation, Modelling and Optimization, Lisbon, Portugal, September 22-24, 2006. The main objective of this paper was to implement an [7] Ying He Hong He, Yi Wu and Hongyan Pan, “The Applications adaptive noise canceller for de-noising an ECG signal and and Simulation of Adaptive Filter in Noise Canceling”, 2008 test the performance of the system for various adaptive International Conference on Computer Science and Software Engineering, 2008, Vol.4, Page(s): 1 – 4. © 2012 ACEEE 3 DOI: 01.IJSIP.03.01. 47
  • 4. ACEEE Int. J. on Signal & Image Processing, Vol. 03, No. 01, Jan 2012 Figure. 3(a) Clean ECG signal s(n);(b) Noise signal x(n);(c) desired signal d(n) Figure 4. MATLAB simulation for LMS algorithm; N=19, step size=0.009 Figure 5. MATLAB simulation for NLMS algorithm; N=19, step size=0.001 Figure 6. MATLAB simulation for RLS algorithm; N=19, λ=1 © 2012 ACEEE 4 DOI: 01.IJSIP.03.01. 47