AFNI Preprocessing: Outline, Recommendations, and New(ish) Stuff. Robert W Cox SSCC / NIMH & NINDS / NIH / DHHS / USA / EARTH

Similar documents
Journal of Articles in Support of The Null Hypothesis

Functional MRI data preprocessing. Cyril Pernet, PhD

This Time. fmri Data analysis

White Pixel Artifact. Caused by a noise spike during acquisition Spike in K-space <--> sinusoid in image space

SPM8 for Basic and Clinical Investigators. Preprocessing. fmri Preprocessing

Basic fmri Design and Analysis. Preprocessing

Functional MRI in Clinical Research and Practice Preprocessing

EPI Data Are Acquired Serially. EPI Data Are Acquired Serially 10/23/2011. Functional Connectivity Preprocessing. fmri Preprocessing

Introduction to fmri. Pre-processing

SPM8 for Basic and Clinical Investigators. Preprocessing

Fmri Spatial Processing

Function-Structure Integration in FreeSurfer

FSL Pre-Processing Pipeline

AFNI Introduction (Bob Cox)

FSL Pre-Processing Pipeline

FMRI Pre-Processing and Model- Based Statistics

Statistical Analysis of Neuroimaging Data. Phebe Kemmer BIOS 516 Sept 24, 2015

I.e. Sex differences in child appetitive traits and Eating in the Absence of Hunger:

Surface-based Analysis: Inter-subject Registration and Smoothing

Single Subject Demo Data Instructions 1) click "New" and answer "No" to the "spatially preprocess" question.

Analysis of fmri data within Brainvisa Example with the Saccades database

Math in image processing

Real-Time FMRI Tools & Automation in AFNI & SUMA

Artifact detection and repair in fmri

Overview of fmri Analysis Software. McConnell BIC Open Methods Meetup January 13th 2013

AFNI. h'p://afni.nimh.nih.gov/afni

The organization of the human cerebral cortex estimated by intrinsic functional connectivity

Computational Neuroanatomy

Transforming Datasets to Talairach-Tournoux Coordinates

fmri Image Preprocessing

SPM Introduction. SPM : Overview. SPM: Preprocessing SPM! SPM: Preprocessing. Scott Peltier. FMRI Laboratory University of Michigan

SPM Introduction SPM! Scott Peltier. FMRI Laboratory University of Michigan. Software to perform computation, manipulation and display of imaging data

Basic principles of MR image analysis. Basic principles of MR image analysis. Basic principles of MR image analysis

Basic Introduction to Data Analysis. Block Design Demonstration. Robert Savoy

fmri Preprocessing & Noise Modeling

Analysis of Functional MRI Timeseries Data Using Signal Processing Techniques

Neuroimaging and mathematical modelling Lesson 2: Voxel Based Morphometry

Playing with data from lab

GLM for fmri data analysis Lab Exercise 1

Supplementary methods

Artifact Detection and Repair: Overview and Sample Outputs

NIH Public Access Author Manuscript Neuroimage. Author manuscript; available in PMC 2010 March 5.

Tutorial BOLD Module

Methods for data preprocessing

Preprocessing of fmri data

Graph Theoretic General Linear Model (GTG)

fmri pre-processing Juergen Dukart

the PyHRF package P. Ciuciu1,2 and T. Vincent1,2 Methods meeting at Neurospin 1: CEA/NeuroSpin/LNAO

Cocozza S., et al. : ALTERATIONS OF FUNCTIONAL CONNECTIVITY OF THE MOTOR CORTEX IN FABRY'S DISEASE: AN RS-FMRI STUDY

METAlab Graph Theoretic General Linear Model

First-level fmri modeling

Cognitive States Detection in fmri Data Analysis using incremental PCA

FROM IMAGE RECONSTRUCTION TO CONNECTIVITY ANALYSIS: A JOURNEY THROUGH THE BRAIN'S WIRING. Francesca Pizzorni Ferrarese

Introduction to Neuroimaging Janaina Mourao-Miranda

The WU-Minn HCP Open Access Initial Data Release: User Guide. Appendix 2 File Names and Directory Structure for Minimally Pre-Processed Data

Image Registration + Other Stuff

An Introduction To Automatic Tissue Classification Of Brain MRI. Colm Elliott Mar 2014

Diffusion Tensor Imaging and Reading Development

Preprocessing II: Between Subjects John Ashburner

Noise Models and Correction for fmri

Multi-voxel pattern analysis: Decoding Mental States from fmri Activity Patterns

HST.583 Functional Magnetic Resonance Imaging: Data Acquisition and Analysis Fall 2006

NEURO M203 & BIOMED M263 WINTER 2014

Lilla Zöllei A.A. Martinos Center, MGH; Boston, MA

Issues Regarding fmri Imaging Workflow and DICOM

MR IMAGE SEGMENTATION

FSL Workshop Session 3 David Smith & John Clithero

SPM99 fmri Data Analysis Workbook

Diffusion model fitting and tractography: A primer

Quantitative MRI of the Brain: Investigation of Cerebral Gray and White Matter Diseases

Noise and Artifacts in FMRI

Where are we now? Structural MRI processing and analysis

Resting State fmri Data Processing. Resting State fmri Data Processing 2018/8/21. Data Processing of Resting-State fmri: DPARSF DPARSF DPARSF DPABI

Supplementary Data. in residuals voxel time-series exhibiting high variance, for example, large sinuses.

Head motion in diffusion MRI

Automatic Registration-Based Segmentation for Neonatal Brains Using ANTs and Atropos

Brain Extraction, Registration & EPI Distortion Correction

User s Guide Neuroimage Processing ToolKit (NPTK) Version.1.7 (beta) fmri Registration Software Pipeline for Functional Localization

HST.583 Functional Magnetic Resonance Imaging: Data Acquisition and Analysis Fall 2008

fmri Analysis Sackler Ins2tute 2011

Last Time. This Time. Thru-plane dephasing: worse at long TE. Local susceptibility gradients: thru-plane dephasing

Structural Segmentation

PRANA. Project Review and Analysis. March (Pre-release and still under development!)

Automated MR Image Analysis Pipelines

CONN fmri functional connectivity toolbox

Histograms. h(r k ) = n k. p(r k )= n k /NM. Histogram: number of times intensity level rk appears in the image

Measuring baseline whole-brain perfusion on GE 3.0T using arterial spin labeling (ASL) MRI

Structural Segmentation

Spatial Regularization of Functional Connectivity Using High-Dimensional Markov Random Fields

Quality Checking an fmri Group Result (art_groupcheck)

Zurich SPM Course Voxel-Based Morphometry. Ged Ridgway (Oxford & UCL) With thanks to John Ashburner and the FIL Methods Group

Anatomic parcellation based on DTI data with FSL taking the example of SMA/preSMA

MB-EPI PCASL. Release Notes for Version February 2015

Introduc)on to fmri. Natalia Zaretskaya

Event-related design efficiency and How to plot fmri time series. Sepideh Sadaghiani NeuroSpin Methods Meeting 15. Sept. 2008

High Performance Computing in Neuroimaging using BROCCOLI. Anders Eklund, PhD Virginia Tech Carilion Research Institute

Best Practices in Data Analysis and Sharing in Neuroimaging using MRI

FEAT 3 - Advanced FMRI Analysis

1 Introduction Motivation and Aims Functional Imaging Computational Neuroanatomy... 12

BESA Research. CE certified software package for comprehensive, fast, and user-friendly analysis of EEG and MEG

Transcription:

AFNI Preprocessing: Outline, Recommendations, and New(ish) Stuff Robert W Cox SSCC / NIMH & NINDS / NIH / DHHS / USA / EARTH HBM 2016 As a work of a US Government official, this presentation is not copyrighted

AFNI s recommended pre-processing steps HJ Jo et al, 2010 and 2013 For RS-FMRI (optional) Carried out using afni_proc.py Your Analysis

Step 1 = Despiking (before)

Step 1 = Despiking (after)

More about Despiking 3dDespike does each voxel time series separately! Before 3D time series registration! Empirically: we found this is better than after registration Why not rely on time series censoring later on?! Censoring will remove time points from analysis that are bad in a global (over the whole brain) sense " From head motion or from lots of coincident spikes! Censoring will not remove spikes that occur sporadically in space and time " Since censoring only works on an all-or-nothing basis for a particular 3D volume in the time series Important? Not always, but helps sometimes.

Step 2 = Slice Timing Correction 2D Slices acquired at different times within one 3D volume TR The same physiological BOLD effect in 2 different slices will show up differently due to being measured at different times And so will be less correlated (with each other or with task model) than they should be 3dTshift interpolates in time to some common reference point before calculating correlations Not ideal, because we are also interpolating noise

Lining Brains Up: Step 3 = Motion Correct EPI Step 4 = Align EPI with Anatomy Step 5 = Spatial Normalization Step 3: Especially important for RS-FMRI, since the BOLD effect is smaller and more spatially diffused than in Task-FMRI, so correcting for subject head motion is crucial Step 4: Needed for step 5, and for identifying brain regions underneath the blobs Step 5: Needed for group studies and/or to use template-based atlases

More about Alignment - 1 Step 3: Intra-EPI volumes are aligned with rigid-body matrix transformation (6 parameters) in program 3dvolreg! Motion parameter estimates (angles and shifts) are saved for later uses (including Step 5)! Matrix for adjustment is saved for each time point Step 4: EPI-to-Anat alignment is with general matrix transformation (12 parameters) in program 3dAllineate! Transformation matrix is saved for Step 5! Can include minor nonlinear warping for B 0 effects! [not currently in afni_proc.py but in unwarpepi.py]

More about Alignment - 2 Step 5: Anat-to-Template alignment can be done with nonlinear warping [3dQwarp] or with affine (general matrix) transformation [3dAllineate]! Nonlinear warping is slower, of course! This is where having a compute cluster helps At the end: the EPI-to-Template-space transformations nonlinear warps and/or matrices are catenated into one interpolation step (for each TR) in 3dNwarpApply or cat_matvec+3dallineate! Default interpolation is windowed sinc, but other options are available

Alignment: Affine vs Nonlinear Seed-Based Correlation (seed at crosshairs) Average Across 36 Subjects (InstaCorr) [black outlines = per-voxel p 10-4 in 1-sample t-test] [red = mean correlation 0.3]

Step 6 = Extract Tissue Based Regressors The purpose of tissue based regressors is to extract fluctuations in the data that are not BOLD signal So we can regress them out of the data at Step 8 Common choices include (options in afni_proc.py): o Average of all white matter (WM) signal time series o Several principal components of all WM time series (CompCor method) o Average global brain signal time series (GS) # o Average signal from CSF in ventricles Less common: ANATicor

ANATicor Tissue Based per voxel Eroded WM mask (WMe) Average over WMe voxels inside 20mm radius

ANATicor Tissue Based per voxel Eroded WM mask (WMe) Each voxel has a different nuisance regressor

More about Nuisance Regressors Intended to model undesirable parts of the signal in time In AFNI:! Motion parameters and their derivatives " Too much motion in one TR, or too many outliers = Censor that time point o Too much = 0.3 mm (Task-FMRI), 0.2 mm (RS-FMRI)! If you have physiological measurements (respiration, pulse oximeter), RetroTS.py can create regressors that attempt to remove such effects " RETROICOR (Glover) + RVT (Birn)

Step 7 = Spatial Blurring Especially important for RS-FMRI, since the BOLD signal fluctuations are small Averaging locally will tend to cancel noise and add up coherent signals Important: blur after tissue based signal extraction Otherwise, will get unintended signals in WM and CSF extractions that were blurred in from nearby GM (gray matter) Blurring can be in entire volume [3dmerge] or restricted to the brain mask [3dBlurInMask]

Effects of Blurring on RS Correlation 0mm 1mm 2mm 3mm 4mm 5mm 6mm 7mm Vascular/cardiac effect being progressively smeared? Or real neural correlations seen via BOLD? Or some of both?

Step 8 = Nuisance Regression - 1 In Task-FMRI, regression is to find the signal amplitudes (betas) of the task model components while at the same time removing the nuisance model components o Nuisances: motion parameters, motion parameter time derivatives, WM signals, respiration-derived signals, drifting baseline, et cetera In RS-FMRI, there are no task model components to estimate o All we want is to remove the nuisance components and compute the residuals these residuals are the output, ready for correlations

Step 8 = Nuisance Regression - 2 Another operation usually (but not always) used in RS-FMRI is called bandpassing It involves removing all frequency components from the data except those in a specific band Frequency: units are Hertz (Hz) o 1 Hz = 1 cycle per second o 0.01 Hz = 0.01 cycle per second = 1 cycle in 100 seconds In RS-FMRI, it is common to bandpass out all frequencies higher than 0.10 Hz (or 0.20 Hz) and smaller than 0.01 Hz o Keep only 10-100 (or 5-100) second cycles; faster or slower = FILTERED OUT OF THE DATA The idea is that these do not contain BOLD, just noise, so should be removed before correlation

Step 8 = Nuisance Regression - 3 It is also common to censor out bad time points, so they aren t used in the correlation o Bad = too much motion, or that volume has too many outlier data points In AFNI, nuisance regression, bandpassing, and censoring for RS-FMRI are all done in the same program: 3dTproject o Which allows for voxel-specific regressors (ANATicor) For Task-FMRI, regression and single-subject statistics are done in program 3dREMLfit o Also allows for voxel-specific nuisances and voxelspecific ARMA(1,1) temporal correlation modeling

Step 8 = Nuisance Regression - 4 Bad old days: Some did these 2 steps in sequence: Bandpass the data Regress other nuisance components from the bandpassed data Doing these operations in 2 steps (instead of one) is not just bad, it is WRONG (matrix multiplication is non-abelian) Since the nuisance regressors will contain some of the unwanted frequency components, these unwanted components will leak back into the data at the second regression If the nuisance regressors were bandpassed themselves, then the problem would not happen The same thing applies to bandpassing and censoring they should be done together These reasons are why 3dTproject was written

da capo AFNI s recommended pre-processing steps HJ Jo et al, 2010 and 2013 For RS-FMRI (optional) Carried out using afni_proc.py Your Analysis

RS-FMRI Preprocess via afni_proc.py ## Adapted from Example 9b in afni_proc.py help afni_proc.py -subj_id s620 \ -dsets s620_rest_r1.nii copy_anat s620_anat.nii \ -blocks despike tshift align tlrc volreg \ blur mask regress \ -tcat_remove_first_trs 2 \ -volreg_align_e2a tlrc_nl_warp \ -blur_size 6 -blur_in_automask \ -regress_anaticor_fast \ -regress_censor_motion 0.2 \ -regress_censor_outliers 0.02 \ -regress_bandpass 0.01 0.20 \ -regress_apply_mot_types demean deriv \ -regress_run_clustsim no

motion limit : 0.2 num TRs above mot limit : 2 average motion (per TR) : 0.0925227 average censored motion : 0.0914375 max motion displacement : 0.788964 max censored displacement : 0.788964 outlier limit : 0.02 average outlier frac (TR) : 0.000486089 num TRs above out limit : 0 num runs found : 1 num TRs per run : 225 num TRs per run (applied) : 221 num TRs per run (censored): 4 fraction censored per run : 0.0177778 TRs total (uncensored) : 225 TRs total : 221 degrees of freedom used : 12 degrees of freedom left : 209 TRs censored : 4 censor fraction : 0.017778 num regs of interest : 1 num TRs per stim (orig) : 154 num TRs censored per stim : 2 fraction TRs censored : 0.013 ave mot per sresp (orig) : 0.090031 ave mot per sresp (cens) : 0.089095 afni_proc.py outputs a summary of what was found during processing It also creates a review script to drive AFNI GUI to show you the data as it moves through the various processing blocks (intermediate datasets are saved for post mortems)

Example: Motion Artifacts Effect of motion on RS-FMRI correlations depends on distance between regions (Power et al 2012) Data generously made available by Power et al Original Method Processed in AFNI

Final Note Surface-Based Analysis Most of the processing steps can be carried out, with afni_proc.py also projecting the EPI data to surface models of the cortex! Surfaces typically come from FreeSurfer, but can be imported from other software! Surface models are standardized amongst subjects, to make group analyses simpler After 3D time series registration, EPI data get put onto the cortical surface nodes Processing proceeds on the surface from there Blurring is done on surface, not in volume

Task-FMRI Results on Surfaces

Opening up the Surfaces

Acknowledgments Robert W. Cox Hang Joon Jo Rick Reynolds Mike Beauchamp Hang Joon Jo Rick Reynolds Ziad Saad and a cast of thousands