Q-EEGNet: an Energy-Efficient 8-bit Quantized Parallel EEGNet Implementation for Edge Motor-Imagery Brain-Machine Interfaces
Authors:
- 1 September 2020
- conference paper
- Published by Institute of Electrical and Electronics Engineers (IEEE)
- p. 284-289
Abstract
Motor-Imagery Brain-Machine Interfaces (MI-BMIs) promise direct and accessible communication between human brains and machines by analyzing brain activities recorded with Electroencephalography (EEG). Latency, reliability, and privacy constraints make it unsuitable to offload the computation to the cloud. Practical use cases demand a wearable, battery-operated device with low average power consumption for longterm use. Recently, sophisticated algorithms, in particular deep learning models, have emerged for classifying EEG signals. While reaching outstanding accuracy, these models often exceed the limitations of edge devices due to their memory and computational requirements. In this paper, we demonstrate algorithmic and implementation optimizations for EEGNET, a compact Convolutional Neural Network (CNN) suitable for many BMI paradigms. We quantize weights and activations to 8-bit fixed-point with a negligible accuracy loss of 0.4% on 4-class MI, and present an energy-efficient hardware-aware implementation on the Mr. Wolf parallel ultra-low power (PULP) System-on-Chip (SoC) by utilizing its custom RISC-VISA extensions and 8-core compute cluster. With our proposed optimization steps, we can obtain an overall speedup of 64 × and a reduction of up to 85% in memory footprint with respect to a single-core layer-wise baseline implementation. Our implementation takes only 5.82 ms and consumes 0.627 mJ per inference. With 21.0 GMAC/s/W, it is 256× more energy-efficient than an EEGNET implementation on an ARM Cortex-M7 (0.082 GMAC/s/W).Keywords
All Related Versions
This publication has 15 references indexed in Scilit:
- Mr.Wolf: An Energy-Precision Scalable Parallel Ultra Low Power SoC for IoT Edge ProcessingIEEE Journal of Solid-State Circuits, 2019
- Fast and Accurate Multiclass Inference for MI-BCIs Using Large Multiscale Temporal and Spectral Features2018
- EEGNet: a compact convolutional neural network for EEG-based brain–computer interfacesJournal of Neural Engineering, 2018
- BCI‐based control of electric wheelchair using fractal characteristics of EEGIEEJ Transactions on Electrical and Electronic Engineering, 2018
- Quantization and Training of Neural Networks for Efficient Integer-Arithmetic-Only Inference2018
- A review of classification algorithms for EEG-based brain–computer interfaces: a 10 year updateJournal of Neural Engineering, 2018
- Slow and steady wins the race? A comparison of ultra-low-power RISC-V cores for Internet-of-Things applications2017
- Deep learning with convolutional neural networks for EEG decoding and visualizationHuman Brain Mapping, 2017
- Post-stroke Rehabilitation Training with a Motor-Imagery-Based Brain-Computer Interface (BCI)-Controlled Hand Exoskeleton: A Randomized Controlled Multicenter TrialFrontiers in Neuroscience, 2017
- Near-Threshold RISC-V Core With DSP Extensions for Scalable IoT Endpoint DevicesIEEE Transactions on Very Large Scale Integration (VLSI) Systems, 2017