[Paper Review] S-JEPA: TOWARDS SEAMLESS CROSS-DATASET TRANSFER THROUGH DYNAMIC SPATIAL ATTENTION
This paper introduces S-JEPA, a self-supervised learning framework for EEG signal processing that uses dynamic spatial attention and channel-based block masking to enable seamless cross-dataset transfer. It achieves state-of-the-art performance on ERP and SSVEP BCI tasks, with spatial filtering via the pre-local architecture proving critical for downstream accuracy.
Motivated by the challenge of seamless cross-dataset transfer in EEG signal processing, this article presents an exploratory study on the use of Joint Embedding Predictive Architectures (JEPAs). In recent years, self-supervised learning has emerged as a promising approach for transfer learning in various domains. However, its application to EEG signals remains largely unexplored. In this article, we introduce Signal-JEPA for representing EEG recordings which includes a novel domain-specific spatial block masking strategy and three novel architectures for downstream classification. The study is conducted on a 54 subjects dataset and the downstream performance of the models is evaluated on three different BCI paradigms: motor imagery, ERP and SSVEP. Our study provides preliminary evidence for the potential of JEPAs in EEG signal encoding. Notably, our results highlight the importance of spatial filtering for accurate downstream classification and reveal an influence of the length of the pre-training examples but not of the mask size on the downstream performance.
Motivation & Objective
- Address the challenge of data scarcity in EEG-based brain-computer interfaces (BCIs) by enabling seamless cross-dataset transfer through self-supervised learning.
- Explore the efficacy of Joint Embedding Predictive Architectures (JEPAs) in EEG signal representation, particularly with novel masking and fine-tuning strategies.
- Investigate domain-specific design choices—especially spatial masking and architectural choices—for improving downstream classification in diverse BCI paradigms.
- Compare multiple pre-training configurations and fine-tuning strategies to identify optimal pipelines for motor imagery, ERP, and SSVEP tasks.
Proposed method
- Proposes S-JEPA, a framework that uses a dual-encoder architecture: a local encoder for channel-wise temporal features and a contextual encoder for sequence-level representations.
- Introduces a novel domain-specific spatial block masking strategy that masks entire EEG channels in contiguous blocks, enabling dynamic spatial attention learning.
- Employs a predictor head to reconstruct masked tokens by predicting their embeddings from the contextual encoder’s output, using L1 loss against targets from an EMA-updated target encoder.
- Uses exponential moving average (EMA) to update the target encoder parameters without backpropagation, stabilizing training in the JEPA framework.
- Evaluates three fine-tuning strategies: full-contextual, new-contextual, and pre-local (with spatial filtering via linear channel combination), applied after pre-training.
- Pre-trains on a 54-subject EEG dataset using 1s, 4s, 16s, or no pre-training window lengths, with varying mask ratios (40%, 60%, 80%) on channel blocks.
Experimental results
Research questions
- RQ1What is the most effective masking strategy for self-supervised pre-training on EEG signals, particularly when applied to spatial channels?
- RQ2How does the length of the pre-training window influence downstream classification performance across different BCI paradigms?
- RQ3What is the impact of mask size (radius) on downstream performance, and does it vary across EEG tasks?
- RQ4Which downstream fine-tuning strategy—full-contextual, new-contextual, or pre-local—yields the best classification accuracy?
- RQ5To what extent does spatial filtering via channel-level linear combination improve model performance in EEG representation learning?
Key findings
- The 16s pre-training window consistently achieved the highest downstream performance across all BCI paradigms, indicating that longer context improves representation learning.
- The pre-local fine-tuning strategy, which applies spatial filtering via linear combination of channels before feature extraction, achieved the best overall classification accuracy and ranked first in two-thirds of all evaluation folds.
- The model achieved state-of-the-art performance on the ERP task (97% AUC) and surpassed the prior SOTA on the SSVEP task (94% accuracy), though it underperformed on the MI task.
- Mask radius (i.e., block size) had no significant influence on downstream performance, suggesting that the relative size of masked channel blocks is less critical than the overall masking strategy.
- Contextual-based fine-tuning architectures (full or new-contextual) performed poorly when combined with 16s pre-training, indicating a misalignment between long context in pre-training and short context in fine-tuning.
- The MI task showed high variability in performance, with a large standard deviation, likely due to the presence of six particularly difficult subjects identified in the Lee2019 dataset.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.