FFT-based Power Spectrum Estimation

Download Report

Transcript FFT-based Power Spectrum Estimation

AGC
Modern Spectral Estimation
DSP




Modern Spectral Estimation is based on a
priori assumptions on the manner, the
observed process has been generated
Validity of these assumptions is taken to hold
over all possible realisations and to be of
infinite temporal extent.
Thus limitations of FFT-based methods are
circumvented
These assumptions may be entirely statistical
or deterministic model-based or both.
Professor A G Constantinides©
1
AGC
Modern Spectral Estimation
DSP




Statistical methods make assumptions on the
probabilities pertaining to data generation.
Wiener-Hopf, and Bayesian methods are
typical examples
Model-based deterministic methods assume
a linear or a non-linear equation for the
input/output process driven by a stochastic or
a deterministic signal.
Linear Predictive Least SquaresTechniques
are typical of this class
Professor A G Constantinides©
2
AGC
Modern Spectral Estimation
DSP



Main directions are:
Least Squares
Maximum Entropy
Professor A G Constantinides©
3
AGC
Modern Spectral Estimation
DSP




An optimisation problem:
Measurements: { x [ n ]}
Problem:
Find the best FIR model to filter { x [ n ]} to
yield a given signal { d [ n ]}
We need


a) order of FIR system
b) decide on how to measure “best fit”
Professor A G Constantinides©
4
AGC
Modern Spectral Estimation
DSP
“Order Estimation” is an area by itself
Goodness of fit is another large area
Usually:





we have some idea beforehand on the
order
we select an “error criterion” which
reasonably reflects reality and is
analytically tractable
Professor A G Constantinides©
5
AGC
Modern Spectral Estimation
DSP


Formulation: Assume FIR order be N
and unknown filter weights { h [ n ]}
Output of FIR filter is
N
y [ n ]   h[ r ] x[ n  r ]  h x
T
r 0

Instantaneous error is
e[ n ]  d [ n ]  y [ n ]  d [ n ]  h x
T
Professor A G Constantinides©
6
AGC
Modern Spectral Estimation
DSP

The best solution would be when all such
errors are zero. However, this may not
possible because of many reasons





e.g. the order is not correct,
the actual model is not FIR,
or is not linear,
the noise present in the data, etc
Hence { h [ n ]} need to be selected to minimise
some measure of the error.
Professor A G Constantinides©
7
AGC
Modern Spectral Estimation
DSP





Error measure can take many forms
We draw a distinction between
stochastic and deterministic measures
For example
p
J  min E { e[ n ] }
(a) Stochastic
h
(b) Deterministic J  min  e[ n ] p
h
Professor A G Constantinides©
n
8
AGC
Modern Spectral Estimation
DSP




With p  2
Problem (a) is known as the Wiener
filtering problem
Problem(b) is known as the Least
Squares problem
These problems are also analytically
easily tractable
Professor A G Constantinides©
9
AGC
Modern Spectral Estimation
DSP


Extensive work has been done in these
problems in their various forms.
The absolute value squared error is
2


e[ n ]  d [ n ]  h x d [ n ]  h x

T
*
H
*

Or
2
2
e[ n ]  d [ n ]  g h  h g  h  h
H
H
Professor A G Constantinides©
H
T
10
AGC
Modern Spectral Estimation
DSP

Where for the stochastic case
g  E { d ( n ) x ( n  j )}
*
  E { x ( n  k ) x ( n  j )}  { kj }
*

While for the deterministic case we
have the same expressions but
Expectations are replaced by
Summations.
Professor A G Constantinides©
11
AGC
Modern Spectral Estimation
DSP



In both cases we have
g is the crosscorrelation between
the measurements (data) and the
desired signal
 is the autocorrelation matrix of the
data
Professor A G Constantinides©
12
AGC
Modern Spectral Estimation
DSP
The autocorrelation matrix for real
signals is symmetric, positive definite
 This is seen, for the stochastic case,
from
*
*
E {  x [ n  k ]   x [ n  j ]  x [ n  k ]   x [ n  j ] }  0


Expanding
Professor A G Constantinides©
13
AGC
Modern Spectral Estimation
DSP
2

Differentiating e[n ] with respect to h
and setting the result to zero we obtain
0g h
T


Or
 
h
T 1
g
Differentiating again yields the
autocorrelation matrix, which is positive
definite and hence we have a minimum
Professor A G Constantinides©
14
AGC
Modern Spectral Estimation
DSP
2

Differentiating e[n ] with respect to h
and setting the result
to zero we obtain
T
0g h

 
h
T 1
g
However,
e[ n ] x
H


 d [n]  h x x
T
 d [ n ] x  h xx
H
T
H
H
Professor A G Constantinides©
15
AGC
Modern Spectral Estimation
DSP

On taking expectations we obtain
E { e[ n ] x }  E { d [ n ] x  h xx }  g  h   0
H

H
T
H
T
This is known as the orthogonality
condition
“At the optimum the error vector is
orthogonal to the data”
Professor A G Constantinides©
16
AGC
Modern Spectral Estimation
DSP



For the stochastic case this solution is known
as the Wiener–Hopf solution.
For the deterministic case the solution is
known as the Yule-Walker solution.
The framework of modelling has been FIR or
Moving Average (MA). It can be extended to
include more involved linear models such as
Autoregressive (AR), and ARMA
Professor A G Constantinides©
17
AGC
AR Spectral Estimation
DSP



This is also known as the Maximum Entropy
Method and the Burg Method.
Burg solved the problem of extrapolating a
given finite set of autocorrelations to an
infinite set while keeping the autocorrelation
matrix positive semidefinite.
In view of the infinite possibile solutions he
postulated selecting that which produces the
flattest PSD. Equivalently it maximises
uncertainty (entropy) or randomness.
Professor A G Constantinides©
18
AGC
Modern Spectral Estimation
DSP

Thus the problem becomes the
constrained optimisation problem

max  ln  P ( e
j
) d 
m p
r [ m ] 
Subject to

 P (e

j m
) d   rxx [ m ]
Professor A G Constantinides©
0m p
19
AGC
Modern Spectral Estimation
DSP

Thus if the PSD of the observations is
taken to be that of the output of an AR
system driven by a white Gaussian
process the problem reduces to finding
the parameters of the following model
PMEM ( e
j
G
)
1  a1 e
 j
 a2e
2
 j 2
 ...   a N e
Professor A G Constantinides©
 jN  2
20
AGC
Modern Spectral Estimation
DSP


Where N is the number or poles.
[ G , a1 , a 2 ,..., a N ] are obtainable in the
autocorrelation method from (N+1)X(N+1)
 r[0]

r [1]

 .
 .

 r[ N ]
*
r [1]
...
r[0]
r [1]
...
r [1]
*
*
r [ N ]  1

a
 1
 .
*
r [1]


r [ 0 ]   a N
Professor A G Constantinides©

G 2 



0



.





 0 

 0 

21
AGC
Modern Spectral Estimation
DSP

Where the autocorrelation sequence is
estimated as
r [l ] 

1
L 1
L
n0
 x (n) x(n  l )
*
The signal above is extended by
padding with zeros whever the
argument demands more samples.
Professor A G Constantinides©
22
AGC
Modern Spectral Estimation
DSP

If we take only the entral part of the
autocorrelation matrix containing no
zero padding then we have the
Covariance Method.

The signal vector in both cases may be
windowed prior to the computations.
Professor A G Constantinides©
23
AGC
Modern Spectral Estimation
DSP




While the Burg method is a decided
improvement over the non-parametric
methods, it has several disadvantages
1) Exhibits Spectral Line Splitting particularly
at high SNR
2) For high order systems introduces
spurious spectral peaks
3) In estimating sinusoids in noise it shows a
bias dependent on the initial sinusoid phases
Professor A G Constantinides©
24
AGC
Linear Prediction
DSP

Assume
x [ n ]   ( a1 x [ n  1]  a 2 x [ n  2 ]  ...  a L 1 x [ n  L  1])

From the measurements in conjunction
with the assumed model we can write
Professor A G Constantinides©
25
AGC
Linear Prediction
DSP

 x [1]

 x[ 2 ]

.

 x [ N  1]

.

 x[ L  2 ]

.


0

0


0
x[ 0 ]
0
0
x[ 0 ]
0
x [1]
x[ 0 ]
.
.
.
x[ N  2 ]
x[ N  3 ]
.
.
.
.
x[ L  3 ]
x[ L  4 ]
.
.
.
0
x [ L  1]
x[ L  2 ]
.
0
x [ L  1]
0
.
0
 x [1] 

 x[ 2 ] 

0



 x[ 3 ] 
0




.
.
a 


 1
 
 x[ N ] 
x[ 0 ]
 a2
 



.
.
 a3   



 
x [ L  N  1]  .
 x [ L  1] 
 



.
 a N 
.



x[ L  3 ] 


0



x[ L  2 ] 
0


x [ L  1] 


0
0
Professor A G Constantinides©
26
AGC
Linear Prediction
DSP


The above can be seen as solving an
underlying AR prediction problem
In a compact form
Xa   x

The solution to this can be cast as an
optimisation problem
Professor A G Constantinides©
27
AGC
Modern Spectral Estimation
DSP

Form the error function to be minimised
as the difference between the two sides
of the equation
e  Xa  x

Then seek solution as
min e e  min ( Xa  x ) ( Xa  x )
H
a

H
a
The solution is
(normal equations)
H
H
( X X )a   X x
Professor A G Constantinides©
28
AGC
Modern Spectral Estimation
DSP


The autocorrelation matrix X X  
is computed directly from the given
signal.
Hence we obtain
H
1
a  (X X ) X x
H

H
Again in the covariance method, only a
subset of the total possible rows used in
the autocorrelation method, is taken .
Professor A G Constantinides©
29