Top Banner
1 1 © Copyright 2007 CJS Labs – San Francisco, CA USA – www.cjs-labs.com Email: [email protected] The Hilbert Transform David Hilbert ABSTRACT: In this presentation, the basic theoretical background of the Hilbert Transform is introduced. Using this transform, normal real-valued time domain functions are made complex. This yields two useful properties - the Envelope and the Instantaneous Frequency. Examples of the practical use of these functions are demonstrated, with emphasis on acoustical applications.
23

The Hilbert Transform - Cjs Labs

Feb 03, 2022

Download

Documents

dariahiddleston
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: The Hilbert Transform - Cjs Labs

1

1© Copyright 2007 CJS Labs – San Francisco, CA USA – www.cjs-labs.com Email: [email protected]

The Hilbert Transform

David Hilbert

ABSTRACT: In this presentation, the basic theoretical background of the Hilbert Transform is introduced. Using this transform, normal real-valued time domain functions are made complex. This yields two useful properties - the Envelope and the Instantaneous Frequency. Examples of the practical use of these functions are demonstrated, with emphasis on acoustical applications.

Page 2: The Hilbert Transform - Cjs Labs

2

2© Copyright 2007 CJS Labs – San Francisco, CA USA – www.cjs-labs.com Email: [email protected]

Overview• Definition

– Time Domain– Frequency Domain

• Analytic Signals– Simple Example

• Applications• MatLab Usage

– Example: Muting Time• Conclusion

Overview of topics covered.

Page 3: The Hilbert Transform - Cjs Labs

3

3© Copyright 2007 CJS Labs – San Francisco, CA USA – www.cjs-labs.com Email: [email protected]

Hilbert TransformWhat is it?

• Time Domain:λ/4 shift for all frequencies

• Frequency Domain:-90° phase shift for all spectral components

The Hilbert Transform does not change domains. A Time Domain Function remains in the Time Domain and a Frequency Domain Function remains in the Frequency Domain. The effect is similar to an integration.

Page 4: The Hilbert Transform - Cjs Labs

6

6© Copyright 2007 CJS Labs – San Francisco, CA USA – www.cjs-labs.com Email: [email protected]

Hilbert Transform

tta

dt

atataH

1)(1

1)(1)(~)]([

∗=

−== ∫

∞−

π

ττ

τπ

The Hilbert Transform in the Time Domain can be written as a convolution.

Page 5: The Hilbert Transform - Cjs Labs

7

7© Copyright 2007 CJS Labs – San Francisco, CA USA – www.cjs-labs.com Email: [email protected]

Even & Odd Functions

Even

Odd

A causal time signal shown as a sum of an even signal and an odd signal

A few tools to understand the Hilbert Transform with a minimum of mathematics.

Page 6: The Hilbert Transform - Cjs Labs

8

8© Copyright 2007 CJS Labs – San Francisco, CA USA – www.cjs-labs.com Email: [email protected]

Fourier Transform Relationships

R Odd, X EvenImaginary

R Even, X OddReal

Imaginary and OddReal and Odd

Real and EvenReal and Even

a(t) F A(f) = R(f) + jX(f)

From the Symmetry Property of the Fourier Transform: F{F{a(t)}} = a(-t).

Page 7: The Hilbert Transform - Cjs Labs

9

9© Copyright 2007 CJS Labs – San Francisco, CA USA – www.cjs-labs.com Email: [email protected]

“Sign” Function

Multiplication by sgn(x) changes an even function to odd and vice-versa

The Fourier Transform of the sgn(x) function is 1/X.

Page 8: The Hilbert Transform - Cjs Labs

10

10© Copyright 2007 CJS Labs – San Francisco, CA USA – www.cjs-labs.com Email: [email protected]

Frequency Domain

- 90° (-j) for positive frequencies+90° (j) for negative frequencies

)sgn()()](~[ fjfAtaF ⋅−≡

Using these tools, we can write the Hilbert Transform in the Frequency Domain as shown.

Page 9: The Hilbert Transform - Cjs Labs

11

11© Copyright 2007 CJS Labs – San Francisco, CA USA – www.cjs-labs.com Email: [email protected]

Effect of Hilbert Transform

Effect of the Hilbert Transform in the Frequency Domain.

Page 10: The Hilbert Transform - Cjs Labs

12

12© Copyright 2007 CJS Labs – San Francisco, CA USA – www.cjs-labs.com Email: [email protected]

Hilbert Transform of a Sinusoid

Successive Hilbert Transforms of a sinusoid.

Page 11: The Hilbert Transform - Cjs Labs

13

13© Copyright 2007 CJS Labs – San Francisco, CA USA – www.cjs-labs.com Email: [email protected]

Analytic Signal

)t(je)t(a

)t(a~j)t(a)t(a

θ⋅=

+≡∇

Definition of an Analytic Signal and the Envelope Function. The spectrum of the Analytic signal is is one-sided (positive only) and positive valued.

Page 12: The Hilbert Transform - Cjs Labs

14

14© Copyright 2007 CJS Labs – San Francisco, CA USA – www.cjs-labs.com Email: [email protected]

Analytic Signal - Descriptors

)t(a~)t(a)t(a 22 +=∇

)t(a)t(a~tan)t( 1−=θ

Magnitude

td)t(d

21)t(fi

θπ

=

Instantaneous Phase

Instantaneous Frequency

Additional signal descriptors available from the Hilbert Transform and Analytic Signal.

Page 13: The Hilbert Transform - Cjs Labs

15

15© Copyright 2007 CJS Labs – San Francisco, CA USA – www.cjs-labs.com Email: [email protected]

Analytic Signal - Example

0i f)t(f =

tf2)t( 0πθ =

1)t(a =∇

tf2cos)t(a 0π=

tf2sin)t(a~ 0π=

Magnitude

Real

Imaginary

Phase

InstantaneousFrequency

Example.

Page 14: The Hilbert Transform - Cjs Labs

16

16© Copyright 2007 CJS Labs – San Francisco, CA USA – www.cjs-labs.com Email: [email protected]

Analytic Signal

Sinusoidal Analytic Signal shown as a “Heyser Spiral”. The Nyquist Plot is the projection along the time axis. The Real and Imaginary parts are the projections along the real and imaginary axes, respectively.

Page 15: The Hilbert Transform - Cjs Labs

17

17© Copyright 2007 CJS Labs – San Francisco, CA USA – www.cjs-labs.com Email: [email protected]

Time-Frequency Relationships

Magnitude Real

Phase Imaginary

H F

MagnitudeReal

PhaseImaginary

H †

Time Response h(t) Frequency Response H(f)

InstantaneousFrequency

Group Delaydtd df

d

Time & Frequency relationships of the various descriptors for a causal two-port system response function.

Page 16: The Hilbert Transform - Cjs Labs

18

18© Copyright 2007 CJS Labs – San Francisco, CA USA – www.cjs-labs.com Email: [email protected]

Envelope Extraction

Application of the Hilbert Transform to Envelope extraction.

Page 17: The Hilbert Transform - Cjs Labs

19

19© Copyright 2007 CJS Labs – San Francisco, CA USA – www.cjs-labs.com Email: [email protected]

Decay Time Estimation (τ ,T60)Exponentially Decaying SinusoidMagnitude of Analytic SignalLog Magnitude Scale

Application of the Hilbert Transform to Envelope extraction and decay time estimation, RT60 or RC LC circuit time constant, etc. The positive-valued magnitude function can be graphed on a log amplitude scale, enabling a far wider dynamic range than for a real-valued time signal.

Page 18: The Hilbert Transform - Cjs Labs

20

20© Copyright 2007 CJS Labs – San Francisco, CA USA – www.cjs-labs.com Email: [email protected]

Propagation Delay / Signal Arrival Estimation

Real Time SignalHilbert Transform of SignalMagnitude of Analytic Signal - Peak indicates arrival time

Application of the Hilbert Transform to Envelope to acoustic signal propagation time estimation.

Page 19: The Hilbert Transform - Cjs Labs

21

21© Copyright 2007 CJS Labs – San Francisco, CA USA – www.cjs-labs.com Email: [email protected]

Practical Example

d = τ ·cτ = d/c

Source

Microphone

c = 344 m/sd = 1 mτ = 2.92 ms

Example: Loudspeaker at 1 metre.

Page 20: The Hilbert Transform - Cjs Labs

22

22© Copyright 2007 CJS Labs – San Francisco, CA USA – www.cjs-labs.com Email: [email protected]

Loudspeaker Measurement

“Energy-Time Curve” (ETC)

Resulting response without windowing, shown as magnitude in both the Time and Frequency Domains.

Page 21: The Hilbert Transform - Cjs Labs

23

23© Copyright 2007 CJS Labs – San Francisco, CA USA – www.cjs-labs.com Email: [email protected]

All-Pass / Minimum Phase System Separation

))f()f((jPassAllmin

PassAllmine)f(A)f(A)f(H φφ +⋅⋅=

[ ]min1

min )(ln)( fAHf -=φ

))f()f((jmin

PassAllmine)f(A φφ +⋅=

For a minimum Phase system, it can be shown that the phase is not independent of the magnitude, but an be derived using the Hilbert Transform as shown. The All-Pass function has poles and zeroes that are negative conjugates of one-another, so the magnitude is unity. The phase of the All-Pass is a pure delay.

Page 22: The Hilbert Transform - Cjs Labs

24

24© Copyright 2007 CJS Labs – San Francisco, CA USA – www.cjs-labs.com Email: [email protected]

MatLab Usage

Y = HILBERT(X) computes the so-called discrete-time analytic signal

Y = Re { X } + j ·

where is the Hilbert transform of the vector Re { X }.

X~

X~

Example: Mute Analysis

The HILBERT function in MATLAB.

Page 23: The Hilbert Transform - Cjs Labs

25

25© Copyright 2007 CJS Labs – San Francisco, CA USA – www.cjs-labs.com Email: [email protected]

Use of the Hilbert Transform:• Allows definition of the analytic signal from a

real-valued time signal:– The Real Part is the original time signal– The Imaginary Part is the Hilbert Transform

• This enables calculation of the envelope(magnitude) of a time signal

• Applications:– Envelope Extraction / Magnitude Estimation– Decay Time Estimation: RT60, τ– Propagation Delay & Signal Arrival Measurements– All-Pass / Minimum Phase System Separation

Conclusion

Conclusion.