A Deep Generative Model for Resting-State EEG Synthesis and Transferable Representation Learning

Yeganeh Farahzadi, Morteza Ansarinia, Zoltan Kekecs
3/4/2025
q-bio.NCcs.AI

Official code: Yeganehfrh/REST-GAN (4 stars, Python, last commit 2026-10-01).

Abstract

Resting-state EEG provides a non-invasive view of spontaneous brain activity, but extracting meaningful patterns is often limited by scarce high-quality data and reliance on manually engineered features. Generative adversarial networks (GANs) can synthesize neural signals and learn transferable representations directly from raw data, a dual capability that remains underexplored in EEG research.

Show full abstract

Here, we introduce REST-GAN, a GAN-based framework for resting-state EEG that combines adversarial training with an auxiliary self-supervised reconstruction objective to support signal synthesis and unsupervised feature extraction. Although trained only on raw time-domain signals, without explicit frequency-domain or sensor-topographic supervision, the generated time series reproduced key temporal, spectral, and connectivity properties of real EEG. In band-power feature space, generated samples showed high precision and recall across eyes-open and eyes-closed conditions (EO: 0.91/0.67; EC: 0.87/0.65), while group-average spectral coherence matrices showed low mean absolute differences from real data across frequency bands (~0.01-0.03). The representations learned by the model's critic transferred to independent resting-state demographic classification tasks, outperforming models trained directly on raw EEG and showing competitive performance relative to a recent EEG foundation model, while requiring substantially less training data and computational resources. These findings highlight a computationally efficient, architecture-driven strategy in which generative models serve not only as EEG signal generators, but also as unsupervised feature extractors. This approach may support more data-efficient EEG analysis while reducing reliance on manual feature engineering. The implementation code for REST-GAN is available at: https://github.com/Yeganehfrh/REST-GAN.

View on arXivView PDF

Code Implementations(1)

A GAN-based framework for resting-state EEG synthesis and transferable representation learning

40Python, ShellJan 11, 20242 months ago

Similar Papers

Cite this paper

@article{farahzadi2025deep,
  title  = {A Deep Generative Model for Resting-State EEG Synthesis and Transferable Representation Learning},
  author = {Yeganeh Farahzadi and Morteza Ansarinia and Zoltan Kekecs},
  year   = {2025},
  eprint = {2503.02636},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2503.02636v5}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2503.02636.svg)](https://codeofpaper.com/paper/2503.02636)

Discussion