Advanced Digital Signal Processing

42
Prof. Nizamettin AYDIN naydin @ yildiz .edu.tr http://www.yildiz.edu.tr/~naydin Advanced Digital Signal Processing 1

description

Advanced Digital Signal Processing. Prof. Nizamettin AYDIN naydin @ yildiz .edu.tr http:// www . yildiz .edu.tr/~naydin. Identification and Detection of Embolic Signals Using DWT and Fuzzy Logic. Introduction. Stroke is an illness causing partial or total paralysis, or death. - PowerPoint PPT Presentation

Transcript of Advanced Digital Signal Processing

Page 1: Advanced  Digital  Signal Processing

Prof. Nizamettin AYDIN

[email protected]

http://www.yildiz.edu.tr/~naydin

Advanced Digital Signal Processing

1

Page 2: Advanced  Digital  Signal Processing

• Time-Scale Analysis

– Wavelet Transform– Complex Wavelet

2

Page 3: Advanced  Digital  Signal Processing

Introduction

Stroke is an illness causing partial or total paralysis, or death.

The most common type of stroke (80% of all strokes) occurs when a blood vessel in or around the brain becomes plugged.

The plug can originate in an artery of the brain or somewhere else in the body, often the heart, where it breaks off and travels up the arterial tree to the brain, until it lodges in a blood vessel.

3

Page 4: Advanced  Digital  Signal Processing

Emboli

These "travelling clots" are called emboli.Solid emboli typically consist of

– thrombus, – hard calcified plaque or – soft fatty atheroma.

• Gaseous emboli may also enter the circulation during surgery or form internally from gases that are normally dissolved in the blood.

• Any foreign body (solid or gas) that becomes free-floating in the bloodstream is called an embolus, from the Greek ‘embolos’ meaning ‘a stopper’.

4

Page 5: Advanced  Digital  Signal Processing

• Early and accurate detection of asymptomatic emboli is important in identifying patients at high risk of stroke

• They can be detected by Doppler ultrasound– Transcranial Doppler ultrasound (TCD)

• 1-2 MHz

5

Page 6: Advanced  Digital  Signal Processing

Typical Doppler System for Detecting Emboli

Gatedtransmiter

Masterosc.

Band-passfilter

Sample& hold

Demodulator

Receiveramplifier

RFfilter

Band-passfilter

Sample& hold

Demodulator

Logicunit

si

V

Transducer

sincos

• Demodulation

• Quadrature to directional signal conversion

• Time-frequency/scale analysis

• Data visualization

• Detection and estimation

• Derivation of diagnostic information

Further processin

g

6

Page 7: Advanced  Digital  Signal Processing

Embolic Doppler ultrasound signal

• Within audio range (0-10 kHz)

• Appear as increasing and then decreasing in intensity for a short duration,

– usually less than 300 ms.

• The bandwidth of ES is usually much less than that of Doppler Speckle.

– narrow-band signals

• They are also oscillating and finite signals

– Similar to wavelets.

• Have an associated characteristic click or chirping sound

• Unidirectional and usually contained within the flow spectrum

• The spectral content of an ES is also time dependent.

7

Page 8: Advanced  Digital  Signal Processing

Examples of Embolic Signals

(red: forward,

blue: reverse)

More examples

8

Page 9: Advanced  Digital  Signal Processing

9

Page 10: Advanced  Digital  Signal Processing

Time-Scale Analysis (Continuous Wavelet Transform)

*(t) is the analysing wavelet. a (>0) controls the scale of the wavelet. b is the translation and controls the position of the wavelet.

• Can be computed directly by convolving the signal with a scaled and dilated version of the wavelet (Frequency domain implementation may increase computational efficiency).

• Wavelets are ideally suited for the analysis of sudden short duration signal changes (non-stationary signals).

• Decomposes a time series into time-scale space, creating a three dimensional representation (time, wavelet scale and amplitude of the WT coefficients).

dta

btts

abaWs

)(1

),(

10

Page 11: Advanced  Digital  Signal Processing

Wavelet Analysis

scale

time

Non-stationary and multiscale signal analysis

- Good time resolution at high frequencies

- Good frequency resolution at low frequencies

11

Page 12: Advanced  Digital  Signal Processing

Continuous Wavelet Transform

for each Scale

for each Position

Coefficient (S,P) = Signal Wavelet (S,P)

end

end

all time

Coefficient

Position

Scale

12

Page 13: Advanced  Digital  Signal Processing

Wavelet analysis and synthesis

2

2121),(

1)(,)(),(

a

dadb

a

btabaW

Ctsdt

a

bttsabaW ss

• A wavelet must oscillate and decay

• a (>0) controls the scale of the wavelet. b is the translation parameter and controls the position of the wavelet.

dC)(

13

Page 14: Advanced  Digital  Signal Processing

Time-frequency and Time-scale analysis

dtetgtstF tjs

)()(),( dta

bt

atsbaWs

1)(),(

TF tiling is fixedTF tiling is fixed..

Assumes the signal is Assumes the signal is stationary within the stationary within the analysis windowanalysis window..

The FT has an The FT has an inherent TF resolution inherent TF resolution limitation.limitation.

TS tiling is logarithmicTS tiling is logarithmic..

Ideally suited for the Ideally suited for the analysis of sudden analysis of sudden short duration signal short duration signal changeschanges..

Allows TF resolution Allows TF resolution compromise to be compromise to be optimised.optimised.

14

Page 15: Advanced  Digital  Signal Processing

Time-Frequency Discretization

WFT Wavelet

FourierShannon

time

frequency

15

Page 16: Advanced  Digital  Signal Processing

Difference between Wavelet and Fourier bases

• The basic difference between the WT and the WFT is that when the scale factor a is changed, the duration and the bandwidth of the wavelet are both changed but its shape remains the same.

• The WT uses short windows at high frequencies and long windows at low frequencies in contrast to the WFT, which uses a single analysis window.

• This partially overcomes the time resolution limitation of the WFT.

-4 -3 -2 -1 0 1 2 3 4

-1

-0.5

0

0.5

1

-4 -3 -2 -1 0 1 2 3 4

-0.5

0

0.5

Dimensionless period

Dimensionless periodFourier bases

Wavelet bases

16

Page 17: Advanced  Digital  Signal Processing

• Similar to complex FT, a complex WT providing directional information in scale domain exists.

• A complex wavelet (t) must also satisfy the following property:

• Morlet and Cauchy wavelets are two examples for such complex wavelets.

0

0)(,)(

aif

aif

Complex Wavelet Transform

17

Page 18: Advanced  Digital  Signal Processing

0),(2

0),(2)(,)(

2

)(

2

)(

22

0

20

220

aea

aeaeeat

a

a

atati

0),()(

0),()(,)1(

2

)1()(

1

1)1(

aea

aea

a

ti

mat

amm

ammm

0,0

0,1)(,)(

0

1

dtetm tm

• Complex Morlet wavelet.

• Complex Cauchy wavelet.

18

Page 19: Advanced  Digital  Signal Processing

-4 -2 0 2 4-1

-0.5

0

0.5

1

-0.5 0 0.50

1

-4 -2 0 2 4-1

-0.5

0

0.5

1

-0.5 0 0.50

1

Morlet

CauchyNormalised Frequency

Normalised Frequency

19

Page 20: Advanced  Digital  Signal Processing

-0.5 0 0.5

0.5

1

Normalised Frequency

a < 0 a > 0

20

Page 21: Advanced  Digital  Signal Processing

Time-frequency/scale analysis of Doppler Ultrasound Signals

ms 5.83,250,1500,7150

)]()([5.0)]()([)(

1

212

12

tHzfHzfHzF

ttuttuettutuets

rfs

tfitfirf

21

Page 22: Advanced  Digital  Signal Processing

Example: analysis of Embolic Doppler signal

22

Page 23: Advanced  Digital  Signal Processing

...CWT of an embolic Doppler signal...

23

Page 24: Advanced  Digital  Signal Processing

...CWT of an embolic Doppler signal

24

Page 25: Advanced  Digital  Signal Processing

Discrete Wavelet Transform

25

04Aralik2k12

Page 26: Advanced  Digital  Signal Processing

Discrete Wavelet Transform (DWT)

• Discrete WT is a special case of the continuous WT

when a=a0j and b=n.a0j.

• Dyadic wavelet bases are obtained when a0=2

1

0 0

00)(1

),(

0

N

km

m

ms

a

anbkks

anmW

dta

btts

abaWs

)(1

),(

26

Page 27: Advanced  Digital  Signal Processing

Discrete Wavelet Transform

• Scaling and positions are dyadic• Fast algorithms exist• Scaling function and wavelet must satisfy the following

conditions

0)(,1)( dttdtt

27

Page 28: Advanced  Digital  Signal Processing

Discrete Wavelet Transform

• CWT: Scales = any value

• DWT: Scales = Dyadic scale 21 22 23 24 25 ...

• Equivalent to:

Signal Detail (level 1)

Approximation(level 1)

Detail (level 2)

Approximation(level 2)

S = D1 + A1 = D1 + D2 + A2

28

Page 29: Advanced  Digital  Signal Processing

Signal Decomposition

Signal

Detail Signal (D1)

ApproximationSignal (A1)

High Pass

Low Pass

f

f

These signals are now

oversampled

29

Page 30: Advanced  Digital  Signal Processing

Signal Decomposition

Signal

Detail Coefficients (cD1)

ApproximationCoefficients (cA1)

2

2

downsample

Signal

Detail Signal (D1)

ApproximationSignal (A1)

High Pass

Low Pass

f

f

These signals are now

oversampled

High Pass

Low Pass

f

f

30

Page 31: Advanced  Digital  Signal Processing

Decomposition Tree

S

cD1

cD2

cD3

cA3

Level 1 Level 2

Hi

Lo

Hi

Lo

Hi

Lo

Level 3

31

Page 32: Advanced  Digital  Signal Processing

Decomposition Tree

S

cD1

cD2

cD3

cA3

Level 1 Level 2

Hi

Lo

Hi

Lo

Hi

Lo

Level 3

level

time

coarse - large scale

fine - small scale

32

Page 33: Advanced  Digital  Signal Processing

Analysis and Synthesis

• Decomposition• Analysis• DWT

• Reconstruction• Synthesis• IDWT

If we choose filters H, L, H’ and L’ correctly PERFECT RECONSTRUCTION

SH’

L’H’

L’H’

L’

H

LH

LH

L

33

Page 34: Advanced  Digital  Signal Processing

Compression and Denoising

• Compression: •Find the minimum number of coefficients so that the reconstructed signal still looks reasonable

• Denoising: Remove some coefficients so that the reconstructed signal has less noise

SH’

L’H’

L’H’

L’

H

LH

LH

L

34

Page 35: Advanced  Digital  Signal Processing

Wavelets...

Wavelet Decomposition Tree

S

A1 D1

frequency

D1A1

35

Page 36: Advanced  Digital  Signal Processing

Wavelets Continued

Wavelet Decomposition Tree

S

A1 D1

A2 D2

frequency

D2 D1A2

36

Page 37: Advanced  Digital  Signal Processing

Wavelets Continued

Wavelet Decomposition Tree

S

A1 D1

A2 D2

A3 D3

frequency

A3 D3 D2 D1

37

Page 38: Advanced  Digital  Signal Processing

Wavelet Packets

D1

Wavelet Packet Decomposition Tree

S

A1

frequency

A1 D1

38

Page 39: Advanced  Digital  Signal Processing

Wavelet Packets

Wavelet Packet Decomposition Tree

S

A1 D1

AD2 DD2

frequency

A1 AD2 DD2

39

Page 40: Advanced  Digital  Signal Processing

Wavelet Packets

Wavelet Packet Decomposition Tree

S

A1 D1

AAD3 DAD3

AD2 DD2

frequency

AAD3 DAD3A1 DD2

40

Page 41: Advanced  Digital  Signal Processing

Wavelet Packets

A1

AAD3 DAD3

DD2

Wavelet Packet Decomposition Tree

S

D1

AA2 DA2

AAA3 DAA3 ADA3 DDA3 ADD3 DDD3

AD2

frequency

AAA3 DAA3 ADA3 DDA3 AAD3 DAD3 ADD3 DDD3

41

Page 42: Advanced  Digital  Signal Processing

42