Skip to main content
QUICK REVIEW

[Paper Review] An Accurate EEGNet-based Motor-Imagery Brain-Computer Interface for Low-Power Edge Computing

Xiaying Wang, Michael Hersche|arXiv (Cornell University)|Mar 31, 2020
EEG and Brain-Computer InterfacesNeuroscience20 references9 citations
TL;DR

This paper proposes an optimized EEGNet-based motor-imagery brain-computer interface (MI-BCI) tailored for low-power edge computing on ARM Cortex-M microcontrollers. By applying temporal downsampling, channel reduction, and narrowed classification windows, the model achieves 82.43% accuracy on 2-class tasks with a 7.6× memory reduction and 0.31% accuracy loss, enabling real-time, wearable, and energy-efficient BCI deployment on embedded MCUs.

ABSTRACT

This paper presents an accurate and robust embedded motor-imagery brain-computer interface (MI-BCI). The proposed novel model, based on EEGNet, matches the requirements of memory footprint and computational resources of low-power microcontroller units (MCUs), such as the ARM Cortex-M family. Furthermore, the paper presents a set of methods, including temporal downsampling, channel selection, and narrowing of the classification window, to further scale down the model to relax memory requirements with negligible accuracy degradation. Experimental results on the Physionet EEG Motor Movement/Imagery Dataset show that standard EEGNet achieves 82.43%, 75.07%, and 65.07% classification accuracy on 2-, 3-, and 4-class MI tasks in global validation, outperforming the state-of-the-art (SoA) convolutional neural network (CNN) by 2.05%, 5.25%, and 5.48%. Our novel method further scales down the standard EEGNet at a negligible accuracy loss of 0.31% with 7.6x memory footprint reduction and a small accuracy loss of 2.51% with 15x reduction. The scaled models are deployed on a commercial Cortex-M4F MCU taking 101ms and consuming 4.28mJ per inference for operating the smallest model, and on a Cortex-M7 with 44ms and 18.1mJ per inference for the medium-sized model, enabling a fully autonomous, wearable, and accurate low-power BCI.

Motivation & Objective

  • To develop a robust, accurate, and energy-efficient MI-BCI model suitable for deployment on low-power microcontroller units (MCUs).
  • To address the challenge of deploying complex CNNs on resource-constrained embedded systems with limited RAM and computational power.
  • To minimize memory footprint and energy consumption while maintaining high classification accuracy for real-time wearable BCI applications.
  • To evaluate model performance on commercial MCUs (Cortex-M4F and M7) with precise measurements of latency, power, and accuracy.
  • To enable fully autonomous, on-device inference for continuous MI classification in real-world BCI use cases.

Proposed method

  • The core model is based on EEGNet, a lightweight CNN architecture optimized for EEG signal classification.
  • Temporal downsampling is applied to reduce the time resolution of input signals, decreasing feature map size and memory usage.
  • Channel selection reduces the number of EEG channels from 64 to 38, minimizing spatial input dimensionality.
  • The classification window is narrowed from 4 seconds to 1–2 seconds, reducing the temporal context and further shrinking memory footprint.
  • Model quantization and pruning techniques are implicitly applied through architectural simplifications, focusing on feature map storage efficiency.
  • The final models are deployed on ARM Cortex-M4F and M7 MCUs using STM32CubeMX and X-CUBE-AI, with instruction and data caches enabled for performance optimization.

Experimental results

Research questions

  • RQ1Can an EEGNet-based model achieve state-of-the-art accuracy on MI-BCI tasks while being deployable on low-power MCUs?
  • RQ2How much can model size and memory footprint be reduced via temporal downsampling, channel reduction, and window narrowing without significant accuracy degradation?
  • RQ3What is the trade-off between accuracy, inference latency, and energy consumption when deploying MI-BCI models on Cortex-M4F and M7 processors?
  • RQ4Can real-time, on-device MI classification be achieved with sub-100ms latency and sub-5mJ energy per inference on embedded MCUs?
  • RQ5How do different MCU architectures (M4F vs. M7) affect the performance and energy efficiency of embedded MI-BCI models?

Key findings

  • The standard EEGNet model achieves 82.43%, 75.07%, and 65.07% global validation accuracy on 2-, 3-, and 4-class MI tasks, outperforming the SoA CNN by 2.05%, 5.25%, and 6.49% respectively.
  • The proposed model reduction techniques achieve a 7.6× reduction in memory footprint with only 0.31% accuracy loss on the Cortex-M7, enabling deployment of the most compact model.
  • On the Cortex-M4F, the smallest model consumes 4.28 mJ per inference and completes in 101 ms, achieving 62.51% accuracy.
  • On the Cortex-M7, the medium-sized model runs in 44 ms with 18.1 mJ per inference and achieves 64.76% accuracy, representing a 2.51% accuracy loss compared to the full model.
  • The Cortex-M7 achieves 4.9× lower latency than the Cortex-M4F at 216 MHz, despite 3.1× higher power consumption, demonstrating the performance advantage of higher-end MCUs.
  • The study provides the first comprehensive evaluation of MI-BCI inference on these MCUs, combining accuracy, latency, and energy measurements in a real embedded deployment.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.