Research Article

Controlled Comparison of MFCC, MFE, and Spectrogram Front-Ends for Microcontroller Keyword Spotting

Mingxuan Liu*
The Hong Kong University of Science and Technology (Guangzhou)

* Corresponding author: [email protected]

Abstract

On a microcontroller, the acoustic front-end of a keyword spotting system is fixed early in design, and its contribution is seldom isolated. Using Google Speech Commands and the Edge Impulse platform, this paper compares mel-frequency cepstral coefficients (MFCC), mel-filterbank energy (MFE), and the linear spectrogram under one classifier and protocol, with three seeds and a dimension-matched control arm. MFE reaches 92.81% accuracy against 89.78% for MFCC-13 and 88.07% for Spectrogram, and MFE leads on unknown-class rejection. Int8 quantization moves any mean by at most 0.13 percentage points. The control arm shows the cause is the representation, not the input dimension: MFE gains 3.03 percentage points over MFCC-32 at the same input shape, whereas raising MFCC from 13 to 32 changes nothing the seeds can resolve. MFCC-13 is the fastest at an estimated 303 ms, because classifier latency follows the input dimension, whereas digital signal processing (DSP) latency depends on the front-end type. This paper therefore does not identify a single optimal front-end, but quantifies the trade-off among accuracy, unknown-class rejection, and estimated deployment cost, providing a basis for front-end selection.

Keywords: keyword spotting; microcontroller; MFCC; mel-filterbank energy; spectrogram
Published: December 1, 2026
DOI: 10.54254/2755-2721/2026.39662
Volume: ACE Vol.291
pp. 108-115
Download PDF

References

  1. Zhang, Y., Suda, N., Lai, L., & Chandra, V. (2017). Hello edge: Keyword spotting on microcontrollers. arXiv preprint arXiv:1711.07128.
  2. López-Espejo, I., Tan, Z. H., Hansen, J. H., & Jensen, J. (2022). Deep spoken keyword spotting: An overview.IEEE Access, 10, 4169–4199.
  3. Medur, P., Lubbers, M., & Mauša, G. (2026). Resource-constrained keyword spotting with quantized CNNs: Implementation strategies and performance trade-offs.International Journal of Intelligent Systems, 2026(1), 2317323.
  4. González, M., Gutiérrez, S., Espinosa, R., & Ponce, H. (2025). Deploying real-time speech recognition on ESP32 using TinyML and Edge Impulse.Mexican Congress on Artificial Intelligence, 211–230. Springer Nature Switzerland.
  5. Malche, T., Budhani, S., Soni, P. K., & Upadhyay, G. M. (2025). Voice-activated home automation system for IoT edge devices using TinyML.Discover Internet of Things, 5(1), 68.
  6. Chen, Q., Chang, Y., Kim, K., Gao, C., & Liu, S. C. (2023). An area-efficient ultra-low-power time-domain feature extractor for edge keyword spotting.2023 IEEE International Symposium on Circuits and Systems (ISCAS), 1–5. IEEE.
  7. Yoon, J., Kim, N., Lee, D., Lee, S. J., Kwak, G. H., & Kim, T. H. (2023). A resource-efficient keyword spotting system based on a one-dimensional binary convolutional neural network.Electronics, 12(18), 3964.
  8. Abdul, Z. K., & Al-Talabani, A. K. (2022). Mel frequency cepstral coefficient and its applications: A review.IEEE Access, 10, 122136–122158.
  9. Cheng, Z., Zhang, X. Y., & Liu, C. L. (2024). Unified classification and rejection: A one-versus-all framework.Machine Intelligence Research, 21(5), 870–887.
  10. Edge Impulse. (2026). Edge Impulse documentation. Retrieved October 29, 2026, from https://docs.edgeimpulse.com/
  11. Warden, P. (2018). Speech commands: A dataset for limited-vocabulary speech recognition. arXiv preprint arXiv:1804.03209.
  12. Tang, R., & Lin, J. (2018). Deep residual learning for small-footprint keyword spotting.2018 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), 5484–5488. IEEE.
  13. Zhang, Z., Guan, Y., & Ye, W. (2026). An ultra-low-power keyword-spotting processor with trainable MFCC-CNN framework and multiplication-efficient acceleration.Circuits, Systems, and Signal Processing, 45(7), 5938–5961.