A Probabilistic View on Riemannian Machine Learning Models for SPD Matrices

Thibault de Surrel, Florian Yger, Fabien Lotte, Sylvain Chevallier

Introduction

Symmetric Positive Definite (SPD) matrices are fundamental in modern signal processing and engineering, serving as the backbone for covariance-based features in Brain-Computer Interfaces (BCI), medical imaging, and computer vision. However, these matrices do not reside in a flat Euclidean space; they form a curved Riemannian manifold ($\mathcal{P}_d$). Historically, researchers have relied on a collection of "distance-based" geometric tools, such as the Minimum Distance to Mean (MDM) classifier or the "Riemannian Potato" for outlier detection. While effective, these methods often lack a unified statistical foundation. This paper provides a "Rosetta Stone" for Riemannian machine learning, demonstrating that these popular geometric algorithms are specific instances of a broader probabilistic framework based on Gaussian distributions on manifolds.

A Unified Probabilistic Framework

The core contribution of this work is the formalization of Gaussian distributions on the $\mathcal{P}_d$ manifold, which allows for a rigorous reinterpretation of existing geometric tools. Two primary distributions are highlighted:

  1. Isotropic Gaussian Distribution: Characterized by a Riemannian mean and a scalar dispersion parameter ($\sigma$), this distribution assumes that data "spread" is uniform in all directions on the manifold.
  2. Wrapped Gaussian (WG) Distribution: This is an anisotropic distribution that allows for directional variance. It is constructed by taking a standard multivariate normal distribution in the tangent space (a flat vector space) and "wrapping" it onto the curved manifold using the exponential map.

By defining these distributions, the authors bridge the gap between geometric intuition and statistical rigor.

Bridging Geometry and Statistics

The paper proves several key equivalences that unify the field:

  • MDM as a Bayes Classifier: The popular MDM algorithm, which classifies samples based on their proximity to class means, is shown to be mathematically equivalent to a Bayes Classifier assuming isotropic Gaussian noise.
  • Tangent Space Methods: Methods like Linear Discriminant Analysis (LDA) or Quadratic Discriminant Analysis (QDA) performed in the tangent space are equivalent to Bayes Classifiers using Wrapped Gaussians. This explains their superior performance in BCI tasks, as they account for the anisotropic nature of brain signal noise.
  • The Riemannian Potato: This widely used outlier detector is reinterpreted as a likelihood-ratio test. Rejecting an "outlier" is equivalent to identifying samples with low probability density under an isotropic Gaussian assumption.

Empirical Visualization

To validate this probabilistic perspective, the authors applied these concepts to the BNCI2014001 dataset, which contains EEG signals from subjects performing motor imagery tasks (imagining left vs. right hand movement). By transforming these signals into covariance matrices, the researchers demonstrated that Riemannian versions of dimensionality reduction techniques—specifically t-SNE and PCA—can effectively project high-dimensional brain data into a lower-dimensional space while preserving class separability.

Riemannian t-SNE and PCA visualizations of motor imagery EEG covariance matrices.

As shown in the figure above, both Riemannian t-SNE and Riemannian PCA successfully separate the "Left hand" and "Right hand" imagery tasks in a 3D latent space. This visualization confirms that the underlying Gaussian kernels used in these algorithms are capable of capturing the essential structure of the SPD manifold.

Conclusion and Future Directions

This unification provides a clearer path for the development of more sophisticated Riemannian models. While the current framework is robust, the authors note limitations regarding the inherent curvature of the SPD manifold, which can occasionally lead to mathematical inconsistencies in high-curvature regimes. Furthermore, the computational complexity of certain anisotropic distributions remains a challenge for real-time applications.

Looking forward, this probabilistic view serves as a "missing link" for integrating Riemannian geometry into deep learning. It opens the door for developing generative models, such as Variational Autoencoders (VAEs) or Flow Matching architectures, specifically designed for complex, manifold-valued data like brain signals.

Summary updated

BibTeX
@inproceedings{surrel2025probabilistic,
  author = {Thibault de Surrel and Florian Yger and Fabien Lotte and Sylvain Chevallier},
  title = {{A Probabilistic View on Riemannian Machine Learning Models for SPD Matrices}},
  booktitle = {GSI},
  year = {2025},
  doi = {10.1007/978-3-032-03924-8\_15},
}
Figure