Graph Neural Networks on SPD Manifolds for Motor Imagery Classification: A Perspective from the Time-Frequency Analysis

Ce Ju, Cuntai Guan · DOI

This study introduces Graph-CSPNet, a novel geometric deep learning architecture designed to decode motor imagery (MI) from EEG signals. By treating EEG spatial covariance matrices as points on a Symmetric Positive Definite (SPD) manifold and organizing them into a time-frequency graph, the authors achieve near-optimal classification performance across multiple benchmark datasets.

TL;DR

Graph-CSPNet bridges the gap between time-frequency analysis and geometric deep learning for brain-computer interfaces. By representing EEG dynamics as a graph on SPD manifolds, it captures localized neural fluctuations more effectively than traditional sequential models, setting a new bar for motor imagery classification.

What Problem Does This Paper Address?

Motor imagery (MI) classification—identifying whether a user is imagining moving their left hand, right hand, or feet—is a cornerstone of non-invasive Brain-Computer Interfaces (BCIs). However, Electroencephalography (EEG) signals are notoriously difficult to work with: they are non-stationary, noisy, and their "rhythms" (like ERD/ERS) vary significantly across time, frequency, and individuals.

Traditional methods like Common Spatial Patterns (CSP) often assume the signal is stationary over a window. While deep learning models like CNNs have improved performance, they often treat EEG data as standard Euclidean images or sequences, ignoring the inherent geometric structure of spatial covariance matrices. The authors aim to create a "Geometric Classifier" that respects this geometry while simultaneously exploiting the complex time-frequency relationships in brain activity.

Methods

The core innovation is the Graph-CSPNet architecture, which operates on SPD manifolds.

  1. Time-Frequency Graph Construction: Instead of a single covariance matrix for a whole trial, the EEG signal is divided into multiple segments across time and frequency. Each segment's spatial covariance matrix becomes a node in a graph.
  2. Local Graph Topology (LGT): Edges are created between nodes based on their proximity in time and frequency, with weights determined by the Riemannian distance between the matrices. This captures how brain states evolve.
  3. Graph BiMap Layer: This is the "engine" of the network. It performs a transformation analogous to a graph convolution but is specifically designed for SPD matrices. It preserves the Riemannian distances—and thus the discriminative power—between different classes of brain activity throughout the learning process.
  4. Geometric Layers: The network includes Riemannian Batch Normalization (RBN) to stabilize training and a ReEig layer to ensure matrices remain positive definite. Finally, a LOG layer maps the matrices to a flat "tangent space" so standard linear classifiers can produce the final prediction.
Fig. 1: Illustration of Architecture of Graph-CSPNet: The EEG signal is divided into multiple segments in the time-frequency domain. The spatial covariance matrices obtained from these segments serve as the vertices of the time-frequency graph, which is constructed using a novel nonparametric statistical approach. Once the time-frequency graph is built, we employ an SPD matrix-valued graph convolutional network, consisting of the Graph BiMap layer and the Riemannian Batch Normalization layer, to extract relevant classification information while maintaining discriminative power between different task classes. Subsequently, we apply a logarithmic mapping (LOG) layer to transform the SPD matrices onto the tangent space, which are then fed into the cross-entropy loss function for further computation.

Datasets

The authors evaluated their model on five widely-used public MI-EEG datasets:

  • KU: 54 subjects, binary (left/right hand).
  • Cho2017: 49 subjects, binary (left/right hand).
  • BNCI2014001 (BCIC-IV-2a): 9 subjects, 4 classes (left/right hand, feet, tongue).
  • BNCI2014002: 14 subjects, binary (right hand, feet).
  • BNCI2015001: 12 subjects, binary (right hand, feet).

These datasets cover a variety of electrode configurations and sampling rates, providing a robust test for the model's generalizability.

Key Insights and Ideas

  • Manifolds Matter: EEG spatial covariance matrices don't live in "flat" Euclidean space. Using Riemannian geometry allows the model to measure the true "distance" between brain states more accurately than standard deep learning.
  • Simultaneous Analysis: Unlike previous geometric models (like Tensor-CSPNet) that processed time, space, and frequency sequentially, Graph-CSPNet analyzes the time-frequency domain simultaneously via the graph structure.
  • Flexible Resolution: Drawing from the Heisenberg-Gabor uncertainty principle, the model uses a non-uniform segmentation plan. It employs high spectral resolution for low frequencies and high temporal resolution for high frequencies, mimicking how the brain actually processes information.
TABLE I: Comparison between Tensor-CSPNet and Graph-CSPNet.

Key Results

Graph-CSPNet achieved near-optimal classification accuracies in 9 out of 11 tested scenarios.

  • On the BNCI2014001 dataset (10-fold cross-validation), it reached 78.82% accuracy, outperforming both the standard FBCNet (77.16%) and its predecessor Tensor-CSPNet (77.36%).
  • It showed particular strength in holdout scenarios (training on one session, testing on another), which is a much harder and more realistic BCI task due to inter-session signal variability. For example, on BNCI2015001, it achieved 79.75% compared to FBCNet's 74.50%.
  • The model proved that the information embedded in spatial covariance matrices is sufficient for high-performance MI classification, often matching or exceeding models that use more complex hand-crafted features.

Limitations and Future Work

  • Individual Specificity: The current adjacency matrix (graph structure) is initialized specifically for each individual. While this boosts accuracy, it makes the model harder to deploy as a "universal" plug-and-play classifier.
  • Computational Complexity: Operating on manifolds and graphs is more computationally intensive than standard CNNs. While the parameter count is relatively low (approx. 169k for one configuration), the Riemannian optimization steps are complex.
  • Future Directions: The authors suggest exploring cross-subject transfer learning and applying this geometric graph approach to other neurophysiological data, such as fMRI functional connectivity matrices.

Summary updated

BibTeX
@article{ju2022graph,
  author = {Ce Ju and Cuntai Guan},
  title = {{Graph Neural Networks on SPD Manifolds for Motor Imagery Classification: A Perspective from the Time-Frequency Analysis}},
  journal = {IEEE Trans. Neural Networks Learn. Syst.},
  year = {2022},
}
Figure