Week 4ELE 774 - Adaptive Signal Processing 1 LINEAR PREDICTION.

38
Week 4 ELE 774 - Adaptive Signal P rocessing 1 LINEAR PREDICTION

Transcript of Week 4ELE 774 - Adaptive Signal Processing 1 LINEAR PREDICTION.

Page 1: Week 4ELE 774 - Adaptive Signal Processing 1 LINEAR PREDICTION.

Week 4 ELE 774 - Adaptive Signal Processing 1

LINEAR PREDICTION

Page 2: Week 4ELE 774 - Adaptive Signal Processing 1 LINEAR PREDICTION.

ELE 774 - Adaptive Signal Processing 2Week 4

Linear Prediction

Problem: Forward Prediction

Observing

Predict

Backward Prediction Observing

Predict

Page 3: Week 4ELE 774 - Adaptive Signal Processing 1 LINEAR PREDICTION.

ELE 774 - Adaptive Signal Processing 3Week 4

Forward Linear Prediction Problem:

Forward Prediction Observing the past

Predict the future

i.e. find the predictor filter taps wf,1, wf,2,...,wf,M

?

Page 4: Week 4ELE 774 - Adaptive Signal Processing 1 LINEAR PREDICTION.

ELE 774 - Adaptive Signal Processing 4Week 4

Forward Linear Prediction

Use Wiener filter theory to calculate wf,k

Desired signal

Then forward prediction error is (for predictor order M)

Let minimum mean-square prediction error be

Page 5: Week 4ELE 774 - Adaptive Signal Processing 1 LINEAR PREDICTION.

ELE 774 - Adaptive Signal Processing 5Week 4

One-step predictor

Prediction-errorfilter

Page 6: Week 4ELE 774 - Adaptive Signal Processing 1 LINEAR PREDICTION.

ELE 774 - Adaptive Signal Processing 6Week 4

Forward Linear Prediction A structure similar to Wiener filter, same approach can be used. For the input vector

with the autocorrelation

Find the filter taps

where the cross-correlation bw. the filter input and the desired response is

Page 7: Week 4ELE 774 - Adaptive Signal Processing 1 LINEAR PREDICTION.

ELE 774 - Adaptive Signal Processing 7Week 4

Forward Linear Prediction

Solving the Wiener-Hopf equations, we obtain

and the minimum forward-prediction error power becomes

In summary,

Page 8: Week 4ELE 774 - Adaptive Signal Processing 1 LINEAR PREDICTION.

ELE 774 - Adaptive Signal Processing 8Week 4

Relation bw. Linear Prediction and AR Modelling

Note that the Wiener-Hopf equations for a linear predictor is mathematically identical with the Yule-Walker equations for the model of an AR process.

If AR model order M is known, model parameters can be found by using a forward linear predictor of order M.

If the process is not AR, predictor provides an (AR) model approximation of order M of the process.

Page 9: Week 4ELE 774 - Adaptive Signal Processing 1 LINEAR PREDICTION.

ELE 774 - Adaptive Signal Processing 9Week 4

Forward Prediction-Error Filter

We wrote that

Let

Then

Page 10: Week 4ELE 774 - Adaptive Signal Processing 1 LINEAR PREDICTION.

ELE 774 - Adaptive Signal Processing 10Week 4

Augmented Wiener-Hopf Eqn.s for Forward Prediction

Let us combine the forward prediction filter and forward prediction-error power equations in a single matrix expression, i.e.

and

Define the forward prediction-error filter vector

Then

or

Augmented Wiener-Hopf Eqn.sof a forward prediction-error filterof order M.

Page 11: Week 4ELE 774 - Adaptive Signal Processing 1 LINEAR PREDICTION.

ELE 774 - Adaptive Signal Processing 11Week 4

Example – Forward Predictor (order M=1)

For a forward predictor of order M=1

Then

where

But a1,0=1, then

Page 12: Week 4ELE 774 - Adaptive Signal Processing 1 LINEAR PREDICTION.

ELE 774 - Adaptive Signal Processing 12Week 4

Backward Linear Prediction Problem:

Forward Prediction Observing the future

Predict the past

i.e. find the predictor filter taps wb,1, wb,2,...,wb,M

?

Page 13: Week 4ELE 774 - Adaptive Signal Processing 1 LINEAR PREDICTION.

ELE 774 - Adaptive Signal Processing 13Week 4

Backward Linear Prediction Desired signal

Then backward prediction error is (for predictor order M)

Let minimum-mean square prediction error be

Page 14: Week 4ELE 774 - Adaptive Signal Processing 1 LINEAR PREDICTION.

ELE 774 - Adaptive Signal Processing 14Week 4

Backward Linear Prediction Problem: For the input vector

with the autocorrelation

Find the filter taps

where the cross-correlation bw. the filter input and the desired response is

Page 15: Week 4ELE 774 - Adaptive Signal Processing 1 LINEAR PREDICTION.

ELE 774 - Adaptive Signal Processing 15Week 4

Backward Linear Prediction

Solving the Wiener-Hopf equations, we obtain and the minimum forward-prediction error power becomes

In summary,

Page 16: Week 4ELE 774 - Adaptive Signal Processing 1 LINEAR PREDICTION.

ELE 774 - Adaptive Signal Processing 16Week 4

Relations bw. Forward and Backward Predictors

Compare the Wiener-Hopf eqn.s for both cases (R and r are same)

order reversal

complexconjugate

?

Page 17: Week 4ELE 774 - Adaptive Signal Processing 1 LINEAR PREDICTION.

ELE 774 - Adaptive Signal Processing 17Week 4

Backward Prediction-Error Filter We wrote that

Let

Then

but we found that

Then

Page 18: Week 4ELE 774 - Adaptive Signal Processing 1 LINEAR PREDICTION.

ELE 774 - Adaptive Signal Processing 18Week 4

Backward Prediction-Error Filter

For stationary inputs, we may change a forward prediction-error filter into the corresponding backward prediction-error filter by reversing the order of the sequence and taking the complex conjugation of them.

forward prediction-error filter

backward prediction-error filter

Page 19: Week 4ELE 774 - Adaptive Signal Processing 1 LINEAR PREDICTION.

ELE 774 - Adaptive Signal Processing 19Week 4

Augmented Wiener-Hopf Eqn.s for Backward Prediction

Let us combine the backward prediction filter and backward prediction-error power equations in a single matrix expression, i.e.

and

With the definition

Then

or

Augmented Wiener-Hopf Eqn.sof a backward prediction-error filterof order M.

Page 20: Week 4ELE 774 - Adaptive Signal Processing 1 LINEAR PREDICTION.

ELE 774 - Adaptive Signal Processing 20Week 4

Levinson-Durbin Algorithm

Solve the following Wiener-Hopf eqn.s to find the predictor coef.s

One-shot solution can have high computation complexity. Instead, use an (order)-recursive algorithm

Levinson-Durbin Algorithm. Start with a first-order (m=1) predictor and at each iteration

increase the order of the predictor by one up to (m=M). Huge savings in computational complexity and storage.

Page 21: Week 4ELE 774 - Adaptive Signal Processing 1 LINEAR PREDICTION.

ELE 774 - Adaptive Signal Processing 21Week 4

Levinson-Durbin Algorithm

Let the forward prediction error filter of order m be represented by the (m+1)x1

and its order reversed and complex conjugated version (backward prediction error filter) be

The forward-prediction error filter can be order-updated by

The backward-prediction error filter can be order-updated by

where the constant κm is called the reflection coefficient.

Page 22: Week 4ELE 774 - Adaptive Signal Processing 1 LINEAR PREDICTION.

ELE 774 - Adaptive Signal Processing 22Week 4

Levinson-Durbin Recursion

How to calculate am and κm?

Start with the relation bw. correlation matrix Rm+1 and the forward-error prediction filter am.

We have seen how to partition the correlation matrix

indicates order

indicates dim. of matrix/vector

Page 23: Week 4ELE 774 - Adaptive Signal Processing 1 LINEAR PREDICTION.

ELE 774 - Adaptive Signal Processing 23Week 4

Levinson-Durbin Recursion

Multiply the order-update eqn. by Rm+1 from the left

Term 1:

but we know that (augmented Wiener-Hopf eqn.s)

Then

1 2

Page 24: Week 4ELE 774 - Adaptive Signal Processing 1 LINEAR PREDICTION.

ELE 774 - Adaptive Signal Processing 24Week 4

Levinson-Durbin Recursion

Term 2:

but we know that (augmented Wiener-Hopf eqn.s)

Then

Page 25: Week 4ELE 774 - Adaptive Signal Processing 1 LINEAR PREDICTION.

ELE 774 - Adaptive Signal Processing 25Week 4

Levinson-Durbin Recursion

Then we have from the first line

from the last line As iterations increasePm decreases

Page 26: Week 4ELE 774 - Adaptive Signal Processing 1 LINEAR PREDICTION.

ELE 774 - Adaptive Signal Processing 26Week 4

Levinson-Durbin Recursion - Interpretations

κm: reflection coef.s due to the analogy with the reflection coef.s corresponding to the boundary bw. two sections in transmission lines

The parameter Δm represents the crosscorrelation bw. the forward

prediction error and the delayed backward prediction error

Since f0(n)= b0(n)= u(n)

final value of the prediction error power

HW: Prove this!

Page 27: Week 4ELE 774 - Adaptive Signal Processing 1 LINEAR PREDICTION.

ELE 774 - Adaptive Signal Processing 27Week 4

Application of the Levinson-Durbin Algorithm

Find the forward prediction error filter coef.s am,k, given the autocorrelation sequence {r(0), r(1), r(2)}

m=0

m=1

m=M=2

Page 28: Week 4ELE 774 - Adaptive Signal Processing 1 LINEAR PREDICTION.

ELE 774 - Adaptive Signal Processing 28Week 4

Properties of the prediction error filters

Property 1: There is a one-to-one correspondence bw. the two sets of quantities {P0, κ1, κ2, ... ,κM} and {r(0), r(1), ..., r(M)}.

If one set is known the other can directly be computed by:

Page 29: Week 4ELE 774 - Adaptive Signal Processing 1 LINEAR PREDICTION.

ELE 774 - Adaptive Signal Processing 29Week 4

Properties of the prediction error filters

Property 2a: Transfer function of a forward prediction error filter

Utilizing Levinson-Durbin recursion

but we also have

Then

Page 30: Week 4ELE 774 - Adaptive Signal Processing 1 LINEAR PREDICTION.

ELE 774 - Adaptive Signal Processing 30Week 4

Properties of the prediction error filters

Property 2b: Transfer function of a backward prediction error filter

Utilizing Levinson-Durbin recursion

Given the reflection coef.s κm and the transfer functions of the forward and backward prediction-error filters of order m-1, we can uniquely calculate the corresponding transfer functions for the forward and backward prediction error filters of order m.

Page 31: Week 4ELE 774 - Adaptive Signal Processing 1 LINEAR PREDICTION.

ELE 774 - Adaptive Signal Processing 31Week 4

Properties of the prediction error filters

Property 3: Both the forward and backward prediction error filters have the same magnitude response

Property 4: Forward prediction-error filter is minimum-phase. causal and has stable inverse.

Property 5: Backward prediction-error filter is maximum-phase. non-causal and has unstable inverse.

Page 32: Week 4ELE 774 - Adaptive Signal Processing 1 LINEAR PREDICTION.

ELE 774 - Adaptive Signal Processing 32Week 4

Properties of the prediction error filters

Property 6: Forward prediction-error filter is a whitening filter. We have seen that a

forward prediction-error filter can estimate an AR model (analysis filter).

u(n)

synthesisfilter

analysisfilter

Page 33: Week 4ELE 774 - Adaptive Signal Processing 1 LINEAR PREDICTION.

ELE 774 - Adaptive Signal Processing 33Week 4

Properties of the prediction error filters

Property 7: Backward prediction errors are orthogonal to each other.

( are white) Proof: Comes from principle of orthogonality, i.e.:

(HW: continue the proof)

Page 34: Week 4ELE 774 - Adaptive Signal Processing 1 LINEAR PREDICTION.

ELE 774 - Adaptive Signal Processing 34Week 4

Lattice Predictors

A very efficient structure to implement the forward/backward predictors.

Rewrite the prediction error filter coef.s

The input signal to the predictors {u(n), n(n-1),...,u(n-M)} can be stacked into a vector

Then the output of the predictors are

(forward) (backward)

Page 35: Week 4ELE 774 - Adaptive Signal Processing 1 LINEAR PREDICTION.

ELE 774 - Adaptive Signal Processing 35Week 4

Lattice Predictors

Forward prediction-error filter

First term

Second term

Combine both terms

Page 36: Week 4ELE 774 - Adaptive Signal Processing 1 LINEAR PREDICTION.

ELE 774 - Adaptive Signal Processing 36Week 4

Lattice Predictors

Similarly, Backward prediction-error filter

First term

Second term

Combine both terms

Page 37: Week 4ELE 774 - Adaptive Signal Processing 1 LINEAR PREDICTION.

ELE 774 - Adaptive Signal Processing 37Week 4

Lattice Predictors Forward and backward prediction-error filters

in matrix form

and

Last two equations define the m-th stage of the lattice predictor

Page 38: Week 4ELE 774 - Adaptive Signal Processing 1 LINEAR PREDICTION.

ELE 774 - Adaptive Signal Processing 38Week 4

Lattice Predictors For m=0 we have , hence for M stages