Tutorial: Compute a head model

This tutorial is still based on Sabine Meunier's somatotopy experiment, called TutorialCTF in your Brainstorm database. The recordings have already been imported and analyzed at the sensors level, and they are now ready for source estimation.

Forward problem

The first step consists in computing a model that explains how an electric current flowing in the brain can influence what is recorded out of the head, by the EEG or MEG sensors.

To understand properly what is a forward model, why this approach was chosen, what is the best method, etc. please visit the ?Theory section. For now we will only focus on how you compute a head model with the Brainstorm interface.

Single sphere model

Select the TutorialCTF protocol, close all the figures, and follow these steps:

  1. Right-click on the StimRightThumb condition and select Compute head model. The Head modeler window will appear.

    popupHeadModel.gif --- headModeler.gif

  2. The only thing you can choose here is the forward model you will use: Single sphere or Overlapping spheres.

    • Choose Single sphere.

    • You can also edit the Comment field of the file that will be created.
    • If you had MEG and EEG recorded in the same file, you have had the option to compute a forward matrix for either MEG, EEG or both.
    • The Head compartments panel just shows the surfaces that are going to be used to compute this model. If you did your work while importing the subject's anatomy, you wouldn't even have to check this.

    • Click on Run.

  3. Two other windows appear, to help you define the sphere. Estimating the best fitting sphere for a head is not always that easy as it looks like, for many reasons: a human head is usually not spherical, and the sets of point we can use at this point are not always well adapted for an automatic sphere estimation.

    editBfsPanel.gif --- editBfsFigure.gif

    • Read and follow the instructions in those windows.
    • Click on Scalp surface, move and resize the sphere manually, just to see how it works.

    • Click again on Scalp: here we will use directly the estimation of the sphere based on the vertices of the Scalp surface (a simple least-squares fitting using all the vertices of the surface).

    • In that case, you may just use (click on Scalp button)

    • For EEG 3-shell spheres models, you just estimate and manipulate the outer sphere, and then use the Edit properties... button to defined the relative radii of the 2 other spheres, and their respective conductivities. This will be decribed in an other tutorial.

    • Click on Ok. And wait for a few moments, the forward model computation is started.

  4. A new file appeared just below the channel file, it represents the head model.

    headModelPopup.gif

    • You cannot do many interesting things only with this file, as it is only a matrix that converts the cortical sources into MEG/EEG recordings, and we don't have any sources information yet.
    • You may just check the sphere(s) that were used to compute the head model, with the Check spheres menu.

    • This process created 3 files on the hard drive; the head model is the only information in Brainstorm database that is stored in a separate binary file instead of directly in a .mat file:
      • headmodel_Single_sphere_CD.mat: description, parameters, pointers to the binary files

      • headmodel_Single_sphere_CD.bin: binary file that just contains the forward matrix (constrained orientation of the sources, perperpendicular with the cortex)

      • headmodel_Single_sphere_CD_xyz.bin: another matrix, but with unconstrained orientations (3 values instead of one for each vertex, for each direction)

Overlapping spheres model

Let's compute now an other forward model. The overlapping spheres method is based on the estimation of a different sphere for each sensor. Instead of using only one sphere for the whole head, it estimates a sphere that fits locally the shape of the head in the surroundings of each sensor.

  1. Right-click on StimRightThumb condition and select Compute head model again.

  2. Select the Overlapping spheres method and click on Run. It doesn't ask for anything, the 151 spheres are estimated automatically.

  3. At the end, the Check spheres window shows the spheres that were estimated. You check all them by following the indications written in green at the bottom of the window: use left/right arrows. At each step, the current sensor marker is displayed in red, and the sphere you see is its local estimation of the head shape.

  4. Close this window when you reviewed them all.

    osTree.gif --- checkSpheres.gif

Selection of a head model

We now have two head models in for our Subject01/!StimRightThumb condition.

Next

You are done with the forward problem.

Next step: the ?inverse problem.

Tutorials/TutHeadModel (last edited 2009-06-12 18:29:38 by hirkania)