Adaptive Filters Linear Prediction Gerhard Schmidt - - PowerPoint PPT Presentation

adaptive filters linear prediction
SMART_READER_LITE
LIVE PREVIEW

Adaptive Filters Linear Prediction Gerhard Schmidt - - PowerPoint PPT Presentation

Adaptive Filters Linear Prediction Gerhard Schmidt Christian-Albrechts-Universitt zu Kiel Faculty of Engineering Institute of Electrical and Information Engineering Digital Signal Processing and System Theory Contents of the Lecture


slide-1
SLIDE 1

Adaptive Filters – Linear Prediction

Gerhard Schmidt Christian-Albrechts-Universität zu Kiel Faculty of Engineering Institute of Electrical and Information Engineering Digital Signal Processing and System Theory

slide-2
SLIDE 2

Digital Signal Processing and System Theory | Adaptive Filters | Linear Prediction Slide 2

  • Contents of the Lecture

❑ Source-filter model for speech generation ❑ Literature ❑ Derivation of linear prediction ❑ Levinson-Durbin recursion ❑ Application example

Contents of the Lecture:

Today

slide-3
SLIDE 3
  • Digital Signal Processing and System Theory | Adaptive Filters | Linear Prediction

Slide 3

Linear Prediction

❑ Source-filter model for speech generation ❑ Literature ❑ Derivation of linear prediction ❑ Levinson-Durbin recursion ❑ Application example

slide-4
SLIDE 4
  • Digital Signal Processing and System Theory | Adaptive Filters | Linear Prediction

Slide 4

Motivation

Speech Production

Principle:

❑ An airflow, coming from the lungs, excites the vocal cords

for voiced excitation or causes a noise-like signal (opened vocal cords).

❑ The mouth, nasal, and pharynx cavity are behaving like

controllable resonators and only a few frequencies (called formant frequencies) are not attenuated.

Source part Muscle force Lung volume Vocal cords Pharynx cavity Mouth cavity Nasal cavity Filter part

slide-5
SLIDE 5
  • Digital Signal Processing and System Theory | Adaptive Filters | Linear Prediction

Slide 5

Motivation

Source-filter Model

¾(n)

Vocal tract filter Impulse generator Noise generator Fundamental frequency Source part

  • f the model

Filter part

  • f the model
slide-6
SLIDE 6
  • Digital Signal Processing and System Theory | Adaptive Filters | Linear Prediction

Slide 6

Linear Prediction

❑ Source-filter model for speech generation ❑ Literature ❑ Derivation of linear prediction ❑ Levinson-Durbin recursion ❑ Application example

slide-7
SLIDE 7
  • Digital Signal Processing and System Theory | Adaptive Filters | Linear Prediction

Slide 7

Literature

Books

❑ E. Hänsler / G. Schmidt: Acoustic Echo and Noise Control – Chapter 6 (Linear Prediction), Wiley, 2004

Basic text: Further basics:

❑ E. Hänsler: Statistische Signale: Grundlagen und Anwendungen – Chapter 6 (Linearer Prädiktor), Springer, 2001 (in German) ❑ M. S. Hayes: Statistical Digital Signal Processing and Modeling – Chapters 4 und 5 (Signal Modeling, The Levinson Recursion),

Wiley, 1996

Speech processing:

❑ P. Vary, R. Martin: Digital Transmission of Speech Signals – Chapter 2 (Models of Speech Production and Hearing), Wiley 2006 ❑ J. R. Deller, J. H. l. Hansen, J. G. Proakis: Discrete-Time Processing of Speech Signals – Chapter 3 (Modeling Speech Production),

IEEE Press, 2000

slide-8
SLIDE 8
  • Digital Signal Processing and System Theory | Adaptive Filters | Linear Prediction

Slide 8

Linear Prediction

❑ Source-filter model for speech generation ❑ Literature ❑ Derivation of linear prediction ❑ Levinson-Durbin recursion ❑ Application example

slide-9
SLIDE 9
  • Digital Signal Processing and System Theory | Adaptive Filters | Linear Prediction

Slide 9

Linear Prediction

Basic Approach

Estimation of the current signal sample on the basis of the previous samples: With:

: estimation of

: length / order of the predictor

: predictor coefficients

Linear prediction filter

slide-10
SLIDE 10
  • Digital Signal Processing and System Theory | Adaptive Filters | Linear Prediction

Slide 10

Linear Prediction

Optimization Criterion

Optimization:

Estimation of the filter coefficients such that a cost function is optimized.

Cost function: Structure:

Linear prediction filter

slide-11
SLIDE 11
  • Digital Signal Processing and System Theory | Adaptive Filters | Linear Prediction

Slide 11

Linear Prediction

„Whitening“ Property

Cost function:

❑ Strong frequency components will be attenuated most

(due to Parseval).

❑ This leads to a spectral „decoloring“ (whitening)

  • f the signal.
slide-12
SLIDE 12
  • Digital Signal Processing and System Theory | Adaptive Filters | Linear Prediction

Slide 12

Linear Prediction

Inverse Filter Structure

FIR filter (sender) All-pole filter (receiver)

Properties:

❑ The inverse predictor error filter is an all-pole filter ❑ The cascaded structure - consisting of a

predictor error filter and an inverse predictor error filter - can be used for lossless data compression and for sending and receiving signals.

slide-13
SLIDE 13
  • Digital Signal Processing and System Theory | Adaptive Filters | Linear Prediction

Slide 13

Linear Prediction

Computing the Filter Coefficients

Derivation during the lecture …

slide-14
SLIDE 14
  • Digital Signal Processing and System Theory | Adaptive Filters | Linear Prediction

Slide 14

Linear Prediction

Examples – Part 1

First example:

❑ Input signal : white noise with variance (zero mean) ❑ Prediction order: ❑ Prediction of the next sample:

This leads to:

, what means the no prediction is possible or – to be precise – the best prediction is the mean of the input signal which is zero. , respectively

slide-15
SLIDE 15
  • Digital Signal Processing and System Theory | Adaptive Filters | Linear Prediction

Slide 15

Linear Prediction

Examples – Part 2

Second example:

❑ Input signal : speech,

sampled at kHz

❑ Prediction order: ❑ Prediction of the next sample:

New adjustment of the filter coefficients every 64 samples Single optimization

  • f the filter coefficients

for the entire signal sequence

slide-16
SLIDE 16
  • Digital Signal Processing and System Theory | Adaptive Filters | Linear Prediction

Slide 16

Linear Prediction

Estimation of the Autocorrelation Function – Part 1

Problem:

Ensemble averages are usually not known in most applications.

Solution:

Estimation of the ensemble averages by temporal averaging (ergodicity assumed):

Assumption:

is a representative signal of the underlying random process.

Estimation schemes:

A few schemes for estimating an autocorrelation function exist. These scheme differ in the properties (such as unbiasedness or positive definiteness) that the resulting autocorrelation gets significantly.

slide-17
SLIDE 17
  • Digital Signal Processing and System Theory | Adaptive Filters | Linear Prediction

Slide 17

Linear Prediction

Estimation of the Autocorrelation Function – Part 2

Example: „Autocorrelation method“:

Computed according to:

Properties:

❑ The estimation is biased, we achieve: ❑ But we obtain: ❑ The resulting (estimated) autocorrelation matrix is positive definite. ❑ The resulting (estimated) autocorrelation matrix has Toeplitz structure.

slide-18
SLIDE 18
  • Digital Signal Processing and System Theory | Adaptive Filters | Linear Prediction

Slide 18

Linear Prediction

Levinson-Durbin Recursion – Part 1

Problem:

The solution of the equation system has – depending on how the autocorrelation matrix is estimated – a complexity proportional to

  • r , respectively. In addition numerical problems can occur if the matrix is ill-conditioned.

Goal:

A robust solution method that avoids direct inversion of the matrix .

Solution

Exploiting the Toeplitz structure of the matrix :

❑ Recursion over the filter order ❑ Combining forward and backward prediction

Literature:

❑ J. Durbin: The Fitting of Time Series Models, Rev. Int. Stat. Inst., no. 28, pp. 233 - 244, 1960 ❑ N. Levinson: The Wiener RMS Error Criterion in Filter Design and Prediction, J. Math. Phys., no. 25, pp. 261 - 268, 1947

slide-19
SLIDE 19
  • Digital Signal Processing and System Theory | Adaptive Filters | Linear Prediction

Slide 19

Linear Prediction

❑ Source-filter model for speech generation ❑ Literature ❑ Derivation of linear prediction ❑ Levinson-Durbin recursion ❑ Application example

slide-20
SLIDE 20
  • Digital Signal Processing and System Theory | Adaptive Filters | Linear Prediction

Slide 20

Linear Prediction

Levinson-Durbin Recursion – Part 2 (Backward Prediction)

Equation system of the forward prediction: Changing the equation order:

slide-21
SLIDE 21
  • Digital Signal Processing and System Theory | Adaptive Filters | Linear Prediction

Slide 21

Linear Prediction

Levinson-Durbin Recursion – Part 3 (Backward Prediction)

After rearranging the equations: Changing the order of the elements on the right side:

slide-22
SLIDE 22
  • Digital Signal Processing and System Theory | Adaptive Filters | Linear Prediction

Slide 22

Linear Prediction

Levinson-Durbin Recursion – Part 4 (Backward Prediction)

After changing the order of the elements on the right side: Matrix-vector notation:

slide-23
SLIDE 23
  • Digital Signal Processing and System Theory | Adaptive Filters | Linear Prediction

Slide 23

Linear Prediction

Levinson-Durbin Recursion – Part 5 (Backward Prediction)

Matrix-vector notation: Due to symmetry of the autocorrelation function: Backward prediction by N samples:

slide-24
SLIDE 24
  • Digital Signal Processing and System Theory | Adaptive Filters | Linear Prediction

Slide 24

Linear Prediction

Levinson-Durbin Recursion – Part 6 (Derivation of the Recursion)

Derivation during the lecture …

slide-25
SLIDE 25
  • Digital Signal Processing and System Theory | Adaptive Filters | Linear Prediction

Slide 25

Linear Prediction

Levinson-Durbin Recursion – Part 7 (Basic Structure of Recursive Algorithms)

Estimated signal using a prediction filter of length : Inserting the recursion :

Forward predictor

  • f length N-1

Backward predictor

  • f length N-1

Additional sample Innovation

slide-26
SLIDE 26
  • Digital Signal Processing and System Theory | Adaptive Filters | Linear Prediction

Slide 26

Linear Prediction

Levinson-Durbin Recursion – Part 8 (Basic Structure of Recursive Algorithms)

Backward predictor of lenght N-1 Forward predictor of length N-1 Forward predictor of length N

Structure that shows the recursion over the order: In short form:

New estimation = old estimation + weighting * (new sample – estimated new sample)

slide-27
SLIDE 27
  • Digital Signal Processing and System Theory | Adaptive Filters | Linear Prediction

Slide 27

Linear Prediction

Levinson-Durbin Recursion – Part 9 (Recursive Computation of the Error Power)

Minimal error power: Inserting : Order-recursive notation:

slide-28
SLIDE 28
  • Digital Signal Processing and System Theory | Adaptive Filters | Linear Prediction

Slide 28

Linear Prediction

Levinson-Durbin Recursion – Part 10 (Recursive Computation of the Error Power)

Minimal error power: Inserting the Levinson recursion:

slide-29
SLIDE 29
  • Digital Signal Processing and System Theory | Adaptive Filters | Linear Prediction

Slide 29

Linear Prediction

Levinson-Durbin Recursion – Part 11 (Recursive Computation of the Error Power)

Recursion of the refection coefficient: Rearranging:

slide-30
SLIDE 30
  • Digital Signal Processing and System Theory | Adaptive Filters | Linear Prediction

Slide 30

Linear Prediction

Levinson-Durbin Recursion – Part 12 (Recursive Computation of the Error Power)

Previous results: Inserting (2) in (1): Remarks:

❑ Start of the recursion: ❑ The error power should not increase when increasing the filter order. For that reason the error power is a suitable quantity

for checking if the recursion should terminated due to rounding errors, etc.

slide-31
SLIDE 31
  • Digital Signal Processing and System Theory | Adaptive Filters | Linear Prediction

Slide 31

Linear Prediction

Levinson-Durbin Recursion – Part 13 (Summary)

Initialization

❑ Predictor: ❑ Error power (optional):

Recursion:

❑ Reflection coefficient: ❑ Forward predictor: ❑ Backward predictor: ❑ Error power (optional):

Condition for termination:

❑ Numerical problems: ❑ Order:

If the desired filter order is reached, stop the recursion. If is true, use the coefficients of the previous recursion and fill the missing coefficients with zeros.

slide-32
SLIDE 32
  • Digital Signal Processing and System Theory | Adaptive Filters | Linear Prediction

Slide 32

Linear Prediction

❑ Source-filter model for speech generation ❑ Literature ❑ Derivation of linear prediction ❑ Levinson-Durbin recursion ❑ Application example

slide-33
SLIDE 33
  • Digital Signal Processing and System Theory | Adaptive Filters | Linear Prediction

Slide 33

Linear Prediction

Matlab Demo

slide-34
SLIDE 34
  • Digital Signal Processing and System Theory | Adaptive Filters | Linear Prediction

Slide 34

Linear Prediction

Matlab Demo – Input Signal and Estimated Signal

slide-35
SLIDE 35
  • Digital Signal Processing and System Theory | Adaptive Filters | Linear Prediction

Slide 35

Linear Prediction

Matlab Demo – Error Signals

slide-36
SLIDE 36
  • Digital Signal Processing and System Theory | Adaptive Filters | Linear Prediction

Slide 36

Adaptive Filters – Linear Prediction

Summary and Outlook

This week:

❑ Source-filter model for speech generation ❑ Derivation of linear prediction ❑ Levinson-Durbin recursion ❑ Application example

Next week:

❑ Adaptation algorithms – part 1