Understanding Membership Inference Attacks on EEG Models
Authors: Mehrdad Khodapanahandeh, Selin Unal, Berkay Kemal Balioglu, Alireza Khodaie, Beren Semiz, M. Emre Gursoy
Organizations: Department of Biomedical Sciences and Engineering, College of Engineering, Koc¸ University, Istanbul, Türkiye · Department of Computer Engineering, College of Engineering, Koc¸ University, Istanbul, Türkiye · Department of Electrical and Electronics Engineering, College of Engineering, Koc¸ University, Istanbul, Türkiye · Koc¸ University Research Center for Translational Medicine (KUTTAM), Koc¸ University, Istanbul, Türkiye · Koc¸ University & Is¸ Bank Artificial Intelligence Center (KUIS AI), Koc¸ University, Istanbul, Türkiye
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.
Figures & tables
Figure 1: Model generalization results. First row: attack AUC vs loss gap, second row: attack AUC vs accuracy gap. Left pair is for the MoBI dataset at five overlaps of EEG windowing, middle pair for the Driver-Drowsiness dataset, and right pair for the Alzheimer’s Disease dataset (latter two are with non-overlapping windowing).
Figure 2: Attack AUC vs number of participants. Increasing the number of participants reduces the attacker’s AUC, despite some fluctuations (MoBI dataset).
Figure 3: Attack AUC vs number of participants for the Alzheimer’s Disease dataset with non-overlap windowing. The results are similar to the MOBI dataset, with fluctuations but decreasing overall.
Figure 4: TPR @ 1% FPR vs number of the participants. This experiment is done just for 1 stride window overlap of the MoBI dataset.
Figure 5: Impact of model size (filter and layer count). MoBI dataset (left), Driver-Drowsiness dataset (middle), and Alzheimer’s disease dataset (right) with non-overlap windowing.
Figure 6: Attack AUC versus number of filters per layer for the controllable TestNetwork, for 25%, 50%, 75%, and 1 stride window overlap (MoBI dataset).
Figure 7: Number of epochs used in model training vs attack AUC and train-test loss gap. From left to right: MoBI, Driver Drowsiness, and Alzheimer’s Disease datasets. Results show that as the number of epochs increases, attack AUC and train-test loss gap increase.
Figure 8: EEG channel region. Attack AUC by channel subset for three datasets. No single region consistently dominates; the full montage performs comparably to or better than any subset.
Figure 9: Frequency bands. Attack AUC for EEG inputs band-limited to theta, alpha, beta, or gamma, compared with the full broadband signal.
Figure 10: Spectral representation. Attack AUC for the time-domain waveform (red) versus the magnitude-spectrum (1–35 Hz, blue) input representation on the MoBI dataset. The two representations yield comparable attack strength at every overlap, with neither consistently superior.
Figure 11: Inter-channel correlation. Mean correlation vs. channel pairs for MoBI dataset.
Figure 12: AUC and TPR @ 1% FPR results of the loss, confidence, and modified entropy attacks on the MoBI dataset.
Figure 13: Comparison between LiRA and loss attack AUC and TPR @ 1% FPR on the MoBI dataset.
Figure 14: Results of the subject identification accuracy experiment on the MoBI dataset.
Figure 15: Accuracy on the rest vs game classification task (MoBI dataset) under within-subject and LOSO training settings.
As with most other data domains, EEG data analysis relies on rich domain-specific preprocessing. Beyond such preprocessing, machine learners would hope to deal with such data as with any other time series data. For EEG classification many models have been developed with layer types and architectures we typically do not see in time series classification. Furthermore, typically separate models for each individual subject are learned, not one model for all of them. In this paper, we systematically study the differences between EEG classification models and generic time series classification models. We describe three different model setups to deal with EEG data from different subjects, subject-specific models (most EEG literature), subject-agnostic models and subject-conditional models. In experiments on three datasets, we demonstrate that off-the-shelf time series classification models trained per subject perform close to EEG classification models, but that do not quite reach the performance of domain-specific modeling. Additionally, we combine time-series models with subject embeddings to train one joint subject-conditional classifier on all subjects. The resulting models are competitive with dedicated EEG models in 2 out of 3 datasets, even outperforming all EEG methods on one of them.
Johannes Burchert, Thorben Werner, Vijaya Krishna Yalavarthi +3
Institute for Computer Science, University of Hildesheim, Hildesheim, German
Membership inference attacks (MIAs) aim to determine whether a data sample was included in a machine learning (ML) model's training set and have become the de facto standard for measuring privacy leakages in ML. We propose an evaluation framework that defines the conditions under which MIAs constitute a genuine privacy threat, and review representative MIAs against it. We find that, under the realistic conditions defined in our framework, MIAs represent weak privacy threats. Thus, relying on them as a privacy metric in ML can lead to an overestimation of risk and to unnecessary sacrifices in model utility as a consequence of employing too strong defenses.
Najeeb Jebreel, David Sánchez, Josep Domingo-Ferrer
Universitat Rovira i Virgili, Department of Computer Engineering and Mathematics, CYBERCAT-Center for Cybersecurity Research of Catalonia, ComSCIAM-Center for Computational Science and Applied Mathematics Av. Països Catalans 26, 43007 Tarragona, Catalonia
A central challenge in EEG authentication is that models are typically tied to the acquisition settings in which they are trained. In particular, variations in headset hardware, channel layout, and signal duration create heterogeneous recordings that existing models are not designed to handle, causing each new headset or dataset to be treated as a separate model-development problem. This fragmentation limits multi-dataset learning, hinders knowledge transfer, and reduces model reusability. To address this limitation, we present NeuroShield, a reusable foundation model for EEG authentication that learns identity-discriminative embeddings from variable-channel and variable-length EEG recordings through a dual-stage transformer architecture. We pretrain NeuroShield on three public EEG datasets comprising 15{,}762 subjects and 28{,}116 sessions, and evaluate transfer on two unseen downstream datasets. Our evaluations show that, after fine-tuning, NeuroShield reduces equal error rate by 0.44--8.06 percentage points relative to the state of the art. NeuroShield further generalizes to segments longer than those seen during training and operates across channel layouts not encountered during pretraining. These results establish NeuroShield as a reusable and adaptable EEG identity encoder across heterogeneous recording settings. We release NeuroShield as open source to support reproducibility and community adoption.