NIRS-EEG lab: Difference between revisions

From biophysics
Jump to navigation Jump to search
Add category
Updated: SAGA only, room number, contact, GitLab scripts, ethics/safety, subject preparation, synchronisation, data storage, updated analysis pipelines, troubleshooting
 
Line 4: Line 4:
__TOC__
__TOC__
==Introduction==
==Introduction==
[[File:Location_of_NIRS-EEG_Lab.png|thumb|Location of NIRS-EEG Lab]]
[[File:Location_of_NIRS-EEG_Lab.png|thumb|Location of NIRS-EEG Lab]]
With this measuring instrument it is possible to measure brain activity with a high temporal resolution (EEG) in combination with a reasonable (sub-cm) spatial resolution (NIRS). These measurements are non-invasive, not harmful or damaging for the subject and completely silent. Almost anyone can undergo the NIRS-EEG measurement without stress. During the measurements, we can offer visual stimuli (varying from simple lights to movie material) as well as aural stimuli (varying from very simple tones to complex sounds such as speech or music) and study the reactions of the brain in these different conditions. Additionally, we provide the data-analysis and presentation.
In the NIRS-EEG lab brain activity is measured with electroencephalography (EEG) and functional near-infrared spectroscopy (fNIRS), separately or simultaneously. The two techniques complement each other:
* '''EEG''' records the electrical activity of the brain with millisecond resolution, but its spatial resolution is poor.
* '''fNIRS''' measures changes in oxygenated (HbO) and deoxygenated (HbR) haemoglobin in the outer layer of the cortex. Its spatial resolution is in the order of 1–3 cm (depending on the source–detector distance), but it is slow: the haemodynamic response peaks about 5–7 s after stimulus onset and takes 10–15 s to return to baseline. Experiments therefore use blocked designs, or event-related designs with long and jittered inter-stimulus intervals.


The measurements can especially be used for patients with an implant, such as a cochlear implant, hearing aid instruments, or a bone conduction stimulator. Companies producing such implants could gain more insight into the manner in which their products steer brain activity. Audiological centers can use this technique for the same reasons.
Both techniques are non-invasive, silent and comfortable for the subject. Unlike fMRI, fNIRS can also be used with subjects who wear a cochlear implant, hearing aid or bone-conduction device. This makes the lab particularly suited for auditory research in hearing-impaired listeners.
 
The lab is equipped with a sound-attenuated booth with a semi-circle of 31 speakers and 31 LEDs (−90° to +90°), TDT hardware for stimulus generation, two 24-channel Oxymon fNIRS systems (Artinis) and a TMSi SAGA EEG amplifier. See [[NIRS-EEG technical info]] for details.
 
The entrance of the NIRS-EEG lab is room W36A -2.002 (see [[Labs#Location|Location of the Biophysics Labs]]).


The NIRS-EEG lab is part of Radboud Research Facilities: [https://www.ru.nl/radboudresearchfacilities/english/facilities-0/neurology-motion/nirs-eeg-0/ Radboud Research Facilities ›Facilities ›Neurology and Motion ›NIRS-EEG]
The NIRS-EEG lab is part of Radboud Research Facilities: [https://www.ru.nl/radboudresearchfacilities/english/facilities-0/neurology-motion/nirs-eeg-0/ Radboud Research Facilities ›Facilities ›Neurology and Motion ›NIRS-EEG]


*[[NIRS-EEG protocol E.Noordanus]]
*[[NIRS-EEG protocol E.Noordanus]]
*[[NIRS-EEG lab disposables]]
*[[NIRS-EEG lab disposables]]
*[[NIRS-EEG kitchen]]


*[[NIRS-EEG kitchen]]
===Contact===
The contact person for the NIRS-EEG lab is [https://www.ru.nl/personen/wanrooij-m-van Marc van Wanrooij]. New users must be instructed before they can run experiments on their own; contact Marc to arrange this. For technical problems with the hardware you can also contact the [[Technical Support Group]].


==Experiment information==
==Experiment information==


*If you wanna book the NIRS-EEG Lab, please use [[Booking a lab|Qreserve]].
*If you want to book the NIRS-EEG Lab, please use [[Booking a lab|Qreserve]].
*Please, take notes in the lab journal about experiments that have been run
*Please take notes in the lab journal about the experiments that have been run.
*Use protocols for your study/experiments/pilots
*Use protocols for your study/experiments/pilots.
 
===Ethics and safety===
* Experiments with human subjects need approval from the ethics committee (<todo> CMO / ECSW, reference to the lab's umbrella protocol if there is one) and written informed consent from every subject.
* Check for exclusion criteria before the session (e.g. skin conditions on the scalp, recent head injury, epilepsy for experiments with flickering light).
* The NIRS light sources are class <todo> lasers/LEDs. Never look directly into an optode or fibre end, and switch the sources off before removing the cap.
* Clean and disinfect caps, optode holders and electrodes after every subject (see [[NIRS-EEG kitchen]]).
* The first aid kit is on the wall above the kitchen (right side).
 
===Subject preparation===
A full description is given in the [[NIRS-EEG protocol E.Noordanus|protocol]]. In short:
# Explain the procedure, check exclusion criteria and have the subject sign the informed consent form.
# Measure the head circumference and select the matching cap size.
# Mark Cz (halfway nasion–inion and halfway between the pre-auricular points) and position the cap according to the 10-20 system.
# Place the optodes: part the hair under each holder (a cotton bud or the back of a pen helps) so that the optode makes direct contact with the skin.
# Fill the EEG electrodes with gel/water and check the impedances (<todo> target value, e.g. < 10 kΩ).
# Check the NIRS signal quality in Oxysoft: a clear heartbeat (~1 Hz) should be visible in the raw signals of good channels. Re-adjust optodes with low or saturated signals.
# Cover the cap with a dark (black) cap to block ambient light.
# Check that triggers arrive in all recording systems before starting the experiment.
 
Plan about <todo> minutes for preparation. Dark, thick or curly hair takes considerably longer.
 
===Optode layouts===
<todo> Describe the available optode templates/montages (e.g. bilateral temporal for auditory cortex, occipital for visual cortex), with a figure of source and detector positions, and include the short-separation channels if available.
 
When designing your own layout, use a source–detector distance of about 3 cm for normal channels. A few short-separation channels (~0.8–1 cm) record mainly scalp blood flow and can be used to regress out systemic physiological noise.
 
===Synchronisation of stimuli, NIRS and EEG===
Stimuli are generated by the TDT system (RZ6), which also sends the triggers. <todo> Describe how the triggers are routed to:
* the Oxymon AD channels,
* the EEG trigger input (TMSi SAGA),
* the digital event recorder (LSLDER04) / Lab Streaming Layer.
 
'''Note:''' the Oxymon AD channels are sampled at the same rate as the optical channels. At low sampling rates short trigger pulses can be missed, so make triggers last at least two sample periods (e.g. ≥ 40 ms at 50 Hz).
 
Always check in a pilot measurement that every trigger is recorded by every system, and that the delay between systems is constant.


=== SAGA ===
=== SAGA ===
EEG is recorded with the TMSi SAGA 64+ amplifier <todo> (check the type on the label of the device). The older TMSi systems (REFA, Mobita) are no longer used.


SAGA software user package can be downloaded from the [https://info.tmsi.com/saga-user-package SAGA website].
SAGA software user package can be downloaded from the [https://info.tmsi.com/saga-user-package SAGA website]. <todo> Describe which recording software is used (TMSi Python/MATLAB interface or other) and the resulting file format (.Poly5 or .xdf).
 
The MATLAB experiment program for this lab (<code>EG_Program.m</code>, with speaker and LED locations and hardware classes) is in the [https://gitlab.science.ru.nl/marcw/biofysica/-/tree/master/experiment/EXP_programs/NIRSEEG biofysica repository on GitLab] (folder <code>experiment/EXP_programs/NIRSEEG</code>).


=== Prepared NIRS experiments ===
=== Prepared NIRS experiments ===
<todo> For each experiment: location of the code, duration, and which optode layout to use.
*Basic finger tapping experiment (blocked)
*Basic finger tapping experiment (blocked)
*Mapping experiments (blocked)
*Mapping experiments (blocked)
Line 34: Line 79:


=== Prepared EEG experiments ===
=== Prepared EEG experiments ===
<todo> For each experiment: location of the code and duration.
*Frequency oddball
*Frequency oddball
*Spatial oddball
*Spatial oddball
===Data storage===
* Raw data is stored on <todo> (recording PC / network drive), with file names according to <todo> (e.g. <code>sub-01_ses-01_task-oddball</code>).
* Copy your data to your project storage at the end of each session. Do not use the recording PC as long-term storage.
* Archive your data according to the Radboud research data management policy (e.g. a [https://data.ru.nl Radboud Data Repository] collection).
* Consider converting the data to standard formats: [https://github.com/fNIRS/snirf SNIRF] for NIRS and [https://bids.neuroimaging.io BIDS] for the dataset as a whole. This makes the data readable by most analysis toolboxes.


=== Basic NIRS analysis ===
=== Basic NIRS analysis ===
Besides Marc's scripts for all steps during NIRS data analysis, you can start using the fieldtrip toolbox http://www.fieldtriptoolbox.org/development/nirs.
Marc's MATLAB scripts for the NIRS data analysis are in the folder <code>nirs</code> of the [https://gitlab.science.ru.nl/marcw/biofysica/-/tree/master/nirs biofysica repository on GitLab]. Some useful starting points:
Here is a general pipeline of what you may wanna do with your NIRS data.
* <code>nirs_preprocessing.m</code> and <code>fnirsanalysis.m</code>: preprocessing and analysis of a whole dataset
* <code>nirs_trigger.m</code>: reading the triggers from the AD channels
* <code>nirs_sci.m</code>: signal quality per channel (scalp coupling index)
* <code>basics/mbll.m</code>, <code>basics/dpf.m</code>: modified Beer–Lambert law and differential pathlength factor
* <code>nirs_rcs.m</code>: reference (short-separation) channel subtraction
* <code>nirs_removephysnoise.m</code>: removal of physiological noise
* <code>pa_nirs_blockavg.m</code>: block averaging
* <code>layout/</code>: optode templates (<code>optodetemplates.xml</code>) and channel layouts for plotting
* <code>NIRS analyse – pipeline.docx</code>: description of the analysis pipeline (in Dutch)
 
You can also use one of the following toolboxes:
* [https://www.fieldtriptoolbox.org/tutorial/nirs_singlechannel/ FieldTrip] (MATLAB), which reads .oxy3/.oxy4 files directly;
* [https://github.com/BUNPC/Homer3 Homer3] (MATLAB);
* [https://github.com/huppertt/nirs-toolbox NIRS Brain AnalyzIR toolbox] (MATLAB), for GLM-based analysis;
* [https://mne.tools/mne-nirs/ MNE-NIRS] (Python).


* read raw data (.oxy3) recorded with the oxymon
A general pipeline for your NIRS data:
* read trigger information from AD channels
# read the raw data (.oxy3/.oxy4) recorded with the Oxymon
* define your trial (pre- and poststimulus interval, event code)
# read the trigger information from the AD channels
* apply a filter
# check the signal quality per channel (e.g. scalp coupling index or the presence of a heartbeat) and exclude bad channels
* segment continuous data into trials (epoching)
# convert the raw intensities to changes in optical density
* convert data, i.e. changes in optical density to concentration changes
# correct motion artifacts (e.g. TDDR or spline interpolation)
* average data per condition/event
# convert optical density to concentration changes (HbO, HbR) with the modified Beer–Lambert law (using the differential pathlength factor, DPF)
* perform baseline correction
# apply a band-pass filter (e.g. 0.01–0.1 Hz for blocked designs) to remove drift and cardiac/respiratory signals
* plot single channels or a whole grid
# regress out the short-separation channels (if available)
# define your trials (pre- and poststimulus interval, event code) and segment the data into trials (epoching)
# perform baseline correction and average the data per condition/event, or fit a GLM
# plot single channels, the whole grid, or a topographic map


* More things to do/program: do a reference channel subtraction, plot a topomap
Always look at both HbO and HbR: a true cortical response shows an increase in HbO together with a (smaller) decrease in HbR.


=== Basic EEG analysis (event-related averaging) ===
=== Basic EEG analysis (event-related averaging) ===
Acquired data using the Polybench Software (TMSI) can be read into Matlab using tms_read(Filename.Poly5) provided by TMSI. Further analysis could for example be run with Fieldtrip (http://www.fieldtriptoolbox.org) or EEGLab (http://sccn.ucsd.edu/eeglab/).
EEG data recorded with the SAGA can be read into MATLAB or Python with the TMSi SAGA interface (see the [https://info.tmsi.com/saga-user-package SAGA user package]). FieldTrip and MNE-Python can also read .Poly5 files directly. Further analysis can be run with, for example, [https://www.fieldtriptoolbox.org FieldTrip], [https://sccn.ucsd.edu/eeglab/ EEGLAB] or [https://mne.tools MNE-Python].
 
# read the raw data and reformat the data structure to be compatible with the output of FieldTrip preprocessing
# read out the trigger/event information from the trigger channel
# filter the continuous data (e.g. high-pass 0.1–1 Hz, low-pass 30–40 Hz). Filter before epoching to avoid edge effects.
# re-reference (e.g. to the average or the mastoids)
# define your trials (pre- and poststimulus interval, event code) and segment the data into trials (epoching)
# detect and remove artifacts (bad channels, eye blinks e.g. with ICA, trials with large amplitudes)
# correct the baseline
# average the data per condition/event
# prepare the channel layout for the electrode cap used (once, for correct plotting)
# plot single channels, all channels, or the topographic distribution (for a specified time interval)
 
For simultaneous NIRS-EEG recordings, check whether the NIRS optodes or the subject's movements cause artifacts in the EEG channels near the optodes.


* reformat raw data structure to be compatible with the output of fieldtrip preprocessing
===Troubleshooting===
* readout trigger/event information from the trigger channel
* '''No or weak NIRS signal / no heartbeat visible''': hair between optode and skin, so re-part the hair. Also check that the fibre is fully inserted in the holder.
* define your trial (pre- and poststimulus interval, event code)
* '''Saturated NIRS channel''': ambient light leaking in, or the optode is not in contact with the skin. Use the dark overcap and check the fit of the cap.
* segment continuous data into trials (epoching)
* '''Missing triggers in the NIRS data''': the trigger pulse is too short for the sampling rate (see [[#Synchronisation of stimuli, NIRS and EEG|Synchronisation]]).
* detect and remove artifacts
* '''High EEG impedances''': add gel/water and gently abrade the skin under the electrode.
* filtering
<todo> Add lab-specific problems and solutions.
* average data per condition/event
* correct baseline
* prepare channel layout once depending on the used electrode cap (for correct plotting)
* plot single channels, all channels, or topographic distribution (for a specified time interval)


[[Category:Labs]]
[[Category:Labs]]

Latest revision as of 10:55, 27 November 2026

Scientific supervisor is Marc van Wanrooij

to technical info

Introduction

Location of NIRS-EEG Lab

In the NIRS-EEG lab brain activity is measured with electroencephalography (EEG) and functional near-infrared spectroscopy (fNIRS), separately or simultaneously. The two techniques complement each other:

  • EEG records the electrical activity of the brain with millisecond resolution, but its spatial resolution is poor.
  • fNIRS measures changes in oxygenated (HbO) and deoxygenated (HbR) haemoglobin in the outer layer of the cortex. Its spatial resolution is in the order of 1–3 cm (depending on the source–detector distance), but it is slow: the haemodynamic response peaks about 5–7 s after stimulus onset and takes 10–15 s to return to baseline. Experiments therefore use blocked designs, or event-related designs with long and jittered inter-stimulus intervals.

Both techniques are non-invasive, silent and comfortable for the subject. Unlike fMRI, fNIRS can also be used with subjects who wear a cochlear implant, hearing aid or bone-conduction device. This makes the lab particularly suited for auditory research in hearing-impaired listeners.

The lab is equipped with a sound-attenuated booth with a semi-circle of 31 speakers and 31 LEDs (−90° to +90°), TDT hardware for stimulus generation, two 24-channel Oxymon fNIRS systems (Artinis) and a TMSi SAGA EEG amplifier. See NIRS-EEG technical info for details.

The entrance of the NIRS-EEG lab is room W36A -2.002 (see Location of the Biophysics Labs).

The NIRS-EEG lab is part of Radboud Research Facilities: Radboud Research Facilities ›Facilities ›Neurology and Motion ›NIRS-EEG

Contact

The contact person for the NIRS-EEG lab is Marc van Wanrooij. New users must be instructed before they can run experiments on their own; contact Marc to arrange this. For technical problems with the hardware you can also contact the Technical Support Group.

Experiment information

  • If you want to book the NIRS-EEG Lab, please use Qreserve.
  • Please take notes in the lab journal about the experiments that have been run.
  • Use protocols for your study/experiments/pilots.

Ethics and safety

  • Experiments with human subjects need approval from the ethics committee (<todo> CMO / ECSW, reference to the lab's umbrella protocol if there is one) and written informed consent from every subject.
  • Check for exclusion criteria before the session (e.g. skin conditions on the scalp, recent head injury, epilepsy for experiments with flickering light).
  • The NIRS light sources are class <todo> lasers/LEDs. Never look directly into an optode or fibre end, and switch the sources off before removing the cap.
  • Clean and disinfect caps, optode holders and electrodes after every subject (see NIRS-EEG kitchen).
  • The first aid kit is on the wall above the kitchen (right side).

Subject preparation

A full description is given in the protocol. In short:

  1. Explain the procedure, check exclusion criteria and have the subject sign the informed consent form.
  2. Measure the head circumference and select the matching cap size.
  3. Mark Cz (halfway nasion–inion and halfway between the pre-auricular points) and position the cap according to the 10-20 system.
  4. Place the optodes: part the hair under each holder (a cotton bud or the back of a pen helps) so that the optode makes direct contact with the skin.
  5. Fill the EEG electrodes with gel/water and check the impedances (<todo> target value, e.g. < 10 kΩ).
  6. Check the NIRS signal quality in Oxysoft: a clear heartbeat (~1 Hz) should be visible in the raw signals of good channels. Re-adjust optodes with low or saturated signals.
  7. Cover the cap with a dark (black) cap to block ambient light.
  8. Check that triggers arrive in all recording systems before starting the experiment.

Plan about <todo> minutes for preparation. Dark, thick or curly hair takes considerably longer.

Optode layouts

<todo> Describe the available optode templates/montages (e.g. bilateral temporal for auditory cortex, occipital for visual cortex), with a figure of source and detector positions, and include the short-separation channels if available.

When designing your own layout, use a source–detector distance of about 3 cm for normal channels. A few short-separation channels (~0.8–1 cm) record mainly scalp blood flow and can be used to regress out systemic physiological noise.

Synchronisation of stimuli, NIRS and EEG

Stimuli are generated by the TDT system (RZ6), which also sends the triggers. <todo> Describe how the triggers are routed to:

  • the Oxymon AD channels,
  • the EEG trigger input (TMSi SAGA),
  • the digital event recorder (LSLDER04) / Lab Streaming Layer.

Note: the Oxymon AD channels are sampled at the same rate as the optical channels. At low sampling rates short trigger pulses can be missed, so make triggers last at least two sample periods (e.g. ≥ 40 ms at 50 Hz).

Always check in a pilot measurement that every trigger is recorded by every system, and that the delay between systems is constant.

SAGA

EEG is recorded with the TMSi SAGA 64+ amplifier <todo> (check the type on the label of the device). The older TMSi systems (REFA, Mobita) are no longer used.

SAGA software user package can be downloaded from the SAGA website. <todo> Describe which recording software is used (TMSi Python/MATLAB interface or other) and the resulting file format (.Poly5 or .xdf).

The MATLAB experiment program for this lab (EG_Program.m, with speaker and LED locations and hardware classes) is in the biofysica repository on GitLab (folder experiment/EXP_programs/NIRSEEG).

Prepared NIRS experiments

<todo> For each experiment: location of the code, duration, and which optode layout to use.

  • Basic finger tapping experiment (blocked)
  • Mapping experiments (blocked)
  • Auditory oddball experiment (tones, event-related)

Prepared EEG experiments

<todo> For each experiment: location of the code and duration.

  • Frequency oddball
  • Spatial oddball

Data storage

  • Raw data is stored on <todo> (recording PC / network drive), with file names according to <todo> (e.g. sub-01_ses-01_task-oddball).
  • Copy your data to your project storage at the end of each session. Do not use the recording PC as long-term storage.
  • Archive your data according to the Radboud research data management policy (e.g. a Radboud Data Repository collection).
  • Consider converting the data to standard formats: SNIRF for NIRS and BIDS for the dataset as a whole. This makes the data readable by most analysis toolboxes.

Basic NIRS analysis

Marc's MATLAB scripts for the NIRS data analysis are in the folder nirs of the biofysica repository on GitLab. Some useful starting points:

  • nirs_preprocessing.m and fnirsanalysis.m: preprocessing and analysis of a whole dataset
  • nirs_trigger.m: reading the triggers from the AD channels
  • nirs_sci.m: signal quality per channel (scalp coupling index)
  • basics/mbll.m, basics/dpf.m: modified Beer–Lambert law and differential pathlength factor
  • nirs_rcs.m: reference (short-separation) channel subtraction
  • nirs_removephysnoise.m: removal of physiological noise
  • pa_nirs_blockavg.m: block averaging
  • layout/: optode templates (optodetemplates.xml) and channel layouts for plotting
  • NIRS analyse – pipeline.docx: description of the analysis pipeline (in Dutch)

You can also use one of the following toolboxes:

A general pipeline for your NIRS data:

  1. read the raw data (.oxy3/.oxy4) recorded with the Oxymon
  2. read the trigger information from the AD channels
  3. check the signal quality per channel (e.g. scalp coupling index or the presence of a heartbeat) and exclude bad channels
  4. convert the raw intensities to changes in optical density
  5. correct motion artifacts (e.g. TDDR or spline interpolation)
  6. convert optical density to concentration changes (HbO, HbR) with the modified Beer–Lambert law (using the differential pathlength factor, DPF)
  7. apply a band-pass filter (e.g. 0.01–0.1 Hz for blocked designs) to remove drift and cardiac/respiratory signals
  8. regress out the short-separation channels (if available)
  9. define your trials (pre- and poststimulus interval, event code) and segment the data into trials (epoching)
  10. perform baseline correction and average the data per condition/event, or fit a GLM
  11. plot single channels, the whole grid, or a topographic map

Always look at both HbO and HbR: a true cortical response shows an increase in HbO together with a (smaller) decrease in HbR.

Basic EEG analysis (event-related averaging)

EEG data recorded with the SAGA can be read into MATLAB or Python with the TMSi SAGA interface (see the SAGA user package). FieldTrip and MNE-Python can also read .Poly5 files directly. Further analysis can be run with, for example, FieldTrip, EEGLAB or MNE-Python.

  1. read the raw data and reformat the data structure to be compatible with the output of FieldTrip preprocessing
  2. read out the trigger/event information from the trigger channel
  3. filter the continuous data (e.g. high-pass 0.1–1 Hz, low-pass 30–40 Hz). Filter before epoching to avoid edge effects.
  4. re-reference (e.g. to the average or the mastoids)
  5. define your trials (pre- and poststimulus interval, event code) and segment the data into trials (epoching)
  6. detect and remove artifacts (bad channels, eye blinks e.g. with ICA, trials with large amplitudes)
  7. correct the baseline
  8. average the data per condition/event
  9. prepare the channel layout for the electrode cap used (once, for correct plotting)
  10. plot single channels, all channels, or the topographic distribution (for a specified time interval)

For simultaneous NIRS-EEG recordings, check whether the NIRS optodes or the subject's movements cause artifacts in the EEG channels near the optodes.

Troubleshooting

  • No or weak NIRS signal / no heartbeat visible: hair between optode and skin, so re-part the hair. Also check that the fibre is fully inserted in the holder.
  • Saturated NIRS channel: ambient light leaking in, or the optode is not in contact with the skin. Use the dark overcap and check the fit of the cap.
  • Missing triggers in the NIRS data: the trigger pulse is too short for the sampling rate (see Synchronisation).
  • High EEG impedances: add gel/water and gently abrade the skin under the electrode.

<todo> Add lab-specific problems and solutions.