journal article·2021-11-22Open access

Hardware/Software Co-Design for TinyML Voice-Recognition Application on Resource Frugal Edge Devices

Jisu Kwon, Daejin Park

Applied Sciences· Volume 11· Issue 22

Abstract

On-device artificial intelligence has attracted attention globally, and attempts to combine the internet of things and TinyML (machine learning) applications are increasing. Although most edge devices have limited resources, time and energy costs are important when running TinyML applications. In this paper, we propose a structure in which the part that preprocesses externally input data in the TinyML application is distributed to the hardware. These processes are performed using software in the microcontroller unit of an edge device. Furthermore, resistor–transistor logic, which perform not only windowing using the Hann function, but also acquire audio raw data, is added to the inter-integrated circuit sound module that collects audio data in the voice-recognition application. As a result of the experiment, the windowing function was excluded from the TinyML application of the embedded board. When the length of the hardware-implemented Hann window is 80 and the quantization degree is 2−5, the exclusion causes a decrease in the execution time of the front-end function and energy consumption by 8.06% and 3.27%, respectively.
Source: crossref · Quality: baseline

Research context

OpenAlex topics: IoT and Edge/Fog Computing · Context-Aware Activity Recognition Systems · Smart Grid Energy Management

SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.

Affiliations

School of Electronic and Electrical Engineering, Kyungpook National University, Daegu 41566, Korea

School of Electronics Engineering, Kyungpook National University, Daegu 41566, Korea

Funding

BK21 FOUR project funded by the Ministry of Education · Basic Science Research Program through the National Research Foundation of Korea (NRF) · Institute of Information \& communication Technology Planning \& Evaluation (IITP)

References (37)

Show source-provided references
1. De Prado, M., Donze, R., Capotondi, A., Rusci, M., Monnerat, S., and Pazos, N. (2020). Robust navigation with tinyML for autonomous mini-vehicles. arXiv.
2. Kukreja, N., Shilova, A., Beaumont, O., Huckelheim, J., Ferrier, N., Hovland, P., and Gorman, G. (2019, January 20–24). Training on the Edge: The why and the how. Proceedings of the 2019 IEEE International Parallel and Distributed Processing Symposium Workshops (IPDPSW), Rio de Janeiro, Brazil.10.1109/IPDPSW.2019.00148 ↗
3. Kolcun, R., Popescu, D.A., Safronov, V., Yadav, P., Mandalari, A.M., Xie, Y., Mortier, R., and Haddadi, H. (2020). The case for retraining of ML models for IoT device identification at the edge. arXiv.
4. Disabato, S., and Roveri, M. (2020, January 16). Incremental on-device tiny machine learning. Proceedings of the 2nd International Workshop on Challenges in Artificial Intelligence and Machine Learning for Internet of Things, Online.10.1145/3417313.3429378 ↗
5. DaDianNao: A Neural Network Supercomputer10.1109/TC.2016.2574353 ↗
6. Sandler, M., Howard, A., Zhu, M., Zhmoginov, A., and Chen, L.C. (2019). MobileNetV2: Inverted Residuals and Linear Bottlenecks. arXiv.10.1109/CVPR.2018.00474 ↗
7. TinyML-Enabled Frugal Smart Objects: Challenges and Opportunities10.1109/MCAS.2020.3005467 ↗
8. Ren, H., Anicic, D., and Runkler, T.A. (2021, January 18–22). TinyOL: TinyML with Online-Learning on Microcontrollers. Proceedings of the 2021 International Joint Conference on Neural Networks (IJCNN), Shenzhen, China.10.1109/IJCNN52387.2021.9533927 ↗
9. Reddi, V.J., Plancher, B., Kennedy, S., Moroney, L., Warden, P., Agarwal, A., Banbury, C., Banzi, M., Bennett, M., and Brown, B. (2021). Widening Access to Applied Machine Learning with TinyML. arXiv.
10. Banbury, C., Zhou, C., Fedorov, I., Matas, R., Thakker, U., Gope, D., Janapa Reddi, V., Mattina, M., and Whatmough, P. (2021). Micronets: Neural network architectures for deploying tinyml applications on commodity microcontrollers. arXiv.
11. Dutta, L., and Bharali, S. (2021). TinyML Meets IoT: A Comprehensive Survey. Internet Things, 16.10.1016/j.iot.2021.100461 ↗
12. David, R., Duke, J., Jain, A., Janapa Reddi, V., Jeffries, N., Li, J., Kreeger, N., Nappier, I., Natraj, M., and Wang, T. (2020). TensorFlow Lite Micro: Embedded Machine Learning for TinyML Systems. arXiv.
13. Soro, S. (2021). TinyML for Ubiquitous Edge AI. arXiv.
14. Deng, Y. (2019). Deep learning on mobile devices: A review. Mobile Multimedia/Image Processing, Security, and Applications 2019, International Society for Optics and Photonics.10.1117/12.2518469 ↗
15. Deep Learning on Mobile and Embedded Devices: State-of-the-Art, Challenges, and Future Directions
16. Zeroual, A., Derdour, M., Amroune, M., and Bentahar, A. (2019, January 26–27). Using a Fine-Tuning Method for a Deep Authentication in Mobile Cloud Computing Based on Tensorflow Lite Framework. Proceedings of the 2019 International Conference on Networking and Advanced Systems (ICNAS), Annaba, Algeria.10.1109/ICNAS.2019.8807440 ↗
17. Ahmed, S., and Bons, M. (2020). Edge Computed NILM: A Phone-Based Implementation Using MobileNet Compressed by Tensorflow Lite, NILM’20; Association for Computing Machinery.10.1145/3427771.3427852 ↗
18. Lee, J., Chirkov, N., Ignasheva, E., Pisarchyk, Y., Shieh, M., Riccardi, F., Sarokin, R., Kulik, A., and Grundmann, M. (2019). On-Device Neural Net Inference with Mobile GPUs. arXiv.
19. Lacey, G., Taylor, G.W., and Areibi, S. (2016). Deep Learning on FPGAs: Past, Present, and Future. arXiv.
20. Mouselinos, S., Leon, V., Xydis, S., Soudris, D., and Pekmestzi, K. (2019, January 13–15). TF2FPGA: A Framework for Projecting and Accelerating Tensorflow CNNs on FPGA Platforms. Proceedings of the 2019 8th International Conference on Modern Circuits and Systems Technologies (MOCAST), Thessaloniki, Greece.10.1109/MOCAST.2019.8741940 ↗
21. Lee, D., Moon, H., Oh, S., and Park, D. (2020). mIoT: Metamorphic IoT Platform for On-Demand Hardware Replacement in Large-Scale IoT Applications (SCI). Sensors, 20.10.3390/s20123337 ↗
22. Kwon, J., and Park, D. (2021, January 20–21). Toward Data-Adaptable TinyML using Model Partial Replacement for Resource Frugal Edge Device. Proceedings of the International Conference on High Performance Computing in Asia-Pacific Region, Online.10.1145/3432261.3439865 ↗
23. Low-Power Fast Partial Firmware Update Technique of On-Chip Flash Memory for Reliable Embedded IoT Microcontroller (SCI)10.1587/transele.2020LHP0001 ↗
24. Moon, H., and Park, D. (2021). Efficient On-Demand Hardware Replacement Platform toward Metamorphic Functional Processing in Edge-Centric IoT Applications (SCI). Electronics, 10.10.3390/electronics10172088 ↗
25. Low-Power Metamorphic MCU using Partial Firmware Update Method for Irregular Target Systems Control (KCI)
26. Fedorov, I., Adams, R.P., Mattina, M., and Whatmough, P.N. (2019). SpArSe: Sparse Architecture Search for CNNs on Resource-Constrained Microcontrollers. arXiv.
27. Lawrence, T., and Zhang, L. (2019). IoTNet: An Efficient and Accurate Convolutional Neural Network for IoT Devices. Sensors, 19.10.3390/s19245541 ↗
28. Liberis, E., and Lane, N.D. (2020). Neural networks on microcontrollers: Saving memory at inference via operator reordering. arXiv.
29. Lin, J., Chen, W.M., Lin, Y., Cohn, J., Gan, C., and Han, S. (2020). MCUNet: Tiny Deep Learning on IoT Devices. arXiv.10.1109/IPCCC50635.2020.9391558 ↗
30. Rusci, M., Capotondi, A., and Benini, L. (2019). Memory-Driven Mixed Low Precision Quantization For Enabling Deep Network Inference On Microcontrollers. arXiv.
31. Mao, W., Xiao, Z., Xu, P., Ren, H., Liu, D., Zhao, S., An, F., and Yu, H. (2020, January 7–9). Energy-efficient machine learning accelerator for binary neural networks. Proceedings of the 2020 on Great Lakes Symposium on VLSI, Online.10.1145/3386263.3407582 ↗
32. (2020, June 01). TensorFlow Lite. Available online: https://www.tensorflow.org/lite.
33. Essenwanger, O.M. (1986). Elements of Statistical Analysis, Elseview.
34. Digilent (2021, April 01). Zybo-Z7. Available online: https://reference.digilentinc.com/programmable-logic/zybo-z7/start.
35. (2020, June 01). TensorFlow Source Code. Available online: https://github.com/tensorflow/tensorflow.
36. Warden, P., and Situnayake, D. (2019). Tinyml: Machine Learning with Tensorflow Lite on Arduino and Ultra-Low-Power Microcontrollers, O’Reilly Media.
37. Warden, P. (2018). Speech Commands: A Dataset for Limited-Vocabulary Speech Recognition. arXiv.