[FieldTrip] Source reconstruction using DICS : poor results
Schoffelen, J.M. (Jan Mathijs)
jan.schoffelen at donders.ru.nl
Mon May 20 21:48:36 CEST 2019
Dear Manon,
Based on your information I believe things might have gone wrong when you interpolated your reconstructed coherence onto the MRI template.
Both inputs (i.e. the source reconstructed coherence, and the template) need to be:
1) in the same coordinate system
(and just to be sure) 2) in the same metric units
Regarding 1): if source.pos is according to the 4D neuroimaging ALS-convention, where the coordinate axes are based on the fiducials, and the template positions (as imposed by the mri.transform) are in ACPC-based RAS, the interpolation goes wrong
Regarding 2): if the source positions are in ‘cm’ , and the MR image in ‘m’ (or ‘mm’, ‘feet’, ‘yard’ or something else), FieldTrip typically tries to equate the units before interpolation, but it may go wrong there too.
Another thing to look into perhaps is the fact that your cross-spectral density matrix is highly rank deficient, given the number of trials (and the fact that you used just a single ‘hanning’ taper for spectral decomposition). To get a stable source reconstruction I’d recommend using regularization in ft_sourceanalysis (cfg.lambda), as well as multitapering for ft_freqanalysis (cfg.tapsmofrq in combination with cfg.taper = ‘dpss’).
Final note: the coherence that is outputted by the classical DICS implementation is coherence^2 and needs to be square-rooted to be comparable in magnitude to the coherence that is the output of ft_connectivityanalysis.
Best wishes,
Jan-Mathijs
On 20 May 2019, at 18:35, CHATEAUX Manon <manon.chateaux at ens-cachan.fr<mailto:manon.chateaux at ens-cachan.fr>> wrote:
Dear FieldTrip community,
I am encountering problems in doing source reconstruction on coherences, computed between signal recorded by my 248 magnetometers (4D system) and the signal of a given EMG electrode that I called ‘FDI’.
After preprocessing and cleaning my MEG and EMG data, I had a look at the distribution of the coherence values at the channel level. Around the beta band, I have quite clean results (See Figure 1).
Here is the script I used to obtain this figure, from my ‘data_CMC’ that is the clean data, ready to undergo CMC analysis :
cfg = [];
cfg.output = 'powandcsd'; %returns the power and the cross-spectra
cfg.method = 'mtmfft';
cfg.taper = 'hanning';
cfg.foilim = [18 100];
cfg.keeptrials = 'no';
cfg.channel = {'MEG' 'OP' 'FDI' 'ECD' 'FCD' 'TB' 'BB'};
cfg.channelcmb = {'MEG' 'MEG'; 'MEG' 'OP'; 'MEG' 'FDI'; 'MEG' 'ECD'; 'MEG' 'FCD'; 'MEG' 'TB'; 'MEG' 'BB'};
cfg.pad = 'nextpow2';
freq_cross_spctr.FG = ft_freqanalysis(cfg, data_CMC.FG);
Remark : I have 150 trials and they are very short, some are as short as about 100 ms which lead me to adapt cfg.foilim in order that it does not go under about 18Hz. Indeed, I calculated it so that we can have 2 periods of the minimum frequency in my shortest trial.
cfg = [];
cfg.xlim = [CMC_cross_spectr.FG.freq(1,1) CMC_cross_spectr.FG.freq(1,5)]; %Between 18 and 26Hz
cfg.refchannel = 'FDI';
cfg.layout = lay;
cfg.colorbar = 'yes';
cfg.parameter = 'cohspctrm';
cfg.marker = 'on';
cfg.dataname = ['FG_' int2str(floor(CMC_cross_spectr.FG.freq(1,1))) '_' int2str(floor(CMC_cross_spectr.FG.freq(1,5))) '_' cfg.refchannel];
ft_topoplotER(cfg, CMC_cross_spectr.FG);
But now I want to precisely localize these coherences, in order to be able to answer my scientific question. I used the DICS beamformer method as advised by the tutorials. However, the reconstruction gives a terrible topographical mapping of the coherences that is not clean at all contrary to what I saw at the sensor level (Figure 2). Plus, it displays very low coherence values.
For information, I don’t have any MRI of the participant. Thus, I used the fiducial positions, gathered just before the experiment started, and altered an MRI template so that it is aligned – as well as possible – to these recorded fiducials positions. (The participant moved less than 1mm during the experiment). Then I computed the segmented MRI and the head and source model from this manual alignment.
Here is the script that follows the computation of the forward model and that lead me to figure 2 :
cfg = [];
cfg.method = 'dics';
cfg.refchan = 'FDI';
cfg.frequency = [freq_cross_spctr.FG.freq(1,1) freq_cross_spctr.FG.freq(1,5)];
cfg.headmodel = hdm_cm;
cfg.sourcemodel = sourcemodel;
cfg.grad = sensors_cm;
cfg.dics.reducerank = 2; %default value for MEG. This is done to remove the weakest orientation.
cfg.dics.normalize = 'yes'; %I use this because we don't have any baseline or second condition to compare to, for the moment
source_coh_lft = ft_sourceanalysis(cfg, freq_cross_spctr.FG);
source_coh_lft.pos = sourcemodel.pos;
source_coh_lft.dim = sourcemodel.dim;
cfg = [];
cfg.parameter = 'coh';
cfg.interpmethod = 'nearest';
source_coh_int = ft_sourceinterpolate(cfg, source_coh_lft, mri_realigned_to_headshape_m);
cfg = [];
cfg.method = 'surface';
cfg.surffile = 'surffile.mat';
cfg.funparameter = 'coh';
cfg.surfdownsample = 10; %gives more beautiful results
ft_sourceplot(cfg, source_coh_int);
colormap jet
My questions are the following :
- Why are the two maps so different ? Why are there such low coherence values in Figure 2? What am I missing?
- Is there any way to improve the results of Figure 2?
- Can I compute the CMC first at the sensor level and then do a reconstruction?
- I am not confident with the method I used to align the template MRI to my recorded fiducials. Is there a more rigorous way to do it?
I am new to signal processing and especially to FieldTrip so any remark, suggestion or resource would be extremely helpful and highly appreciated!
Thank you very much in advance for your help and for the time you have spared reading through this message.
Manon Châteaux
Neuroscience Master Student
[https://webmail.ens-paris-saclay.fr/imp/view.php?ctype=image%2F%2A&id=2.3&imp_img_view=data&actionID=view_attach&muid=%7B5%7DINBOX2278&view_token=RPdTvn1Sj9EF8RucbH-0qUG]<http://www.ens-paris-saclay.fr/>
Manon CHATEAUX
Normalienne Etudiante en dernière année du département de Biologie
manon.chateaux at ens-cachan.fr<mailto:manon.chateaux at ens-cachan.fr>
<Figure 1.jpg><Figure 2.jpg>_______________________________________________
fieldtrip mailing list
https://mailman.science.ru.nl/mailman/listinfo/fieldtrip
https://doi.org/10.1371/journal.pcbi.1002202
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20190520/c95f263b/attachment-0002.html>
-------------- next part --------------
_______________________________________________
fieldtrip mailing list
https://mailman.science.ru.nl/mailman/listinfo/fieldtrip
https://doi.org/10.1371/journal.pcbi.1002202
More information about the fieldtrip
mailing list