Semi-Supervised Generative and Discriminative Adversarial Learning for Motor Imagery-based Brain–Computer Interface

Wonjun Ko, Eunjin Jeon, Jee Seok Yoon, Heung‐Il Suk

Abstract

Convolutional neural networks (CNNs), which can recognize structural/configuration patterns in data with different architectures, have been studied for feature extraction. However, challenges remain regarding leveraging advanced deep learning methods in BCIs. We focus on problems of small-sized training samples and interpretability of the learned parameters and leverages a semi-supervised generative and discriminative learning framework that effectively utilizes synthesized samples with real samples to discover class-discriminative features. Our framework learns the distributional characteristics of EEG signals in an embedding space using a generative model. By using artificially generated and real EEG signals, our framework finds class-discriminative spatio-temporal feature representations that help to correctly discriminate input EEG signals. It is noteworthy that the framework facilitates the exploitation of real, unlabeled samples to better uncover the underlying patterns inherent in a user’s EEG signals. To validate our framework, we conducted experiments comparing our method with conventional linear models by utilizing variants of three existing CNN architectures as generator networks and measuring the performance on three public datasets. Our framework exhibited statistically significant improvements over the competing methods. We investigated the learned network via activation pattern maps and visualized generated artificial samples to empirically justify the stability and neurophysiological plausibility of our model.

Introduction

Deep learning, particularly Convolutional Neural Networks (CNNs), has shown great promise in decoding brain activity. However, Brain-Computer Interfaces (BCIs) face a major hurdle: data scarcity. Collecting high-quality electroencephalogram (EEG) data is time-consuming and exhausting for users, a phenomenon often called "calibration fatigue." While typical deep learning models require thousands of examples, a BCI session might only yield a few dozen.

Furthermore, EEG signals are notoriously noisy and vary significantly between individuals and sessions. This makes generalization difficult. Finally, the "black box" nature of CNNs makes it hard to verify if a model is picking up on actual neural patterns or merely data artifacts. To address these issues, researchers developed the Semi-supervised Generative and Discriminative Adversarial Learning (SGDAL) framework.

Methodology

The proposed framework leverages Generative Adversarial Networks (GANs) to synthesize artificial EEG signals and utilize unlabeled data. Two primary approaches were explored:

  1. GDAL (Generative and Discriminative Adversarial Learning): A supervised approach where a Generator creates synthetic EEG samples from random noise, and a Discriminator is trained to both distinguish "real vs. fake" and classify the specific motor imagery task (e.g., left hand vs. right hand).
  2. SGDAL (Semi-supervised GDAL): This extends the framework to utilize unlabeled EEG data. In real-world BCIs, users may provide a few labeled trials during calibration and a large volume of unlabeled data during actual use. SGDAL uses all available data to better learn the underlying distribution of the user's brain signals.

A key innovation is the "M+1" Trick: the discriminator features $M+1$ output nodes, where $M$ represents the motor imagery classes and the additional node identifies "fake" (generated) samples.

The SGDAL framework integrates a generator to capture data distribution and a classifier with an extra node for artificial EEG prediction.

Key Results and Insights

The framework was evaluated on three public benchmarks (BCI Competition III-3a, III-4a, and IV-2a). Key findings include:

  • Synthetic Data as a Regularizer: The generator forces the discriminator to learn more robust, generalized features. By distinguishing between real and synthetic EEG, the model improves its ability to ignore noise.
  • Unlabeled Data Utility: SGDAL results demonstrate that unlabeled real EEG signals contain structural information that helps the model understand a user's unique "brain signature," leading to better performance than supervised learning alone.
  • Robustness in Data-Starved Scenarios: The most significant improvements occurred when training data was reduced to just 12.5% of the original set. In these cases, adversarial models maintained much higher accuracy than traditional methods like Common Spatial Patterns (CSP).

Neurophysiological Plausibility

To ensure the model learned biologically meaningful patterns, the researchers used activation pattern maps. By transforming learned CNN weights into a "forward" formulation, they visualized the brain areas the model focused on.

Activation pattern maps for different motor imagery tasks show neurophysiologically plausible lateralization consistent with brain function.

The activation maps showed clear lateralization (e.g., imagining left-hand movement triggered the right hemisphere), aligning with known neurophysiological phenomena like Event-Related Desynchronization (ERD). This confirms that the adversarial training produces cleaner internal filters that respect human brain function.

Conclusion

The SGDAL framework significantly improves motor imagery classification accuracy, especially when data is scarce. While the current study focused on subject-dependent models, future work will aim for subject-independent BCIs that require zero calibration for new users. Additionally, optimizing the computational overhead of GANs for real-time, low-power wearable devices remains a priority.

Summary updated

BibTeX
@inproceedings{ko2022semi,
  author = {Wonjun Ko and Eunjin Jeon and Jee Seok Yoon and Heung‐Il Suk},
  title = {{Semi-Supervised Generative and Discriminative Adversarial Learning for Motor Imagery-based Brain–Computer Interface}},
  booktitle = {Scientific},
  year = {2022},
  doi = {10.1038/s41598-022-08490-9},
}
Figure