Friday, July 1, 2022

fMRIPrep for a robust preprocessing pipeline

When dealing with neuroimaging studies, researchers often create their own preprocessing workflows that suit the individual labs and datasets. The existence of a variety of MRI analytical tools does not help with the standardization of the analysis. Recently, a group at Stanford University led by Russ Poldrack et al. came up with a robust and analysis-agnostic tool for robust and reproducible preprocessing called fMRIPrep. The software tool integrates existing software packages such as FSL, ANTs, AFNI, Nypipe, and SPM. It also works on the BIDS dataset, another useful framework to standardize neuroimaging data collection following the spirit of Open Science.

Preprocessing anatomical images

  1. Correction of intensity non-uniformity with N4BiasFieldCorrection (ANTs).
  2. Then skull-stripped the image with antsBrainExtraction.sh script (ANTs).
  3. Run recon-all (FreeSurfer) to reconstruct 2D cortical surface from the 3D T1-weighted image.
  4. Cortical grey matter segmentation is done using FreeSurfer.
  5. Do non-linear spatial normalization to the standard template* using antsRegistration (ANTs).
  6. Brain tissues: CSF, white matter/WM, and grey matter/GM are extracted using FAST (FSL).
* standard space follows the ICMB 152 nonlinear asymmetrical template (MNI, v2009c). You can also choose the slightly older version, MNI152 asymmetrical template 6th generation. 

Preprocessing functional images

  1. For each BOLD run found in the folder, we first find its reference volume, which is usually the 3D volume at midpoint (half-way through the run); and it should be skull-stripped also.
  2. Head-motion parameters are estimated using MCFLIRT (FSL).
  3. Slice timing correction is performed using 3dTshift (AFNI) if slice-time information is available.
  4. Fieldmap distortion correction is then applied for SDC around the air space.
  5. Co-registration into the subject's T1 image is done using FLIRT with BBS and 6 d.o.f (FSL).
  6. If surface reconstruction is selected, then bbresgiter (FreeSurfer) is applied for co-registration. The authors reported that this method yields the best results owing to the accuracy of GM/WM surfaces driving the process.
  7. A series of transforms of BOLD image up to the co-registration can be customized using antsApplyTransforms and Lanczos interpolation.
  8. BOLD images can be normalized to the MNI template of a different resolution: 1mm or 2mm, and to a different template version.
  9. Lastly, if ICA-AROMA* is enabled, then the pipeline will perform ICA analysis and do some denoising. At this stage, preprocessed data up to Step-7 has to be "smoothened" first before feeding it into FSL-MELODIC. 

* By default, fmriPrep will produce a non-aggresive denoised and preprocessed BOLD image in the standard space at the end of ICA-AROMA. The authors suggest that non-aggresive method of denoising is recommended as it removes less signal components that share variance with the nuisance regressors.  


Extraction of nuisance regressors

By default, there is no temporal denoising done in fMRIPrep but it produces a vast variety of nuisance regressors. This allows researchers to be more flexible in their denoising strategies.

  1. Component-based correction (CompCor) provides physiological noise regressors.
  2. PCA on high-pass filtered data is performed to yield tCompCor (top 5% of the variable voxels in the subcortical masks without any GM components) and aCompCor (intersection between mask and CSF/WM).
  3. Three nuisance regressors from CSF, WM, and whole brain signals.
  4. Framewise displacements and their first derivatives to signify head movements are also obtained (DVARS).
  5. Components produced by ICA-AROMA are also included.

No comments: