Unsupervised Domain Adaptation for Cross-Subject Few-Shot Neurological Symptom Detection

Bingzhao Zhu, Mahsa Shoaran

TL;DR

This paper introduces an unsupervised adversarial domain adaptation framework to solve a major bottleneck in neurology: the need for massive amounts of data to train patient-specific seizure detectors. By mapping brain signals from different individuals into a "subject-invariant" feature space, the researchers achieved a 9.4% improvement in 1-shot classification accuracy, allowing for high-performance seizure detection even when very little data is available for a new patient.

What Problem Does This Paper Address?

Most current machine learning models for neurological symptom detection (like epileptic seizures) are subject-specific. Because every brain is unique and electrode placements vary, a model trained on Patient A usually performs poorly on Patient B.

To get a reliable detector, doctors currently have to record a patient for days or weeks to gather enough labeled seizure data. This is a significant hurdle for "few-shot" scenarios—where a new patient arrives, and we want a working detector immediately. The core challenge is domain shift: the statistical distribution of brain signals changes drastically from person to person, making universal models difficult to build.

Methods

The authors propose a cross-subject seizure detection algorithm based on Adversarial Domain Adaptation. The architecture consists of three main components:

  1. Autoencoders (Encoders & Decoders): Handcrafted features (like line-length and frequency band power) are fed into encoders to create a latent representation. Decoders are used to reconstruct the original features, which prevents "mode collapse" (a common GAN failure where the model ignores input variety and outputs a single constant value).
  2. Subject Discriminator (SD): This is the "adversary." Its job is to look at the latent features and guess which patient they came from.
  3. Adversarial Training: The encoders are trained to "fool" the discriminator. If the discriminator can't tell which patient the data belongs to, the encoders have successfully mapped the data into a subject-invariant space.
  4. Gradient Boosted Trees: Once the features are aligned and subject-invariant, an ensemble of gradient boosted trees (LightGBM) is trained to perform the actual seizure vs. non-seizure classification.

Datasets

The study used intracranial EEG (iEEG) recordings from the publicly available IEEG Portal.

  • Participants: 9 patients with epilepsy.
  • Data Volume: 97 seizure events in total.
  • Preprocessing: Signals were sampled at 500Hz, segmented into 1-second windows, and annotated by experts.
  • Features: 12 handcrafted biomarkers including line-length, total power, variance, and power in specific frequency bands (delta, theta, alpha, beta, gamma, etc.).

Key Insights and Ideas

  • Alignment via Competition: The "aha moment" is that you don't need to manually find similarities between patients. By setting up a game where a neural network tries to hide the patient's identity, the system automatically learns to ignore individual biological "noise" and focus on the universal signatures of a seizure.
  • The Importance of Reconstruction: Without the decoder (reconstruction loss), the encoders might find a "cheat" to fool the discriminator—like turning every input into a vector of zeros. The reconstruction loss ensures the latent space still contains the vital information needed to actually detect a seizure.
  • Few-Shot vs. Zero-Shot: The model supports "0-shot" learning (detecting seizures in a new patient with zero prior data), but the authors show that even a single labeled seizure (1-shot) from the new patient significantly anchors the model and boosts performance.

Key Results

The researchers compared their Cross-Subject (CS) approach against the traditional Subject-Specific (SS) scheme using Area Under the ROC Curve (AUC) scores:

  • 1-Shot Accuracy: The CS approach achieved an average AUC of 0.899, compared to 0.822 for the subject-specific approach—a 9.4% improvement.
  • 0-Shot Capability: Even with zero data from the target patient, the model achieved a respectable AUC of 0.705 (well above the 0.5 chance level).
  • Visual Proof: Using t-SNE visualizations, the authors demonstrated that before adaptation, patient data clusters separately. After adaptation, the distributions overlap significantly, proving the model successfully created a shared "language" for brain activity across different subjects.

Limitations and Future Work

  • Small Patient Cohort: While 97 seizures is a solid dataset, 9 patients is a relatively small sample size for proving universal generalizability across a diverse population.
  • Handcrafted Features: The model relies on pre-selected biomarkers (line-length, etc.). Future work could explore "End-to-End" deep learning where the model learns the features directly from raw EEG traces.
  • Broader Applications: The authors suggest this framework isn't limited to epilepsy; it could potentially be applied to Parkinson’s tremors, migraines, or other neurological conditions where data for new patients is scarce.

Summary updated

Abstract

Modern machine learning tools have shown promise in detecting symptoms of neurological disorders. However, current approaches typically train a unique classifier for each subject. This subject-specific training scheme requires long labeled recordings from each patient, thus failing to detect symptoms in new patients with limited recordings. This paper introduces an unsupervised domain adaptation approach based on adversarial networks to enable few-shot, cross-subject epileptic seizure detection. Using adversarial learning, features from multiple patients were encoded into a subject-invariant space and a discriminative model was trained on subject-invariant features to make predictions. We evaluated this approach on the intracranial EEG (iEEG) recordings from 9 patients with epilepsy. Our approach enabled cross-subject seizure detection with a 9.4% improvement in 1-shot classification accuracy compared to the conventional subject-specific scheme.
BibTeX
@inproceedings{zhu2021unsupervised,
  author = {Bingzhao Zhu and Mahsa Shoaran},
  title = {{Unsupervised Domain Adaptation for Cross-Subject Few-Shot Neurological Symptom Detection}},
  booktitle = {NER},
  year = {2021},
  url = {https://openreview.net/forum?id=6Tgefjs30S},
}

Loading related content...

Figure