Understanding Membership Inference Attacks on EEG Models

Mehrdad Khodapanahandeh, Selin Unal, Berkay Kemal Balioglu, Alireza Khodaie, Beren Semiz, M. Emre GursoyarXiv 2026

Imagine your brainwaves are as unique as your fingerprint. Now imagine that a machine learning model, trained to detect something like Alzheimer’s or epilepsy, "remembers" your specific neural signature a little too well. An attacker could use a Membership Inference Attack (MIA) to confirm you were part of that training set, effectively outing your medical diagnosis without ever seeing your name.

This paper provides the first systematic deep dive into why EEG-based AI models leak this kind of private information and how we can build better "brain-privacy" into our systems.

TL;DR

EEG signals are highly personal, and the AI models we train on them can accidentally "memorize" individual participants. This study reveals that the biggest driver of this privacy leak is overfitting: when a model performs much better on its training data than on new, unseen data, it leaves a trail that attackers can follow to identify its training members.

What Problem Does This Paper Address?

As low-cost EEG headsets move from the lab to our living rooms for gaming, meditation, and health monitoring, we are collecting massive amounts of brain data. We use this data to train deep learning models, but these models have a "memory" problem.

Membership Inference Attacks (MIAs) exploit this. If an attacker has a sample of your EEG data, they can ask a model: "Did you see this specific signal during your training?" If the model responds with high confidence or low loss, the answer is likely "Yes." In a medical context, being "in the training set" for a disease-detection model is a massive privacy breach. While MIAs are well-understood for images and text, their behavior in the complex, noisy world of EEG was largely a mystery—until now.

Methods

The researchers didn't just test one attack; they threw the kitchen sink at the problem. They evaluated:

  • Seven Architectures: Including popular EEG models like EEGNet, ShallowConvNet, and a custom "TestNetwork" to control for model size.
  • Four Attack Types: Ranging from simple "Loss Attacks" (checking if the error is suspiciously low) to the sophisticated LiRA (Likelihood Ratio Attack), which uses "shadow models" to calibrate how a model should behave on data it hasn't seen.
  • Two Key Metrics: They looked at the average case (AUC) and the "worst-case" scenario for privacy—the True Positive Rate at a very low False Positive Rate (TPR @ 1% FPR). This tells us how many people an attacker can identify with near-certainty.

Datasets

The study used three diverse datasets to ensure their findings weren't just a fluke of one specific task:

  1. MoBI: Children playing video games vs. resting (11 participants).
  2. Driver-Drowsiness: Detecting if a driver is alert or sleepy (30-channel EEG).
  3. Alzheimer’s Disease: Distinguishing patients from healthy controls (88 participants).

Key Insights and Ideas

  • The Generalization Gap is the Smoking Gun: The strongest predictor of vulnerability is the difference between training accuracy and test accuracy. If your model is "cheating" by memorizing the training data rather than learning general patterns, it’s a privacy nightmare.
  • Safety in Numbers: As you add more participants to a training set, the "uniqueness" of any single person's data gets diluted. This makes it much harder for an attacker to pick a specific individual out of the crowd.
Figure 2: Attack AUC vs number of participants. Increasing the number of participants reduces the attacker’s AUC, despite some fluctuations (MoBI dataset).
  • EEG is a Biometric: The researchers found that models often rely on subject-specific "fingerprints" to make classifications. Models that struggle to generalize to new people (Leave-One-Subject-Out) are significantly more vulnerable to MIAs.
  • No "Privacy Band": You can't just hide the Alpha or Beta waves to be safe. Vulnerability is spread across the entire frequency spectrum and across all scalp regions. Privacy must be handled at the model level, not just the data-filtering level.

Key Results

  • LiRA is Lethal: The Likelihood Ratio Attack (LiRA) was the most effective, often yielding a 3x higher success rate in identifying members compared to simpler attacks.
  • The Overfitting Correlation: There is a powerful correlation (Pearson r up to 0.85) between the "loss gap" and attack success.
  • Model Size Matters (To a Point): Larger models are more prone to memorization, but this effect tends to saturate once you hit about 100,000 parameters.
  • High-Certainty Attacks: In some settings, attackers could correctly identify members with a 1% false alarm rate—a terrifying prospect for sensitive medical data.
Figure 4: TPR @ 1% FPR vs number of the participants. This experiment is done just for 1 stride window overlap of the MoBI dataset.

Limitations and Future Work

The authors acknowledge that their attacks were "window-level"—they tried to identify if a specific segment of EEG was used. Future work needs to look at "subject-level" attacks, which are even more relevant for real-world privacy.

Additionally, while this paper identifies the drivers of vulnerability, the next step is developing robust defenses—like Differential Privacy—specifically tailored for the unique temporal and spatial properties of brainwaves. For now, the best advice for EEG researchers is simple: Focus on generalization. A model that generalizes well isn't just a better tool; it's a safer one.

Summary updated

Abstract

Electroencephalography (EEG) signals contain sensitive, subject-specific information, making models trained on them potential targets for membership inference attacks (MIAs). Although MIAs have been studied extensively in other domains, their applications to EEG models are relatively scarce, and the factors driving the vulnerability of EEG models to MIAs are not adequately understood. In this paper, we present a systematic empirical analysis of MIAs on EEG models using three datasets, seven model architectures, four attack methods, and two metrics. Results show that poor model generalization (large train-test loss and accuracy gap) is the strongest indicator of MIA vulnerability. Longer training and larger models also increase vulnerability. Moreover, no particular scalp region, frequency band, inter-channel correlation pattern, or temporal versus spectral representation of EEG data consistently explains MIA vulnerability across datasets. Finally, subject identification and leave-one-subject-out experiments indicate that models relying more heavily on subject-specific representations are more vulnerable to MIAs. Overall, our findings identify the key drivers of membership leakage in EEG models and can provide guidance for developing MIA-resilient EEG systems.
BibTeX
@misc{khodapanahandeh2026understanding,
  author = {Mehrdad Khodapanahandeh and Selin Unal and Berkay Kemal Balioglu and Alireza Khodaie and Beren Semiz and M. Emre Gursoy},
  title = {{Understanding Membership Inference Attacks on EEG Models}},
  year = {2026},
  eprint = {2611.28354},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.28354},
}
Figure