Papers
Topics
Authors
Recent
Search
2000 character limit reached

CFSPMNet: Cross-subject Fourier-guided Spatial-Patch Mamba Network for EEG Motor Imagery Decoding in Stroke Patients

Published 11 May 2026 in cs.LG, cs.AI, and cs.CV | (2605.10111v1)

Abstract: Motor imagery electroencephalography (MI-EEG) decoding offers a non-invasive route for post-stroke rehabilitation, but cross-patient use remains difficult because pathological neural reorganization changes task-related EEG dynamics, aperiodic activity, local excitability, cross-regional coordination, and trial-level brain-state context. This makes source-learned MI representations unreliable for unseen patients. To address this problem, we propose CFSPMNet, a cross-patient adaptation framework that models post-stroke MI-EEG as latent neural-state organization. CFSPMNet combines a Fourier-Reorganized State Mamba Network (FRSM) with Shared-Private Prototype Matching (SPPM). FRSM represents each trial as a latent physiological token sequence, reorganizes token states in the Fourier domain, and uses Fourier-derived trial context to guide Mamba state-space propagation. SPPM improves target pseudo-label updating by combining semantic confidence with shared-private physiological consistency, filtering confident but physiologically inconsistent target predictions. Leave-one-subject-out experiments on two stroke MI-EEG datasets show that CFSPMNet outperforms representative CNN-, Transformer-, Mamba-, and adaptation-based baselines, achieving average accuracies of 68.23% on XW-Stroke and 73.33% on 2019-Stroke, with gains of 5.63 and 8.25 percentage points over the strongest competitors. Ablation, sensitivity, feature-alignment, pseudo-label selection, and neurophysiological visualization analyses further support the roles of Fourier-domain token-state reorganization and calibrated pseudo-label updating. These results suggest that latent neural-state modeling can improve rehabilitation-oriented cross-patient BCI decoding. Code is available at https://github.com/wxk1224/CFSPMNet.

Summary

  • The paper introduces a novel CFSPMNet framework that leverages Fourier-guided token reorganization and shared-private prototype matching to enhance cross-patient MI-EEG decoding in stroke patients.
  • By integrating amplitude-phase context through Fourier transforms, the network aligns latent neural-state trajectories across patients, achieving significant accuracy gains over baseline models.
  • Extensive ablation studies confirm that both Fourier context injection and calibrated pseudo-labeling are vital for robust adaptation, promising improved clinical rehabilitation outcomes.

CFSPMNet: Fourier-Guided Spatial-Patch Mamba Networks for Cross-Patient Post-Stroke MI-EEG Decoding

Introduction

The efficacy of motor imagery (MI) EEG-based brain-computer interfaces (BCIs) in facilitating post-stroke rehabilitation is well documented. However, cross-patient generalization remains a significant bottleneck due to individualized neural reorganization post-stroke, which manifests as disruptions in both task-related EEG dynamics and background aperiodic brain activity. Traditional approaches, whether based on CNNs, Transformers, or conventional domain adaptation, predominantly treat between-patient decoding as a challenge of distributional discrepancy or feature misalignment. However, these do not sufficiently model underlying latent neural-state reorganization specific to stroke pathology.

The paper introduces CFSPMNet, a targeted approach for cross-subject post-stroke MI-EEG decoding, explicitly modeling the latent organization of neural states. CFSPMNet integrates two primary modules: the Fourier-Reorganized State Mamba Network (FRSM) and Shared-Private Prototype Matching (SPPM). These are designed to capture and align latent neural-state trajectories across patients and provide robust calibration for pseudo-labels in the target domain. Figure 1

Figure 1: Overall framework of CFSPMNet for cross-patient post-stroke MI-EEG decoding.

Methodology

Problem Formulation

Given a set of labeled source-patient MI-EEG trials and unlabeled target-patient trials, the network is tasked with learning a function capable of decoding target-patient MI intentions without requiring target labels. Leave-one-subject-out (LOSO) evaluation ensures rigorous testing of cross-patient adaptation.

Fourier-Reorganized State Mamba Network (FRSM)

Each MI-EEG trial is represented as a sequence of latent physiological tokens, reflecting local neural states across spatial patches. The FRSM module orchestrates token reorganization in the Fourier domain and injects amplitude-phase context into the Mamba state-space propagation mechanism. Figure 2

Figure 2: Architecture of the Fourier-Reorganized State Mamba Network.

  • Tokenization: Spatiotemporal EEG fragments are projected to compact tokens.
  • Fourier domain reorganization: The tokens undergo rFFT, are reorganized through a learned complex mixer, sparsified, and iFFT reconstructed. This operation encapsulates both periodic MI-relevant rhythms and aperiodic background activity, aligning local and global neural-population states for each trial.
  • Context-conditioned propagation: The Fourier-derived context modulates the Mamba state-space encoder by conditioning selective propagation gates, making the model adaptive to complex, patient-specific state organizations typical in post-stroke EEG. Figure 3

    Figure 3: Fourier-domain token-state reorganization on XW-Stroke and 2019-Stroke.

Shared-Private Prototype Matching (SPPM)

SPPM addresses the unreliability of conventional pseudo-labeling in pathological EEG datasets, where high classifier confidence does not guarantee physiological consistency. Figure 4

Figure 4: Shared-Private Prototype Matching for calibrated target pseudo-label updating.

  • Shared prototypes: Class-wise anchors are constructed from source patients, reflecting shared neural state organization.
  • Private signatures: Each trial obtains a concise signature summarizing individual physiological state.
  • Calibrated pseudo-labeling: Target trials are used for adaptation only if both classifier confidence and physiological consistency with shared class structure meet pre-defined criteria, avoiding reinforcement of spurious alignments. Figure 5

    Figure 5: Calibrated target pseudo-label selection on XW-Stroke and 2019-Stroke.

Training Protocol

The optimization follows a two-stage schedule: (1) source-supervised encoder/classifier training with prototype construction, and (2) joint adaptation using source supervision and calibrated SPPM-based target pseudo-supervision.

Experimental Results and Analysis

Cross-Patient Decoding Performance

CFSPMNet was evaluated on two post-stroke MI-EEG datasetsโ€”XW-Stroke and 2019-Strokeโ€”using a strict LOSO protocol. Across both datasets, the network showed superior accuracy and balanced classwise discrimination, substantially outperforming state-of-the-art CNN-, Transformer-, Mamba-, and adaptation-based baselines. For XW-Stroke, an average accuracy of 68.23% represented a +5.63% absolute gain over the strongest baseline. On 2019-Stroke, the gain was +8.25%.

The improvement was particularly pronounced in F1 and kappa statistics, indicating both improved sensitivity and specificity as well as robust agreement in class assignments beyond chance.

Ablation Studies

Module ablations demonstrated that:

  • Removing SPPM resulted in drops of up to 4.27% (XW-Stroke) and 2.33% (2019-Stroke) in accuracy, confirming the necessity of physiological consistency-based pseudo-label gating.
  • Disabling the dynamic update mechanism or the Fourier context injection led to more severe degradation, highlighting these as critical to robust cross-subject transfer.

Hyperparameter Sensitivity

Empirical sensitivity analysis confirmed that representation capacity and Fourier reorganization parameters should be co-tuned to the intrinsic heterogeneity of each dataset (Figure 6). Figure 6

Figure 6: Hyperparameter sensitivity on XW-Stroke and 2019-Stroke.

Feature Alignment Visualization

t-SNE visualizations illustrated a clear class-wise separation and alignment between source and target trials in the learned embedding space, demonstrating effective transfer and suppression of pathologically inconsistent target alignments. Figure 7

Figure 7: t-SNE feature distributions on XW-Stroke and 2019-Stroke.

Neurophysiological Interpretability

Spatial patterns in both learned weights and input gradients demonstrated organized, physiologically plausible sensitivity, indicating that CFSPMNet leverages distributed sensorimotor circuits for MI decoding rather than overfitting to individual channels. Figure 8

Figure 8: Spatial neurophysiological interpretability on XW-Stroke and 2019-Stroke.

Implications and Future Directions

Theoretical Implications

CFSPMNet reframes the cross-subject MI-EEG decoding challenge for stroke rehabilitation as a latent neural-state organization problem rather than a mere adaptation of statistical features. The explicit modeling of trial-specific amplitude-phase structure and aperiodic activity, and the context-dependent gating of adaptation signals, directly address the biological substrate of post-stroke EEG variabilityโ€”namely, altered cortical excitability, disrupted state coordination, and the coexistence of periodic/aperiodic dynamics [Brake2024, Cross2025The, 10.1523/JNEUROSCI.1041-25.2025].

Practical Implications

For rehabilitation-oriented BCIs, robust cross-patient decoding minimizes per-patient calibration and enhances clinical viability. Critically, SPPM's calibrated pseudo-labeling may reduce the risk of maladaptive feedback in clinical closed-loop settings, which is crucial for maintaining patient trust and therapeutic effectiveness [10.1177/10538135261441843].

Directions for Future Work

Given the large inter-individual variance and the limited size of currently available clinical datasets, future research should:

  • Expand validation to larger, more diverse multi-center cohorts with richer clinical and neuroimaging metadata to stratify model performance against lesion profiles, impairment severity, and rehabilitation stages.
  • Incorporate structured clinical covariates into the adaptation process, potentially using clinical variables or imaging-derived descriptors to guide domain adaptation or subgroup selection.
  • Pursue online adaptation and real-time feedback evaluation, emphasizing not only offline decoding accuracy but also stability of calibration, session-to-session adaptation, and reductions in erroneous feedback.
  • Explore integration with multimodal signals for more robust and personalized neural-state modeling.

Conclusion

CFSPMNet advances post-stroke MI-EEG BCI by recasting inter-patient decoding as an issue of latent neural-state organization, rather than solely distributional alignment. By synthesizing Fourier-guided token-state reorganization and principled pseudo-label calibration, the model achieves substantial improvements over current baselines in both accuracy and physiological consistency. The framework is positioned to enable more reliable, patient-adaptive rehabilitation systems, and offers a promising foundation for future advances in cross-patient neural decoding in both research and clinical practice (2605.10111).

Paper to Video (Beta)

No one has generated a video about this paper yet.

Whiteboard

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

Open Problems

We haven't generated a list of open problems mentioned in this paper yet.

Collections

Sign up for free to add this paper to one or more collections.