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

Slides:



Advertisements
Similar presentations
SPM short course – Mai 2007 Linear Models and Contrasts
Advertisements

The SPM MfD course 12th Dec 2007 Elvina Chu
Basis Functions. What’s a basis ? Can be used to describe any point in space. e.g. the common Euclidian basis (x, y, z) forms a basis according to which.
2nd level analysis – design matrix, contrasts and inference
General Linear Model L ύ cia Garrido and Marieke Schölvinck ICN.
General Linear Model Beatriz Calvo Davina Bristow.
2nd level analysis – design matrix, contrasts and inference
1st level analysis - Design matrix, contrasts & inference
SPM 2002 C1C2C3 X =  C1 C2 Xb L C1 L C2  C1 C2 Xb L C1  L C2 Y Xb e Space of X C1 C2 Xb Space X C1 C2 C1  C3 P C1C2  Xb Xb Space of X C1 C2 C1 
Outline What is ‘1st level analysis’? The Design matrix
Design matrix, contrasts and inference
The General Linear Model Or, What the Hell’s Going on During Estimation?
OverviewOverview Motion correction Smoothing kernel Spatial normalisation Standard template fMRI time-series Statistical Parametric Map General Linear.
Realigning and Unwarping MfD
Classical inference and design efficiency Zurich SPM Course 2014
Statistical Inference
1st level analysis: basis functions and correlated regressors
Parametric modulation, temporal basis functions and correlated regressors Mkael Symmonds Antoinette Nicolle Methods for Dummies 21 st January 2008.
Lorelei Howard and Nick Wright MfD 2008
SPM short course – May 2003 Linear Models and Contrasts The random field theory Hammering a Linear Model Use for Normalisation T and F tests : (orthogonal.
1st Level Analysis Design Matrix, Contrasts & Inference
General Linear Model & Classical Inference
General Linear Model & Classical Inference Guillaume Flandin Wellcome Trust Centre for Neuroimaging University College London SPM M/EEGCourse London, May.
Contrasts and Basis Functions Hugo Spiers Adam Liston.
With many thanks for slides & images to: FIL Methods group, Virginia Flanagin and Klaas Enno Stephan Dr. Frederike Petzschner Translational Neuromodeling.
Contrasts (a revision of t and F contrasts by a very dummyish Martha) & Basis Functions (by a much less dummyish Iroise!)
Brain Mapping Unit The General Linear Model A Basic Introduction Roger Tait
General Linear Model & Classical Inference London, SPM-M/EEG course May 2014 C. Phillips, Cyclotron Research Centre, ULg, Belgium
Coregistration and Spatial Normalisation
SPM short course – Oct Linear Models and Contrasts Jean-Baptiste Poline Neurospin, I2BM, CEA Saclay, France.
Basics of fMRI Time-Series Analysis Douglas N. Greve.
Contrasts & Statistical Inference
The General Linear Model (for dummies…) Carmen Tur and Ashwani Jha 2009.
Temporal Basis Functions Melanie Boly Methods for Dummies 27 Jan 2010.
Ch. 5 Bayesian Treatment of Neuroimaging Data Will Penny and Karl Friston Ch. 5 Bayesian Treatment of Neuroimaging Data Will Penny and Karl Friston 18.
Methods for Dummies Second level Analysis (for fMRI) Chris Hardy, Alex Fellows Expert: Guillaume Flandin.
Statistical Inference Christophe Phillips SPM Course London, May 2012.
FMRI Modelling & Statistical Inference Guillaume Flandin Wellcome Trust Centre for Neuroimaging University College London SPM Course Chicago, Oct.
The General Linear Model
SPM short – Mai 2008 Linear Models and Contrasts Stefan Kiebel Wellcome Trust Centre for Neuroimaging.
1 st level analysis: Design matrix, contrasts, and inference Stephane De Brito & Fiona McNabe.
The general linear model and Statistical Parametric Mapping I: Introduction to the GLM Alexa Morcom and Stefan Kiebel, Rik Henson, Andrew Holmes & J-B.
The general linear model and Statistical Parametric Mapping II: GLM for fMRI Alexa Morcom and Stefan Kiebel, Rik Henson, Andrew Holmes & J-B Poline.
The General Linear Model Christophe Phillips SPM Short Course London, May 2013.
The General Linear Model Guillaume Flandin Wellcome Trust Centre for Neuroimaging University College London SPM fMRI Course London, October 2012.
SPM short course – Mai 2008 Linear Models and Contrasts Jean-Baptiste Poline Neurospin, I2BM, CEA Saclay, France.
General Linear Model & Classical Inference London, SPM-M/EEG course May 2016 Sven Bestmann, Sobell Department, Institute of Neurology, UCL
The General Linear Model (GLM)
General Linear Model & Classical Inference
The general linear model and Statistical Parametric Mapping
The General Linear Model
Statistical Inference
Design Matrix, General Linear Modelling, Contrasts and Inference
SPM short course at Yale – April 2005 Linear Models and Contrasts
The SPM MfD course 12th Dec 2007 Elvina Chu
The General Linear Model (GLM)
Contrasts & Statistical Inference
The General Linear Model
The general linear model and Statistical Parametric Mapping
The General Linear Model
The General Linear Model (GLM)
Contrasts & Statistical Inference
Chapter 3 General Linear Model
MfD 04/12/18 Alice Accorroni – Elena Amoruso
The General Linear Model
The General Linear Model (GLM)
Probabilistic Modelling of Brain Imaging Data
The General Linear Model
The General Linear Model
Contrasts & Statistical Inference
Presentation transcript:

SPM and (e)fMRI Christopher Benjamin

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).

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

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.

Image pre-processing (2) 4. Segmentation: tissue types. 5. Normalisation: Moves all images to a specific space – e.g. structural image, MNI 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.

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

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).

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.

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)

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

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

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

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.

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

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.

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

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 = [ p ] Expressed: = c’ x  Generally, effects of no interest weighted 0; those of interest 1 or -1.

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).

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.

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.

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.

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.

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.

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

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 =

Overall left V right image, contrast

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

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

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.

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

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

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

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).