Multi-Echo fMRI Analysis Using tedana
This tutorial is a walkthrough of task-based multi-echo fMRI preprocessing using fmriprep, tedana, and afni. There are multiple pipelines available that can be customized to your specific project and which utilize different combination methods. Even if you do not choose to use tedana, their documentation is very thoroughly and provides a strong basis to build your own workflow. Their background on multi-echo methods and general guidelines for preprocessing can be found at this link. A more comprehensive list of resources will be listed at the end of this tutorial.
Background
What is Multi-Echo fMRI?
Researchers interested in multi-echo (ME) fMRI are likely already familiar with standard, single-echo (SE) fMRI sequences. In SE fMRI, one volume is collected at each repetition time (TR). This is done with an excitation pulse, followed by one readout of the data at the echo time (TE). Choosing an echo time depends on what tissue type and brain region you are interested in- typically it is chosen to maximize bold contrast across the brain (the average T2* of brain). Since you are measuring one readout for every TR, the resulting dataset is a complete time series for every voxel as depicted below.

ME fMRI is similar to SE fMRI in that there is only one initial excitation pulse. However, immediately following that pulse, multiple readouts are acquired at various chosen echo times. The subsequent "echos" come at the cost of an increased TR, but with the integration of acceleration methods like GRAPPA and multiband, little TR sacrifice (if any) is necessary. The number of echos typically ranges from 3-5, but it is possible to acquire more. The upper limit to the number of echos is when the signal fully decays, requiring another excitation pulse.
Typically, the first echo is acquired immediately following the excitation pulse, followed by a second echo at what would be the typical TE (~40-60ms), and then all remaining echos.
The result of ME fMRI is multiple complete time series per voxel (one for each echo). These separate time series can be combined using various methods.

Why collect multiple echos?

As TE increases, signal decays. Typically, in SE fMRI, researchers select a TE that maximizes the BOLD contrast across the brain. This is not perfect, due to variations in susceptibility across different tissue types, blood, CSF, and the sinuses. Choosing a TE that maximizes BOLD contrast across the brain often results in signal dropout in regions near air/sinuses. For example, you can see below that the signal in the temporal lobe decays at a faster rate than other brain regions. This is due to its close proximity to air in the ear canals.

Each echo comes with a unique cost/benefit:
EARLY: An echo captured as soon as possible will have low contrast but high SNR
OPTIMAL: the optimal TE (30-60ms) is a "happy medium", with some noise but with the additional bold sensitivity/contrast
LATE: high contrast and low SNR
The aim of ME processing is to take advantage of the benefit of each echo by combining them into one image/time series.
Multi-Echo fMRI Preprocessing
General Overview
Pre-tedana Steps (fmriprep):
Motion Correction
Slice timing correction
Echo Combination/ME Denoising (tedana)
Final Preprocessing/Regression (afni)
Distortion correction
Spatial normalization
Smoothing
Rescaling or filtering
Regression Analysis
Step by Step Guide
Install tedana and organize data
Install tedana
For ease of use, you can download tedana to your local bin directory on Oscar
Download your MRI data and save it in a BIDS formatted directory
This can be completed via xnat2bids on oscar (Instructions here)
Prepare behavioral task timing files (If doing task based ME-EPI)
Download your behavioral timing files (e.g. from psychopy) and place them in
$bidsroot/sourcedata/sub-xxx/ses-xx/behConvert them to BIDS-friendly tsv files located in
$bidsroot/sub-xxx/ses-xx/funcIf you are doing your regression with afni, they need to be converted to 1D files
These 1D files should be stored in
$bidsroot/derivatives/afni/sub-xxx/ses-xx/stimtimes
Example file conversion scripts for both single subject and group analysis can be found in our documentation on task-based fMRI analysis.
Preprocess the individual echos using fmriprep
Launch the script below by following the instructions found here.
It is important that the “
--me-output-echos” flag is includedData can be in any space you want
Input: the BIDS-formatted data per subject
Output: Preprocessed dataset, including individual echos. Output is located in
$bidsroot/derivatives/fmriprep
Combine echos using tedana
A note on multi-run data: tedana does not accept multiple runs of data in one command. Individual tedana commands are used for every run, and the preprocessed runs can then be combined in the regression
Run tedana with basic defaults using this script:
Information on the outputs of tedana can be found on the tedana website. tedana does not have its own GUI- to visually inspect the data, you can open the viewer of your choice (afni, fsleyes, etc).

Run a regression for task data using afni
Use antsApplyTransforms to warp all runs into the same space.
This section of code is based on this example provided by the tedana team
In the fmriprep output, there are corresponding transformation files for each space you specify in your fmriprep command. In this guide, we are not warping the data into standard space (MNI, tlrc), but instead warping all ME functional runs to the anatomical dataset. If you are doing group-level analysis in standard space, then change the antsApplyTransforms flags
-rand-tto your desired space. The instructions on the tedana site (provided above) do this- please refer to that for more information about warping to standard space.
Run afniproc
Input:
Fmriprepped T1 anatomical scan
Fmriprepped individual echos (after transforming to the same space)
Stimulus timing files (already converted to afni 1D files)
Output: statistical files (from 3dDeconvolve and/or 3dREML)
Helpful Resources
Video: CMN Core Presentation Series: Advantages of multi-echo fMRI, 2019
Posse S. Multi-echo acquisition. Neuroimage. 2012
Poser et al., BOLD contrast sensitivity enhancement and artifact reduction with multiecho EPI: parallel-acquired inhomogeneity-desensitized fMRI. Magn Reson Med. 2006
Kundu et al., Differentiating BOLD and non-BOLD signals in fMRI time series using multi-echo EPI. Neuroimage, 2012
Posse S. Multi-echo acquisition. Neuroimage. 2012
Kundu et al., Multi-echo fMRI: A review of applications in fMRI denoising and analysis of BOLD signals. Neuroimage. 2017
Lynch et al., Rapid Precision Functional Mapping of Individuals Using Multi-Echo fMRI. Cell Rep. 2020
Last updated
Was this helpful?