Brainstorm Tutorial - sEEG Localization

Contributor: Hao Zhu (haozhu@cuhk.edu.hk)

Create Date: 2024/01/08

This tutorial is based on:

Update History:

Introduction

This tutorial is designed to walk through the fundamental steps of sEEG electrode localization. The process includes merging pre-operative MRI with post-operative CT scans (co-registration), normalizing the data (standardization), marking the positions of the electrodes on the co-registered CT (manual electrode localization), identifying anatomical structures (atlas labeling), and visualization.

Table of Contents

  1. Installation
  2. Data preparation
  3. Getting Started
  4. Import Anatomy
  5. Electrode Localization
  6. Atlas Labeling
  7. Visualization
  8. Conclusion
  9. Extras

Installation

Follow the official installation guide for detailed instructions.

Data preparation

This tutorial uses a sample dataset from a subject collected from Shenzhen Second People’s Hospital. All neuroimages of this subject have been defaced with informed consent.

  1. pre-operative MRI
  1. post-operative CT
  1. Co-registered images (Done and provided by neurosurgeons)
  1. FreeSurfer reconstruction

Above four files are needed for this tutorial and successful electrode localization. Example files are available on request.

Getting Started

  1. Launch brainstorm (Guide)

  2. From the main window choose FileNew Protocol. Give the protocol a name, then choose::

Import Anatomy

Import neuroimages into Brainstorm.

  1. Create subject
  1. Import FreeSurfer anatomy folder
  1. import CT scan

The import step is finished. MRI and CT are co-registered and normalized.

Electrode Localization

Identify and mark the positions of the electrodes on the co-registered CT scan.

  1. Create implantation.
  1. Start localization
  1. Repeat the Step 2 for the rest electrodes.

Atlas labeling

After electrode localization, we have the correct coordinates of each contact. We can identify contact’s anatomical location in either native space (Destrieux atlas) or MNI space (AAL3 atlas). To identify the correct anatomical location of a contact, combine both labeling results and compare to actual neural signal.

  1. Native space
  1. MNI space

Visualization

You can use Brainstorm’s built-in tools or external libraries; however, mayavi and pysurfer are deprecated in my workflow.

  1. brainstorm
  1. PyVista

Conclusion

Congratulations — you have completed the Brainstorm tutorial for sEEG electrode localization. This is just the beginning—continue exploring advanced features and analyses to enhance your sEEG research.

Feel free to check the official tutorial for more in-depth information and advanced topics.

Happy brain mapping!

Extras

  1. Convert DICOM images to NifTi file.

    dcm2niix -o __output_file_path__ -f %i_%n_%p_%s_%t -z y __image_folder_path__

    • o: output directory
    • z y: output compressed = .nii.gz
    • f: output name
    • %i: patient id
    • %n: subject name
    • %p: protocol name
    • %s: series
    • %t: session date and time
  2. Run FreeSurfer reconstruction.