1 of 60

Dr Rajkumar L. Biradar, Prof, GNITS

1

2/10/2019

Wavelet Transformation

Shri Bhagyavanthi Krupa

Dr. Rajkumar L. Biradar

Prof., ETE Dept

GNITS, HYD

2 of 60

Table of content

  • Introduction
  • Fourier Transformation
  • Continuous Wavelet Transformation
  • Discrete Wavelet Transformation
  • Applications

Dr Rajkumar L. Biradar, Prof, GNITS

2

2/10/2019

3 of 60

Introduction

Dr Rajkumar L. Biradar, Prof, GNITS

3

2/10/2019

Most of the signals in practice, are TIME-DOMAIN(Raw Signal) signals in their raw format. It means that measured signal is a function of time.

To obtain a further information from the signal that is not readily available in the raw signal.

EX: In many cases, the most distinguished information is hidden in the frequency content of the signal.

Why do we need the frequency information?

4 of 60

Stationary signal

  • Frequency content of stationary signals do not change in time.

Dr Rajkumar L. Biradar, Prof, GNITS

4

2/10/2019

20Hz

80Hz

120Hz

5 of 60

Transformation

Dr Rajkumar L. Biradar, Prof, GNITS

5

2/10/2019

Fourier Transformation (FT) is probably the most popular transform being used (especially in electrical engineering and signal processing), There are many other transforms that are used quite often by engineers and mathematicians:

  • Hilbert transform
  • Short-Time Fourier transform (STFT)
  • Radon Transform,
  • Wavelet transform, (WT)

Every transformation technique has its own area of

application, with advantages and disadvantages.

6 of 60

Fourier Transformation

Dr Rajkumar L. Biradar, Prof, GNITS

6

2/10/2019

In 19th century, the French mathematician J. Fourier, showed that any periodic function can be expressed as an infinite sum of periodic complex exponential functions.

7 of 60

Dr Rajkumar L. Biradar, Prof, GNITS

7

2/10/2019

Raw Signal

(time domain)

x(t)

cos(2πft)

5Hz

10Hz

8 of 60

Non-Stationary signal

  • Frequency content of non stationary signals change in time.

Dr Rajkumar L. Biradar, Prof, GNITS

8

2/10/2019

Magnitude

20 Hz

80 Hz

120 Hz

9 of 60

Dr Rajkumar L. Biradar, Prof, GNITS

9

2/10/2019

Frequency

(X) Amplitude

FT

10 of 60

Frequency: 2 Hz to 20 Hz

Dr Rajkumar L. Biradar, Prof, GNITS

10

2/10/2019

Time

Magnitude

Magnitude

Frequency (Hz)

Time

Magnitude

Magnitude

Frequency (Hz)

Different in Time Domain

Frequency: 20 Hz to 2 Hz

Same in Frequency Domain

At what time the frequency components occur? FT can not tell!

11 of 60

Dr Rajkumar L. Biradar, Prof, GNITS

11

2/10/2019

So, how come the spectrums of two entirely different signals look very much alike?

Recall that the FT gives the spectral content of the signal, but it gives no information regarding where in time those spectral components appear.

Once again please note that, the FT gives what frequency components (spectral components) exist in the signal. Nothing more, nothing less.

12 of 60

Dr Rajkumar L. Biradar, Prof, GNITS

12

2/10/2019

Almost all biological signals are non-stationary. Some of the most famous ones are ECG (electrical activity of the heart , electrocardiograph), EEG (electrical activity of the brain, electroencephalogram), and EMG (electrical activity of the muscles, electromyogram).

ECG

EEG

EMG

13 of 60

Short-Time Fourier Transformation

Dr Rajkumar L. Biradar, Prof, GNITS

13

2/10/2019

Can we assume that , some portion of a non-stationary signal is stationary?

The answer is yes.

In STFT, the signal is divided into small enough segments, where these segments (portions) of the signal can be assumed to be stationary. For this purpose, a window function "w" is chosen.

?

14 of 60

Dr Rajkumar L. Biradar, Prof, GNITS

14

2/10/2019

FT

X

15 of 60

Dr Rajkumar L. Biradar, Prof, GNITS

15

2/10/2019

FT

X

16 of 60

Dr Rajkumar L. Biradar, Prof, GNITS

16

2/10/2019

FT

X

17 of 60

Dr Rajkumar L. Biradar, Prof, GNITS

17

2/10/2019

FT

X

18 of 60

Dr Rajkumar L. Biradar, Prof, GNITS

18

2/10/2019

FT

X

19 of 60

Dr Rajkumar L. Biradar, Prof, GNITS

19

2/10/2019

FT

X

20 of 60

Dr Rajkumar L. Biradar, Prof, GNITS

20

2/10/2019

FT

X

21 of 60

Dr Rajkumar L. Biradar, Prof, GNITS

21

2/10/2019

FT

X

22 of 60

Dr Rajkumar L. Biradar, Prof, GNITS

22

2/10/2019

FT

X

23 of 60

Dr Rajkumar L. Biradar, Prof, GNITS

23

2/10/2019

FT

X

24 of 60

Dr Rajkumar L. Biradar, Prof, GNITS

24

2/10/2019

FT

X

25 of 60

Dr Rajkumar L. Biradar, Prof, GNITS

25

2/10/2019

Time step

Frequency

Amplitude

time-frequency representation (TFR)

Window width = 0.05

Time step = 100 milisec

26 of 60

Dr Rajkumar L. Biradar, Prof, GNITS

26

2/10/2019

FT

STFT

ω

ω

ω

27 of 60

Dr Rajkumar L. Biradar, Prof, GNITS

27

2/10/2019

Time step

Frequency

Amplitude

Amplitude

Time step

Frequency

Amplitude

Narrow windows give good time resolution, but poor frequency resolution.

Window width = 0.02

Time step = 10 milisec

28 of 60

Dr Rajkumar L. Biradar, Prof, GNITS

28

2/10/2019

Time step

Frequency

Amplitude

Amplitude

Time step

Frequency

Amplitude

Wide windows give good frequency resolution, but poor time resolution;

Window width = 0.1

Time step = 10 milisec

29 of 60

Dr Rajkumar L. Biradar, Prof, GNITS

29

2/10/2019

What kind of a window to use

?

The answer, of course, is application dependent:

Overcomes the shortcoming of STFT by using variable length windows

.

The Wavelet transform (WT) solves the dilemma of resolution to a certain extent, as we will see.

30 of 60

Multi Resolution Analysis

Dr Rajkumar L. Biradar, Prof, GNITS

30

2/10/2019

MRA, as implied by its name, analyzes the signal at different frequencies with different time resolutions. Every spectral component is not resolved equally as was the case in the STFT.

MRA is designed to give good time resolution (uses narrow window) and poor frequency resolution at high frequencies (bcoz time is very less) and good frequency resolution (uses wider window) and poor time resolution at low frequencies.

This approach makes sense especially when the signal at hand has high frequency components for short durations and low frequency components for long durations.

31 of 60

What are Wavelets?

  • WT are based on small waves, wavelets. Wavelets are functions that “wave” above and below the x-axis, have

(1) varying frequency,

(2) limited duration, and

(3) an average value of zero.

  • This is in contrast to sinusoids, used by FT, which have infinite energy.

Dr Rajkumar L. Biradar, Prof, GNITS

31

2/10/2019

Sinusoid Wavelet

32 of 60

  • Wavelet
    • A small wave
  • Wavelet Transforms
    • Convert a signal into a series of wavelets
    • Provide a way for analyzing waveforms, bounded in both frequency and duration
    • Allow signals to be stored more efficiently than by Fourier transform
    • Be able to better approximate real-world signals

  • “The Forest & the Trees”
    • Notice gross features with a large "window“
    • Notice small features with a small "window“

Dr Rajkumar L. Biradar, Prof, GNITS

32

2/10/2019

33 of 60

Continuous Wavelet Transformation

Dr Rajkumar L. Biradar, Prof, GNITS

33

2/10/2019

The continuous wavelet transform was developed as an alternative approach to the short time Fourier transform to overcome the resolution problem.

The wavelet analysis is done in a similar way to the STFT analysis, in the sense that the signal is multiplied with a function, wavelet, similar to the window function in the STFT, and the transform is computed separately for different segments of the time domain signal.

wavelet

34 of 60

Dr Rajkumar L. Biradar, Prof, GNITS

34

2/10/2019

X

t = 0

Scale = 1

Ψ(t)

f(t)

×

Inner product

Like sines and cosines in FT, wavelets are used as basis functions Ψ(t)

in representing other functions f(t):

35 of 60

Dr Rajkumar L. Biradar, Prof, GNITS

35

2/10/2019

X

t = 50 (position translation/shifting)

Scale = 1

Ψ(s,t)

f(t)

×

Inner product

36 of 60

Dr Rajkumar L. Biradar, Prof, GNITS

36

2/10/2019

X

t = 100 (position translation/shifting)

Scale = 1

Ψ(s,t)

f(t)

×

Inner product

37 of 60

Dr Rajkumar L. Biradar, Prof, GNITS

37

2/10/2019

X

t = 150 (position translation/shifting)

Scale = 1

Ψ(s,t)

f(t)

×

Inner product

38 of 60

Dr Rajkumar L. Biradar, Prof, GNITS

38

2/10/2019

X

t = 200 (position translation/shifting)

Scale = 1

Ψ(s,t)

f(t)

×

Inner product

39 of 60

Dr Rajkumar L. Biradar, Prof, GNITS

39

2/10/2019

X

t = 200 (position translation/shifting)

Scale = 1

Ψ(s,t)

f(t)

×

Inner product

0

40 of 60

Dr Rajkumar L. Biradar, Prof, GNITS

40

2/10/2019

X

t = 0

Scale = 10

Ψ(s,t)

f(t)

×

Inner product

41 of 60

Dr Rajkumar L. Biradar, Prof, GNITS

41

2/10/2019

X

t = 50 (position translation/shifting)

Scale = 10

Ψ(s,t)

f(t)

×

Inner product

42 of 60

Dr Rajkumar L. Biradar, Prof, GNITS

42

2/10/2019

X

t = 100 (position translation/shifting)

Scale = 10

Ψ(s,t)

f(t)

×

Inner product

43 of 60

Dr Rajkumar L. Biradar, Prof, GNITS

43

2/10/2019

X

t = 150 (position translation/shifting)

Scale = 10

Ψ(s,t)

f(t)

×

Inner product

44 of 60

Dr Rajkumar L. Biradar, Prof, GNITS

44

2/10/2019

X

t = 200 (position translation/shifting)

Scale = 10

Ψ(s,t)

f(t)

×

Inner product

45 of 60

Dr Rajkumar L. Biradar, Prof, GNITS

45

2/10/2019

X

Scale = 10

Ψ(s,t)

f(t)

×

Inner product

0

46 of 60

Dr Rajkumar L. Biradar, Prof, GNITS

46

2/10/2019

X

t=0

Scale = 20

Ψ(s,t)

f(t)

×

Inner product

47 of 60

Dr Rajkumar L. Biradar, Prof, GNITS

47

2/10/2019

X

t=0

Scale = 30

Ψ(s,t)

f(t)

×

Inner product

48 of 60

Dr Rajkumar L. Biradar, Prof, GNITS

48

2/10/2019

X

t=0

Scale = 40

Ψ(s,t)

f(t)

×

Inner product

49 of 60

Dr Rajkumar L. Biradar, Prof, GNITS

49

2/10/2019

X

t=0

Scale = 50

Ψ(s,t)

f(t)

×

Inner product

50 of 60

Dr Rajkumar L. Biradar, Prof, GNITS

50

2/10/2019

The continuous wavelet transform (CWT)

Fourier Transform

FT is the sum over all the time of signal f(t) multiplied by a complex exponential.

51 of 60

Dr Rajkumar L. Biradar, Prof, GNITS

51

2/10/2019

This equation shows how a function ƒ(t) is decomposed into a set of basis functions , called the wavelets.

The variables s and τ are the new dimensions, scale and translation (position), after the wavelet transform.

Similarly, the Continuous Wavelet Transform (CWT) is defined as the sum over all time of the signal multiplied by scale , shifted version of the wavelet function :

52 of 60

Dr Rajkumar L. Biradar, Prof, GNITS

52

2/10/2019

  • The wavelets are generated from a single basic wavelet ,

the so-called mother wavelet, by scaling and translation:

s is the scale factor, τ is the translation factor and the factor s-1/2 is for energy normalization across the different scales.

  • It is important to note that in the above transforms the wavelet basis functions are not specified.

53 of 60

Dr Rajkumar L. Biradar, Prof, GNITS

53

2/10/2019

Scale

Scaling a wavelet simply means stretching (or compressing) it.

54 of 60

Dr Rajkumar L. Biradar, Prof, GNITS

54

2/10/2019

Translation (shift)

Translating a wavelet simply means delaying (advancing) its onset.

Scale and Frequency

Low scale s

Compressed wavelet

Rapidly changing details

High frequency

High scale s

stretched wavelet

slowly changing details

low frequency

55 of 60

Continuous Wavelet Transform (CWT)

Dr Rajkumar L. Biradar, Prof, GNITS

55

2/10/2019

As seen in the above equation , the transformed signal is a function of two variables, τ and s , the translation and scale parameters, respectively. Ψ(t) is the transforming function, and it is called the mother wavelet.

If the signal has a spectral component that corresponds to the value of s, the product of the wavelet with the signal at the location where this spectral component exists gives a relatively large value.

56 of 60

Dr Rajkumar L. Biradar, Prof, GNITS

56

2/10/2019

Magnitude

20 Hz

50 Hz

120 Hz

Translation increment=50 milisecond

Scale inc.=0.5

57 of 60

What are Wavelets? (cont’d)

  • There are many different wavelets:

Dr Rajkumar L. Biradar, Prof, GNITS

57

2/10/2019

Morlet

Haar

Daubechies

58 of 60

�� Shannon Wavelet �Ψ(t) = 2 sinc(2t) – sinc(t)

Dr Rajkumar L. Biradar, Prof, GNITS

58

2/10/2019

mother wavelet

τ=5, s=2

time

59 of 60

  • The inverse CWT is defined as

  • Where

  • Where is the FT of

Dr Rajkumar L. Biradar, Prof, GNITS

59

2/10/2019

60 of 60

Dr Rajkumar L. Biradar, Prof, GNITS

60

2/10/2019