arXiv:2610.06315cs.LGOct 2026

Manuscript Offprint

arXiv:2610.06315

SPDAlign: Interpretable Riemannian Alignment for EEG Forward Modeling Shifts

Shanglin Li, Shiwen Chu, Okan Koç, Chenyu Liu, Qibin Zhao, Motoaki Kawanabe, Mitsuo Kawato, Yi Ding

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

ABSTRACT

Electroencephalography (EEG) based brain-computer interfaces enable direct brain-to-device communication for applications such as rehabilitation and communication. However, their practical utility is often limited as the non-stationary nature of the EEG data introduces distribution shifts across domains (e.g., sessions and subjects). Adapting machine learning models to be invariant to these shifts in an unsupervised way, without using costly labeled calibration data, would drastically improve the utility of EEG data. In this work, we use a classic generative model of EEG to study distribution shifts introduced by the domain-specific forward process, which is associated with factors such as head geometry. We theoretically show that such distribution shifts can be recovered solely through linear transformations on the Symmetric Positive Definite manifold. Building on this insight, we propose SPDAlign, an interpretable framework for promoting domain-invariant EEG learning. SPDAlign first aligns the domain-specific means and corrects global rotations across domains using a recent optimal transport technique called Wasserstein Procrustes. We systematically study the proposed approach through simulations and demonstrate its competitive performance on extensive public EEG datasets. Additionally, SPDAlign is a globally linear framework and is intrinsically interpretable, so that the framework can identify frequency ranges of interest, determine the spatial patterns reflecting source–sensor relationships, and address cross-subject variability.

1 INTRODUCTION

Electroencephalography (EEG) records multi-channel brain activity from the scalp, providing non-invasive access to neuronal dynamics with millisecond resolution (Niedermeyer & da Silva, 2005). EEG-based brain–computer interfaces (BCIs) enable direct brain-to-device communication for applications such as rehabilitation (Ang & Guan, 2016), emotion recognition (Lazarou et al., 2018), and assistive technology (Wolpaw et al., 2002). Despite these promising applications, their practical utility is limited by poor generalization due to distribution shifts across subjects (Fairclough & Lotte, 2020).

Conventional strategies for mitigating distribution shifts in EEG applications involve collecting labeled calibration data and training domain-specific models (Lotte et al., 2018). While effective in controlled settings, this approach poses significant challenges to the scalability of the technology (Wei et al., 2022). As an alternative, domain adaptation aims to learn a model from source domains that generalizes effectively to unseen but related target domains, offering a principled alternative to training domain-specific models (Ben-David et al., 2010). Within the BCI field, domain adaptation mainly addresses the cross-subject transfer learning problem (Wu et al., 2020), which is one of the grand challenges in EEG research (Fairclough & Lotte, 2020).

Unsupervised domain adaptation (UDA) (Wilson & Cook, 2020) without requiring target domain labels is considered the key to tackling this challenge (Wei et al., 2022). Current literature casts it as a multi-source and multi-target UDA problem, attempting to address it with Riemannian alignment frameworks (Ju et al., 2025). Operating on symmetric positive definite (SPD) manifolds, these

Figure

(a)

(b)

(c)

Figure 1: SPDAlign Overview. (a) Architecture: an end-to-end Riemannian learning framework on the SPD manifold that aligns domain-specific means and applies orthogonal transformations across domains for multi-source, multi-target unsupervised domain adaptation. (b) Rotational alignment: Global rotation shifts between domains are resolved by estimating an orthogonal transformation Q via Wasserstein Procrustes. (c) t-SNE visualization: Classification space for the driving fatigue dataset across all subjects. Color represents labels, and shape denotes domains.

alignment frameworks mitigate domain discrepancies by aligning first-order (Zanini et al., 2017) and second-order (Kobler et al., 2022b) statistics, as well as rotational components (Rodrigues et al., 2019) across domains. Once aligned, a model trained on source domains typically generalizes to related target domains (Rodrigues et al., 2019). However, despite achieving state-of-the-art (SotA) performance (Li et al., 2025; Mellot et al., 2024), these heuristic alignment methods lack theoretical foundations and thus offer limited explanatory power.

In this work, we theoretically demonstrate that Riemannian alignment frameworks can compensate for distribution shifts introduced by the EEG forward modeling process in Eq. (1), which characterizes the observed EEG data as the linear mixing of latent source signals (Sabbagh et al., 2019; Haufe et al., 2014). This scenario represents a form of latent model shift, where discrepancies are driven by the domain-specific forward matrices associated with subject-specific variations such as head geometry (Mellot et al., 2023; Sabbagh et al., 2020). By accounting for domain-specific forward matrices, we show that robust latent representations can be recovered solely through linear transformations on the SPD manifold. Specifically, this involves mean matching followed by a global rotation transformation. The resulting representations encode the latent source covariance, aligning with neuroscience studies that utilize source power as a robust biomarker (Blankertz et al., 2007; Grosse-Wentrup & Buss, 2008).

Building on these theoretical insights and recent advances in end-to-end SPD learning (Kobler et al., 2022a), we propose SPDAlign (Fig. 1 (a)), an end-to-end Riemannian learning framework designed to facilitate EEG domain-invariant representation learning. SPDAlign aligns the domain-specific means (Fig. 1 (a)) and subsequently applies a global rotation transformation across domains (Fig. 1 (b)). These rotations are estimated using orthogonal Procrustes analysis for labeled source domains and Wasserstein Procrustes for unlabeled target domains (Grave et al., 2019). Unlike prior semi-supervised frameworks limited to single-source, single-target settings (Rodrigues et al., 2019; Bleuzé et al., 2022), SPDAlign generalizes to unsupervised multi-source, multi-target adaptation without requiring target domain labels. By addressing forward modeling shifts (Fig. 1 (c)), it aligns representations across subjects and steps toward domain-invariant representations.

SPDAlign is a globally linear framework, comprising a linear feature extractor, linear transformations, and a linear classifier, and therefore is intrinsically interpretable. Classifier weights can be mapped back to spatial patterns and source contributions, supporting transparent and clinically meaningful decision-making (Haufe et al., 2014). We systematically evaluate SPDAlign through simulations under the assumed generative model and show its competitive performance in EEG cross-subject decoding via extensive experiments on public datasets spanning motor imagery, workload, mental stress, and driving fatigue. Moreover, using the mental workload task as a case study, we show that SPDAlign successfully identifies task-discriminative source activities peaking in the theta band within the frontal and parietal regions in Fig. 4, which aligns with neurophysiological markers of mental workload (Borghini et al., 2014; Dehais et al., 2020). These results further demonstrate that SPDAlign can identify frequency ranges of interest, determine the spatial patterns reflecting source–sensor relationships, and address cross-subject variability.

References (78)