3rd order shim for layer-fMRI: To get best data quality, avoid certain EPI frequencies.

On Oct 13th 2023, Nicolas Boulant presented an intriguing source of MRI image artifacts at the CMRR high field meeting in Minnesota. He suggested that the 3rd-order shim can result in amplified gradient trajectory imperfections. In low bandwidth FLASH, this can manifest as faint ghosts in the read direction shifted by a few pixels. In EPI, on the other hand, these trajectory errors can result in fuzzy ripples (low spatial frequency ghosts and shadings, not edge ghosts). 

In a recent meta analysis of all openly available layer-fMRI datasets, I had found had that the fuzzy ripples are one of the main limits of high-quality layer-fMRI acquisition (see here) across vendors. So, I was curious whether the 3rd order shim might be partly related to this. In this blog post, I am describing my attempts to reproduce Nicola’s results and investigate the effect of the 3rd order shim on layer-fMRI protocols. I find that disconnecting the 3rd order shim can result in significantly better data quality. However, this finding is only visible for specific echo-spacings, which are either in the ‘forbidden frequencies’ or which have side bands in the forbidden frequencies.

This post does not imply that previous research was conducted sub-optimally. Since, it is common practice to optimize the EPI echo spacing in the piloting stage of each study, the frequencies with these artifacts are usually avoided anyway. Here, we confirm that this is a good practice.

Experimental setup

I looked at phantom data (four sessions) and human data (four sessions). Each acquisition was performed twice, with the 3rd order shim plugged in and with the 3rd order shim unplugged. I tested the SIEMENS product sequence TURBOFLASH, the CMRR-multiband 2D-EPI sequence, and the DZNE 3D-EPI sequence. Images are acquired across a spectrum of echo spacings. The complete protocol PDFs are available on Github. Experiments were performed on the 7T Terra with SC72, with the following forbidden frequencies: 339.5-394.4 Hz and 500-600 Hz and 950-1250 Hz, corresponding to bi-polar EPI echo spacings 0.41-0.52 ms and 0.83-0.99 ms and 1.27-1.47 ms.

Phantom results

FLASH results: At a given echo spacing of 320 Hz/Px, there is a faint ghost visible in the read direction. This is not the case when the third order shim is unplugged.
EPI results: At 1156 Hz/Px, fuzzy ripple artifacts become apparent. These artifacts are gone, when the thirds order shim is unplugged. This bandwidth is very popular among layer-fMRI researchers because it is the fastest acquisition that avoids known mechanical resonances of the gradients. For bandwidths of 1214 Hz/Px -close to the mechanical resonances- artifacts are even worse and partly also visible with the third order shim unplugged.

Human results (participant 1)

Typical fuzzy ripples in layer-fMRI are completely gone when the third order shim is unplugged. 3D-EPI, Bandwidth 866 Hz/Px, echo spacing1.26 ms.
Same as FLASH results above for phantoms: For given echo spacings, a faint ghosts is visible. This artifact goes away, when he third order shim is unplugged.
Human EPI results across bandwidths. EPI results: At 1156 Hz/Px, fuzzy ripple artifacts become apparent. These artifacts are gone, when the thirds order shim is unplugged. This bandwidth is very popular among layer-fMRI researchers because it is the fastest acquisition that avoids known mechanical resonances of the gradients. For bandwidths of 1214 Hz/Px -close to the mechanical resonances- artifacts are even worse and partly also visible with the third order shim unplugged.
Zoomed section of the data above

Human results (participant 2, axial results)

for the second participant, no forbidden frequencies were used. The residual effects are expected to solely arise from side bands of the main echo spacing, which arises from the fact that the trapezoidal EPI readout differs from sinusoidal readouts.

3D-EPI spectrum without forbidden frequencies. The fuzzy ripples are weaker, but still there to some degree. Unconnecting the 3rd order shim removes these residual artifacts.
The same as above, but for a zoomed section.

With the CMRR sequence, very similar echo spacings, exhibit fuzzy ripples.

For 2D-EPI, (CMRR C2P), fuzzy ripples are visible at similar echo spacings. They are somewhat reduced when the 3rd order shim is unplugged. Note that the combination of bandwidth and echo spacing, and the ramp-sampling ratios are slightly different compared to the ablve 3D-EPI data.
The same data as zoomed sections.

Human results (participant 2, sagittal results)

The same protocols as above were also tested in sagittal orientation.

3D-EPI. Fuzzy ripples are visible at frequencies predicted by Boulant et al. Unplugging the 3rd oder shim does not fully mitigate them.
2D-EPI (CMRR C2P): Fuzzy ripples are weakly visible at an echo spacing of 1.13ms, with and without 3rd order shim connected.

Functional results in two participants

To participants were scanned with 2D-EPI, during a 14 min block-designed auditory stimulus. The purpose of this is to confirm that the artifacts seen above for static images affects the stability of the functional time courses.

It can be seen that the fuzzy ripples introduce sources of temporal instability. This increases the noise level and compromise the statistical activation maps.
The same in another participant, to confirm that the above difference is not solely due to inter-run variability.

Potential mechanisms why the 3rd order shim causes these issues

It is not clear to me what the mechanisms are exactly. The paper from Boulant et al. hypothesices that it’ related to magneto-mechanical interactions.

The 3rd order shim is a layer of the gradient coil between the primary inner layer and the outermost shielding layer. According to gradient builder Peter Diez at the Next Gen 7T opening workshop, the third order shims always share some symmetry with the gradients, and thus they have a stronger unwanted coupling.

The effect of the third order shim is independent of whether there is active or not (aplifyiers switched on or not). It does not matter if active current is flowing through them, the artifacts will remain visible. Even if the third order shim is completely powered down, but still connected to the RF shield of the room, the effect is the same. In order to reduce the effect, the cable needs to be unplugged.

Alternative approaches to mitigate fuzzy ripple artifacts

While the fuzzy ripples seem to be largely caused by eddy currents from the 3rd order shim, it might not need to be necessary to unplug them completely. Alternatively, it is possible to change the echo spacing to be far away from the temporal frequency where they are strongest (0.37ms according to Nicolas Boulant). E.g. increasing TE and TR by 30% makes the fuzzy ripples go away, with or without the 3rd order shim.

Alternatively, it’s also possible to calibrate for the respective gradient trajectory imperfections in the reconstruction pipeline by means of a dual polarity readout.

Contraindications

While the third order shim can cause the artifacts described above, for other bandwidths it has the potential to mitigate these very artifacts that are caused by other issues (e.g. of resonance effects). E.g. for very low bandwidth layer-fMRI protocols across large field of views, the second order shim alone cannot fully compensate off-resonance inhomogeneities as effective as the third order shim. This can then result in very similar artifacts. Thus, it’s not clear to me if it’s wise to permanently unplug the third order shim.

Example of where 3rd order shim can help: Whole brain layer-fMRI. in this example, the 3rd order shim was connected in both cases. But it was switched on and off in the 3D-shimming tool only.

Process of how the 3rd order shim was unplugged. 

Process of how the 3rd order shim can be unplugged on Terra.X 

At the Terra.X the restart needs to be done by the user them selves, it is no longer done automatically. The restart is much faster under XA. It only takes 5-6 minutes. Note that the local service key needs to have the right privileges. Dependent on how it it setup the conventional user: medadmin might not see the options of measurement configurations.

Switching third order shim off:

  1. change shim configuration setting to “standard” on host (in Administration Portal, see picture).
  2. on host “restart system”.
  3. listen to three knocks and start scanning. 
  4. unplug 3rd order shim cable inside faraday cage.

Switching it back on:

  1. connect shim cable
  2. change shim configuration setting to “advanced” on host (in Administration Portal).
  3. restart system 

Acknowledgements

I thank Nicolas Boulant for discussions, for sharing his approach of disconnecting the third order shim and showing his results again personally on zoom. Ultimately, I could not use the same unplugging approach though, because of lacking SIEMENS passwords. I thank Kenny for performing the invivo scan with me. I want to thank the Healthineers Robin Heideman, Reinaldo Gabarron, Sunil Patil, and Bernd Stoeckel for discussions and for sharing their approaches of switching off the 3rd order shim. I thank Chris Wiggins for implementing, testing and sharing scripts to include and exclude the third order shim from the vendor 3D-shim tools.

Addendum

In the mean time, Nicola’s paper has become publicly available here.

Leave a comment