Presentation is loading. Please wait.

Presentation is loading. Please wait.

SPM and (e)fMRI Christopher Benjamin. SPM Today: basics from eFMRI perspective. 1.Pre-processing 2.Modeling: Specification & general linear model 3.Inference:

Similar presentations


Presentation on theme: "SPM and (e)fMRI Christopher Benjamin. SPM Today: basics from eFMRI perspective. 1.Pre-processing 2.Modeling: Specification & general linear model 3.Inference:"— Presentation transcript:

1 SPM and (e)fMRI Christopher Benjamin

2 SPM Today: basics from eFMRI perspective. 1.Pre-processing 2.Modeling: Specification & general linear model 3.Inference: Contrasts Overview of process. Please note to illustrate points I’ve included content from sources including Human Brain Function, others’ web powerpoints (see final slide for credits).

3 SPM 1.Pre-processing 2.Modeling: Specification & general linear model 3.Inference: Contrasts

4 Image pre-processing (1) Very briefly, after file extraction, NFTI… 1.Realignment: spatially align images. 2.Slice-timing correction: temporal alignment. 3.Coregistration: spatially registers the structural image to the functional images.

5 Image pre-processing (2) 4. Segmentation: tissue types. 5. Normalisation: Moves all images to a specific space – e.g. structural image, MNI-152. 6. Smoothing: smooth data, making it more normal (assumptions of later analysis). Note: this processing sequence is from the SPM (e)fMRI manual example. Manually or by batch script.

6 SPM 1.Pre-processing 2.Modeling: Specification & general linear model 3.Inference: Contrasts

7 Modeling: SPM and the general linear model Each fMRI image yields a matrix of activation data. Aim: identify voxels that behave as we’d expect. We have: –A single time series of data for each voxel (Y values). –A set of expectations about what variables determine activity (X values).

8 Formally, the general linear model: Y =  1 X 1 +  2 X 2 … +  N X N +   coefficients are calculated for each voxel (Ordinary Least Squares or Maximum Likelihood estimates). Correlation of  X combination reflects strength of X’s influence on activity.

9 Temporal series fMRI Statistical image (SPM) voxel time course amplitude time General Linear Model Üfitting Üstatistical image The model represented visually Adapted from Poline (2005)

10 = ++ voxel time series 90 100 110       box-car reference f’n -10 0 10   90 100 110 Mean value Fit the GLM -2 0 2 Regression example Adapted from Poline (2005)

11 =  + + ss =++ Y error   11 22  X The model visually Adapted from Poline (2005)

12 =+ data vector (voxel time series) design matrix parameters error vector   =  +YX    The visual model in matrix form Adapted from Poline (2005)

13 Design matrix (cont) To construct the final design matrix SPM takes 1.Your specified X regressors 2.Timing information (SOTs, TR, TA, repetitions) Convolves prediction of activity by X variables with anticipated variation in response due to HRF.

14 Basis functions: a set of functions which, combined linearly, describe another function (e.g. Euclidian space – x, y, z). In fMRI instead of describing a point you want to describe a curve or function (% signal change in function of time) by decomposing it in simpler functions. If you use only one function you have a limited power to describe the % signal change variations, so it’s better to use a number of functions, which constitutes a set of basis functions. That’s why SPM offers different sets of basis functions to model the % signal change variations. Fourier analysis: the complex wave at the top can be decomposed into the sum of the three simpler waves shown below. f(t)=h1(t)+h2(t)+h3(t) f(t) h1(t) h2(t) h3(t) Adapted from slides by Iroise Dumon The HRF is composed of basis functions

15 Regressor construction & basis functions See source – HBF Ch 1, figure 6 – for full equations Temporal derivative basis: latency of peak response. Dispersion derivative basis: peak response duration.

16 SPM 1.Pre-processing 2.Modeling: Specification & general linear model 3.Inference: Contrasts

17 Model inference: Results & contrasts We modeled the signal in terms of effects of interest and effects of no interest. Are effects of interest predicting activation? Contrast: a linear combination of model parameters (a contrast vector). T = [ 1 2... p ] Expressed: = c’ x  Generally, effects of no interest weighted 0; those of interest 1 or -1.

18 Contrasts: some guidelines 1.Be clear re. what your regressors are, the contrasts should logically follow. 2.Know what is and is not tested by your model. 3.Aim for parsimony in design; –Redundant, inestimable regressors (SPM list eg). –Correlated regressors = poor parameter estimates (greater parameter variance).

19 Contrasts: some guidelines 4. Parameter ordering determines interpretation; for example, ‘when testing for the second regressor, we are e ff ectively removing that part of the signal that can be accounted for by the first regressor’. 5.Implicit modeling of the baseline is often preferable.

20 Model specification (1) Task: rest or pressing button at 4 strength levels. Top: Modeling conditions separately Bottom: Modeling interactions; the common part and difference between conditions. Implicit baseline.

21 Model specification (2) Contrast: what is the effect of force? –Model 1: Average of regressors 1-4 –Model 2: Regressor 1 SPM automatically reparameterises (removes parameters’ mean). Very good HBF chapter.

22 Testing: t or F? t-tests: –Is there a significant increase or decrease in the contrast specified (directional)? F-tests: –The effect of a group of regressors. –A series of t tests.

23 Example: Motor responses Two event-related conditions. The subject presses a button with either their left or right hand depending on a visual instruction. We are interested in finding the brain regions that respond more to left than right motor movement. Implicit baseline. Adapted from slides by Iroise Dumon – example Ch 8, HBF.

24 t contrasts -Model has been specified and estimated. -Model: parameters convolved with HRF. -To find the brain regions corresponding more to left than right motor responses, we use the contrast: = [1 -1 0] Left Right Mean Adapted from slides by Iroise Dumon

25 t contrasts = [1 -1 0] 1(x 1 b 1 ) – 1(x 2 b 2 ) + 0(x 3 b 3 ) ––––––––––––––––––––––– estimated standard deviation -Effectively looking at the left motor response’s prediction of activity less the right motor response’s. -Ability to predict compared to standard deviation. -Compute for every voxel. Left Right Mean Adapted from slides by Iroise Dumon = 1 -1 0

26 Overall left V right image, contrast 1 -1 0

27 F contrast (1) Non-directional: test for the overall difference (positive or negative) between left and right responses compared to baseline we use: [ 1 0 0 0 1 0 ] Left Right Mean Adapted from slides by Iroise Dumon

28 Areas involved in pressing (left or right) either more or less active in pressing vs not pressing (non-directional) Adapted from slides by Iroise Dumon

29 Perhaps response better modeled with time, dispersion derivatives. Specify in model design. HRF L F contrast (2) time L dispersion L HRF R time R dispersion R Example Ch 8, HBF.

30 Top contrast: overall significance of left responses. Lower contrast: overall difference b/n right & left responses. Example Ch 8, HBF.

31 F contrast interpretation Fitting a ‘reduced’ model containing only the selected parameters. –F tests the significance of a reduced model containing only specified regressors. Alternately, a series of t tests for the selected parameters. –If sensible, examine the sign of the fitted signal corresponding to the extra sum of squares. F = error variance estimate additional variance accounted for by tested effects

32 Final note on type I error Many comparisons completed across the brain, correction applied. However, repeated contrasts at each voxel elevates risk of false positives. Contrast results should be considered exploratory until correction (e.g. Bonferroni) is applied. HBF Chapter 8

33 Sources Human Brain Function (2nd Ed.), available in full on the web. Powerpoint slides from the web – –The General Linear Model (Or: ‘What the Hell’s going on during estimation?’). Slides from presentation by Adam Smith, UCL. –Linear models & contrasts. Slides from SPM short course at Yale 2005 (Jean-Baptiste Poline). –‘Contrasts’ & ‘Basis functions’ slides from presentation by Iroise Dumon (UCL).


Download ppt "SPM and (e)fMRI Christopher Benjamin. SPM Today: basics from eFMRI perspective. 1.Pre-processing 2.Modeling: Specification & general linear model 3.Inference:"

Similar presentations


Ads by Google