HEEGNet: Hyperbolic Embeddings for EEG

Shanglin Li, Chu Shiwen, Okan Koç, Yi Ding, Qibin Zhao, Motoaki Kawanabe, Ziheng Chen

Introduction

Brain-Computer Interfaces (BCIs) powered by Electroencephalography (EEG) face a major hurdle: distribution shift. The electrical patterns of the brain vary significantly across different subjects and even within the same subject over time. This variability makes it incredibly hard to train a model on one group of people and have it work reliably on a new user.

Current models often fail to generalize because they rely on Euclidean geometry. However, the brain operates hierarchically—processing simple features in lower cortical areas and refining them into complex thoughts in higher areas. In flat Euclidean space, the "volume" of possible states grows only polynomially with distance. In contrast, hyperbolic space (a geometry with constant negative curvature) expands exponentially. This makes hyperbolic space the perfect "continuous tree" to represent the branching, hierarchical nature of neural data.

To address this, researchers introduce HEEGNet, a hybrid neural network that maps EEG signals into hyperbolic space. By combining Euclidean feature extraction with hyperbolic embeddings and a novel domain adaptation strategy, the model achieves state-of-the-art performance in decoding brain activity across different subjects and sessions.

The HEEGNet Architecture

HEEGNet is a hybrid architecture designed to leverage the strengths of both Euclidean signal processing and hyperbolic representation learning.

HEEGNet Architecture and Domain Adaptation

The pipeline consists of several key stages:

  1. Euclidean Encoders: The model begins with standard convolutional layers (based on the popular EEGNet architecture) to handle raw signal processing. This extracts essential frequency, spatial, and temporal patterns from the noisy EEG waves.
  2. Hyperbolic Projection: These extracted features are then projected into the Lorentz model, a specific mathematical representation of hyperbolic space.
  3. Hyperbolic Encoders: Once in this curved space, hyperbolic convolutions and activations refine the representations to capture hierarchical relationships more effectively.
  4. Domain Adaptation (DSMDBN): To tackle distribution shifts, HEEGNet employs a "Domain-Specific Moment-then-Distribution Batch Normalization" strategy. It first performs a coarse alignment by matching the moments (mean and variance) of different subjects in hyperbolic space. Then, it uses a fine alignment via a Hyperbolic Horospherical Sliced-Wasserstein (HHSW) loss to match the entire data distribution to a standard hyperbolic Gaussian, ensuring subject-invariant features.

Key Insights: The Hyperbolicity of EEG

A foundational premise of HEEGNet is that EEG data is inherently hierarchical. The authors validated this by calculating $\delta$-hyperbolicity (a measure of tree-likeness) across various datasets.

Hyperbolicity metrics across EEG datasets

They found that both raw EEG signals and the features extracted by deep networks exhibit strong hierarchical properties, justifying the shift away from flat Euclidean space. Interestingly, a purely hyperbolic model performed worse than the hybrid approach. The hybrid design is crucial: it uses Euclidean math for initial signal processing—where decades of theory excel—and hyperbolic math for high-level embeddings where hierarchy matters most. Because hyperbolic space expands exponentially, it can pack complex hierarchical structures with much lower distortion, leading to more robust and generalizable features.

Experimental Results

The researchers evaluated HEEGNet across a massive battery of public datasets covering distinct EEG modalities, including Visual Evoked Potentials (VEP), Emotion Recognition, Intracranial EEG (iEEG), and Motor Imagery.

HEEGNet consistently outperformed existing state-of-the-art models:

  • Overall Performance: Across 272 subject/session domains tested, HEEGNet achieved a grand average balanced accuracy of 81.7%, significantly surpassing the next best baseline (EEGConformer at 70.9%).
  • Visual Processing: In VEP tasks, HEEGNet reached 79.6% accuracy, nearly doubling the performance of some standard Euclidean models lacking domain adaptation.
  • Emotion Recognition: It achieved 86.7% accuracy on emotion datasets, demonstrating that the hierarchical nature of emotional processing is exceptionally well-captured in hyperbolic space.

Limitations and Future Directions

While highly effective, hyperbolic deep learning comes with computational trade-offs. Operations like exponential and logarithmic mappings require more processing power than simple linear algebra, making HEEGNet roughly three times slower per epoch than the original Euclidean EEGNet.

As hyperbolic deep learning is still a relatively young field, future work could explore more expressive hyperbolic encoders, such as specialized attention mechanisms, to further boost performance. Additionally, adapting these hyperbolic updates for real-time, online processing will be a critical next step for deploying robust wearable BCI devices.

Summary updated

BibTeX
@inproceedings{li2026heegnet,
  author = {Shanglin Li and Chu Shiwen and Okan Koç and Yi Ding and Qibin Zhao and Motoaki Kawanabe and Ziheng Chen},
  title = {{HEEGNet: Hyperbolic Embeddings for EEG}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=CNDNRjpVIL},
}
Figure