Patent Description:
Devices used for the continuous monitoring of a user's body in the environment and during free living conditions are known. Various sensors, for example for detecting the acceleration, the electrical resistance of the skin, the temperature of the skin, the radiated heat flow and the heart rate, are used in various combinations to determine or derive parameters such as calorie burn rate, type and level of activity and sleep status. These devices employ sophisticated algorithms to integrate various acquired data flows, in order to determine output parameters with the best possible precision (e.g., calories burned, type of physical activity, etc.). Additional sensors, to detect additional parameters, provide algorithms with additional data, to improve their accuracy.

In particular, as regards the step counting, the use of triaxial accelerometers (often integrated in portable devices) is known for providing an acceleration signal along three orthogonal axes, and processing the acceleration signal by means of step recognition algorithms in order to identify specific signal patterns that may be related to the execution of a step by the user. However, the acceleration signal processing is calibrated on an "average" or "standard" user and does not take into account specific physical conditions or needs (even if only temporary) that may arise. For example, due to physical problems, the user might take very short steps, or with a different pace from that of the average user taken as a reference in the calibration of the recognition algorithm. Or, the movement of the arms, used by software installed on board wearable devices (e.g. smartwatches), may not be indicative of a step in the event that the user has problems in the movement of the same. Other unpredictable conditions may also prevent a correct step counting.

Electric field sensors are used in alternative or in addition to accelerometer sensors for determining a user's activity, or for helping interpret the signals generated by other sensor devices.

An electric charge is a fundamental component of nature. The electrons of an element are easily transferred to another element in conditions of direct contact between the elements or at a distance. When the charge is transferred between two electrically insulated objects, a static charge is generated whereby the object with an excess of electrons is negatively charged and the object with a deficiency of electrons is positively charged.

Electrons move within an object in different ways depending on whether the object is a conducting or insulating object. In a conductor, electrons are more or less evenly distributed throughout the material and may easily move based on the influence of external electric fields. In an insulator, the charge mainly exists on the surface. The charge may however be movable, depending on the properties of the material and other environmental factors.

Devices detecting the variation of the electric field generated by a man during the movements of the same, or exploiting a capacitive-type detection are known. Technologies using the latter type of detection include, for example, touch screens, systems for detecting the occupant position in automobiles, and devices for determining the position, the orientation and the mass of an object, such as, for example, described in patent document <CIT> regarding an electric field detection device for determining the position, the mass distribution and the orientation of an object within a defined space, arranging a plurality of electrodes within the defined space. This technical solution could also be used to recognize a user's gestures, hand position and orientation, for example for interactive use with a processing system, in place of a mouse or a joystick.

Patent document <CIT> proposes the use of an electrostatic charge sensor to derive a physiological parameter or a user's activity, such as walking, cycling or energy consumption from a field or a capacitive sensor. In this document, a repetitive action in a time series (walking, running, etc.) is detected in order to monitor the type of physical activity performed.

The scientific document by <NPL>, illustrates a system and a method for counting the steps taken by a subject exploiting a contactless technique. This technique provides for detecting the electrostatic induction current, generated as a direct consequence of the movement of the subject in the environment, through an electrode placed at a distance of <NUM> from the subject. However, the experiment illustrated in this document is carried out under ideal conditions, and is a mere demonstration of the technology feasibility to step counting. This document does not teach a technique applicable in real life conditions, wherein the subject executes, in addition to steps, a plurality of other activities, each of which causes a variation of the electrostatic charge detected by the sensor. In these conditions, the detection of signal components due exclusively to the subject's steps is complex and does not guarantee high reliability on the accuracy of the detection and consequent counting.

The need is therefore felt to make up for the shortcomings of the prior art by providing a system and a method for controlling at least one functionality of an electronic device based on a gesture of a user of the electronic device that is economical but reliable, and that requires a reduced computational load.

According to the present invention, a system and a method for controlling at least one functionality of an electronic device based on a gesture of a user of the electronic device, and an electronic device that includes the system are provided, as defined in the attached claims.

For a better understanding of the invention, embodiments thereof are now described, purely by way of non-limiting example and with reference to the attached drawings, wherein:.

<FIG> illustrates, schematically, a movement detection system <NUM> according to an aspect of the present invention. The movement detection system <NUM> comprises a processing unit <NUM> of an electronic device, or system, <NUM> and an electrostatic charge variation sensor <NUM> coupled to the processing unit <NUM>. In one embodiment, the electrostatic charge variation sensor <NUM> is integrated in the device <NUM>. The processing unit <NUM> receives a charge variation signal SQ from the electrostatic charge variation sensor <NUM> and generates, according to the charge variation signal SQ, a command or control signal Sc.

The processing unit <NUM> implements, in use, a method for recognizing a gesture by a user of the device <NUM>. The recognition of this gesture causes the generation of the command or control signal Sc, which is for controlling or commanding at least one functionality of the device <NUM> (for example, enabling or disabling a functionality).

This method is represented by means of a block diagram in <FIG>.

With reference to <FIG>, block B1, the functionality to be controlled is considered off or disabled, waiting for the command signal Sc.

Then, block B2, a charge variation signal SQ generated by the electrostatic charge variation sensor <NUM> is acquired.

Then, block B3, a step of processing the charge variation signal SQ for extracting significant parameters and parameters identifying the gestures to be detected is carried out.

In the event that such gestures are detected, block B4, the aforementioned functionality of the device <NUM> is enabled (block B5); otherwise the method returns to block B2 by continuing the acquisition of the charge variation signal SQ.

In one embodiment of the present invention, not limitative of the same, the gestures to be detected are the upward movement from the ground and the successive downward movement to the ground of at least one foot, or leg, of the user. It is evident that the present invention applies analogously to other types of user gestures, such as raising or lowering the whole leg, or an arm, or other gestures. It should also be noted that, in the context of the present invention, the gesture to be detected is intended as a specific gesture performed for the purpose of activating said functionality and is not a more complex physical activity prolonged in time and constituted by the temporal repetition of a plurality of gestures more or less equal or corresponding to each other (as can be, for example, the alternation of movements of the feet during a run or a walk). To this end, in order to discriminate between a voluntary gesture performed for the purpose of activating the functionality of the device <NUM> and a gesture which is part of a complex activity such as running, the present invention provides for the extraction of significant parameters, which are typical of the gesture to be detected. In the following, a possible implementation is described with explicit reference to the raising and lowering movement of the foot. However, what is described can be applied to other gestures.

Each upward and downward movement generates a variation of electrostatic charge through the user's body, due to an exchange of charges with the ground/floor, which is detected by the electrostatic charge variation sensor <NUM>. The sequence, within a predefined time, of upward and downward movements of the user's foot or leg identifies the intention of the user of enabling the aforementioned functionality of the device <NUM> and involves, therefore, the generation of the command signal SC which enables such functionality. These steps are an implementation of block B4, which therefore includes a sub-step of recognizing the upward movement of the foot or leg and, only in the positive case, the passage to a sub-step of recognizing the downward movement of the foot or leg within a first time interval. If the downward movement of the leg occurs within this time interval, then the method moves on to block B5; conversely it returns to block B2.

By way of non-limiting example, the device <NUM> is a portable electronic device, such as a smartphone, and the functionality to be controlled is the taking of a photo (for example, in selfie mode) by means of a photo- or video-camera of the device <NUM>.

The processing unit <NUM> is, in one embodiment, a microcontroller integrated in the device <NUM>.

The movement detection system <NUM> has at least one sensitive element, or electrode (identified with the reference number <NUM> only in <FIG>), with which a part of the user's body (e.g., hand or finger) may be placed in direct electrical contact. The electrode <NUM> may be integrated in the case of the device <NUM>, or connected to the device <NUM> in another way, for example by means of an external cable or wireless connection (for example, integrated in a smartwatch connected to the device <NUM>). Other embodiments are possible, as apparent to the skilled in the art, so that the electrode <NUM> is in electrical contact with a region of the user's body during the step of controlling and commanding the aforementioned functionality.

The sensitive element (electrode) <NUM> that collects the external charge may be a metal surface or an electrode coated with dielectric material or again a metal surface placed under the case of the device integrating it. In any case, in use, the user is required to place a finger (or hand, or other portion of the body) in contact with this sensitive element <NUM>.

The movement detection system <NUM> is affected by the variation of electrostatic charge due to movements of the user. The signal deriving from specific movements (in particular, due to the upward and downward movements of a foot or leg) may be isolated and identified with respect to other movements that are not of interest and with respect to the background noise present in case of user inactivity. According to the present invention, however, it is assumed that the functionality is enabled starting from a condition of substantial stationarity of the user and therefore it is not necessary to carry out a recognition of shapes of the signal SQ to identify the shape deriving from the upward/downward movement of the foot or leg with respect, for example, to that deriving from a complex movement of the arms.

<FIG> illustrates an exemplary and non-limiting embodiment of an electrostatic charge variation sensor <NUM>. The electrostatic charge variation sensor <NUM> comprises an input 8a, electrically coupled to the electrode <NUM> which, in turn, is contactable by a portion of a user's body; the electrostatic charge variation sensor <NUM> also comprises an input 8b, electrically coupled to the input 8a by means of a resistor R0 and a capacitor C0 in parallel with each other. The pair R0, C0, connected to the electrode <NUM> and placed between the two non-inverting inputs of the two operational amplifiers OP1 and OP2, has the function of accumulating the charges collected by the electrode <NUM> and of managing the band of the input signal (to filter signals and noises at unwanted frequency).

The values of the capacitance of C0 and the resistance of R0 may be chosen according to the type of filter that it is desired to form, for example a low-pass filter, with a cut-off frequency of a few tens of Hz, for example <NUM>. For example, the capacitance of C0 is chosen in the range 5pF-5nF. For example, the resistance of R0 is chosen in the range 500MOhm-50GOhm. The values of the capacitance of C0 and the resistance of R0 may also be chosen according to the impedance of the stage to which they are connected, the usable frequency of the signal Vd and that of the interferences to be filtered (e.g. frequency of the power grid, high frequency electrical noises of the power supply circuits, etc.).

The voltage (or electric potential) Vd that is established, in use, between the inputs 8a and 8b represents the differential input of an instrumentation amplifier <NUM>.

The instrumentation amplifier <NUM> includes two operational amplifiers OP1 and OP2. A biasing stage (buffer) OP3 is used for biasing the instrumentation amplifier <NUM> to a common mode voltage VCM.

The inverting terminals of the operational amplifiers OP1 and OP2 are connected to each other by means of a resistor R<NUM>. As the two inputs of each operational amplifier OP1, OP2 are to be at the same potential, the input voltage Vd is also applied to the ends of R<NUM> and causes, through this resistor R<NUM>, a current equal to I<NUM>=Vd/R<NUM>. This current I<NUM> does not come from the input terminals of the operational amplifiers OP1, OP2 and therefore runs through the two resistors R<NUM> connected between the outputs of the operational amplifiers OP1, OP2, in series with the resistor R<NUM>; the current I<NUM>, therefore running through the series of the three resistors R<NUM>-R<NUM>-R<NUM>, produces an output voltage Vd' given by Vd'=I<NUM>·(2R<NUM>+R<NUM>)=Vd·(<NUM>+2R<NUM>/R<NUM>). Therefore, the overall gain of the circuit of <FIG> is Ad=(<NUM>+2R<NUM>/R<NUM>). The differential gain depends on the value of the resistor R<NUM> and may therefore be modified by acting on the resistor R<NUM>.

The differential output Vd', therefore being proportional to the potential Vd between the inputs 8a, 8b, is input to an analog-to-digital converter <NUM>, which outputs the charge variation signal SQ for the processing unit <NUM>. The charge variation signal SQ is, for example, a high-resolution digital stream (<NUM> bits or <NUM> bits). The analog-to-digital converter <NUM> is optional, since the processing unit <NUM> may be configured to work directly on the analog signal, or may itself comprise an analog-to-digital converter for converting the signal Vd'.

<FIG> illustrates an example of the charge variation signal SQ. The values of the potential difference Vd, induced by the charge variation, between the inputs 8a, 8b are represented on the ordinate axis of the charge variation signal SQ. This value is expressed here in LSB ("Least Significant Bit"), i.e. the minimum digital value output from the analog-to-digital converter, which is proportional to the potential difference Vd present at the inputs 8a, 8b. Typically <NUM> LSB corresponds to a value ranging between a few uV and a few tens of µV. The constant of proportionality (or sensitivity) depends on the gain of the amplifier, the resolution of the analog-to-digital converter and any digital processing (e.g., oversampling, decimation etc.). The representation in LSB is common in the art and disregards a quantification in physical units, since the aim is typically to detect relative variations, with respect to a steady state or base state.

The progressive numbers of the acquired sample are represented on the abscissa axis of the charge variation signal SQ. The reported measurements have been made with a sampling frequency equal to <NUM>, thus each sample is temporally spaced from the following and the previous by <NUM>.

As may be seen from <FIG>, the charge variation signal SQ has a plurality of peaks p1-p10 that follow each other temporally with amplitude much greater than the background noise.

Each peak p1-p10 is caused by a respective upward movement of the user's foot or downward movement of the user's foot. The peaks p1-p10 are identified in the signal Vd' (then sampled generating the signal SQ), but what is described here applies in an equivalent manner to the signal Vd. In fact the amplification stage (instrumentation amplifier of <FIG>) is useful, but not always necessary. If the charge variation signal to be acquired (caused by the movement of the user) is sufficiently large or if the electrical characteristics of the analog-to-digital converter allow it (e.g., high input impedance, high resolution, full scale suitable for the signal to be converted, etc.), then this amplification stage may be omitted, and the inputs 8a and 8b are the inputs of the analog-to-digital converter.

Negative peaks p1, p3, p5, p7, p9 are generated when the user performs an upward movement of his/her foot, while positive peaks p2, p4, p6, p8, p10 are generated when the user performs a downward movement of his/her foot previously moved upward. By way of example when, starting from time <NUM>, the user moves his/her foot upward for the first time, the negative peak p1 of the signal SQ is generated and, when the same foot is subsequently moved downward, the positive peak p2 in the signal SQ is generated. The same situation occurs for the generation of the other pairs of negative and positive peaks (foot that is moved upward: generation of p3, foot that is moved downward: generation of p4, etc.).

According to an aspect of the present invention, a sampling of the voltage Vd' is provided at a sampling rate of <NUM>, generating the signal SQ. The sampling rate is for example equal to <NUM>, but may be different, for example chosen in the range <NUM> to <NUM>.

Optionally, a filtering of the signal SQ is also provided, to remove or attenuate any spectral components not related to the movement to be detected. For example, it is possible to cary out a low-pass filtering to attenuate the components of the signal SQ greater than <NUM>, in order to reduce the noise induced by the electric field of the power grid (usually to <NUM> or <NUM>) as much as possible.

According to the present invention, parameters of interest are also extracted from the signal SQ (hereinafter, reference is made to "signal SQ" to indifferently identify such signal SQ with or without filtering) which are used to detect the gestures of the user (as said, movement of the foot upward from/downward to the ground) and to discriminate this specific gesture with respect to complex movements such as a prolonged physical activity, walking or running (the latter, in fact, generate a charge variation signal with signal characteristics different from those of the charge variation signal generated by the gesture considered here and useful to activate the functionality of the device <NUM>). This operation provides for calculating the derivative with respect to the time of the signal SQ (hereinafter, identified as SQ'); the signal SQ' is illustrated in <FIG>. The calculation of the temporal derivative therefore has the specific function of extracting, isolating and enabling the identification of said specific characteristics of the gesture to be detected.

In the previously illustrated embodiment, the voltage Vd' is, as said, sampled at <NUM>. This means representing <NUM> seconds of the signal Vd' with N=<NUM> samples SQ(<NUM>),. , SQ(N) of the signal SQ. For each sample SQ(<NUM>),. , SQ(N) of the signal SQ, a derivative value is calculated (or estimated) according to a known method, for example according to the "forward difference method" which provides for calculating the difference between two consecutive samples divided by time unit.

Other methods allow the derivative to be estimated with higher accuracy and less sensitivity to noise, employing a greater number of points. In the method known as "second order central difference" it is yi=(xi+<NUM>-xi-<NUM>)/2dt, that is for estimating the value yi of the derivative y(n) of a function, at the i-th sampling step and of duration dt, it is necessary to know the values xi+<NUM> and xi-<NUM> of the function x(n), respectively at the following and previous sampling step. In the method known as "fourth order central difference" it is yi=(-xi+<NUM>+8xi+<NUM>-8xi-<NUM>+xi-<NUM>)/12dt: in this case there is a better estimate of the derivative, at the expense of a greater complexity of calculation and use of memory, as it is necessary to know the values of the function x(n) with <NUM> sampling steps.

The components of the derivative SQ' of the charge variation signal SQ which identify the execution, by the user, of the gesture to be detected, are then extracted.

To this end, a comparison by means of double threshold ±ThQ is used to identify the components of the signal SQ' identifying the expected gesture.

In particular, the variation of the signal SQ of <FIG> due to the upward movement of the foot generates the negative peak p1, whose derivative over time is represented in <FIG> by a sequence of two peaks, of which a first negative peak p1' and then a positive peak p1"; similarly, the variation of the signal SQ of <FIG> due to the successive downward movement of the foot generates the positive peak p2 whose derivative over time is represented, in <FIG>, by a sequence of two peaks, of which a first positive peak p2' and then a negative peak p2".

In <FIG>, the values of the derivative calculated on the basis of the signal SQ using the same representation in LSB of <FIG> are represented on the ordinate axis. The derivative provides a measure of the "speed", or of the rate, with which the signal SQ varies. The progression of the acquired samples is represented on the abscissa axis of <FIG>, similarly to <FIG>.

The exceeding (towards negative values) of the threshold -ThQ by the signal SQ' (peak p1') followed by the successive exceeding (towards positive values) of the threshold +ThQ by the same signal SQ' (peak p1") is associated with the execution of an upward movement of the foot by the user. The exceeding (towards positive values) of the threshold +ThQ by the signal SQ' (peak p2') followed by the exceeding (towards negative values) of the threshold -ThQ by the same signal SQ' (peak p2") is associated with the execution of a downward movement of the foot by the user. By recognizing therefore this sequence of events in the signal SQ' it is possible to identify the expected upward and successive downward movements of the foot by the user.

Similar considerations apply to the pairs of peaks (p3', p3") and (p4', p4"), identifying the upward movement of the foot identified by peak p3 and, respectively, the downward movement of the foot identified by peak p4, and so on.

As noted from <FIG>, where there are no movements of the user, the signal SQ varies slightly, and is substantially constant (unless of a variation due to electrostatic noise phenomena). The derivative SQ' of the signal SQ is, in this context, substantially equal to zero (or with a mean value equal to zero). On the contrary, in the presence of the expected gesture, the derivative SQ' shows an apparent variation, with positive peaks p1", p2', and negative peaks p1', p2" with respect to the zero value. By "negative peaks" it is therefore intended variations of the signal SQ' towards negative values (smaller than the mean value that the signal SQ' assumes in the condition of absence of movement) reaching values lower than the threshold -ThQ (exceeding of the threshold -ThQ towards negative values); by "positive peaks" it is intended variations of the signal SQ' towards positive values (greater than the mean value that the signal SQ' assumes in the condition of absence of movement) reaching values higher than the threshold +ThQ (exceeding of the threshold +ThQ towards positive values).

The Applicant has also verified that other movements, such as the oscillation of the user's arm that supports the device <NUM> during the enabling of the functionality according to the present invention, do not generate an electrostatic charge variation having a trend, in the signals SQ and SQ', comparable to that of the upward/downward movement of the foot. In fact, the electrostatic charge variation due to the movement of the arm is much lower than, and different from that, caused by the upward movement of a foot; in fact it does not arise from an exchange of charges with the ground/floor, but from a variation of the electrostatic field, induced by the movement of the body (this effect prevails with respect to the generation or transfer of charges as a result of arm-air friction).

The thresholds ±ThQ are, in one embodiment, of a fixed and preset type. In particular, the Applicant has verified that the signal produced by the movement of the leg is so strong with respect to the background noise of the signal SQ' (and, correspondingly, SQ) that each threshold ±ThQ may be preset to a value (in modulus) equal to <NUM>-<NUM> times as much as the maximum value reached by the background noise of the signal SQ', without the risk of acquiring false positives.

In one embodiment, the thresholds ±ThQ may be defined as fixed levels, based on the full scale of the sensor (<NUM>/<NUM>, <NUM>/<NUM>, <NUM>/<NUM>, etc.), or may be programmed by the user (e.g. by creating a calibration routine of the "move foot upward" and "move foot downward" gestures, with a user interface asking the user to perform a certain number of repeated actions to estimate the levels of optimal threshold, as well as, possibly, of maximum time between the two events).

The thresholds ±ThQ may be defined for example by calculating a mean and a standard deviation of the maxima (in the case of positive peaks) and the minima (in the case of negative peaks) and choosing the threshold as the mean decreased or increased (respectively for maxima or minima) by <NUM> times as much as the standard deviation.

By way of example, considering that the background noise of the signal SQ', when the user is substantially stationary, oscillates between values ± <NUM> LSB, a choice of the threshold +ThQ of value <NUM> LSB and of the threshold -ThQ of value - <NUM> LSB allows for distinguish between peaks actually due to the expected movements by the user and the background noise.

In a further embodiment, the threshold ±ThQ is of adaptive type, that is, it varies according to the trend of the signal SQ'. The calculation of the threshold ±ThQ of the adaptive type may be performed exploiting techniques known in the state of the art. For example, sliding windows or overlapping windows may be used. Other techniques for real-time calculation of adaptive threshold may be used.

As discussed with reference to <FIG>, in order to distinguish between commands actually given by the user and upward/downward movements of the foot for other reasons, it is possible, optionally, to detect a time tOFF elapsing between the detection of the positive peak p1" and the detection of the following positive peak p2'. The time tOFF is, for example, the residence time of the signal SQ' below the threshold +ThQ.

If the time tOFF elapsing between these two peaks p1", p2' is greater than a reference time interval ΔTOFF, then the command (or trigger) to enable the aforementioned functionality of the device <NUM> is not generated; conversely, the command to enable the aforementioned functionality of the device <NUM> is generated.

The choice of the value of this time interval ΔTOFF should take into account the speed of upward/downward movement of the foot, as the rising and falling edges of the peaks p1-p10 of the signal SQ (and, consequently, of the derivative thereof) vary according to the speed of the upward/downward movement of the foot.

<FIG> illustrates, by means of a flow chart, a method for calculating and evaluating the time tOFF elapsing between the upward movement of the foot and the following downward movement of the foot. These steps are part of step B4 of <FIG>.

With reference to the flowchart of <FIG>, when the upward movement of the foot is detected at step B4a (according to the modes already described), step B4b is carried out wherein a timer TQ which counts the time elapsed from the upward movement of the foot to the following resting of the foot on the ground is started.

At each acquisition iteration, the condition of "foot resting on the ground" is assessed, step B4c: if the foot has been moved downward, the acquisition of the signal SQ of step B2 stops and step B5 of <FIG> (enable functionality) is carried out.

If the resting of the foot on the ground is not detected at step B4c, it is verified, at step B4d, whether the timer TQ has exceeded the predefined reference interval ΔTOFF (for example <NUM> second, which may be set or modified by the user).

If not (TQ <ΔTOFF), the timer TQ is increased (step B4e), and the method returns to step B4a, to detect the upward movement of the foot based on new samples of the signal SQ acquired.

In case the threshold of ΔTOFF is exceeded (exit YES from block B4d), the method returns to step B4a.

Therefore, based on the steps of <FIG>, it is that toff is the time elapsing between the instant of detection of the foot moved upward and the instant of detection of the foot moved downward.

<FIG> exemplary illustrates the trend of the signals SQ and SQ' in the case of rapid movement, while <FIG> exemplary illustrates the trend of the signals SQ and SQ' in the case of slow movement. As noted, in the case of <FIG> the time tOFF is substantially less than the corresponding time tOFF of the situation of <FIG>. The applicant has however verified that the choice of a reference interval ΔTOFF of a value equal to <NUM>-<NUM> seconds, with a threshold +ThQ equal to or greater than <NUM>, covers most of the situations that occur in practice, managing to identify both slow and fast commands.

Finally, it is apparent that changes and variations may be made to what discussed above, without departing from the scope of the present invention as defined in the appended claims.

In a comparative example outside the scope of the invention as claimed, the step of detecting peaks p1-p10 by means of a threshold may be replaced by a step of recognizing the shape of the signal SQ or the signal SQ'. For example, machine learning and/or artificial intelligence techniques may be used for the automatic recognition of specific patterns of the signal SQ or SQ' associated with the gesture to be detected (upward/downward movement of the leg), so as to distinguish between different types of gestures, including a step up, a step down, a foot tap on the ground, etc..

Furthermore, it is noted that a charge variation sensor of a type not wearable by the user, but configured to remotely detect electrostatic variations generated following the execution of a step by the user, may be used. A system of this type is a distributed system and may be used, for example, in gaming or augmented reality applications, wherein the user performs his/her movements in a delimited environment, for example a room.

Furthermore, as mentioned above, the present invention applies in a similar manner as described to different types of movements or gestures of the user, in particular other than raising and lowering the foot. For example, the present invention applies to a broader raising and lowering movement of the whole leg or a portion thereof, or a raising and lowering movement of the arm, or other movements. By identifying, for each of said physical movements of the user, a first and a second characteristic of the consequently generated charge variation signal, it is possible to identify a specific pattern which can be used to control one or more functionalities of the associated electronic device.

The advantages achieved by the present invention are apparent from the preceding description.

For example, the present invention offers an opportunity of controlling a device without using the hands, which might be engaged in other purposes (for example to support the device itself). Furthermore, the present invention is not affected by the ambient brightness (critical parameter in application of facial recognition or gesture recognition according to the prior art) and is not affected by the acoustic noise (interfering in the case of voice commands). Even in the case of hands-free, the control through movement of the foot allows for not exerting pressure or movements (some unwanted) directly on the device to be controlled (key pressing, screen touching etc.) with the advantage of not altering the position, the target or the focus (in the case of a photo-camera) thereof.

Claim 1:
A system for controlling at least one functionality of an electronic device (<NUM>) based on a physical gesture of a user of said electronic device (<NUM>), comprising:
- a processing unit (<NUM>);
- an electrostatic charge variation sensor (<NUM>) provided with an electrode (<NUM>), the electrostatic charge variation sensor (<NUM>) being coupled to the processing unit (<NUM>) and configured to detect, when the electrode (<NUM>) is in electrical contact with a region of user's body, a variation of the electrostatic charge of the user during the execution of said gesture by the user and generate a charge variation signal (SQ),
wherein said gesture includes a first physical movement executed by said user and a second physical movement, temporally subsequent to the first physical movement, executed by said user,
and wherein the processing unit (<NUM>) is configured for:
- acquiring the charge variation signal (SQ),
- detecting, in the charge variation signal (SQ), a first signal characteristic that corresponds to said first physical movement,
- detecting, in the charge variation signal (SQ), a second characteristic that corresponds to said second physical movement, and characterised by
controlling said functionality of the electronic device (<NUM>) only in the event that both the first and the second signal characteristics have been detected,
wherein the operation of detecting the first signal characteristic includes:
- calculating the derivative function (SQ') of said charge variation signal (SQ);
- defining a negative comparison threshold (-ThQ) and a positive comparison threshold (+ThQ) for said derivative function (SQ');
- identifying, in said derivative function (SQ'), a first negative peak (p1') having amplitude that exceeds said negative comparison threshold (-ThQ); and
- identifying, in said derivative function (SQ'), a first positive peak (p1"), temporally following the first negative peak (p1'), having amplitude that exceeds said positive comparison threshold (+ThQ),
and wherein the operation of detecting the second signal characteristic includes:
- identifying, in said derivative function (SQ'), a second positive peak (p2'), temporally following the first positive peak (p1"), having amplitude that exceeds said positive comparison threshold (+ThQ); and
- identifying, in said derivative function (SQ'), a second negative peak (p2"), temporally following the second positive peak (p2'), having amplitude that exceeds said negative comparison threshold (-ThQ).