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 predominantly based on spatial filtering and linear classification frameworks. Methods such as Common Spatial Pattern5 (CSP) and divergence-based CSP6 (div-CSP) have been widely used to extract discriminative spatial features from multi-channel EEG signals. To further extract features across distinct frequency components, Filter Bank CSP7 (FBCSP) and Sub-band CSP8,9 (SBCSP) have been extensively explored. In addition, temporal segmentation has been integrated into the feature extraction process by dividing each trial into multiple time intervals, allowing the capture of evolving discriminative patterns and further enhancing decoding performance10,11,12. To enhance the discriminability of extracted features, various feature selection strategies have been introduced to reduce redundancy and mitigate overfitting13,14,15. For classification, traditional machine learning models such as support vector machines16 and regularized regression classifiers17,18,19 continue to be widely used because of their interpretability and computational efficiency.
Despite their effectiveness, these approaches are typically implemented in customized, dataset-specific codebases, which complicates systematic reuse and independent verification. Several graphical user interface (GUI)-based software platforms have been developed to support EEG analysis and BCI research. For example, EEGLAB20 offers a comprehensive suite of functions for EEG preprocessing, time-frequency analysis, feature extraction, classification, and advanced visualization. Its highly modular and extensible architecture has enabled broad adoption within the EEG research field. BCILAB21, in integration with EEGLAB, incorporates over 100 signal processing and machine learning algorithms spanning the entire decoding pipeline, from preprocessing to classification. Similarly, OpenViBE22 offers a visual programming environment for designing real-time BCI workflows, in which users can assemble signal-processing pipelines by graphically linking modular components. The platform is particularly suited for online EEG acquisition and real-time stimulus-response paradigms, and has been widely used in the development and testing of interactive BCI applications. In addition, PyNoetic, a modular Python framework for no-code EEG brain-computer interface development, enables end-to-end BCI workflow construction through an integrated GUI supporting data acquisition, preprocessing, feature extraction, and classification23. Unlike earlier tools that require substantial manual configuration or scripting, PyNoetic offers a higher level of abstraction for pipeline design, enabling flexible assembly and reconfiguration of processing stages without low-level programming. In many MI-EEG studies, these platforms can already support routine preprocessing, conventional feature extraction, and baseline decoding and evaluation.
Several GUI-based platforms support MI-EEG analysis through standardized preprocessing, feature extraction, and baseline decoding (Table 1). However, they lack optimization for fine-grained spatial-frequency-time decomposition, including user-defined spatial partitioning and cross-domain visualization. To address these methodological needs, a fine-grained spatial-temporal-frequency decoding framework for MI-EEG24 was previously proposed, jointly modeling spatial electrode groups, frequency sub-bands, and temporal segments to improve decoding performance and enhance multi-domain interpretability. Building on this framework, the Spatial-Temporal-Frequency EEG analysis tool (STFEEG-Tool) was developed as a graphical user interface (GUI)-based toolbox that standardizes fine-grained MI-EEG decoding within a configurable and reproducible workflow while remaining compatible with existing EEG toolchains.
STFEEG-Tool integrates data preparation, preprocessing, spatial-temporal-frequency segmentation, feature extraction, wrapper-based feature selection, classification, and visualization into a unified pipeline. Rather than replacing established EEG toolboxes, it complements them through transparent parameter specification, consistent pipeline execution, and model-informed visualization to support fine-grained analysis.
The main contributions of this work are threefold. First, STFEEG-Tool provides a user-friendly, end-to-end GUI workflow with standardized parameter configuration for fine-grained MI-EEG decoding. Second, it enables multiscale spatial-temporal-frequency segmentation, including user-defined spatial decomposition, which is not consistently available on general-purpose platforms. Third, it enhances interpretability through time-frequency topographical maps and electrode-group significance maps that summarize discriminative contributions and reveal subject-specific MI-relevant patterns across domains.
The toolbox is open-source and available at: https://github.com/CissyZR/Spatial-Frequency-Temporal_EEG_Analysis_Tool