FMRI ROI Analysis 7/18/2014Friday Yingying Wang .

27
FMRI ROI Analysis 7/18/2014 Friday Yingying Wang http://neurobrain.net/2014STBCH/index.html

Transcript of FMRI ROI Analysis 7/18/2014Friday Yingying Wang .

Page 1: FMRI ROI Analysis 7/18/2014Friday Yingying Wang .

FMRI ROI Analysis7/18/2014 Friday

Yingying Wang

http://neurobrain.net/2014STBCH/index.html

Page 2: FMRI ROI Analysis 7/18/2014Friday Yingying Wang .

2QUIZ

• What does the abbreviation ART stand for?

• Why do we need to do multiple comparison corrections?

• What’s the key difference between Fixed effects analysis (FFX) and Random Effects Analysis (RFX)?

Page 3: FMRI ROI Analysis 7/18/2014Friday Yingying Wang .

3

Why do ROI analyses?

• SPM is voxel based and ROI analyses allows you to investigate the mean activity of a particular region of the brain as opposed to just the peak voxel.

• A apriori hypotheses about a particular region of the brain. Small volume correction allows you to correct for multiple comparisons based on the # of voxels in your apriori ROI --- liberalize statistics

• Must be careful to define ROI in such way that does not make inferences dubious

• Inappropriate ROI definition has led to a great deal of controversy in neuroscience• Voodoo: Vul et al., 2009 • Double-dipping: Kriegeskorte et al., 2009

Page 4: FMRI ROI Analysis 7/18/2014Friday Yingying Wang .

4ROIs

• ROIs based upon particular contrast are biased to show a greater effect size than is truly present.

• Inferences should be performed on unbiased ROIs.• Orthogonal to contrast of interest• Defined from independent data• Separate functional localizer• Cross-validation (separate data into sample and test sets)• Separate study

• Defined anatomically

Page 5: FMRI ROI Analysis 7/18/2014Friday Yingying Wang .

5Outline

• Functional ROI definition (xjview)• Anatomical ROI definition (wfu_pick)• Small volume correction (SVC --- SPM8)• ROI extraction (rex) – extracting connectivity values

within ROI• Importance of understanding betas/correlations• Voodoo correlations/Double dipping• False positive control• Independent ROI definitions (functional & anatomical)

Page 6: FMRI ROI Analysis 7/18/2014Friday Yingying Wang .

6

Functionally defined ROIs

• xjview (by Xu Cui)• Advantages of xjview:• See task positive & negative activations/connectivity• Easily change thresholds, see anatomical locations• Easily create functional ROIs/Masks

Page 7: FMRI ROI Analysis 7/18/2014Friday Yingying Wang .

7Open T-maps

Open spmT_???.img

Let us see a live demo.

• Displays activation/deactivation connectivity/anti-correlations

• Navigate to cluster and pick cluster, shows anatomy, save ROI image, save ROI Mask.

• Select cluster (for multiple clusters)

Page 8: FMRI ROI Analysis 7/18/2014Friday Yingying Wang .

8

Anatomically defined ROIs

• Marinahttp://www.bion.de/eng/MARINA.php

Page 9: FMRI ROI Analysis 7/18/2014Friday Yingying Wang .

9WFU_Pickatlas

TD Atlas, AAL Atlas, Shapes

Page 10: FMRI ROI Analysis 7/18/2014Friday Yingying Wang .

10

Small volume correction

See a live demo.

Page 11: FMRI ROI Analysis 7/18/2014Friday Yingying Wang .

11Imcalc

ImCalc: performs user-specified algebraic manipulations on a set of images

Intersection of two images i1.*i2

Page 12: FMRI ROI Analysis 7/18/2014Friday Yingying Wang .

12ROI Extraction

• REX and Marsbar

Page 13: FMRI ROI Analysis 7/18/2014Friday Yingying Wang .

13REX GUI

Select one or more ROI files. The supported file types are *.nii, *.img, and *.tal files

Slect one or more .nii image volume files or SPM.mat file to extract data from volumes specified in a SPM design.

Page 14: FMRI ROI Analysis 7/18/2014Friday Yingying Wang .

14Source Data

• First-level analysis SPM.mat file for a given subject, the data sources will be assumed to be all of the functional data files for this subject, with one volume for each time point across all sessions included in the SPM.mat file. In this case rex will extract all of the functional time series at the specified ROIs for this subject.

• 2nd level analysis SPM.mat file, the data sources will be assumed to be the beta (or con) images specified in this analysis (one volume per regressor per subject; e.g. one contrast volume per subject for a standard second-level t-test analysis). In this case rex will effectively extract the beta/contrast values at the specified ROIs for each subject, and allow you to perform second-level analyses on the resulting data.

Page 15: FMRI ROI Analysis 7/18/2014Friday Yingying Wang .

15Data-level options

• “extract data from each ROI” to extract data separately from each ROI using the selected summary measure. The default measure is the mean, collapsed across multiple voxels. A single output text file will be created for each ROI and it will contain the ROI-level data for each source file in rows.

• “extract data from selected clusters” is similar to extracting data from each ROI, but if the ROI mask contains a disconnected set multiple clusters rex will allow the user to specify a subset of clusters and the ROI-level summary measure will only include voxels within the selected clusters.

• “extract data from each voxel” to extract the data separately from each voxel. A separate output text file will be created for each ROI containing the voxel-level data across all source files (rows) and voxels (columns).

Page 16: FMRI ROI Analysis 7/18/2014Friday Yingying Wang .

16

Mean/Median/Weighted Mean/Eigenvariates

• “mean” or “median” to obtain the mean or median of the data across the selected voxels.

• “weighted mean” to obtain a voxel-weighted mean across the selected voxels . The values of the ROI mask file at each voxel will be taken as the weights to be used when computing a weighted average across all selected voxels.

• “eigenvariate” choose the number of eigenvariates to summarize the data across voxels in terms of a singular value decomposition of the time series. Eigenvariates are extracted using a Singular Value Decomposition (SVD) of the time series across all the voxels within each ROI/cluster. For example,the first eigenvariate represents the weighted mean of the ROI data that results in the time series with maximum possible variance If extracting time-series data, you might want to scale the original data within-sessions to increase the interpretability of the data (units in percent signal change)

Page 17: FMRI ROI Analysis 7/18/2014Friday Yingying Wang .

17

Mean/median/weighted mean/eigenvariates

• “global scaling” to scale the output data based on the global mean (SPM session specific grand-mean scaling). Use this option when you want to extract a time-series in units of percent signal change referenced to the SPM default intracerebral mean of 100.

• “within-ROI scaling” to scale the output data based on the local mean (within-ROI) of the data averaged across all source files. Use this option if you wish to extract time-series in units of percent signal change referenced to the mean value of each ROI)

Page 18: FMRI ROI Analysis 7/18/2014Friday Yingying Wang .

18

REX – Explore the data

In addition to the output data files (*.rex.txt files) containing the extracted data (one file per ROI/cluster), rex will create mask files (*.rex.tal files) indicating the locations (in mm) of the voxels corresponding to the ROI/cluster associated with each data file.

Page 19: FMRI ROI Analysis 7/18/2014Friday Yingying Wang .

19

Betas and Contrasts

• Contrast vectors form weighted linear combinations of the betas• Con [.5 .5 -.5 -.5] = .5(beta1) + .5(beta2) - .5(beta3) - .5(beta4)• Con [ 1 1 -1 -1] = 1(beta1) + 1(beta2) - 1(beta3) - 1(beta4)• <<same stats but inflated betas>>• [ 1 1 1 1] = 1(beta1) + 1(beta2) + 1(beta3) + 1(beta4)• [ 2 1 -1 -2]: parametric modulation (e.g. HH>H>L>LL)

• In general, sum of contrast vector should sum to ZERO• Positive weights should sum to ONE if you want to interpret the

BETA values as % signal change (as defined in SPM) or if you have different # of sessions among subjects

<<avoid inflated beta values>>

Page 20: FMRI ROI Analysis 7/18/2014Friday Yingying Wang .

20

% signal change: Whole brain to voxel scaling

• In SPM the last N beta images (where N is the number of sessions) represent the session effects (average within-session signal for each session),

• Divide the beta images of interest from each session by the corresponding session effects and multiplying by 100.

• This can be problematic for some designs where the session effects might not be estimable due to over-redundancies in the modeled responses (e.g explicitly modeling the rest condition in a block design),

• Alternative approach is to divide the betas by the mean volume obtained after realignment (named "mean*.nii", note that these volumes are previous to grand-mean scaling) and multiplied by the grand-mean factor for the corresponding session (obtained as

• "mean(SPM.xGX.rg(SPM.Sess(n).row))", where n is the session number).

Page 21: FMRI ROI Analysis 7/18/2014Friday Yingying Wang .

21Conclusion

• If you sum the positive contrast vector to 1 as [ .5 .5 ], then you can interpret the betas as percent signal change. This is because the default "grand mean scaling" is used (this means that the raw functional signal at each voxel is divided by the global mean and multiplied by 100 to convert it to % signal change units). However, if you use [1 1] you will an inflation of beta values and you should not interpret the betas as % sig change. The stats however will be the same.

Page 22: FMRI ROI Analysis 7/18/2014Friday Yingying Wang .

22Vul’s main point

• Selecting voxels from which to report correlations from the same data used to calculate the correlations biases the results high.

• Non-independence (circularity or selection bias)

• Avoid circularity & “voodoo” statistics! (inflammatory)

Page 23: FMRI ROI Analysis 7/18/2014Friday Yingying Wang .

23

Page 24: FMRI ROI Analysis 7/18/2014Friday Yingying Wang .

24

Page 25: FMRI ROI Analysis 7/18/2014Friday Yingying Wang .

25

Page 26: FMRI ROI Analysis 7/18/2014Friday Yingying Wang .

26Independent ROI

• Anatomical definition (RAPID, Freesurfer, WFU_Pickatlas, Marina) or from the Literature (e.g., spheres around peak coords)

• Functional definition:

Cross Validation Methods (should be across subjects not sessions)

1) Multiple Data Sets

2) Split half (not practical with small n)

• **3) LOOCV: leave-one-out cross-validation involves using a single observation from the original sample as the validation data, and the remaining observations as the training data. This is repeated such that each observation in the sample is used once as the validation data. So we have 10 subjects, we define and ROI on a group analysis of 9 subjects and get the con value for the one left out, then do another group analysis of another 9 subjects and get the con value of the subject left out...etc. We script this to make it efficient.

Page 27: FMRI ROI Analysis 7/18/2014Friday Yingying Wang .

27Thank you

• THE END

• Questions?