WRITING INSTRUMENT, SYSTEM AND METHOD FOR TRANSPARENT MONITORING AND ANALYSIS OF WRITING

20230126043 · 2023-04-27

Assignee

Inventors

Cpc classification

International classification

Abstract

A writing instrument that includes a writing element for depositing a writing material on a support and a plurality of sensors including at least a force sensor and a movement sensor, a communication unit that exchanges data with a remote device a control unit connected to the sensors and to the communication unit in order to transmit to the remote device the measurements provided by the sensors, a memory unit connected to the control unit that stores one or more measurements from the sensors; and a hollow casing that contains at least part of the writing element so that the writing end is exposed, and also houses the sensors, the control unit, the memory unit and the communication unit.

Claims

1-20. (canceled)

21. A writing instrument comprising: a writing element comprising a writing end configured for depositing a writing material on a support; a plurality of sensors comprising: a force sensor configured to measure a force applied to said writing element, and a movement sensor configured to measure movement of the instrument in a three-dimensional space; a communication unit configured to exchange data with a remote device via a wireless communication channel; a control unit connected to the plurality of sensors and to the communication unit configured to control the plurality of sensors and the communication unit in order to transmit to the remote device the measurements provided by the plurality of sensors during the connection between the communication unit and the remote device, a memory unit connected to the control unit and configured to store one or more measurements of the plurality of sensors, and a hollow casing configured to contain at least partially the writing element, so as to leave the writing end of the writing element exposed through a first end of the casing, and to contain completely the plurality of sensors, the control unit, the memory unit and the communication unit, and the control unit is further configured to: detect a lack of connection between the communication unit and the remote device, when there is the lack of connection, detect writing measures corresponding to movement measures having a value greater than a threshold, and store the writing measures if, within a predetermined period of time, the control unit detects a number of writing measures greater than a predetermined number.

22. The instrument according to claim 21, wherein the control unit is further configured to: detect a first writing measure; activate the communication unit when the first writing measure is detected, and transmit in real time the measurements provided by the plurality of sensors when the connection is established between the communication unit and the remote device before a maximum time has lapsed from the activation of the communication unit.

23. The instrument according to claim 22, wherein the control unit is further configured to transmit in real time the measurements provided by the plurality of sensors only when the control unit detects a number of writing measures greater than the predetermined number.

24. The instrument according to claim 21, wherein the control unit is further configured to: activate the communication unit when the first writing measure is detected; when a connection is established between the communication unit and the remote device, receive a memorization command transmitted by the remote device, and store the measurements provided by the plurality of sensors in the memory unit, in response to the reception of the memorization command transmitted by the remote device.

25. The instrument according to claim 21, wherein the control unit is further configured to: deactivate the communication unit while storing the measurements provided by the plurality of sensors in the memory unit; stop the storage of the measurements in the memory unit when a reduction of the writing measurements below the threshold value is detected, and activate the communication unit to exchange data with the remote device.

26. The instrument according to claim 25, wherein the control unit is further configured to: deactivate the communication unit when a connection is not established between the communication unit and the remote device before a maximum time has elapsed since the activation of the communication unit; wait for a waiting period (τ), and reactivating the communication unit to exchange data with a remote device.

27. The instrument according to claim 21, wherein the control unit is configured to sample at least the measurements provided by the movement sensor with a sampling frequency equal to or greater than 30 Hz.

28. The instrument according to claim 21, wherein the movement sensor is housed in a position closer to a second end of the casing than from the first end of the casing, the second end of the casing being opposite to the first end.

29. The instrument according to claim 21, wherein the movement sensor further comprises: a linear acceleration sensor configured to provide a measure of an acceleration of the instrument along a predetermined direction; an angular velocity sensor configured to measure a rotation speed of the instrument in a predetermined plane, and a magnetometer.

30. The instrument according to claim 21, wherein the casing comprises a separable first portion and a second portion, the first portion and the second portion comprising corresponding mating apertures transverse to a main direction of the casing, wherein the first portion is configured to removably house the writing element and wherein the second portion is configured to house the plurality of sensors, the control unit, the memory unit and the communication unit.

31. The instrument according to claim 30, wherein the second portion of the casing is configured to completely hide the plurality of sensors, the control unit, the memory unit and the communication unit housed therein from a user's view.

32. The instrument according to claim 21, further comprising a power supply unit which can be selectively connected at least to the control unit to provide electric energy thereto, and wherein the casing comprises a first portion, a second portion and a third portion which can be separated from one from the other, wherein the first portion is configured to removably house at least part of the writing element, the second portion is configured to house the plurality of sensors, the control unit, the memory unit and the communication unit, and the third portion comprises: a first element removably fastened to the first portion, and a second element removably fastened to the second portion, wherein the first element and the second element are slidingly coupled so as to slide between a first position, in which the writing end of the writing element is contained within the first portion, and a second position, in which the first portion and the first element of the third portion move towards the second portion thereby exposing the writing end of the writing element at the first end of the casing, and wherein the first element comprises a conductive component configured to contact a pair of electrical contacts connected to the power supply unit and protruding from the second portion towards the first element of the third portion, when the first element and the second element are in the second position, the contact between the pair of electrical contacts and the conductive component allowing the supply of electrical energy at least to the control unit.

33. The instrument according to claim 32, wherein the second element of the third portion further comprises: a coupling end to the second portion, a free end opposite the coupling end, a through hole between the free end and the coupling end, the through hole being shaped to receive the writing element and to hold a terminal end of the writing element, opposite the writing end, at the coupling end, and at least one pin projecting in a direction transverse to the length direction of the through hole, wherein the first element of the third portion further comprises: a coupling end to the first portion, a free end opposite the coupling end, a through hole between the free end and the coupling end, the through hole being configured to at least partially receive the second element of the third portion, a helical groove formed in a wall that delimits the through hole, the groove being adapted to receive the pin of the second element so as to guide a rotation of the first element with respect to the second element during the sliding between the first position and the second position, and vice versa, and a shoulder portion at the free end and facing the second portion, the shoulder portion being configured to house the conductive component.

34. The instrument according to claim 33, wherein the conductive component comprises a sheet of electrically conductive material and wherein the electrical contacts are of the pogo pin type.

35. The instrument according to claim 21, wherein the writing element is one of: an ink pen refill; a core of an infinite pencil; a core of a pop-a-point pencil, and a stick made in porous material soaked in ink.

36. A system for monitoring and analyzing handwriting comprising a writing instrument according to claim 21 and a processing device, the processing device comprising: a communication module configured to exchange data with the communication unit of the writing instrument, and a processing module configured to process the data provided by the writing instrument and providing an indication relating to at least one symbol written with the writing instrument.

37. A writing analysis method, implemented by a system for monitoring and analyzing handwriting comprising a writing instrument according to claim 21 and a processing device, the processing device comprising: a communication module configured to exchange data with the communication unit of the writing instrument, and a processing module configured to process the data provided by the writing instrument and providing an indication relating to at least one symbol written with the writing instrument the method comprising the steps of: determining a static disturbance in the force measures provided by the force sensor of the plurality of sensors of the writing instrument; subtracting the static disturbance from the force measures provided by the force sensor; processing the force measures provided by the force sensor by means of an algorithm for estimating and removing a baseline; converting to a null value, each measured value lower than a threshold value, and identifying a sequence of force measures different from zero as a single continuous writing movement performed through the writing instrument.

38. The method according to claim 37, further comprising the steps of: determining a variation frequency of the movement measures provided by the movement sensor, and when said variation frequency is greater than a threshold value: calculating a tilt angular velocity of the writing instrument on the basis of angular velocity measures included in the movement measures provided by the movement sensor; calculating a further tilt angular velocity of the writing instrument on the basis of linear acceleration measures included in the measures of movement provided by the movement sensor, and calculating an adjusted tilt angular velocity of the writing instrument as a linear combination of the tilt angular velocity and of the further tilt angular velocity of the writing instrument.

39. The method according to claim 38, wherein the step of calculating an adjusted tilt angular velocity of the writing instrument as a linear combination of the tilt angular velocity and of the further tilt angular velocity of the writing instrument further comprises calculating the adjusted tilt angular velocity as:
{dot over ({circumflex over (ϑ)})}=k.sub.1{dot over ({circumflex over (ϑ)})}.sub.g+k.sub.2({circumflex over (ϑ)}.sub.a−{circumflex over (ϑ)}), where {dot over ({circumflex over (ϑ)})}.sub.g is the tilt angular velocity determined on the basis of angular velocity measures, {circumflex over (ϑ)}.sub.a is the tilt angle determined based on the further tilt angular velocity of the writing instrument based on the linear acceleration measures, k.sub.1 is a constant parameter comprised between 1.2 and 1.7, and k.sub.2 is a constant parameter comprised between 0.3 and 0.6.

40. The method according to claim 38, further comprising, when the variation frequency is equal to and less than the threshold value calculating the tilt angle of the writing instrument as: ϑ = sin - 1 ( a z g ) , where a.sub.z is an acceleration measure aligned to a main direction of the writing instrument and g is the acceleration of gravity.

Description

BRIEF DESCRIPTION OF THE DRAWINGS

[0106] The invention will be described below with reference to some examples, provided for explanatory and non-limiting purposes, and illustrated in the accompanying drawings. These drawings illustrate different aspects and embodiments of the present invention and, where appropriate, reference numerals illustrating similar structures, components, materials and/or elements in different figures are indicated by similar reference numbers.

[0107] FIG. 1a illustrates a schematic axonometric view of a writing instrument according to an embodiment of the present invention;

[0108] FIG. 1b is a simplified exploded view of the writing instrument of FIG. 1a;

[0109] FIG. 2 is a block diagram of the electronics on board the writing instrument of FIGS. 1a and l b;

[0110] FIG. 3a illustrates a system for monitoring and analyzing handwriting according to an embodiment of the present invention;

[0111] FIG. 3b illustrates a system for monitoring and analyzing handwriting according to a different embodiment of the present invention;

[0112] FIG. 4 is a flowchart illustrating a procedure for data acquisition and transmission by the writing instrument of FIGS. 1a and 1b;

[0113] FIG. 5 is a flowchart illustrating a procedure for identifying sequences of continuous writing, or strokes, by a processing device of the system of FIGS. 3a and 3b according to an embodiment of the present invention;

[0114] FIG. 6 is a graph of a function of the force detected by the writing instrument as a function of time;

[0115] FIG. 7 is a flowchart illustrating a procedure for identifying symbols written by means of the writing instrument by a processing device of the system of FIGS. 3a and 3b according to an embodiment of the present invention;

[0116] FIG. 8 schematically illustrates the organization of the information on handwriting collected by the system of FIGS. 3a and 3b according to an embodiment of the present invention;

[0117] FIG. 9 is a basic diagram of an organization of the writing data detected and processed by the system of FIGS. 3a and 3b according to an embodiment of the present invention;

[0118] FIG. 10 is a flowchart illustrating a procedure for analyzing handwriting based on the collected information performed by the processing device of the system of FIGS. 3a and 3b according to an embodiment of the present invention;

[0119] FIG. 11a is a side view of a writing instrument according to an alternative embodiment of the present invention;

[0120] FIG. 11b is a sectional side view of the writing instrument of FIG. 11a along the section line XI-XI;

[0121] FIG. 12 is an exploded axonometric view of the writing instrument of FIGS. 11a and 11b, and

[0122] FIG. 13 is a sectional side view of the exploded view of FIG. 12 along the section plane 7E.

DETAILED DESCRIPTION OF THE EMBODIMENTS

[0123] While the invention is susceptible to various modifications and alternative constructions, certain preferred embodiments are shown in the drawings and are described hereinbelow in detail. It is in any case to be noted that there is no intention to limit the invention to the specific embodiment illustrated, rather on the contrary, the invention intends covering all the modifications, alternative and equivalent constructions that fall within the scope of the invention as defined in the claims.

[0124] The use of “for example”, “etc.”, “or” indicates non-exclusive alternatives without limitation, unless otherwise indicated. The use of “includes” means “includes, but not limited to” unless otherwise stated.

[0125] With reference to FIGS. 1a and 1b, a writing instrument, a ballpoint pen 1 in the example considered are described according to an embodiment of the present invention.

[0126] The pen 1 comprises a casing 10, a writing element 20—also called refill—, a force sensor 30, preferably a load cell, an electronic module 40, a battery 50 and preferably, a shell 60 and a support element 70.

[0127] In the embodiment considered, the casing 10 is configured to house the other elements of the pen 1. For this purpose, the casing is hollow and comprises an aperture at a first end 11 to allow a corresponding writing end 21 of the writing element 20 to protrude from the casing 10 and to allow handwriting, i.e. the release of a quantity of ink, in the example considered, on a surface, for example a sheet of paper. Preferably, the casing 10 is shaped so that the writing element 20 is substantially coaxial to an axis of symmetry of the casing 10 when the writing end protrudes from the casing 10 through the corresponding aperture. Even more preferably, the writing element 20 coupled to the casing 10 is substantially aligned and superimposed on a main direction P of the pen 1.

[0128] In the example considered, the casing comprises two portions 13 and 15 which can be removably coupled to each other. The first portion 13 is configured to house the writing element 20 and comprises the first end 11 in order to allow the writing end to protrude outside the casing 10. The second portion 15 is configured to house the remaining elements of the pen 1, in particular, the electronic module 40, the battery 50 and the force sensor 30.

[0129] Furthermore, each portion 13 and 15 comprises a respective aperture 17 and 18, respectively. Each aperture allows access to a cavity defined by the respective portion 13 and 15, and is provided with corresponding coupling elements (not shown in the schematic drawing of FIG. 1b), for example a thread and a counter-thread, bayonet coupling elements or snap coupling elements, etc.

[0130] In the example considered, the shell 60 is substantially a hollow cylinder of suitable dimensions for fitting the cavity defined by the second portion 15 of the casing 10 to size. The shell 60 is configured to receive inside it the electronic module 40 and the battery 50. Preferably, the shell 60 is also configured to engage with the support element 70 at the aperture 18 of the second portion 15 of the casing 10 when the shell 60 is inserted therein. For example, a portion of the shell 60 is shaped to receive a corresponding shaped portion of the support element 70. Alternatively, the shell 10 and the support element 70 comprise coupling elements of one of the types described above in relation to the coupling elements of the apertures 17 and 18.

[0131] The support element 70 is configured to house the force sensor 30 so that the force sensor 30 remains in contact with a terminal end 23 of the writing element 20—opposite the writing end 21 of the same—when the elements of pen 1 are assembled. Furthermore, the support element 70 is configured to allow an electrical connection between the force sensor 30 and the electronic module 40. Finally, the force sensor 30 is held in position by the support element 70 so as to measure forces substantially aligned to the main direction P of the pen 1.

[0132] With particular reference to the block diagram of FIG. 2, the electronics on board the pen 1 is now described in greater detail. In the example considered, the electronic module 40 comprises a control unit 41—for example, comprising one or more of a microprocessor, a micro controller, an ASIC, an FPGA, a DSP and/or another element capable of processing data—, a memory 42—preferably, both volatile and non-volatile—, a movement sensor, preferably an IMU 43 (acronym for Inertial Measurement Unit), a radio frequency communication unit, preferably a BLE unit 44 (acronym for BlueTooth Low Energy). For example, the IMU 43 comprising at least two accelerometers and a vertical gyroscope. More preferably, the IMU 43 comprises a three-dimensional accelerometer and a three-dimensional gyroscope, for example the IMU 43 can be implemented by a module of the iNEMO family by ST Microelectronics, for example an LSM6DSM module.

[0133] The electronic module 40 further comprises a power unit 45 connected to the battery 50 and to the other units of the electronic module for supplying electrical energy to the same. Optionally, the electronic module 40 may comprise a user interface 46—for example from a simple LED to a complex system provided with input/output elements—and/or a connector 47 to allow charging the battery 50 and/or the transfer of data from/to the control unit 41. Preferably, the connector 47 is accessible through an aperture (not shown in the Figures) provided in the casing 10, for example at the end of the casing 10 opposite the end from which the writing end 21 of the writing element 20 of the pen 1 comes out.

[0134] The control unit 41 is connected to the force sensor 30 and to the IMU 43, to receive measurements of relative physical quantities detected by them, to the memory 42, to store data and access data stored therein, and to the BLE 44, for control the activation and data transmission thereof, but more preferably a data transmission by the same.

[0135] In particular, the pen 1 just described is shaped so that the first portion 13 of the casing 10 substantially contains only the writing element 20 of the pen 1, while the second portion 15 contains the electronic module 40, the battery 50 and contains or mechanically supports the force sensor 30. Consequently, when the first portion 13 and the second portion 15 of the casing 10 are separated, a writing element 20, for example an exhausted refill, can be replaced in an extremely simple way with no need for any specific expertise.

[0136] Furthermore, the electronic module 40 is designed so that the IMU 43 is in a position proximal to a second end 19 of the casing 10 and distal from the first end 11 of the casing 10, with respect to the main direction P of the pen 1, when the pen 1 is assembled. In other words, the movement sensor of the pen 1 is located at the second end 19 of the pen 1. Thanks to this arrangement of the IMU 43, the impact of measurement errors is substantially reduced. In fact, during writing, the pen 1 performs rotational, oscillatory and similar movements around the writing end 21, resting on the surface on which signs are written. The IMU 43 positioned near the second end of the casing 19—i.e., away from the writing end 21—will detect accelerations of greater intensity than those to which the writing end 21 is subjected while the pen 1 is being used. Consequently, the ratio between the measurements made by the IMU 43 and the measurement errors will be better than if the measurement was made near the writing end 21. This allows obtaining particularly reliable and effective data for the recognition and analysis of the tremor while the writing instrument is being used. More generally, this arrangement of the IMU 43 allows obtaining particularly reliable and effective data for the recognition and analysis of neurological pathologies or learning disorders.

[0137] The pen 1 may be part of a system 100 for analyzing handwriting schematically shown in FIG. 3a. The system 100 comprises the pen 1 and a processing device 80. The processing device 80 is configured to receive data from the pen 1 and process them, as described in greater detail below in order to analyze the handwriting of an individual using the pen 1. In particular, in the present description the expression ‘analyze the handwriting of an individual using the pen 1’ indicates the analysis of the information provided by the pen 1 in order to identify features to highlight one or more specific aspects—for example, a tremor—associated with the action of drawing a sign—for example, a written word or a drawing—performed by the individual holding the pen 1. To this end, the processing device 80 comprises a communication unit 81, configured to receive, but more preferably exchange, data from the BLE 44 of the pen 1 by means of a radio frequency connection, a control unit 83, configured to process the received data, a memory 85 configured to store received data, processing data and processing instructions, and a user interface 87 configured to provide information and receive instructions from a user. As will be evident to the person skilled in the art, the processing device 80 can be implemented through a single electronic device or a distributed physical and/or virtual network of electronic devices. For example, the processing device 80 may comprise processing and/or storage resources provided by one or more data centres and/or one or more of cloud computing and edge computing resources.

[0138] In an alternative embodiment, schematically shown in FIG. 3b, the system 101 entails that the pen 1 is connected and transfers data to an intermediate device 90, for example a smartphone, a modem, a switch, a console, etc. The intermediate device is in turn configured to establish a connection through a telecommunications network I (wired and/or wireless and/or internet) and transmits the data provided by the pen 1 to the processing device 80.

[0139] In one embodiment, the control unit 41 of the pen 1 is configured to implement a data acquisition and transmission procedure 300 described below in relation to the flowchart of FIG. 4.

[0140] The procedure 300 comprises monitoring the movement measures m.sub.M provided by the IMU 43 (block 301). For example, the movement measures provided by the IMU 43 comprise three linear acceleration measures along reference axes x, y and z—where the axis z is preferably aligned to the main direction P of the pen 1 and oriented towards the second end 19 of the casing 10—and three measures of angular velocity referred to the same reference axes x, y and z. In other words, the movement measures m.sub.M provided by the IMU 43 correspond to a vector comprising three linear acceleration values and three angular velocity values as a function of time.

[0141] The movement measures m.sub.M are analyzed to detect an initial time instant to in which the movement measures exceed a first threshold value th.sub.1 (decision block 303). In particular, the first threshold value th.sub.1 is indicative of a passage from a stationary condition of the pen 1 to a movement condition thereof. In other words, the movement measures that exceed the first threshold value th.sub.1 are considered as writing measures, indicative of an amplitude of movement compatible with a writing operation or, more generally, with tracing a sign. In the preferred embodiment, the first threshold value th.sub.1 is a vector comprising three linear acceleration values and three threshold angular velocity values and the exceeding of one of such linear acceleration values and threshold angular velocity values by one of the corresponding values of the movement measures m.sub.M is considered as exceeding the first threshold value th.sub.1. Preferably, the first threshold value th.sub.1 is considered as exceeded when it is exceeded by one of the movement measures m.sub.M for a minimum time interval. For example, if the IMU 43 is implemented by an LSM6DSM module, the verification that the first threshold value th.sub.1 has been exceeded can be performed by means of the wake-up function of this module.

[0142] If movement measures m.sub.M greater than the first threshold value th.sub.1 are not detected (output branch N of block 303), it is envisaged continuing monitoring the movement measures m.sub.M—in other words, the procedure 300 is repeated from the described step in relation to block 301.

[0143] Otherwise, when the detected movement measures m.sub.M are greater than the first threshold value th.sub.1 (output branch Y of block 303), the unit BLE 44 is activated in order to allow establishing a communication channel with the processing device 80 within connection time period T.sub.Max, i.e. a time interval included between the initial time instant to and a time limit instant t.sub.Max (i.e., T.sub.Max=t.sub.Max−t.sub.0)—directed or through the additional device 90 and the communication network I—(block 305).

[0144] The movement measures m.sub.M are monitored to count a number of movement measures m.sub.M greater than the first threshold value t.sub.h1 within a counting time interval ΔtC included between an intermediate time instant tI and the time limit instant t.sub.Max (i.e., ΔtC=tMax−tI, with tI>t0) (block 307).

[0145] It is then verified whether a communication channel has been established between the unit BLE and the processing device 80 within the connection time period T.sub.Max (decision block 309).

[0146] If a communication channel is not established between the unit BLE and the processing device 80 within the connection time period T.sub.Max (output branch N of block 309), it is envisaged verifying whether the number of measures of m.sub.M greater than the first threshold value th.sub.1 counted in the counting time interval Δt.sub.C exceeds a second threshold value th.sub.2—i.e., a predetermined number N of counts (decision block 311). In particular, the second threshold value th.sub.2 identifies an interaction between pen 1 and monitored individual useful to be stored, which is indicative with a high probability of a use of the pen 1 by an individual (not shown) to write or, more in general, to draw a sign on a support F (for example, a sheet of paper or cardboard).

[0147] If a number of movement measures m.sub.M greater than the second threshold value th.sub.2 is not detected within the counting time interval Δt.sub.C (output branch N of block 311), it is envisaged deactivating the unit BLE 44 (block 313) at the end of the connection time period T.sub.Max and resuming monitoring the movement measures m.sub.M—in other words, the procedure 300 is repeated from the step described in relation to block 301.

[0148] Conversely, if a number of movement measures m.sub.M greater than the second threshold value th.sub.2 is detected within the counting time interval Δt.sub.C, but a communication channel has not been established between the unit BLE and the processing device 80 within the connection time period T.sub.Max (output branch Y of block 309), it is envisaged deactivating the unit BLE 44 (block 315) and storing the movement measures m.sub.M provided by the movement sensor 43 and the force measures m.sub.P provided by the force sensor 30 in the memory 42 of the electronic module 40 (block 317). For example, in case it is wished to identify tremors in handwriting, the measures of movement m.sub.M and pressure m.sub.P are sampled with a frequency equal to, or greater than, 30 Hz preferably equal to, or greater than, 50 Hz, so that the data acquired contain useful information about the tremor—as the highest frequency associated to tremor is essentially 25 Hz. Preferably, the movement measures m.sub.M and the force measures m.sub.P are stored together with an indication of the time instant, for example a timestamp—in which these measures are acquired.

[0149] The movement measures m.sub.M provided by the movement sensor 43 are monitored to identify a cancellation of one or more, preferably all, the movement measures m.sub.M provided by the movement sensor 43 (decision block 319). In other words, it is verified when one or more of the movement measures m.sub.M are equal to zero—or equal to or less than the threshold value th.sub.1—, an event indicative of the termination or stop of a writing operation by the individual being examined.

[0150] In the negative case (output branch N of block 319), it is envisaged to continue storing the movement measures m.sub.M provided by the movement sensor 43 and the force measures m.sub.P provided by the force sensor 30 by repeating the procedure 300 from the previous block 317.

[0151] If a cancellation of one or more, preferably all, of the movement measures m.sub.M is detected (output branch Y of block 319), it is envisaged stopping the storage of movement measures m.sub.M provided by the movement sensor 43 and the force measures m.sub.P provided by the force sensor 30 (block 321) and reactivating the unit BLE 44 for a new communication time period T.sub.Max, in order to make the movement measures m.sub.M and the force measures m.sub.P stored in the memory unit 42 available to the processing device 80 (block 323).

[0152] Next, the activity of the unit BLE 44 is monitored to verify the presence of a communication channel (wireless) between the unit BLE 44 and the processing device 80 within the communication time period T.sub.Max (decision block 325).

[0153] If a communication channel is not established between the unit BLE 44 and the processing device 80 (output branch N of block 325), the unit BLE 44 is switched off again for a waiting period t (block 327) before it is reactivated to allow a communication channel to be established with the processing device 80 by repeating the procedure 300 from what is described in relation to block 323.

[0154] When the communication channel is established between the unit BLE 44 and the processing device 80 (output branch Y of block 325), the transmission of the movement measures m.sub.M and of the force measures m.sub.P stored in the memory unit 42 to the processing device 80 is envisaged (block 329). At the end of the transmission, it is preferably envisaged carrying out a formatting—high level or low level—of the memory unit 42 (block 331). Subsequently, the procedure 300 continues as described above in relation to block 313.

[0155] If the communication channel between the unit BLE 44 and the processing device 80 is established within the connection time period T.sub.Max (output branch Y of block 309), it is envisaged transmitting directly to the remote device 80 the movement measures m.sub.M provided by the movement sensor 43 and the force measures m.sub.P provided by the force sensor 30 (block 333). In other words, the unit BLE 44 makes the movement measures m.sub.M provided by the movement sensor 43 and the force measures m.sub.P provided by the force sensor 30 available to the processing device 80, as a data streaming. Also in this case, preferably, the measures of movement m.sub.M and pressure m.sub.P are sampled before transmission with a frequency equal to, or greater than, 30 Hz, even more preferably equal to, or greater than, 50 Hz, in order to recognise tremors in handwriting. Preferably, the movement measures m.sub.M and the force measures m.sub.P are made available together with the timestamp, indicative of the time instant in which these measures are acquired.

[0156] Subsequently, it is envisaged monitoring the communication channel in order to identify a stop thereof, in particular, by the processing device 80 (decision block 335). If a stop of the communication channel is not detected (output branch N of block 335), it is envisaged continuing the transmission of the movement measures m.sub.M and of the force measures m.sub.P substantially in real time as described in relation to the previous block 333.

[0157] Otherwise, if a stop of the communication channel is detected (output branch Y of block 335), it is envisaged deactivating the unit BLE 44 by repeating the procedure 300 starting from what is described with reference to block 313.

[0158] Thanks to the procedure 300, the pen 1 is able to provide a large amount of data relating to the handwriting of the individual being examined at the processing device 80, substantially whenever the pen 1 is used by the individual in possession of the pen 1, with no need for supervision by a specialized operator or an external computer in connection with the instrument via BLE. This allows to acquire data relating to the handwriting of the individual for long periods of time, thus allowing an accurate analysis of the handwriting of the individual being examined and/or to identify more accurately variations in the handwriting style of the individual being examined, for example indicative of neurodegenerative pathology.

[0159] In the embodiments of the present invention the processing device 80 is configured to perform a plurality of processing procedures on the data provided by the pen 1.

[0160] A first procedure 400 makes it possible to distinguish single continuous movements, indicated as strokes in the jargon, separated from movement stops performed by the individual being examined while writing or drawing. In particular, a stroke sk is defined as a set of measures of movement m.sub.M and pressure m.sub.P acquired in a time interval of strokes Δt.sub.s during which the force measure m.sub.P is not null preceded and followed by instants of time in which the force measure m.sub.P is null or below a lower limit value—in other words, the time interval of strokes zits is a time interval in which a force is exerted on the writing element 20 of the pen 1 having at least one component aligned to the main direction P and directed towards the writing end 21 of the writing element 20.

[0161] The procedure 400 (of which a flow diagram is shown in FIG. 5) initially envisages determining a static disturbance, or offset, on the force measure m.sub.P during writing (block 401). For example, the disturbance offset is defined as the mode of the median filter calculated on a predetermined number of samples of the force measure m.sub.P, for example 50 samples, of an initial set of force measures nip provided by the force sensor 30—or similarly, the offset can be evaluated on a set of measures acquired during an offset time period.

[0162] This offset is then subtracted from the force measures nip provided by the force sensor 30 (block 403). In particular, it is possible to remove the offset from the same force measures m.sub.P—i.e., from the samples mentioned above—used to determine the offset.

[0163] Subsequently, the force measures nip provided by the force sensor 30 are processed to remove slow variations, deviations due to measurement errors and random noise, also referred to collectively as the baseline (block 405)—comparable to a low frequency oscillation. In the example considered, the force measures received from the pen 1 and deprived of the offset are provided as input to an algorithm for estimating and removing the baseline and the noise which, preferably, uses the concept of sparsity. For example, the processing device implements an adapted version of the BEADS algorithm by Matlab® also described in Xiaoran Ning, Ivan W. Selesnick, Laurent Duval: “Chromatogram baseline estimation and denoising using sparsity (BEADS)”, Chemometrics and Intelligent Laboratory Systems, December 2014.

[0164] The values of the force measures nip thus treated below a minimum threshold value—for example, determined in an instrument calibration step—are brought to zero (block 407).

[0165] The information provided by the force sensor 30 alone is therefore sufficient to reliably distinguish time instants in which the pen 1 is raised from the support F, corresponding to the periods with force measure m.sub.P, and time instants in which signs are drawn with the pen 1 on the support F, corresponding to periods with non-null force measure m.sub.P.

[0166] Each set of non-null force measures nip that are consecutive over time is identified as a corresponding stroke sk (as shown in the example of FIG. 6) performed by the individual being examined (block 409).

[0167] Preferably, it is envisaged associating together the force and movement measures acquired during the execution of the same stroke sk stored in the memory 85 of the processing device 80 (block 411). In other words, the measurements acquired by the sensors 30 and 43 provided by the pen 1 grouped based on the strokes sk identified in the memory 85 of the processing device 80.

[0168] Otherwise, a second procedure 500 allows estimating a tilt of the pen 1 during the use thereof.

[0169] The second procedure 500 (as shown in the flow chart of FIG. 7) envisages verifying whether the pen is in a condition of static or semi-static use, or in a condition of dynamic use (decision block 501). For example, the condition of use is discriminated on the basis of the values of the movement measures m.sub.M provided by the IMU 43, in particular, the pen 1 is considered in a condition of static or semi-static use when one or more values of the movement measures m.sub.M varies with a frequency lower than a threshold frequency value, otherwise the pen 1 is considered in a condition of dynamic use when one or more values of the movement measures m.sub.M vary with a frequency higher than the threshold frequency value.

[0170] If a condition of dynamic use is identified (output branch D of block 501), it is envisaged combining the linear acceleration and angular velocity measures provided by the IMU 43 to identify a variation rate, i.e. an angular velocity {dot over ({circumflex over (ϑ)})}, as a function of the time of the tilt angle ϑ of the pen 1 with respect to the horizontal or the normal to the support on which handwriting is performed.

[0171] In particular, the procedure 500 envisages calculating a first tilt angular velocity ϑ.sub.g through the angular velocity measures contained in the movement measures m.sub.M provided by the IMU 43 (block 503)—in particular, by means of the angular velocity measures with respect to the axes x and y. Similarly, it is envisaged calculating a second tilt angular velocity {dot over ({circumflex over (ϑ)})}.sub.a through the linear acceleration measures contained in the movement measures m.sub.M provided by the IMU 43 (block 505) and then determining the tilt angle {circumflex over (ϑ)}.sub.a (block 507). Consequently, an adjusted tilt angular velocity {dot over ({circumflex over (ϑ)})} of the pen 1 is calculated according to the formula:


{dot over ({circumflex over (ϑ)})}=k.sub.1{dot over ({circumflex over (ϑ)})}.sub.g+k.sub.2({circumflex over (ϑ)}.sub.a−{circumflex over (ϑ)}),  (1)

where k.sub.1 is a constant parameter comprised between 1.2 and 1.7, preferably equal to 1.5, and k.sub.2 is a constant parameter comprised between 0.3 and 0.6, preferably equal to 0.4 (block 509).

[0172] Optionally, starting from the total tilt angular velocity {dot over ({circumflex over (ϑ)})} the value of the tilt angle ϑ is calculated as a function of time (block 511).

[0173] Finally, the total tilt angular velocity {dot over ({circumflex over (ϑ)})}—and the values of the tilt angle ϑ, if calculated—is stored in the memory 85 of the processing device 80 and is associated to the corresponding measures of movement m.sub.M and of pressure m.sub.P provided by the IMU 43 and by the force sensor 30 of the pen 1 (block 513). In particular, for a subsequent operation of recognition of indicators of neurological pathologies and/or writing analysis, the values of total tilt angular velocity {dot over ({circumflex over (ϑ)})} and of the tilt angle ϑ associated to non-null pressure measurements m.sub.P are particularly relevant.

[0174] Otherwise, if a condition of static or semi-static use is verified (output branch S of block 501), it is envisaged using the measurement of the accelerometer aligned to the axis z comprised in the movement measures m.sub.M in order to calculate the tilt angle of the pen 1 through the following formula:

[00002] ϑ = sin - 1 ( a z g ) , ( 2 )

[0175] where a.sub.z is the measure provided by the accelerometer aligned to the axis z and g is the acceleration of gravity (block 515).

[0176] Optionally, formula (2) can be replaced by the following linear approximation for small angles:

[00003] ϑ k × ( a z g ) , ( 3 )

[0177] with k=1.

[0178] A third procedure 600 performed by the processing device 80 allows to identify the symbols written by the individual under examination.

[0179] In detail, procedure 600 envisages implementing a neuronal network trained to recognise one or more symbols traced by the individual by means of the pen 1.

[0180] Initially, procedure 600 (as shown in the flowchart of FIG. 8) envisages collecting the measurements provided by the force sensor 30 and by the IMU 43 of the pen 1 in a plurality of time series x(t) of measurements to be analyzed (block 601). Preferably, each time series is defined as:


x(t)=[ƒ(t),ϑ(t)]′∈R.sup.2,  (4)

[0181] Where ƒ(t) represents the trend as a function of the time of the pressure obtained from the force measures m.sub.P provided by the force sensor 30 of the pen 1 and ∂(t) represents the trend as a function of the time of the tilt angle of the pen 1 obtained from the movement measures m.sub.M provided by the IMU 43.

[0182] For example, each time series x(t) corresponds to a stroke sk identified through the procedure 400 described above.

[0183] Each time series x(t) is provided as input to the neuronal network, preferably of the recursive type, which identifies it on the basis of a comparison with a plurality of previously acquired training sequences, a symbol sy corresponding to, or comprising, the stroke sk analyzed (block 603).

[0184] In one embodiment, the training envisages acquiring a plurality of training sequences x.sub.a(t) for each symbol to be recognised, by having this symbol written by a plurality of sample subjects. Preferably, each training sequence x.sub.a(t) has the same duration, for example equal to 1.2 s—i.e., it comprises 60 measurement samples with a sampling frequency at 50 Hz mentioned above, where it is envisaged applying a zero-padding strategy in order to reach 60 samples in case of training sequences with fewer samples. For example, the neural network implemented by the remote device 80 is based on what is described in K. Greff, R. K. Srivastava, J. Koutnik, B. R. Steunebrink and J. Schmidhuber: “LSTM: A Search Space Odyssey”, IEEE Transactions on Neural Networks and Learning Systems, vol. 28, no. 10, pp. 2222-2232, October 2017 and similarly trained based on what is described in Akhundov, Adnan & Trautmann, Dietrich & Groh, Georg: “Sequence Labeling: A Practical Approach”, 2018, arXiv: 1808.03926.

[0185] Finally, the result of the analysis of the neuronal network, i.e. an indication relating to the identified symbol sy and, preferably, a confidence value of such identification are stored in the memory 85 associated to the corresponding stroke sk (block 605).

[0186] As will be evident to the person skilled in the art from what is indicated above, the processing device 80 can be configured to store the measurements provided by the pen 1 and the results of carrying out the procedures 400-600 described above in an organized manner. Advantageously, as schematically shown in FIG. 9, the data relating to the handwriting obtained—i.e., measured or processed—in relation to the same handwriting time period are identified as part of the same handwriting W.sub.m. In addition, the movement measures m.sub.M, the force measures MP, the timestamp associated to the measures, the tilt angular velocity {dot over ({circumflex over (ϑ)})}—and the tilt angle ϑ, if calculated —, the identified symbol sy—and the relative confidence value if calculated—relating to the same stroke s are grouped in a dataset of strokes S. Furthermore, at least in the case of a writing flow W.sub.m acquired through direct transmission, the writing flow W.sub.m comprise an “in-air” dataset O i.e. associated to an instant in which the individual moves the pen 1 away from the support F between one stroke s and the next. Also the in-air dataset O comprises movement measures m.sub.M, whereas the force measures m.sub.P are null as the pen 1 is separated from the support F, the timestamp tp associated to the measures, the tilt angular velocity {dot over ({circumflex over (ϑ)})}—and the tilt angle ϑ, if calculated—relating to the same time period between consecutive strokes s. Thus, the memory will comprise a plurality of writing flows W.sub.1-M (with M as natural integer) indicative of different writing operations performed by the individual during corresponding periods of time. Each, writing flow W.sub.m (with m comprised between 1 and M) comprises a plurality of datasets of strokes S.sub.I-N, whereby N is a natural integer corresponding to the number of strokes s identified during the writing flow W.sub.m interspersed with in-air datasets O.sub.1-L, whereby L is a natural integer corresponding to the number of periods of time in which the force measure m.sub.P is nullified between one stroke and the consecutive one.

[0187] Furthermore, the processing device 80 is configured to perform a procedure 700 for analyzing handwriting of the individual, in order to identify variations in the handwriting ability of the individual being examined, for example, an undermining in the handwriting ability due to the onset of a neurodegenerative pathology.

[0188] The procedure 700 envisages comparing one or more of the data stored in the datasets of strokes S.sub.n of the different writing flows W.sub.m stored by the processing device 80 and providing indications on variations while carrying out the handwriting by the individual being examined.

[0189] In one embodiment, the procedure 700 (as shown in the flow diagram of FIG. 10) envisages identifying similar strokes sk belonging to a plurality of different writing flows W.sub.m therefore acquired at different time instants (block 701). For example, the procedure 700 envisages identifying strokes sk belonging to different writing flows W.sub.m associated to the same symbol identified through the procedure 600.

[0190] Subsequently, it is envisaged analyzing the datasets of strokes Sn corresponding to this plurality of identified strokes sk in order to identify significant variations between successive writing flows Wm over time (block 703). In other words, variations are identified in the writing style of the same symbol by the individual being examined as the time has lapsed. For example, algorithms are applied which envisage determining correlation, variance and/or other statistical information by comparison of the datasets of strokes Sn capable of highlighting a change in the writing ability of the individual. In addition or alternatively, a neuronal network is envisaged that is trained to identify progressive variations in the sequence of analyzed datasets of strokes Sn.

[0191] Finally, a report indicating the type of identified variation is generated, which is provided to a user of the processing device 80 through the user interface 87 (block 705).

[0192] However, it is clear that the above examples must not be interpreted in a limiting sense and the invention thus conceived is susceptible of numerous modifications and variations.

[0193] For example, the sensors may have a different positioning within the pen. In particular, although the movement sensor is preferably housed in a position having a shorter distance from the second end of the casing with respect to a distance from the first end thereof, nothing prevents the movement sensor from being located in other embodiments near the writing end of the writing element, the refill in the example considered above.

[0194] For example, in an alternative embodiment—shown in FIGS. 11a, 11b, 12 and 13, where numerical references similar to those used indicate elements similar to those described above and the description of which is not repeated for brevity's sake—, the pen 1A has a structure such as to allow to expose and retract the writing end 21 of the writing element 20 and, at the same time, to activate and deactivate, respectively, the electronic module 40.

[0195] The casing 10 of the pen 1A comprises a third portion 14 interposed between the first portion 13 and the second portion 15. In particular, the third portion 14 comprises a first element 141 and a second element 143, which are shaped in such a way as to be slidingly fastened to each other.

[0196] In detail (as can be better observed in FIGS. 11b, 12 and 13), the first element 141 has an elongated cylindrical shape which comprises a through hole 1411, preferably coaxial to the first element 141 and which extends along the main direction P when the pen 1A is assembled. The first element 141 can be fastened to the first portion 13, for example, a first end 1412 of the first element 141 comprises a coupling element—a thread—configured to be coupled to a corresponding coupling element—a corresponding thread—formed at the aperture 17 of the first portion of the casing 10.

[0197] A second end 1413 of the first element 141 is shaped to surround the end of the second portion 15 of the casing which comprises the aperture 18. In particular, the second end 1413 comprises a circular shoulder configured to receive an edge of the aperture 18 of the second portion 15 of the casing 10. An electrical contact 1415, for example an annular sheet made of aluminium or copper, is arranged at the shoulder.

[0198] A pair of guide grooves 1416, preferably helical, is formed in an internal wall of the first element that delimits the through hole 1411. Each of the guide grooves 1416 is adapted to slidingly receive a respective pin 1431 projecting from the second element 143 in a radial direction with respect to the main length direction of the second element 143 which corresponds to the main length direction P when the pen 1A is assembled.

[0199] In particular, the second element 143 of the third portion 14 of the casing 10 has a cylindrical shape having a cross section lower than the cross section of the through hole 1411 of the first element 141 of the third portion 14, so as to be insertable inside the same, with the pins 1431 inserted into the guide grooves 1416.

[0200] Furthermore, the second element 143 of the third portion 14 of the casing 10 comprises a through hole 1432, preferably coaxial to the second element 143 and which extends along the main direction P when the pen 1A is assembled. A first end 1433 of the second element 143 comprises a shoulder configured to receive an end of a helical compression spring 131 housed in a through hole 132 of the first portion 13 when the pen 1A is assembled. Otherwise, a second end 1435 of the second element 1435 comprises a coupling element—a thread—configured to be coupled to a corresponding coupling element—a corresponding thread—formed at the aperture 18 of the second portion of the casing 10.

[0201] When the pen 1A is assembled, the through hole 1411 of the first element 141, the through hole 1432 of the second element 143 of the third portion 14 of the casing 10, and the through hole 132 of the first portion 13 are coaxial with each other and substantially aligned to the main length direction P of the pen 1A. The through hole 1432 of the second element 143 of the third portion 14 and the through hole 132 of the first portion 13 define a housing of the writing element 20.

[0202] In particular, the through hole 1432 of the second element 143 of the third portion 14 has a cross section adapted to receive substantially a body 22 of the writing element 20 to size and comprises an enlarged portion at the second end of 1435 of the second element 143 configured to receive a terminal end 23 of the writing element 20—opposite the writing end 21—, so as to hold the latter in position and prevent the writing element 20 from coming off the pen 1A during the use thereof.

[0203] The second portion 15 of the casing 10 comprises, near the aperture 18, a housing 151 for the force sensor 30—preferably a load cell. In the example of FIGS. 11b and 13, the housing 151 comprises an aperture, preferably coaxial to the main length direction P when the pen 1A is assembled, configured to allow direct contact between the force sensor 30 and the terminal end 22 of the writing element 20 when the pen 1A is assembled.

[0204] Furthermore, near the aperture 18, the second portion 15 of the casing 10 comprises at least one pair of housings for the same number of electrical contacts, pogo pin 152 in the example of FIGS. 11b, 12 and 13. These pogo pins 152 are arranged in the respective housings so as to have one (retractable) end exposed at the aperture 18.

[0205] Finally, although not shown in FIGS. 11b, 12 and 13 for simplicity's sake, the sensor 30 and the pogo pins 152 comprise respective electrical connections to the electronic module 40 or to the battery 50. In detail, the sensor 30 is connected at least to the electronic module 40, while the pogo pins 152 define a connection circuit between the battery 50 and the electronic module 40 through which electrical energy is selectively supplied from the battery to the electronic module 40 as described below.

[0206] When the pen 1A is assembled, the first element 141 of the third portion 14 is fastened to the first portion 13 of the casing 10. Otherwise, the second element 143 of the third portion 14 is fastened to the second portion 15 of the casing 10. Finally, the first element 141 and the second element 143 of the third part 14 of the casing 10 are slidingly coupled together, by means of the coupling between the grooves 1416 and pins 1431.

[0207] In particular, pins 1431 are free to slide in the grooves 1416 between a first stop position in which the writing end 21 of the writing element 20 is contained within the first portion 13 of the casing 10 and a second stop position in which the writing end 21 of the writing element 20 is exposed through the first end 11 in the first portion 13 of the casing 10 (as shown in FIGS. 11a and 11b).

[0208] In the first stop position the apertures 17 and 18 of the first portion 13 and of the second portion 15 of the casing are at a maximum distance from each other along the main length direction P, whereas in the second stop position the apertures 17 and 18 of the first portion 13 and of the second portion 15 of the casing are at a maximum distance from each other along the main length direction P.

[0209] Furthermore, when the pins 1431 are in the first stop position of the grooves 1416, the pogo pins 152 exposed at the aperture 18 of the second portion 15 of the casing 10 are spaced from the electrical contact 1415 arranged in the shoulder 1414 formed in the end of the first element 141 of the third portion 14 of the casing 10 facing the aperture 18. Consequently, when the pins 1431 are in the first stop position of the grooves 1416, the electronic module 40 is not powered since the connection circuit between the latter and the battery 50 is open. Conversely, when the pins 1431 are in the second stop position of the grooves 1416, the pogo pins 152 come into contact with the electrical contact 1415. Consequently, when the pins 1431 are in the second stop position of the grooves 1416, the electronic module 40 is powered since the connection circuit between the latter and the battery 50 is open.

[0210] Consequently, the same reciprocal rotation action between the first element 141 and the second element 143 of the third portion 14 which causes the pins 1431 to slide from the first stop position to the second stop position has the effect of both exposing the writing end 21 of the writing element 20 and of starting the supply of electrical energy to the electronic module 40. Conversely, the same reciprocal rotation action between the first element 141 and the second element 143 of the third opposing portion 14 which causes the pins 1431 to slide from the second stop position to the first stop position has the effect of both hiding the writing end 21 of the writing element 20 and of stopping the supply of electrical energy to the electronic module 40. In other words, a user who imparts a reciprocal rotation between the first element 141 and the second element 143 of the third portion 14 for extracting the writing end 21 of the writing element 20 will simultaneously activate the electronic module 40. Vice versa, the user who imparts a reciprocal rotation between the first element 141 and the second element 143 of the third portion 14 for retracting the writing end 21 of the writing element 20 will simultaneously deactivate the electronic module 40.

[0211] Although the embodiments described above refer to a ballpoint pen, it is evident that in other embodiments (not shown) the writing instrument may be different, such as an infinite pencil, a pop-a-point type pencil, a marker, etc.

[0212] Furthermore, alternative embodiments (not shown), may provide a thrust element—for example a spring—adapted to push the writing element—the refill or a pencil core—outwards along the main direction of the writing instrument. In this case, the control unit on board the writing instrument or the processing device are configured to compensate for the force component exerted by said thrust element.

[0213] Nothing prevents from using an element other than an IMU to cause the movement of the writing instrument. For example, the movement sensor can comprise, for example, one or more linear acceleration sensors, angular velocity sensors, gyroscopes, a magnetometer, etc., advantageously arranged near the end of the casing opposite the end from which the writing element protrudes. In general, the movement sensor of a writing instrument according to the present invention provides an indication relating to the movement of the writing instrument in a three-dimensional space.

[0214] Similarly, the pressure applied by the individual while writing can be detected by a force sensor other than a load cell, such as a resistive sensor, a capacitive sensor or another similar sensor.

[0215] Again, nothing prevents the system from comprising several writing instruments according to the present invention, configured to be connected and transmit data to the same processing device. The processing device is in turn configured to separately process the writing flows provided by each writing instrument.

[0216] Additionally or alternatively, the processing device can be configured to use the measurements provided by the associated writing instruments to generate new training datasets for the neuronal networks in use.

[0217] Furthermore, nothing prevents the processing device from implementing one or more updating or adjustment procedures that provide for the transmission of configuration instructions to the writing instrument to modify its operation.

[0218] As will be evident to the person skilled in the art, one or more steps of the procedure 300 described above can be performed in parallel with each other—such as the steps relating to blocks 315-319, the steps relating to blocks 321-327, as well as the steps relating to blocks 329 and 331—or with a different order from the one presented above. Similarly, one or more optional steps can be added or removed from one or more of the procedures described above.

[0219] Furthermore, it will be evident that the activation of the transmission channel and/or its suspension can be controlled by the processing device and/or by the control unit of the pen.

[0220] According to an alternative embodiment (not shown) the control unit of the pen is configured to implement an alternative measurement acquisition procedure, which envisages: [0221] monitoring the measurements provided by the movement sensor, and [0222] activating the communication unit when a movement measure greater than the first transmission threshold value is detected; [0223] in series or in parallel, storing the measurements provided by the plurality of sensors, when a number greater than the second threshold value of movement measures exceeding the first threshold value is detected, and

[0224] wherein the communication unit is configured for: [0225] transmitting at least part of the stored measurements when a connection is established with the remote device.

[0226] In another embodiment, the control unit is configured for: [0227] monitoring the measurements provided by the movement sensor, and [0228] activating the communication unit when a movement measure greater than a threshold value is detected; [0229] counting a number of movement measures that exceed said first threshold value within a counting time interval, preferably comprised between a time instant in which the communication unit is activated and a maximum time instant, and [0230] when a connection to the remote device is established before the connection time reaches the maximum time instant, the communication unit is configured to transmit the measurements provided by the plurality of sensors if the number of movement measures counted within said counting time interval exceeds the second threshold value.

[0231] Additionally or alternatively, the transmission of the data stored in the memory unit can be performed only once a predetermined condition has been identified.

[0232] In another embodiment, particularly suited for using the pen for the execution of the test in a controlled environment, the remote device is configured to transmit a memorization start command when it detects that the communication unit of the pen is active.

[0233] In detail, the pen control unit is configured to implement an alternative measurement acquisition procedure, which envisages: [0234] monitoring the measurements provided by the movement sensor, [0235] activating the communication unit when a movement measure greater than the first transmission threshold value is detected; [0236] when a connection is established between the communication unit and the remote device, receiving a memorization start command, and [0237] storing the measurements provided by the plurality of sensors in the memory unit.

[0238] In addition, it is envisaged the remote device to transmit a memorization stop command, in response to the reception of which, the control unit of the pen is configured to: [0239] stopping the storage of the measurements provided by the plurality of sensors in the memory unit.

[0240] Optionally, the communication unit can be switched off until discontinuation in the use of the pen is detected—for example when the movement measure is null or less than the first threshold value for at least a predetermined period of time. Alternatively, the communication unit can be switched off and back on periodically.

[0241] Preferably, the control unit of the pen is configured to transmit at least part of the stored measurements when a connection is established with the remote device, after: [0242] having received a memorization stop command from the remote unit, [0243] having received a data transmission command from the remote unit, or [0244] a discontinuation in the use of the pen has been detected

[0245] In one embodiment, the remote device is configured to transmit the memorization start command only when a connection with a speed—for example in terms of bitrate bit/s—less than a threshold value is detected, in order to ensure a continuity of the acquired data and to minimize a possibility of losing information during transmission. Similarly, the acquisition of the data stored in the memory unit by the remote device can be performed once an adequate connection velocity to ensure a correct transmission of the information is detected.

[0246] For example, in one embodiment, the measurements stored in the memory unit are made available to the remote processor only when it is detected that the pen is connected to a power source for recharging the battery. Again, nothing prevents the processing device from being configured to transmit a request to make available any data stored in the memory unit of the pen when a communication channel is established.

[0247] In addition or alternatively, nothing prevents—in an alternative procedure (not shown)—from providing that the pen can suspend or stop the communication channel with the processing device in response to the detection of a predetermined event. For example, the control unit of the pen may be configured to deactivate the unit BLE when a cancellation of one or more, preferably all, of the movement measures for a predetermined period of inactivity is detected.

[0248] In alternative embodiments, the algorithm for eliminating the baseline used in procedure 400 can be defined by adapting the teachings contained in Barkauskas, Donald A, and David M Rocke. “A general-purpose baseline estimation algorithm for spectroscopic data” Analytica chimica acta, 2010, vol. 657,2 pages 191-7, in Vincent Mazet “Background correction” (https://www.mathworkscom/mat/abcentral/fileexchange/27429-background-correction), MATLAB Central File Exchange, Retrieved Mar. 26, 2020, or in Zhang, Zhimin & Chen, Shan & Liang, Yi-Zeng; “Baseline correction using adaptive iteratively reweighted penalized least squares” The Analyst, 2010, Vol. 135, pages 1138-46.

[0249] Again, nothing prevents from configuring the procedure 600 to analyze time series consisting of a set of consecutive strokes and, possibly, on-air periods, rather than a single stroke. In particular, time series can correspond to a symbol or an entire word.

[0250] It will be apparent to the person skilled in the art that a single, or a combination of two or more, of the procedures 400-700 presented above form a method for analyzing handwriting of an individual being examined. In addition, one or more steps of the same procedure or of different procedures can be performed in parallel with each other or with a different order from the one presented above. Similarly, one or more optional steps can be added or removed from one or more of the procedures described above.

[0251] Again, the system 1 can be configured to perform a procedure for analyzing writing flows W in which the stored data are analyzed as a whole to recognise a symptom of a neurodegenerative pathology regardless of the specific symbol or stroke written. For example, the analysis procedure is configured to extract indicators of tremor—for example frequency, amplitude, entropy, etc. of handwriting—and monitor them over time, allowing to identify the onset of a tremor, even regardless of the identification of micrographic phenomena in the writing flows produced by the individual being examined by means of the writing instrument.

[0252] Naturally, all the details can be replaced with other technically-equivalent elements.

[0253] For example, although in the above description reference has always been made to handwriting, nothing prevents from using the pen and the system according to the embodiments of the present invention for monitoring and analyzing a drawing operation performed by the individual by means of the writing instrument.

[0254] Again, although in the description reference has been mainly made to neuronal pathologies, nothing prevents from analyzing the time trend of pressure and of the graphic line in order to carry out the early diagnosis of dysgraphia in children, to provide graphology information, and the like.

[0255] Furthermore, although the writing instrument and the system according to the present invention are particularly suitable for monitoring and for analyzing handwriting that is transparent for the user, nothing prevents the use thereof for the execution of controlled tests.

[0256] In addition, nothing prohibits using the writing instrument and/or the entire system according to the embodiments of the present invention as a user interface for performing interactive tasks not necessarily related to the writing analysis, such as for example carrying out so-called exergames or serious games that comprise writing and/or drawing tasks.

[0257] In conclusion, the materials used, as well as the contingent shapes and dimensions of the aforementioned devices, apparatuses and terminals, may be any according to the specific implementation requirements without thereby abandoning the scope of protection of the following claims. For example, the casing of the writing instrument can be made of metal, a plastic or natural material.