[TUTORIAL UNDER CONSTRUCTION]

It Will be completed soon

In this tutorial, we describe the full FEM process as described in the SPIE paper

We may keep the previous tutorial as basic and this tutorial is an advanced and complete version.

FEM tutorial: MEG/EEG Median nerve stimulation

Authors: Takfarinas Medani, Juan Garcia-Prieto, Wayne Mead.

This tutorial introduces the FEM modeling in the Brainstorm environment.

Note that the operations used here are not detailed, the goal of this tutorial is not to introduce Brainstorm to new users. For in-depth explanations of the interface and theoretical foundations, please refer to the introduction tutorials.

License

This tutorial dataset (MEG/EEG and MRI data) remains proprietary of xxxxyyyy. Its use and transfer outside the Brainstorm tutorial, e.g. for research purposes, is xxxx yyy.

Download the dataset

Requirement

Brainstom

SimNibs

BrainSuite

Iso2mesh

Description of the experiment (todo) : only one file

The experiment consists of two stimulation protocols being conducted during a single scanning session in a MEG laboratory with an Elekta Triux (Megin, Finland) scanner. The subject is a right-handed 46 years old male. The two stimulation protocols consist of unilateral median nerve stimulation and an eyes-closed resting-state recording.

Median nerve stimulation:

Resting-State protocol:

Download and installation

Import the MRIs

Head model construction

FEM head model

The first step requires the generation of the FEM head model, where the MRIs are segmented into the main tissues and then tesselated into hexahedral or tetrahedral elements. The available methods within Brainstorm are listed in this page.

In the following tutorial, the SimNibs method is used

In order to use the call SimNibs you need to have it installed on your computer, please follow the instruction as explained in here.

Keep all the options to their default values.

Depending on your computer performance, this process can take 2 to 4 hours, so be patient.

[ATTACH]

At the end of this computation, Brainstorm will populate the windows with the following nodes

At the end of the process, make sure that the file "cortex_15002V" is selected (downsampled pial surface, which will be used for the source estimation). If it is not, double-click on it to select it as the default cortex surface.

FEM tensors

The FEM has the ability to incorporate anisotropic conductivity. Brainstorm offers the known methods to estimate the tensors from the DWI data. For a more detailed example please refere to this page.

There are two main phases to compute the tensors, the first is the computation of the DTI from the DWI. The second is the estimation of the conductivity tensors from the DTI on each of the FEM mesh elements.

Step one:

[ATTACH]

BrainStorm will call internally the Brainsuite Software to compute the DTI. This process can take up to 20 minutes.

At the end of this process, a node will appear in the Brainstorm database explorer under the name "DTI-EIG", this is a volume data that contains the 12 values of the eigenvalues and eigenvectors at each voxel.

Explanation of the options:

Brainstorm recognizes the tissue listed on the FEM had and assigns the default isotropic conductivities, as shown on the panel, users can change and use their own values.

When the DWI data are computed, the conductivity tensors can be estimated on the white matter tissues using the Effective Medium Approach (EMA), Brainstorm offers two option, the EMA with a fixed factor k=0.736, or the EMA with the volume constraint (EMA+VC), please refer to this tutorial and the cited publication for further information.

Step two:

Once the DTIs are computed,

[ATTACH]

This process can take up to 5min, depending on the resolution of the FEM mesh.

Visualisation of the FEM mesh and tensors

Brainstorms include the possibilities to display the FEM head models and the tensors, users can also overlay the display with the MRI as well as with the different surfaces.

overlayModalities.png

The FEM tensors can be also displayed either on the mesh or on the MRI, to do so, right-click on the FEM mesh, then "Display FEM tensors", you can choose the displaying mode, the tensors can be displayed either as arrows (line) on the main eigenvector or as ellipsoids, on each FEM element (tetrahedron).

dispTensorMenu.png

tensorsOnBrain.jpg

tensorsOnMRI.jpg

The size of the displayed tensors can be changed from the keyboard with the "Up" or "Down " arrows keys. You can also switch the display mode (from lines to ellipsoids to line or inversely) by using the shortcut "Shift + Space".

BEM head model

We will generate also the BEM surfaces for this subject and we will follow the same step as expect in this page. The obtained surfaces will be used later for the BEM source computation. Richt-click on the subject and then "Generate BEM surfaces", then keep the default options.

Advanced

On the hard disc

The "DTI-EIG" is saved structure as the Brainstorm MRI format, but it contains 12 values, from 1 to 9: components of the three eigenvectors, and from 10 to 12, the values of their norm to the eigenvalue.

The FEM mesh, as shown in the figure, contains the following fields

the 12 values are the eigenvalues and eigenvectors interpolated on each element of the mesh.

femDataOnHardDisc.png

Access the recordings

[ATTACH]

Prepare the channel file

Refine the MRI registration

[ATTACH]

Read the stimulation information

[ATTACH]

In the Record tab, menu File > Read events from channel.

[ATTACH]

Pre-processing

Evaluate the recordings

psd.jpg

Frequency filters

freqFilters.jpg

Review the recordings

EEG: Average reference

avgRef.jpg

Artifacts cleaning with ICA

More information about ICA.

EEG: Heartbeats and eye movements

MEG: Heartbeats and eye movements

====> the data seems to be clean no artefcat detected using the ICA ===> already cleaned with tsss filters ? @ juan

[ATTACH]

Epoching and averaging

Import the recordings

In this experiment, the electric stimulation is sent with a frequency of 2Hz, meaning that the inter-stimulus interval is 500ms. We are going to import epochs of 400ms around the stimulation events.

importEpochs.jpg

In the end, you are asked whether you want to ignore one epoch that is shorter than the others. This happens because the acquisition of the MEG signals was stopped less than 450ms after the last stimulus trigger was sent. Therefore, the last epoch cannot have the full [-50,250]ms time definition. This shorter epoch would prevent us from averaging all the trials easily. As we already have enough repetitions in this experiment, we can just ignore it.

Averaging

avrgEpochs.jpg

Review the average for the MEG and EEG as a topography plot -Right-click on the averaged signal -EEG (then MEG) > 2D disc

megEegTopography.jpg

AT the selected time, an ERP is visible with a nice dipolar pattern on the sensors, both for the EEG and MEG.

Source estimation

Head model

Noise covariance matrix

Inverse model

Regions of interest

Scripting

Tutorials/FemMedianNerve (last edited 2021-04-01 22:55:44 by TakfarinasMedani)