SPDIM: Source-Free Unsupervised Conditional and Label Shift Adaptation in EEG

Shanglin Li, Motoaki Kawanabe, Reinmar J Kobler

Introduction: The Challenge of EEG Non-Stationarity

Electroencephalography (EEG) data is notoriously "non-stationary." The characteristics of brain signals change significantly between different people (cross-subject) and even for the same person on different days (cross-session). To make Brain-Computer Interfaces (BCIs) practical for everyday use, they must generalize to new "target" users without requiring a tedious calibration phase where the user provides labeled examples. This challenge is known as Source-Free Unsupervised Domain Adaptation (SFUDA).

Current state-of-the-art methods tackle this using Riemannian geometry, treating EEG covariance matrices as points on a Symmetric Positive Definite (SPD) manifold. These methods typically align the "average" signal (the Fréchet mean) of the new user with the average of the training data.

However, there is a critical flaw in this approach: if the new user has a different distribution of classes—for example, a patient who spends much less time in deep sleep than a healthy person—this alignment process actually "over-corrects" the data, leading to poor performance. This phenomenon is known as label shift, and it represents a major hurdle for real-world neurotechnology.

Methodology: Introducing SPDIM

To address the label shift problem, researchers introduce SPDIM (SPD-manifold Information Maximization), a novel geometric deep learning framework designed to make BCIs work reliably for new users without requiring any new labeled data.

Overview of the SPDIM framework, illustrating the generative model and the two-step source-free unsupervised domain adaptation process on the SPD manifold.

The SPDIM approach consists of three main components:

  1. A Realistic Generative Model: The authors first prove mathematically that while standard Riemannian alignment (like Recentering or RCT) handles changes in how signals are mixed in the brain, it fundamentally fails when the class balance (label priors) changes.
  2. Manifold-Constrained Optimization: Instead of relying on a simple global alignment that falls into the "alignment trap," SPDIM learns a domain-specific "bias" parameter ($\Phi_j$) that lives directly on the SPD manifold. By constraining the adaptation parameter to the SPD manifold, the transformation respects the underlying physical and mathematical structure of EEG signals.
  3. Information Maximization (IM): To train this bias parameter without any labels from the target user, SPDIM uses the IM principle. This objective encourages the model to produce predictions that are both certain (low conditional entropy) and diverse (high marginal entropy). This prevents the model from simply predicting one dominant class for every input.

By optimizing this single, parameter-efficient matrix for each new domain, SPDIM counteracts the over-correction introduced by standard alignment methods.

Experimental Setup

The researchers evaluated SPDIM across three distinct environments to validate its robustness:

  • Simulated Data: A controlled environment to verify their mathematical proofs regarding label shift.
  • Motor Imagery (BCI): Four public datasets involving imagined movements, where label shifts were artificially introduced to test robustness.
  • Sleep Staging: Four public datasets containing data from 426 subjects. These datasets are particularly challenging because they contain natural label shifts (e.g., sleep stage distributions differ heavily between patients and healthy sleepers).

Key Results and Insights

Robustness to Extreme Label Shifts

The paper highlights a counter-intuitive finding: the very statistical alignment techniques considered state-of-the-art for EEG become a liability when the "class priors" change.

Balanced accuracy across varying label ratios and class separability. SPDIM (red/green) remains robust under severe label shifts compared to standard alignment (RCT, orange).

In motor imagery simulations, as the label shift became more extreme (e.g., a highly imbalanced label ratio), standard alignment methods (like RCT) saw their accuracy plummet. In stark contrast, SPDIM remained remarkably stable, effectively "self-correcting" its alignment based only on the structure of the unlabeled target data.

Superiority in Real-World Sleep Staging

In the sleep staging task—where label shift is inherent and unavoidable—SPDIM significantly outperformed all baselines. In the challenging "patient" group, it beat the previous state-of-the-art (SPDDSBN) by a margin of approximately 5% in balanced accuracy. Across almost all tested configurations, the SPDIM(bias) variant emerged as either the top performer or among the very best, proving its versatility across different EEG paradigms.

Limitations and Future Work

While highly effective, the authors acknowledge that the Information Maximization (IM) loss can be sensitive. If the target data is extremely noisy or contains many outliers, the IM objective might estimate an inappropriate bias parameter, occasionally shifting the data in the wrong direction.

Future research will likely focus on making the estimation of this bias parameter more robust to outliers and exploring how this geometric, unsupervised approach can be scaled to even more complex, multi-modal neural data.

Summary updated

BibTeX
@inproceedings{li2025spdim,
  author = {Shanglin Li and Motoaki Kawanabe and Reinmar J Kobler},
  title = {{SPDIM: Source-Free Unsupervised Conditional and Label Shift Adaptation in EEG}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=CoQw1dXtGb},
}
Figure