Home > BrainVoyager > Available Tools > Available plugins > anatabacus plugin: EPI distortion correction (fieldmap-based)

anatabacus plugin: EPI distortion correction (fieldmap-based)

Some background information

EPI distortion correction - to correct for geometric distortions caused by the susceptibility artifact - can be performed as a preprocessing step with the anatabacus plugin or the COPE plugin. The anatabacus plugin uses the pixelshift method by Jezzard & Balaban, 1995. The pixelshift for each voxel is calculated using a B0 fieldmap and some acquisition parameters: phase encoding bandwidth and phase encoding direction of the EPI data, and echo time difference of the "fieldmap". For Siemens scanners, the fieldmap sequence is gre_field_mapping. This sequence acquires two similar T2 images with different echo times. Magnitude and phase images are reconstructed (usually one only receives the magnitude data). Since the two phase images are subtracted from each other, the result is two magnitude and one so-called 'differential phase map'. After unwrapping (removing jumps of 2 pi) and rescaling to Hertz, this differential phase map is used to calculate the shift for each pixel.

Figure: acquisition parameters; please note that FSL uses the word 'dwell time' in the sense of 'echo spacing'.

To calculate the bandwidth (BW) in phase encoding direction, we need to know the echo spacing (ES). Echo spacing is related to the receiver bandwidth BW (the range of frequencies that can be captured with a certain sampling speed) as follows: ES = 1/BW.

Echo spacing for different scanners

Siemens: the echo spacing in milliseconds is mentioned on the scan protocol PDF. For details, please consult the anatabacus manual attached to this site.

Philips: the echo spacing can be calculated from a formula using the water-fat shift per pixel, which is mentioned in the *.PAR header. For 3T, the water-fat shift per pixel is for example 12.0. The formula becomes:
echo spacing in msec = 1000 * (water-fat shift (per pixel)/(water-fat shift (in Hz) * echo train length))
where
  • echo train length (etl) = EPI factor + 1
  • water-fat-shift (Hz) = fieldstrength (T) * water-fat difference (ppm) * resonance frequency (MHz/T)
  • water-fat difference (ppm) = 3.35
    • Haacke et al: 3.35ppm. Bernstein et al (pg. 960): Chemical shifts (ppm, using protons in tetramethyl silane Si(CH3)4 as a reference). Protons in lipids ~1.3, protons in water 4.7, difference: 4.7 - 1.3 = 3.4.
  • resonance frequency (MHz/T) = 42.576  (for 1H; see Bernstein pg. 960)
Attached to this site, you can find a Matlab script to calculate the echo spacing (in milliseconds: calc_echo_spacing_philips_mod.m).
 

Echo spacing and acceleration

In case acceleration like SENSE or GRAPPA is used, the echo spacing needs to be divided by the acceleration factor, for example if echo spacing is 0.5ms with factor 2, then effective echo spacing is 0.5/2 = 0.25ms.
Partial Fourier for phase and slice as well as multiband (MB-EPI) can apparently be ignored in calculations for echo spacing.
 

 

The anatabacus plugin

Please note that v1.0 and v1.0.1 are only suitable for fieldmaps that are acquired with the same measurement parameters as the functional data. It does resample, but this is valid only for data with the same FOV and rotation angle. v1.1 contains a coregistration function, so that any type of fieldmaps can be used.
v1.1 contains an image registration routine. 

Manual: 

The manual contains information on how to undistort the data with anatabacus. Also, some information is provided about how to acquire the fieldmap for Siemens scanners, which parameters are required and how to calculate the parameters. 
 

Compilations:

 

Short Overview:

 
It is recommended to check whether the similarity to the anatomical image improved after undistortion of the EPI image (FMR). The similarity can for example be calculated via a NCC-kind of calculation in fmr2vmrplugin, or via the Sørensen-Dice coefficient or mutual information.
 
anatabacus_dlg_v11
 

 

 
 
anatabacus_conversiontab_preview

 

Preview of the anatabacus plugin for BrainVoyager 23 with QML-based user interface:

 

References

Jezzard, P., & Balaban, R. S. (1995). Correction for geometric distortion in echo planar images from B0 field variations. Magnetic resonance in medicine, 34(1), 65–73. https://doi.org/10.1002/mrm.1910340111

Breman, H., Peters, J., Ashburner, J., Weiskopf, N. and Goebel, R. (2009) Fast fieldmap-based EPI distortion correction with anatabacus: a plugin for BrainVoyager. NeuroImage 47:S81.