SlideShare a Scribd company logo
1 of 20
Download to read offline
PONDICHERRY UNIVERSITY
DEPARTMENT OF ELECTRONICS
ENGINEERING
NOISE CANCELLATION USING LMS ALGORITHM
SUBMITTED TO:
PROF. DR. K. ANUSUDHA
DEPT. OF ELECTRONICS ENGINEERING
SUBMITTED BY:
AWANISH KUMAR
M.TECH(ECE)-1st Year
21304006 1
CONTENTS
• OBJECTIVE
• INTRODUCTION
• ADAPTIVE FILTER
• BLOCK DIAGRAM
• LEAST MEAN SQUARE - LMS
• ADVANTAGES AND DISADVANTAGES
• MATLAB CODE
• CONCLUSION
2
OBJECTIVE
• The main objective of this presentation is to eliminate noise from the corrupted
input signal and adapt the Adaptive transversal filter (ATF) weights in the way
that the mean square of the estimated error is to be minimized by using the
Least Mean Square (LMS) algorithm.
• To get the best estimate of the desired signal from the noise-corrupted signal.
• To extract the desired signal from the noisy process, where the desired signal is a
sinusoid with unit amplitude that is observed in the presence of additive noise.
3
INTRODUCTION
In real-time digital signal processing applications, there are many situations
in which useful signals are corrupted by unwanted generated signals that
are classified as noise. Noise can occur randomly or as white noise with an
even frequency distribution or as frequency-dependent noise. The term
noise includes not only thermal or flicker noise, but all disturbances, either in
stimuli, environment or components of sensors and circuits. Noisy data may
arise from a variety of internal and external sources.
4
ADAPTIVE NOISE CANCELLATION
➢ Adaptive noise cancellation is the approach used for estimating a desired
signal d(n) from a noise-corrupted observation.
x(n) = d(n) + v1(n)
➢ Usually the method uses a primary input containing the corrupted signal
and a reference input containing noise correlated in some unknown way
with the primary noise.
➢ The reference input v1(n) can be filtered and subtracted from the primary
input to obtain the signal estimate 𝑑 ̂(n).
➢ As the measurement system is a black box, no reference signal that is
correlated with the noise is available.
5
ADAPTIVE FILTER
• An adaptive filter is composed of two parts, the digital filter and the
adaptive algorithm.
• A digital filter with adjustable coefficients wn(z) and an adaptive algorithm
which is used to adjust or modify the coefficients of the filter.
• The adaptive filter can be a Finite Impulse Response FIR filter or an
Infinite Impulse Response IIR filter.
6
BLOCK DIAGRAM OF AN ADAPTIVE FILTER
7
➢ The filtering process involves the computation of the filter output y(n) in
response to the filter input signal x(n).
➢ The filter output is compared with the desired response d(n), generating an
error estimation e(n).
➢ The feedback error signal e(n) is then used by the adaptive algorithm to modify
the adjustable coefficients of the filter wn, generally called weight in order to
minimize the error according to some optimization criterion.
8
ALGORITHMS FOR ADAPTIVE EQUALIZATION
• There are three different types of adaptive filtering algorithms.
➢ Zero forcing (ZF)
➢ least mean square (LMS)
➢ Recursive least square filter (RLS)
• Recursive least square is an adaptive filter algorithm that recursively finds the coefficients
that minimize a weighted linear least squares cost function relating to the input signals.
• This approach is different from the least mean-square algorithm that aim to reduce the
mean-square error.
9
Least Mean Square - LMS
• The LMS algorithm in general, consists of two basics procedure:
1. Filtering process, which involve, computing the output (d(n - d)) of a linear filter in
response to the input signal and generating an estimation error by comparing this
output with a desired response as follows:
y(n) is filter output and is the desired response at time n
2. Adaptive process, which involves the automatics adjustment of the parameter of the
filter in accordance with the estimation error.
10
11
Structure of adaptive filter with LMS algorithm
➢ LMS algorithm equation
➢ where wn is the estimate of the weight value vector at time n, x(n) is the input
signal vector.
➢ e(n) is the filter error vector and μ is the step-size, which determines the filter
convergence rate and overall behavior.
➢ One of the difficulties in the design and implementation of the LMS adaptive
filter is the selection of the step-size μ. This parameter must lie in a specific
range, so that the LMS algorithm converges.
➢ LMS algorithm, aims to reduce the mean-square error.
12
RATE OF CONVERGENCE
⮚Convergence of the LMS adaptive algorithm
• The convergence characteristics of the LMS adaptive algorithm depends on two
factors: the step-size μ and the eigenvalue spread of the autocorrelation matrix .
The step-size μ must lie in a specific range
where 𝜆𝑚𝑎𝑥 is the largest eigenvalue of the autocorrelation matrix Rx.
• A large value of the step-size μ will lead to a faster convergence but may be less
stable around the minimum value. The convergence of the algorithm is inversely
proportional to the eigenvalue spread of the correlation matrix.
13
ADVANTAGES AND DISADVANTAGES
➢ LMS Simple and can be easily applied but RLS Increased complexity
and computational cost.
➢ LMS Takes longer to converge but RLS faster convergence.
➢ Larger steady state error with respect to the unknown system.
➢ Objective is to minimize the current mean square error between the
desired signal and the output.
14
MATLAB CODE
clc;
clear;
close all;
% Generation Desired signal
t = 0.001:0.001:1;
D = 2*sin(2*pi*50*t);
% Generating signal corrupted with
noise
n = numel(D);
A = D(1:n)+0.9*randn(1,n);
M = 25;
W = zeros(1,M);
Wi = zeros(1,M);
E = [];
mu = 0.002;
for i = M:n
E(i) = D(i) - Wi*A(i:-1:i-M+1)';
Wi = Wi + 2*mu*E(i)*A(i:-1:i-M+1);
end
Est = zeros(n,1); % Estimation of the signal
for i = M:n
j = A(i:-1:i-M+1);
Est(i) = ((Wi)*(j)');
end
Err =Est’-D; % computing the error signal
%Display of signal
figure(1)
subplot(4,1,1);
plot(D);
title('Desired signal');
subplot(4,1,2);
plot(A);
title('signal corrupted with noise');
subplot(4,1,3);
plot(Est);
title('LMS - Estimated signal');
subplot(4,1,4);
plot(Err);
title('Error signal');
15
16
OUTPUT - LMS ESTIMATED SIGNAL
17
CONCLUSION
The LMS algorithm is simple and has less computational complexity when compared
with the RLS algorithm. But the RLS algorithm has faster convergence rate than LMS
algorithm at the cost of higher computational complexity. The plays a role in
RLS algorithm similar to that of step size parameter in the LMS algorithm .RLS
algorithm has better performance than LMS algorithm in the low signal to noise ratio.
18
REFERENCE
➢ Adaptive filter theory by Simon Haykin.
➢ Johan. G. Proakis, “Digital Communications”, Fourth
Edition, McGrow-Hill, 2001.
➢ Adaptive Filter Algorithm, [online] Available from:
➢ http://zone.ni.com/reference/enXX/help/372357A01/lvaftco
ncepts/firfilter/adaptive algorithm.
➢ Matlab for scientists and Engineers by Brian D Hahn.
19
THANK YOU
20

More Related Content

Similar to LMS .pdf

Channel Equalisation
Channel EqualisationChannel Equalisation
Channel EqualisationPoonan Sahoo
 
FPGA IMPLEMENTATION OF NOISE CANCELLATION USING ADAPTIVE ALGORITHMS
FPGA IMPLEMENTATION OF NOISE CANCELLATION USING ADAPTIVE ALGORITHMSFPGA IMPLEMENTATION OF NOISE CANCELLATION USING ADAPTIVE ALGORITHMS
FPGA IMPLEMENTATION OF NOISE CANCELLATION USING ADAPTIVE ALGORITHMSEditor IJMTER
 
Performance Analysis and Simulation of Decimator for Multirate Applications
Performance Analysis and Simulation of Decimator for Multirate ApplicationsPerformance Analysis and Simulation of Decimator for Multirate Applications
Performance Analysis and Simulation of Decimator for Multirate ApplicationsIJEEE
 
Comparison of different Sub-Band Adaptive Noise Canceller with LMS and RLS
Comparison of different Sub-Band Adaptive Noise Canceller with LMS and RLSComparison of different Sub-Band Adaptive Noise Canceller with LMS and RLS
Comparison of different Sub-Band Adaptive Noise Canceller with LMS and RLSijsrd.com
 
Application of smart antenna interference suppression techniques in tdscdma
Application of smart antenna interference suppression techniques in tdscdmaApplication of smart antenna interference suppression techniques in tdscdma
Application of smart antenna interference suppression techniques in tdscdmamarwaeng
 
Low power vlsi implementation adaptive noise cancellor based on least means s...
Low power vlsi implementation adaptive noise cancellor based on least means s...Low power vlsi implementation adaptive noise cancellor based on least means s...
Low power vlsi implementation adaptive noise cancellor based on least means s...shaik chand basha
 
Echo Cancellation Algorithms using Adaptive Filters: A Comparative Study
Echo Cancellation Algorithms using Adaptive Filters: A Comparative StudyEcho Cancellation Algorithms using Adaptive Filters: A Comparative Study
Echo Cancellation Algorithms using Adaptive Filters: A Comparative Studyidescitation
 
Paper id 252014114
Paper id 252014114Paper id 252014114
Paper id 252014114IJRAT
 
Equalization
EqualizationEqualization
Equalizationbhabendu
 
Analysis the results_of_acoustic_echo_cancellation_for_speech_processing_usin...
Analysis the results_of_acoustic_echo_cancellation_for_speech_processing_usin...Analysis the results_of_acoustic_echo_cancellation_for_speech_processing_usin...
Analysis the results_of_acoustic_echo_cancellation_for_speech_processing_usin...Venkata Sudhir Vedurla
 
Hybrid hmmdtw based speech recognition with kernel adaptive filtering method
Hybrid hmmdtw based speech recognition with kernel adaptive filtering methodHybrid hmmdtw based speech recognition with kernel adaptive filtering method
Hybrid hmmdtw based speech recognition with kernel adaptive filtering methodijcsa
 
Efficient realization-of-an-adfe-with-a-new-adaptive-algorithm
Efficient realization-of-an-adfe-with-a-new-adaptive-algorithmEfficient realization-of-an-adfe-with-a-new-adaptive-algorithm
Efficient realization-of-an-adfe-with-a-new-adaptive-algorithmCemal Ardil
 
DSP_2018_FOEHU - Lec 05 - Digital Filters
DSP_2018_FOEHU - Lec 05 - Digital FiltersDSP_2018_FOEHU - Lec 05 - Digital Filters
DSP_2018_FOEHU - Lec 05 - Digital FiltersAmr E. Mohamed
 
DSP_FOEHU - Lec 11 - IIR Filter Design
DSP_FOEHU - Lec 11 - IIR Filter DesignDSP_FOEHU - Lec 11 - IIR Filter Design
DSP_FOEHU - Lec 11 - IIR Filter DesignAmr E. Mohamed
 
linear equalizer and turbo equalizer
linear equalizer and turbo equalizerlinear equalizer and turbo equalizer
linear equalizer and turbo equalizerDivya_mtech
 

Similar to LMS .pdf (20)

Channel Equalisation
Channel EqualisationChannel Equalisation
Channel Equalisation
 
FPGA IMPLEMENTATION OF NOISE CANCELLATION USING ADAPTIVE ALGORITHMS
FPGA IMPLEMENTATION OF NOISE CANCELLATION USING ADAPTIVE ALGORITHMSFPGA IMPLEMENTATION OF NOISE CANCELLATION USING ADAPTIVE ALGORITHMS
FPGA IMPLEMENTATION OF NOISE CANCELLATION USING ADAPTIVE ALGORITHMS
 
476 293
476 293476 293
476 293
 
Adaptive Filtering.ppt
Adaptive Filtering.pptAdaptive Filtering.ppt
Adaptive Filtering.ppt
 
Performance Analysis and Simulation of Decimator for Multirate Applications
Performance Analysis and Simulation of Decimator for Multirate ApplicationsPerformance Analysis and Simulation of Decimator for Multirate Applications
Performance Analysis and Simulation of Decimator for Multirate Applications
 
Comparison of different Sub-Band Adaptive Noise Canceller with LMS and RLS
Comparison of different Sub-Band Adaptive Noise Canceller with LMS and RLSComparison of different Sub-Band Adaptive Noise Canceller with LMS and RLS
Comparison of different Sub-Band Adaptive Noise Canceller with LMS and RLS
 
Application of smart antenna interference suppression techniques in tdscdma
Application of smart antenna interference suppression techniques in tdscdmaApplication of smart antenna interference suppression techniques in tdscdma
Application of smart antenna interference suppression techniques in tdscdma
 
Low power vlsi implementation adaptive noise cancellor based on least means s...
Low power vlsi implementation adaptive noise cancellor based on least means s...Low power vlsi implementation adaptive noise cancellor based on least means s...
Low power vlsi implementation adaptive noise cancellor based on least means s...
 
Echo Cancellation Algorithms using Adaptive Filters: A Comparative Study
Echo Cancellation Algorithms using Adaptive Filters: A Comparative StudyEcho Cancellation Algorithms using Adaptive Filters: A Comparative Study
Echo Cancellation Algorithms using Adaptive Filters: A Comparative Study
 
Paper id 252014114
Paper id 252014114Paper id 252014114
Paper id 252014114
 
Equalization
EqualizationEqualization
Equalization
 
Analysis the results_of_acoustic_echo_cancellation_for_speech_processing_usin...
Analysis the results_of_acoustic_echo_cancellation_for_speech_processing_usin...Analysis the results_of_acoustic_echo_cancellation_for_speech_processing_usin...
Analysis the results_of_acoustic_echo_cancellation_for_speech_processing_usin...
 
Dsp lecture vol 7 adaptive filter
Dsp lecture vol 7 adaptive filterDsp lecture vol 7 adaptive filter
Dsp lecture vol 7 adaptive filter
 
Hybrid hmmdtw based speech recognition with kernel adaptive filtering method
Hybrid hmmdtw based speech recognition with kernel adaptive filtering methodHybrid hmmdtw based speech recognition with kernel adaptive filtering method
Hybrid hmmdtw based speech recognition with kernel adaptive filtering method
 
Efficient realization-of-an-adfe-with-a-new-adaptive-algorithm
Efficient realization-of-an-adfe-with-a-new-adaptive-algorithmEfficient realization-of-an-adfe-with-a-new-adaptive-algorithm
Efficient realization-of-an-adfe-with-a-new-adaptive-algorithm
 
dsp.pdf
dsp.pdfdsp.pdf
dsp.pdf
 
Efficient very large-scale integration architecture design of proportionate-...
Efficient very large-scale integration architecture design of  proportionate-...Efficient very large-scale integration architecture design of  proportionate-...
Efficient very large-scale integration architecture design of proportionate-...
 
DSP_2018_FOEHU - Lec 05 - Digital Filters
DSP_2018_FOEHU - Lec 05 - Digital FiltersDSP_2018_FOEHU - Lec 05 - Digital Filters
DSP_2018_FOEHU - Lec 05 - Digital Filters
 
DSP_FOEHU - Lec 11 - IIR Filter Design
DSP_FOEHU - Lec 11 - IIR Filter DesignDSP_FOEHU - Lec 11 - IIR Filter Design
DSP_FOEHU - Lec 11 - IIR Filter Design
 
linear equalizer and turbo equalizer
linear equalizer and turbo equalizerlinear equalizer and turbo equalizer
linear equalizer and turbo equalizer
 

More from AWANISHKUMAR84

Cognitive Radio Spectrum Management.pdf
Cognitive Radio Spectrum Management.pdfCognitive Radio Spectrum Management.pdf
Cognitive Radio Spectrum Management.pdfAWANISHKUMAR84
 
Optimum Receiver corrupted by AWGN Channel
Optimum Receiver corrupted by AWGN ChannelOptimum Receiver corrupted by AWGN Channel
Optimum Receiver corrupted by AWGN ChannelAWANISHKUMAR84
 
Optical Channel Capacity of MIMO system
Optical Channel Capacity of MIMO systemOptical Channel Capacity of MIMO system
Optical Channel Capacity of MIMO systemAWANISHKUMAR84
 
Rfid based attendance system using arduino (1)
Rfid based attendance system using arduino (1)Rfid based attendance system using arduino (1)
Rfid based attendance system using arduino (1)AWANISHKUMAR84
 

More from AWANISHKUMAR84 (7)

FSM.pdf
FSM.pdfFSM.pdf
FSM.pdf
 
Cognitive Radio Spectrum Management.pdf
Cognitive Radio Spectrum Management.pdfCognitive Radio Spectrum Management.pdf
Cognitive Radio Spectrum Management.pdf
 
Bit Error rate of QAM
Bit Error rate of QAMBit Error rate of QAM
Bit Error rate of QAM
 
Optimum Receiver corrupted by AWGN Channel
Optimum Receiver corrupted by AWGN ChannelOptimum Receiver corrupted by AWGN Channel
Optimum Receiver corrupted by AWGN Channel
 
Optical Channel Capacity of MIMO system
Optical Channel Capacity of MIMO systemOptical Channel Capacity of MIMO system
Optical Channel Capacity of MIMO system
 
Rfid based attendance system using arduino (1)
Rfid based attendance system using arduino (1)Rfid based attendance system using arduino (1)
Rfid based attendance system using arduino (1)
 
CMOS
CMOS CMOS
CMOS
 

Recently uploaded

Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxRamakrishna Reddy Bijjam
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17Celine George
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxEsquimalt MFRC
 
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...Amil baba
 
Model Attribute _rec_name in the Odoo 17
Model Attribute _rec_name in the Odoo 17Model Attribute _rec_name in the Odoo 17
Model Attribute _rec_name in the Odoo 17Celine George
 
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxHMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxmarlenawright1
 
What is 3 Way Matching Process in Odoo 17.pptx
What is 3 Way Matching Process in Odoo 17.pptxWhat is 3 Way Matching Process in Odoo 17.pptx
What is 3 Way Matching Process in Odoo 17.pptxCeline George
 
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Pooja Bhuva
 
PANDITA RAMABAI- Indian political thought GENDER.pptx
PANDITA RAMABAI- Indian political thought GENDER.pptxPANDITA RAMABAI- Indian political thought GENDER.pptx
PANDITA RAMABAI- Indian political thought GENDER.pptxakanksha16arora
 
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptxOn_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptxPooja Bhuva
 
How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17Celine George
 
REMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxREMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxDr. Ravikiran H M Gowda
 
Details on CBSE Compartment Exam.pptx1111
Details on CBSE Compartment Exam.pptx1111Details on CBSE Compartment Exam.pptx1111
Details on CBSE Compartment Exam.pptx1111GangaMaiya1
 
QUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lesson
QUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lessonQUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lesson
QUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lessonhttgc7rh9c
 
Tatlong Kwento ni Lola basyang-1.pdf arts
Tatlong Kwento ni Lola basyang-1.pdf artsTatlong Kwento ni Lola basyang-1.pdf arts
Tatlong Kwento ni Lola basyang-1.pdf artsNbelano25
 
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...EADTU
 
Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jisc
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxheathfieldcps1
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsMebane Rash
 

Recently uploaded (20)

Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
 
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
 
Model Attribute _rec_name in the Odoo 17
Model Attribute _rec_name in the Odoo 17Model Attribute _rec_name in the Odoo 17
Model Attribute _rec_name in the Odoo 17
 
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxHMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
 
What is 3 Way Matching Process in Odoo 17.pptx
What is 3 Way Matching Process in Odoo 17.pptxWhat is 3 Way Matching Process in Odoo 17.pptx
What is 3 Way Matching Process in Odoo 17.pptx
 
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
 
PANDITA RAMABAI- Indian political thought GENDER.pptx
PANDITA RAMABAI- Indian political thought GENDER.pptxPANDITA RAMABAI- Indian political thought GENDER.pptx
PANDITA RAMABAI- Indian political thought GENDER.pptx
 
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptxOn_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
 
How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17
 
Our Environment Class 10 Science Notes pdf
Our Environment Class 10 Science Notes pdfOur Environment Class 10 Science Notes pdf
Our Environment Class 10 Science Notes pdf
 
REMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxREMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptx
 
Details on CBSE Compartment Exam.pptx1111
Details on CBSE Compartment Exam.pptx1111Details on CBSE Compartment Exam.pptx1111
Details on CBSE Compartment Exam.pptx1111
 
QUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lesson
QUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lessonQUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lesson
QUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lesson
 
Tatlong Kwento ni Lola basyang-1.pdf arts
Tatlong Kwento ni Lola basyang-1.pdf artsTatlong Kwento ni Lola basyang-1.pdf arts
Tatlong Kwento ni Lola basyang-1.pdf arts
 
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
 
Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 

LMS .pdf

  • 1. PONDICHERRY UNIVERSITY DEPARTMENT OF ELECTRONICS ENGINEERING NOISE CANCELLATION USING LMS ALGORITHM SUBMITTED TO: PROF. DR. K. ANUSUDHA DEPT. OF ELECTRONICS ENGINEERING SUBMITTED BY: AWANISH KUMAR M.TECH(ECE)-1st Year 21304006 1
  • 2. CONTENTS • OBJECTIVE • INTRODUCTION • ADAPTIVE FILTER • BLOCK DIAGRAM • LEAST MEAN SQUARE - LMS • ADVANTAGES AND DISADVANTAGES • MATLAB CODE • CONCLUSION 2
  • 3. OBJECTIVE • The main objective of this presentation is to eliminate noise from the corrupted input signal and adapt the Adaptive transversal filter (ATF) weights in the way that the mean square of the estimated error is to be minimized by using the Least Mean Square (LMS) algorithm. • To get the best estimate of the desired signal from the noise-corrupted signal. • To extract the desired signal from the noisy process, where the desired signal is a sinusoid with unit amplitude that is observed in the presence of additive noise. 3
  • 4. INTRODUCTION In real-time digital signal processing applications, there are many situations in which useful signals are corrupted by unwanted generated signals that are classified as noise. Noise can occur randomly or as white noise with an even frequency distribution or as frequency-dependent noise. The term noise includes not only thermal or flicker noise, but all disturbances, either in stimuli, environment or components of sensors and circuits. Noisy data may arise from a variety of internal and external sources. 4
  • 5. ADAPTIVE NOISE CANCELLATION ➢ Adaptive noise cancellation is the approach used for estimating a desired signal d(n) from a noise-corrupted observation. x(n) = d(n) + v1(n) ➢ Usually the method uses a primary input containing the corrupted signal and a reference input containing noise correlated in some unknown way with the primary noise. ➢ The reference input v1(n) can be filtered and subtracted from the primary input to obtain the signal estimate 𝑑 ̂(n). ➢ As the measurement system is a black box, no reference signal that is correlated with the noise is available. 5
  • 6. ADAPTIVE FILTER • An adaptive filter is composed of two parts, the digital filter and the adaptive algorithm. • A digital filter with adjustable coefficients wn(z) and an adaptive algorithm which is used to adjust or modify the coefficients of the filter. • The adaptive filter can be a Finite Impulse Response FIR filter or an Infinite Impulse Response IIR filter. 6
  • 7. BLOCK DIAGRAM OF AN ADAPTIVE FILTER 7
  • 8. ➢ The filtering process involves the computation of the filter output y(n) in response to the filter input signal x(n). ➢ The filter output is compared with the desired response d(n), generating an error estimation e(n). ➢ The feedback error signal e(n) is then used by the adaptive algorithm to modify the adjustable coefficients of the filter wn, generally called weight in order to minimize the error according to some optimization criterion. 8
  • 9. ALGORITHMS FOR ADAPTIVE EQUALIZATION • There are three different types of adaptive filtering algorithms. ➢ Zero forcing (ZF) ➢ least mean square (LMS) ➢ Recursive least square filter (RLS) • Recursive least square is an adaptive filter algorithm that recursively finds the coefficients that minimize a weighted linear least squares cost function relating to the input signals. • This approach is different from the least mean-square algorithm that aim to reduce the mean-square error. 9
  • 10. Least Mean Square - LMS • The LMS algorithm in general, consists of two basics procedure: 1. Filtering process, which involve, computing the output (d(n - d)) of a linear filter in response to the input signal and generating an estimation error by comparing this output with a desired response as follows: y(n) is filter output and is the desired response at time n 2. Adaptive process, which involves the automatics adjustment of the parameter of the filter in accordance with the estimation error. 10
  • 11. 11 Structure of adaptive filter with LMS algorithm
  • 12. ➢ LMS algorithm equation ➢ where wn is the estimate of the weight value vector at time n, x(n) is the input signal vector. ➢ e(n) is the filter error vector and μ is the step-size, which determines the filter convergence rate and overall behavior. ➢ One of the difficulties in the design and implementation of the LMS adaptive filter is the selection of the step-size μ. This parameter must lie in a specific range, so that the LMS algorithm converges. ➢ LMS algorithm, aims to reduce the mean-square error. 12
  • 13. RATE OF CONVERGENCE ⮚Convergence of the LMS adaptive algorithm • The convergence characteristics of the LMS adaptive algorithm depends on two factors: the step-size μ and the eigenvalue spread of the autocorrelation matrix . The step-size μ must lie in a specific range where 𝜆𝑚𝑎𝑥 is the largest eigenvalue of the autocorrelation matrix Rx. • A large value of the step-size μ will lead to a faster convergence but may be less stable around the minimum value. The convergence of the algorithm is inversely proportional to the eigenvalue spread of the correlation matrix. 13
  • 14. ADVANTAGES AND DISADVANTAGES ➢ LMS Simple and can be easily applied but RLS Increased complexity and computational cost. ➢ LMS Takes longer to converge but RLS faster convergence. ➢ Larger steady state error with respect to the unknown system. ➢ Objective is to minimize the current mean square error between the desired signal and the output. 14
  • 15. MATLAB CODE clc; clear; close all; % Generation Desired signal t = 0.001:0.001:1; D = 2*sin(2*pi*50*t); % Generating signal corrupted with noise n = numel(D); A = D(1:n)+0.9*randn(1,n); M = 25; W = zeros(1,M); Wi = zeros(1,M); E = []; mu = 0.002; for i = M:n E(i) = D(i) - Wi*A(i:-1:i-M+1)'; Wi = Wi + 2*mu*E(i)*A(i:-1:i-M+1); end Est = zeros(n,1); % Estimation of the signal for i = M:n j = A(i:-1:i-M+1); Est(i) = ((Wi)*(j)'); end Err =Est’-D; % computing the error signal %Display of signal figure(1) subplot(4,1,1); plot(D); title('Desired signal'); subplot(4,1,2); plot(A); title('signal corrupted with noise'); subplot(4,1,3); plot(Est); title('LMS - Estimated signal'); subplot(4,1,4); plot(Err); title('Error signal'); 15
  • 16. 16
  • 17. OUTPUT - LMS ESTIMATED SIGNAL 17
  • 18. CONCLUSION The LMS algorithm is simple and has less computational complexity when compared with the RLS algorithm. But the RLS algorithm has faster convergence rate than LMS algorithm at the cost of higher computational complexity. The plays a role in RLS algorithm similar to that of step size parameter in the LMS algorithm .RLS algorithm has better performance than LMS algorithm in the low signal to noise ratio. 18
  • 19. REFERENCE ➢ Adaptive filter theory by Simon Haykin. ➢ Johan. G. Proakis, “Digital Communications”, Fourth Edition, McGrow-Hill, 2001. ➢ Adaptive Filter Algorithm, [online] Available from: ➢ http://zone.ni.com/reference/enXX/help/372357A01/lvaftco ncepts/firfilter/adaptive algorithm. ➢ Matlab for scientists and Engineers by Brian D Hahn. 19