Brainstorm
  • Comments
  • Menu
    • Attachments
    • Versions
    • Raw Text
    • Print View
  • Login

Software

  • Introduction

  • Gallery

  • Download

  • Installation

Users

  • Tutorials

  • Forum

  • Courses

  • Community

  • Publications

Development

  • What's new

  • What's next

  • About us

  • Contact us

  • Contribute

Revision 14 as of 2026-05-02 22:50:12
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28

Fastgraph

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

THIS TUTORIAL IS CURRENTLY UNDER CONSTRUCTION

Contents

  1. Introduction
    1. License
    2. Clinical description
    3. References
  2. Download and installation
    1. Files in dataset
  3. Access the recordings
    1. Link the recordings
    2. Import the contacts positions
  4. Review recordings
    1. Add events
  5. Import epochs of interest
  6. Remove SPES artifacts
  7. ODD EVEN events from cleaned data
  8. Plot Fastgraphs

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.

In each Fastgraph, a subplot 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. 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:

  • Kenneth N. Taylor, Anand A. Joshi, Jian Li, Jorge A. Gonzalez-Martinez, Xiaofeng Wang, Richard M. Leahy, Dileep R. Nair, John C. Mosher.
    The FAST graph: A novel framework for the anatomically-guided visualization and analysis of cortico-cortical evoked potentials.
    Epilepsy Research, Elsevier, 2020.

Download and installation

  • Prerequisites:

    • Brainstorm Installation: Ensure you have a working copy of Brainstorm installed on your computer.

    • Familiarity with Brainstorm: This tutorial assumes that you have completed all the Brainstorm introduction tutorials and are comfortable with its interface and basic functionalities.

  • Download the dataset:

    • Go to the Brainstorm Download page

    • Download the file: tutorial_fastgraph.zip (to be added).

    • Unzip it into a folder that is not located in any Brainstorm directories (i.e., not in the Brainstorm program folder or database folder).
  • Brainstorm Setup:

    • Start Brainstorm.
    • From the top menu, select: File > Create new protocol.

    • Name the new protocol: TutorialFastgraph

    • Set the following options:
      "No, use individual anatomy",
      "No, use one channel file per acquisition run".

Files in dataset

tutorial_fastgraph/

Access the recordings

Link the recordings

Import the contacts positions

Review recordings

Add events

Write about per-block detecting stimulation triggers (DC10) and adding ODD EVEN events.

Import epochs of interest

Importing the stimualtion 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:

  • Detect stimulation events from a selected trigger channel
  • Replaces the artifact window around each event using spline interpolation
  • Apply Empirical Mode Decomposition (EMD) based filtering to remove low-frequency drift components

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.

  • MoinMoin Powered
  • Python Powered
  • GPL licensed
  • Valid HTML 4.01