fmri design and analysis basic designs. mri studies brain anatomy. functional mri (fmri) studies...

38
fMRI design and analysis Basic designs

Upload: connor-harper

Post on 28-Mar-2015

229 views

Category:

Documents


2 download

TRANSCRIPT

Page 1: FMRI design and analysis Basic designs. MRI studies brain anatomy. Functional MRI (fMRI) studies brain function. MRI vs. fMRI

fMRI design and analysis

Basic designs

Page 2: FMRI design and analysis Basic designs. MRI studies brain anatomy. Functional MRI (fMRI) studies brain function. MRI vs. fMRI

MRI studies brain anatomy.Functional MRI (fMRI) studies brain function.

MRI vs. fMRI

Page 3: FMRI design and analysis Basic designs. MRI studies brain anatomy. Functional MRI (fMRI) studies brain function. MRI vs. fMRI

MRI vs. fMRI

neural activity blood oxygen fMRI signal

MRI fMRI

one image

many images (e.g., every 2 sec for 5 mins)

high resolution(1 mm)

low resolution(~3 mm but can be better)

fMRI Blood Oxygenation Level Dependent (BOLD) signal

indirect measure of neural activity

Page 4: FMRI design and analysis Basic designs. MRI studies brain anatomy. Functional MRI (fMRI) studies brain function. MRI vs. fMRI

fMRI Activation

Time

BrainActivity

Source: Kwong et al., 1992

Flickering CheckerboardOFF (60 s) - ON (60 s) -OFF (60 s) - ON (60 s) - OFF (60 s)

Page 5: FMRI design and analysis Basic designs. MRI studies brain anatomy. Functional MRI (fMRI) studies brain function. MRI vs. fMRI

fMRI Experiment Stages: Prep

1) Prepare subject• Consent form• Safety screening• Instructions and practice trials if appropriate

2) Shimming • putting body in magnetic field makes it non-uniform• adjust 3 orthogonal weak magnets to make magnetic field as homogenous as possible

3) SagittalsTake images along the midline to use to plan slices

Perhaps the most frequently misspelled word in fMRI: Should have one g, two t’s

In this example, these are the functional slices we want: 12 slices x 6 mm

Page 6: FMRI design and analysis Basic designs. MRI studies brain anatomy. Functional MRI (fMRI) studies brain function. MRI vs. fMRI

fMRI Experiment Stages: Anatomicals

4) Take anatomical (T1) images• high-resolution images (e.g., 0.75 x 0.75 x 3.0 mm)• 3D data: 3 spatial dimensions, sampled at one point in time• 64 anatomical slices takes ~4 minutes

64 slices x 3 mm

Page 7: FMRI design and analysis Basic designs. MRI studies brain anatomy. Functional MRI (fMRI) studies brain function. MRI vs. fMRI

Slice Thicknesse.g., 6 mm

Number of Slicese.g., 10

SAGITTAL SLICE IN-PLANE SLICE

Field of View (FOV)e.g., 19.2 cm

VOXEL(Volumetric Pixel)

3 mm

3 mm6 mm

Slice Terminology

Matrix Sizee.g., 64 x 64

In-plane resolutione.g., 192 mm / 64

= 3 mm

Page 8: FMRI design and analysis Basic designs. MRI studies brain anatomy. Functional MRI (fMRI) studies brain function. MRI vs. fMRI

8

Coordinates - Anatomy

3 Common Views of Brain:

Coronal (head on)

Axial (bird’s eye), aka Transverse.

Sagittal (profile)

sagittalcoronal

axial

Page 9: FMRI design and analysis Basic designs. MRI studies brain anatomy. Functional MRI (fMRI) studies brain function. MRI vs. fMRI

fMRI Experiment Stages: Functionals5) Take functional (T2*) images

• images are indirectly related to neural activity• usually low resolution images (3 x 3 x 6 mm)• all slices at one time = a volume (sometimes also called an image)• sample many volumes (time points) (e.g., 1 volume every 2 seconds for 136 volumes

= 272 sec = 4:32)• 4D data: 3 spatial, 1 temporal

Page 10: FMRI design and analysis Basic designs. MRI studies brain anatomy. Functional MRI (fMRI) studies brain function. MRI vs. fMRI

Statistical Mapsuperimposed on

anatomical MRI image

~2s

Functional images

Time

Condition 1

Condition 2 ...

~ 5 min

Time

fMRISignal

(% change)

ROI Time Course

Condition

Activation Statistics

Region of interest (ROI)

Page 11: FMRI design and analysis Basic designs. MRI studies brain anatomy. Functional MRI (fMRI) studies brain function. MRI vs. fMRI

2D 3D

Page 12: FMRI design and analysis Basic designs. MRI studies brain anatomy. Functional MRI (fMRI) studies brain function. MRI vs. fMRI

Overview

Motioncorrection

Smoothing

kernel

Spatialnormalisation

Standardtemplate

fMRI time-series Statistical Parametric Map

General Linear Model

Design matrix

Parameter Estimates

Page 13: FMRI design and analysis Basic designs. MRI studies brain anatomy. Functional MRI (fMRI) studies brain function. MRI vs. fMRI
Page 14: FMRI design and analysis Basic designs. MRI studies brain anatomy. Functional MRI (fMRI) studies brain function. MRI vs. fMRI

Spatial Realignment: Reasons for Motion Correction

Subjects will always move in the scanner

The sensitivity of the analysis depends on the residual noise in the image series, so movement that is unrelated to the subject’s task will add to this noise and hence realignment will increase the sensitivity

However, subject movement may also correlate with the task…

…in which case realignment may reduce sensitivity (and it may not be possible to discount artefacts that owe to motion)

• Realignment (of same-modality images from same subject) involves two stages:

– 1. Registration - estimate the 6 parameters that describe the rigid body transformation between each image and a reference image

– 2. Reslicing - re-sample each image according to the determined transformation parameters

• Realignment (of same-modality images from same subject) involves two stages:

– 1. Registration - estimate the 6 parameters that describe the rigid body transformation between each image and a reference image

– 2. Reslicing - re-sample each image according to the determined transformation parameters

Page 15: FMRI design and analysis Basic designs. MRI studies brain anatomy. Functional MRI (fMRI) studies brain function. MRI vs. fMRI

Motion Correction Algorithms

Most algorithms assume a rigid body (i.e., that brain doesn’t deform with movement)

Align each volume of the brain to a target volume using six parameters: three translations and three rotations

Target volume: the functional volume that is closest in time to the anatomical image

x translation

z tr

ansl

atio

n

y tr

ansl

atio

n

pitch roll yaw

Page 16: FMRI design and analysis Basic designs. MRI studies brain anatomy. Functional MRI (fMRI) studies brain function. MRI vs. fMRI

Head Motion: Good, Bad,…

Slide from Duke course

Page 17: FMRI design and analysis Basic designs. MRI studies brain anatomy. Functional MRI (fMRI) studies brain function. MRI vs. fMRI

… and catastrophically bad

Slide from Duke course

Page 18: FMRI design and analysis Basic designs. MRI studies brain anatomy. Functional MRI (fMRI) studies brain function. MRI vs. fMRI

Application of registration parameters involves re-sampling the image to create new voxels by interpolation from existing voxels

Interpolation can be nearest neighbour (0-order), tri-linear (1st-order), (windowed) fourier/sinc, or nth-order “b-splines”

2. Reslicing2. Reslicing

d1 d2

d3

d4

v1

v4

v2

v3

Nearest Neighbour

Linear

Full sinc (no alias)

Windowed sinc

Page 19: FMRI design and analysis Basic designs. MRI studies brain anatomy. Functional MRI (fMRI) studies brain function. MRI vs. fMRI

Temporal Realignment (Slice-Timing Correction)

Most functional MRI uses Echo-Planar Imaging (EPI)

Each plane (slice) is typically acquired every 3mm

normally axial…

… requiring ~32 slices to cover cortex (40 to cover cerebellum too)

(actually consists of slice-thickness, eg 2mm, and interslice gap, eg 1mm, sometimes expressed in terms of “distance factor”)

(slices can be acquired contiguously, eg [1 2 3 4 5 6], or interleaved, eg [1 3 5 2 4 6])

Each plane (slice) takes about ~60ms to acquire…

…entailing a typical TR for whole volume of 2-3s

Volumes normally acquired continuously (though sometimes gap so that TR>TA)

2-3s between sampling the BOLD response in the first slice and the last slice

(a problem for transient neural activity; less so for sustained neural activity)

Page 20: FMRI design and analysis Basic designs. MRI studies brain anatomy. Functional MRI (fMRI) studies brain function. MRI vs. fMRI

Between Modality Co-registration

Useful, for example, to display functional results (EPI) onto high resolution structural image (T1)…

…indeed, necessary if spatial normalisation is determined by T1 image

Because different modality images have different properties (e.g., relative intensity of gray/white matter), cannot simply minimise difference between images

Therefore, use Mutual Information as cost function, rather than squared differences…

EPI

T2 T1 Transm

PD PET

Page 21: FMRI design and analysis Basic designs. MRI studies brain anatomy. Functional MRI (fMRI) studies brain function. MRI vs. fMRI

DARTEL: Diffeomorphic Registration (SPM8)DARTEL: Diffeomorphic Registration (SPM8)

Grey matter average of 452 subjects Affine Grey matter

average of 471 subjectsDARTEL

Page 22: FMRI design and analysis Basic designs. MRI studies brain anatomy. Functional MRI (fMRI) studies brain function. MRI vs. fMRI

22

Coordinates - normalization

Different people’s brains look different ‘Normalizing’ adjusts overall size and orientation

Raw Images Normalized Images

Page 23: FMRI design and analysis Basic designs. MRI studies brain anatomy. Functional MRI (fMRI) studies brain function. MRI vs. fMRI

Reasons for Smoothing

Potentially increase signal to noise (matched filter theorem)

Inter-subject averaging (allowing for residual differences after normalisation)

Increase validity of statistics (more likely that errors distributed normally)

Gaussian smoothing kernel

• Kernel defined in terms of FWHM (full width at half maximum) of filter - usually ~16-20mm (PET) or ~6-8mm (fMRI) of a Gaussian

• Ultimate smoothness is function of applied smoothing and intrinsic image smoothness (sometimes expressed as “resels” - RESolvable Elements)

• Kernel defined in terms of FWHM (full width at half maximum) of filter - usually ~16-20mm (PET) or ~6-8mm (fMRI) of a Gaussian

• Ultimate smoothness is function of applied smoothing and intrinsic image smoothness (sometimes expressed as “resels” - RESolvable Elements)

FWHM

Page 24: FMRI design and analysis Basic designs. MRI studies brain anatomy. Functional MRI (fMRI) studies brain function. MRI vs. fMRI

Overview

Motioncorrection

Smoothing

kernel

Spatialnormalisation

Standardtemplate

fMRI time-series Statistical Parametric Map

General Linear Model

Design matrix

Parameter Estimates

Page 25: FMRI design and analysis Basic designs. MRI studies brain anatomy. Functional MRI (fMRI) studies brain function. MRI vs. fMRI
Page 26: FMRI design and analysis Basic designs. MRI studies brain anatomy. Functional MRI (fMRI) studies brain function. MRI vs. fMRI

General Linear Model…General Linear Model…

Parametric statistics

one sample t-testtwo sample t-testpaired t-testAnovaAnCovacorrelationlinear regressionmultiple regressionF-testsetc…

all cases of the

General Linear Model

Page 27: FMRI design and analysis Basic designs. MRI studies brain anatomy. Functional MRI (fMRI) studies brain function. MRI vs. fMRI

The General Linear ModelT-tests, correlations and Fourier analysis work for simple designs and were common in the early days of imagingThe General Linear Model (GLM) is now available in many software packages and tends to be the analysis of choice

Why is the GLM so great?the GLM is an overarching tool that can do anything that the simpler tests doyou can examine any combination of contrasts (e.g., intact - scrambled, scrambled - baseline) with one GLM rather than multiple correlationsthe GLM allows much greater flexibility for combining data within subjects and between subjectsit also makes it much easier to counterbalance orders and discard bad sections of datathe GLM allows you to model things that may account for variability in the data even though they aren’t interesting in and of themselves (e.g., head motion)as we will see later in the course, the GLM also allows you to use more complex designs (e.g., factorial designs)

Page 28: FMRI design and analysis Basic designs. MRI studies brain anatomy. Functional MRI (fMRI) studies brain function. MRI vs. fMRI

General Linear Model

Equation for single (and all) voxels:

yj = xj1 1 + … xjL L + j j ~ N(0,2)

yj : data for scan, j = 1…J

xjl : explanatory variables / covariates / regressors, l = 1…L

l : parameters / regression slopes / fixed effects

j : residual errors, independent & identically distributed (“iid”)

(Gaussian, mean of zero and standard deviation of σ)

Equivalent matrix form:

y = X +

X : “design matrix” / model

Page 29: FMRI design and analysis Basic designs. MRI studies brain anatomy. Functional MRI (fMRI) studies brain function. MRI vs. fMRI

Matrix Formulation

Equation for scan j

Simultaneous equations forscans 1.. J

…that can be solvedfor parameters 1.. L

Regressors

Sca

ns

Page 30: FMRI design and analysis Basic designs. MRI studies brain anatomy. Functional MRI (fMRI) studies brain function. MRI vs. fMRI

A Simple Experiment

IntactObjects

ScrambledObjects

BlankScreen

TIME

One volume (12 slices) every 2 seconds for 272 seconds (4 minutes, 32 seconds)

Condition changes every 16 seconds (8 volumes)

Lateral Occipital Complex• responds when subject views objects

Page 31: FMRI design and analysis Basic designs. MRI studies brain anatomy. Functional MRI (fMRI) studies brain function. MRI vs. fMRI

What’s real?

A. C.

B. D.

Page 32: FMRI design and analysis Basic designs. MRI studies brain anatomy. Functional MRI (fMRI) studies brain function. MRI vs. fMRI

What’s real?

I created each of those time courses based by taking the predictor function and adding a variable amount of random noise

= +

signal

noise

Page 33: FMRI design and analysis Basic designs. MRI studies brain anatomy. Functional MRI (fMRI) studies brain function. MRI vs. fMRI

Linear Drift

Huettel, Song & McCarthy, 2004, Functional Magnetic Resonance Imaging

Page 34: FMRI design and analysis Basic designs. MRI studies brain anatomy. Functional MRI (fMRI) studies brain function. MRI vs. fMRI

Physiological Noise

Respiration• every 4-10 sec (0.3 Hz)• moving chest distorts susceptibility

Cardiac Cycle• every ~1 sec (0.9 Hz)• pulsing motion, blood changes

Solutions• gating• avoiding paradigms at those frequencies

Page 35: FMRI design and analysis Basic designs. MRI studies brain anatomy. Functional MRI (fMRI) studies brain function. MRI vs. fMRI

Low and High Frequency Noise

Source: Smith chapter in Functional MRI: An Introduction to Methods

Page 36: FMRI design and analysis Basic designs. MRI studies brain anatomy. Functional MRI (fMRI) studies brain function. MRI vs. fMRI

We create a GLM with 2 predictors

fMRI Signal

× 1

× 2

=

ResidualsDesign Matrix

++

“what we CAN explain”

“what we CANNOT explain”

= +Betasx

“how much of it we CAN explain”

“our data” = +x

Statistical significance is basically a ratio of explained to unexplained variance

Page 37: FMRI design and analysis Basic designs. MRI studies brain anatomy. Functional MRI (fMRI) studies brain function. MRI vs. fMRI

Implementation of GLM in SPM

SPM represents time as going downSPM represents predictors within the design matrix as grayscale plots (where black = low, white = high) over timeSPM includes a constant to take care of the average activation level throughout each run

T

ime

Many thanks to Øystein Bech Gadmar for creating this figure in SPM

IntactPredictor

ScrambledPredictor

Page 38: FMRI design and analysis Basic designs. MRI studies brain anatomy. Functional MRI (fMRI) studies brain function. MRI vs. fMRI

Contrasts in the GLM

We can examine whether a single predictor is significant (compared to the baseline)

• We can also examine whether a single predictor is significantly greater than another predictor