Fitting dipoles with FieldTrip

Authors: Jeremy Moreau, Francois Tadel

This tutorial introduces dipole fitting and visualization in Brainstorm. You will need to have completed the introduction tutorials up to "Tutorial 16: Average response" before undertaking this tutorial. This tutorial explains how to fit dipoles to time series within Brainstorm. If you already have computed dipole fits using CTF DipoleFit or Neuromag XFit and would like to import them in Brainstorm, see this tutorial.

Warning: This function does not work properly with FieldTrip versions released between 2015-10-05 and 2016-01-15. If you are using a version released around this time, update FieldTrip first.

Process FieldTrip: ft_dipolefitting

This process wraps the FieldTrip function ft_dipolefitting. For background information on the implementation of the dipole modeling see the FieldTrip dipole fitting tutorial or watch this video.

Process options

Visualizing dipole files

Single dipole with multiple sources

In the previous two examples, we fitted one single dipole at each time point. This approach is expected to work well if we assume that there is one active source only at each time point. This is not the case here, we expect a bilateral auditory response to this binaural sitmulus. We obtained results that look meaningful (dipoles close to the auditory regions) because the response we recorded is stronger on the left side, but this approach is globally wrong. This is why we had such low goodness of fit values (~50%) while we usually do not trust a dipole that fits less than 90% of the data.

If you expect to observe two sources of activity simultaneously, then you need to either fit two dipoles at the same time, or to use a distributed source model. However, there are difficult methodological problems that come with multiple dipole fitting: Do you fit first a dipole and then fit a second one to the residuals? Do you try to optimize the two dipoles at once? But then how do you write your optimization function to guarantee your fitting algorithm converges? Obtaining correct results with usually requires an accurate manual initialization of the dipoles parameters, and a lot of user supervision on the process.

Let's try to see what happens if we ask FieldTrip the FieldTrip function to fit two dipoles, to explain the activity of the left and right auditory cortices simultaneously.

Merging dipole files

You may sometimes want to visualize multiple sets of dipoles together on the same MRI viewer. For instance, you may have fit dipoles to a series of individual epileptic spikes, and would like to see whether the dipoles form a cluster. In the context of this tutorial, we are going to merge the M50 dipole file with the M100 dipole file, so that we can see where they localise relative to each other.

Additional documentation





Feedback: Comments, bug reports, suggestions, questions
Email address (if you expect an answer):


Tutorials/DipoleFitting (last edited 2016-08-04 20:18:30 by FrancoisTadel)