Introduction to time-frequency analysis Centre for Doctoral Training in Healthcare Innovation

Similar documents
Signal interactions Cross correlation, cross spectral coupling and significance testing Centre for Doctoral Training in Healthcare Innovation

Up/down-sampling & interpolation Centre for Doctoral Training in Healthcare Innovation

Ch. 15 Wavelet-Based Compression

Wavelet Transform. Figure 1: Non stationary signal f(t) = sin(100 t 2 ).

Digital Image Processing Lectures 15 & 16

ECE472/572 - Lecture 13. Roadmap. Questions. Wavelets and Multiresolution Processing 11/15/11

Module 7:Data Representation Lecture 35: Wavelets. The Lecture Contains: Wavelets. Discrete Wavelet Transform (DWT) Haar wavelets: Example

Multiresolution Analysis

Introduction to Biomedical Engineering

Sparse linear models

Digital Speech Processing Lecture 10. Short-Time Fourier Analysis Methods - Filter Bank Design

INTRODUCTION TO. Adapted from CS474/674 Prof. George Bebis Department of Computer Science & Engineering University of Nevada (UNR)

Timbral, Scale, Pitch modifications

EE123 Digital Signal Processing

1 Introduction to Wavelet Analysis

Lecture Notes 5: Multiresolution Analysis

Introduction to Discrete-Time Wavelet Transform

Lecture 22: Reconstruction and Admissibility

L6: Short-time Fourier analysis and synthesis

Problem with Fourier. Wavelets: a preview. Fourier Gabor Wavelet. Gabor s proposal. in the transform domain. Sinusoid with a small discontinuity

Wavelets: a preview. February 6, 2003 Acknowledgements: Material compiled from the MATLAB Wavelet Toolbox UG.

2D Wavelets. Hints on advanced Concepts

Multiresolution image processing

Wavelets and multiresolution representations. Time meets frequency

Digital Image Processing

EE123 Digital Signal Processing

Lecture Wigner-Ville Distributions

Course content (will be adapted to the background knowledge of the class):

Wavelets in Pattern Recognition

Subband Coding and Wavelets. National Chiao Tung University Chun-Jen Tsai 12/04/2014

Multiresolution schemes

Comparative study of different techniques for Time-Frequency Analysis

Multiresolution schemes

Elec4621 Advanced Digital Signal Processing Chapter 11: Time-Frequency Analysis

A Comparison of HRV Techniques: The Lomb Periodogram versus The Smoothed Pseudo Wigner-Ville Distribution

Wavelets and Filter Banks Course Notes

System Modeling and Identification CHBE 702 Korea University Prof. Dae Ryook Yang

Introduction to Wavelet. Based on A. Mukherjee s lecture notes

Using frequency domain techniques with US real GNP data: A Tour D Horizon

WAVELET TRANSFORMS IN TIME SERIES ANALYSIS

Pavement Roughness Analysis Using Wavelet Theory

Order Tracking Analysis

Medical Image Processing Using Transforms

Symmetric Wavelet Tight Frames with Two Generators

Wavelet Analysis for Nanoscopic TEM Biomedical Images with Effective Weiner Filter

The Illustrated Wavelet Transform Handbook. Introductory Theory and Applications in Science, Engineering, Medicine and Finance.

Scattering.m Documentation

Multi-Scale/Multi-Resolution: Wavelet Transform

Stochastic Structural Dynamics Prof. Dr. C. S. Manohar Department of Civil Engineering Indian Institute of Science, Bangalore

Analytic discrete cosine harmonic wavelet transform(adchwt) and its application to signal/image denoising

( nonlinear constraints)

Tutorial on Blind Source Separation and Independent Component Analysis

From Fourier Series to Analysis of Non-stationary Signals - X

HEATED WIND PARTICLE S BEHAVIOURAL STUDY BY THE CONTINUOUS WAVELET TRANSFORM AS WELL AS THE FRACTAL ANALYSIS

Communications and Signal Processing Spring 2017 MSE Exam

Analyzing the Effect of Moving Resonance on Seismic Response of Structures Using Wavelet Transforms

2. SPECTRAL ANALYSIS APPLIED TO STOCHASTIC PROCESSES

Introduction to Mathematical Programming

1. Calculation of the DFT

If we want to analyze experimental or simulated data we might encounter the following tasks:

Which wavelet bases are the best for image denoising?

Lecture 17: variance in a band = log(s xx (f)) df (2) If we want to plot something that is more directly representative of variance, we can try this:

LOCALIZED analyses in one dimension(al) (1-D) have

L29: Fourier analysis

Filtering in Time-Frequency Domain using STFrFT

Introduction to Signal Processing

Computational Harmonic Analysis (Wavelet Tutorial) Part II

CCNY. BME I5100: Biomedical Signal Processing. Stochastic Processes. Lucas C. Parra Biomedical Engineering Department City College of New York

Time-Frequency Analysis of Radar Signals

Extraction of Fetal ECG from the Composite Abdominal Signal

Introduction to time-frequency analysis. From linear to energy-based representations

Module 9: Stationary Processes

On wavelet techniques in atmospheric sciences.

EEG- Signal Processing

Digital Image Processing Lectures 13 & 14

MULTIRATE DIGITAL SIGNAL PROCESSING

An Algorithm of Wavelets for the Pretreatment of EMG Biomedical Signals

TIME-FREQUENCY ANALYSIS EE3528 REPORT. N.Krishnamurthy. Department of ECE University of Pittsburgh Pittsburgh, PA 15261

Proc. of NCC 2010, Chennai, India

Complex Wavelet Transform: application to denoising

HST-582J/6.555J/16.456J Biomedical Signal and Image Processing Spring Laboratory Project 3 Blind Source Separation: Fetal & Maternal ECG

Wavelets and Affine Distributions A Time-Frequency Perspective

Introduction to Wavelets and Wavelet Transforms

Wavelets and Signal Processing

An Introduction to Wavelets and some Applications

OSE801 Engineering System Identification. Lecture 09: Computing Impulse and Frequency Response Functions

TIME SERIES ANALYSIS

Analysis Of The Second Cardiac Sound Using The Fast Fourier And The Continuous Wavelet Transforms

CONTROL SYSTEMS, ROBOTICS, AND AUTOMATION Vol. VI - System Identification Using Wavelets - Daniel Coca and Stephen A. Billings

ABSTRACT. Design of vibration inspired bi-orthogonal wavelets for signal analysis. Quan Phan

A comprehensive model using modified Zeeman model for generating ECG signals

Problem Sheet 1 Examples of Random Processes

Radar Signal Intra-Pulse Feature Extraction Based on Improved Wavelet Transform Algorithm

HST.582J/6.555J/16.456J

HST.582J / 6.555J / J Biomedical Signal and Image Processing Spring 2007

Gaussian Processes for Audio Feature Extraction

2A1H Time-Frequency Analysis II

Signal Analysis. Multi resolution Analysis (II)

446 SCIENCE IN CHINA (Series F) Vol. 46 introduced in refs. [6, ]. Based on this inequality, we add normalization condition, symmetric conditions and

Layer thickness estimation from the frequency spectrum of seismic reflection data

Transcription:

Introduction to time-frequency analysis Centre for Doctoral Training in Healthcare Innovation Dr. Gari D. Clifford, University Lecturer & Director, Centre for Doctoral Training in Healthcare Innovation, Institute of Biomedical Engineering, University of Oxford

Physiological signals are dynamic; they exhibit time-varying statistics in both the time and frequency domain. weak-sense (or wide-sense stationarity or covariance stationarity) - mean and variance do not change significantly over a given window Strong/strictly stationary process - joint probability distribution does not change significantly when shifted in time or space. Higher order moments don t change. Fourier analysis assumes weak stationarity What if the signal is not stationary? Physiological signals also exhibit activity that spans a range of time scales: E.g. The ECG signal contain three components with different time-scales: atrial depolarization represented by the P wave has a duration of 0.1 to 0.15 seconds; ventricular depolarization represented by the QRS complex 0.1 s; ventricular repolarization - T-wave 0.2 to 0.4 seconds.

The inter-beat timing (average=heart rate), changes over much longer time scales; from minutes to hours, to days. Short term variations (1-10 s of s) - changes in the sympathetic (fight-andflight) and parasympathetic (rest-and-digest) activity of the central nervous system acting on the heart. Longer term variations can be partially attributed to changes in activity and intrinsic circadian controls (that lead to sleep for example).

Parametric: Runs test (Bendat and Piersol 1986): Divide the series into time intervals of equal lengths. Compute a mean value (or other, see below) for each interval. Count the number of runs of mean values above and below the median value of the series. Compare the number of counts found to known probabilities of runs for random data and compare to look-up table. Non-parametric Sample auto-correlation function will neither cut off nor die down quickly, but rather will die down extremely slowly. (Bowerman and O'Connell 1979)

Remove the mean or slope Remove a more complex shape parabolic fitting Dangerous but sometimes works! a(1)=rand(1,1); for(i=1:1000); a(i+1)=randn(1,1)+a(i); end b = detrend(a,'linear',[10:10:1000]);

Sum of sinusoids Up-Chirp n=1 (linear)

Assumes stationarity! A sum of const frequency sinusoids So what can we do? Make shorter windows?

Short Term Fourier Transform

spectrogram(chirp,window,noverlap,[0:.1:1.2]',fs) n=1 (linear) n=2 (quadratic)

[S,F,T,P]=spectrogram(data,WINDOW,NOVERLAP,Fvect,Fs);

[S,F,T,P]=spectrogram(data,WINDOW,NOVERLAP,Fvect,Fs);

waterfall(p )

A short analysis window results in good temporal resolution and poor spectral resolution. As the analysis window length increases its frequency resolution increases and its temporal resolution decreases.

The window w(t) determines the spectral and temporal resolution of the Short-Time Fourier Transform. Temporal resolution refers to the smallest time-separation below which two temporal events cannot be distinguished on the Spectrogram. Similarly, spectral resolution refers to the smallest frequency-separation below which two spectral events cannot be distinguished on the Spectrogram. A long window w(t) results in poor temporal resolution and good frequency resolution. Conversely, a short window w(t) results in good temporal resolution and poor spectral resolution. Time and frequency resolution can only be traded for one another, they cannot both be improved simultaneously.

The STFT limits our knowledge of signal activity to a two-dimensional cell in the time-frequency plane. The dimensions of the cell can be changed to favor either spectral or temporal resolution. The same temporal and spectral resolution applies to low and high frequency activity.

Compare high temporal & high frequency resolution

Slow wave (1/4s) with periodic (~100 ms) spike With STFT you can either resolve the location of the spikes or their frequency (4&10Hz)

Is there a way to have good temporal and frequency resolution?

c.f. FT: A wavelet ψ (t) is shifted by a time τ and dilated or contracted by a factor a (the scale) prior to computing its correlation with the signal x(t). The correlation between the signal and the wavelet is defined as the integral of their product. The CWT maps x(t) into a bivariate function C(a,τ) that can be used to determine the similarity between x(t) and a wavelet scaled by a at given time. The correlation is localized in time, it is computed over an interval beginning at t = τ and ending t = τ + L where L is the duration of the wavelet. A time plot of the correlation C(a,τ) between the signal and the scaled wavelets is called a Scalogram. (Compare with spectrogram scale is the inverse of frequency)

Wavelet ψ (t) is shifted by a time τ and dilated or contracted by a factor a (the scale) prior to computing its correlation with the signal x(t). Coefficients of C(a,τ) represent the strength of the correlation at each scale at each point in time.

BUT - CWT automatically adjusts its time and frequency resolution depending on the scale of activity of interest by dilating or contracting the analysis window

Sinusoid With Frequency Breakdown STFT CWT

CWT of Sinusoid With Linearly Increasing Frequency (n=1)

The continuous wavelet transform (CWT) is a generalization of the STFT Allows for the analysis of non-stationary signals at multiple scales. Similar to the STFT, the CWT makes use of an analysis window to extract signal segments; Window is called a wavelet (or mother wavelet). Unlike the STFT, the analysis window or wavelet is not only convolved (translated), but dilated and contracted depending on the scale of activity under study. Wavelet dilation increases the CWT's sensitivity to long time-scale events Wavelet contraction increases its sensitivity to short time-scale events.

In Matlab, type waveinfo('bior') etc

Similar to Fourier basis functions Dilations and translations of the Mother function or analyzing wavelet define our wavelet basis These basis functions are orthogonal the correlation between different functions is zero Therefore we assume independence between the components They provide redundancy and therefore error correction (1D 2D) They provide compact support function is zero wherever it is not defined, vanishing at When zero distortion (e.g. clipping) and anti-alias conditions are satisfied, perfect reconstruction is possible Basis functions are restricted in frequency as we will now see when we consider the discrete wavelet transform Aside we do not require windowing: why?

The DWT can be viewed as a Filterbank STFT is an M-channel filterbank M parallel filters all with equal bandwidths but different center frequencies

This filterbank architecture can be used to compute the coefficients of the continuous wavelet transform The coefficients are only computed over the dyadic scale (following a geometric sequence of ratio 2) Split into details and approximations at each stage H = filter transfer function a = approximations (not the scale here!) d = details

[lpdecon; hpdecon; lprecon; hprecon] = wfilters( bior4.4 ); We can reconstruct original signal form all details and approximations

Four details and one approximation. Approximation is low freq trend

ECG with mains noise ECG without mains noise With FIR filtering (& ringing) After wavelet filtering

Wavelet ridges: Wavelet modulus maxima:

Feature detection (ECG QT interval, spikes in EEG) Denoising Compression Trend extraction Further reading: Wavelet transforms and the ECG: a review Paul S Addison 2005 Physiol. Meas. 26 R155