Welcome to Time-Frequency Analysis, Adaptive Filtering and ...

Post on 13-Feb-2022

1 views 0 download

transcript

Welcome to Aalborg University No. 1

Welcome to Time-Frequency

Analysis, Adaptive Filtering and

Source Separation

Lecture 6: Filter Banks

Wavelet Packet and Parameterization

Ernest N. Kamavuako

Welcome to Aalborg University No. 2

From surface to deep learning

Storyline

Questions and Answers

Welcome to Aalborg University No. 3

Continuous Wavelet Transform (CWT)

From french: ondelette (small wave)

Finite in time

π‘Š π‘Ž, 𝑏 = π‘₯ 𝑑 βˆ™1

π‘Ž

+∞

βˆ’βˆžΟˆβˆ—π‘‘βˆ’π‘

π‘Ždt

Different values of a and b gives a serie of wavelets that may

be addedd together to reconstruct the signal

They are all localized in both time and frequency, but not

precisely localized in either.

Welcome to Aalborg University No. 4

Continuous Wavelet Transform (CWT)

π‘Š π‘Ž, 𝑏 = π‘₯ 𝑑 βˆ™1

π‘Ž

+∞

βˆ’βˆžΟˆβˆ—π‘‘βˆ’π‘

π‘Ždt

π‘₯(𝑑) = 1

𝐢 π‘Š(π‘Ž, 𝑏) βˆ™

+∞

βˆ’βˆžΟˆβˆ— 𝑑 dπ‘Žπ‘‘π‘

+∞

βˆ’βˆž

CWT

iCWT

Welcome to Aalborg University No. 5

Discrete Wavelet Transform (DWT)

DFT and CFT

Why CWT and DWT?

Welcome to Aalborg University No. 6

Multiresolution Analysis

π‘‰π‘—βˆ’1 𝑉𝑗

𝑉𝑗+1

𝑉𝑗+2

π‘Šπ‘—

π‘Šπ‘—+1

π‘Šπ‘—+2

V: approximation space

W: detail space

Welcome to Aalborg University No. 7

2βˆ’π‘—2 βˆ™ πœƒ 2βˆ’π‘—π‘‘ βˆ’ 𝑛 π‘Žπ‘  π‘œπ‘Ÿπ‘‘β„Žπ‘œπ‘›π‘œπ‘Ÿπ‘šπ‘Žπ‘™ π‘π‘Žπ‘ π‘’π‘  π‘“π‘œπ‘Ÿ 𝑉𝑗

𝜽 𝒕 is called Scaling function

π‘‰π‘—βˆ’1 = π‘Šπ‘—+π‘˜

+∞

π‘˜=0

2βˆ’π‘—2 βˆ™ ψ 2βˆ’π‘—π‘‘ βˆ’ 𝑛 π‘Žπ‘  π‘œπ‘Ÿπ‘‘β„Žπ‘œπ‘›π‘œπ‘Ÿπ‘šπ‘Žπ‘™ π‘π‘Žπ‘ π‘’π‘  π‘“π‘œπ‘Ÿ π‘Šπ‘—

ψ 𝒕 is called wavelet function

Multiresolution Analysis

Welcome to Aalborg University No. 8

Discrete Wavelet transform

π‘Š π‘Ž, 𝑏 = 𝑓 𝑑 βˆ™1

π‘Ž

+∞

βˆ’βˆž

Οˆβˆ—π‘‘ βˆ’ 𝑏

π‘Ždt

π‘Ž = 2𝑗 and b = 2𝑗𝑛 : Dyadic wavelet transform

𝛽𝑛,𝑗 = 𝑓 𝑑 βˆ™1

2𝑗

+∞

βˆ’βˆž

Οˆβˆ—π‘‘ βˆ’ 2𝑗𝑛

2𝑗dt

Welcome to Aalborg University No. 9

Filter Banks

A filter bank is an array of band-pass filters that separates the

input signal into multiple components, each one carrying a

single frequency subband of the original signal.

We have seen that multiresolution Analysis allows us to

decompose a signal into approximations and details.

Filter Bank is a way to implement the MRA and DWT.

Welcome to Aalborg University No. 10

Filter Banks

𝑃𝑉0𝑓 = π‘π‘›πœƒ 𝑑 βˆ’ 𝑛 = 𝑓(𝑑)

𝑛

𝑃𝑉1𝑓 = π‘Žπ‘˜1

2πœƒπ‘‘

2βˆ’ 𝑛

π‘˜

π‘ƒπ‘Š1𝑓 = π‘‘π‘˜1

2Ψ𝑑

2βˆ’ 𝑛

π‘˜

We would like to find π‘Žπ‘˜ and π‘‘π‘˜, not by using 𝑓(𝑑) but its

representation in 𝑉0(𝑐𝑛). π‘Žπ‘˜, π‘‘π‘˜?

𝑉0 𝑉1

𝑉2

π‘Š1

π‘Š2

Welcome to Aalborg University No. 11

Analysis: from fine scale to coarser scale

C[n] g[n]

h[n]

2

2 a1[n]

d1[n]

g[n] 2 d2[n]

h[n] 2 a2[n] Matlab functions: dwt and

wavedec

[cA, cD] = dwt(x, Lo, Hi);

= dwt(x, 'wname');

[C, L] = wavedec(x, N, Lo, Hi);

= wavedec(x, N, 'wname');

Welcome to Aalborg University No. 12

Analysis: from fine scale to coarser scale

Welcome to Aalborg University No. 13

Welcome to Aalborg University No. 14

Synthesis: from coarse scale to fine scale

g[n]

h[n]

2

a1[n]

d1[n]

2

+ C[n]

Matlab functions: idwt and waverec

x = idwt(cA, cD, Lo, Hi);

= idwt(cA, cD, 'wname'); x = waverec(C, L, Lo, Hi);

= waverec(C,L, 'wname');

Welcome to Aalborg University No. 15

Wavelet Packet

Welcome to Aalborg University No. 16

Wavelet Parameterization

WT requires the selection of the mother wavelet.

Wavelet usually designed similar to the signal.

Here The mother wavelet is parameterized.

ψ is defined by a low-pass filter h and its associated

high-pass filter g.

)22/())sin()cos(1(3

)22/())sin()cos(1(2

)22/())sin()cos(1(1

)22/())sin()cos(1(0

h

h

h

h

Welcome to Aalborg University No. 17

Wavelet Parameterization

If Ξ± = 0, β„Ž = 0,1

2,1

2, 0 g = 0,

1

2, βˆ’1

2, 0

[h,g] = wfilters(β€˜db2’) Flip h and change signs of odd values

β„Ž = βˆ’0.1294, 0.2241, 0.8365, 0.4830 , g = βˆ’0.4830, 0.8365,βˆ’0.2241,βˆ’0.1294

]1[)1(][ 1 nhng n

)22/())sin()cos(1(3

)22/())sin()cos(1(2

)22/())sin()cos(1(1

)22/())sin()cos(1(0

h

h

h

h