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

Prototype-based Domain Generalization Framework for Subject-Independent Brain-Computer Interfaces

Serkan Musellim, Dong-Kyun Han, Ji-Hoon Jeong, Seong-Whan LeearXiv 2022

TL;DR

This paper introduces a novel domain generalization framework that enables subject-independent Brain-Computer Interfaces (BCIs) without requiring tedious user calibration. By leveraging Open-Set Recognition (OSR) as an auxiliary task, the network learns to separate subject-specific "style" features from task-relevant "semantic" features, significantly improving classification accuracy on completely unseen users.

What Problem Does This Paper Address?

Electroencephalography (EEG) signals are notoriously noisy and highly variable, changing drastically from person to person (inter-subject variability) and even within the same person across different days (intra-subject variability). Because of this "domain shift," standard BCI systems usually require a lengthy calibration phase—sometimes up to an hour for motor imagery tasks—to collect subject-specific data and fine-tune the machine learning model before every use.

To make BCIs practical for real-world applications, researchers are turning to domain generalization to build "plug-and-play," subject-independent systems. However, simply pooling data from multiple subjects can introduce "negative transfer," where data from highly anomalous subjects degrades the overall model performance. This paper addresses how to robustly generalize to a completely novel target subject using only historical data from a limited pool of source subjects.

Methods

The authors propose a prototype-based framework that splits the feature learning process into two distinct pathways after a shared convolutional neural network (DeepConvNet) feature extractor:

  1. The Semantic Encoder: Extracts task-relevant features (e.g., distinguishing between left-hand vs. right-hand motor imagery).
  2. The Style Encoder: An auxiliary network that extracts subject-specific features.

Instead of using standard softmax classification, which draws rigid hyperplanes across the feature space and struggles with unknown data, the authors employ Convolutional Prototype Learning (CPL) for both encoders. CPL is an open-set recognition technique that learns a representative "prototype" vector for each class or subject in the embedding space. The network calculates the Euclidean distance between the input sample's features and these prototypes, optimizing a distance-based cross-entropy loss alongside a prototype regularizer loss.

Framework of the proposed method showing the separation of style and semantic features using prototype learning.

By framing subject identification as an open-set recognition problem, the style encoder forces the shared feature extractor to cluster known subjects tightly around their prototypes. This minimizes "open space risk," leaving room in the embedding space for a completely new, unseen subject's style features without breaking the core task classification.

Datasets

The framework was evaluated using the OpenBMI dataset, a large public benchmark containing:

  • 54 healthy subjects
  • 2 motor imagery classes (imagining left-hand vs. right-hand movement)
  • 4 sessions per subject, with 100 trials per session
  • 62 EEG channels downsampled to 250 Hz for analysis

The authors used a rigorous leave-one-subject-out cross-validation scheme to ensure the target subject was completely hidden during training.

Key Insights and Ideas

  • Embracing Subject Identity Instead of Fighting It: Many domain generalization techniques use adversarial training to strip subject identity out of the features entirely. This paper takes the opposite approach: by explicitly teaching the network to recognize who the data belongs to via an auxiliary task, the shared network learns a cleaner, more structured feature space.
  • OSR as a Generalization Tool: Treating an unseen user as an "unknown class" in an open-set recognition framework is a clever conceptual bridge. It prevents the network from over-allocating its feature space to the training subjects.
  • Data Efficiency: The framework provides its most substantial performance boosts when the number of available training subjects is small, making it highly valuable for scenarios where data collection is expensive or limited.

Key Results

The proposed framework consistently outperformed both traditional subject-dependent methods and state-of-the-art subject-independent baselines.

As shown in the evaluation, the method achieves the highest accuracy across various training pool sizes:

  • With 10 source subjects: The proposed method achieved 74.17% accuracy, outperforming the DeepConvNet baseline (72.83%).
  • With 53 source subjects: The proposed method reached 85.22% accuracy, surpassing the baseline (84.98%) and significantly outperforming classic subject-dependent approaches like Filter Bank Common Spatial Pattern (FBCSP), which only managed 70.59%.
Accuracy results across a varying number of training subjects, highlighting the performance edge when source data is limited.

Limitations and Future Work

A noticeable limitation is that the performance gap between the proposed method and the baseline narrows as the number of source subjects increases (converging to a ~0.24% difference at 53 subjects). This suggests that with massive datasets, standard architectures naturally achieve decent generalization, reducing the relative impact of the auxiliary style encoder.

For future work, the authors plan to explore adaptive schemes that can update the prototypes online as the new user interacts with the BCI. They also intend to expand the OSR approach to categorize completely novel, unseen task classes and test the framework on clinical monitoring applications like epileptic seizure detection and sleep disorder analysis.

Summary updated

BibTeX
@misc{musellim2022prototype,
  author = {Serkan Musellim and Dong-Kyun Han and Ji-Hoon Jeong and Seong-Whan Lee},
  title = {{Prototype-based Domain Generalization Framework for Subject-Independent Brain-Computer Interfaces}},
  year = {2022},
  eprint = {2204.07358},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2204.07358},
}
Figure