help
help > RE: Movement
May 8, 2015 01:05 AM | Alfonso Nieto-Castanon - Boston University
RE: Movement
Hi Arkan,
Some thoughts on your questions below
Hope this helps
Alfonso
Originally posted by Arkan Al-Zubaidi:
Briefly, after running first-level task-related analyses in SPM (we are not talking about connectivity analyses here, just standard functional task-related activation analyses) you would normally go to Contrast Manager and define there your contrasts of interest. Those contrasts are specified in terms of a contrast vector (as you mention) that simply defines the desired linear combination across your beta regressors (e.g. task minus baseline for a given subject). Each contrast that you define will create a con*.img volume which you would then typically enter into your second-level analyses. When using ART-based scrubbing regressors in your first-level model (e.g. in SPM's GUI 'Specify 1st-level', entering them in the 'Multiple regressors' field within the 'Data&Design' -> 'Subject/Session' options) you will typically simply disregard those regressors when defining your task-effects contrast vectors (simply enter 0's for all of the fields associated with the ART-based regressors). Once you have your contrast volumes for the task-effects (typically one volume per subject and per condition of interest) you would use SPM's GUI 'Specify 2nd-level' to define your second-level analyses and enter those volumes in the 'Design' -> 'Scans' field.
Another thing, as I understand from your last example (betaA becomes invariant to the BOLD signal values within the outlier scans you) betaA not realted to betaB and this is not clear for me, because you will compare between BetaA/subjects model in the second level. I mean if beatA becomes invariant to the BOLD signal of bad scans, why you enter betaB (associated with the task-effect) value in the second level analysis?
I was not being very clear probably. Both betaA and betaB are going to be estimated from your data (these are the regressors that SPM's first-level model estimates). betaA are the effects that you care about (e.g. the amount of task-related activation for a given subject) and the values that you are going to be entering into your second-level analyses (one value/volume per subject, for example to look at the average activation across all subjects). betaB are the effects of each outlier scan (e.g. difference between the observed BOLD signal at the outlier scan compared to the expected BOLD signal at that timepoint), and you typically do not care about these, nor are you going to do anything with the associated volumes. The point of entering these ART-based scrubbing regressors into your first-level model is not that you want to use that betaB information for anything, but rather to "free" the betaA values from unwanted influence of the outlier scans (which is captured by the betaB values).
If you are unclear how that works consider this example. Say you have a BOLD signal over five scans with values:
Y =
2
7
200
4
5
and you want to estimate the average BOLD signal using a design matrix:
A =
1
1
1
1
1
Let's say ART has identified the third scan as an outlier, so your new design matrix (including one new regressor for the identified outlier scan) is:
[A B] =
1 0
1 0
1 1
1 0
1 0
When you use linear regression to fit the data Y (e.g. in Matlab use "beta = [A B]\Y") you will get:
betaA = 4.5
betaB = 195.5
Note that betaA is actually representing the average BOLD signal disregarding the 3rd scan (i.e. the average BOLD signal across the 1st, 2nd, 4th and 5th scans), and betaB is representing the departure between the third scan BOLD signal and that average. Also note that the estimated betaA value is going to be exactly the same if you change the 3rd value of Y from 200 to say 500 (that will only change the estimated betaB value, but not the estimated betaA value). This is the "invariance" I was referring to, and those betaA values (e.g. 4.5) are the values that you estimate in your first-level model for each subject and for each task effect and which you later enter into your second-level analyses to do group/population-level inferences (the betaB values, e.g. 195.5, you typically simply disregard / do not need to care about)
Hope this helps
Alfonso
Some thoughts on your questions below
Hope this helps
Alfonso
Originally posted by Arkan Al-Zubaidi:
Hi Alfonso,
Thanks for your explanation, and I like your way for explanation with formulas.
But, now how can I select and enter those beta values associated with the task-effect into second level ( should I enter as a Multiple Covariates (mat fail))? Because in the first level, I can select the ART regressor associated with the task-effect by enter a contrast in SPM.mat file ( for example: if I have six regressors and two of them associated with the task-effect, then I should select the regressors in the first level like this C1=[0 0 0 1 0 0], C2=[0 0 0 0 0 1 0]).
Thanks for your explanation, and I like your way for explanation with formulas.
But, now how can I select and enter those beta values associated with the task-effect into second level ( should I enter as a Multiple Covariates (mat fail))? Because in the first level, I can select the ART regressor associated with the task-effect by enter a contrast in SPM.mat file ( for example: if I have six regressors and two of them associated with the task-effect, then I should select the regressors in the first level like this C1=[0 0 0 1 0 0], C2=[0 0 0 0 0 1 0]).
Briefly, after running first-level task-related analyses in SPM (we are not talking about connectivity analyses here, just standard functional task-related activation analyses) you would normally go to Contrast Manager and define there your contrasts of interest. Those contrasts are specified in terms of a contrast vector (as you mention) that simply defines the desired linear combination across your beta regressors (e.g. task minus baseline for a given subject). Each contrast that you define will create a con*.img volume which you would then typically enter into your second-level analyses. When using ART-based scrubbing regressors in your first-level model (e.g. in SPM's GUI 'Specify 1st-level', entering them in the 'Multiple regressors' field within the 'Data&Design' -> 'Subject/Session' options) you will typically simply disregard those regressors when defining your task-effects contrast vectors (simply enter 0's for all of the fields associated with the ART-based regressors). Once you have your contrast volumes for the task-effects (typically one volume per subject and per condition of interest) you would use SPM's GUI 'Specify 2nd-level' to define your second-level analyses and enter those volumes in the 'Design' -> 'Scans' field.
Another thing, as I understand from your last example (betaA becomes invariant to the BOLD signal values within the outlier scans you) betaA not realted to betaB and this is not clear for me, because you will compare between BetaA/subjects model in the second level. I mean if beatA becomes invariant to the BOLD signal of bad scans, why you enter betaB (associated with the task-effect) value in the second level analysis?
I was not being very clear probably. Both betaA and betaB are going to be estimated from your data (these are the regressors that SPM's first-level model estimates). betaA are the effects that you care about (e.g. the amount of task-related activation for a given subject) and the values that you are going to be entering into your second-level analyses (one value/volume per subject, for example to look at the average activation across all subjects). betaB are the effects of each outlier scan (e.g. difference between the observed BOLD signal at the outlier scan compared to the expected BOLD signal at that timepoint), and you typically do not care about these, nor are you going to do anything with the associated volumes. The point of entering these ART-based scrubbing regressors into your first-level model is not that you want to use that betaB information for anything, but rather to "free" the betaA values from unwanted influence of the outlier scans (which is captured by the betaB values).
If you are unclear how that works consider this example. Say you have a BOLD signal over five scans with values:
Y =
2
7
200
4
5
and you want to estimate the average BOLD signal using a design matrix:
A =
1
1
1
1
1
Let's say ART has identified the third scan as an outlier, so your new design matrix (including one new regressor for the identified outlier scan) is:
[A B] =
1 0
1 0
1 1
1 0
1 0
When you use linear regression to fit the data Y (e.g. in Matlab use "beta = [A B]\Y") you will get:
betaA = 4.5
betaB = 195.5
Note that betaA is actually representing the average BOLD signal disregarding the 3rd scan (i.e. the average BOLD signal across the 1st, 2nd, 4th and 5th scans), and betaB is representing the departure between the third scan BOLD signal and that average. Also note that the estimated betaA value is going to be exactly the same if you change the 3rd value of Y from 200 to say 500 (that will only change the estimated betaB value, but not the estimated betaA value). This is the "invariance" I was referring to, and those betaA values (e.g. 4.5) are the values that you estimate in your first-level model for each subject and for each task effect and which you later enter into your second-level analyses to do group/population-level inferences (the betaB values, e.g. 195.5, you typically simply disregard / do not need to care about)
Hope this helps
Alfonso
Originally posted by Alfonso
Nieto-Castanon:
Hi
Arkan,
Some thoughts on your questions below
Best
Alfonso
Originally posted by Arkan Al-Zubaidi:
If you were to use a single regressor then only the average BOLD signal effect across all of the outlier scans would be modeled (one effect). By entering one regressor per outlier scan then the BOLD signal effect of each outlier scan will be modeled (one effect per outlier). We want to model the effect of each outlier scan separately because it is not reasonable to assume that different outliers will produce the same effect on the BOLD signal.
2- How CONN uses the ART file "art regression outliers and movement*.mat" to remove the effect of movement parameters and bad scans (volumes)? It is not clear for me what CONN do exactly. I know, CONN remove the effect of movement and bad scans form whole brain, but How?
Typically the ART files will be entered as a first-level covariate (e.g. 'scrubbing') and that covariate will be added to the 'confounds' list in the Denoising step. That will estimate and remove the modeled effects from the BOLD signal timeseries (for every voxel and for every ROI). More precisely, a linear model of the form
Y = X * b
will be estimated, where Y is a BOLD signal timeseries (e.g. from a given voxel), X are the effects entered in the confounds list (e.g. ARTcovariates), and b is estimated using linear regression. Then the 'corrected' BOLD timeseries will be:
Y(corrected) = Y-X*b;
3- If I need to use SPM, I will put ART file "art_regression_outliers_and _movement_*.mat" as regressors in GLM, here ART will include a single regressor for each scan that I want to remove. Then, SPM will estimate a beta value for that regressor ( beta value for bad scan). Would you clarify how this will effect about the results (theory of GLM), please?
If you are using SPM, for example, to analyze task-related effects, then SPM is creating a design matix characterizing your task-effects (e.g. hrf-convolved blocks, in a block design). Then the additional covariate regressors (e.g. ART regressors) are added as additional columns to this design matrix. SPM then estimates jointly the beta values of this model (one beta value for each regressor, i.e. task effects as well as covariates of no interest effects) using linear regression. The beta volumes associated with your covariates of no interest (e.g. ART regressors) you can typically disregard, but the important thing is that now the beta volumes associated with your task-related effects (effects of interest) will be unaffected by the outlier scans BOLD signal values (since those are being modeled by the 'covariates of no interest' columns of your extended design matrix). You can then typically enter those beta values associated with the task- effects into the standard second-level / between-subjects model without having to worry about the effect of outlier scans.
In more precise terms, if you have a design matrix A containing your task-related effects (e.g. hrf-convolved timeseries), and a B matrix containing your ART parameters (one regressor per outlier scan), then SPM will estimate the following GLM model:
Y = [A B] * [betaA; betaB]
where Y is again the BOLD signal within a given voxel, betaA are your estimated task-effects of interest (the ones you want typically to pass to your second-level analyses), and betaB are the (typically disregarded) estimated outlier-scan efects. The nice thing about this model is that changing the value of Y associated with a modeled outlier-scan is not going to change the estimated value of betaA, so betaA becomes invariant to the BOLD signal values within the outlier scans (the desired behavior to remove the influence of these outlier scans on your analyses)
Hope this helps
Alfonso
Some thoughts on your questions below
Best
Alfonso
Originally posted by Arkan Al-Zubaidi:
Hi all,
At the beginning, I would like to thank you for this toolbox. Since I am beginner in fMRI studies and FC and I try to understand how ART works, therefore I have some questions:
1- Why ART make a single regressor for each scan you want to remove ( why not make a single regressor for all scans you want to remove, like movement parameters)?
At the beginning, I would like to thank you for this toolbox. Since I am beginner in fMRI studies and FC and I try to understand how ART works, therefore I have some questions:
1- Why ART make a single regressor for each scan you want to remove ( why not make a single regressor for all scans you want to remove, like movement parameters)?
If you were to use a single regressor then only the average BOLD signal effect across all of the outlier scans would be modeled (one effect). By entering one regressor per outlier scan then the BOLD signal effect of each outlier scan will be modeled (one effect per outlier). We want to model the effect of each outlier scan separately because it is not reasonable to assume that different outliers will produce the same effect on the BOLD signal.
2- How CONN uses the ART file "art regression outliers and movement*.mat" to remove the effect of movement parameters and bad scans (volumes)? It is not clear for me what CONN do exactly. I know, CONN remove the effect of movement and bad scans form whole brain, but How?
Typically the ART files will be entered as a first-level covariate (e.g. 'scrubbing') and that covariate will be added to the 'confounds' list in the Denoising step. That will estimate and remove the modeled effects from the BOLD signal timeseries (for every voxel and for every ROI). More precisely, a linear model of the form
Y = X * b
will be estimated, where Y is a BOLD signal timeseries (e.g. from a given voxel), X are the effects entered in the confounds list (e.g. ARTcovariates), and b is estimated using linear regression. Then the 'corrected' BOLD timeseries will be:
Y(corrected) = Y-X*b;
3- If I need to use SPM, I will put ART file "art_regression_outliers_and _movement_*.mat" as regressors in GLM, here ART will include a single regressor for each scan that I want to remove. Then, SPM will estimate a beta value for that regressor ( beta value for bad scan). Would you clarify how this will effect about the results (theory of GLM), please?
If you are using SPM, for example, to analyze task-related effects, then SPM is creating a design matix characterizing your task-effects (e.g. hrf-convolved blocks, in a block design). Then the additional covariate regressors (e.g. ART regressors) are added as additional columns to this design matrix. SPM then estimates jointly the beta values of this model (one beta value for each regressor, i.e. task effects as well as covariates of no interest effects) using linear regression. The beta volumes associated with your covariates of no interest (e.g. ART regressors) you can typically disregard, but the important thing is that now the beta volumes associated with your task-related effects (effects of interest) will be unaffected by the outlier scans BOLD signal values (since those are being modeled by the 'covariates of no interest' columns of your extended design matrix). You can then typically enter those beta values associated with the task- effects into the standard second-level / between-subjects model without having to worry about the effect of outlier scans.
In more precise terms, if you have a design matrix A containing your task-related effects (e.g. hrf-convolved timeseries), and a B matrix containing your ART parameters (one regressor per outlier scan), then SPM will estimate the following GLM model:
Y = [A B] * [betaA; betaB]
where Y is again the BOLD signal within a given voxel, betaA are your estimated task-effects of interest (the ones you want typically to pass to your second-level analyses), and betaB are the (typically disregarded) estimated outlier-scan efects. The nice thing about this model is that changing the value of Y associated with a modeled outlier-scan is not going to change the estimated value of betaA, so betaA becomes invariant to the BOLD signal values within the outlier scans (the desired behavior to remove the influence of these outlier scans on your analyses)
Hope this helps
Alfonso
Threaded View
Title | Author | Date |
---|---|---|
Kaylah Curtis | Jul 23, 2014 | |
Mary Newsome | Apr 2, 2015 | |
Alfonso Nieto-Castanon | Apr 6, 2015 | |
Alfonso Nieto-Castanon | Jul 29, 2014 | |
Xiaozhen You | Mar 31, 2015 | |
Fred Uquillas | Mar 31, 2015 | |
Xiaozhen You | Apr 1, 2015 | |
Fred Uquillas | Apr 1, 2015 | |
Alfonso Nieto-Castanon | Apr 2, 2015 | |
Xiaozhen You | Apr 2, 2015 | |
Ekaterina Shcheglova | Mar 26, 2023 | |
Fred Uquillas | Apr 24, 2015 | |
Alfonso Nieto-Castanon | Apr 28, 2015 | |
Fred Uquillas | May 6, 2015 | |
Arkan A | May 6, 2015 | |
Alfonso Nieto-Castanon | May 6, 2015 | |
Arkan A | May 7, 2015 | |
Alfonso Nieto-Castanon | May 8, 2015 | |
Arkan A | May 8, 2015 | |
Bradley Taber-Thomas | Sep 30, 2014 | |
Alfonso Nieto-Castanon | Oct 1, 2014 | |
Bradley Taber-Thomas | Oct 1, 2014 | |
Alfonso Nieto-Castanon | Nov 19, 2014 | |
Kaylah Curtis | Jul 29, 2014 | |
Alfonso Nieto-Castanon | Jul 30, 2014 | |
Alexander Drobyshevsky | Oct 21, 2014 | |
Alfonso Nieto-Castanon | Nov 19, 2014 | |
Kaylah Curtis | Jul 30, 2014 | |
Aleksandra Herman | Oct 23, 2014 | |