Transferring Spatial Filters via Tangent Space Alignment in Motor Imagery BCIs
Tekin Gunasar, Virginia de Sa · 2025
Read Transferring Spatial Filters via Tangent Space Alignment in Motor Imagery BCIs by Tekin Gunasar, Virginia de Sa (2025) in the Tower of Babel, a free online library of public-domain works preserved in clean, searchable text. No sign-up. The full text is served as a plain-text file at a predictable URL, where text is present: https://antarctic-labs.com/tower-of-babel/arxiv-2504-17111.txt.
Introduction
Tekin Gunasar and Virginia de Sa work on moving brain-computer interfaces from one person to another without starting training from scratch, in a 2025 paper. Their focus is imagined movement: a user pictures moving a hand, and the system must detect that intent from brain waves. Each person's signals differ, so filters tuned on one user often fail on the next.
Their method first aligns the signal patterns of different users on a curved math surface built for such data. A fresh spatial filter is then computed from the aligned patterns. Across three data sets, the method beat the standard filter by a small margin overall. The edge grew clearly larger when only a little training data was available. That matters for real use, where long setup sessions tire users.
Catalog record
| CREATOR | Tekin Gunasar, Virginia de Sa |
|---|---|
| YEAR | 2025 |
| COLLECTION | PAPERS |
| FORMAT | TXT |
| FILE SIZE | 41 KB |
| VERSION | 1.0 |
| LICENSE | http://creativecommons.org/licenses/by/4.0/ |
| RIGHTS | CC BY |
| SOURCE | arXiv |
Source: https://arxiv.org/abs/2504-17111
Browse the full library · About the Tower of Babel
Full text
The opening of the work, from the library's hosted text:
Transferring Spatial Filters via Tangent Space Alignment in Motor Imagery BCIs Tekin Gunasar, Virginia de Sa Abstract We propose a method to improve subject transfer in motor imagery BCIs by aligning covariance matrices on a Riemannian manifold, followed by computing a new common spatial patterns (CSP) based spatial filter. We explore various ways to integrate information from multiple subjects and show improved performance compared to standard CSP. Across three datasets, our method shows marginal improvements over standard CSP; however, when training data are limited, the improvements become more significant. August 24, 2026 K eywords BCI, Machine Learning, CSP, Riemannian Geometry, Domain Adaptation 1 Introduction Motor imagery BCIs translate user-generated control signals into mental states using pre-trained classifiers, which correspond with an action on some external interface, such as the movement of a mouse cursor. Common Spatial Patterns (CSP) is a commonly used supervised algorithm used to generate features by learning a projection matrix that maximizes the projected variance for one class while minimizing it for the other, enhancing discriminative power [ 5 ] . These classifiers are usually trained during a calibration session and applied to unseen data within or between sessions of the same subject. EEG-based BCIs are especially challenging to implement because they are a non-stationary system [ 21 ] . Factors such as electrode impedance and decreasing user attention levels can degrade classifier performance over time [ 11 ] . Moreover, a motor imagery classifier trained on one subject’s data cannot be reliably used on other subjects [ 12 ] . To address the challenge of subject transfer, domain adaptation has been used to adapt classifiers for use across different subjects [ 2 ] . Approaches include adapting already extracted CSP features between subjects [ 6 ] ; aligning covariance matrices on a Riemannian manifold and using a classifier on the aligned matrices directly [ 17 ] ; and integrating subject transfer into CSP [ 7 , 10 , 18 ] . Throughout this work we refer to source and target subjects. In this context, the target refers to the subject for whom the model is being trained, while the source refers to other subjects whose data is leveraged to assist in training the model for the target subject. In this work, we propose a novel method that combines the alignment of covariances on a Riemannian manifold with CSP, demonstrating its effectiveness across three datasets. We ultimately attain improved performance compared to Composite CSP [ 10 ] , a prominent method that uses transfer learning directly in CSP; Riemannian Procrustes Analysis [ 17 ] , a Riemannian Geometry based method for domain adaptation in BCI; and quite a pronounced performance increase over standard CSP in scenarios where limited training data is available. 2 Related Work 2.1 Riemannian Manifolds The space of n\times n symmetric positive definitive (SPD) matrices forms a Riemannian manifold, \mathcal{P}(n) [ 4 ] , which provides a more effective way to manipulate covariance matrices from subject motor imagery trials. We will define Riemannian manifolds via a chain of definitions and briefly discuss key properties relevant to this work. • Topological Manifolds: Spaces that look flat locally but are curved overall, like a circle or the Earth. • Differential Manifolds: These are topological manifolds that are equipped with a differential structure, allowing us to map curved regions to flat spaces using bijective functions called charts, similar to how different parts of the curved Earth are mapped onto flat maps. • Smooth Manifolds: These are differential manifolds where the transitions between charts are smooth, meaning no sharp changes. At any point X on \mathcal{P}(n) , we can define a tangent space T_{X}\mathcal{P}(n) , to perform linear approximations within the neighborhood of X . • Riemannian Manifolds: Smooth manifolds where each tangent space is equipped with a metric which provides a way to measure distances and angles on the manifold. We can map a matrix X on the manifold to the tangent space at A using the logarithm map Log_{A}(.) , and then map it back to the manifold using the exponential map Exp_{A}(.) . Here, A denotes the matrix whose tangent space is considered. \tilde{X}=Log_{A}(X)=X^{1/2}log(X^{-1/2}AX^{-1/2})X^{1/2} X=Exp_{A}(\tilde{X})=\tilde{X}^{1/2}exp(\tilde{X}^{-1/2}A\tilde{X}^{-1/2})\tilde{X}^{1/2} Where log and exp refer to the matrix logarithm and exponential. By definition Log_{A}(A)=\boldsymbol{0} , meaning that the tangent space of A is a coordinate system in which A is the origin. A common metric to equip every tangent space with is the following: \forall\tilde{X}^{(1)},\;\tilde{X}^{(2)}\in T_{A}\mathcal{P}(n),\langle\tilde{X}^{(1)},\tilde{X}^{(2)}\rangle_{A}=\operatorname{tr}(A^{-1}\tilde{X}^{(1)}A^{-1}\tilde{X}^{(2)}) Which is known as the Affine-Invariant Riemannian metric(AIRM) and tr(.) is the trace operator. From this metric we can define distances between two matrices on the manifold X^{(1)} and X^{(2)} as \delta_{AIRM}(X^{(1)},X^{(2)})=\sum_{k=1}^{n}log^{2}(\lambda_{k}) Where \lambda_{1},\dots,\lambda_{n} are the eigenvalues of \left(X^{(1)}\right)^{-1}X_{2} . With this definition of distance we can also determine the Riemannian Mean for a set of SPD matrices X^{(1)},...,X^{(n)} which is given as an optimization problem that can be solved by gradient descent [ 1 ] . \mu=\arg\min_{\mu\in\mathcal{M}}\sum_{i=1}^{n}\delta_{\text{AIRM}}^{2}(X^{(i)},\mu) 2.2 Common Spatial Patterns To obtain spatial filters with CSP, we first compute the average covariance matrix for each class c\in\{-1,+1\} : \Sigma_{(c)}=\frac{1}{|I_{c}|}\sum_{i\in I_{c}}\frac{X^{(i)}X^{(i)^{\prime}}}{tr(X^{(i)}X^{(i)^{\prime}})} where I_{c} is the set of indices for class c , and X^{(i)}\in\mathbb{R}^{C\times T} is a trial with C channels and T samples. The spatial filters W are the generalized eigenvectors from: W\Sigma^{(-1)}=\lambda(\Sigma_{(-1)}+\Sigma_{(+1)})W These filters are sorted by the generalized eigenvalues \lambda in descending order and n pairs are selected from the first and last n columns of W . The feature vector extracted from a motor imagery trial X^{(i)} is: f_{i}=\log\left(diag\left\{W^{{}^{\prime}}X^{(i)}X^{(i)^{\prime}}W\right\}\right) diag(.) extracts diagonal elements as a vector, and log(.) is applied element-wise to this vector. In our implementation, we first apply a fifth-order Butterworth filter to bandpass the trials between 8-30 Hz, followed by the selection of three pairs of spatial filters. 2.2.1 Multi-Class CSP In a multiclass setting, CSP is applied in a One-vs-Rest manner by training CSP filters for each class against the combined data of the other classes. The features extracted with these filters are used to train separate classifiers for each class. During prediction, each binary classifier outputs a probability, and the class with the highest associated probability is chosen as the predicted label [ 19 ] . 2.3 Riemannian Geometry in BCIs Riemannian Geometry naturally aligns with BCI applications, as EEG from motor imagery trials can be effectively represented as covariance matrices. Unlike CSP-based classifiers, approaches such as [ 3 ] directly classify these trial covariances using a Riemannian Minimum Distance to Mean (RMDM) classifier. Some more recent approaches use neural networks and the Riemannian geometry of SPD matrices to better characterize the spectral and temporal features of EEG signals [ 9 ] . Beyond motor imagery classification, Riemannian geometry has also been used to analyze error related activity in BCIs [ 13 ] . It is still an open question whether or not these Riemannian approaches lead to improved performance; some work such as [ 8 ] suggest that the difference is minimal, however, there is a lack of a comprehensive investigation of old and new methods in the literature that adequately address this. 2.4 Riemannian Geometry based Domain Adaptation Earlier approaches to transfer learning and domain adaptation in motor imagery BCIs were simpler, with methods such as Composite CSP [ 10 ] that