Multi-task Generative Adversarial Learning on Geometrical Shape Reconstruction from EEG Brain Signals

Xiang Zhang, Xiaocong Chen, Manqing Dong, Huan Liu, Chang Ge, Lina Yao

Abstract

Reconstructing visual stimuli from brain activity is a significant challenge in Brain-Computer Interface (BCI) research. While functional Magnetic Resonance Imaging (fMRI) provides high-quality reconstructions, its lack of portability and high cost limit practical applications. Electroencephalogram (EEG) offers a portable and cost-effective alternative but suffers from low signal-to-noise ratios. This paper presents a multi-task Generative Adversarial Network (GAN) framework designed to reconstruct geometric shapes from EEG signals. By integrating convolutional feature learning, a multi-task discriminator, and a semantic alignment loss, the proposed model achieves significantly sharper reconstructions compared to baseline GAN architectures. Experimental results on a five-shape dataset demonstrate superior performance in both qualitative visual clarity and quantitative metrics like Inception Score and accuracy.

Introduction

The goal of "mind reading"—recovering visual information from brain activity—has long been a focus of BCI research. Functional Magnetic Resonance Imaging (fMRI) has shown success but is impractical for everyday use due to its size and cost. EEG is a more accessible alternative, capturing real-time brain activity. However, EEG signals are chaotic and noisy, often leading to blurry and unrecognizable reconstructions in previous GAN-based attempts. This research addresses the "low realism" problem by enhancing the GAN framework specifically for EEG-to-image synthesis.

Methods

The proposed framework consists of three primary components:

  1. EEG Feature Learning: A Convolutional Neural Network (CNN) is employed to extract latent representations from raw EEG signals. CNNs were found to be significantly more efficient than Recurrent Neural Networks (RNNs), providing a 5x speedup in training (1,222s vs 5,935s) while maintaining high classification accuracy.
  2. Multi-task Discriminator: Beyond the standard real/fake classification, the discriminator includes a task-specific classifier. This forces the generator to produce images that not only look realistic but also retain the specific geometric features of the target shape (e.g., the sharp points of a star).
  3. Semantic Alignment Constraint: A pixel-level distance loss is introduced to penalize deviations from the ground-truth shape. This constraint ensures sharper edges and reduces the likelihood of mode collapse, a common issue where GANs produce repetitive, blurry outputs.
The proposed multi-task GAN architecture featuring a generator with deconvolutional layers and a discriminator with a task-specific classifier and semantic alignment.

Experimental Setup

The study utilized a dataset collected from 8 healthy subjects using a portable 14-electrode Emotiv EPOC+ headset sampling at 128 Hz. Subjects were presented with five representative geometric shapes: circle, star, triangle, rhombus, and rectangle. Each stimulus was viewed for 5 seconds across multiple trials and sessions in a random order.

Results

The proposed model significantly outperforms standard GAN, Conditional GAN (CGAN), and Auxiliary Classifier GAN (ACGAN) across both qualitative and quantitative measures.

Qualitative Analysis

Visual comparisons demonstrate that the proposed model produces shapes with clear, distinct edges that closely match the ground truth. In contrast, baseline models like GAN and CGAN often yield distorted or blurry outputs that lack geometric definition.

Qualitative comparison of shape reconstruction across different models (GAN, CGAN, ACGAN, and the proposed 'Ours') against the ground truth and EEG signals.

Quantitative Metrics

  • Inception Score (IS): The model achieved an IS of 2.178, surpassing the baseline GAN (1.931) and ACGAN (2.061).
  • Inception Accuracy: The model reached 0.83 accuracy in correctly reconstructing the intended shape category, a substantial improvement over the baseline GAN's 0.43.

Conclusion and Future Work

This work demonstrates the feasibility of using multi-task GANs for high-quality visual reconstruction from EEG signals. By combining efficient CNN-based feature extraction with specialized discriminator tasks and semantic constraints, the model overcomes the typical blurriness associated with EEG-based synthesis. While successful for simple geometric shapes, future research will focus on reconstructing more complex real-world objects, improving zero-shot reconstruction capabilities for unseen shapes, and addressing inter-subject variability in brain signals.

Summary updated

BibTeX
@article{zhang2019multi,
  author = {Xiang Zhang and Xiaocong Chen and Manqing Dong and Huan Liu and Chang Ge and Lina Yao},
  title = {{Multi-task Generative Adversarial Learning on Geometrical Shape Reconstruction from EEG Brain Signals}},
  journal = {Aust. J. Intell. Inf. Process. Syst.},
  year = {2019},
  url = {https://openreview.net/forum?id=FkevvG-Xo3h},
}
Figure