Distortion correction using T1


#1

Hello everyone,
So here is the question…
I have diffusion data and I would like to do distortion correction… but I do not have two phase encoding directions, fieldmap or T2. Has anyone tried using a T1 for distortion correction? I have read a few papers about this topic but I was wondering if anyone has managed to implement this successfully?
Cheers,
Vasiliki


Nonlinear registration diffusion to structural
Inhomogeneity field estimation without reverse phase
Registration of structural and diffusion weighted data
#2

Hello

I did that a long time ago (for restropective data) and after testing different method, we found the most effective was to non-linearly register the csf segmented map (with spm you segment the T1 and then the mean B0) then you compute the deformation (with ants or other) between those csf map.
The advantage is that you have the same contrast.

At that time I did not find a way to constrain the non-linear deformation in the phase direction only. I think ants should be able to do it, (I do not know exactly how

Romain


#3

Hi Vasiliki and Romain,

I had the same problem with my data, and what I did was rigid register the T1w to the B0, and after with ants non rigid register the B0 to the T1, restricting the registration with the -g option in ants. Finally apply the registration to all the volumes. It work for my data.

Regards,

Manuel


#4

A common problem, and we had it as well with a lot of older, yet very important, historical data. I designed an algorithm specifically for this purpose just this year actually (and thanks to lots of work from @rtabbara, and lots of experimentation, we got it implemented as well). Our solution is based on some work I did during last year (see this abstract), where I was able to simulate the T1w image contrast quite closely from 3-tissue CSD results; but our iterative EPI distortion correction has some other bells and whistles now as well, like iteratively refined outlier rejection, and simultaneous (iterative) correction for both EPI distortions along the phase encoding direction on the end of the diffusion data combined with rigid motion correction of diffusion vs T1w data. The latter point is actually quite important: you’re after a combined model of EPI distortion as well as motion to be able to correct both accurately. They both depend on one another.

At the moment, this is just an internal prototype tuned for our own use cases (however, it did already run succesfully on a large cohort of 500+ subjects that often even have large lesions); but I’ll try and get something out at some point (the ISMRM deadline will be there surprisingly soon again any way; so that may just as well be a good opportunity). It’ll eventually make it into MRtrix3, but not any time (very) soon though, as I’ve got other priorities at the moment. If you think the other proposed solutions above wouldn’t cut it for your needs though, don’t hesitate to contact me privately: we can always arrange something if and when it makes sense.

Here’s an example of a subject; before:

…and after:

For visualisation purposes, the CSF component from the 3-tissue CSD is shown to represent the diffusion data, overlaid by the T1w image in red (hot colour scale). The after image has the distortions corrected on the diffusion data, and the relative rigid motion corrected on the T1w image.


#5

Quick question on this: doesn’t non-linearly deforming the DWI volumes affect the gradient directions (locally) ?


#6

Good question. No, that shouldn’t affect the DW gradient directions, since these gradients are massive compared to the background gradients that cause the distortions. The phase-encoding gradient on the other hand is much smaller, at least when using EPI. The net result is the DW signal itself is not particularly affected, but it is misplaced.


#7

Note that this is, maybe surprisingly at first sight, a reason that correction of these distortions is in a way extra important: these distortions don’t act like some sort of non-rigid motion on the images (i.e. as if the real brain was squished and stretched a bit in places), but just misplace the image data (signal) without adjusting the orientations accordingly. That means that, in the absence of correction for the distortions, the orientations (in some particular places) don’t line up any more with the surrounding spatial information; so a bundle can (in a way) be broken a bit. This may lead e.g. tractography to slightly struggle a bit more to make it through such bundles, since the local orientational information (of the FOD) may lead streamlines to bump into edges of structures, rather than traversing through.

Just to slightly add to that wording (even though meant completely correctly): note that the “misplaced” here means misplacement of absolute amounts of signal. What I mean to clarify by this, is that when the distortions non-linearly shrink a certain local region of the image, the signal gets added up (i.e. more signals get placed into a single voxel, if that makes sense). So regions that get squished, will appear brighter than they should’ve been; and regions that get stretched, will appear darker than they should’ve been. When applying a correction like the above, the image intensities should be modulated accordingly (based on the local determinant of the Jacobian of the warp).

Finally, with respect to those gradient directions again: if also correcting for rigid motion, that bit of the transformation, if applied to the diffusion data that is, should of course act on the gradient directions (since it’s genuine motion). However, since our approach over here (the one I illustrated above) acts on the FOD (and tissue) images directly, we would have to reorient the FODs. To avoid the computational cost and possible confusion related to that, I’ve designed that approach to correct the rigid motion “on the end of the T1”. It’s essentially all the same, since we’re only talking about relative motion between the 2 datasets (DWI and T1); but for some of our applications, it makes more sense to move the T1 rigidly around, rather than the DWI data. Since the T1w image is typically acquired first in most/all of our studies, we also see most motion happen “between the T1 and the rest of the acquisitions”, since subjects seem to move more (settle down more) initially. So correcting things like above, the T1 then often ends up being (magically) already much more aligned to the other acquisitions (e.g. a FLAIR or something) as well; which gives us more (and more robust) options to correct motion of those other acquisitions relative to all the rest.


#8

Hi!

So, if somebody finds this useful:
Since SS3T-CSD is not currently implemented in MrTrix, I went ahead and wrote a small variant of it that seems to work quite well in simulating T1 contrast from DWI.

  • Following Wm ODF and response function with dhollander option _ single shell versus multi shell , I estimate response functions for CSF and WM only (I’m working on bad bad single-shell 30 gradient direction data)

  • I do linear registration between tissue probability maps max(P_csf, P_wm) (from the T1) and max(FA, ADC) (from DWI) (I forgot where but I think this was recommended somewhere on this forum as well=

  • Using that alignment, I follow Distortion correction using T1 to compute a linear mapping between [WM GM CSF] probabilities and T1 intensities - using the FA map instead of the GM response.

This seems to work quite well : left the b0, right the ‘simulated’ T1, both overlaid with the non-lineary registered T1 in red: