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.
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