Submitted:
06 July 2026
Posted:
07 July 2026
You are already at the latest version
Abstract
Keywords:
1. Introduction
- We design three original, compact architectures—belonging to the CNN, CRNN, and DS-CNN families—tailored to Polish-language KWS on microcontrollers, and we benchmark them against BC-ResNet [6], a state-of-the-art reference architecture for small-footprint KWS.
- We provide a systematic evaluation of small-footprint KWS for the Polish language, which remains under-represented in the KWS literature dominated by English-language benchmarks. All models are trained and evaluated on a dataset of 25 Polish keywords.
- We study the effect of post-training 8-bit integer (INT8) quantization, a crucial step for TinyML deployments [1,7], on accuracy, model size, and inference latency. Notably, we show that the accuracy ranking of the evaluated architectures inverts after quantization, and that the most parameter-efficient architecture does not necessarily yield the fastest or most robust quantized model.
- We deploy and benchmark the complete system on custom-designed hardware: a dedicated printed circuit board (PCB) integrating the Raspberry Pi Pico 2 board with the RP2350 microcontroller and an analog audio front-end based on an electret microphone, on which all inference latencies are measured.
2. Related Works
3. Preliminaries
3.1. Keyword Spotting Problem
3.2. Feature Extraction
3.3. TinyML and Model Quantization
3.4. Inference Frameworks
4. Implementation
4.1. Neural Network Architectures
5. Results
5.1. Hardware Architecture
5.2. Testing on the Database
5.3. Confusion Matrix
6. Discussion
7. Conclusions
Author Contributions
Funding
Data Availability Statement
Conflicts of Interest
Abbreviations
| BC-ResNet | Broadcasted Residual Network |
| CMSIS | Cortex Microcontroller Software Interface Standard |
| CNN | Convolutional Neural Network |
| CRNN | Convolutional Recurrent Neural Network |
| DCT | Discrete Cosine Transform |
| DNN | Deep Neural Network |
| DS-CNN | Depthwise Separable Convolutional Neural Network |
| DSP | Digital Signal Processing |
| FFT | Fast Fourier Transform |
| FPU | Floating-Point Unit |
| GMM | Gaussian Mixture Model |
| GRU | Gated Recurrent Unit |
| HMM | Hidden Markov Model |
| INT8 | 8-bit Integer (precision) |
| IoT | Internet of Things |
| KWS | Keyword Spotting |
| MFCC | Mel-Frequency Cepstral Coefficients |
| PCB | Printed Circuit Board |
| QAT | Quantization-Aware Training |
| RMS | Root Mean Square |
| SGD | Stochastic Gradient Descent |
| SNR | Signal-to-Noise Ratio |
| SoC | System-on-Chip |
| SRAM | Static Random-Access Memory |
| TFLM | TensorFlow Lite for Microcontrollers |
| TinyML | Tiny Machine Learning |
Appendix A. Confusion Matrices for the CNN, CRNN, and DS-CNN Models



References
- Garai, S.; Samui, S. Advances in Small-Footprint Keyword Spotting: A Comprehensive Review of Efficient Models and Algorithms. arXiv 2025, arXiv:eess. [Google Scholar]
- Rabiner, L. A tutorial on hidden Markov models and selected applications in speech recognition. Proc. IEEE 1989, 77, 257–286. [Google Scholar] [CrossRef] [PubMed]
- Zhang, Y.; Suda, N.; Lai, L.; Chandra, V. Hello Edge: Keyword Spotting on Microcontrollers. In arXiv; Arm, San Jose, CA: Stanford, CA; Stanford University, 2018. [Google Scholar]
- Warden, P. Speech Commands: A Dataset for Limited-Vocabulary Speech Recognition. arXiv 2018, arXiv:cs. [Google Scholar]
- Jassem, W. Polish. J. Int. Phon. Assoc. 2003, 33, 103–107. [Google Scholar] [CrossRef]
- Kim, B.; Chang, S.; Lee, J.; Sung, D. Broadcasted Residual Learning for Efficient Keyword Spotting. arXiv 2023, arXiv:cs. [Google Scholar]
- Jacob, B.; Kligys, S.; Chen, B.; Zhu, M.; Tang, M.; Howard, A.; Adam, H.; Kalenichenko, D. Quantization and Training of Neural Networks for Efficient Integer-Arithmetic-Only Inference. arXiv 2017, arXiv:cs. [Google Scholar]
- Chen, G.; Parada, C.; Heigold, G. Small-footprint keyword spotting using deep neural networks. In Proceedings of the 2014 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), 2014; pp. 4087–4091. [Google Scholar] [CrossRef]
- Sainath, T.N.; Parada, C. Convolutional neural networks for small-footprint keyword spotting. Proc. Interspeech 2015, 2015, 1478–1482. [Google Scholar] [CrossRef]
- Arik, S.O.; Kliegl, M.; Child, R.; Hestness, J.; Gibiansky, A.; Fougner, C.; Prenger, R.; Coates, A. Convolutional recurrent neural networks for small-footprint keyword spotting. arXiv 2017, arXiv:1703.05390. [Google Scholar]
- Howard, A.G.; Zhu, M.; Chen, B.; Kalenichenko, D.; Wang, W.; Weyand, T.; Andreetto, M.; Adam, H. MobileNets: Efficient Convolutional Neural Networks for Mobile Vision Applications. arXiv 2017, arXiv:cs. [Google Scholar]
- Mazumder, M.; Chitlangia, S.; Banbury, C.; Kang, Y.; Ciro, J.M.; Achorn, K.; Galvez, D.; Sabini, M.; Mattson, P.; Kanter, D.; et al. Multilingual Spoken Words Corpus. In Proceedings of the Proceedings of the NeurIPS Track on Datasets and Benchmarks, 2021. [Google Scholar]
- Mazumder, M.; Banbury, C.; Meyer, J.; Warden, P.; Reddi, V.J. Few-Shot Keyword Spotting in Any Language. Proc. Proc. Interspeech 2021, 2021, 4214–4218. [Google Scholar] [CrossRef]
- Muratov, A. multilingual-speech-commands-15lang-zip [Dataset]. 2025. Available online: https://huggingface.co/datasets/artur-muratov/multilingual-speech-commands-15lang-zip (accessed on 10 marzec 2026).
- Abdulsatar, A.A.; Davydov, V.V.; Yushkova, V.V.; Glinushkin, A.P.; Rud, V.Y. Age and gender recognition from speech signals. J. Phys. Conf. Ser. 2019, 1410, 012073. [Google Scholar] [CrossRef]
- Davis, S.; Mermelstein, P. Comparison of parametric representations for monosyllabic word recognition in continuously spoken sentences. IEEE Trans. Acoust. Speech Signal Process. 1980, 28, 357–366. [Google Scholar] [CrossRef]
- Ray, P.P. A review on TinyML: State-of-the-art and prospects. J. King Saud. Univ.-Comput. Inf. Sci. 2022, 34, 1595–1623. [Google Scholar] [CrossRef]
- Developers, TensorFlow. TensorFlow Lite for Microcontrollers, 2026. Dostęp. 2026.
- Lai, L.; Suda, N.; Chandra, V. CMSIS-NN: Efficient Neural Network Kernels for Arm Cortex-M CPUs, 2018. arXiv arXiv:cs.
- David, R.; Duke, J.; Jain, A.; Reddi, V.J.; Jeffries, N.; Li, J.; Kreeger, N.; Nappier, I.; Natraj, M.; Regev, S.; et al. TensorFlow Lite Micro: Embedded Machine Learning on TinyML Systems. arXiv 2021, arXiv:cs. [Google Scholar]
- Raspberry Pi Ltd. Raspberry Pi Pico 2 Datasheet An RP2350-based microcontroller board; Raspberry Pi Ltd, 2024. [Google Scholar]
- Arm Limited. CMSIS-DSP Documentation Version CMSIS 6; Accessed; Arm Limited, 2026; (accessed on 2026-01-29). [Google Scholar]
- Caldwell, J. Single-Supply, Electret Microphone Pre-Amplifier Reference Design. In TI Designs - Precision: Verified Design TIDU765; Texas Instruments, 2015. [Google Scholar]








| Model Architecture | Number of Parameters |
|---|---|
| BC-ResNet | 13 450 |
| DS-CNN | 25 177 |
| CRNN | 33 433 |
| CNN | 75 982 |
| Word (in English) | Word (in Polish) | Count |
|---|---|---|
| backward | wstecz | 918 |
| bed | łóżko | 4908 |
| bird | ptak | 1224 |
| cat | kot | 4362 |
| dog | pies | 5152 |
| eight | osiem | 4884 |
| five | pięć | 5164 |
| four | cztery | 5086 |
| go | iść | 5130 |
| happy | szczęśliwy | 4902 |
| house | dom | 5004 |
| left | po lewej | 1020 |
| nine | dziewięć | 4896 |
| no | nie | 31 086 |
| off | wyłączono | 3236 |
| one | jeden | 5612 |
| read | czytać | 4882 |
| seven | siedem | 4986 |
| six | sześć | 5008 |
| three | trzy | 5266 |
| tree | drzewo | 4380 |
| two | dwa | 5320 |
| write | pisać | 4816 |
| yes | tak | 8480 |
| zero | zero | 5124 |
| Model | Accuracy (%) | F1-Score | Size (KB) | Inference time (ms) |
|---|---|---|---|---|
| BC-ResNet | 97.81 | 0.9780 | 104.98 | 579.1 |
| DS-CNN | 97.06 | 0.9707 | 98.85 | 1693.7 |
| CRNN | 96.19 | 0.9620 | 218.79 | 347.9 |
| CNN | 88.68 | 0.8869 | 300.64 | 357.7 |
| Model | Accuracy (%) | F1-Score | Size (KB) | Inference time (ms) |
|---|---|---|---|---|
| BC-ResNet | 92.73 | 0.9258 | 101.97 | 501.9 |
| DS-CNN | 93.13 | 0.9331 | 46.15 | 311.3 |
| CRNN | 94.28 | 0.9431 | 182.62 | 150.3 |
| CNN | 85.32 | 0.8542 | 79.44 | 107.5 |
| Word | Word (eng.) | RMS (dBFS) | SNR (dB) | Roll-off (Hz) |
|---|---|---|---|---|
| jeden | one | 1875 | ||
| dwa | two | 1109 | ||
| cztery | four | 1516 | ||
| pięć | five | 1898 | ||
| osiem | eight | 1586 | ||
| dziewięć | nine | 1719 | ||
| łóżko | bed | 742 | ||
| Mean ± SD |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (http://creativecommons.org/licenses/by/4.0/).