TL;DR
Standard Riemannian alignment methods for EEG-based Brain-Computer Interfaces (BCIs) fail when real-world data streams are class-imbalanced, causing severe geometric misalignment. This paper introduces OSPDIM, a source-free online adaptation framework that uses information maximization to dynamically correct geometric bias on-the-fly, providing a robust, plug-and-play solution for practical BCIs.
What Problem Does This Paper Address?
EEG signals are notoriously non-stationary and vary wildly between different subjects and sessions. To make BCIs practical without requiring tedious per-user calibration, researchers use Unsupervised Domain Adaptation (UDA). A popular and robust approach relies on Riemannian geometry, treating EEG covariance matrices as points on a Symmetric Positive Definite (SPD) manifold and aligning them using methods like the Riemannian Centering Transformation (RCT).
However, standard RCT implicitly assumes that the underlying classes are perfectly balanced. In real-world online BCI scenarios, user intentions shift dynamically over time—fatigue, attention fluctuations, or task interruptions mean that certain commands dominate the data stream. This creates a severe label shift (class imbalance). When this happens, standard centering techniques align the biased empirical mean of the imbalanced stream to a balanced source center, causing severe geometric distortion and destroying classification performance.
Methods
The authors propose OSPDIM (Online SPD manifold information maximization), a source-free online UDA framework. "Source-free" means it adapts to the target user on-the-fly using only the incoming unlabeled data stream, keeping the pre-trained source model completely frozen.
To counteract geometric misalignment, OSPDIM introduces a time-varying, manifold-constrained bias parameter ($\Phi_t$) directly into the tangent space mapping function. Instead of just centering the data around the empirical target mean, it applies a learnable geometric translation on the SPD manifold to actively recover the true class-balanced geometric center.
The online adaptation protocol operates via three core components:
- Sliding Buffer: A First-In-First-Out (FIFO) buffer stores the most recent target features to stabilize gradient estimation against single-sample noise.
- Iterative Manifold Updates: Because the bias parameter resides on the Riemannian SPD manifold, standard Euclidean gradient updates are invalid. OSPDIM employs approximated Riemannian gradient descent via Euclidean optimization (Adam) followed by a retraction mapping back onto the manifold.
- Information Maximization: The bias parameter is optimized without target labels by minimizing conditional entropy (forcing confident individual predictions) and maximizing marginal entropy (ensuring the model predicts a diverse set of classes across the buffer rather than collapsing to a single class).
Datasets
The framework was evaluated using:
- Synthetic Simulations: $2 \times 2$ SPD matrices engineered to mimic the "needle-like" distributions characteristic of EEG signals.
- Real-world EEG Datasets: Two widely used public motor imagery datasets from the MOABB framework and BCI Competition IV: BNCI2014001 (9 subjects, 2 classes) and BNCI2015001 (12 subjects, 2 classes).
To simulate real-world online challenges, the authors artificially induced varying degrees of label shift by subsampling the target data to minority-to-majority class ratios ranging from 0.1 (extreme imbalance) to 0.4 (moderate imbalance).
Key Insights and Ideas
- The Centering Trap: When an online stream is heavily imbalanced, the global empirical mean shifts toward the majority class. Standard centering forces this biased mean to the identity matrix, which inadvertently pulls the target majority class away from the source majority class, creating a catastrophic semantic misalignment.
- Decoupling Centering from Alignment: OSPDIM elegantly solves this by separating the empirical centering step from a learnable translation step. This allows the model to dynamically shift the decision boundaries back to where they belong without ever seeing a target label.
Key Results
- Resilience to Extreme Imbalance: While standard Online and Offline RCT baselines suffered massive accuracy drops under label shifts, OSPDIM consistently achieved positive accuracy gains across all imbalance ratios.
- Substantial Performance Boost: OSPDIM significantly outperformed standard online baselines, demonstrating a $>15\%$ balanced accuracy improvement on the BNCI2014001 dataset under severe imbalance (ratio of 0.1).
- Adaptation Speed Trade-off: An ablation study on the learning rate ($\eta$) revealed a clear trade-off between stability and responsiveness. OSPDIM reached its peak performance around $\eta \approx 0.005$. Smaller learning rates adapted too slowly to dynamic shifts, while larger rates introduced instability due to small-buffer noise.
Limitations and Future Work
- The Online Constraint Gap: OSPDIM's performance remains below its offline counterpart (SPDIM) because it operates strictly online with a small causal buffer rather than having access to full target-batch statistics.
- End-to-End Integration: Currently, the framework applies geometric correction to pre-extracted covariance features. The authors note that a promising future direction is integrating this geometric bias correction directly into end-to-end deep learning architectures (like EEGConformer) to further enhance representation learning from raw EEG signals.
Summary updated