[FieldTrip] help diagnosing issues with source analysis (pathological brain)

Sarang S. Dalal sarang at cfin.au.dk
Fri Jun 17 18:38:53 CEST 2016


Hi Vitória,


I would just add that there is a provision in SPM's normalization procedure to weight or mask areas of your patient's MRI, which you can take advantage of to get much better results. (FieldTrip calls SPM functions behind-the-scenes to implement normalization.)


First, you might want to see how 'strange' the default normalization looks. Right before running 'ft_volumenormalise', just run:

spm_figure('Create','Graphics');


Then, after ft_volumenormalise finishes, you should see the normalization results compared against the MNI template image. Probably, you will see that they don't match very well.


I'm not sure yet how to implement this in your FieldTrip workflow, but you can get started by working with SPM8 directly. Several years ago, we managed to successfully normalize MRIs of patients with brain tumors. We did this by 'painting' the pathological areas with MRIcro to create a mask, saving this mask into its own (binary) MRI file. This masked MRI can then be used by SPM as a 'weight' during the normalization process. You'll want normal brain to have a weight of 1 and the tumor zone to have a weight of 0.


Probably this can be converted into command-line functions, but if you use the SPM8 GUI, you would go to "Normalise (Estimate and Write)", select your patient's MRI as the 'Source Image' and 'Images to Write', and the tumor mask as 'Source Weighting Image'. You probably have a T1 MRI, so under 'Template Image' you would select T1.nii.


Again, it'll show you the normalized result compared with the template at the end of the process, and hopefully it will have gone better this time. :-)


Note that SPM will want to work with Analyze (hdr/img) or Nifti (nii) files, so you'll have to convert them as appropriate.


Maybe somebody else can fill you in on the best way to import the resulting normalized MRI back into your FieldTrip pipeline.


Cheers

Sarang



________________________________
From: fieldtrip-bounces at science.ru.nl <fieldtrip-bounces at science.ru.nl> on behalf of Schoffelen, J.M. (Jan Mathijs) <jan.schoffelen at donders.ru.nl>
Sent: Tuesday, June 14, 2016 9:31 AM
To: FieldTrip discussion list
Subject: Re: [FieldTrip] help diagnosing issues with source analysis (pathological brain)

Hi Vitória,

To me it looks as if most of the stuff you describe works as expected, i.e. it works well or it gives funny results, apart from the non-linear normalisation. The extremely distorted warped grid points may be due to the patient’s anatomical being pathological, causing the normalisation to converge to a very strange solution.

Now, with respect to the plotting/interpolation: if the coordinate systems of the objects you are overlaying don’t match, you get funny results. This is the case for the sourceplot with the surface method (where the default cortical surface is in MNI-RAS), and your functional image is in CTF’s ALS, as well as for the sourceplot with the ortho method, using the blurry template from SPM (which is also in MNI-RAS). If you want these to match up, you could replace the source positions in your functional image with the ones from the standard grid, because you assume topological equivalence as per the inverse warping strategy applied in the creation of the beamformer grid.

So, long story short: it seems that your source analysis just went fine, but you are confused by the different coordinate systems.

Best,
JM


On 13 Jun 2016, at 11:02, Vitoria Piai <v.piai.research at gmail.com<mailto:v.piai.research at gmail.com>> wrote:

Hi Cris,

that makes sense, except that the .mri file I'm getting from the hospital should already contain the right fiducial coordinates (or so I was told by the MEG technician). Maybe the issue is that FieldTrip is not getting these coordinates right from the .mri file if I don't run it through ft_volumerealign first.
Any thoughts anyone?

Thanks again

On 12 June 2016 at 13:55, Cristiano Micheli <michelic72 at gmail.com<mailto:michelic72 at gmail.com>> wrote:
Dear Vitoria

I had the same problem when I tried to coregister functional and anatomical data without transitioning through a head-referenced coordinates system.
I solved the problem by using ft_volumerealign and selecting comparable anatomical fiducials for different subjects (nasion, left, right,..) BEFORE volume normalization.

Maybe a hint towards the solution?

Cheers
Cris


On Sat, Jun 11, 2016 at 8:50 PM, Vitória Piai <v.piai.research at gmail.com<mailto:v.piai.research at gmail.com>> wrote:
Hi everyone,

I was hoping someone could help me figure out where my source analysis is going wrong.
I have data on brain tumour patients (MRIs are from prior to tumour resection). From the hospital (using CTF), I receive .mri files that already have fiducial points saved as far as I was told. I then reslice and segment the .mri file, after reading it with ft_read_mri
mri_reslice             = ft_volumereslice([], mri);
segmentedmri = ft_volumesegment([], mri_reslice);
This seems to be working:
<bfejiccb.png>

Plotting headmodel and sensors, it looks like they are aligned:
<jidhfdhd.png>
If I compute the source model with MNI-warping (non-linear transformation), I get something that doesn't seem right. I don't know if this is because these are not normal brains to start with:
<ebfighdf.png>
With linear transformation, things look better:
<ehffjdea.png>
 One of my questions is what the consequences are of using linear transformation for the MNI warping given the pathological nature of these brains.

Then, the next issue is this result when projecting the source to the surface:
<dffeehgc.png>
This happens regardless of whether I use the MNI-warped grid interpolated to the MNI template, or the patient's individual grid skipping the MNI normalisation step, interpolated to the patient's own T1.
But if I plot with 'ortho' method, then I see that the MNI-warped and interpolated source data is misaligned, but the patient-native space one isn't.
<dcigdbdi.png>

I can't make sense of this anymore; I've been trying all kinds of things that don't work, so I was wondering whether anyone has an idea of what could be going on by looking at these figures. Is it an error already at the level of alignment of the fiducials? Or is it due to the MNI-warping? Or a combination of issues?

Thanks very much for any kind of help!
Vitoria

_______________________________________________
fieldtrip mailing list
fieldtrip at donders.ru.nl<mailto:fieldtrip at donders.ru.nl>
http://mailman.science.ru.nl/mailman/listinfo/fieldtrip


_______________________________________________
fieldtrip mailing list
fieldtrip at donders.ru.nl<mailto:fieldtrip at donders.ru.nl>
http://mailman.science.ru.nl/mailman/listinfo/fieldtrip

_______________________________________________
fieldtrip mailing list
fieldtrip at donders.ru.nl<mailto:fieldtrip at donders.ru.nl>
http://mailman.science.ru.nl/mailman/listinfo/fieldtrip

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20160617/0430f6c0/attachment-0002.html>


More information about the fieldtrip mailing list