Fastgraph

Authors: John Mosher, Ken Taylor, Anand Joshi, Dileep Nair, Richard Leahy, Chinmay Chinara, Raymundo Cassani

THIS TUTORIAL IS CURRENTLY UNDER CONSTRUCTION

Introduction

Single-pulse electrical stimulation, or SPES, is used to study how stimulation at one brain site evokes activity across other implanted regions. In SEEG recordings, these stimulation-evoked responses are often measured from many contacts across multiple stimulation sites, making them difficult to review using conventional waveform displays. The Fastgraph, or Functional-Anatomical STacked area graph, provides a compact way to summarize these responses by displaying them as stacked area plots organized using anatomical information.

Each Fastgraph represents the response to stimulation of one contact pair. The recorded responses from other contacts are rectified, stacked, and displayed over time. Contacts can be separated by hemisphere, sorted according to response strength within a selected latency window, and colored by anatomical region or cortical label. Within Brainstorm, this process combines SPES recordings, SEEG contact locations, and anatomical labels to help users compare responses across stimulation sites, identify regions with prominent evoked activity, and review large stimulation protocols more efficiently.

Please note that this tutorial is intended for users already familiar with Brainstorm. It does not provide detailed explanations of the software's interface or theoretical foundations. For comprehensive introductory material, refer to the Brainstorm introduction tutorials.

License

This EEG, MRI, and CT data provided in this tutorial remain the property of the Cleveland Clinic, Ohio, USA. Use or distribution of this dataset outside the scope of the Brainstorm tutorials - including for research purposes - is strictly prohibited without prior written consent. For inquiries regarding permissions, please use the Brainstorm user forum.

Clinical description

The dataset featured in this tutorial was recorded at the Epilepsy Monitoring Unit (EMU) of the Cleveland Clinic, Ohio, USA using Nihon Kohden (NK). It pertains to a 39-year-old ambidextrous female with medically refractory seizures presents with seizures consisting of a loss of awareness. Scalp video-EEG monitoring showed interictal epileptiform discharges arising from both left and right anterior temporal regions. The typical clinical seizures showed ictal EEG changes that were classified as left frontotemporal, right frontotemporal, or non-localizable.

References

Further details for this study can be found below:

Download and installation

Files in dataset

tutorial_fastgraph/

sEEG recordings

Import the contacts positions

In order to generate the graphs, we need accurate 3D positions for the contacts of the depth electrodes. Placing the contacts requires a good understanding of the implantation scheme reported by the neurosurgeon and some skills in reading MRI scans.

Reviewing

Detect single-pulse triggers in SPES

This section deals with detecting the per-stimulation block triggers and adding them as events in the raw file, along with some customization options, which are explained in detail below.

Import epochs of interest

Importing the stimulation start/begin blocks. Load Single-Pulse Electrical Stimulation (SPES) from raw data.

Remove SPES artifacts

Remove Single-Pulse Electrical Stimulation (SPES) artifacts and slow drifts:

ODD EVEN events from cleaned data

  1. Import ODD EVEN events from cleaned data
  2. Average ODD and EVEN event groups ('By trial groups (folder average)' option)
  3. Average each of the above obtained ODD and EVEN per session per stimulation site so that we get a single averaged file.

Plot Fastgraphs

Plot Fastgraphs for the individual averaged file above.

Tutorials/FastGraph (last edited 2026-05-15 23:13:40 by ChinmayChinara)