Online Handwriting Recognition using LSTM on Microcontroller and IMU Sensors
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...
Saved in:
Published in | 2022 21st IEEE International Conference on Machine Learning and Applications (ICMLA) pp. 999 - 1004 |
---|---|
Main Authors | , , , |
Format | Conference Proceeding |
Language | English |
Published |
IEEE
01.12.2022
|
Subjects | |
Online Access | Get full text |
DOI | 10.1109/ICMLA55696.2022.00167 |
Cover
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. |
---|---|
AbstractList | 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. |
Author | Langer, Josef Meisl, Florian Eibensteiner, Florian Petz, Phillip |
Author_xml | – sequence: 1 givenname: Florian surname: Meisl fullname: Meisl, Florian email: florian.meissl@fh-hagenberg.at organization: University of Applied Science Upper Austria,Research & Development Embedded Systems Lab,Hagenberg,Austria – sequence: 2 givenname: Florian surname: Eibensteiner fullname: Eibensteiner, Florian email: florian.eibensteiner@fh-hagenberg.at organization: University of Applied Science Upper Austria,Research & Development Embedded Systems Lab,Hagenberg,Austria – sequence: 3 givenname: Phillip surname: Petz fullname: Petz, Phillip email: phillip.petz@fh-hagenberg.at organization: University of Applied Science Upper Austria,Research & Development Embedded Systems Lab,Hagenberg,Austria – sequence: 4 givenname: Josef surname: Langer fullname: Langer, Josef email: josef.langer@fh-hagenberg.at organization: University of Applied Science Upper Austria,Research & Development Embedded Systems Lab,Hagenberg,Austria |
BookMark | eNotjN9KwzAYxSPohZu-gUJeoDV_mm_J5SjqCi0Dt12PJv0yAjWRtCK-vRW9Ouf8DuesyHVMEQl55KzknJmnpu7arVJgoBRMiJIxDpsrsuIAqgKhpbwl7T6OISLd9XH4ymEO8ULf0KVLXHyK9HP6Je3h2NEldcHl5FKccxpHzHQZ0aY70QPGKeXpjtz4fpzw_l_X5PTyfKx3Rbt_beptWwTBqrnYoFFeCCt7q2wPCN4O1ivtvBus8wq00LZyWi8tVhw9cKONBrBSWl4Nck0e_n4DIp4_cnjv8_eZMwaGGy5_AK38TEQ |
CODEN | IEEPAD |
ContentType | Conference Proceeding |
DBID | 6IE 6IL CBEJK RIE RIL |
DOI | 10.1109/ICMLA55696.2022.00167 |
DatabaseName | IEEE Electronic Library (IEL) Conference Proceedings IEEE Xplore POP ALL IEEE Xplore All Conference Proceedings IEEE/IET Electronic Library IEEE Proceedings Order Plans (POP All) 1998-Present |
DatabaseTitleList | |
Database_xml | – sequence: 1 dbid: RIE name: IEEE/IET Electronic Library (IEL) (UW System Shared) url: https://proxy.k.utb.cz/login?url=https://ieeexplore.ieee.org/ sourceTypes: Publisher |
DeliveryMethod | fulltext_linktorsrc |
EISBN | 1665462833 9781665462839 |
EndPage | 1004 |
ExternalDocumentID | 10069191 |
Genre | orig-research |
GroupedDBID | 6IE 6IL CBEJK RIE RIL |
ID | FETCH-LOGICAL-i204t-7e95f22b3ab5ba6e6fbdbf58cfcdbcf56828b4c885bae41ef61989866b33b14d3 |
IEDL.DBID | RIE |
IngestDate | Thu Jan 18 11:14:48 EST 2024 |
IsPeerReviewed | false |
IsScholarly | false |
Language | English |
LinkModel | DirectLink |
MergedId | FETCHMERGED-LOGICAL-i204t-7e95f22b3ab5ba6e6fbdbf58cfcdbcf56828b4c885bae41ef61989866b33b14d3 |
PageCount | 6 |
ParticipantIDs | ieee_primary_10069191 |
PublicationCentury | 2000 |
PublicationDate | 2022-Dec. |
PublicationDateYYYYMMDD | 2022-12-01 |
PublicationDate_xml | – month: 12 year: 2022 text: 2022-Dec. |
PublicationDecade | 2020 |
PublicationTitle | 2022 21st IEEE International Conference on Machine Learning and Applications (ICMLA) |
PublicationTitleAbbrev | ICMLA |
PublicationYear | 2022 |
Publisher | IEEE |
Publisher_xml | – name: IEEE |
Score | 1.8270005 |
Snippet | 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... |
SourceID | ieee |
SourceType | Publisher |
StartPage | 999 |
SubjectTerms | Edge Computing Handwriting recognition IMU Sensor LSTM Machine Learning Microcontroller Microcontrollers Online Handwriting Recognition Prototypes Quantization (signal) Real-time systems Symbols Training |
Title | Online Handwriting Recognition using LSTM on Microcontroller and IMU Sensors |
URI | https://ieeexplore.ieee.org/document/10069191 |
hasFullText | 1 |
inHoldings | 1 |
isFullTextHit | |
isPrint | |
link | http://utb.summon.serialssolutions.com/2.0.0/link/0/eLvHCXMwjZ3bS8MwFMaD7sknFSfeyYOvnUuanCaPMhybrEPcBnsbzW2I0krtEPzrTdpOURB864XQktNwOOnv-w5C1zz0Is-UiRjXvkBx1ETC58Uos1QmRjD_2YStgXQKowW7X_JlK1avtTDW2ho-s71wWP_LN4XehK0yv8L7IEnQqu8miWzEWq0qh_TlzXiQTm45BxnQAxqMOAn87JpSJ43hPppuH9ewIs-9TaV6-uOXE-O_3-cAdb_1efjhK_Mcoh2bH6FJ4xqKR1lu3oNVUb7Gj1s8qMhxINzXeDKbp9ifpQHEazn1F1tiPwiP0wWe-bK2KN-6aDG8mw9GUdsrIXqifVZFiZXcUariTHGVgQWnjHJcaKeN0o6Dr6wU00L4u5YR6yDAUgJAxbEizMTHqJMXuT1BmCaQmBgE0b5UU5r7sFkFzgggWkjITlE3TMXqtbHDWG1n4eyP6-doL4SjYUAuUKcqN_bSZ_JKXdUR_ARKKp_k |
linkProvider | IEEE |
linkToHtml | http://utb.summon.serialssolutions.com/2.0.0/link/0/eLvHCXMwjV1dS8MwFA2iD_qk4sRv8-Br55Imt-mjDEen7RC3wd5G8zVEaWV2CP56k7ZTFATfkpSQkttwOek55yJ0xX0t8lzqgHHlAIqlOhAuLwa5oXGkBXOfjb8ayEaQTNndjM9asXqthTHG1OQz0_XN-l--LtXKX5W5E96DmHit-hZ3sCJq5FqtLof04uthP0tvOIfYkw-ot-Ik8LNuSp02BrtotF6wYYs8d1eV7KqPX16M_36jPdT5Vujhh6_cs482THGA0sY3FCd5od-9WVGxwI9rglBZYM9xX-B0PMmw62Weitcy1V_MErtJeJhN8dgB23L51kHTwe2knwRttYTgifZYFUQm5pZSGeaSyxwMWKml5UJZpaWyHBy2kkwJ4Z4aRowFT5cSADIMJWE6PESbRVmYI4RpBJEOQRDlwJpU3AXOSLBaAFEihvwYdfxWzF8bQ4z5ehdO_hi_RNvJJEvn6XB0f4p2fGgaRsgZ2qyWK3Pu8nolL-pofgLf0KM1 |
openUrl | ctx_ver=Z39.88-2004&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rfr_id=info%3Asid%2Fsummon.serialssolutions.com&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&rft.genre=proceeding&rft.title=2022+21st+IEEE+International+Conference+on+Machine+Learning+and+Applications+%28ICMLA%29&rft.atitle=Online+Handwriting+Recognition+using+LSTM+on+Microcontroller+and+IMU+Sensors&rft.au=Meisl%2C+Florian&rft.au=Eibensteiner%2C+Florian&rft.au=Petz%2C+Phillip&rft.au=Langer%2C+Josef&rft.date=2022-12-01&rft.pub=IEEE&rft.spage=999&rft.epage=1004&rft_id=info:doi/10.1109%2FICMLA55696.2022.00167&rft.externalDocID=10069191 |