supFunSim: Spatial Filtering Toolbox for EEG

Krzysztof Rykaczewski, Jan Nikadon, Wlodzislaw Duch, Tomasz PiotrowskiNeuroinformatics 2021

TL;DR

This paper introduces supFunSim, a new MATLAB toolbox for EEG/MEG analysis that provides a comprehensive suite of spatial filters for source reconstruction and directed connectivity analysis. It aims to simplify and enhance the process of understanding brain activity by offering a modular, object-oriented framework built upon the established FIELDTRIP toolbox.

What Problem Does This Paper Address?

Interpreting brain activity from EEG/MEG signals is a significant challenge due to the complex propagation of signals through the skull and scalp, which distorts the original brain activity. To overcome this, researchers use spatial filters to reconstruct the source activity. While many tools exist, this paper addresses the need for a unified, extensible, and object-oriented toolbox that integrates a wide range of spatial filters and connectivity analysis methods, making advanced EEG/MEG analysis more accessible and efficient.

Methods

The supFunSim toolbox is built using a modular, object-oriented approach in MATLAB, leveraging the FIELDTRIP toolbox as a foundation. Key features include:

  • EEG Forward Models: The toolbox can generate accurate EEG forward models, which are crucial for understanding how brain activity propagates to the scalp.
  • Spatial Filters: It implements a comprehensive collection of spatial filters for EEG source reconstruction, including:
  • Linearly Constrained Minimum-Variance (LCMV)
    • Eigenspace LCMV
    • Nulling (NL)
    • Minimum-Variance Pseudo-Unbiased Reduced-Rank (MV-PURE) filters (including novel versions)
  • Directed Connectivity Analysis: The toolbox enables source-level directed connectivity analysis using Partial Directed Coherence (PDC) and Directed Transfer Function (DTF) measures.
  • Signal Generation: It uses a stable multivariate autoregressive (MVAR) model to generate realistic source activity signals, allowing for simulations of event-related potentials (ERPs) and various noise conditions.
  • Object-Oriented Design: The use of classes and objects promotes code reusability, extensibility, and easier maintenance, allowing users to easily add new filters or modify existing ones.
  • Literate Programming: The code is documented using JUPYTER notebooks, integrating natural language explanations with MATLAB code and mathematical comments.

Datasets

Not discussed in the paper. The paper focuses on the toolbox's functionality and simulation capabilities rather than specific experimental datasets.

Key Insights and Ideas

  • Unified Framework: The supFunSim toolbox provides a single, coherent environment for both source reconstruction and connectivity analysis, reducing the need to integrate multiple disparate tools.
  • Extensibility through Object-Orientation: The object-oriented design is a significant advantage, making it straightforward for users to extend the toolbox with their own custom filters or analysis methods.
  • Comprehensive Filter Suite: The inclusion of both standard and novel spatial filters (like MV-PURE) allows for a thorough comparison of their performance and suitability for different research questions.
  • Realistic Signal Simulation: The use of MVAR models for signal generation, coupled with the ability to incorporate ERPs and various noise types, enables robust testing and validation of the implemented methods.
  • Integration with FIELDTRIP: Building upon FIELDTRIP ensures compatibility with a widely used EEG/MEG analysis package, facilitating adoption by the research community.

Key Results

The paper primarily describes the functionality and architecture of the supFunSim toolbox. While specific quantitative results from applying the toolbox to real data are not presented, the paper demonstrates the toolbox's capability to:

  • Generate realistic EEG forward models.
  • Implement and apply a diverse set of spatial filters for source reconstruction.
  • Perform directed connectivity analysis using PDC and DTF.
  • Visualize simulation results and analysis outputs through various plotting functions.

The authors highlight the availability of fifteen spatial filters in the current version, with plans for further expansion.

Limitations and Future Work

  • Limitations:
    • The toolbox is currently implemented in MATLAB, which might be a limitation for users who prefer Python-based environments.
  • The paper does not present extensive validation results on real-world EEG/MEG data, focusing more on the toolbox's design and simulation capabilities.
  • Future Work:
    • The authors plan to develop a Python implementation of the toolbox.
  • Further testing of the methods on real EEG experimental data is planned.
  • The toolbox is expected to be useful for analyzing information flow in the brain and characterizing the dynamics of large-scale subnetworks.

Summary updated

BibTeX
@article{rykaczewski2021supfunsim,
  author = {Krzysztof Rykaczewski and Jan Nikadon and Wlodzislaw Duch and Tomasz Piotrowski},
  title = {{supFunSim: Spatial Filtering Toolbox for EEG}},
  journal = {Neuroinformatics},
  year = {2021},
  doi = {10.1007/s12021-020-09464-w},
}
Figure