38
Basics of fMRI Time-Series Analysis Douglas N. Greve

Basics of fMRI Time-Series Analysis

Embed Size (px)

DESCRIPTION

Basics of fMRI Time-Series Analysis. Douglas N. Greve. fMRI Analysis Overview. Subject 1. Preprocessing MC, STC, B0 Smoothing Normalization. Preprocessing MC, STC, B0 Smoothing Normalization. Preprocessing MC, STC, B0 Smoothing Normalization. Preprocessing MC, STC, B0 Smoothing - PowerPoint PPT Presentation

Citation preview

Page 1: Basics of fMRI Time-Series Analysis

Basics of fMRI Time-Series Analysis

Douglas N. Greve

Page 2: Basics of fMRI Time-Series Analysis

2

fMRI Analysis Overview

Higher Level GLM

First Level GLM Analysis

First Level GLM Analysis

Subject 3

First Level GLM Analysis

Subject 4

First Level GLM Analysis

Subject 1

Subject 2

CX

CX

CX

CX

PreprocessingMC, STC, B0

SmoothingNormalization

PreprocessingMC, STC, B0

SmoothingNormalization

PreprocessingMC, STC, B0

SmoothingNormalization

PreprocessingMC, STC, B0

SmoothingNormalization

Raw Data

Raw Data

Raw Data

Raw Data

CX

Page 3: Basics of fMRI Time-Series Analysis

3

Overview• Neuroanatomy 101

• fMRI Contrast Mechanism

• Hemodynamic Response

• “Univariate” GLM Analysis

• Hypothesis Testing

Page 4: Basics of fMRI Time-Series Analysis

4

Neuroantomy

• Gray matter• White matter• Cerebrospinal Fluid

Page 5: Basics of fMRI Time-Series Analysis

5

Functional Anatomy/Brain Mapping

Page 6: Basics of fMRI Time-Series Analysis

6

Visual Activation Paradigm

Flickering Checkerboard

Visual, Auditory, Motor, Tactile, Pain, Perceptual,Recognition, Memory, Emotion, Reward/Punishment, Olfactory, Taste, Gastral, Gambling, Economic, Acupuncture,Meditation, The Pepsi Challenge, …

• Scientific• Clinical• Pharmaceutical

Page 7: Basics of fMRI Time-Series Analysis

7

MRI Scanner

Page 8: Basics of fMRI Time-Series Analysis

8

Magnetic Resonance Imaging

T1-weightedContrast

BOLD-weightedContrast

Page 9: Basics of fMRI Time-Series Analysis

9

Blood Oxygen Level Dependence (BOLD)

Neurons

Lungs

Oxygen CO2

OxygenatedHemoglobin(DiaMagnetic)

DeoxygenatedHemoglobin(ParaMagnetic)

Contrast Agent

Page 10: Basics of fMRI Time-Series Analysis

10

Functional MRI (fMRI)Localized

NeuralFiring

LocalizedIncreased

Blood FlowStimulus

LocalizedBOLD

Changes

Sample BOLD response in 4D Space (3D) – voxels (64x64x35, 3x3x5mm^3, ~50,000) Time (1D) – time points (100, 2 sec) – Movie

Time 1 Time 2 Time 3 …

Page 11: Basics of fMRI Time-Series Analysis

11

4D Volume

64x64x35 85x1

Page 12: Basics of fMRI Time-Series Analysis

12

Visual/Auditory/Motor Activation Paradigm

15 sec ‘ON’, 15 sec ‘OFF’ • Flickering Checkerboard• Auditory Tone• Finger Tapping

Page 13: Basics of fMRI Time-Series Analysis

13

Block Design: 15s Off, 15s On

Voxel 1

Voxel 2

Page 14: Basics of fMRI Time-Series Analysis

14

Contrasts and Inference

p = 10-11, sig=-log10(p) =11 p = .10, sig=-log10(p) =1

OFFin N Var, Mean,,,

ONin N Var, Mean,,,

)2()1()1(

2

2

2

22

OFFOFFOFF

ONONON

OFFON

OFFOFFONON

OFFON

N

N

NNNN

t

OFFON Contrast

2

22

)2(

)1()1(st)Var(Contra

OFFON

OFFOFFONON

NN

NN

ONOFF

2ON2

OFF

Voxel 1 Voxel 2

Page 15: Basics of fMRI Time-Series Analysis

15

Statistical Parametric Map (SPM)+3%

0%

-3%

Contrast AmplitudeON-OFF

ContrastAmplitudeVariance

(Error Bars)

Significance t-Map (p,z,F)(Thresholded

p<.01) “Massive Univariate Analysis” -- Analyze each voxel separately

Page 16: Basics of fMRI Time-Series Analysis

16

Statistical Parametric Map (SPM)

Signficance Map sig=-log10(p) Signed by contrast

“Massive Univariate Analysis” -- Analyze each voxel separately

Page 17: Basics of fMRI Time-Series Analysis

17

Hemodynamics

• Delay• Dispersion• Grouping by simple time point inaccurate

Page 18: Basics of fMRI Time-Series Analysis

18

Hemodynamic Response Function (HRF)

TR (~2sec)

Time-to-Peak (~6sec)

Dispersion

Undershoot

Equilibrium(~16-32sec)

Delay (~1-2sec)

Page 19: Basics of fMRI Time-Series Analysis

19

Convolution with HRF

• Shifts, rolls off; more accurate • Loose ability to simply group time points• More complicated analysis• General Linear Model (GLM)

Page 20: Basics of fMRI Time-Series Analysis

20

GLMData fomone voxel

= Task base+

Baseline Offset(Nuisance)Task

Task=onoff•Implicit Contrast•HRF Amplitude

base=off

Page 21: Basics of fMRI Time-Series Analysis

21

Matrix Model

y = X *

Task

base

Data fromone voxel

Design MatrixRegressors

=

Vector ofRegressionCoefficients(“Betas”)

Design Matrix

Obs

erva

tion

s

Page 22: Basics of fMRI Time-Series Analysis

22

Two Task Conditions

y = X *

Odd

Even

base

Data fromone voxel

Design MatrixRegressors

=

Design Matrix

Obs

erva

tion

s

Page 23: Basics of fMRI Time-Series Analysis

23

Working Memory Task (fBIRN)

Images Stick Figs

“Scrambled” Encode Distractor Probe

16s 16s 16s 16s

Stick Figs

0. “Scrambled” – low-level baseline, no response1. Encode – series of passively viewed stick figuresDistractor – respond if there is a face 2. Emotional 3. NeutralProbe – series of two stick figures (forced choice) 4. Following Emotional Distractor 5. Following Neutral Distractor

fBIRN: Functional Biomedical Research Network (www.nbirn.net)

Page 24: Basics of fMRI Time-Series Analysis

24

Five Task Conditions

Encode

EmotDist

NeutDist

EmotProbe

NeutProbe

=

y = X *

Page 25: Basics of fMRI Time-Series Analysis

25

GLM Solution

Encode

EmotDist

NeutDist

EmotProbe

NeutProbe

=

y = X * • Set of simultaneous equations • Each row of X is an equation• Each column of X is an unknown• s are unknown• 142 Time Points (Equations)• 5 unknowns

Page 26: Basics of fMRI Time-Series Analysis

26

Estimation of s

22

2

1

2

2

)ˆ( ,)ˆ( :Unbiased

Variance Residual ˆˆ

ˆ

Estimate) (Noise Residual ˆˆ

Estimate Signal ˆˆ

EstimatesParameter )(ˆ

and :Unknowns

),0(~ , ,

nnTrue

T

n

TT

n

n

EE

DOF

nn

syn

Xs

yXXX

NnnsynXy

Page 27: Basics of fMRI Time-Series Analysis

27

Estimates of the HRF Amplitude

Encode

EmotDist

NeutDist

EmotProbe

NeutProbe

=

Distractor Neutral following Probe toresponsein amplitude cHemodynamiˆ

Distractor Emotional following Probe toresponsein amplitude cHemodynamiˆ

Distractor Neutral toresponsein amplitude cHemodynamiˆ

Distractor Emotional toresponsein amplitude cHemodynamiˆ

Encode toresponsein amplitude cHemodynamiˆ

)(ˆ ,

NeuttProbe

EmotProbe

NeutDist

EmotDist

Encode

1

yXXXnXy TT

Page 28: Basics of fMRI Time-Series Analysis

28

Hypotheses and ContrastsWhich voxels respond more/less/differently to the Emotional Distractor than to the Neutral Distractor?

0,0,0ˆˆ

ˆˆ

ˆ

ˆˆ

NDistEDist

NDistEDist

NDistEDist

NDistEDist

MatirxContrast 00110

0c

0c

1c

1c

0c

ˆcˆcˆcˆcˆc

NProbe

EProbe

NDist

EDist

Encode

NProbeNProbeEProbeEProbeNDistNDistEDistEDistEncodeEncode

C

Contrast: Assign Weights to each Beta

EDist̂NDist̂

Page 29: Basics of fMRI Time-Series Analysis

29

Hypotheses

• Which voxels respond more to the Emotional Distractor than to the Neutral Distractor? • Which voxels respond to Encode (relative to baseline)?• Which voxels respond to the Emotional Distractor?• Which voxels respond to either Distractor?• Which voxels respond more to the Probe following the Emotional Distractor than to the Probe following the Neutral Distractor?

Page 30: Basics of fMRI Time-Series Analysis

30

Which voxels respond more to the Emotional Distractor than to the Neutral Distractor?

1. E

ncod

e2.

ED

ist

3. N

Dis

t4.

EP

robe

5. N

Pro

be

• Only interested in Emotional and Neutral Distractors• No statement about other conditions

Condition: 1 2 3 4 5Weight 0 +1 -1 0 0

Contrast Matrix C = [0 +1 -1 0 0]

Page 31: Basics of fMRI Time-Series Analysis

31

Which voxels respond to Encode (relative to baseline)?1.

Enc

ode

2. E

Dis

t3.

ND

ist

4. E

Pro

be5.

NP

robe

Only interested in Encode• No statement about other conditions

Condition: 1 2 3 4 5Weight +1 0 0 0 0

Contrast Matrix C = [+1 0 0 0 0]

Page 32: Basics of fMRI Time-Series Analysis

32

Which voxels respond to the Emotional Distractor (wrt baseline)?1.

Enc

ode

2. E

Dis

t3.

ND

ist

4. E

Pro

be5.

NP

robe

• Only interested in Emotional Distractor• No statement about other conditions

Condition: 1 2 3 4 5Weight 0 +1 0 0 0

Contrast Matrix C = [0 +1 0 0 0]

Page 33: Basics of fMRI Time-Series Analysis

33

Which voxels respond to either Distractor (wrt baseline)?1.

Enc

ode

2. E

Dis

t3.

ND

ist

4. E

Pro

be5.

NP

robe

• Only interested in Distractors• Average of two Distractors• No statement about other conditions

Condition: 1 2 3 4 5Weight 0 ½ ½ 0 0

Contrast Matrix C = [0 0.5 0.5 0 0]

• Don’t have so sum to 1, but usual• Could have used an F-test instead of average

Page 34: Basics of fMRI Time-Series Analysis

34

Which voxels respond more to the Probe following the Emotional Distractor than to the Probe following the Neutral Distractor?

1. E

ncod

e2.

ED

ist

3. N

Dis

t4.

EP

robe

5. N

Pro

be • Only interested in Probes• No statement about other conditions

Condition: 1 2 3 4 5Weight 0 0 0 +1 -1

Contrast Matrix C = [0 0 0 +1 -1]

Page 35: Basics of fMRI Time-Series Analysis

35

Contrasts and the Full Model

ate)(multivariTest -F ˆˆˆF

e)(univariatTest - tˆ)(

ˆ

ˆ

ˆt

Cin Rows J

Estimate VarianceContrast ˆ)(1ˆˆ

Contrast ˆˆ

ˆˆ Variance, Residual ˆˆ

ˆ

EstimatesParameter )(ˆ

),0(~ , ,

1JDOF,

21DOF

212

2

1

2

T

nTT

nTT

T

n

TT

n

CXXC

C

CXXCJ

C

XynDOF

nn

yXXX

NnnsynXy

Page 36: Basics of fMRI Time-Series Analysis

36

fMRI Analysis Overview

Higher Level GLM

First Level GLM Analysis

First Level GLM Analysis

Subject 3

First Level GLM Analysis

Subject 4

First Level GLM Analysis

Subject 1

Subject 2

CX

CX

CX

CX

PreprocessingMC, STC, B0

SmoothingNormalization

PreprocessingMC, STC, B0

SmoothingNormalization

PreprocessingMC, STC, B0

SmoothingNormalization

PreprocessingMC, STC, B0

SmoothingNormalization

Raw Data

Raw Data

Raw Data

Raw Data

CX

Page 37: Basics of fMRI Time-Series Analysis

37

Time Series Analysis Summary

• Correlational• Design Matrix (HRF shape)• Estimate HRF amplitude (Parameters)• Contrasts to test hypotheses• Results at each voxel:

• Contrast Value• Contrast Value Variance• p-value (Volume of Activation)

• Pass Contrast Value and Variance up to higher level analyses

Page 38: Basics of fMRI Time-Series Analysis

38