Spatial-Temporal Mamba Network for EEG-based Motor Imagery Classification

Read original: arXiv:2409.09627 - Published 9/17/2024 by Xiaoxiao Yang, Ziyu Jia
Total Score

0

Spatial-Temporal Mamba Network for EEG-based Motor Imagery Classification

Sign in to get full access

or

If you already have an account, we'll log you in

Overview

  • This paper proposes a neural network architecture called the Spatial-Temporal Mamba Network (ST-Mamba) for electroencephalography (EEG)-based motor imagery classification.
  • The goal is to improve the accuracy of brain-computer interface (BCI) systems that use motor imagery, which involves the mental rehearsal of physical movements without actual movement.
  • The ST-Mamba network combines spatial and temporal feature extraction to capture the complex patterns in EEG data related to motor imagery.

Plain English Explanation

The human brain generates electrical signals, known as electroencephalography (EEG), that can be measured on the scalp. When a person imagines moving a part of their body, such as their hand or leg, these EEG signals exhibit specific patterns. Brain-computer interfaces aim to detect and interpret these patterns to allow the person to control a computer or device using their thoughts alone, without any physical movement.

The researchers in this paper have developed a new neural network architecture called the Spatial-Temporal Mamba Network (ST-Mamba) to improve the accuracy of these brain-computer interfaces for motor imagery tasks. The key idea is to combine two important aspects of the EEG data: the spatial information (where the signals are coming from on the scalp) and the temporal information (how the signals change over time). By capturing both the spatial and temporal patterns in the EEG data, the ST-Mamba network can more effectively recognize the mental imagery of physical movements, which is the basis for controlling a brain-computer interface.

Technical Explanation

The ST-Mamba network consists of two main components: a spatial feature extractor and a temporal feature extractor. The spatial feature extractor uses convolutional neural networks to capture the spatial relationships between the different EEG electrodes on the scalp. The temporal feature extractor uses recurrent neural networks, specifically long short-term memory (LSTM) units, to model the temporal dynamics of the EEG signals over time.

The outputs of the spatial and temporal feature extractors are then combined using a multi-head attention mechanism, which allows the network to learn how to best integrate the spatial and temporal information for the motor imagery classification task. The final classification is performed using a fully connected layer.

The researchers evaluated the ST-Mamba network on several publicly available EEG datasets for motor imagery classification. The results showed that the ST-Mamba network outperformed other state-of-the-art methods, demonstrating the effectiveness of the combined spatial-temporal approach for this application.

Critical Analysis

The paper provides a thorough evaluation of the ST-Mamba network and compares its performance to other leading methods. However, the authors do not discuss any potential limitations or caveats of their approach. For example, the network architecture may be computationally expensive or require a large amount of training data to achieve good performance.

Additionally, the paper does not explore the interpretability of the ST-Mamba network, which is an important consideration for brain-computer interface systems that need to provide users with clear explanations of how their thoughts are being interpreted. Further research could investigate ways to make the network's decision-making process more transparent and understandable.

Conclusion

The Spatial-Temporal Mamba Network (ST-Mamba) proposed in this paper represents a promising step forward in improving the accuracy of brain-computer interfaces that use motor imagery. By combining spatial and temporal feature extraction, the network is able to more effectively capture the complex patterns in EEG data related to the mental rehearsal of physical movements. This could lead to more reliable and user-friendly brain-computer interface systems, with applications in assistive technology, rehabilitation, and various other domains.



This summary was produced with help from an AI and may contain inaccuracies - check out the links to read the original source documents!

Follow @aimodelsfyi on 𝕏 →

Related Papers

Spatial-Temporal Mamba Network for EEG-based Motor Imagery Classification
Total Score

0

New!Spatial-Temporal Mamba Network for EEG-based Motor Imagery Classification

Xiaoxiao Yang, Ziyu Jia

Motor imagery (MI) classification is key for brain-computer interfaces (BCIs). Until recent years, numerous models had been proposed, ranging from classical algorithms like Common Spatial Pattern (CSP) to deep learning models such as convolutional neural networks (CNNs) and transformers. However, these models have shown limitations in areas such as generalizability, contextuality and scalability when it comes to effectively extracting the complex spatial-temporal information inherent in electroencephalography (EEG) signals. To address these limitations, we introduce Spatial-Temporal Mamba Network (STMambaNet), an innovative model leveraging the Mamba state space architecture, which excels in processing extended sequences with linear scalability. By incorporating spatial and temporal Mamba encoders, STMambaNet effectively captures the intricate dynamics in both space and time, significantly enhancing the decoding performance of EEG signals for MI classification. Experimental results on BCI Competition IV 2a and 2b datasets demonstrate STMambaNet's superiority over existing models, establishing it as a powerful tool for advancing MI-based BCIs and improving real-world BCI systems.

Read more

9/17/2024

EEGMamba: Bidirectional State Space Models with Mixture of Experts for EEG Classification
Total Score

0

EEGMamba: Bidirectional State Space Models with Mixture of Experts for EEG Classification

Yiyu Gui, MingZhi Chen, Yuqi Su, Guibo Luo, Yuchao Yang

In recent years, with the development of deep learning, electroencephalogram (EEG) classification networks have achieved certain progress. Transformer-based models can perform well in capturing long-term dependencies in EEG signals. However, their quadratic computational complexity leads to significant computational overhead. Moreover, most EEG classification models are only suitable for single tasks, showing poor generalization capabilities across different tasks and further unable to handle EEG data from various tasks simultaneously due to variations in signal length and the number of channels. In this paper, we introduce a universal EEG classification network named EEGMamba, which seamlessly integrates the Spatio-Temporal-Adaptive (ST-Adaptive) module, Bidirectional Mamba, and Mixture of Experts (MoE) into a unified framework for multiple tasks. The proposed ST-Adaptive module performs unified feature extraction on EEG signals of different lengths and channel counts through spatio-adaptive convolution and incorporates a class token to achieve temporal-adaptability. Moreover, we design a bidirectional Mamba particularly suitable for EEG signals for further feature extraction, balancing high accuracy and fast inference speed in processing long EEG signals. In order to better process EEG data for different tasks, we introduce Task-aware MoE with a universal expert, achieving the capture of both differences and commonalities between EEG data from different tasks. We test our model on eight publicly available EEG datasets, and experimental results demonstrate its superior performance in four types of tasks: seizure detection, emotion recognition, sleep stage classification, and motor imagery. The code is set to be released soon.

Read more

7/31/2024

Multi-scale spatiotemporal representation learning for EEG-based emotion recognition
Total Score

0

Multi-scale spatiotemporal representation learning for EEG-based emotion recognition

Xin Zhou, Xiaojing Peng

EEG-based emotion recognition holds significant potential in the field of brain-computer interfaces. A key challenge lies in extracting discriminative spatiotemporal features from electroencephalogram (EEG) signals. Existing studies often rely on domain-specific time-frequency features and analyze temporal dependencies and spatial characteristics separately, neglecting the interaction between local-global relationships and spatiotemporal dynamics. To address this, we propose a novel network called Multi-Scale Inverted Mamba (MS-iMamba), which consists of Multi-Scale Temporal Blocks (MSTB) and Temporal-Spatial Fusion Blocks (TSFB). Specifically, MSTBs are designed to capture both local details and global temporal dependencies across different scale subsequences. The TSFBs, implemented with an inverted Mamba structure, focus on the interaction between dynamic temporal dependencies and spatial characteristics. The primary advantage of MS-iMamba lies in its ability to leverage reconstructed multi-scale EEG sequences, exploiting the interaction between temporal and spatial features without the need for domain-specific time-frequency feature extraction. Experimental results on the DEAP, DREAMER, and SEED datasets demonstrate that MS-iMamba achieves classification accuracies of 94.86%, 94.94%, and 91.36%, respectively, using only four-channel EEG signals, outperforming state-of-the-art methods.

Read more

9/14/2024

Hierarchical Spatio-Temporal State-Space Modeling for fMRI Analysis
Total Score

0

Hierarchical Spatio-Temporal State-Space Modeling for fMRI Analysis

Yuxiang Wei, Anees Abrol, Reihaneh Hassanzadeh, Vince Calhoun

Recent advances in deep learning structured state space models, especially the Mamba architecture, have demonstrated remarkable performance improvements while maintaining linear complexity. In this study, we introduce functional spatiotemporal Mamba (FST-Mamba), a Mamba-based model designed for discovering neurological biomarkers using functional magnetic resonance imaging (fMRI). We focus on dynamic functional network connectivity (dFNC) derived from fMRI and propose a hierarchical spatiotemporal Mamba-based network that processes spatial and temporal information separately using Mamba-based encoders. Leveraging the topological uniqueness of the FNC matrix, we introduce a component-wise varied-scale aggregation (CVA) mechanism to aggregate connectivity across individual components within brain networks, enabling the model to capture both inter-component and inter-network information. To better handle the FNC data, we develop a new component-specific scanning order. Additionally, we propose symmetric rotary position encoding (SymRope) to encode the relative positions of each functional connection while considering the symmetric nature of the FNC matrix. Experimental results demonstrate significant improvements in the proposed FST-Mamba model on various brain-based classification and regression tasks. Our work reveals the substantial potential of attention-free sequence modeling in brain discovery.

Read more

8/26/2024