Sub-mW Keyword Spotting on an MCU: Analog Binary Feature Extraction and Binary Neural Networks

Gianmarco Cerutti, Lukas Cavigelli, Renzo Andri, Michele Magno, Elisabetta Farella, Luca Benini · DOI

Abstract

Always-on keyword spotting (KWS) is a critical feature for battery-powered IoT devices, yet traditional digital-first processing pipelines consume significant power. This paper presents a hardware-software co-design that achieves sub-milliwatt KWS by shifting feature extraction to the analog domain. By utilizing an Analog Front-End (AFE) to generate binary features and a Binary Neural Network (BNN) for classification on a RISC-V microcontroller, the system achieves a 71x reduction in energy consumption compared to digital baselines with minimal accuracy loss.

Introduction

The demand for "always-on" voice interfaces in mobile and wearable devices is constrained by strict power budgets. Conventional KWS systems rely on an Analog-to-Digital Converter (ADC) followed by digital signal processing (DSP) to extract Mel-frequency cepstral coefficients (MFCCs). As neural network inference becomes more efficient, the energy cost of data acquisition and preprocessing has become a "bottleneck shift," often accounting for up to 85% of the total power budget. To reach true sub-milliwatt operation, a fundamental rethink of the signal processing pipeline is required.

Methods: Analog-to-Binary Pipeline

The proposed architecture replaces the power-hungry ADC and digital FFT stages with a specialized Analog Front-End (AFE).

System architecture and Analog Front-End (AFE) circuit design.

Analog Binary Feature Extraction

The AFE consists of a bank of analog filters based on General Impedance Converters (GICs), followed by active envelope detectors and comparators. This circuit directly transforms the continuous microphone signal into a set of binary (1-bit) signals. Each bit represents the presence or absence of significant energy within a specific frequency band. This approach reduces preprocessing energy by 29x by eliminating high-resolution sampling and complex digital transforms.

Binary Neural Networks (BNNs)

The binary features are fed into a BNN where both weights and activations are constrained to 1-bit values (+1 or -1). This constraint allows the system to replace expensive floating-point multiplications with efficient bitwise XNOR and popcount operations. The system was implemented on the GAP8, a multi-core RISC-V microcontroller featuring specialized bit-manipulation instructions that accelerate BNN inference.

Comparison between a standard spectrogram and the resulting binary feature map.

Experimental Results

The system was evaluated using the Google Speech Commands V2 dataset, focusing on 10-class and 12-class keyword recognition tasks.

  • Energy Efficiency: The system achieved a 71x reduction in overall energy compared to standard digital baselines. The total energy for an 8-channel AFE configuration was measured at 0.56 mJ per classification.
  • Accuracy: On the 10-class task, the system reached 88.8% accuracy. While this is slightly lower than the ~94% achieved by full-precision digital models, it represents a 1% improvement over state-of-the-art EGRU models while being 4.3x more energy-efficient.
  • Scalability: By adjusting the number of analog filter channels (from 8 to 64), the authors demonstrated a Pareto front where accuracy can be traded for energy consumption depending on the application requirements.

Discussion and Conclusion

The core insight of this work is the "Good Enough" principle: high-fidelity audio is not a prerequisite for effective keyword recognition. A binary spectrogram retains sufficient structural information for a BNN to distinguish keywords. Furthermore, the AFE's binary output enables an event-based paradigm, allowing the MCU to remain in deep sleep until sound activity is detected.

While binarization introduces an accuracy ceiling and challenges in classifying "unknown" sounds, the dramatic power savings enable new classes of battery-persistent devices. Future work may involve integrating this system as a low-power "first-stage" trigger for more complex, high-precision models, or developing a fully custom ASIC implementation to further reduce power draw to the microwatt level.

Summary updated

BibTeX
@article{cerutti2022sub,
  author = {Gianmarco Cerutti and Lukas Cavigelli and Renzo Andri and Michele Magno and Elisabetta Farella and Luca Benini},
  title = {{Sub-mW Keyword Spotting on an MCU: Analog Binary Feature Extraction and Binary Neural Networks}},
  journal = {IEEE Trans. Circuits Syst. I Regul. Pap.},
  year = {2022},
  doi = {10.1109/tcsi.2022.3142525},
}
Figure