Method Article

STFEEG-Tool: A Spatial-Temporal-Frequency EEG Analysis Tool for Motor Imagery Brain-Computer Interfaces

DOI:

10.3791/70425

March 10th, 2026

In This Article

Summary

Loading...
$$\rightleftharpoonup{xx}$$ $$\longleftharp{xx}$$, $$\longrightharp{xx}$$,

This study presents a standardized and reproducible protocol for implementing the Spatial-Temporal-Frequency EEG analysis tool (STFEEG) for motor imagery EEG decoding, incorporating configurable spatial-temporal-frequency segmentation, Common Spatial Patterns (CSP)-based feature extraction, multiple classification algorithms, and visualization capabilities.

Abstract

Loading...
$$\rightleftharpoonup{xx}$$ $$\longleftharp{xx}$$, $$\longrightharp{xx}$$,

Motor imagery-brain-computer interfaces (MI-BCIs) have demonstrated significant potential for neurorehabilitation and cognitive neuroscience. However, a standardized and reproducible MI-EEG workflow for configurable spatial-temporal-frequency feature analysis remains limited, and many pipelines require complex configuration and parameter tuning with limited interpretability, hindering practical deployment and generalization. To address these challenges, an STFEEG-Tool was developed to provide a user-friendly, standardized, and interpretable workflow for EEG decoding in MI paradigms. STFEEG-Tool enables fine-grained configuration of temporal, frequency-band, and spatial segmentation, allowing the extraction of multiscale MI features. The toolbox integrates multiple feature extraction algorithms, including common spatial patterns (CSP) and divergence-based CSP (div-CSP), along with various classifiers, such as support vector machines (SVMs), Ridge Regression Classifier, and Lasso Classifier. A dynamic time-frequency scalp topographical map is provided to summarize spatial patterns across time-frequency segments and support interpretation of decoding results. Overall, STFEEG-Tool serves as a reproducible and extensible platform for fine-grained MI-EEG analysis, facilitating the translation of fine-grained decoding pipelines into practical, user-oriented applications.

Introduction

Loading...
$$\rightleftharpoonup{xx}$$ $$\longleftharp{xx}$$, $$\longrightharp{xx}$$,

Motor imagery brain-computer interfaces (MI-BCIs) enable direct communication between the human brain and external devices without requiring peripheral muscle activity1. In recent years, MI-BCI technology has been widely applied in neurorehabilitation2, assistive control3, and human-computer interaction4. These applications highlight the need for accessible and reproducible analysis workflows that can be reliably adopted by researchers and clinicians, including users with limited programming expertise.

Conventional MI-EEG decoding approaches are ....

Access restricted. Please log in or start a trial to view this content.

Protocol

Loading...
$$\rightleftharpoonup{xx}$$ $$\longleftharp{xx}$$, $$\longrightharp{xx}$$,

The data used in this protocol were obtained from publicly available, de-identified datasets. The original data collection procedures were conducted in accordance with the ethical standards of the respective institutions; therefore, no additional institutional approval was required for this secondary analysis.

Figure 1 illustrates the overall workflow of the Spatial-Temporal-Frequency Electroencephalography Analysis Tool. Follow the steps below to configure each module and reproduce the fine-grained spatial-frequency-time decoding protocol. The software used in this study is listed in the Table of Mater....

Access restricted. Please log in or start a trial to view this content.

Results

Loading...
$$\rightleftharpoonup{xx}$$ $$\longleftharp{xx}$$, $$\longrightharp{xx}$$,

The STFEEG-Tool was validated on both the BCI Competition IV 2a26 and the BCI Competition III 3a27, and the system successfully executed the complete decoding pipeline in both cases. The fixed cross-session protocol of BCI Competition IV 2a was followed: training on Session 1 and evaluation on the held-out Session 2, recorded on two separate days. Under the same configuration used in the previously reported fine-grained spatial-temporal-frequency framework.......

Access restricted. Please log in or start a trial to view this content.

Discussion

Loading...
$$\rightleftharpoonup{xx}$$ $$\longleftharp{xx}$$, $$\longrightharp{xx}$$,

STFEEG-Tool is designed as an MI-EEG-specific toolbox that complements established EEG ecosystems such as EEGLAB20, BCILAB21, OpenViBE22, PyNoetic23. While these platforms provide flexible components for MI decoding, fine-grained spatial-temporal-frequency configuration and model-informed interpretation may involve additional integration across processing steps. This is particularly relevant when explicit electrode-group decom.......

Access restricted. Please log in or start a trial to view this content.

Disclosures

Loading...
$$\rightleftharpoonup{xx}$$ $$\longleftharp{xx}$$, $$\longrightharp{xx}$$,

The authors have no conflicts of interest to declare.

Acknowledgements

Loading...
$$\rightleftharpoonup{xx}$$ $$\longleftharp{xx}$$, $$\longrightharp{xx}$$,

This work was supported in part by the National Natural Science Foundation of China (No.62401342 and No.62271291), the Natural Science Foundation of Shandong Province (No.ZR2024QF092, ZR2024LZH007, and ZR2025ZD24), the Guangdong Basic and Applied Basic Research Foundation (No.2025A1515011826), the Shenzhen Fundamental Research Program (No.JCYJ20250604124702003), the Sichuan Provincial Key Laboratory of Philosophy and Social Science for Language Intelligence in Special Education (No.YYZN-2025-11), the National Key Research and Development Program of China (No.2024YFC2418300 and 2024YFC2418303), and the Key Laboratory of Social Computing and Cognitive Intelligence (Dali....

Access restricted. Please log in or start a trial to view this content.

Materials

List of materials used in this article
NameCompanyCatalog NumberComments
MATLABMathWorksVersion R2024aSoftware environment for numerical computing, signal processing, and GUI development.
Signal Processing ToolboxMathWorkshttps://ww2.mathworks.cn/en/products/signal.htmlToolbox for digital filtering and time-frequency analysis
Statistics and Machine Learning ToolboxMathWorkshttps://ww2.mathworks.cn/en/products/statistics.htmlToolbox for model training and statistical analysis

References

Loading...
$$\rightleftharpoonup{xx}$$ $$\longleftharp{xx}$$, $$\longrightharp{xx}$$,
  1. Guger, C., Ramoser, H., Pfurtscheller, G. Real-time EEG analysis with subject-specific spatial patterns for a brain-computer interface (BCI). IEEE Trans Rehabil Eng. 8 (4), 447-456 (2000).
  2. Chaudhary, U., Birbaumer, N., Ramos-Murguialday, A. ....

Access restricted. Please log in or start a trial to view this content.

Reprints and Permissions

Request permission to reuse the text or figures of this JoVE article

Request Permission

Tags

Motor Imagery EEGEEG DecodingSpatial Temporal FrequencyBrain Computer InterfaceFeature ExtractionCommon Spatial PatternsFrequency BandsCross ValidationTopographical MapChannel Groups

Related Articles