NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Transfer Learning in Brain-Computer Interfaces with Adversarial Variational Autoencoders

Ozan Özdenizci, Ye Wang, Toshiaki Koike-Akino, Deniz Erdogmus

TL;DR

This paper introduces a novel deep learning framework called Adversarial Conditional Variational Autoencoders (A-cVAE) to create "plug-and-play" Brain-Computer Interfaces (BCIs). By using adversarial training to "censor" subject-specific quirks from neural signals, the authors successfully learned universal brain patterns that allow a BCI to work on new, unseen users with significantly higher accuracy and reduced calibration time.

What Problem Does This Paper Address?

Brain-Computer Interfaces (BCIs) translate neural activity—often recorded via electroencephalography (EEG)—into commands for external devices. A major hurdle to their widespread use is inter-subject variability: EEG signals look very different from one person to another due to differences in head shape, electrode placement, and individual brain folds.

Currently, most BCIs require a lengthy "calibration" session where a new user must perform repetitive tasks to train the system. To bypass this, researchers use transfer learning to exploit data from previous users. However, standard deep learning models often "memorize" the identities of the training subjects rather than learning the underlying neural signatures of the task. The authors aim to solve this by forcing the model to learn representations that are "subject-invariant."

Methods

The authors propose the Adversarial Conditional Variational Autoencoder (A-cVAE). The architecture consists of three main components:

  1. The Encoder: A convolutional neural network (CNN) that takes raw EEG data and compresses it into a "latent representation" ($z$). It uses temporal and spatial filters inspired by state-of-the-art architectures like EEGNet.
  2. The Decoder: A network that tries to reconstruct the original EEG signal from $z$. Crucially, it is "conditioned" on the subject's identity ($s$). By giving the decoder the subject ID, the encoder is theoretically "freed" from having to store that information in $z$.
  3. The Adversary: This is the "secret sauce." It’s a separate network that tries to guess the subject's identity based solely on the latent representation $z$.

The system is trained using a minimax game: the encoder tries to minimize reconstruction error while simultaneously trying to maximize the adversary's error. This "adversarial censoring" forces the encoder to strip away any information that could identify the user, leaving behind only the task-relevant neural features (e.g., the intent to move a hand).

The A-cVAE architecture showing the flow from EEG input to latent representation, reconstruction, and adversarial subject estimation.

Datasets

The study utilized the PhysioNet EEG Motor Movement/Imagery Dataset, a large-scale public benchmark.

  • Subjects: 103 individuals.
  • Task: Motor imagery (imagining moving the left or right hand).
  • Data: 64-channel EEG recorded at 160 Hz.
  • Setup: 90 subjects were used for training the representation, and 13 subjects were completely held out to test the "cross-subject" transfer capabilities.

Key Insights and Ideas

  • Conditioning is not enough: Simply providing the subject ID to a standard conditional VAE (cVAE) doesn't fully remove subject-specific "leakage" in the latent space. The adversary is necessary to actively police and remove this information.
  • The "Leaky" Latent Space: By monitoring the adversary's accuracy, the authors could quantify how much subject-specific information "leaked" into the features. Lower adversary accuracy on training data correlated with better generalization to new users.
  • Disentanglement: The approach effectively disentangles the content of the thought (the motor imagery) from the style of the individual's brain signals.

Key Results

The A-cVAE outperformed several baseline models in classifying the intent of the 13 unseen subjects:

  • A-cVAE (Proposed): Achieved a mean accuracy of 63.8%, with some subjects reaching up to 73%.
  • Standard cVAE: 61.2% accuracy.
  • Baseline CNN: 59.8% accuracy.
  • A-VAE (No conditioning): 56.9% accuracy.

As shown in the box plots below, the A-cVAE not only provided higher mean accuracy but also showed more consistent performance across different subjects compared to the baseline CNN, which suffered from high variance.

Comparison of transfer learning classification accuracies across different models. A-cVAE shows the highest median performance.

Furthermore, the adversary's accuracy in identifying subjects from $z$ was lowest in the A-cVAE model (0.48 vs. 0.68 for A-VAE), confirming that the adversarial training successfully "censored" the subject identity.

Limitations and Future Work

While the results are promising, the authors note several areas for expansion:

  • Semi-Supervised Learning: Future versions could use a small amount of data from the new user to "fine-tune" the subject-invariant features.
  • Session Invariance: Beyond subject differences, EEG signals change for the same person over different days (non-stationarity). Applying this adversarial approach to "session-invariant" learning is a logical next step.
  • Complex Disentanglement: The authors suggest exploring models that explicitly learn both subject-invariant and subject-variant features simultaneously to better understand the nuances of EEG data.

Summary updated

BibTeX
@inproceedings{ozdenizci2019transfer,
  author = {Ozan Özdenizci and Ye Wang and Toshiaki Koike-Akino and Deniz Erdogmus},
  title = {{Transfer Learning in Brain-Computer Interfaces with Adversarial Variational Autoencoders}},
  booktitle = {NER},
  year = {2019},
  doi = {10.1109/ner.2019.8716897},
}
Figure