



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




ECE 8873 B. H. Juang
Copyright 2004
Lecture 5, Slide #
Lecture 5:
Lossy Compression, Distortion Measures
School of Electrical and Computer Engineering
Georgia Institute of Technology
Spring, 2004
Spring 2004
ECE 8873 B. H. Juang
Copyright 2004
Lecture 5, Slide #
-^
If
and
appear as a parsable units in their
respective domain, we can define the average code lengtha
per input “unit,” which can be sample, pixel, word
(variable number of letters), sequence, area, or time.
Fundamentals
*^
*^
α β
β
Usually
) ( x α
x x A x x A A
equal
not
may
but
β
Why?
ECE 8873 B. H. Juang
Copyright 2004
Lecture 5, Slide #
Objectives & Concerns
-^
-^
-^
) ˆ , (^
x x d
x
ˆ x
-^
-^
β α
α β
Spring 2004
ECE 8873 B. H. Juang
Copyright 2004
Lecture 5, Slide #
General Distance or Dissimilarity Measure
-^
-^
-^
-^
ECE 8873 B. H. Juang
Copyright 2004
Lecture 5, Slide #
Distortion Measures
A distortion measure is a real non-negative function that mapstwo variables, possibly vector valued, to a scalar that indicatesthe degree of dissimilarity between the two variables.
-^
The space the two variables are in may be a metric space. Aspace
is
metric
if the
distance
function
between two
points A and B is characterized by the following properties:For–
if and only if
x
y
distance only when the two points coincide)
(the distance is symmetric)
(triangle inequality.)
But, a general measure of dissimilarity may not satisfy theseproperties.
x y d y x d
and ,
y x d y x d ) , ( ) , ( ) ,
z x d z y d y x d
Spring 2004
ECE 8873 B. H. Juang
Copyright 2004
Lecture 5, Slide #
Lp Norm
-^
-^
2
1
N
p
N n
p n
p^
/ 1
1
∑
=
p
N n
p n
p^
x
/ 1
1
∑
=
x
ECE 8873 B. H. Juang
Copyright 2004
Lecture 5, Slide #
Lp Norm as Distortion Measure
-^
-^
-^
-^
-^
-^
2
1
N
2 1 2 2 1 1
N
N
N
p
2
1
N
p
N n
p n
n
p^
y
x
d
/ 1
1
∑
=
y
x
y x
Spring 2004
ECE 8873 B. H. Juang
Copyright 2004
Lecture 5, Slide #
Weighted Euclidean Distance
Euclidean distance
-^
Different significance may be manifested along differentdimensions, thus weightingwhere
is a diagonal matrix. In general, it may not be.
Normalized weighted Euclidean distance:
-^
How to introduce general weighting?
-^
The role of covariance matrix – if
is the inverse covariance
matrix, the effect is to “equalize” the statistical spread alongeach data dimension – Mahalanobis distance.
W
∑=
N n
n
n^
y
x
d
1
2
2
y
x
y x
1
2
y x W y x y x −
∑
=
t
N n
n
n n
W
y
x
w
d
1
1
1
(^2) )
(
) , (
−
=
=
−
=^
∑
∑
N n
n
N n
n
n n
W^
w
y
x w
d^
y x
ECE 8873 B. H. Juang
Copyright 2004
Lecture 5, Slide #
Ali-Silvey Class of Distances for PDFs
[^
]
(^
)
function
decreasing
non a is
and
to
respect
with n
expectatio
the is
function,
convex a is
ratio,
likelihood
the is
where
(.)
) (
) (
) (
) (
) , (
1
2 1
2 1 1
1
f
p
E
C
X p
X p
X
X C E f p p d
p
= γ
γ
distance.
Leibler-
Kullback
the
becomes it
and
If
log
(^
)
distance.
Chernoff
the
becomes it
If
log
max )
, (^
2 1 1 1 0 2 1
dx
x p x p t t p p C
t
t
t^
∫^
−
≤ ≤
ρ
ρ
Spring 2004
ECE 8873 B. H. Juang
Copyright 2004
Lecture 5, Slide #
-^
-^
-^
-^
-^
Waveform Distortion Measures
∑
∑
i^
i
i^ i
i y
x
x
2 2
10
log 10
∑
i^
i
i^
y
x
d
2
1
i
2
1
i y y y = y ∑
∑
−=
−=
I
I i^
i n
i n I
I i^
i n
n
y
x
x
r^
2
2
ε
ρ
=
−
Nn^
rn
N
1
10
1
log
10
10
ρ
10
1
∑
=
−
N n^
^
−
2
10
(^1)
log 10
y x
y x
SNRG
ECE 8873 B. H. Juang
Copyright 2004
Lecture 5, Slide #
Spectral Distortion Measures
-^
-^
Spring 2004
ECE 8873 B. H. Juang
Copyright 2004
Lecture 5, Slide #
Spectral Distance & Log Spectral Distance • Lp norm of spectral difference• Lp norm of log spectral difference
)
(^ ω X
⇔ x
∫−
π π
d
d
p
p^
y x
∫−
π π
p
p^
)
(^ ω Y
⇔ y
ECE 8873 B. H. Juang
Copyright 2004
Lecture 5, Slide #
Cepstral Distances
∞
−
n
n j
xn
ω
ω
cepstrum. or ts
coefficien
cepstral
the
called
and
real
are xn
xn
c
c^
∞
−∞=
−^
n^
yn
xn
2
2
22
π π
ω π
ω
ω
−=
L
L n^
yn
xn
2
22
Spring 2004
ECE 8873 B. H. Juang
Copyright 2004
Lecture 5, Slide #
For a stable all-pole filter,
is analytic inside the unit
circle and can be represented by the Laurent expansion
Cepstrum of Model Spectrum
2 2
ω σ
ω
j e A
for
1 1
− ∑=
−^
n
a kc
n
a
c
n k
k n k
n
n
log
(^1) − z A
−
1
log
) (
log
n
n zcn
z A
σ
σ
Differentiating both sides wrt
and equating the coefficients of
like powers of
(^1) −
(^1) −
−
p n
n
0
p
k
a
a
k^
for 0
and 1 0
n
n
n
n n^
−
∞ −∞=
−
and,
log
where
log
2
0
2 2
σ
σ
ECE 8873 B. H. Juang
Copyright 2004
Lecture 5, Slide #
Cepstrum
^
−
^
−
^
−
^
−
=
=
=
−
=
=
−
4
3
2
1
1
1
1
1
1
1
)
(^1) (
)
(^1) (
)
(^1) (
)
(^1) (
) (^
p k^
k
p k^
k
p k^
k
p k^
k
r
z w
z z
z v
z u
Gz
z X
∑
∑
∑
∑
=
−
=
−
−
=
=
−
log
1
1
1
1
1
1
2
4
1
3
n
v
w
n
n
u
z
n
n
c
p k
nk
p k
nk
p k
nk
p k
nk
n
k
k
k
k^
z
w
v
u
and ,
,
,
of
value
absolute
maximum is λ
|
|
|
|
| | n
c
n
n
<
Cepstrum is a decayingsequence. Thesignificance of cepstrumdeminishes as the indexgets higher. Truncation isthus justified.
2
2
1
}
{
n
c E
n^
≈
Spring 2004
ECE 8873 B. H. Juang
Copyright 2004
Lecture 5, Slide #
Weighted Cepstrum Distance
2
2
n^
ω π
ω
ω
ω
ω
π π
2
(^22)
W
−
−∞=
−
n
jn
ω
−∞=
′
−
=
n
n
n
W
c
c
n
d
2
2
22
)
(
n
n
ECE 8873 B. H. Juang
Copyright 2004
Lecture 5, Slide #
Perceptual Significance
-^
-^
-^
-^
Spring 2004
ECE 8873 B. H. Juang
Copyright 2004
Lecture 5, Slide #
Nonlinear Perceptual “Frequency” Scale
5000 500 200100 50 20 20001000
50
100
1000
10000
Frequency (Hz)
Critical Bandwidth (Hz)
0
2000
4000
6000
8000
10000 12000
0 30002500 20001500 1000500
10
100
1000
10000
linear frequency
scale
logarithmicfrequency
scale
Frequency (Hz)
Pitch (mel)
Frequency (Hz)
ECE 8873 B. H. Juang
Copyright 2004
Lecture 5, Slide #
Concept of Difference Limen (DL)
DL is the perceptual sensitivity threshold – the minimumdeviation or difference along a certain dimension that isperceptually noticeable; sometimes also called just noticeabledifference (JND)
-^
Examples– Vowel formant frequencies: 3-5%– Formant amplitude:
nd
formant: ~3dB
Overall intensity: ~1.5dB (also 1
st
formant)
Harmonics in spectral valleys: 13-(-
Spring 2004
ECE 8873 B. H. Juang
Copyright 2004
Lecture 5, Slide #
Perceptual Masking - Asymmetry
80 56
SPL (dB)
Tonal masker Threshold
24dB
1000 Critical BW
Masked noiseFreq (Hz)
SMR
80 76
SPL (dB)
Noise maskerThreshold
4dB
410
Critical BW
Masked tone Freq (Hz)
SMR