MENDR: Manifold Explainable Neural Data Representations

Matthew Chen, Micky C. Nnamdi, Justin Shao, Andrew Hornback, Hongyun Huang, J. Ben Tamo, Yishan Zhong, Benoit Marteau, Wenqi Shi, May Dongmei WangarXiv 2025

Abstract

Foundation models for electroencephalography (EEG) signals have recently demonstrated success in learning generalized representations of EEGs, outperforming specialized models in various downstream tasks. However, many of these models lack transparency in their pretraining dynamics and offer limited insight into how well EEG information is preserved within their embeddings. For successful clinical integration, EEG foundation models must ensure transparency in pretraining, downstream fine-tuning, and the interpretability of learned representations. Current approaches primarily operate in the temporal domain, overlooking advancements in digital signal processing that enable the extraction of deterministic and traceable features, such as wavelet-based representations. We propose MENDR (Manifold Explainable Neural Data Representations), a filter bank-based EEG foundation model built on a novel Riemannian Manifold Transformer architecture to resolve these issues. MENDR learns symmetric positive definite matrix embeddings of EEG signals and is pretrained on a large corpus comprising over 4,000 hours of EEG data, decomposed via discrete wavelet packet transforms into multi-resolution coefficients. MENDR significantly enhances interpretability by visualizing symmetric positive definite embeddings as geometric ellipsoids and supports accurate reconstruction of EEG signals from learned embeddings. Evaluations across multiple clinical EEG tasks demonstrate that MENDR achieves near state-of-the-art performance with substantially fewer parameters, underscoring its potential for efficient, interpretable, and clinically applicable EEG analysis.

Introduction

Electroencephalography (EEG) is a cornerstone of clinical neurology, essential for diagnosing conditions ranging from epilepsy to sleep disorders. While large-scale "foundation models" have shown promise in learning generalized EEG representations, they often face three significant hurdles: a neglect of neurobiological principles, a lack of interpretability (the "black box" problem), and extreme resource intensity.

MENDR (Manifold Explainable Neural Data Representations) addresses these challenges by integrating neuroscientific principles and geometric constraints directly into its architecture. By moving away from standard vector embeddings toward representations on a Riemannian manifold, MENDR provides a path toward physically interpretable AI in neurology without the massive parameter counts of current state-of-the-art models.

Methodology

MENDR deviates from standard transformer architectures by incorporating domain-specific signal processing and geometric constraints.

Wavelet-Based Preprocessing

Instead of treating EEG as a generic multivariate time series, MENDR utilizes Discrete Wavelet Packet Transforms (DWPT). This decomposes signals into standard brain rhythms—delta ($\delta$), theta ($\theta$), alpha ($\alpha$), beta ($\beta$), and gamma ($\gamma$). This ensures the model operates on features already familiar to and understood by neurologists.

The MENDR architecture pipeline, featuring wavelet decomposition and the Manifold Transformer.

Spatial Harmonization

To accommodate varying EEG electrode layouts, a Graph Neural Network (GNN) is employed to harmonize data into a standard 10-20 system. This allows the model to maintain a consistent "whole-brain view" and impute missing channels, regardless of the specific sensor configuration used during data collection.

Riemannian Manifold Transformer

The core innovation of MENDR is the use of Symmetric Positive Definite (SPD) matrix embeddings rather than Euclidean vectors. These matrices represent the covariance of brain activity. The model employs a specialized Manifold Attention (MAtt) mechanism that respects the curved geometry of the SPD manifold, ensuring that the learned representations remain mathematically and biologically grounded.

Architecture and Pretraining

The model is pretrained on the Temple University Hospital EEG Corpus (TUEG), which contains over 4,000 hours of data. The pretraining strategy involves a dual-task self-supervised learning approach: a "Leave-One-Out" (LOO) contrastive task to predict one frequency band from others, and a masked autoencoder task for signal reconstruction.

Architecture of the Large and Tiny Contextualizers, including the patch-based reconstruction decoder used for pretraining.

MENDR is offered in different scales, including a "Tiny" version with only ~1.8 million parameters and a "Large" version with ~6.5 million parameters. This efficiency is a direct result of the structured manifold approach, allowing MENDR to compete with models 20-30 times its size.

Key Results and Discussion

Evaluations across diverse clinical tasks—including abnormal EEG detection (TUAB), event classification (TUEV), sleep staging (ISRUC-SLEEP), and emotion recognition (Seed-V)—demonstrate MENDR's effectiveness:

  • Efficiency at Scale: MENDR-Large matched or outperformed significantly larger foundation models on clinical detection tasks.
  • Spatial Robustness: The GNN-based harmonization allowed for stable performance even with significantly reduced channel counts.
  • Explainability through Geometry: Because embeddings are SPD matrices, they can be visualized as geometric ellipsoids. Changes in the shape or orientation of these ellipsoids correspond to physical changes in brain connectivity, providing clinicians with intuitive visual insights.
  • Cross-Frequency Coupling: The LOO pretraining task successfully encourages the model to learn interactions between different brain rhythms, a key aspect of neurobiology often missed by standard models.

Conclusion

MENDR represents a significant step toward interpretable and efficient EEG foundation models. While it does not yet consistently surpass the absolute state-of-the-art in the most complex tasks, such as high-resolution sleep staging, its performance-to-parameter ratio is exceptional. Future work will focus on scaling manifold transformers, integrating multi-headed manifold attention, and refining the computational efficiency of the manifold differentiation process.

Summary updated

BibTeX
@misc{chen2025mendr,
  author = {Matthew Chen and Micky C. Nnamdi and Justin Shao and Andrew Hornback and Hongyun Huang and J. Ben Tamo and Yishan Zhong and Benoit Marteau and Wenqi Shi and May Dongmei Wang},
  title = {{MENDR: Manifold Explainable Neural Data Representations}},
  year = {2025},
  eprint = {2508.04956},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2508.04956},
}
Figure