Universal Adversarial Perturbations for CNN Classifiers in EEG-Based BCIs

Zihan Liu, Xiao Zhang, Dongrui WuarXiv 2019

Abstract

Modern Brain-Computer Interfaces (BCIs) increasingly leverage Convolutional Neural Networks (CNNs) for high-performance EEG signal decoding. However, these models are susceptible to adversarial attacks. This paper introduces Universal Adversarial Perturbations (UAPs) for EEG-based BCIs, demonstrating that a single, pre-calculated noise template can reliably deceive CNN classifiers in real-time. Using a novel Total Loss Minimization (TLM) approach, the researchers show that these perturbations are highly effective across diverse BCI paradigms, transferable between models, and virtually undetectable, posing a significant security risk to BCI-controlled systems.

Introduction

Brain-Computer Interfaces (BCIs) serve as a critical bridge between human neural activity and external devices, translating electroencephalogram (EEG) signals into actionable commands. The adoption of Convolutional Neural Networks (CNNs) has significantly advanced BCI performance by automating feature extraction from raw EEG data. Despite these gains, CNNs are vulnerable to adversarial perturbations—subtle, intentional noise designed to cause misclassification.

Previous research into EEG adversarial attacks often required calculating a unique perturbation for every trial and lacked causality, meaning the attack could only be computed after the full signal was recorded. This paper addresses these limitations by introducing Universal Adversarial Perturbations (UAPs). Unlike trial-specific attacks, a UAP is a "one-size-fits-all" template that can be added to any EEG signal in real-time, effectively "jamming" the BCI system.

The jamming module intercepts the BCI pipeline to inject universal adversarial perturbations.

Methodology

The core innovation of this work is the Total Loss Minimization (TLM) approach for generating UAPs. While traditional UAP generation methods (like those based on DeepFool) aggregate small changes from individual samples, TLM optimizes the perturbation as a single variable. By using batch gradient descent to minimize the model's confidence across an entire training dataset simultaneously, TLM finds a more effective global perturbation.

The researchers evaluated TLM in both non-targeted (causing any misclassification) and targeted (forcing a specific output command) attack scenarios. To ensure the perturbations remained "invisible," constraints were placed on the $\ell_\infty$ norm, and regularization ($L_1$ or $L_2$) was used to maintain low amplitude or sparsity.

The attack was validated across three major BCI paradigms using three popular CNN architectures (EEGNet, DeepCNN, and ShallowCNN):

  • P300 Evoked Potentials: Used for communication (e.g., spellers).
  • Feedback Error-Related Negativity (ERN): Detecting user-perceived errors.
  • Motor Imagery (MI): Controlling devices via imagined movement.

Key Results and Insights

The experimental results reveal a profound vulnerability in current BCI systems:

  • Significant Accuracy Degradation: In white-box non-targeted attacks on P300 data, classification accuracy plummeted from approximately 81% to 17%.
  • High Targeted Success: TLM achieved near 100% success rates in targeted attacks, granting an attacker near-total control over the BCI output.
  • Stealth and Efficiency: The perturbations were virtually undetectable in time, frequency, and spatial domains. Furthermore, "mini-UAPs" applied to only a subset of channels or a fraction of the trial duration were often sufficient to compromise the system.
  • Transferability: UAPs designed for one CNN model often successfully fooled others (gray-box attacks). They even demonstrated some effectiveness against traditional, non-deep-learning pipelines like Common Spatial Patterns (CSP) combined with Logistic Regression.

Conclusion

This research highlights a critical security gap in deep-learning-powered BCIs. The ability to generate universal, real-time perturbations means that an attacker could disrupt a wheelchair's navigation or falsify clinical data with minimal effort. While traditional models showed slightly more resilience in specific tasks, the overall susceptibility of CNNs is concerning. Future work must focus on developing robust defense mechanisms, such as adversarial training, to ensure the safety and reliability of next-generation BCI systems.

Summary updated

BibTeX
@misc{liu2019universal,
  author = {Zihan Liu and Xiao Zhang and Dongrui Wu},
  title = {{Universal Adversarial Perturbations for CNN Classifiers in EEG-Based BCIs}},
  year = {2019},
  eprint = {1912.01171},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1912.01171},
}
Figure