Tutorial: Process functional NIRS data

<!> This tutorial is under construction <!>

Authors: Thomas Vincent

Prerequisite:

Presentation of the experiment

Extract stimulation events

During the experiment, the stimulation paradigm were run under matlab and sent triggers through the parallel port to the acquistion device. These stimulation events are then stored as a box signal in channel AUX2: values above a certain threshold indicate a stimulation block.

To transform this signal into Brainstorm events, drag and drop the NIRS data "S01_Block_FO_LH_Run01" in the Brainstorm process window. Click on "Run" and select Process "Events -> Detect events above threshold".

NIRSTORM_tut2_detect_events.gif

Use the following parameters:

Then run the process.

To view the results, right-click on "Link to raw file" under "S01_Block_FO_LH_Run01" then "NIRS -> Display time series".

NIRSTORM_tut2_nirs_time_series_motor_events.gif

The "MOTOR" event group has been created, by 10 events, each lasting 30 sec. Events are shown in green on the top of the plot.

NIRSTORM_tut2_list_motor_events.gif

Bad channel tagging

NIRS measurement are heterogeneous (long distance measurements, movements, occlusion by hair) and the signal in several channels might not be analyzable. A first pre-processing step hence consists in removing those channels.

The following criterions may be applied to reject channels:

Drag and drop the NIRS data "S01_Block_FO_LH_Run01" in the Brainstorm process window. Click on "Run" and select Process "NIRSTORM -> Tag bad channels".

NIRSTORM_tut2_nirs_remove_bad_channels.png

This process is performed "in place": the channel flags of the given data are modified. To view the result, right-click on "S01_Block_FO_LH_Run01 > Link to raw file" then "Good/Bad Channels > View all bad channels" or "Edit good/bad channels".

Compute [Hb] variations - Modified Beer-Lambert Law

This process computes variations of concentration of oxy-hemoglobin (HbO), deoxy-hemoglobin (HbR) and total hemoglobin (HbT) from the measured light intensity time courses at different wavelengths.

Note that the channel definition will differ from the raw data. Previously there was one channel per wavelength, now there will be one channel per Hb type (HbO, HbR or HbT). The total number of channels may change.

For a given pair, the formula used is:

where:

NIRSTORM_tut2_MBLL.png

Process parameters:

This process creates a new condition, here "Hb_S01_Block_FO_LH_Run01", because the montage is redefined.

Double-click on "Hb_S01_Block_FO_LH_Run01 |- [Hb]" to browse the delta [Hb] time-series.

NIRSTORM_tut2_view_hb.png

As shown on the left part, all recorded optode pairs are available as montages to enable the display of overlapping HbO, HbR and HbT.

Linear detrend

This filter process removes any linear trend in the signal.

Clear the process window and drag and drop the item named "[Hb]" into it. Select "Run -> NIRSTORM -> Linear Detrend"

NIRSTORM_tut2_detrend_parameters.png

Parameters:

This process creates an item called "[Hb] | detrended"

Infinite Impulse Response filtering

So far, the signal still contains a lot of physiological components of non-interest: heart beats, breathing and Mayer waves. As the evoked signal of interest should be distinct from those components in terms of frequency bands, we can get rid of them by filtering.

NIRSTORM_tut2_iir_filter_parameters.png

Parameters:

This process creates an item called "[Hb] | detrended | IIR filtered"

Window averaging

the goal is to get the response elicited by the motor paradigm. For this, we perform window-averaging time-locked on each motor onset while correcting for baseline differences across trials.

The first step is to split the data into chunks corresponding to the window over which we want to average. The average window is wider than the stimulation events: we'd like to see the return to baseline / undershoot after stimulation. If we directly use the extended MOTOR events to split data, the window will be constrain to the event durations.

To avoid this, define new "simple" events from the existing ones: Double-click on "[Hb] | detrended | IIR filtered", then in the right panel select the MOTOR event type, click on "Events -> convert to simple events" and select "start". Then click on "File -> Save modifications". This defines the temporal origin point of the peri-stimulus averaging window.

Right-click on "[Hb] | detrended | IIR filtered -> Import in database"

NIRSTORM_tut2_import_data_chunks.png

Ensure that "Use events" is checked and that the MOTOR events are selected. The epoch time should be: -5000 to 45000 ms. This means that there will be 5 seconds prior to the stimulation event to check if the signal is steady. There will also be 15 seconds after the stimulation to check the return to baseline / undershoot. In the "Pre-processing" panel, check "Remove DC offset" and use a Time range of -5000 to -100 ms. This will set a reference window prior over which to remove chunk offsets. All signals will be zero-centered according to this window. Finally, ensure that the option "Create a separate folder for each event type" is checked".

After clicking on "import", we end up with 10 "MOTOR" data chuncks.

The last step is to actually compute the average of these chunks. Clear the process panel then drag and drop the item "MOTOR (10 files)" into it. Click on "run" and select the process "Average -> Average files".

NIRSTORM_tut2_average_files_process.png

Use Group files: Everything and Function: Arithmetic average + Standard deviation.

To see the results, double click on the created item "AvgStd: MOTOR (10)". You can again browse by measurement pair by using the different montages in the record panel.

NIRSTORM_tut2_averaged_response.png

Tutorials/NIRSDataProcess (last edited 2016-04-09 17:57:37 by ?ThomasVincent)