SlideShare a Scribd company logo
1 of 81
By
Asst.Prof.Dr.Thamer M.Jamel
Department of Electrical Engineering
University of Technology
Baghdad – Iraq
Introduction
Linear filters :
the filter output is a linear function of the filter input
Design methods:
 The classical approach
frequency-selective filters such as
low pass / band pass / notch filters etc
 Optimal filter design
Mostly based on minimizing the mean-square value
of the error signal
2
Wiener filter
 work of Wiener in 1942 and Kolmogorov in
1939
 it is based on a priori
statistical information
 when such a priori
information is not available,
which is usually the case,
it is not possible to design
a Wiener filter in the first
place.
Adaptive filter
 the signal and/or noise characteristics are often
nonstationary and the statistical parameters vary
with time
 An adaptive filter has an adaptation algorithm, that is
meant to monitor the environment and vary the filter
transfer function accordingly
 based in the actual signals received, attempts to find
the optimum filter design
Adaptive filter
 The basic operation now involves two processes :
1. a filtering process, which produces an output signal
in response to a given input signal.
2. an adaptation process, which aims to adjust the filter
parameters (filter transfer function) to the (possibly
time-varying) environment
Often, the (average) square value of the error signal is
used as the optimization criterion
Adaptive filter
• Because of complexity of the optimizing algorithms
most adaptive filters are digital filters that perform
digital signal processing
 When processing
analog signals,
the adaptive filter
is then preceded
by A/D and D/A
convertors.
Adaptive filter
• The generalization to adaptive IIR filters leads to
stability problems
• It’s common to use
a FIR digital filter
with adjustable
coefficients
Applications of Adaptive Filters:
Identification
 Used to provide a linear model of an unknown
plant
 Applications:
 System identification
Applications of Adaptive Filters:
Inverse Modeling
 Used to provide an inverse model of an unknown
plant
 Applications:
 Equalization (communications channels)
Applications of Adaptive Filters:
Prediction
 Used to provide a prediction of the present
value of a random signal
 Applications:
 Linear predictive coding
Applications of Adaptive Filters:
Interference Cancellation
 Used to cancel unknown interference from a primary
signal
 Applications:
 Echo / Noise cancellation
hands-free carphone, aircraft headphones etc
Example:
Acoustic Echo Cancellation
LMS Algorithm
• Most popular adaptation algorithm is LMS
Define cost function as mean-squared error
• Based on the method of steepest descent
Move towards the minimum on the error surface to get to
minimum
gradient of the error surface estimated at every iteration
LMS Adaptive Algorithm
• Introduced by Widrow & Hoff in 1959
• Simple, no matrices calculation involved in the
adaptation
• In the family of stochastic gradient algorithms
• Approximation of the steepest – descent method
• Based on the MMSE criterion.(Minimum Mean
square Error)
• Adaptive process containing two input signals:
• 1.) Filtering process, producing output signal.
• 2.) Desired signal (Training sequence)
• Adaptive process: recursive adjustment of filter tap
weights
LMS Algorithm Steps
 Filter output
 Estimation error
 Tap-weight adaptation
17
     





1
0
*
M
k
k n
w
k
n
u
n
y
     
n
y
n
d
n
e 

       
n
e
k
n
u
n
w
1
n
w *
k
k 





















 
































signal
error
vector
input
tap
parameter
rate
-
learning
vector
weight
-
tap
of
value
old
vector
weigth
-
tap
of
value
update
Stability of LMS
 The LMS algorithm is convergent in the mean square
if and only if the step-size parameter satisfy
 Here max is the largest eigenvalue of the correlation
matrix of the input data
 More practical test for stability is
 Larger values for step size
 Increases adaptation rate (faster adaptation)
 Increases residual mean-squared error
• Given the following function we need to obtain the vector that would give us
the absolute minimum.
• It is obvious that
give us the minimum.
(This figure is quadratic error function (quadratic bowl) )
STEEPEST DESCENT EXAMPLE
2
2
2
1
2
1 )
,
( C
C
c
c
Y 

,
0
2
1 
 C
C
1
C
2
C
y
Now lets find the solution by the steepest descend method
• We start by assuming (C1 = 5, C2 = 7)
• We select the constant . If it is too big, we miss the minimum. If it is too
small, it would take us a lot of time to het the minimum. I would select =
0.1.
• The gradient vector is:
STEEPEST DESCENT EXAMPLE


]
[
2
1
]
[
2
1
]
[
2
1
]
[
2
1
]
1
[
2
1
9
.
0
1
.
0
2
.
0
n
n
n
n
n
C
C
C
C
C
C
y
C
C
C
C



























































2
1
2
1
2
2
C
C
dc
dy
dc
dy
y
• So our iterative equation is:
STEEPEST DESCENT EXAMPLE







































567
.
0
405
.
0
:
3
3
.
6
5
.
4
:
2
7
5
:
1
2
1
2
1
2
1
C
C
Iteration
C
C
Iteration
C
C
Iteration




























0
0
lim
013
.
0
01
.
0
:
60
......
]
[
2
1
2
1
n
n
C
C
C
C
Iteration
As we can see, the vector [c1,c2] converges to the value which would yield the
function minimum and the speed of this convergence depends on .

1
C
2
C
y
Initial guess
Minimum
LMS – CONVERGENCE GRAPH
This graph illustrates the LMS algorithm. First we start from
guessing the TAP weights. Then we start going in opposite the
gradient vector, to calculate the next taps, and so on, until we get
the MMSE, meaning the MSE is 0 or a very close value to it.(In
practice we can not get exactly error of 0 because the noise is a
random process, we could only decrease the error below a desired
minimum)
Example for the Unknown Channel of 2nd order:
Desired Combination of taps
Desired Combination of taps
Adaptive Array Antenna
 Adaptive Arrays
Linear Combiner
Interference
SMART ANTENNAS
Adaptive Array Antenna
Applications are many
Digital Communications
(OFDM , MIMO , CDMA, and
RFID)
Channel Equalisation
Adaptive noise cancellation
Adaptive echo cancellation
System identification
Smart antenna systems
Blind system equalisation
And many, many others
Introduction
Wireless communication is the most
interesting field of communication
these days, because it supports mobility
(mobile users). However, many
applications of wireless comm. now
require high-speed communications
(high-data-rates).
What is the ISI
Inter-symbol-interference, takes place when a
given transmitted symbol is distorted by other
transmitted symbols.
Cause of ISI
ISI is imposed due to band-limiting effect of
practical channel, or also due to the multi-path
effects (delay spread).
Definition of the Equalizer:
the equalizer is a digital filter that provides an
approximate inverse of channel frequency
response.
Need of equalization:
is to mitigate the effects of ISI to decrease the
probability of error that occurs without
suppression of ISI, but this reduction of ISI
effects has to be balanced with prevention of
noise power enhancement.
Types of Equalization techniques
Linear Equalization techniques
which are simple to implement, but greatly enhance
noise power because they work by inverting channel
frequency response.
Non-Linear Equalization techniques
which are more complex to implement, but have much
less noise enhancement than linear equalizers.
Equalization Techniques
Fig.3 Classification of equalizers
Linear equalizer with N-taps, and (N-1) delay elements.
Go
Table of various algorithms and their trade-offs:
algorithm Multiplying-
operations
complexity convergence tracking
LMS Low slow poor
MMSE Very high fast good
RLS High fast good
Fast
kalman
Fairly
Low
fast good
RLS-
DFE
High fast good
2 3
N toN
2 1
N 
2
2.5 4.5
N N

20 5
N 
2
1.5 6.5
N N

Adaptive Filter Block Diagram
Adaptive Filter Block Diagram
d(n) Desired
y(n)
e(n)
+
-
x(n)
Filter Input
Adaptive Filter
e(n) Error Output
Filter Output
The LMS Equation
 The Least Mean Squares Algorithm (LMS)
updates each coefficient on a sample-by-sample
basis based on the error e(n).
 This equation minimises the power in the error
e(n).
)
(
)
(
)
( n
x
n
e
n
w
1)
(n
w k
k
k 


 
The Least Mean Squares Algorithm
 The value of µ (mu) is critical.
 If µ is too small, the filter reacts slowly.
 If µ is too large, the filter resolution is poor.
 The selected value of µ is a compromise.
LMS Convergence Vs u
Audio Noise Reduction
 A popular application of acoustic noise reduction is
for headsets for pilots. This uses two microphones.
Block Diagram of a Noise Reduction Headset
d(n) = speech + noise
y(n)
e(n)
+
-
x(n) = noise'
Adaptive Filter
e(n)
Speech Output
Filter Output
(noise)
Far Microphone
Near Microphone
The Simulink Model
Setting the Step size (mu)
 The rate of
convergence of the
LMS Algorithm is
controlled by the
“Step size (mu)”.
 This is the critical
variable.
Trace of Input to Model
“Input” = Signal + Noise.
Trace of LMS Filter Output
“Output” starts at
zero and grows.
Trace of LMS Filter Error
“Error” contains
the noise.
Typical C6713 DSK Setup
USB to PC to +5V
Headphones Microphone
Acoustic Echo Canceller
New Trends in Adaptive Filtering
 Partial Updating Weights.
 Sub-band adaptive filtering.
 Adaptive Kalman filtering.
 Affine Projection Method.
 Time-Space adaptive processing.
 Non-Linear adaptive filtering:-
Neural Networks.
The Volterra Series Algorithm .
Genetic & Fuzzy.
• Blind Adaptive Filtering.
Introduction to adaptive filtering and its applications.ppt

More Related Content

Similar to Introduction to adaptive filtering and its applications.ppt

Active noise control
Active noise controlActive noise control
Active noise control
Rishikesh .
 
Simulation and hardware implementation of Adaptive algorithms on tms320 c6713...
Simulation and hardware implementation of Adaptive algorithms on tms320 c6713...Simulation and hardware implementation of Adaptive algorithms on tms320 c6713...
Simulation and hardware implementation of Adaptive algorithms on tms320 c6713...
Raj Kumar Thenua
 

Similar to Introduction to adaptive filtering and its applications.ppt (20)

PONDICHERRY UNIVERSITY DEPARTMENT OF ELECTRONICS ENGINEERING.pdf
PONDICHERRY UNIVERSITY DEPARTMENT OF ELECTRONICS ENGINEERING.pdfPONDICHERRY UNIVERSITY DEPARTMENT OF ELECTRONICS ENGINEERING.pdf
PONDICHERRY UNIVERSITY DEPARTMENT OF ELECTRONICS ENGINEERING.pdf
 
Adaptive Filtering.ppt
Adaptive Filtering.pptAdaptive Filtering.ppt
Adaptive Filtering.ppt
 
Adaptive equalization
Adaptive equalizationAdaptive equalization
Adaptive equalization
 
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
 
Hardware Implementation of Adaptive Noise Cancellation over DSP Kit TMS320C6713
Hardware Implementation of Adaptive Noise Cancellation over DSP Kit TMS320C6713Hardware Implementation of Adaptive Noise Cancellation over DSP Kit TMS320C6713
Hardware Implementation of Adaptive Noise Cancellation over DSP Kit TMS320C6713
 
476 293
476 293476 293
476 293
 
Performance Analysis of Acoustic Echo Cancellation Techniques
Performance Analysis of Acoustic Echo Cancellation TechniquesPerformance Analysis of Acoustic Echo Cancellation Techniques
Performance Analysis of Acoustic Echo Cancellation Techniques
 
Unit iv wcn main
Unit iv wcn mainUnit iv wcn main
Unit iv wcn main
 
Active noise control
Active noise controlActive noise control
Active noise control
 
Simulation of Adaptive Noise Canceller for an ECG signal Analysis
Simulation of Adaptive Noise Canceller for an ECG signal AnalysisSimulation of Adaptive Noise Canceller for an ECG signal Analysis
Simulation of Adaptive Noise Canceller for an ECG signal Analysis
 
Recovery of low frequency Signals from noisy data using Ensembled Empirical M...
Recovery of low frequency Signals from noisy data using Ensembled Empirical M...Recovery of low frequency Signals from noisy data using Ensembled Empirical M...
Recovery of low frequency Signals from noisy data using Ensembled Empirical M...
 
A_Noise_Reduction_Method_Based_on_LMS_Adaptive_Fil.pdf
A_Noise_Reduction_Method_Based_on_LMS_Adaptive_Fil.pdfA_Noise_Reduction_Method_Based_on_LMS_Adaptive_Fil.pdf
A_Noise_Reduction_Method_Based_on_LMS_Adaptive_Fil.pdf
 
Antinoise system & Noise Cancellation
Antinoise system & Noise CancellationAntinoise system & Noise Cancellation
Antinoise system & Noise Cancellation
 
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
 
Laboratory Duct Active noise control using Adaptive Filters
Laboratory Duct Active noise control using Adaptive Filters Laboratory Duct Active noise control using Adaptive Filters
Laboratory Duct Active noise control using Adaptive Filters
 
Dct and adaptive filters
Dct and adaptive filtersDct and adaptive filters
Dct and adaptive filters
 
Active Noise Cancellation
Active Noise CancellationActive Noise Cancellation
Active Noise Cancellation
 
Equalization with the help of Non OMA.pptx
Equalization with the help of Non OMA.pptxEqualization with the help of Non OMA.pptx
Equalization with the help of Non OMA.pptx
 
Simulation and hardware implementation of Adaptive algorithms on tms320 c6713...
Simulation and hardware implementation of Adaptive algorithms on tms320 c6713...Simulation and hardware implementation of Adaptive algorithms on tms320 c6713...
Simulation and hardware implementation of Adaptive algorithms on tms320 c6713...
 
ECG Signal Denoising using Digital Filter and Adaptive Filter
ECG Signal Denoising using Digital Filter and Adaptive FilterECG Signal Denoising using Digital Filter and Adaptive Filter
ECG Signal Denoising using Digital Filter and Adaptive Filter
 

More from debeshidutta2

More from debeshidutta2 (10)

Nanosensor-basics, application and future.pptx
Nanosensor-basics, application and future.pptxNanosensor-basics, application and future.pptx
Nanosensor-basics, application and future.pptx
 
FUNDAMENTALS OF MECHATRONICS AND APPLICATIONS.pptx
FUNDAMENTALS OF MECHATRONICS AND APPLICATIONS.pptxFUNDAMENTALS OF MECHATRONICS AND APPLICATIONS.pptx
FUNDAMENTALS OF MECHATRONICS AND APPLICATIONS.pptx
 
WEINER FILTERING AND BASIS FUNCTIONS.ppt
WEINER FILTERING AND BASIS FUNCTIONS.pptWEINER FILTERING AND BASIS FUNCTIONS.ppt
WEINER FILTERING AND BASIS FUNCTIONS.ppt
 
Radiation Detectors-operation and applications.pptx
Radiation Detectors-operation and applications.pptxRadiation Detectors-operation and applications.pptx
Radiation Detectors-operation and applications.pptx
 
Thermoluminiscent Dosimetry-Principle, Charateristics, and Applications.pptx
Thermoluminiscent Dosimetry-Principle, Charateristics, and Applications.pptxThermoluminiscent Dosimetry-Principle, Charateristics, and Applications.pptx
Thermoluminiscent Dosimetry-Principle, Charateristics, and Applications.pptx
 
Introduction, concepts, and mathematics of IIR filters.ppt
Introduction, concepts, and mathematics of IIR filters.pptIntroduction, concepts, and mathematics of IIR filters.ppt
Introduction, concepts, and mathematics of IIR filters.ppt
 
DIGITAL FILTER SPECIFICATIONS AND MATHEMATICS.ppt
DIGITAL FILTER SPECIFICATIONS AND MATHEMATICS.pptDIGITAL FILTER SPECIFICATIONS AND MATHEMATICS.ppt
DIGITAL FILTER SPECIFICATIONS AND MATHEMATICS.ppt
 
BIOMEDICAL SENSORS AND MEASUREMENT SYSTEMS.ppt
BIOMEDICAL SENSORS AND MEASUREMENT SYSTEMS.pptBIOMEDICAL SENSORS AND MEASUREMENT SYSTEMS.ppt
BIOMEDICAL SENSORS AND MEASUREMENT SYSTEMS.ppt
 
Basic programming in Python Environment.pptx
Basic programming in Python Environment.pptxBasic programming in Python Environment.pptx
Basic programming in Python Environment.pptx
 
Transducers in healthcare applications.pptx
Transducers in healthcare applications.pptxTransducers in healthcare applications.pptx
Transducers in healthcare applications.pptx
 

Recently uploaded

Standard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power PlayStandard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power Play
Epec Engineered Technologies
 
scipt v1.pptxcxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx...
scipt v1.pptxcxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx...scipt v1.pptxcxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx...
scipt v1.pptxcxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx...
HenryBriggs2
 
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf
AldoGarca30
 
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak HamilCara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Kandungan 087776558899
 
Query optimization and processing for advanced database systems
Query optimization and processing for advanced database systemsQuery optimization and processing for advanced database systems
Query optimization and processing for advanced database systems
meharikiros2
 
Introduction to Robotics in Mechanical Engineering.pptx
Introduction to Robotics in Mechanical Engineering.pptxIntroduction to Robotics in Mechanical Engineering.pptx
Introduction to Robotics in Mechanical Engineering.pptx
hublikarsn
 
Integrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - NeometrixIntegrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - Neometrix
Neometrix_Engineering_Pvt_Ltd
 

Recently uploaded (20)

Introduction to Artificial Intelligence ( AI)
Introduction to Artificial Intelligence ( AI)Introduction to Artificial Intelligence ( AI)
Introduction to Artificial Intelligence ( AI)
 
Electromagnetic relays used for power system .pptx
Electromagnetic relays used for power system .pptxElectromagnetic relays used for power system .pptx
Electromagnetic relays used for power system .pptx
 
Design For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the startDesign For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the start
 
Standard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power PlayStandard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power Play
 
scipt v1.pptxcxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx...
scipt v1.pptxcxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx...scipt v1.pptxcxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx...
scipt v1.pptxcxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx...
 
Memory Interfacing of 8086 with DMA 8257
Memory Interfacing of 8086 with DMA 8257Memory Interfacing of 8086 with DMA 8257
Memory Interfacing of 8086 with DMA 8257
 
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf
 
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak HamilCara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
 
Max. shear stress theory-Maximum Shear Stress Theory ​ Maximum Distortional ...
Max. shear stress theory-Maximum Shear Stress Theory ​  Maximum Distortional ...Max. shear stress theory-Maximum Shear Stress Theory ​  Maximum Distortional ...
Max. shear stress theory-Maximum Shear Stress Theory ​ Maximum Distortional ...
 
Basic Electronics for diploma students as per technical education Kerala Syll...
Basic Electronics for diploma students as per technical education Kerala Syll...Basic Electronics for diploma students as per technical education Kerala Syll...
Basic Electronics for diploma students as per technical education Kerala Syll...
 
Post office management system project ..pdf
Post office management system project ..pdfPost office management system project ..pdf
Post office management system project ..pdf
 
Query optimization and processing for advanced database systems
Query optimization and processing for advanced database systemsQuery optimization and processing for advanced database systems
Query optimization and processing for advanced database systems
 
Introduction to Robotics in Mechanical Engineering.pptx
Introduction to Robotics in Mechanical Engineering.pptxIntroduction to Robotics in Mechanical Engineering.pptx
Introduction to Robotics in Mechanical Engineering.pptx
 
COST-EFFETIVE and Energy Efficient BUILDINGS ptx
COST-EFFETIVE  and Energy Efficient BUILDINGS ptxCOST-EFFETIVE  and Energy Efficient BUILDINGS ptx
COST-EFFETIVE and Energy Efficient BUILDINGS ptx
 
Introduction to Data Visualization,Matplotlib.pdf
Introduction to Data Visualization,Matplotlib.pdfIntroduction to Data Visualization,Matplotlib.pdf
Introduction to Data Visualization,Matplotlib.pdf
 
👉 Yavatmal Call Girls Service Just Call 🍑👄6378878445 🍑👄 Top Class Call Girl S...
👉 Yavatmal Call Girls Service Just Call 🍑👄6378878445 🍑👄 Top Class Call Girl S...👉 Yavatmal Call Girls Service Just Call 🍑👄6378878445 🍑👄 Top Class Call Girl S...
👉 Yavatmal Call Girls Service Just Call 🍑👄6378878445 🍑👄 Top Class Call Girl S...
 
Worksharing and 3D Modeling with Revit.pptx
Worksharing and 3D Modeling with Revit.pptxWorksharing and 3D Modeling with Revit.pptx
Worksharing and 3D Modeling with Revit.pptx
 
Integrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - NeometrixIntegrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - Neometrix
 
PE 459 LECTURE 2- natural gas basic concepts and properties
PE 459 LECTURE 2- natural gas basic concepts and propertiesPE 459 LECTURE 2- natural gas basic concepts and properties
PE 459 LECTURE 2- natural gas basic concepts and properties
 
Linux Systems Programming: Inter Process Communication (IPC) using Pipes
Linux Systems Programming: Inter Process Communication (IPC) using PipesLinux Systems Programming: Inter Process Communication (IPC) using Pipes
Linux Systems Programming: Inter Process Communication (IPC) using Pipes
 

Introduction to adaptive filtering and its applications.ppt

  • 1. By Asst.Prof.Dr.Thamer M.Jamel Department of Electrical Engineering University of Technology Baghdad – Iraq
  • 2. Introduction Linear filters : the filter output is a linear function of the filter input Design methods:  The classical approach frequency-selective filters such as low pass / band pass / notch filters etc  Optimal filter design Mostly based on minimizing the mean-square value of the error signal 2
  • 3. Wiener filter  work of Wiener in 1942 and Kolmogorov in 1939  it is based on a priori statistical information  when such a priori information is not available, which is usually the case, it is not possible to design a Wiener filter in the first place.
  • 4. Adaptive filter  the signal and/or noise characteristics are often nonstationary and the statistical parameters vary with time  An adaptive filter has an adaptation algorithm, that is meant to monitor the environment and vary the filter transfer function accordingly  based in the actual signals received, attempts to find the optimum filter design
  • 5. Adaptive filter  The basic operation now involves two processes : 1. a filtering process, which produces an output signal in response to a given input signal. 2. an adaptation process, which aims to adjust the filter parameters (filter transfer function) to the (possibly time-varying) environment Often, the (average) square value of the error signal is used as the optimization criterion
  • 6. Adaptive filter • Because of complexity of the optimizing algorithms most adaptive filters are digital filters that perform digital signal processing  When processing analog signals, the adaptive filter is then preceded by A/D and D/A convertors.
  • 7. Adaptive filter • The generalization to adaptive IIR filters leads to stability problems • It’s common to use a FIR digital filter with adjustable coefficients
  • 8. Applications of Adaptive Filters: Identification  Used to provide a linear model of an unknown plant  Applications:  System identification
  • 9. Applications of Adaptive Filters: Inverse Modeling  Used to provide an inverse model of an unknown plant  Applications:  Equalization (communications channels)
  • 10. Applications of Adaptive Filters: Prediction  Used to provide a prediction of the present value of a random signal  Applications:  Linear predictive coding
  • 11. Applications of Adaptive Filters: Interference Cancellation  Used to cancel unknown interference from a primary signal  Applications:  Echo / Noise cancellation hands-free carphone, aircraft headphones etc
  • 13.
  • 14.
  • 15. LMS Algorithm • Most popular adaptation algorithm is LMS Define cost function as mean-squared error • Based on the method of steepest descent Move towards the minimum on the error surface to get to minimum gradient of the error surface estimated at every iteration
  • 16. LMS Adaptive Algorithm • Introduced by Widrow & Hoff in 1959 • Simple, no matrices calculation involved in the adaptation • In the family of stochastic gradient algorithms • Approximation of the steepest – descent method • Based on the MMSE criterion.(Minimum Mean square Error) • Adaptive process containing two input signals: • 1.) Filtering process, producing output signal. • 2.) Desired signal (Training sequence) • Adaptive process: recursive adjustment of filter tap weights
  • 17. LMS Algorithm Steps  Filter output  Estimation error  Tap-weight adaptation 17            1 0 * M k k n w k n u n y       n y n d n e           n e k n u n w 1 n w * k k                                                         signal error vector input tap parameter rate - learning vector weight - tap of value old vector weigth - tap of value update
  • 18. Stability of LMS  The LMS algorithm is convergent in the mean square if and only if the step-size parameter satisfy  Here max is the largest eigenvalue of the correlation matrix of the input data  More practical test for stability is  Larger values for step size  Increases adaptation rate (faster adaptation)  Increases residual mean-squared error
  • 19. • Given the following function we need to obtain the vector that would give us the absolute minimum. • It is obvious that give us the minimum. (This figure is quadratic error function (quadratic bowl) ) STEEPEST DESCENT EXAMPLE 2 2 2 1 2 1 ) , ( C C c c Y   , 0 2 1   C C 1 C 2 C y Now lets find the solution by the steepest descend method
  • 20. • We start by assuming (C1 = 5, C2 = 7) • We select the constant . If it is too big, we miss the minimum. If it is too small, it would take us a lot of time to het the minimum. I would select = 0.1. • The gradient vector is: STEEPEST DESCENT EXAMPLE   ] [ 2 1 ] [ 2 1 ] [ 2 1 ] [ 2 1 ] 1 [ 2 1 9 . 0 1 . 0 2 . 0 n n n n n C C C C C C y C C C C                                                            2 1 2 1 2 2 C C dc dy dc dy y • So our iterative equation is:
  • 22. LMS – CONVERGENCE GRAPH This graph illustrates the LMS algorithm. First we start from guessing the TAP weights. Then we start going in opposite the gradient vector, to calculate the next taps, and so on, until we get the MMSE, meaning the MSE is 0 or a very close value to it.(In practice we can not get exactly error of 0 because the noise is a random process, we could only decrease the error below a desired minimum) Example for the Unknown Channel of 2nd order: Desired Combination of taps Desired Combination of taps
  • 23.
  • 24.
  • 25.
  • 26.
  • 27.
  • 28.
  • 29.
  • 30.
  • 31.
  • 32.
  • 33.
  • 34. Adaptive Array Antenna  Adaptive Arrays Linear Combiner Interference SMART ANTENNAS
  • 36.
  • 37. Applications are many Digital Communications (OFDM , MIMO , CDMA, and RFID) Channel Equalisation Adaptive noise cancellation Adaptive echo cancellation System identification Smart antenna systems Blind system equalisation And many, many others
  • 38.
  • 39. Introduction Wireless communication is the most interesting field of communication these days, because it supports mobility (mobile users). However, many applications of wireless comm. now require high-speed communications (high-data-rates).
  • 40. What is the ISI Inter-symbol-interference, takes place when a given transmitted symbol is distorted by other transmitted symbols. Cause of ISI ISI is imposed due to band-limiting effect of practical channel, or also due to the multi-path effects (delay spread).
  • 41.
  • 42.
  • 43. Definition of the Equalizer: the equalizer is a digital filter that provides an approximate inverse of channel frequency response. Need of equalization: is to mitigate the effects of ISI to decrease the probability of error that occurs without suppression of ISI, but this reduction of ISI effects has to be balanced with prevention of noise power enhancement.
  • 44.
  • 45. Types of Equalization techniques Linear Equalization techniques which are simple to implement, but greatly enhance noise power because they work by inverting channel frequency response. Non-Linear Equalization techniques which are more complex to implement, but have much less noise enhancement than linear equalizers.
  • 47. Linear equalizer with N-taps, and (N-1) delay elements. Go
  • 48. Table of various algorithms and their trade-offs: algorithm Multiplying- operations complexity convergence tracking LMS Low slow poor MMSE Very high fast good RLS High fast good Fast kalman Fairly Low fast good RLS- DFE High fast good 2 3 N toN 2 1 N  2 2.5 4.5 N N  20 5 N  2 1.5 6.5 N N 
  • 49.
  • 50.
  • 51.
  • 52.
  • 53.
  • 54. Adaptive Filter Block Diagram Adaptive Filter Block Diagram d(n) Desired y(n) e(n) + - x(n) Filter Input Adaptive Filter e(n) Error Output Filter Output
  • 55. The LMS Equation  The Least Mean Squares Algorithm (LMS) updates each coefficient on a sample-by-sample basis based on the error e(n).  This equation minimises the power in the error e(n). ) ( ) ( ) ( n x n e n w 1) (n w k k k     
  • 56. The Least Mean Squares Algorithm  The value of µ (mu) is critical.  If µ is too small, the filter reacts slowly.  If µ is too large, the filter resolution is poor.  The selected value of µ is a compromise.
  • 58. Audio Noise Reduction  A popular application of acoustic noise reduction is for headsets for pilots. This uses two microphones. Block Diagram of a Noise Reduction Headset d(n) = speech + noise y(n) e(n) + - x(n) = noise' Adaptive Filter e(n) Speech Output Filter Output (noise) Far Microphone Near Microphone
  • 60. Setting the Step size (mu)  The rate of convergence of the LMS Algorithm is controlled by the “Step size (mu)”.  This is the critical variable.
  • 61. Trace of Input to Model “Input” = Signal + Noise.
  • 62. Trace of LMS Filter Output “Output” starts at zero and grows.
  • 63. Trace of LMS Filter Error “Error” contains the noise.
  • 64. Typical C6713 DSK Setup USB to PC to +5V Headphones Microphone
  • 65.
  • 66.
  • 67.
  • 68.
  • 69.
  • 71.
  • 72.
  • 73.
  • 74.
  • 75.
  • 76.
  • 77.
  • 78.
  • 79.
  • 80. New Trends in Adaptive Filtering  Partial Updating Weights.  Sub-band adaptive filtering.  Adaptive Kalman filtering.  Affine Projection Method.  Time-Space adaptive processing.  Non-Linear adaptive filtering:- Neural Networks. The Volterra Series Algorithm . Genetic & Fuzzy. • Blind Adaptive Filtering.