Skip to main page content
U.S. flag

An official website of the United States government

Dot gov

The .gov means it’s official.
Federal government websites often end in .gov or .mil. Before sharing sensitive information, make sure you’re on a federal government site.

Https

The site is secure.
The https:// ensures that you are connecting to the official website and that any information you provide is encrypted and transmitted securely.

Access keys NCBI Homepage MyNCBI Homepage Main Content Main Navigation
. 2025 Jan 16;25(2):494.
doi: 10.3390/s25020494.

EEG-to-EEG: Scalp-to-Intracranial EEG Translation Using a Combination of Variational Autoencoder and Generative Adversarial Networks

Affiliations

EEG-to-EEG: Scalp-to-Intracranial EEG Translation Using a Combination of Variational Autoencoder and Generative Adversarial Networks

Bahman Abdi-Sargezeh et al. Sensors (Basel). .

Abstract

A generative adversarial network (GAN) makes it possible to map a data sample from one domain to another one. It has extensively been employed in image-to-image and text-to image translation. We propose an EEG-to-EEG translation model to map the scalp-mounted EEG (scEEG) sensor signals to intracranial EEG (iEEG) sensor signals recorded by foramen ovale sensors inserted into the brain. The model is based on a GAN structure in which a conditional GAN (cGAN) is combined with a variational autoencoder (VAE), named as VAE-cGAN. scEEG sensors are plagued by noise and suffer from low resolution. On the other hand, iEEG sensor recordings enjoy high resolution. Here, we consider the task of mapping the scEEG sensor information to iEEG sensors to enhance the scEEG resolution. In this study, our EEG data contain epileptic interictal epileptiform discharges (IEDs). The identification of IEDs is crucial in clinical practice. Here, the proposed VAE-cGAN is firstly employed to map the scEEG to iEEG. Then, the IEDs are detected from the resulting iEEG. Our model achieves a classification accuracy of 76%, an increase of, respectively, 11%, 8%, and 3% over the previously proposed least-square regression, asymmetric autoencoder, and asymmetric-symmetric autoencoder mapping models.

Keywords: IED detection; generative adversarial networks; interictal epileptiform discharge; scalp-to-intracranial EEG translation; variational autoencoder.

PubMed Disclaimer

Conflict of interest statement

The authors declare no conflicts of interest.

Figures

Figure 1
Figure 1
The overviewof our proposed EEG-to-EEG network. X and Y are, respectively, the scEEG and iEEG. scEEG is fed to the encoder to be encoded to a latent space, which, along with scEEG, serves as an input to the generator. The generated data and the real iEEG are provided to the discriminator to be classified as real or fake.
Figure 2
Figure 2
The encoder network E. The input data, X, are scEEG. Ce represents the coefficient of the number of filters for the Conv layer, and IE represents the total number of layers for the encoder. μ and σ indicate, respectively, the mean and standard deviation of multivariate Gaussian distribution. z is the latent space.
Figure 3
Figure 3
(A) The SPADE block. In the SPADE block, the scEEG is first projected onto an embedding space and then convolved to produce the modulation parameters γ and β. After normalizing the activation layer, A, it is multiplied by γ and added to β element-wise. The SPADE is firstly proposed in [41]. (B) The SPADE ResNet consisting of two SAPDE blocks is followed by a Tanh activation and convolutional layers.
Figure 4
Figure 4
The generator network G. scEGG, X, and the latent space, z, serve as input to the generator. L and M are, respectively, the number of time samples and channels of scEEG. Iup is the number of upsampling or SPADE ResNet layers. The output, Y˜, is the synthetic iEEG.
Figure 5
Figure 5
The proposed VAE-cGAN model for mapping the scEEG to iEEG. scEEG is encoded to a latent space. Then, the latent space alongside scEEG is fed to the generator to generate synthetic iEEG. The estimated iEEG and real iEEG are given to the discriminator to be classified as real or fake.
Figure 6
Figure 6
The diagram of the inter-subject classification approach.
Figure 7
Figure 7
(A) Samples of IEDs (top) and non-IEDs (bottom) averaged across all sensors are depicted. The scEEG, iEEG, and stimated iEEG generated by VAE-cGAN are illustrated. (B) Samples of IEDs (top) and non-IEDs (bottom) for a single sensor. The scEEG and estimated iEEG using VAE-cGAN are shown. In both (A,B), estimated iEEG follows the trend of iEEG in the IED samples. The IEDs start in point sample 32, and the sampling rate is 200 samples/s.
Figure 8
Figure 8
(A) Comparison of ACC, SEN, SPC, F1-S, and AUC metrics between our proposed VAE-cGAN method and the benchmarked LSR, AAE, ASAE, and cGAN methods in the inter-subject classification scenario. Notably, F1-S and AUC values were not available for the cGAN method. (B) The ROC curve provided by VAE-cGAN.

Similar articles

Cited by

References

    1. Sanei S., Chambers J.A. EEG Signal Processing and Machine Learning. John Wiley & Sons; Hoboken, NJ, USA: 2021.
    1. Falcon-Caro A., Shirani S., Ferreira J.F., Bird J.J., Sanei S. Formulation of Common Spatial Patterns for Multi-Task Hyperscanning BCI. IEEE Trans. Biomed. Eng. 2024;71:1950–1957. doi: 10.1109/TBME.2024.3356665. - DOI - PubMed
    1. Esfahani M.M., Najafi M.H., Sadati H. Optimizing EEG Signal Classification for Motor Imagery BCIs: FilterBank CSP with Riemannian Manifolds and Ensemble Learning Models; Proceedings of the 2023 9th International Conference on Signal Processing and Intelligent Systems (ICSPIS); Bali, Indonesia. 14–15 December 2023; Piscataway, NJ, USA: IEEE; 2023. pp. 1–6.
    1. Esfahani M.M., Sadati H. Application of NSGA-II in channel selection of motor imagery EEG signals with common spatio-spectral patterns in BCI systems; Proceedings of the 2022 8th International Conference on Control, Instrumentation and Automation (ICCIA); Tehran, Iran. 2–3 March 2022; Piscataway, NJ, USA: IEEE; 2022. pp. 1–6.
    1. Shirani S., Abdi-Sargezeh B., Valentin A., Alarcon G., Jarchi D., Bird J., Sanei S. Distributed Beamforming for Localization of Brain Seizure Sources from Intracranial EEG Array; Proceedings of the 2024 32nd European Signal Processing Conference (EUSIPCO); Lyon, France. 26–30 August 2024; pp. 1117–1121. - DOI

LinkOut - more resources