System for recognizing online handwriting
This invention concerns a system for recognizing online handwriting comprising: a handwriting instrument including a body extending longitudinally between a first end and a second end, the first end having a writing tip which is able to write on a support, the handwriting instrument further including a module comprising at least one motion sensor configured to acquire motion data on the handwriting of a user when the user is writing a characters sequence with the handwriting instrument, a calculating unit communicating with the at least one motion sensor and configured to analyze the motion data by a machine learning model trained in a multitask way such that it is capable of performing at least two tasks at the same time, the machine learning model being configured to deliver as an output the characters sequence which was written by the user with the handwriting instrument.
1 . A system for recognizing an online handwriting of a user comprising:
a handwriting instrument including a body extending longitudinally between a first end and a second end, the first end having a writing tip which is able to write on a support, a module comprising at least one motion sensor configured to acquire motion data on the online handwriting of the user when the user is writing a characters sequence with the handwriting instrument,
a calculating unit comprising a memory and a processor, the calculating unit communicating with the at least one motion sensor and configured to analyze the motion data by a machine learning model trained in a multitask way such that it is capable of performing a stroke segmentation task and a character classification task at a same time, wherein:
the machine learning model comprises a shared backbone neural network configured to perform hidden features extraction of the motion data to obtain intermediate features,
the stroke segmentation task is performed on the intermediate features, and
the character classification task is performed using a recursive neural network using the intermediate features, and
the machine learning model being configured to deliver as an output the characters sequence which was written by the user with the handwriting instrument.
2 . The system according to claim 1 , wherein the module is embedded in the second end of the handwriting instrument.
3 . The system according to claim 1 , wherein the module is placed on an outside surface of the second end of the handwriting instrument.
4 . The system according to claim 1 , wherein the module further comprises the calculating unit.
5 . The system according to claim 1 , wherein the module further includes a short-range radio communication interface configured to communicate raw motion data acquired by the at least one motion sensor to a mobile device comprising the calculating unit via a communication interface of the mobile device.
6 . The system according to claim 1 , wherein the at least one motion sensor is a three-axis accelerometer.
7 . The system according to claim 6 , wherein the module further comprises a second motion sensor being a three-axis gyroscope.
8 . The system according to claim 1 , wherein characters of the characters sequence comprise numbers.
9 . The system according to claim 1 , wherein the calculating unit comprises a volatile memory to store the motion data acquired by the at least one motion sensor.
10 . The system according to claim 1 , wherein the calculating unit comprises a non-volatile memory to store the machine learning model enabling the recognizing of the online handwriting of the user.
11 . The system according to claim 1 , wherein the trained machine learning model is stored in the calculating unit.
12 . The system according to claim 1 , wherein the stroke segmentation task comprises labeling the acquired motion data in at least one of following classes: on-paper stroke or in-air movement.
13 . The system according to claim 12 , wherein the trained machine learning model is further configured such that the acquired motion data is pre-processed before being used in the stroke segmentation task, wherein pre-processing comprises windowing raw motion data in time frames of N samples, wherein the samples are labeled in one of the on-paper stroke or the in-air movement.
14 . The system according to claim 12 , wherein an in-air movement label comprises at least two sub-labels, forward in-air movement and backward in-air movement.
15 . The system according to claim 1 , wherein the module further includes a battery configured to provide power to the at least one motion sensor when the user is using the handwriting instrument.
16 . The system according to claim 15 , wherein the battery is further configured to provide power to other components comprised in the module.
17 . The system according to claim 1 , wherein characters of the characters sequence comprise letters.