Time-Frequency analysis of biophysical time series. Courtesy of Arnaud Delorme

Similar documents
Time-Frequency analysis of biophysical time series. Arnaud Delorme CERCO, CNRS, France & SCCN, UCSD, La Jolla, USA

Time-Frequency analysis of biophysical time series

(Time )Frequency Analysis of EEG Waveforms

Discrete Fourier Transform (DFT)

Signal segmentation and waveform characterization. Biosignal processing, S Autumn 2012

BCI for Comparing Eyes Activities Measured from Temporal and Occipital Lobes

Biomedical Signals. Signals and Images in Medicine Dr Nabeel Anwar

Beyond Blind Averaging Analyzing Event-Related Brain Dynamics

Topic 2. Signal Processing Review. (Some slides are adapted from Bryan Pardo s course slides on Machine Perception of Music)

Integrating Human and Computer Vision with EEG Toward the Control of a Prosthetic Arm Eugene Lavely, Geoffrey Meltzner, Rick Thompson

DCSP-10: DFT and PSD. Jianfeng Feng. Department of Computer Science Warwick Univ., UK

Fourier Signal Analysis

SAMPLING THEORY. Representing continuous signals with discrete numbers

Orthogonal frequency division multiplexing (OFDM)

Time Series/Data Processing and Analysis (MATH 587/GEOP 505)

Chapter 5 Window Functions. periodic with a period of N (number of samples). This is observed in table (3.1).

Fourier Methods of Spectral Estimation

Outline. Introduction to Biosignal Processing. Overview of Signals. Measurement Systems. -Filtering -Acquisition Systems (Quantisation and Sampling)

Notes on Fourier transforms

EE 464 Short-Time Fourier Transform Fall and Spectrogram. Many signals of importance have spectral content that

Linguistic Phonetics. Spectral Analysis

Wavelets and wavelet convolution and brain music. Dr. Frederike Petzschner Translational Neuromodeling Unit

Post-processing using Matlab (Advanced)!

Topic 6. The Digital Fourier Transform. (Based, in part, on The Scientist and Engineer's Guide to Digital Signal Processing by Steven Smith)

Chapter 3 Data Transmission COSC 3213 Summer 2003

DISCRETE FOURIER TRANSFORM AND FILTER DESIGN

Practical issue: Group definition. TSTE17 System Design, CDIO. Quadrature Amplitude Modulation (QAM) Components of a digital communication system

Data Acquisition Systems. Signal DAQ System The Answer?

Lecture notes on Waves/Spectra Noise, Correlations and.

6.02 Practice Problems: Modulation & Demodulation

Basic 2-channel EEG Training Protocols

Emotiv EPOC 3D Brain Activity Map Premium Version User Manual V1.0

ECEn 487 Digital Signal Processing Laboratory. Lab 3 FFT-based Spectrum Analyzer

Fourier and Wavelets

Discrete Fourier Transform, DFT Input: N time samples

Differential Signal and Common Mode Signal in Time Domain

2015 HBM ncode Products User Group Meeting

Neurophysiology. The action potential. Why should we care? AP is the elemental until of nervous system communication

21/01/2014. Fundamentals of the analysis of neuronal oscillations. Separating sources

Design of FIR Filters

Wireless Communication Systems Laboratory Lab#1: An introduction to basic digital baseband communication through MATLAB simulation Objective

EE 215 Semester Project SPECTRAL ANALYSIS USING FOURIER TRANSFORM

Lab 3 FFT based Spectrum Analyzer

The Periodogram. Use identity sin(θ) = (e iθ e iθ )/(2i) and formulas for geometric sums to compute mean.

DFT: Discrete Fourier Transform & Linear Signal Processing

DCSP-3: Minimal Length Coding. Jianfeng Feng

DSP First. Laboratory Exercise #11. Extracting Frequencies of Musical Tones

Spectrum Analysis: The FFT Display

SINUSOIDAL MODELING. EE6641 Analysis and Synthesis of Audio Signals. Yi-Wen Liu Nov 3, 2015

Experiment 1 Introduction to MATLAB and Simulink

Laboratory Assignment 4. Fourier Sound Synthesis

Frequency Domain Analysis

Removal of Line Noise Component from EEG Signal

The Fundamentals of FFT-Based Signal Analysis and Measurement Michael Cerna and Audrey F. Harvey

Introduction to Wavelet Transform. Chapter 7 Instructor: Hossein Pourghassem

JOURNAL OF OBJECT TECHNOLOGY

Reading: Johnson Ch , Ch.5.5 (today); Liljencrants & Lindblom; Stevens (Tues) reminder: no class on Thursday.

FFT Analyzer. Gianfranco Miele, Ph.D

ECEGR Lab #8: Introduction to Simulink

6 Sampling. Sampling. The principles of sampling, especially the benefits of coherent sampling

ESE 150 Lab 04: The Discrete Fourier Transform (DFT)

CS 591 S1 Midterm Exam Solution

FFT 1 /n octave analysis wavelet

ME scope Application Note 01 The FFT, Leakage, and Windowing

Basic Signals and Systems

System Identification & Parameter Estimation

MASSACHUSETTS INSTITUTE OF TECHNOLOGY /6.071 Introduction to Electronics, Signals and Measurement Spring 2006

Frequency Division Multiplexing Spring 2011 Lecture #14. Sinusoids and LTI Systems. Periodic Sequences. x[n] = x[n + N]

1. In the command window, type "help conv" and press [enter]. Read the information displayed.

X Space X Time X Condition

Problem Set 1 (Solutions are due Mon )

G(f ) = g(t) dt. e i2πft. = cos(2πf t) + i sin(2πf t)

Digital Video and Audio Processing. Winter term 2002/ 2003 Computer-based exercises

PYKC 13 Feb 2017 EA2.3 Electronics 2 Lecture 8-1

Short Time Fourier Transform *

ESE 150 Lab 04: The Discrete Fourier Transform (DFT)

Lab 1B LabVIEW Filter Signal

THE CITADEL THE MILITARY COLLEGE OF SOUTH CAROLINA. Department of Electrical and Computer Engineering. ELEC 423 Digital Signal Processing

OFDM TX Shaping for 802.3bn Leo Montreuil

Machine Learning for Signal Processing. Sounds. Class Sep Instructor: Bhiksha Raj. 13 Sep /

PART II Practical problems in the spectral analysis of speech signals

Introduction to Computational Neuroscience

The Discrete Fourier Transform. Claudia Feregrino-Uribe, Alicia Morales-Reyes Original material: Dr. René Cumplido

Principles of Communications ECS 332

THE HONG KONG POLYTECHNIC UNIVERSITY Department of Electronic and Information Engineering. EIE2106 Signal and System Analysis Lab 2 Fourier series

Trigonometric functions and sound

Acoustics, signals & systems for audiology. Week 4. Signals through Systems

Digital Signal Processing +

Computing TIE Crest Factors for Telecom Applications

Use Matlab Function pwelch to Find Power Spectral Density or Do It Yourself

ELT COMMUNICATION THEORY

Communication Engineering Prof. Surendra Prasad Department of Electrical Engineering Indian Institute of Technology, Delhi

ENGINEERING FOR RURAL DEVELOPMENT Jelgava, EDUCATION METHODS OF ANALOGUE TO DIGITAL CONVERTERS TESTING AT FE CULS

Biometric: EEG brainwaves

PSYC696B: Analyzing Neural Time-series Data

Signal Processing First Lab 20: Extracting Frequencies of Musical Tones

CHAPTER. delta-sigma modulators 1.0

Lecture 3 Complex Exponential Signals

Representing Images and Sounds

Rhythmic Similarity -- a quick paper review. Presented by: Shi Yong March 15, 2007 Music Technology, McGill University

Transcription:

Time-Frequency analysis of biophysical time series Courtesy of Arnaud Delorme 1

2

Why Frequency-domain Analysis For many signals, the signal's frequency content is of great importance. Beta Alpha Theta Delta Low Delta 3

EEG Bands (Hz) Distribution Subjective feeling Associated tasks & behaviors Physiologi cal correlates Delta 0.1-3 Distribution: generally broad or diffused deep, dreamless sleep, non-rem sleep, unconscious lethargic, not moving, not attentive not moving, low-level of arousal Theta 4-8 usually regional, may involve many lobes intuitive, creative, recall, fantasy, imagery, creative, dreamlike, drowsy creative, intuitive; distracted, unfocused healing, integration of mind/body Alpha 8-12 regional, usually involves entire lobe relaxed, not agitated, but not drowsy meditation, no action relaxed, healing Beta 12-30 localized alertness, agitation mental activity, e.g. math alert, active Gamma >30 very localized Focused arousal high-level information processing, "binding" information -rich task processing 4

Frequency-domain Analysis of the EEG Joseph Fourier (1768-1830) Any complex time series can be broken down into a series of superimposed sinusoids with different frequencies. Summation of the signals 5

6 Fourier Analysis Discrete Fourier-Transformation 傅利葉轉換 (O(N²)): ( ) 1 0,1,.., ) ( ] [ 1 0,1,.., ] [ 1 ) ( 1 0 ) / (2 1 0 / 2 = = = = = = N n e k X n x N k e n x N k X N k n N ik N n n N ik π π Fast Fourier Transform (FFT, O(Nlog 2 N), Cooley and Tukey (1965) = = ift ift e f H t h dt e t h f H 2π 2π ) ( ) ( ; ) ( ) ( Fourier-Transformation:

function [a,b] = dft (y) % DFT - The Discrete Fourier Transform % [a, b] = DFT (y) % a, b are the cosine and sine components n = length (y); t = 2*pi*(0:n-1)/n; f = 2.0 / n; for j = 0:n2 cs = cos (j * t); ss = sin (j * t); a(j+1) = f * (cs * y); b(j+1) = f * (ss * y); end % boundaries n2 = floor (n / 2); a(1) = 0.5 * a(1); a(n2+1) = 0.5 * a(n2+1); b(1) = 0.0; b(n2+1) = 0.0; Loop on frequency Cosine component Sine component Multiply with signal 7

Spectral phase and amplitude Imaginary Real + - Imag. Real F k (f,t) 8

Spectral phase and amplitude Imaginary Real Imag. Real F k (f,t) 9

Pwelch method for computing spectrum Squared amplitude Average 10

Spectral power 0 Hz 10 Hz 20 Hz 30 Hz 40 Hz 50 Hz Squared vector length Power log(μv 2 /Hz) Frequency (Hz) 11

Overlap 50% Squared amplitude Average 12

Zero padding 0 13

Plot data spectrum using EEGLAB winsize, 256 nfft, 256 overlap, 128 (change FFT window length) (change FFT padding) (change window overlap) 14

Disadvantage of Fourier Transform In transforming to the frequency domain, time information is lost. 15

Frequency-domain Analysis of the EEG We often apply a window to the data. This simply means taking the amount we want from the data stream The window is moved along the data; we perform the FFT on this windowed data 16

Spectrogram or ERSP 5 Hz 0 ms 10 ms 20 ms 30 ms 40 ms 50 ms 60 ms 10 Hz 20 Hz 30 Hz 17

Spectrogram or ERSP 5 Hz 0 ms 10 ms 20 ms 30 ms 40 ms 50 ms 60 ms 10 Hz 20 Hz squared vector length 30 Hz 5 Hz 2-D matrix average 10 Hz 20 Hz 30 Hz 0 ms 10 ms 20 ms 30 ms 40 ms 50 ms 60 ms 18

Power spectrum and event-related spectral perturbation 1 ntrials ERSP( f, t) = F ( f, t) k n k = 1 2 Complex number Scaled to db 10Log 10 (ERS) F k (f,t) 19

Absolute versus relative power Absolute = ERS Relative = ERSP (db or %) 20

Time-locked ERSP Time- & phase-locked ERP 40 Hz 10 Hz (time-locked but not phase-lock) 1 Hz (phaselocked) 21

ERSP vs ERP ERSP 10 Hz 1 Hz ERP? 22

Difference between FFT and wavelets FFT Wavelet Frequency 24

Wavelets factor Wavelet (0)= FFT Wavelet (1) 1Hz 2Hz 4Hz 6Hz 8Hz 10Hz 25

FFT In between Pure wavelet 26

Modified wavelets Wavelet (0.8) Wavelet (0.5) Wavelet (0.2) 27

Inter trial coherence same time, different trials Trial 1 Trial 2 Trial 3 amplitude 0.5 phase 0 amplitude 1 phase 90 amplitude 0.25 phase 180 POWER = mean(amplitudes 2 ) 0.44 or 8.3 db COHERENCE = mean(phase vector) Norm 0.33 28

29

Phase ITC ITPC( f, t) = 1 n F k ( f, t) n k= F ( f, t) 1 k Normalized (no amplitude information) 30

Power and inter-trial coherence 5 Time-frequency power Condition 1 Condition 2 db ITC: trials synchronization 31

Channel time-frequency 32

Component time-frequency 33

Compare between conditions condition 1 condition 2 difference ERSPs ITCs Component 10 for condition 1 (left) and condition 2 (right) Number of data points >> newtimef({ ALLEEG(2).icaact(10,:) EEG.icaact(10,:) }, EEG.pnts, [EEG.xmin EEG.xmax]*1000, EEG.srate, 0, 'padratio', 1); Number of data points Sampling rate Cycles (0=FFT) padding 34

Do the activities of maximally independent EEG domains interact? 35

Cross-coherence amplitude and phase 2 components, comparison on the same trials Trial 1 Coherence amplitude 1 Phase coherence 0 Trial 2 Coherence amplitude 1 Phase coherence 90 Trial 3 Coherence amplitude 1 Phase coherence 180 COHERENCE = mean(phase vector) Norm 0.33 Phase 90 degree 36

37 = = n k b k a k b k a k b a t f F t f F t f F t f F n t f ERPCOH 1 *, ), ( ), ( ), ( ), ( 1 ), ( Only phase information component a Only phase information component b Phase coherence (default)

Cross-coherence amplitude and phase 5 6 Condition 1 Condition 2 38 Phase (degree) Amplitude (0-1)

Component phase coherence 39

Summary 40