Time-Frequency Analysis Time Frequency Analysis in Visual Signal - - PowerPoint PPT Presentation

time frequency analysis time frequency analysis in visual
SMART_READER_LITE
LIVE PREVIEW

Time-Frequency Analysis Time Frequency Analysis in Visual Signal - - PowerPoint PPT Presentation

Time-Frequency Analysis Time Frequency Analysis in Visual Signal Yetmen Wang AnCAD, Inc. AnCAD, Inc. 2007/7/12 Single frequency? Single frequency? Is the squared periodical wave of single frequency? With Fourier glasses, sine


slide-1
SLIDE 1

Time-Frequency Analysis Time Frequency Analysis in Visual Signal

Yetmen Wang AnCAD, Inc. AnCAD, Inc. 2007/7/12

slide-2
SLIDE 2

Single frequency? Single frequency?

  • Is the squared periodical wave
  • f single frequency?
  • With Fourier glasses, sine

With Fourier glasses, sine wave is of single frequency while squared wave is of multiple frequencies multiple frequencies.

  • What is the definition of

frequency?

  • What do we want to see?
slide-3
SLIDE 3

Non-Periodical Signal of many frequencies? Non Periodical Signal of many frequencies?

  • Does a straight has a

frequency?

  • Putting on Fourier glasses, we

Putting on Fourier glasses, we see so many frequencies from a straight line. A i h t d t t ?

  • Again what do we want to see?
slide-4
SLIDE 4

What do we want? Data perception. What do we want? Data perception.

  • Signal normally is composed of non-periodical part,

periodical part, noise, and jump/discontinuity. For data perception we want to be able to separate all of them perception, we want to be able to separate all of them. And non-periodical signal is represented in time series plot, noise eliminated, jump/discontinuity taken cared plot, noise eliminated, jump/discontinuity taken cared without introducing undesired alias, and periodical signal shown in time-frequency plot.

slide-5
SLIDE 5

TF Plot: Single frequency TF Plot: Single frequency

slide-6
SLIDE 6

TF Plot: Change of frequency TF Plot: Change of frequency

  • Signal with abrupt change of

frequency.

⎨ ⎧ < ≤ × 1 , ) 10 2 cos( 30 . ) ( t t π ⎩ ⎨ ⎧ < ≤ × = 2 1 , ) 20 2 cos( 30 . , ) ( ) ( t t t x π

slide-7
SLIDE 7

TF Plot: Change of frequency and amplitude TF Plot: Change of frequency and amplitude

  • Signal with abrupt change of

frequency and amplitude

⎩ ⎨ ⎧ < ≤ π × < ≤ π × = 2 1 ) 20 2 cos( 15 1 , ) 10 2 cos( 30 . ) ( t t t t t x ⎩ < ≤ π × 2 1 , ) 20 2 cos( 15 . t t

slide-8
SLIDE 8

To be clarified To be clarified

  • What is non-periodical signal?
  • How to remove non-periodical signal?
  • What is frequency? What is instantaneous frequency?
  • What is noise? How to eliminate noise?
  • How to identified jump and discontinuity?
  • Signal trace is finite. How to eliminate end effects
  • ccurred very often in signal processing?
slide-9
SLIDE 9

Removal of Non-Periodical Signal

Frequency based filter q y Iterative Gaussian Filter EMD as filter

slide-10
SLIDE 10

Containmanation of non-periodical Signal Containmanation of non periodical Signal

0.2 0.4 0.6 0.8 1 0 . 6 0 . 7 0 . 8 0 . 9

  • 0.8
  • 0.6
  • 0.4
  • 0.2

0 . 1 0 . 2 0 . 3 0 . 4 0 . 5 1 2 3 4 5 6 7 8 9 10

  • 1
  • 0 . 5

0 . 5 1 1 . 5 2 2 . 5 3 3 . 5 4 12 6 8 10 6 8 1 0 1 2 3 4 5 6 7 8 9 10 2 4

  • 2
  • 1

1 2 3 4 5 6 2 4

slide-11
SLIDE 11

Removal of Non-Periodical Signal Removal of Non Periodical Signal

Frequency based filter

slide-12
SLIDE 12

Monotonic Cubic Interpolation Monotonic Cubic Interpolation

  • Avoid Runge effect and end effect
  • Uniform or non-uniform over-sampling
  • Monotonic condition is slightly released
slide-13
SLIDE 13

Spectrum Analyzer

  • For better spectrum analysis, the following steps are applied before

doing FFT: U i G i filt t li i t i di l t

  • Using Gaussian filter to eliminate non-periodical part
  • Removal of signals before and after the first and the last zero

crossings via interpolation O li th i l i t i i t l ti th t th i l

  • Over sampling the signal via monotonic interpolation that the signal

length is a power of 2

  • Odd function mapping to ensure the perfect periodic condition up to

(N-1)/2-th order of discrete derivatives (N-1)/2-th order of discrete derivatives.

slide-14
SLIDE 14

Iterative Gaussian Smoothing Filter

  • Removal of Non-Periodical Signal
  • Low Pass/High Pass/Band Pass Filter
  • Phase Perseverance through any number of iteration

steps (theoretically proved) without ripple or artifact in time domain time domain

  • Derivative of signal (next version)

B k Si l R t ti ( t i )

  • Broken Signal Reconstruction (next version)
slide-15
SLIDE 15

EMD as filter EMD as filter

slide-16
SLIDE 16

What is frequency?

The need of instantaneous frequency. STFT Morlet Transform Enhanced Morlet Transform

slide-17
SLIDE 17

Frequency definition (1) Frequency definition (1)

P i d i d fi d b f

  • Period is defined as number of

events in duration of time. And frequency is the inverse of i d period.

  • The concept of period is an
  • average. So do the frequency.
  • Since there is no

instantaneous period, there is no instantaneous frequency.

  • Putting on Fourier glasses,

uncertainty principle comes into play for sinusoidal signal. y g That is, the lower the frequency to be identified, the longer the duration of signal.

slide-18
SLIDE 18

Frequency definition (2) Frequency definition (2)

  • In classical wave theory,

frequency is defined as time rate change of phase.

∂ ∇ = ϕ k

g p

  • Frequency is an continuous
  • concept. There is need to

clarify what we mean by

∂ ∂ − = ϕ ω t

clarify what we mean by frequency at a certain moment.

  • Uncertainty principle does

= ∇ + ∂ ∂ ω t k

apply.

slide-19
SLIDE 19

Short-Term Fourier Transform Short Term Fourier Transform

  • Frequency at a certain time is

a distribution obtained from Fourier transform. The short period of signal applied to the Fourier transform contains the specific moment of interest.

STFT:

specific moment of interest.

  • In time-frequency analysis,

such idea evolves as the Sh t T F i T f

+∞ ∞ − −

− = τ τ τ ω

ωτd

e t g f t F

i

) ( ) ( ) , (

Short-Term Fourier Transform (STFT).

Note g is a windowing function. For Gaussian window, the transform For Gaussian window, the transform is also known as Gabor Transform.

slide-20
SLIDE 20

Gabor transform Gabor transform

  • Same chirp signal processed

by Gabor transform. (MATLAB)

500 350 400 450 Frequency 200 250 300 50 100 150 Time 0.2 0.4 0.6 0.8 1 1.2 1.4 1.6

slide-21
SLIDE 21

Challenges in STFT Challenges in STFT

  • Catching low frequency component needs longer time.
  • Windowing is needed to avoid end effects.

=> STFT is suitable for band-limited signal like speech and sound.

slide-22
SLIDE 22

Morlet Transform Morlet Transform

  • Scale property in signal is

related to frequency property when mother wavelet is Morlet..

  • Longer duration of wavelet is

used to catch lower frequency component component.

τ τ ψ τ d s t s f s t F ) ( 1 ) ( ) , (

*

− = ∫

+∞ ∞ −∞ −

slide-23
SLIDE 23

Morlet transform Morlet transform

  • Morlet transform on a chirp

signal.

  • In catching the high frequency

In catching the high frequency spectrum, mother wavelet of short duration of time is used. The spectrum of such wavelet The spectrum of such wavelet suffers from wide span of frequency, resulting in low l ti h i th resolution, as shown in the right left plot.

slide-24
SLIDE 24

Enhanced Morlet Transform Enhanced Morlet Transform

  • By applying Gaussian

windowing in frequency domain and knowing that the crossed term of convolution between mother wavelet and i l i th f bl th signal is the cause of blur, the resolution of Morlet transform can be greatly improved by l ti th d t neglecting the crossed term.

  • The fine structure appears in

high frequency region is d b d li caused by under sampling. The chirp signal is digitized with constant sampling rate.

slide-25
SLIDE 25

Chirp signal with higher sampling rate Chirp signal with higher sampling rate

  • With higher sampling rate, the

fine structure in TF plot

  • disappeared. This is to assure

pp the fine structure pattern is caused by under sampling.

slide-26
SLIDE 26

Quadratic Chirp Signal Quadratic Chirp Signal

500 350 400 450 Frequency 200 250 300 50 100 150 Time 0.5 1 1.5 2 2.5 3 3.5

Spectrogram, MATLAB Morlet-Jeng, MATFOR Spectrogram, MATLAB

slide-27
SLIDE 27

Log unit Log unit

slide-28
SLIDE 28

Voice “MATLAB” Voice MATLAB

slide-29
SLIDE 29

Voice “MATLAB” Voice MATLAB

S p e c tr

  • g

r a m 3 3 5 2 5 3 Frequency 1 5 2 F 1 1 5 5 T im e .0 5 .1 .1 5 .2 .2 5 0 .3 .3 5 .4 .4 5

Spectrogram Morlet-Jeng Transform

slide-30
SLIDE 30

Chi-Chi (921) Earthquake Chi Chi (921) Earthquake

Morlet Transform by MATLAB Morlet-Jeng Transform

slide-31
SLIDE 31

Sound of Fan Sound of Fan

slide-32
SLIDE 32

Sound of Fan (IMF6) Sound of Fan (IMF6)

slide-33
SLIDE 33

Sound of Machine Sound of Machine

slide-34
SLIDE 34

Instantaneous Frequency and Instantaneous Frequency and Hilbert Transform

slide-35
SLIDE 35

Instantaneous Frequency Instantaneous Frequency

A ti i i l b

  • A time-series signal can be

regarded as the x-axis projection of a planar slider ti Th lid

  • motion. The slider moves

along a rotating stick with axial velocity , while the stick is spinning with an angular

) (t a &

spinning with an angular speed .

  • The corresponding y-axis

j ti h th

) (t ϕ &

projection shares the same frequency distribution as x-axis signal with 90 degree phase shift Such conjugate signal is

  • shift. Such conjugate signal is

evaluated from Hilbert Transform.

slide-36
SLIDE 36

Hilbert Transform Hilbert Transform

= τ τ τ π d t x PV t y ) ( 1 ) (

− τ π t

) (

) ( ) ( ) ( ) (

t i

e t a t iy t x t z

ϕ

= + =

d e S t z

iwt

= ) ( 2 2 ) ( ϖ ϖ π

) ( ) ( ) ( ) ( y

) (

2 2

y x t a + =

dt t S where

iwt

∞ −

) ( 1 ) (

) ( ) ( tan ) (

1

t x t y t

= ϕ

dt e t x S

iwt

∫ ∞

= ) ( 2 ) ( π ϖ

∂ − = ϕ ω

Instantaneous frequency:

t ∂ ω

Instantaneous frequency:

slide-37
SLIDE 37

Hilbert transform of triangular signal Hilbert transform of triangular signal

Phase diagram Hilbert spectrum

slide-38
SLIDE 38

Drawback of Hilbert Transform Drawback of Hilbert Transform

  • Negative instantaneous

frequency occurs for signal not having equal number of g q extreme and zero-crossing points.

  • Too much DC offset also
  • Too much DC offset also

results in negative frequency.

slide-39
SLIDE 39

Intrinsic Mode Function (IMF) Intrinsic Mode Function (IMF)

  • Definition: “Any function having the same numbers of

zero-crossings and extrema, and also having symmetric envelopes defined by local maxima and minima envelopes defined by local maxima and minima respectively is defined as an Intrinsic Mode Function (IMF). “ ~ Norden E. Huang (IMF). Norden E. Huang

  • An IMF enjoys good properties of Hilbert transform.
  • A signal can be regarded as composition of several IMFs.

A signal can be regarded as composition of several IMFs. IMF can be obtained through a process called Empirical Mode Decomposition. (ref. Dr. Hsieh’s presentation file)

slide-40
SLIDE 40

The advantages of using HHT The advantages of using HHT

f

  • Removal of non-periodical part
  • Separation of carrier frequency: even though the

spectrum is close Such function can be hardly achieved spectrum is close. Such function can be hardly achieved by frequency based filter.

  • Nonlinear effect might introduce frequency harmonics in

g q y spectrum domain. Through HHT, the nonlinear effect can be caught by EMD/IMF. The marginal frequency therefore enjoys shorter band width therefore enjoys shorter band width.

  • Average frequency in each IMF represents intrinsic

signature of physics behind the data. g p y

  • Signal can be regarded as generated from rotors of

different rotating speeds (analytical signals).

slide-41
SLIDE 41

Time-Frequency Analysis Comparison Time Frequency Analysis Comparison

Fourier Transform STFT Morlet / Enhanced Morlet Hilbert Transform HHT Instantaneo us frequency n/a distribution distribution Single value Discrete values Frequency change with time no yes yes yes yes Frequency resolution good

  • k
  • k/good

good good Adaptive no no no n/a yes base Handling non-linear n/a no no yes yes effect

slide-42
SLIDE 42

Geo-Science Applications

Tidal wave Tsunami

slide-43
SLIDE 43

Tidal waves

Time unit: day Recorded period: 2003/11/01:00 to 2003/12/31:23 Sampling: every 6 min.

slide-44
SLIDE 44

Tide signal (2 years) Tide signal (2 years)

slide-45
SLIDE 45
slide-46
SLIDE 46

Tide signal - Spectrum (2 years) Tide signal Spectrum (2 years)

slide-47
SLIDE 47

Tsunami

Time unit: day Recorded period: 2003/11/01:00 to 2003/12/31:23

slide-48
SLIDE 48

Low frequency analysis Low frequency analysis

slide-49
SLIDE 49

Spectrum Spectrum

slide-50
SLIDE 50
  • Freq. : 6 to 120 (1/day)
  • Freq. : 6 to 120 (1/day)
slide-51
SLIDE 51
  • Freq. : 6 to 120 (1/day)
  • Freq. : 6 to 120 (1/day)
slide-52
SLIDE 52

Apply Gaussian filter (fH=6, fL=fH/1.5) Apply Gaussian filter (fH 6, fL fH/1.5)

slide-53
SLIDE 53
slide-54
SLIDE 54

Original vs. filtered signals Original vs. filtered signals

slide-55
SLIDE 55

Time-Frequency plot of filtered signal Time Frequency plot of filtered signal

slide-56
SLIDE 56

Earth Quake Signal

slide-57
SLIDE 57

Chi-Chi (921) Earthquake Chi Chi (921) Earthquake

slide-58
SLIDE 58

Earthquake (YHNB V) Earthquake (YHNB_V)

slide-59
SLIDE 59

Uncertainty Principle (nf=100) Uncertainty Principle (nf 100)

slide-60
SLIDE 60

Uncertainty Principle (nf=50) Uncertainty Principle (nf 50)

slide-61
SLIDE 61

Uncertainty Principle (nf=30) Uncertainty Principle (nf 30)

slide-62
SLIDE 62

Thank you!