White-Box Target Attack for EEG-Based BCI Regression Problems

Lubin Meng, Chin‐Teng Lin, Tzyy-Ring Jung, Dongrui Wu · DOI

Abstract

Machine learning has achieved great success in many applications, including electroencephalogram (EEG) based brain-computer interfaces (BCIs). Unfortunately, many machine learning models are vulnerable to adversarial examples, which are crafted by adding deliberately designed perturbations to the original inputs. While many adversarial attack approaches for classification problems have been proposed, few have considered target adversarial attacks for regression problems. This paper proposes two such approaches: CW-R and IFGSM-R. Experiments on two BCI regression problems verified that both approaches are effective and transferable, meaning adversarial examples generated from one known model can attack an unknown model. This study highlights the security vulnerabilities of BCI systems and calls for increased attention to their protection.

Introduction

Most research into adversarial machine learning focuses on classification tasks (e.g., misidentifying a stop sign). However, many critical Brain-Computer Interface (BCI) applications rely on regression, where the model predicts a continuous value like cognitive load or reaction time. If these regression models can be manipulated, a malicious actor could "mask" a driver's fatigue, potentially leading to accidents. This paper systematically studies "white-box target attacks" for EEG-based regression, where an attacker aims to shift the output by a specific, pre-determined margin.

Methods

The authors adapted two prominent adversarial attack frameworks for regression tasks:

  1. CW-R (Carlini and Wagner for Regression): An optimization-based approach. It uses a tanh change-of-variable to ensure the perturbed signal stays within valid bounds. It optimizes a loss function that balances minimizing perturbation size with ensuring the model output shifts by at least a target amount ($t$).
  2. IFGSM-R (Iterative Fast Gradient Sign Method for Regression): A gradient-based approach. It iteratively updates the input signal in the direction that increases prediction error until the target shift is achieved, using "clipping" to maintain a maximum threshold ($\epsilon$).

Both methods are "white-box," requiring access to model gradients, but their transferability allows for simulated "black-box" scenarios where the attacker does not know the internal architecture of the target model.

Experimental Setup

The attacks were evaluated on two distinct BCI regression datasets:

  • Driving Dataset: EEG data from 15 subjects in a sustained-attention driving experiment, predicting a "drowsiness index."
  • PVT (Psychomotor Vigilance Task) Dataset: EEG data from 17 subjects performing a reaction time (RT) task, predicting RT from 64-channel EEG signals.

Models tested included Ridge Regression (RR) and Multi-Layer Perceptrons (MLP).

Results and Discussion

The experimental results demonstrate that EEG-based regression models are highly vulnerable to targeted attacks.

Performance comparison of different attack methods across datasets and models.

Key Findings:

  • High Success Rate: As shown in the table above, both CW-R and IFGSM-R achieved an Attack Success Rate (ASR) of nearly 100% across both datasets and model types. In the Driving dataset, attacks successfully shifted mean predicted drowsiness from ~0.38 to ~0.58.
  • Efficiency and Distortion: CW-R was generally more efficient than IFGSM-R, achieving the target shift with significantly less distortion (smaller $L_2$ distance from the original signal).
  • Transferability: A critical finding is the transferability of attacks. Adversarial examples designed for a simple Ridge Regression model successfully fooled complex MLPs in cross-subject scenarios. This implies an attacker can use a "proxy" model to attack an unknown target system.
  • Specificity of Attacks: Random Gaussian noise failed to significantly change model outputs (ASR of 0.00%), proving that successful manipulation requires mathematically "crafted" perturbations rather than simple interference.
  • Invisibility: Spectrogram analysis indicated that perturbations are concentrated in the 3-10 Hz range and spread uniformly across time, making them nearly indistinguishable from clean EEG signals to human observers or standard processing algorithms.

Conclusion

This research proves that BCIs used for regression tasks are susceptible to sophisticated adversarial attacks that can precisely manipulate outputs while remaining virtually invisible. While transferability was demonstrated, future work must address "pure" black-box attacks and real-time streaming constraints. Most importantly, the BCI community must prioritize developing robust defense mechanisms, such as adversarial training or specialized filtering, to ensure user safety in critical applications.

Summary updated

BibTeX
@misc{meng2019white,
  author = {Lubin Meng and Chin‐Teng Lin and Tzyy-Ring Jung and Dongrui Wu},
  title = {{White-Box Target Attack for EEG-Based BCI Regression Problems}},
  year = {2019},
  eprint = {1911.04606},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1911.04606},
}
Figure