The present invention relates to a method for determining the position of impacts, and a device using this method.
A known method for determining the position of impacts on an object is suggested by Patent FR 2 841 022. According to this document, the object may comprise two acoustic sensors and N predetermined active areas of said object, whereby N is an integer at least equal to 1. In order to determine the active area in which an impact occurred, acoustic signals received by the acoustic sensors are compared with N acoustic signals, recorded in a database, and each corresponding with one of the N predetermined areas. Consequently, it leads to 2N comparison calculations to complete the task, when two sensors are used.
An object of the present invention is to provide a method for determining an impact position, whose calculation velocity is improved, and which does not require a high computing power.
The invention thus proposes a method for determining the position of impacts on an object, said object comprising:
two acoustic sensors;
N predetermined active areas, whereby N is an integer at least equal to 1;
said method comprising the steps of:
(a) receiving two acoustic signals S1(t) and S2(t) originating respectively from said acoustic sensors and generated by an impact received on said object;
(b) calculating a sample signature function:
SIG
S(ω)=S1(ω)·S2(ω)*,
where S1(ω) and S2(ω) are the respective Fourier transforms of S1(t) and S2(t), and where * is the complex conjugate operator;
(c) comparing SIGS(ω) with N predetermined reference signature functions SIGRj(ω) each corresponding to a predetermined active area j, for j from 1 to N;
(d) determining an active area in which the impact occurred, on the basis of the comparison of step (c).
In various embodiments of the method according to the invention, at least one of the following characteristics may be used:
SIG
R
(ω)=R1j(ω)·R2j(ω)*
where R1j(ω) and R2j(ω) are Fourier transforms of acoustic signals R1j(t) and r2j(t) received by each of the respective acoustic sensors when an impact occurs on the predetermined area j;
αj=K·∫Bδj(ω)·dω,
where B is a frequency interval and K a constant;
Besides, another object of the invention is a device for determining the position of impacts on an object, by comprising:
two acoustic sensors adapted to be borne by said object for receiving acoustic signals S1(t) and S2(t) generated by an impact on said object;
memory means comprising N reference signature functions, corresponding to N predetermined active areas of said object, whereby N is an integer at least equal to 1;
calculation means for calculating a sample signature function
SIG
S(ω)=S1(ω)·S2(ω)*,
where S1(ω) and S2(ω) are the respective Fourier transforms of S1(t) and S2(t), and where * is the complex conjugate operator;
comparison means for comparing SIGS(ω) with N predetermined reference signature functions SIGR
processing means for determining an active area (1a) in which the impact occurred, on the basis of results given by said the comparison means.
In various embodiments of the device according to the invention, one may use one and/or other of the following features:
SIG
R
(ω)=R1j(ω)·R2j(ω)*
where R1j(ω) and R2j(ω) are Fourier transforms of acoustic signals r1j(t) and r2j(t) received by each of the respective acoustic sensors when an impact occurs on the predetermined area j;
αj=K·∫Bδj(ω)·dω,
where B is a frequency interval and K a constant;
This method and this device permit to reduce the number of comparisons to N, as the sampled acoustic signals are no longer compared with each reference acoustic signal, but with a signature function for each pair of reference acoustic signals. Furthermore, the calculation of the signature functions does not require a high calculation power. Moreover, as explained below, the phase of a signature function does not depend on the excitation waveform, but only on the place in which the impact occurred. Consequently, by studying only the phase of the signature function, the active area in which the impact occurred may be determined.
Other features and advantages of the invention will appear from the following description of three embodiments of the invention, given by way of non-limiting example, with regard to the appended drawings. In the drawings:
As illustrated by
This object 1 may be for instance a table, a door, a wall, a screen or other things, and is made for instance of wood, metal, cement, glass or other materials. The acoustic sensors SENS1 and SENS2 may be for example piezoelectric sensors or any other sensor able to sample a vibration transmitted in the object, such as capacitive sensors, magnetostrictive sensors, electromagnetic sensors, acoustic velocimeters, optical sensors (laser interferometers, laser vibrometers), etc.
The output of the sensors SENS1, SENS2 may be connected respectively to amplifiers 3 and 4, the output of which is respectively connected to filters (F) 5, 6. The bandwidth of each filter 5 and 6 may be in the range of 300 Hz to 20000 Hz. The output of the filters 5, 6 is connected to a multiplexer 7, the output of which is connected to an analog to digital converter (ADC) 8. The output of the analog to digital converter 8 is connected to a processing unit (PU) 8 such as a microprocessor, a microcontroller, a DSP (digital signal processor), a programmable logical array (CPLD, FGPA), etc. The processing unit 9 may be connected to a RAM 9a and to a ROM 10.
The ROM 10, or any other memory communicating with the processing unit 9, contains a database of N reference signature functions SIGRj(ω), for j=1 . . . N, corresponding to N predetermined active areas 1a of the object 1, as will be described hereafter. Each of these active areas may correspond for instance to a particular information, and may be materialized or not by a marking or other indication on the object.
The ROM 10 may be a hard disk, but also an EPROM, or an EEPROM, or likewise. Using an EEPROM can permit to reconfigure easily the device, for example for other applications, by recording new active areas 1a.
The reference signature functions may be for instance calculated during a learning step, e.g. before the device is used in normal use. The reference signature functions may be calculated for each single device 1-10, or these reference signature functions may be calculated only once for one device 1-10 and then used for all identical devices during normal use.
During the learning step, one generates an impact on each predetermined active area 1a of the object 1, which is sensed by sensors SENS1, SENS2. For each impact on an active area j (j=1 . . . N), the sensors SENS1, SENS2 generate acoustic signals which are respectively amplified by amplifiers 3, 4, filtered by filters 5, 6, multiplexed by multiplexer 7 and sampled by analog to digital converter 8. Analog to digital converter 8 thus outputs two reference signals r1j(t), r2j(t) originating respectively from the two sensors SENS1, SENS2.
Respective Fourier transforms R1j(ω), R2j(ω) of the reference acoustic signals r1j(t), r2j(t) are then computed. The Fourier transform Rij(ω) of each reference acoustic signal equals:
R
ij(ω)=Ci(ω)·HRij(ω)·ERj(ω), (1)
where Ci(ω) is the Fourier transform of the impulse response of sensor i (i=1, 2), HRij(ω) is a propagation function, dependant on an acoustic wave propagation path in the object between active area j and sensor i, and ERj(ω) is the Fourier transform of the impact waveform on active area j.
Then, a reference signature function is calculated:
SIG
Rj(ω)=R1j(ω)·R2j(ω)*, (2)
where * is the complex conjugate operator.
When using equation (1) to develop equation (2), one obtains:
SIG
Rj(ω)=C1(ω)·HR1j(ω)·ERj(ω)·C2(ω)*·HR2j(ω)*·ERj(ω)*. (3)
ERj(ω)·ERj(ω)*=|ERj(ω)|2, so that equation (3) is equivalent to equation (4):
SIG
Rj(ω)=C1(ω)·C2(ω)*·HR1j(ω)·HR2j(ω)*·|ERj(ω)|2 (4)
During normal use of the device, when an impact is generated on the object 1, e.g. when a user hits or touches the object 1 with a finger or with another object (stylus, pen or else) the sensors SENS1, SENS2 receive acoustic signals. These acoustic signals are amplified by amplifiers 3 and 4, filtered by filters 5 and 6, multiplexed by multiplexer 7 and then sampled by analog to digital converter 8.
The sampled signals Si(t) originating respectively from the sensors i (i=1, 2 in the present example) are then processed by processing unit 9, for instance according to a first embodiment of the method of the invention as shown in the flow chart of
In this embodiment, respective Fourier transforms S1(ω) and S2(ω) of the two sampled acoustic signals S1(t) and S2(t) are computed (preferably only for positive frequencies ω) by calculation means in steps S101 and S102. These Fourier transforms may be Fast Fourier Transforms (FFT), permitting thus to obtain quick results, without a high calculation power.
The Fourier transform Si(ω) of each acoustic signal equals:
S
i(ω)=Ci(ω)·HSi(ω)·ES(ω) (5)
where Ci(ω) is the Fourier transform of the impulse response of sensor i, HSi(ω) is a propagation function, dependant on an acoustic wave propagation path in the object between the location of the impact and sensor i, and ES(ω) is the Fourier transform of the impact waveform.
At step S103, the calculating means compute a sample signature function:
SIG
S(ω)=S1(ω)·S2(ω)*, (6)
where * is the complex conjugate operator.
When using equation (5) to develop equation (6), one obtains:
SIG
S(ω)=C1(ω)·HS1(ω)·ES(ω)·C2(ω)*·HS2(ω)*·ES(ω)*. (7)
ES(ω)·ES(ω)*=|ES(ω)|2, so that:
SIG
S(ω)=C1(ω)·C2(ω)*·HS1(ω)·HS2(ω)*·|ES(ω)|2 (8)
After initializing comparison means at step S104, for each predetermined area j of the object, an intermediary estimator (correlation function) is calculated at step S105:
COR
j(ω)=SIGRj(ω)·SIGS(ω)*. (9)
When using equations (4) and (8) to develop equation (9) one obtains equation (10):
COR
j(ω)=|C1(ω)|2·|C2(ω)|2·|ERj(ω)|2·|ES(ω)|2·HR1j(ω)·HR2j(ω)*·HS1(ω)*·HS2(ω) (10)
Since |C1(ω)|2, |C2(ω)|2, |ERj(ω)|2 and |ES(ω)|2 are square moduluses whose phase equals zero, the phase φ(CORj(ω)) of the intermediary estimator CORj(ω) does not depend on the impulse responses C1(ω), C2(ω) of the sensors 3, 4 and on the impact waveforms ERj(ω), ES(ω). This phase φ(CORj(ω) depends only on the phase of HR1j(ω)·HR2j(ω)*·HS1(ω)*·HS2(ω), i.e. on the acoustic wave propagation paths in the object during the learning step and the.
The method of the present invention is based on the observation that:
COR
j(ω)=|C1(ω)|2·|C2(ω)|2·|ERj(ω)|2·|ES(ω)|2·|H1j(ω)|2·|H2j(ω)|2 (11).
Thus, it is possible to determine whether an impact on the object 1 was made on any active area 1a, and if so, to determine on which active area.
Since the method of the invention is based on direct or indirect determination of the phase of CORj(ω), it should be noted that the accuracy of this method is not altered by the use of different types of impact or by the use of sensors 3, 4 of different characteristics, because this phase is in any case independent from the impact waveforms used during the learning step and during normal use, and because this phase is also independent from the responses of the sensors SENS1, SENS2.
In steps S106 and S107, the phase φ(CORj(ω)) is examined, to estimate how much SIGS(ω) matches with SIGRj(ω). To this end, the comparison means may calculate a function δj(ω) in Step 106, as shown
It should be noted that, in step S106, it is not necessary to compute φ(CORj(ω)). For instance, if b1=−a1, the function δj(ω) may as well be calculated as follows:
In step S107, the function δj(ω) is integrated on a study frequency interval B=[ωmin, ωmax] in order to obtain a similarity estimator
αj=K·∫Bδj(ω)·dω, where K is for example a constant of normalization, which equals to (or is proportional to) the inverse of the length of the interval B: K=1/(ωmax−ωmin).
This estimator αj is simple to compute, does not require a high calculation power and correctly represents the similarity of the sampled signals s1(t), s2(t) with the reference signals r1(t), r2(t).
Once the N similarity estimators αj are calculated and stored in a memory, the maximal similarity estimator αj
In order to eventually determine the active area in which an impact occurred, the greatest similarity estimator αj
In a second embodiment of the invention, several angular intervals Ii may be used in step 106, the other steps remaining the same as in the first embodiment. For example,
There, the phase φ(CORj(ω)) is studied as follows:
As in the first embodiment of the invention, it should be noted that, in step S106, it is not necessary to compute φ(CORj(ω)). For instance, if b1=−a1, b2=−a2, and b3=−a3, then the function δj(ω) may as well be calculated as follows:
if Re(CORj(ω))≧|Im(CORj(ω))|/tan(a1), then δj(ω)=δ1=1;
Re(CORj(ω) and Im(CORj(ω)) are respectively the real part and the imaginary part of the complex number CORj(ω).
For instance, ε2 and ε3 could respectively equal cos (a1) and cos(a2).
More generally, the phase of CORj(ω) could be compared to a plurality of n angular thresholds 0<a1<a2< . . . <an as follows:
if |Im(CORj(ω))|/tan(ak-1)>Re(CORj(ω))≧|Im(CORj(ω))|/tan(ak), then δj(ω)=εk; (12)
. . .
The values εk are such that ε1>ε2>>εn>0, and these values may for instance equal: εk=cos(ak-1), for k=2, . . . n and εn+1=0.
In this second embodiment the other steps of the method can be identical to those described above with regards to the first embodiment.
In a third embodiment of the invention, as illustrated for instance in
As a matter of fact, SIGRj(ω)=Aj(ω)+jBj(ω) (Aj and Bj are respectively the real and imaginary parts of SIGRj), and SIGS(ω)*=C(ω)+jD(ω) (C and D are respectively the real and imaginary parts of SIGS), so that the above equation (12) can be written as follows:
|Bj(ω)C(ω)+Aj(ω)D(ω)|/tan(ak-1)>Aj(ω)C(ω)−Bj(ω)D(ω)>|Bj(ω)C(ω)+Aj(ω)D(ω)|/tan(ak) (13)
|Bj(ω)|·|C(ω)|·|+{Aj(ω)/Bj(ω)}·{(D(ω)/C(ω)}|/tan(ak-1)>Aj(ω)C(ω)−Bj(ω)D(ω)>|Bj(ω)|·|C(ω)|·|+{Aj(ω)/Bj(ω)}·{(D(ω)/C(ω)}|/tan(ak) (14)
βj(ω)/tan(ak-1)>γj(ω)>βj(ω)/tan(ak) (15)
wherein:
βj(ω)=|+{Aj(ω)/Bj(ω)}·{(D(ω)/C(ω)}|
γj(ω)=signBj(ω)·signC(ω)·[{Aj(ω)/Bj(ω)}−{D(ω)/C(ω)}];
signBj(ω)=1 if Bj(ω) is positive and =−1 if Bj(ω) is negative;
signC(ω)=1 if C(ω) is positive and =−1 if C(ω) is negative.
Therefore, this third embodiment, instead of calculating the correlation functions CORj(ω), the above functions βj(ω) and γj(ω) are calculated in step S105. It should be noted that this calculation is particularly simple, and only requires:
Then, at step S106, the phase of CORj(ω) is compared to n−1 angular thresholds 0<a1<a2< . . . <an−1 through equation (15) as follows:
The values εk are such that ε1>ε2> . . . >εn>0, and these values may for instance equal: εk=cos(ak-1), for k=2, . . . n.
If n=1, this comparison is limited to:
The subsequent steps S107-S111 of the method may be identical to the steps explained above for the first and second embodiments of the invention.
According to one further embodiment of the invention, the sampling of the acoustic signals may be triggered only if the signals received by the analog to digital converter 8 are greater than a trigger threshold. Consequently, the device only samples relevant acoustic signals. This permits to reduce the interference sensibility. In this embodiment, the sampled signals S1(t) and S2(t) may be delayed compared to the real signals. As a matter of fact, to avoid that the trigger threshold prevents the record of the very beginning of acoustic signals, a delay device may be added, in order to record the waveform of the signal a few microseconds before the sampling step is triggered.
Filing Document | Filing Date | Country | Kind | 371c Date |
---|---|---|---|---|
PCT/EP2004/014908 | 12/29/2004 | WO | 00 | 4/28/2008 |