I'm motion-correcting the scans using 3dvolreg, and using the motion parameters it gives me to calculate frame wise displacement. I would like to use this to threshold and exclude volumes with too much head movement. Would there be an AFNI command that will let me mask out the volumes? Any advice is appreciated.
Well, FD is the sum of the absolute values of the 6 motion parameters (3 changes in position and 3 changes in rotation). In AFNI, we tend to use a different combination of the same 6 parameters, called "Enorm" (the Euclidean norm): the square root of the sum of squares of them. Mathematically, FD is an L-1 norm and Enorm is an L-2 norm. So, variations on a theme. But we tend to prefer Enorm because it is more sensitive to any one given motion parameter, and displacements are L-2 norms, in general math/physics.
We also discuss this in this description/guide paper on using afni_proc.py and general FMRI processing considerations:
Reynolds RC, Glen DR, Chen G, Saad ZS, Cox RW, Taylor PA (2024). Processing, evaluating and understanding FMRI data with afni_proc.py.Imaging Neuroscience 2:1-52.
There are examples of incorporating what you are asking about (excluding, or "censoring", volumes that have motion above a given threshold amount) in that paper, as well as in many of our afni_proc.py help examples, such as this one.
Specifically, that kind of setting is made like with this option in afni_proc.py:
-regress_censor_motion 0.2
... such that any volumes where Enorm-estimated motion was >=0.2 mm would be censored.
(And we usually add another criterion for censoring, based on how many time series outliers appear at a given volume, via -regress_censor_outliers 0.05---here, if 5% of a brain mask have outliers in it, then that volume would be censored.)
Thank you so much for the thorough explanation. This new command is definitely something I'll explore in my next pipeline. Thank you for suggesting.
So back to my question, would these formula look correct to you?
FD=|roll|+|pitch|+|yaw|+|dS|+|dL|+|dP| ?
What would the unit be for each of the values given in the "x.1D" text document given by the 3dvolreg ? Would they all be millimeters or degrees?
Paul might not respond right away, so I'll chime in.
Those look correct, except that the values are the first differences in the motion parameters, not the parameters themselves. For that step, consider example 7a from 1d_tool.py -help:
Yes, that seems right.
Note that the distance from location (0,0,0) to (1,1,1) is not 3 but sqrt(3). That is why we use the Euclidean L2 norm.
-rick
1 Like
The
National Institute of Mental Health (NIMH) is part of the National Institutes of
Health (NIH), a component of the U.S. Department of Health and Human
Services.