Exploring Embedding Methods in Binary Hyperdimensional Computing: A Case Study for Motor-Imagery based Brain-Computer Interfaces

Michael Hersche, José del R. Millán, Luca Benini, Abbas RahimiarXiv 2018

Abstract

Motor-imagery (MI) based Brain-Computer Interfaces (BCIs) are essential for neuroprosthetics but are constrained by the high computational demands of traditional machine learning on wearable devices. This study explores Hyperdimensional (HD) Computing—a brain-inspired paradigm using massive binary vectors—as an efficient alternative for EEG decoding. We systematically evaluate four embedding strategies to map Riemannian covariance features into a 10,000-bit hypervector space. Our findings demonstrate that simple HD embeddings achieve up to 90x faster training and 58x lower energy consumption than Support Vector Machines (SVMs). Furthermore, a novel "learned projection" method outperforms SVM accuracy, reaching 84.22% on a 3-class MI dataset.

Introduction

Brain-Computer Interfaces (BCIs) translate neural activity, such as motor imagery (MI), into control signals for external devices. However, EEG signals are non-stationary and noisy, typically requiring complex feature extraction and high-performance classifiers like Support Vector Machines (SVMs). For battery-powered wearable headsets, these traditional methods often exceed energy and latency budgets.

Hyperdimensional (HD) Computing offers a solution by representing data as high-dimensional (e.g., $d=10,000$) binary hypervectors. This paradigm is inherently robust to noise and supports efficient bitwise operations. The critical challenge lies in the "embedding" process: converting continuous EEG features into these binary representations without losing discriminative information.

Methodology

Feature Extraction via Riemannian Kernels

The pipeline begins by capturing the spatial characteristics of brain activity using Riemannian Covariance Features. EEG signals are transformed into covariance matrices, which are then mapped to a tangent space to produce a feature vector $f$.

The Riemannian Kernel process transforms raw EEG signals (X) into a vectorized feature representation (f) through covariance estimation and logarithmic mapping.

HD Embedding and Encoding

The core of the proposed system is the transformation of the feature vector $f$ into the HD space. We compared four embedding strategies:

  1. Thermometer Coding: A linear quantization where values are represented by a sequence of bits.
  2. Gray Coding: A quantization method that minimizes bit-flips between adjacent values to preserve local topology.
  3. Random Projections: A fixed sparse matrix maps features into the HD space, leveraging the distance-preserving properties of high-dimensional random spaces.
  4. Learned Projections: An end-to-end training approach using Binary Neural Network (BNN) principles. This method "tears" the space, forcing hypervectors of different classes to become quasi-orthogonal.

System Architecture

The overall architecture integrates multi-band feature extraction with HD encoding and an associative memory (AM) for classification.

The complete BCI pipeline, illustrating multi-band feature extraction, HD embedding, and the associative memory (AM) classification stage using Hamming distance.

Results and Discussion

The methods were evaluated on an NVIDIA Jetson TX2 to simulate embedded constraints.

Efficiency: The simple thermometer-based HD approach demonstrated extreme efficiency, training 89.9x faster and consuming 58.7x less energy than a standard SVM on the 4-class BCI Competition IV-2a dataset.

Accuracy: While basic embeddings showed a slight accuracy drop compared to SVMs, the Learned Projection method achieved a peak accuracy of 84.22% on a 3-class dataset, surpassing the SVM's 82.67%. This indicates that HD computing can match or exceed state-of-the-art performance when the embedding is optimized.

Robustness: The holographic nature of the 10,000-bit representation ensures that the system remains functional even if significant portions of the hypervector are corrupted, a vital trait for noisy real-world EEG applications.

Conclusion

This research establishes HD computing as a versatile framework for BCIs. By selecting the appropriate embedding method, developers can prioritize either extreme energy efficiency for "on-the-fly" calibration or high accuracy for complex decoding tasks. Future work will focus on implementing these algorithms on specialized hardware like FPGAs or ASICs to fully exploit the bitwise parallelism of hyperdimensional operations.

Summary updated

BibTeX
@misc{hersche2018exploring,
  author = {Michael Hersche and José del R. Millán and Luca Benini and Abbas Rahimi},
  title = {{Exploring Embedding Methods in Binary Hyperdimensional Computing: A Case Study for Motor-Imagery based Brain-Computer Interfaces}},
  year = {2018},
  eprint = {1812.05705},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1812.05705},
}
Figure