All models

CFSPMNet

EEG classifier for stroke patients that steers a Mamba encoder with a Fourier-domain view of each trial.

Neuroscience signals · 398 operations Checked

100%

Showing the top corner; full diagram not loaded yetShowing a small copy; full diagram not loaded yetLarge diagram, not loaded yet

Open SVG

Loading diagram (27 KB)

Open in a new tab

Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.

At a glance

Parameters
53.5K
Operations
398
Framework
PyTorch
Recurrent
No
Published
2026, arXiv preprint
Cited by
0 (as of 28 October 2026)
Authors
Xiangkai Wang, Yun Zhao, Dongyi He and others
Checked
Passed: the trace was replayed operation by operation and matched the model's own output for this input.

Files

The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.

Details
Stable ID
m15087
Graph hash
5537a817e16f4a383944e089d0c865907c548c34c841922ba2cbf4fc6937c23f
Skeleton hash
cd960e8e171eeda7dd9f16df32842327c9dcc5542d85fb4d55186f63860d7214
Architecture hash
3cd4db7d1ee4378abe07a84416febc237edf428d2478041364ce96fe996294d2
Diagram SHA-256
27fa18270176fc6609223c333b60c92f0a2805bed0b2aebd9571ae6228a4e3e2
TorchLens version
2.36.0
Renderer
graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
Check
Forward pass replayed in PyTorch

What it is

CFSPMNet reads motor imagery, an imagined hand movement, out of EEG recorded from stroke patients, and it is designed to work on a patient it has no labels for. The paper's argument is that after a stroke the same imagined movement can follow different hidden state trajectories in different patients, so a decoder learned on some patients becomes unreliable on others.

The network is the Fourier-Reorganized State Mamba Network (FRSM), which turns each EEG trial into a sequence of tokens. In each encoder block the tokens are normalized, taken into the Fourier domain along the token dimension, mixed by a learnable complex mixer, sparsified and reconstructed. A context computed from that spectrum is then injected into a Mamba state-space branch. The paper says the Fourier step is there to rearrange token states and summarize each trial, not to extract conventional frequency-band features.

The second part, Shared-Private Prototype Matching (SPPM), acts during training: a pseudo-label for an unlabeled trial from the new patient is accepted only when the prediction is confident and also consistent with class prototypes built from the source patients. In leave-one-subject-out tests the paper reports average accuracies of 68.23% on XW-Stroke and 73.33% on 2019-Stroke. This model takes 30-channel trials and gives two class scores, the shape of XW-Stroke, where patients imagined left-hand or right-hand movement and EEG was recorded with 30 channels.

Key idea. CFSPMNet pairs a Mamba encoder conditioned on a Fourier-domain reorganization of EEG tokens with prototype-checked pseudo-labels to decode motor imagery in unseen stroke patients.

  • CFSPMNet
  • Cross-subject Fourier-guided Spatial-Patch Mamba Network
  • FRSM
  • SPPM
  • EEG motor imagery
  • stroke rehabilitation BCI
  • cross-patient EEG decoding
  • brain-computer interface
  • MI-EEG

AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.

Cite the paper

@misc{wang2026cfspmnetcrosssubjectfourierguidedspatialpatch,
      title={CFSPMNet: Cross-subject Fourier-guided Spatial-Patch Mamba Network for EEG Motor Imagery Decoding in Stroke Patients}, 
      author={Xiangkai Wang and Yun Zhao and Dongyi He and Qingling Xia and Gen Li and Xinlai Xing and Yuchi Pan and Bin Jiang},
      year={2026},
      eprint={2605.10111},
      archivePrefix={arXiv},
      primaryClass={cs.LG},
      url={https://arxiv.org/abs/2605.10111}, 
}