Tutorial: Import and visualize functional NIRS data

<!> This tutorial is under construction <!>

Authors: Thomas Vincent, Zhengchen Cai

The current tutorial assumes that the tutorials 1 to 5 have been performed. Even if they focus on MEG data, they introduce Brainstorm features that are used in this tutorial.

List of prerequisites:

Download

The dataset used in this tutorial is available online .

Presentation of the experiment

Create the data structure

Create a protocol called "TutorialNIRSTORM":

In term of sensor configuration, NIRS is very similar to EEG and the placement of optodes may change from subject to the other. (!) Should we add (EEG or NIRS) in the interface?

Create a subject called "Subject01" (Go to File -> New subject), with the default options

Import anatomy

Import MRI

Make sure you are in the anatomy view of the protocol. Right-click on "Subject01 -> Import MRI". Select T1_MRI.nii from the NIRS_sample data folder. This will open the MRI review panel where you have to set the fudicial points (See Import the subject anatomy).

/!\ Add screenshot

Import Meshes

The head and white segmentations provided in the NIRS sample data were computed with Brainvisa.

Right-click on "Subject01 -> Import surfaces". From the NIRS sample data folder, select files: head_10000V.mesh, hemi_8003V.mesh and white_8003V.mesh.

You can check the regristration between the MRI and the loaded meshes by right-clicking on each meash element and going to "MRI registration -> Check MRI/Surface registration".

NIRSTORM_tut1_new_MRI_meshes.gif

Import NIRS functional data

The functional data used in this tutorial was exported from the Brainsight acquisition software and is available in the NIRS sample folder in S01_Block_FO_LH_Run01.bs. This folder contains the following files:

To import this data set in Brainstorm:

Registration

In the same way as in the tutorial "Channel file / MEG-MRI coregistration", the registration between the MRI and the NIRS is first based on three reference points. It can then be refined with the either the full head shape of the subject or with manual adjustmen.

Step 1: Fiducials

* The initial registration is based on the three fiducial point that define the Subject Coordinate System (SCS): nasion, left ear, right ear. You have marked these three points in the MRI viewer in the previous part. * These same three points have also been marked before the acquisition of the NIRS recordings. The person who recorded this subject digitized their positions with a tracking device (such as a Polhemus FastTrak or Patriot). The position of these points are saved in the NIRS datasets (see NIRS_sample/fiducials.txt). * When we bring the NIRS recordings into the Brainstorm database, we align them on the MRI using these fiducial points: we match the NAS/LPA/RPA points digitized with Brainsight with the ones we placed in the MRI Viewer. * This registration method gives approximate results. It can be good enough in some cases, but not always because of the imprecision of the measures. The tracking system is not always very precise, the points are not always easy to identify on the MRI slides, and the very definition of these points does not offer a millimeter precision. All this combined, it is easy to end with an registration error of 1cm or more. * The quality of the source analysis we will perform later is highly dependent on the quality of the registration between the sensors and the anatomy. If we start with a 1cm error, this error will be propagated everywhere in the analysis.

Step 2: Head shape

/!\ We don't have digitized head points for this data set. We should skip this

Step 3: manual adjustment

If the registration you get with automatic alignment techniques described previously, or if there was an issue when you digitized the position of the fiducials or the head shape, you may have to realign manually the optodes on the head. Right-click on the channel file > MRI Registration:

/!\ Add screenshots

Review Channel information

The resulting data organization should be:

func_data_loading_result.gif

This indicates that the data comes from the Brainsight system (BS) and comprises 97 channels.

To review the content of channels, right-click on "BS channels -> Edit channel file".

Name

Type

Group

Comment

Loc(1)

Loc(2)

Loc(3)

...

1

TAPPING

Stim

N/A

N/A

N/A

2

WLs

NIRS_WL_DEF

N/A

N/A

N/A

3

S1D1WL1

NIRS_WL1

coords S1

coords D1

coords middle [S1-D1]

4

S1D1WL2

NIRS_WL2

coords S1

coords D1

coords middle [S1-D1]

5

S1D2WL1

NIRS_WL1

coords S1

coords D2

coords middle [S1-D2]

6

S1D2WL2

NIRS_WL2

coords S1

coords D2

coords middle [S1-D2]

7

S1P1WL1

NIRS_WL1

NIRS_PROX

coords S1

coords D2

coords middle [S1-D2]

8

S1P1WL2

NIRS_WL2

NIRS_PROX

coords S1

coords D2

coords middle [S1-D2]

NIRS-MRI coregistration

Use automatic registration

Keep only step 1

Display Optodes (adapted from “Display Sensors”)

- no helmet here -> should be able to show optode positions over head meshSKip manual registration

Edit the channel file

Introduce new nomenclature

S1D1WL1 NIRS_WL1 …S1D1WL2 NIRS_WL2 …

Visualize NIRS signals

Depends on tut #5

Introduce default channel groups: ALL, WL1, WL2

Just adapt sections “Montage selection” and “Channel selection”

Tutorials/NIRSDataImport (last edited 2015-10-28 15:28:02 by ?ThomasVincent)