The field of the invention is that of determining information regarding the displacement of an object from measurements provided by an accelerometer. The invention more particularly relates to the automatic recognition of a mode of travel of the object by means of detecting acceleration peaks and of characterising these peaks in order to identify an acceleration profile typical of a transportation mode.
A known method of automatically identifying the transportation mode used by a user of a smartphone mobile terminal involves identifying an acceleration profile (duration, amplitude and frequency of the acceleration peaks) characteristic of a transportation mode. Reference can be made, for example, to the article by S. Hemminki, P. Nurmi, and S. Tarkoma, “Accelerometer-based transportation mode detection on smartphones”, Proceedings of the 11th ACM Conference on Embedded Networked Sensor Systems 2013, pp. 1-14, which proposes detecting acceleration peaks by exceeding a threshold for the horizontal acceleration norm.
Such an approach requires obtaining measurements from an accelerometer over relatively long time windows, which can last as long as several minutes, in order to differentiate between a subway journey and a tram journey. However, embedded systems generally have a limited storage capacity.
The purpose of the invention is to propose a method allowing for the data useful for extracting the characteristics of the acceleration peaks to be compressed, without deteriorating the performance of the automatic recognition of the mode of travel. For this purpose, it proposes a method for determining information regarding the displacement of an object from measurements provided by an accelerometer associated with the object. The method comprises steps of detecting acceleration peaks in the measurements, of calculating one or more characteristics of the acceleration peaks detected, and of determining a mode of travel of the object from the one or more calculated characteristics. The method comprises, before the step of detecting acceleration peaks, a step of non-uniformly sampling the measurements. The step of non-uniformly sampling the measurements comprises a regular sampling of the measurements, the detection of local extrema in the measurements regularly sampled and a non-uniform resampling carried out to keep the local extrema.
Some preferred, however non-limiting aspects of said method are as follows:
Other aspects, purposes, advantages and characteristics of the invention will be better understood upon reading the following detailed description given of non-limiting preferred embodiments of the invention, provided for illustration purposes, with reference to the accompanying figures, in which:
The invention relates to a method for determining information regarding the displacement of an object from measurements provided by an accelerometer associated with the object. The object can be a mobile terminal of a user, for example a smartphone.
The method according to the invention comprises the steps of detecting acceleration peaks in the measurements, of calculating one or more characteristics of the acceleration peaks detected, and of determining a mode of travel of the object from the one or more calculated characteristics. The invention proposes, before the step of detecting acceleration peaks, implementing a step of non-uniformly sampling the measurements.
The step of non-uniformly sampling the measurements can comprise a regular sampling of the measurements, the detection of local extrema in the measurements regularly sampled and a non-uniform resampling carried out to keep the local extrema.
According to the example embodiment showing the method according to the invention, an accelerometer of the three-axis sensor type is used and the measurements produced by said accelerometer are thus three-dimensional (three acceleration components). In a first embodiment, the axis of maximum variance can be determined and the detection of local extrema can be carried out in the acceleration component corresponding to this axis of maximum variance. In a second embodiment, the detection of local extrema can be carried out in each of the three acceleration components, whereby the detection of a local extremum in one of the components results in resampling from the other two components. This second embodiment results in a higher number of samples.
Other conditions can be added in order to resample more points, in particular random sampling or sufficient elapsed time or sufficient signal variation conditions. Thus, non-uniform resampling can furthermore be carried out in order to keep a sample when the duration separating said sample from a previously kept sample is greater than a time threshold Δtmax. It can also be carried out in order to keep a sample when the amplitude variation between said sample and a previously kept sample is greater than an amplitude threshold Δxmax. Lastly, it can also be carried out to keep randomly selected samples.
The detection of local extrema can be carried out on a sliding-window covering a plurality of successive samples of the acceleration measurements and can comprise the calculation of one or more growth rates between samples in the window.
Let's consider an acceleration component x sampled at times t(k) referenced by the index k. The detection of the local extrema is, for example, carried out from a sliding-window covering three successive samples k−1, k and k+1. The successive growth rates Δx(k−1)=x(k)−x(k−1) and Δx(k)=x(k+1)−x(k) are calculated in order to determine whether the central sample k is at the apex of a triangle formed by the three samples and thus constitutes a local extremum. More particularly, as shown in
Moreover, a threshold concerning a minimum duration between two samples Δtmin can be adopted, and/or a threshold concerning a minimum amplitude between two samples Δxmin can be adopted so as not to trigger resampling as long as the duration that has lapsed since the last sample stored in memory is less than Δtmin and/or as long as the variation in signal amplitude has not reached Δxmin.
In one possible embodiment, the detection of local extrema further comprises storing the extremum type of the last detected extremum in memory, i.e. whether it is a local maximum or minimum. In this manner, only a single growth rate Δx(k)=x(k+1)−x(k) must be calculated. More specifically, a maximum (or respectively a minimum) is identified in the sample k if the last identified extremum is a minimum (or respectively a maximum) and if the growth rate is negative (or respectively positive).
In one alternative embodiment, the detection of local extrema comprises correlating regularly sampled samples with one or more predetermined waveforms, and detecting a local extremum in the case wherein a correlation peak is identified. The one or more waveforms are typically representative of the forms of the acceleration peaks expected for the different transportation modes.
Once resampling has been carried out, the method according to the invention implements a step of detecting acceleration peaks from the non-uniformly sampled measurements.
This step of detecting acceleration peaks comprises determining a direction of travel of the object. Let's suppose that M samples result from the non-uniform sampling. The gravity is estimated by calculating the mean of the signal in the time window:
where αm(i) is the i-th resampled sample of the acceleration measurement (three-dimensional). By deducting the estimated gravity from the measured acceleration, an estimation of the natural acceleration of the object is obtained: {circumflex over (α)}(i)=αm(i)−ĝ.
The direction of the movement can thus be determined by performing a principal component analysis of the natural acceleration {circumflex over (α)} and by assuming that the direction of the movement is that of maximum variance.
In order to carry out this principal component analysis, the natural acceleration {circumflex over (α)} is firstly projected in the horizontal plane, in other words, the vertical component is deducted from the natural acceleration: αh(i)={circumflex over (α)}(i)−{circumflex over (α)}(i)Tv, where v is a unit vector that is the opposite of ĝ (i.e. v=−ĝ/∥ĝ∥). If the horizontal acceleration αh is a three-dimensional vector, the samples thereof are contained within a two-dimensional sub-space (i.e. contained within the horizontal plane). A principal component analysis of the horizontal acceleration is carried out. The direction of maximum variance h1 is given by the eigenvector corresponding to the maximum eigenvalue of the correlation matrix of the horizontal acceleration (3×3 matrix).
This analysis is based on the estimation of the gravity, which can be problematic. The hypothesis that the natural acceleration is zero on average in the time window is not always easy to meet in practice. One alternative approach is to carry out the principal component analysis on the measured acceleration αm. The problem of estimating the gravity is avoided, however the hypothesis that the direction of the movement is that of maximum variance is more difficult to verify, especially in the presence of noise or vibrations (in particular along the vertical axis).
Once the direction of the movement has been identified to be along the first principal axis h1, the horizontal acceleration (or the natural acceleration depending on the chosen method) is projected along h1 in order to obtain a longitudinal acceleration αh1 corresponding to the non-uniformly sampled measurements projected in the direction of travel of the object. The step of detecting the acceleration peaks is continued by determining, from the longitudinal acceleration αh1, an adaptive acceleration peak detection threshold. The determination of this threshold can in particular comprise the calculation of the variance in the non-uniformly sampled measurements.
In order to simplify the nomenclature, the longitudinal acceleration αh1 has been renamed x. The sample variance σ2 in a window of M samples of an irregularly-sampled signal x is calculated as follows:
The acceleration peak detection threshold can be calculated based on the full width at half maximum H of the normal distribution that is proportional to σ:H=2√{square root over (2 In 2)} σ, and the threshold s is taken to be equal to half of H:s=H/2.
The delimitation of an acceleration peak comprises comparing the amplitude of the non-uniformly sampled measurements with a noise threshold E. An acceleration peak is thus formed of successive non-uniformly sampled measurements, the amplitude whereof is greater than the noise threshold E and which include at least one measurement, the amplitude whereof is greater than the peak detection threshold s. The use of a noise threshold makes the delimitation of the acceleration peaks resistant to noise.
As shown in
Once the acceleration peaks have been detected and delimited, the method comprises calculating one or more characteristics of each acceleration peak in order, for example, to automatically classify the transportation modes. For example, at least one characteristic of the following group of characteristics is determined: mean amplitude, mean duration and frequency of the acceleration peaks. The automatic classification can be carried out by means of algorithms such as decision trees or random forests.
The invention is not limited to the method as described hereinabove, but also extends to a computer program comprising instructions for carrying out this method when said program is executed on a computer. The invention further extends to a device, for example to a device embedded within a mobile terminal of a user, comprising a data processing unit configured to implement this method.
It can be seen from the above description that the invention in particular proposes resampling upon the detection of extrema of the axis of maximum variance or coupled over the three axes. For more reliability, this resampling can be enhanced with the detection of thresholds and/or by random sampling. The invention further proposes estimating the longitudinal acceleration and calculating characteristics of the longitudinal acceleration profile by means of the detection of acceleration peaks by exceeding an adaptive threshold. The invention thus has the advantage of allowing a data compression that suits the content. It does not require reconstruction of the signal in order to extract the characteristics, is simple to implement, and can undergo simple configurations.
The paragraphs below present two example embodiments of the invention. In each of these examples, the following configurations are used: Δtmax=5 s, Δxmax=0.2 m/s2, Δtmin=0 s and Δxmin=0.02 m/s2.
The first example corresponds to a journey by subway. The sampling frequency of the three-axis accelerometer is 100 Hz, the time window considered is 60 seconds, the number of samples is 6000 and a low-pass filtering with a 2 Hz cut-off frequency at −3 dB is carried out on the actual measurements provided by the accelerometer.
The second example corresponds to a journey by car. The sampling frequency of the three-axis accelerometer is 86.5 Hz, the time window considered is 30 s, the number of samples is 2566 and a low-pass filtering with a 2 Hz cut-off frequency at −3 dB is carried out on the actual measurements provided by the accelerometer.
Number | Date | Country | Kind |
---|---|---|---|
1852448 | Mar 2018 | FR | national |
Number | Name | Date | Kind |
---|---|---|---|
10024757 | Niehues | Jul 2018 | B1 |
20080238423 | Bin et al. | Oct 2008 | A1 |
20120257698 | Li et al. | Oct 2012 | A1 |
20130090881 | Janardhanan | Apr 2013 | A1 |
20140330535 | Van Den Heuvel | Nov 2014 | A1 |
20140358472 | Goel | Dec 2014 | A1 |
20150112218 | Shani | Apr 2015 | A1 |
20160327397 | Cordova | Nov 2016 | A1 |
20170000384 | Annegarn | Jan 2017 | A1 |
20170063475 | Feng | Mar 2017 | A1 |
20170122769 | Martin | May 2017 | A1 |
20190110162 | Pereira Da Silva et al. | Apr 2019 | A1 |
20190110272 | Pereira Da Silva et al. | Apr 2019 | A1 |
Entry |
---|
Search Report for French application No. 1852448 dated Jan. 3, 2019. |
Hemminki, Samuli et al. “Accelerometer-Based Transportation Mode Detection on Smartphones” IN: Proceedings of the 11th ACM Conference on Embedded Networked Sensor Systems, 2013, pp. 1-14. |
“Nonuniform sampling”, Wikipedia, Dec. 8, 2006. |
U.S. Appl. No. 16/272,322 entitled “Calibration Method for a Triaxial Sensor With Selection of a Calibration Method as a Function of the Spatial Distribution of Measurements” filed Feb. 11, 2019. |
Number | Date | Country | |
---|---|---|---|
20190293678 A1 | Sep 2019 | US |