Table of Contents
Fetching ...

Alignment-Based Adversarial Training (ABAT) for Improving the Robustness and Accuracy of EEG-Based BCIs

Xiaoqing Chen, Ziwei Wang, Dongrui Wu

TL;DR

Alignment-based adversarial training (ABAT), which performs EEG data alignment before adversarial training to simultaneously improve the model accuracy and robustness, is proposed.

Abstract

Machine learning has achieved great success in electroencephalogram (EEG) based brain-computer interfaces (BCIs). Most existing BCI studies focused on improving the decoding accuracy, with only a few considering the adversarial security. Although many adversarial defense approaches have been proposed in other application domains such as computer vision, previous research showed that their direct extensions to BCIs degrade the classification accuracy on benign samples. This phenomenon greatly affects the applicability of adversarial defense approaches to EEG-based BCIs. To mitigate this problem, we propose alignment-based adversarial training (ABAT), which performs EEG data alignment before adversarial training. Data alignment aligns EEG trials from different domains to reduce their distribution discrepancies, and adversarial training further robustifies the classification boundary. The integration of data alignment and adversarial training can make the trained EEG classifiers simultaneously more accurate and more robust. Experiments on five EEG datasets from two different BCI paradigms (motor imagery classification, and event related potential recognition), three convolutional neural network classifiers (EEGNet, ShallowCNN and DeepCNN) and three different experimental settings (offline within-subject cross-block/-session classification, online cross-session classification, and pre-trained classifiers) demonstrated its effectiveness. It is very intriguing that adversarial attacks, which are usually used to damage BCI systems, can be used in ABAT to simultaneously improve the model accuracy and robustness.

Alignment-Based Adversarial Training (ABAT) for Improving the Robustness and Accuracy of EEG-Based BCIs

TL;DR

Alignment-based adversarial training (ABAT), which performs EEG data alignment before adversarial training to simultaneously improve the model accuracy and robustness, is proposed.

Abstract

Machine learning has achieved great success in electroencephalogram (EEG) based brain-computer interfaces (BCIs). Most existing BCI studies focused on improving the decoding accuracy, with only a few considering the adversarial security. Although many adversarial defense approaches have been proposed in other application domains such as computer vision, previous research showed that their direct extensions to BCIs degrade the classification accuracy on benign samples. This phenomenon greatly affects the applicability of adversarial defense approaches to EEG-based BCIs. To mitigate this problem, we propose alignment-based adversarial training (ABAT), which performs EEG data alignment before adversarial training. Data alignment aligns EEG trials from different domains to reduce their distribution discrepancies, and adversarial training further robustifies the classification boundary. The integration of data alignment and adversarial training can make the trained EEG classifiers simultaneously more accurate and more robust. Experiments on five EEG datasets from two different BCI paradigms (motor imagery classification, and event related potential recognition), three convolutional neural network classifiers (EEGNet, ShallowCNN and DeepCNN) and three different experimental settings (offline within-subject cross-block/-session classification, online cross-session classification, and pre-trained classifiers) demonstrated its effectiveness. It is very intriguing that adversarial attacks, which are usually used to damage BCI systems, can be used in ABAT to simultaneously improve the model accuracy and robustness.

Paper Structure

This paper contains 20 sections, 5 equations, 7 figures, 8 tables, 2 algorithms.

Figures (7)

  • Figure 1: Flowchart of a closed-loop BCI system.
  • Figure 2: The attack framework proposed in Zhang2019, which injects a jamming module between signal processing and machine learning to generate adversarial examples.
  • Figure 3: The influence of ABAT on EEG data from different domains. Data alignment aligns EEG trials from different domains to reduce their distribution discrepancies, and AT further robustifies the classification boundary.
  • Figure 4: The complete BCI flowchart, incorporating ABAT. After preprocessing EEG data using epoching and filtering, ABAT trains the classifier, which is then used in subsequent classification and robustness evaluation. ABAT aligns EEG data centers across different domains and robustifies the classifier's decision boundary through adversarial training.
  • Figure 5: Online cross-session performance of ABAT using incremental EA on (a) MI4 and (b) P300.
  • ...and 2 more figures