Hyperdimensional Computing for Noninvasive Brain–Computer Interfaces: Blind and One-Shot Classification of EEG Error-Related Potentials

Abbas Rahimi, Pentti Kanerva, José del R. Millán, Jan M. Rabaey2017

Abstract

Computing with high-dimensional (HD) vectors, referred to as "hypervectors," is a brain-inspired alternative to computing with numbers. HD computing is characterized by generality, scalability, robustness, and fast learning, making it a prime candidate for utilization in application domains such as noninvasive brain-computer interfaces (BCIs). This paper demonstrates a novel HD computing approach for the classification of EEG error-related potentials (ERPs), achieving superior accuracy and significantly faster learning compared to traditional methods.

Introduction

Noninvasive Brain-Computer Interfaces (BCIs) translate neural activity, typically recorded via Electroencephalography (EEG), into control signals for external devices. A critical component of robust BCIs is the detection of Error-Related Potentials (ERPs)—distinct neural signatures generated when a user perceives a mistake. However, traditional machine learning (ML) approaches for ERP classification face significant hurdles. They often require extensive manual feature selection by domain experts, complex preprocessing like Common Average Reference (CAR) filtering, and lengthy calibration sessions for each new user. This study introduces a Hyperdimensional (HD) computing framework designed to overcome these limitations through "blind" electrode processing and rapid, one-shot learning.

Methodology

The proposed system leverages the mathematical properties of hypervectors—10,000-dimensional patterns that represent information holographically. Unlike scalar values, hypervectors are inherently robust to noise; if a portion of the vector is corrupted, the overall information remains recoverable.

As shown in Figure 1, the encoding process follows a structured pipeline:

  1. Temporal Encoding: EEG signal levels are quantized and mapped to hypervectors. A sequence of these signals is transformed into an n-gram hypervector using cyclic shifts (permutations), capturing the temporal evolution of the signal.
  2. Spatial Encoding: Each of the 64 electrodes is assigned a unique, orthogonal ID hypervector. The temporal hypervector for each electrode is "bound" (via element-wise multiplication) to its corresponding spatial ID.
  3. Global Integration: All bound vectors are summed into a single "temporal-spatial hypervector" representing the global brain state during an event.
The HD computing architecture for EEG processing, showing temporal and spatial encoding stages across 64 electrodes.

Training is achieved through a "one-shot" approach: the system aggregates hypervectors from "correct" and "error" trials to form class prototypes. A conditional addition rule ensures that only non-redundant information (cosine similarity < 0.5) is added to the prototypes, preventing saturation and accelerating the learning process.

Experimental Setup

The approach was validated using a public EEG dataset featuring six subjects monitoring a cursor task. The dataset included 64-channel EEG recordings sampled at 512 Hz. Trials were split into training and testing sessions, with approximately 640 trials per subject. In 20% of trials, the cursor moved in the wrong direction, triggering an ERP.

Results and Discussion

The HD computing model demonstrated significant advantages over conventional Gaussian classifiers. Notably, it achieved a mean accuracy of 74.5%, compared to the baseline's 69.5%.

A key finding is the "blind" advantage of HD computing. Traditional models typically rely on 1-2 expert-selected electrodes (e.g., FCz or Cz). When these models are fed data from all 64 electrodes without careful selection, their performance often degrades due to the inclusion of "garbage" signals. In contrast, as illustrated in Figure 5, the HD model's performance remained high even when using all 64 electrodes without manual selection or CAR filtering, achieving 71.7% accuracy. This suggests that in high-dimensional space, irrelevant noise tends to cancel out while meaningful signals reinforce the class prototypes.

Comparison of classification accuracy between the baseline and HD computing approaches across six subjects, highlighting the robustness of the 64-electrode HD model.

Furthermore, the HD model exhibited remarkably fast learning. It reached a target accuracy of 70.5% using only 34% of the available training data on average. For one subject (S6), the model achieved the target performance after seeing less than 1% of non-redundant trials, highlighting its potential for near-instantaneous BCI calibration.

Conclusion

Hyperdimensional computing offers a robust, scalable, and fast-learning alternative for BCI applications. By moving away from manual feature engineering toward a brain-inspired holographic representation, this approach simplifies the deployment of EEG-based systems. Future work will explore the implementation of these algorithms on energy-efficient neuromorphic hardware and investigate the limits of n-gram scaling for longer neural sequences.

Summary updated

BibTeX
@misc{rahimi2017hyperdimensional,
  author = {Abbas Rahimi and Pentti Kanerva and José del R. Millán and Jan M. Rabaey},
  title = {{Hyperdimensional Computing for Noninvasive Brain–Computer Interfaces: Blind and One-Shot Classification of EEG Error-Related Potentials}},
  year = {2017},
  doi = {10.4108/eai.22-3-2017.152397},
}
Figure