Florian Meissl, F. Eibensteiner, P. Petz, J. Langer
{"title":"Online Handwriting Recognition using LSTM on Microcontroller and IMU Sensors","authors":"Florian Meissl, F. Eibensteiner, P. Petz, J. Langer","doi":"10.1109/ICMLA55696.2022.00167","DOIUrl":null,"url":null,"abstract":"The trend toward the Internet of Things has led to a rapid increase in the amount of data that needs to be processed. Artificial intelligence (AI) can serve as a very helpful tool to extract or compress essential information of data. However, AI places high demands on a system’s hardware. This is not exactly in line with the strengths of embedded systems.This paper combines AI on embedded systems with the not-yet fully explored subject of online handwriting recognition (HWR). The main contribution is the deployment and real-time operation of AI on a microcontroller (MCU). Model architectures using long short-term memory (LSTM) cells and 1D convolutional neural networks (CNNs) are used to process live data from inertial measurement units (IMUs) sensors. The dataset used for training the AI models was recorded with a self-developed prototype. After training, the models are converted and deployed on a MCU. The conversion process includes quantization from a 32-bit floating-point to an 8-bit fixed-point datatype. The TensorFlow Lite Micro (TFLM) framework is used to run inference on the MCU. For predictions in real-time optimizations are applied to the framework, which results in running inference approx. 827 times faster. The optimized AI model implementation is then used to classify handwritten characters using the live data from the IMU sensors. This first approach has shown, that the separation of the symbols is necessary to be able to classify characters from live sensor data with high accuracy.","PeriodicalId":128160,"journal":{"name":"2022 21st IEEE International Conference on Machine Learning and Applications (ICMLA)","volume":"20 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2022-12-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"2022 21st IEEE International Conference on Machine Learning and Applications (ICMLA)","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1109/ICMLA55696.2022.00167","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0
Abstract
The trend toward the Internet of Things has led to a rapid increase in the amount of data that needs to be processed. Artificial intelligence (AI) can serve as a very helpful tool to extract or compress essential information of data. However, AI places high demands on a system’s hardware. This is not exactly in line with the strengths of embedded systems.This paper combines AI on embedded systems with the not-yet fully explored subject of online handwriting recognition (HWR). The main contribution is the deployment and real-time operation of AI on a microcontroller (MCU). Model architectures using long short-term memory (LSTM) cells and 1D convolutional neural networks (CNNs) are used to process live data from inertial measurement units (IMUs) sensors. The dataset used for training the AI models was recorded with a self-developed prototype. After training, the models are converted and deployed on a MCU. The conversion process includes quantization from a 32-bit floating-point to an 8-bit fixed-point datatype. The TensorFlow Lite Micro (TFLM) framework is used to run inference on the MCU. For predictions in real-time optimizations are applied to the framework, which results in running inference approx. 827 times faster. The optimized AI model implementation is then used to classify handwritten characters using the live data from the IMU sensors. This first approach has shown, that the separation of the symbols is necessary to be able to classify characters from live sensor data with high accuracy.
物联网的趋势导致需要处理的数据量迅速增加。人工智能(AI)可以作为一种非常有用的工具来提取或压缩数据中的重要信息。然而,人工智能对系统的硬件要求很高。这并不完全符合嵌入式系统的优势。本文将嵌入式系统上的人工智能与尚未完全探索的在线手写识别(HWR)相结合。主要贡献是在微控制器(MCU)上部署和实时操作人工智能。使用长短期记忆(LSTM)单元和一维卷积神经网络(cnn)的模型架构来处理来自惯性测量单元(imu)传感器的实时数据。用于训练人工智能模型的数据集是用自主开发的原型记录的。经过训练后,将模型转换并部署在单片机上。转换过程包括从32位浮点到8位定点数据类型的量化。使用TensorFlow Lite Micro (TFLM)框架在MCU上运行推理。对于预测中的实时优化应用于框架,这导致运行推理近似。快了827倍。然后使用优化的AI模型实现使用来自IMU传感器的实时数据对手写字符进行分类。第一种方法表明,符号的分离对于能够从实时传感器数据中对字符进行高精度分类是必要的。