Papers
Topics
Authors
Recent
Search
2000 character limit reached

Graph-Guided Clustering Mixture-of-Experts CNN-GRU

Updated 7 December 2025
  • The paper introduces a novel unified framework that decodes motor execution and imagery EEG signals using advanced denoising, graph tokenization, and expert fusion techniques.
  • It leverages ICA-based preprocessing, graph attention encoding, and unsupervised spectral clustering to achieve robust spatial-temporal feature extraction and cross-subject generalization.
  • Empirical evaluations reveal state-of-the-art accuracies (up to 99.61%) on multiple EEG datasets, underscoring the framework's effectiveness and interpretability.

Graph-guided Clustering Mixture-of-Experts CNN-GRU (GCMCG) is a unified framework specifically designed for decoding motor execution (ME) and motor imagery (MI) electroencephalogram (EEG) signals in brain-computer interface (BCI) applications. It addresses critical challenges in EEG-based BCI, including the complex spatio-temporal structure of EEG, low signal-to-noise ratio, and the need for robust cross-subject generalization. GCMCG integrates dense preprocessing, learnable graph-based encoding, unsupervised spectral clustering for functional region decomposition, cluster-aware and global expert networks, an entropy-regularized mixture-of-experts (MoE) fusion scheme, and a multi-stage, class-balanced training regime. Its architecture supports multi-paradigm, multi-task, and cross-subject EEG decoding, yielding state-of-the-art performance across multiple public datasets and experimental protocols (Chen et al., 29 Nov 2025).

1. Preprocessing via ICA and Wavelet Threshold Denoising

The initial stage leverages a robust denoising pipeline, processing raw EEG X∈RC×SX \in \mathbb{R}^{C \times S} (with CC channels, SS time samples):

  • Independent Component Analysis (ICA): The EEG is decomposed as X=ΦSX = \Phi S, where Φ∈RC×C\Phi \in \mathbb{R}^{C \times C} is a mixing matrix and SS contains independent components sis_i. FastICA is employed for unmixing.
  • Kurtosis-based Rejection: Components with kurtosis <<0.5 are discarded to suppress artifacts.
  • Wavelet-Threshold Denoising: Each remaining sis_i undergoes a level-jj Daubechies-4 DWT, with a non-linear shrinkage applied to detail coefficients:

CC0

Denoised components CC1 are reconstructed via inverse DWT.

  • Signal Reconstruction and Normalization: Final denoised EEG is CC2, with channel-wise z-score normalization yielding CC3.

This preprocessing ensures robust noise suppression and channel-level normalization, thereby improving subsequent graph and expert modeling stages.

2. Graph Tokenization and Attention Encoding

A graph-based module dynamically models electrode relationships and encodes spatial topologies:

  • Graph Construction: Nodes CC4 represent electrodes, with adjacency CC5 based on the 8-connected neighborhood of the 10–20 arrangement.
  • Feature Initialization: Each node is initialized with an embedding CC6; a mask CC7 allows configurable electrode dropout.
  • Graph Attention Network (GAT): Multi-layer, multi-head GATs yield relational node embeddings through iterative neighbor aggregation:
    • Unnormalized attention: \

    CC8 - Normalized attention: \

    CC9 - Node update: \

    SS0

Multi-head concatenation produces the final graph embedding matrix SS1. This stage captures spatial locality and dynamic electrode dependencies.

3. Unsupervised Spectral Clustering of Functional Regions

An unsupervised spectral clustering algorithm decomposes the electrode graph into functionally coherent regions:

  • Region Discovery: Correlation matrix SS2 is computed from rows of SS3, yielding Laplacian SS4 with SS5.

  • Dimensionality Selection: Number of regions SS6 is adaptively selected by maximizing the eigengap in the spectrum of SS7.

  • K-Means Clustering: The first SS8 Laplacian eigenvectors form matrix SS9; k-means assigns each channel to one of X=ΦSX = \Phi S0 clusters, representing putative "functional regions."

  • Mask Generation: Soft masks X=ΦSX = \Phi S1 route standardized EEG channels to their respective expert networks.

This step enables interpretable decomposition aligned with functional brain topography and adaptive region assignment in a subject- and paradigm-agnostic manner.

4. Clustered and Global Expert Networks

The architecture features X=ΦSX = \Phi S2 expert networks, each extracting complementary spatio-temporal features:

  • Cluster-specific Experts: For each region X=ΦSX = \Phi S3:

    • Input: Masked EEG X=ΦSX = \Phi S4
    • 1D convolution: X=ΦSX = \Phi S5 (kernel size 3)
    • GRU backbone: Processes temporal features; output X=ΦSX = \Phi S6
  • Spatial Expert: Operates on the sequence of node embeddings X=ΦSX = \Phi S7, extracting spatial relational features via a GRU.
  • Global Expert: Processes the full standardized EEG X=ΦSX = \Phi S8 using the same Conv1D+GRU pipeline as regional experts.

Collectively, these expert feature vectors are concatenated for downstream fusion.

5. Entropy-Regularized Mixture-of-Experts Fusion

GCMCG employs a gated MoE mechanism for adaptive feature fusion:

  • Fusion Vector: All expert outputs are concatenated into X=ΦSX = \Phi S9.
  • Gating Network: A Φ∈RC×C\Phi \in \mathbb{R}^{C \times C}0-layer feedforward projection calculates unnormalized gate activations: Φ∈RC×C\Phi \in \mathbb{R}^{C \times C}1, with Φ∈RC×C\Phi \in \mathbb{R}^{C \times C}2.
  • Gate Normalization: Final weights are Φ∈RC×C\Phi \in \mathbb{R}^{C \times C}3, encouraging sparse expert selection (as Φ∈RC×C\Phi \in \mathbb{R}^{C \times C}4).
  • Entropy Regularization: An entropy-based penalty,

Φ∈RC×C\Phi \in \mathbb{R}^{C \times C}5

promotes decisiveness in expert contributions.

  • Fused Representation: The downstream feature is Φ∈RC×C\Phi \in \mathbb{R}^{C \times C}6.

This fusion model allows adaptive weighting of local and global experts, optimizing for the current input's spatial-temporal profile.

6. Multi-Stage Class-Weighted Training Procedure

Learning in GCMCG proceeds through a structured, three-stage process:

  • Stage 1 (Pre-training): The full model is optimized using standard cross-entropy loss with uniform random sampling.
  • Stage 2 (Fine-tuning for Class Balance): Backbone (GAT+experts) is frozen. Progressively Balanced Sampler overweights minority classes, and Focal Loss, Φ∈RC×C\Phi \in \mathbb{R}^{C \times C}7 with Φ∈RC×C\Phi \in \mathbb{R}^{C \times C}8, is employed for improved minority generalization.
  • Stage 3 (Learnable Weight Scaling): All layers except a per-class scaling vector Φ∈RC×C\Phi \in \mathbb{R}^{C \times C}9 are frozen. Final logits for class SS0 are SS1.

These training stages are designed to counteract class imbalance, promote robust cross-subject generalization, and increase model compositionality across experimental paradigms.

7. Empirical Evaluation and Ablation Insights

GCMCG was assessed across three benchmark datasets:

Dataset Subjects Channels Classes Accuracy (Top1)
EEGmmidb-BCI2000 109 64 9 (ME/MI) 86.60%
BCI-IV 2a 9 22 4 (MI) 98.57%
M3CV 106 64 3 (ME) 99.61%

Further findings on EEGmmidb-BCI2000 include Macro-Recall of 79.41%, Macro-Precision 83.07%, F1-score 0.81, and Cohen’s SS2. Ablation studies confirm the importance of the graph encoder (AUC drops by 7% if removed) and spectral clustering (removal causes a significant decline). CNN-GRU expert backbones outperform alternative designs under fixed parameter budgets. Visualizations (t-SNE, confusion matrices, ROC curves) demonstrate class-separable, robust representations and focus of learned tokenizer edges on sensorimotor areas (notably C3–CP3, C4–CP4).

8. Implementation Notes and Hyperparameter Settings

The framework is implemented in PyTorch 2.5.1, optimized for Nvidia A100 GPUs. Training uses AdamW with a learning rate of 1e-3 (warmup 10 epochs, cosine decay), entropy regularization strength SS3, batch size 64, dropout 0.5 in the gating network, weight decay 1e-5, and 200 total epochs. Progressive sampling and careful gating regularization are integral to the training pipeline.


GCMCG introduces a hybrid pipeline integrating advanced signal denoising, graph-based functional region decomposition, modular CNN–GRU expertise, and entropy-regularized MoE fusion for adaptive, interpretable, and generalizable EEG decoding. Its multi-paradigm performance and comprehensive ablation analysis establish it as an effective solution framework for next-generation BCI systems (Chen et al., 29 Nov 2025).

Definition Search Book Streamline Icon: https://streamlinehq.com
References (1)

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to Graph-guided Clustering Mixture-of-Experts CNN-GRU (GCMCG).