NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Mixed-Precision Quantization and Parallel Implementation of Multispectral Riemannian Classification for Brain--Machine Interfaces

Xiaying Wang, Tibor Schneider, Michael Hersche, Lukas Cavigelli, Luca Benini · DOI

Abstract

Motor-Imagery (MI) Brain–Machine Interfaces (BMIs) offer a path to controlling external devices through thought alone. For these systems to be practical, they must operate on wearable, low-power microcontrollers (MCUs) that process data locally to ensure privacy and efficiency. This work presents an embedded implementation of a Multispectral Riemannian Classifier (MRC) that achieves 75.1% accuracy on a 4-class MI task. By employing mixed-precision quantization, the model is scaled down with minimal accuracy loss (to 74.1%), outperforming state-of-the-art embedded CNNs. Implemented on a parallel RISC-V SoC, the system requires only 33.39 ms and 1.304 mJ per classification.

Introduction

The deployment of Brain-Machine Interfaces (BMIs) in real-world scenarios necessitates wearable solutions capable of local signal processing. Traditional approaches face a significant hurdle: the trade-off between the robustness of Riemannian geometry-based methods and the computational constraints of edge devices. While Riemannian methods are highly accurate for EEG decoding, their reliance on complex matrix operations like Eigenvalue Decomposition (EVD) often exceeds the capabilities of standard low-power microcontrollers.

Methods

The researchers developed a Multispectral Riemannian Classifier (MRC) optimized for embedded deployment. The pipeline involves several stages: temporal filtering, covariance matrix estimation, whitening, and a matrix logarithm followed by a Support Vector Machine (SVM) classifier.

Mixed-Precision Quantization

To balance accuracy and computational cost, the team implemented a mixed-precision strategy. Rather than a uniform quantization, they assigned bit-widths based on the numerical sensitivity of each stage. Input data and the SVM use 8-bit fixed-point (Q8), while IIR filters use 12-bit coefficients to maintain stability. The most critical stage, the Matrix Logarithm, is kept in 32-bit floating-point (F32) to prevent errors during EVD.

Mixed-precision quantization pipeline for the Multispectral Riemannian Classifier.

Parallel Execution

The model was implemented on the "Mr. Wolf" SoC, featuring an 8-core RISC-V compute cluster. Optimization efforts focused on the Matrix Logarithm bottleneck, utilizing Householder transformations and parallel QR algorithms to maximize the throughput of the multi-core architecture.

Results

The proposed MRC was evaluated on the BCI Competition IV-2a dataset. The results demonstrate that geometric methods can significantly outperform deep learning models on small, high-variability EEG datasets.

Accuracy and Performance

The mixed-precision MRC achieved an average accuracy of 74.1%, surpassing the 8-bit quantized EEGNET (70.9%) by 3.2%. Beyond accuracy, the implementation is highly efficient. The total latency for a single classification is 33.39 ms, which is well below the threshold for real-time human-in-the-loop interaction.

Execution time breakdown and parallel speedup for the MRC implementation across different optimization stages.

Energy and Memory

Each inference consumes only 1.304 mJ, and the entire firmware fits within 84 kB of memory. This efficiency is achieved through high parallel speedups, particularly in the filter and covariance matrix stages, where speedups of 7.26x and 7.10x were observed on the 8-core cluster.

Conclusion

This work demonstrates the feasibility of running high-accuracy Riemannian classifiers on low-power, parallel MCUs. By carefully applying mixed-precision quantization and optimizing for multi-core architectures, the researchers have bridged the gap between complex geometric signal processing and the constraints of wearable BMI hardware. Future work will address core utilization imbalances and explore the application of this architecture to other EEG paradigms like P300 and SSVEP.

Summary updated

BibTeX
@inproceedings{wang2021mixed,
  author = {Xiaying Wang and Tibor Schneider and Michael Hersche and Lukas Cavigelli and Luca Benini},
  title = {{Mixed-Precision Quantization and Parallel Implementation of Multispectral Riemannian Classification for Brain--Machine Interfaces}},
  booktitle = {ISCAS},
  year = {2021},
  url = {https://openreview.net/forum?id=sThBMLdR_Zjv},
}
Figure