Moving distance determining method, device and storage medium

文档序号:133918 发布日期:2021-10-22 浏览:35次 中文

阅读说明:本技术 移动距离确定方法、装置及存储介质 (Moving distance determining method, device and storage medium ) 是由 郝宁 于 2020-04-17 设计创作,主要内容包括:本公开是关于一种移动距离确定方法、装置及存储介质;其中,所述方法包括:采集用户移动时所产生的声音信号;根据采集的所述声音信号,确定所述用户移动时的移动参数;根据所述移动参数,确定移动距离。如此,能够基于对移动时的声音信号的采集,实现在无定位信号的条件下对移动距离的确定。(The present disclosure relates to a method, an apparatus and a storage medium for determining a moving distance; wherein the method comprises the following steps: collecting sound signals generated when a user moves; determining a movement parameter when the user moves according to the collected sound signal; and determining the moving distance according to the moving parameters. In this way, the determination of the movement distance without a positioning signal can be realized based on the collection of the sound signal during movement.)

1. A method for determining a movement distance, the method comprising:

collecting sound signals generated when a user moves;

determining a movement parameter when the user moves according to the collected sound signal;

and determining the moving distance according to the moving parameters.

2. The method of claim 1, wherein determining the movement parameter of the user when moving according to the collected sound signal comprises:

determining the step frequency of the user when moving according to the collected sound signal;

and determining the movement parameters of the user when the user moves according to the step frequency and the stride of the user.

3. The method of claim 2, wherein determining the step frequency of the user while moving according to the collected sound signal comprises:

acquiring the waveform of the sound signal according to the acquired sound signal;

determining the step frequency based on the time points of occurrence of two adjacent peak values of the same type in the waveform; wherein, two adjacent peak values of the same type include: two adjacent wave crests; alternatively, two adjacent troughs.

4. The method of claim 2, further comprising:

determining a stride of the user based on at least one of a physiological characteristic of the user, a first stride value indicated by the user input, and historical movement data of the user.

5. The method of claim 4, wherein determining the stride of the user based on at least one of the physiological characteristic of the user, the first step size value indicated by the user input, and the historical movement data of the user comprises:

determining a second step amplitude value according to the physiological characteristics of the user;

determining a third step amplitude value according to the historical movement data of the user;

and determining the stride of the user according to the first step amplitude, the second step amplitude and the third step amplitude and by combining the weight occupied by the first step amplitude, the weight occupied by the second step amplitude and the weight occupied by the third step amplitude.

6. The method of claim 5, further comprising:

determining the accumulated moving time of the user in a preset time period;

and determining the weight occupied by the amplitude of the first step, the weight occupied by the amplitude of the second step and the weight occupied by the amplitude of the third step according to the corresponding relation between the accumulated moving time and the weight.

7. The method of claim 5, wherein the first step amplitude value and the second step amplitude value are weighted equally;

the sum of the weight occupied by the amplitude of the first step, the weight occupied by the amplitude of the second step and the weight occupied by the amplitude of the third step is 1.

8. A movement distance determination apparatus, characterized by comprising:

the acquisition module is used for acquiring a sound signal generated when a user moves;

the mobile parameter determining module is used for determining mobile parameters of the user during movement according to the collected sound signals;

and the moving distance determining module is used for determining the moving distance according to the moving parameters.

9. The apparatus of claim 8, wherein the movement parameter determination module comprises:

the step frequency determining module is used for determining the step frequency of the user when the user moves according to the collected sound signals;

and the movement parameter determining submodule is used for determining the movement parameters of the user during movement according to the step frequency and the stride of the user.

10. The apparatus of claim 9, wherein the step frequency determining module comprises:

the waveform acquisition module is used for acquiring the waveform of the sound signal according to the acquired sound signal;

the step frequency determining submodule is used for determining the step frequency based on the time points of occurrence of two adjacent peak values of the same type in the waveform; wherein, two adjacent peak values of the same type include: two adjacent wave crests; alternatively, two adjacent troughs.

11. The apparatus of claim 9, further comprising:

a stride determination module to determine a stride of the user based on at least one of the physiological characteristic of the user, the first stride value indicated by the user input, and historical movement data of the user.

12. The apparatus of claim 11, wherein the stride determination module is specifically configured to:

determining a second step amplitude value according to the physiological characteristics of the user;

determining a third step amplitude value according to the historical movement data of the user;

and determining the stride of the user according to the first step amplitude, the second step amplitude and the third step amplitude and by combining the weight occupied by the first step amplitude, the weight occupied by the second step amplitude and the weight occupied by the third step amplitude.

13. The apparatus of claim 12, further comprising:

the mobile duration determining module is used for determining the accumulated mobile duration of the user in a preset time period;

and the weight determining module is used for determining the weight occupied by the amplitude of the first step, the weight occupied by the amplitude of the second step and the weight occupied by the amplitude of the third step according to the corresponding relation between the accumulated moving time and the weight.

14. The apparatus of claim 12 wherein said first step amplitude value and said second step amplitude value are weighted equally;

the sum of the weight occupied by the amplitude of the first step, the weight occupied by the amplitude of the second step and the weight occupied by the amplitude of the third step is 1.

15. A movement distance determination apparatus, characterized by comprising:

a processor;

a memory for storing processor-executable instructions;

wherein the processor is configured to: the method of any one of claims 1 to 7 when executed by executable instructions stored in the memory.

16. A non-transitory computer readable storage medium having instructions therein which, when executed by a processor of a movement distance determination apparatus, enable the movement distance determination apparatus to perform the method of any one of claims 1 to 7.

Technical Field

The present disclosure relates to the field of positioning control, and in particular, to a method and an apparatus for determining a moving distance, and a storage medium.

Background

With the improvement of the quality of life of residents, the demands of residents are shifted from basic material demands to higher-level demands, and the demands on physical quality are higher and higher. In recent years, with the spread of indoor sports and the influence of weather conditions, more and more people have started to select indoor sports. In the current indoor sports such as walking and running, a user needs to record the walking or running distance, but at the present stage, the problem that the positioning signal is unstable or cannot be used occurs in the current equipment, so that the moving distance during shipment cannot be calculated.

Disclosure of Invention

The disclosure provides a moving distance determining method, a moving distance determining device and a storage medium.

According to a first aspect of the embodiments of the present disclosure, there is provided a moving distance determining method, the method including:

collecting sound signals generated when a user moves;

determining a movement parameter when the user moves according to the collected sound signal;

and determining the moving distance according to the moving parameters.

Optionally, the determining, according to the collected sound signal, a movement parameter when the user moves includes:

determining the step frequency of the user when moving according to the collected sound signal;

and determining the movement parameters of the user when the user moves according to the step frequency and the stride of the user.

Optionally, the determining the step frequency of the user when moving according to the collected sound signal includes:

acquiring the waveform of the sound signal according to the acquired sound signal;

determining the step frequency based on the time points of occurrence of two adjacent peak values of the same type in the waveform; wherein, two adjacent peak values of the same type include: two adjacent wave crests; alternatively, two adjacent troughs.

Optionally, the method further comprises:

determining a stride of the user based on at least one of a physiological characteristic of the user, a first stride value indicated by the user input, and historical movement data of the user.

Optionally, the determining the stride of the user based on at least one of the physiological characteristic of the user, the first step size value indicated by the user input, and the historical movement data of the user comprises:

determining a second step amplitude value according to the physiological characteristics of the user;

determining a third step amplitude value according to the historical movement data of the user;

and determining the stride of the user according to the first step amplitude, the second step amplitude and the third step amplitude and by combining the weight occupied by the first step amplitude, the weight occupied by the second step amplitude and the weight occupied by the third step amplitude.

Optionally, the method further comprises:

determining the accumulated moving time of the user in a preset time period;

and determining the weight occupied by the amplitude of the first step, the weight occupied by the amplitude of the second step and the weight occupied by the amplitude of the third step according to the corresponding relation between the accumulated moving time and the weight.

Optionally, the weight occupied by the first step amplitude and the weight occupied by the second step amplitude are equal;

the sum of the weight occupied by the amplitude of the first step, the weight occupied by the amplitude of the second step and the weight occupied by the amplitude of the third step is 1.

According to a second aspect of the embodiments of the present disclosure, there is provided a movement distance determination apparatus including:

the acquisition module is used for acquiring a sound signal generated when a user moves;

the mobile parameter determining module is used for determining mobile parameters of the user during movement according to the collected sound signals;

and the moving distance determining module is used for determining the moving distance according to the moving parameters.

Optionally, the movement parameter determining module includes:

the step frequency determining module is used for determining the step frequency of the user when the user moves according to the collected sound signals;

and the movement parameter determining submodule is used for determining the movement parameters of the user during movement according to the step frequency and the stride of the user.

Optionally, the step frequency determining module includes:

the waveform acquisition module is used for acquiring the waveform of the sound signal according to the acquired sound signal;

the step frequency determining submodule is used for determining the step frequency based on the time points of occurrence of two adjacent peak values of the same type in the waveform; wherein, two adjacent peak values of the same type include: two adjacent wave crests; alternatively, two adjacent troughs.

Optionally, the apparatus further comprises:

a stride determination module to determine a stride of the user based on at least one of the physiological characteristic of the user, the first stride value indicated by the user input, and historical movement data of the user.

Optionally, the stride determining module is specifically configured to:

determining a second step amplitude value according to the physiological characteristics of the user;

determining a third step amplitude value according to the historical movement data of the user;

and determining the stride of the user according to the first step amplitude, the second step amplitude and the third step amplitude and by combining the weight occupied by the first step amplitude, the weight occupied by the second step amplitude and the weight occupied by the third step amplitude.

Optionally, the apparatus further comprises:

the mobile duration determining module is used for determining the accumulated mobile duration of the user in a preset time period;

and the weight determining module is used for determining the weight occupied by the amplitude of the first step, the weight occupied by the amplitude of the second step and the weight occupied by the amplitude of the third step according to the corresponding relation between the accumulated moving time and the weight.

Optionally, the weight occupied by the first step amplitude and the weight occupied by the second step amplitude are equal;

the sum of the weight occupied by the amplitude of the first step, the weight occupied by the amplitude of the second step and the weight occupied by the amplitude of the third step is 1.

According to a third aspect of the embodiments of the present disclosure, there is provided a movement distance determination apparatus including:

a processor;

a memory for storing processor-executable instructions;

wherein the processor is configured to: the method of any of the above first aspects is implemented when executable instructions stored in the memory are executed.

According to a fourth aspect of embodiments of the present disclosure, there is provided a non-transitory computer-readable storage medium having instructions which, when executed by a processor of a movement distance determination apparatus, enable the movement distance determination apparatus to perform the method of any one of the above first aspects.

The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects:

according to the embodiment of the disclosure, the movement parameters of the user during movement are determined by collecting the sound signals generated during movement of the user, and then the movement distance is determined according to the movement parameters. Therefore, the acquisition of the moving distance can be realized by collecting the sound signal during moving without the participation of a positioning signal. Therefore, the problem of determining the moving distance in the environment without or with problems of the positioning signal can be effectively solved, and a new implementation mode is provided for determining the moving distance when the user moves.

It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.

Drawings

The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention.

Fig. 1 is a first flowchart illustrating a moving distance determining method according to an exemplary embodiment.

Fig. 2 is a flowchart illustrating a moving distance determining method according to an exemplary embodiment.

Fig. 3 is a waveform diagram of an audio signal.

Fig. 4 is a flowchart illustrating a moving distance determining method according to an exemplary embodiment.

Fig. 5 is a fourth flowchart illustrating a method of determining a movement distance according to an example embodiment.

Fig. 6 is a schematic structural diagram illustrating a movement distance determination apparatus according to an exemplary embodiment.

Fig. 7 is a block diagram illustrating a movement distance determination apparatus according to an exemplary embodiment.

Detailed Description

Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.

When a user moves, the mode of calculating the movement distance of the user during the movement is that the user wears a wearable device, the movement frequency of the two legs of the user is obtained through the wearable device, and then the movement distance is calculated by combining time. In the scheme of not wearing the wearable device, if the movement distance of the user is required to be calculated, the movement route of the user can be obtained by using a positioning signal sent by a positioning device in the mobile phone, and then the movement distance is calculated.

In some environments where the positioning signal is not available or weak and cannot work, the movement distance of the user is approximately simulated by recording the movement time and the swinging times. The method for simulating the step number and the movement distance of the user based on the time and the swinging times basically belongs to the situation of 'guessing' the movement of the user, and the accuracy is not high. And because the swinging times are only aiming at the swinging of the arms, the step frequency and the step number taken by the legs cannot be calculated through the swinging of the arms. Therefore, the moving distance of the user in motion cannot be accurately calculated under the environment that the positioning signal is not available or the positioning signal is weak and cannot work.

In order to accurately calculate a moving distance in an environment where no positioning signal exists or the positioning signal is weak and cannot work, an embodiment of the present disclosure provides a moving distance determining method, and fig. 1 is a first flowchart of a moving distance determining method according to an exemplary embodiment, as shown in fig. 1, including the following steps:

step 101, collecting a sound signal generated when a user moves;

step 102, determining a movement parameter when a user moves according to the collected sound signal;

and 103, determining the moving distance according to the moving parameters.

It should be noted that the moving distance determining method can be applied to a mobile terminal. The mobile terminal herein specifically refers to a mobile electronic device that can collect a sound signal, for example, a smartphone, a tablet computer, or a wearable electronic device.

The sound signal collection can be realized by installing a sound sensor or a pickup sensor in the mobile terminal. As such, in some embodiments, a mobile terminal refers to a mobile terminal that includes a sound sensor or a pickup sensor.

The pickup sensor includes: a Microphone (MIC) pulse pickup sensor or an analog pickup sensor.

In the embodiment of the present disclosure, the movement refers to the exercise of measuring the movement distance by the number of steps, which is implemented by the user through both feet, and includes application scenarios such as walking, fast walking, running, and the like.

The movement parameters include: step frequency, moving duration or moving distance and the like. The step frequency refers to the frequency of movement, i.e., the number of steps per unit time. The movement time period refers to a time difference from the movement start time to the movement end time. The movement distance refers to a distance corresponding to a movement route when the user moves, and refers to an accumulated movement distance.

In practical applications, there may be a case where the user moves but the position of the user relative to the ground does not move, that is, the user moves on the treadmill, and the moving route of the user is repeatedly moved between the two feet, and the moving distance is a cumulative moving distance repeatedly moved between the two feet.

In the embodiment of the present disclosure, determining a movement parameter when a user moves according to a collected sound signal includes: the step frequency of the user during moving is determined through the collected sound signals, and then the moving distance of the user during moving can be determined by combining the obtained step length on the basis of the step frequency.

The step frequency is combined with the obtained stride to determine the moving distance of the user during moving, and the step frequency comprises the following steps: and determining the moving distance of the user in unit time by multiplying the step frequency and the step length, and multiplying the moving distance of the user in unit time by the corresponding moving time length to obtain the moving distance.

In some embodiments, determining a movement parameter when the user moves according to the collected sound signal further includes: determining the moving time length through a time point corresponding to the waveform of the collected sound signal; and then, on the basis of the moving time length, the obtained moving speed of the user is combined to determine the moving distance of the user during moving.

Here, the moving speed may be obtained by an inertial sensor such as an acceleration sensor, that is, by installing an acceleration sensor in the mobile terminal, detecting the moving acceleration of the user according to the acceleration sensor, and performing an integral operation on the moving acceleration to determine the moving speed.

Here, determining the moving time period by a time point corresponding to a waveform of the collected sound signal includes: and determining the movement starting time and the movement ending time of the movement of the user according to the waveform of the collected sound signal, and determining the movement duration of the user during the movement based on the difference value of the movement starting time and the movement ending time of the movement.

After the movement parameters are determined, the movement distance can be obtained or calculated. That is, for example, when the determined movement parameter is the stride frequency, the movement distance may be calculated in combination with the obtained stride as described above, and when the determined movement parameter is the movement distance, the movement distance may be directly obtained.

Therefore, the embodiment of the disclosure determines the movement parameters of the user during movement by collecting the sound signals generated during the movement of the user, and then determines the movement distance according to the movement parameters. Therefore, the acquisition of the moving distance can be realized by collecting the sound signal during moving without the participation of a positioning signal. Therefore, the problem of determining the movement data in the environment without or with problems of the positioning signals can be effectively solved, and a new implementation mode is provided for determining the movement distance of the user during movement.

Here, since the pickup sensor detects many sound signals in use of the mobile terminal. In order to realize the collection of the sound signal when the user moves, the method also comprises the following steps:

detecting whether the mobile terminal is in a preset time length of a swing state caused by being carried by a user when the user walks by using inertial sensors such as an acceleration sensor; when the mobile terminal is in a swing state with preset duration, sending a control instruction; and starting the pickup sensor to collect the sound signal during moving based on the control instruction. Here, the swing state of the mobile terminal for a preset time period may represent that the user is in a moving state.

In order to realize the collection of the sound signal when the user moves, the method may further include:

according to a collection instruction input by a user, the pickup sensor is controlled to be started, and collection of sound signals during movement is achieved. After the user starts to move, the user inputs a collecting instruction on the mobile terminal, so that the mobile terminal can start the pickup sensor based on the collecting instruction, and the sound signal is collected during moving.

Here, the acquisition instruction input by the user includes: voice commands or text commands, etc.

In order to realize the collection of the sound signal when the user moves, the method may further include:

according to a preset acquisition period, starting a pickup sensor, and when a sound signal is detected by the pickup sensor, analyzing the sound signal to determine whether the sound signal is the sound signal generated when the user moves; when the sound signal when the user moves is determined, starting the pickup sensor, and controlling the pickup sensor to keep a preset time-length starting state to collect the sound signal after the pickup sensor is started.

Here, analyzing the sound signal to determine whether it is a sound signal when the user moves includes: it is determined whether the sound signal is a sound signal when the user moves based on an analysis of the sound frequency, the sound amplitude, and/or the sound timbre of the sound signal.

Still alternatively, in order to realize the collection of the sound signal when the user moves, the method further includes:

detecting the signal intensity of the positioning signal; when the signal intensity is lower than a threshold value, triggering the starting of a pickup sensor, further analyzing the sound signal after the sound signal is collected, and determining whether the sound signal is the sound signal when the user moves; when the sound signal when the user moves is determined, starting the pickup sensor, and controlling the pickup sensor to keep a preset time-length starting state to collect the sound signal after the pickup sensor is started.

Therefore, the collected sound signals can be ensured to be the sound signals when the user moves as much as possible, and the accuracy of subsequently calculating various movement parameters is further improved.

In some embodiments, fig. 2 is a flowchart illustrating a moving distance determining method according to an exemplary embodiment, where as shown in fig. 2, the determining, in step 102, a moving parameter when the user moves according to the collected sound signal includes:

step 1021, determining the step frequency of the user during moving according to the collected sound signal;

step 1022, determining the movement parameters of the user when moving according to the step frequency and the stride of the user.

Here, the step frequency refers to the frequency of movement, i.e., the number of steps moved per unit time. For example, if the left and right feet stride 100 steps in 1 minute, the step frequency is 100 times/minute.

Stride refers to the distance traversed by one step in a move. For example, an adult may step across 65 centimeters, with a stride of 65 centimeters.

The time required by the user to stride one step can be determined according to the collected sound signals, and the step frequency of the user when moving can be determined by performing reciprocal operation on the time. Namely: step frequencyt is the time required for the user to step one step. Here, the time t required for the user to stride one step is also referred to as a step interval time.

Here, the time required for the user to stride one step may be determined by the collected sound of the user when the left foot and the right foot land, that is, when 2 adjacent times of the left foot and the right foot land sounds are detected, the time corresponding to the 2 times of the left foot and the right foot land sounds is determined, and the time required for the user to stride one step is determined by subtracting the time corresponding to the 2 times of the land sounds.

Based on this, in step 1021, determining the step frequency of the user moving according to the collected sound signal, including:

acquiring the waveform of the sound signal according to the acquired sound signal;

determining step frequency based on the time points of occurrence of two adjacent peak values of the same type in the waveform; wherein, two adjacent peak values of the same type include: two adjacent wave crests; alternatively, two adjacent troughs.

Here, the waveform of the sound signal may be directly acquired based on the pickup sensor.

Determining step frequency based on the appearance time points of two adjacent peak values of the same type in the waveform, comprising:

determining the time (namely the step interval time) required by the user to step out one step based on the appearance time points of two adjacent peaks of the same type in the waveform; and performing reciprocal operation on the step interval time to determine the step frequency when the user moves.

Therefore, the step frequency of the user during moving can be directly determined through the collected sound signals without the participation of other additional equipment and the participation of positioning signals, the operation process is simplified, and more application scenes (both scenes with positioning signals or scenes without positioning signals) can be adapted.

Fig. 3 is a schematic waveform diagram of an audio signal, and as shown in fig. 3, the abscissa of the waveform diagram represents time t (unit: s) and the ordinate represents amplitude a (unit: m) of the audio signal. Based on the waveforms in fig. 3, the corresponding time points on adjacent cycles can be differenced to determine the step interval time. As shown in fig. 3, the step interval time can be determined by subtracting the time points corresponding to two adjacent peaks.

Here, the waveform of the sound signal includes: peaks and valleys. Two adjacent peaks of the same type include: two adjacent wave crests; alternatively, two adjacent troughs. Then, the time required for the user to step out one step (i.e., the step interval time) can be determined according to the occurrence time points of two adjacent peaks of the same type. It should be noted that the amplitudes corresponding to the two adjacent peaks are the amplitudes corresponding to the landing time of the left foot and the right foot of the user.

In some embodiments, fig. 4 is a flowchart illustrating a moving distance determining method according to an exemplary embodiment, where, as shown in fig. 4, the determining of the stride includes:

step 104, determining a stride of the user based on at least one of the physiological characteristic of the user, the first stride value indicated by the user input, and historical movement data of the user.

Here, in the scheme of determining the stride based on the physiological characteristics of the user, the physiological characteristics include: height, weight, leg length and/or age. There may be differences in stride for different physiological characteristics. For example, a child's stride may be less than an adult's stride; other conditions are similar, and the stride of a user who is overweight will be less than the stride of a user who is overweight.

Thus, in some embodiments, the stride moved by the user may be predicted solely from the physiological characteristics.

It should be noted that the stride may be different for the same user in different movement states. For example, the stride while running is different from the stride while walking. In some embodiments, the stride of the same user in different movement states may be estimated by combining the movement state corresponding to the currently detected stride frequency and the physiological characteristics of the user, so as to improve the accuracy.

In a scheme for determining a stride based on historical movement data of a user, the historical movement data refers to movement data obtained from previous movements of the user, and includes: historical stride and/or historical stride frequency.

It should be noted that, in some embodiments, the historical movement data specifically refers to movement data acquired when a positioning signal participates in an outdoor movement. Because the complexity of the indoor environment is higher than that of the outdoor environment, and the detection accuracy of the positioning signals in the outdoor environment is higher than that of the indoor environment, the stride in the mobile data acquired when the positioning signals participate in outdoor movement is closer to the real stride, and the accuracy is relatively high. Thus, based on the user's historical movement data, the determined stride is a stride with greater accuracy.

Here, in order to further improve the accuracy of the stride determination, the historical movement data of the user in the preset time period may be counted to determine the average stride in the preset time period. The preset time period is as follows: from the current time of collecting the sound signal when the user moves to the time of the preset number of days before the current time.

Because the stride is determined based on the historical movement data of a plurality of times, the real stride can be reflected more accurately compared with a random or last-time stride in the movement data.

In the scheme of determining the stride based on the user's instruction, the user inputs a stride value on the mobile terminal, and the input stride value is the stride instructed by the user. The stride indicated by the user herein refers to the distance that the user can span when considering moving by himself, and may be an estimated stride.

Thus, in step 104, determining the stride of the user based on at least one of the physiological characteristics of the user, the first stride value indicated by the user input, and the historical movement data of the user includes:

determining a second step amplitude value according to the physiological characteristics of the user;

determining a third step amplitude value according to historical movement data of the user;

and determining the stride of the user according to the first step amplitude, the second step amplitude and the third step amplitude and by combining the weight occupied by the first step amplitude, the weight occupied by the second step amplitude and the weight occupied by the third step amplitude.

That is, in the disclosed embodiment, the stride may be a first stride value that is derived based only on the user input indication; the amplitude of the second step can be determined according to the physiological characteristics of the user, or the amplitude of the third step can be determined according to historical movement data of the user; or determining the stride of the user according to the first step amplitude, the second step amplitude and the third step amplitude and by combining the weight occupied by the first step amplitude, the weight occupied by the second step amplitude and the weight occupied by the third step amplitude.

It should be noted that if the user directly inputs the indication of the magnitude of the first step obtained, the step obtained may be less accurate due to the subjective evaluation of the user. If the second step amplitude is determined directly from the physiological characteristics of the user, the obtained stride is relatively more accurate than the first step amplitude obtained by the user input indication, since the physiological characteristics may reflect some real data. If the historical movement data of the direct user exists, the determined amplitude of the third step is high in accuracy due to the fact that the amplitude belongs to practical data, but if the data volume of the historical data is small, the accuracy cannot be guaranteed. Based on this, in some embodiments, the user's stride may be determined by selecting a first step amplitude, a second step amplitude, and a third step amplitude, and combining the weight occupied by the first step amplitude, the second step amplitude, and the third step amplitude.

Here, determining the stride of the user according to the first step amplitude, the second step amplitude, and the third step amplitude, in combination with the weight occupied by the first step amplitude, the weight occupied by the second step amplitude, and the weight occupied by the third step amplitude, includes:

and summing the products of the first step amplitude and the weight occupied by the first step amplitude, the products of the second step amplitude and the weight occupied by the second step amplitude and the products of the third step amplitude and the weight occupied by the third step amplitude, and averaging to determine the stride of the user.

Namely:

S=(k1·S1+k2·S2+k3·S3)/3

in the formula, S1The resulting first step magnitude is indicated by user input. S2The second step amplitude value is determined according to the physiological characteristics of the user. S3A third step magnitude determined based on historical movement data of the user. k is a radical of1Is the weight occupied by the first step amplitude, k2Is the weight occupied by the amplitude of the second step, k3Is a thirdThe step values take weight.

In the embodiment of the present disclosure, the weight occupied by one step value is positively correlated to the probability that the step value is an accurate value. Here, the probability may be a statistical probability obtained from big data statistics.

Here, combining the manner of the user input indicating the obtained first step amplitude value, the second step amplitude value determined by the physiological characteristics of the user, and the third step amplitude value determined by the historical movement data of the user, more accurate stride determination can be achieved, and a basis is provided for accurate calculation of the subsequent movement distance.

In order to determine the stride, the weight needs to be determined, and thus, the method further includes:

step 105, determining the accumulated moving time of the user in a preset time period;

and step 106, determining the weight occupied by the amplitude of the first step, the weight occupied by the amplitude of the second step and the weight occupied by the amplitude of the third step according to the corresponding relation between the accumulated moving time length and the weight.

Here, the preset time period means: from the current time of collecting the sound signal when the user moves to the time of the preset number of days before the current time. The preset number of days may be determined based on the frequency of the outdoor exercises of the user, i.e., the higher the frequency of the outdoor exercises of the user is, the shorter the preset number of days may be set. The accumulated moving time of the user in the preset time period refers to the total moving time of the user performing outdoor exercises in the preset time period, that is, the total moving time of the user performing the exercises in the preset time period.

For example, if the current time of collecting the sound signal when the user moves is 4 month 3, the preset time period may be a time period from 3 month 24 to 4 month 3. The accumulated moving time of the user in the preset time period is the total moving time of 10 days in the time period from 24 # 3 to 3 # 4 month.

In the embodiment of the present disclosure, in order to determine the weight occupied by the first step amplitude, the weight occupied by the second step amplitude, and the weight occupied by the third step amplitude, a corresponding relationship between the accumulated moving time and the weight may be configured in advance, and the weight occupied by the first step amplitude, the weight occupied by the second step amplitude, and the weight occupied by the third step amplitude are determined based on the corresponding relationship.

The correspondence between the accumulated movement duration and the weight may be obtained based on experimental data, i.e., in historical use, the correspondence between the movement duration and the stride accuracy determined by each weight is determined. Thus, the determined weight can be more in line with the actual requirement and more accurate.

The correspondence between the accumulated moving time and the weight may be:

where T is the cumulative moving time period, k1Is the weight occupied by the first step amplitude, k2Is the weight occupied by the amplitude of the second step, k3The amplitude value of the third step is taken as the weight. S3A third step magnitude determined based on historical movement data of the user.

In some embodiments, the first step amplitude and the second step amplitude are weighted equally;

the sum of the weight occupied by the amplitude of the first step, the weight occupied by the amplitude of the second step and the weight occupied by the amplitude of the third step is 1.

Here, since the amplitude is determined based on the combination of the first step amplitude, the second step amplitude, and the third step amplitude, after the weight is assigned, the sum of the weight occupied by the first step amplitude, the weight occupied by the second step amplitude, and the weight occupied by the third step amplitude should be 1; namely: k is a radical of1+k2+k3=1。

Here, considering that there may be a case where the physical state of the user is not good at the time of the current detection, resulting in that the second-step amplitude determined based on the physiological characteristics of the user may not be accurate in the stride determination at this time, while there may be a more accurate estimation when the physical state of the user is not good because the user input indicates that the obtained first-step amplitude is the subjective estimation value of the user.

Taken together, then, in some embodiments, the weights of the first step magnitudes and the second step magnitudes may be set equal to simplify the calculation and reduce the large errors caused by the special cases described above.

It should be noted that, since the user inputs the data indicating that the obtained first step amplitude is the data input by the user, the input data may be greatly different from the actual situation due to the input error. For example, a typical human stride has a normal range, such as between 50 cm and 75 cm, and if the current user income is 200 cm, it is clear that the magnitude of the first step is abnormal.

In order to reduce calculation errors caused by the fact that the first-step amplitude obtained by user input indication does not meet the actual situation, an assignment range can be set for the first-step amplitude in advance, and when the first-step amplitude is detected not to be in the assignment range, the weight occupied by the first-step amplitude is set to be 0, or prompt information of abnormal data is output to request the user to input the data again.

Here, when the prompt information of the data abnormality is output, in addition to prompting the first-step amplitude abnormality, an assignment range may be prompted.

Here, an input number threshold may also be set, and when the input first-step amplitude still has a problem after the input number threshold is reached, the weight of the first-step amplitude is directly set to 0, or the input first-step amplitude is directly removed.

Therefore, the rationality of the first-step amplitude can be greatly guaranteed through detection and analysis of the first-step amplitude, and further guarantee is provided for the accuracy of subsequent calculation of various mobile parameters.

Here, since the longer the accumulated moving time period is, the smaller the weight occupied by the first step amplitude and the second step amplitude is, the larger the weight occupied by the corresponding third step amplitude is. And the more the data volume of the historical movement data of the user is, the more accurate the determined stride is, and the more accurate the calculated stride is. Correspondingly, when the accumulated moving time is short, the weight occupied by the amplitude of the first step and the weight occupied by the amplitude of the second step are large, and at the moment, the accuracy is not high due to insufficient data volume of historical moving data, so that the stride determined by taking the amplitude of the first step and the amplitude of the second step as the leading factors is more in line with the actual requirement.

Note that when there is no historical movement data of the user, i.e. S3When the value is 0:

here, when S3Since the weights corresponding to the first step amplitude and the second step amplitude are the same, both the weight occupied by the first step amplitude and the weight occupied by the second step amplitude can be set to 0.5.

Thus, after obtaining the stride, determining the moving distance of the user when the user moves according to the stride frequency and the stride of the user includes:

and multiplying the step frequency and the step length to determine the moving distance of the user in unit time, and multiplying the moving distance of the user in unit time by the corresponding moving time length to determine the moving distance. Namely:

W=L·T0

here, L is a moving distance per unit time, f is a step frequency, S is a step length, and t is a step interval time.

T0The moving time length when the user moves this time is W, and the moving distance when the user moves this time is W.

The combination of the first step amplitude obtained by the user input indication, the second step amplitude determined by the physiological characteristics of the user and the third step amplitude determined by the historical movement data of the user can realize more accurate stride determination and provide a basis for accurate calculation of the subsequent movement distance.

Fig. 5 is a fourth flowchart illustrating a moving distance determining method according to an exemplary embodiment, where as shown in fig. 5, the moving distance determining method includes:

on one hand, a sound signal when the user moves is collected according to the sound pickup sensor, the waveform of the sound signal is obtained, and the step frequency f when the user moves is determined according to the waveform of the sound signal.

On the other hand, the first step amplitude S is obtained by the user input indication1(ii) a Determining a second step amplitude S based on the physiological characteristics of the user2(ii) a Determining the third step amplitude S according to the historical movement data of the user3(ii) a The first step amplitude S1Second step amplitude S2And a third step of amplitude S3And fitting to obtain the step S required by the embodiment of the disclosure.

Further, the step frequency f and the step length S are multiplied to determine the moving distance L per unit time when the user moves, and the moving distance W at the time when the user moves is determined based on the multiplication of the moving distance L per unit time and the moving time period.

In this way, the stride of the user during movement is determined by collecting the sound signal generated by the user during movement and combining at least one of the physiological characteristics of the user, the first step amplitude value indicated by the user input and the historical movement data of the user, and the movement distance of the user during movement is further determined based on the stride frequency and the stride of the user. Therefore, the mobile data can be acquired by collecting the sound signals during movement without the participation of the positioning signals, the problem of mobile data determination in the environment without the positioning signals or with the problems of the positioning signals can be effectively solved, and a new implementation mode is provided for the determination of the mobile data during the movement of the user.

In addition, due to the fact that at least one of historical movement data of the user, physiological characteristics of the user, amplitude of the first step indicated by user input and data detected by the pickup sensor are used, the obtained integrated data are combined, and the movement parameter is determined based on richer data, so that the data are more accurate. And the combination mode can be matched with other data (such as heart rate, blood oxygen and the like), more implementation schemes are provided, and application scenes are enriched.

It should be noted that, in practical applications, there may be a situation where the ambient sound is loud and the sound signal of the user movement cannot be collected. For example, a television in an on state is too loud. Based on this, the method further comprises:

collecting environmental sound of an environment where the mobile terminal is located to obtain an environmental sound signal; when the environmental sound signal is larger than a preset threshold value, determining the moving distance according to the positioning signal and the inertial sensor; when the ambient sound signal is not greater than the preset threshold, the movement distance determination method according to the embodiment of the present disclosure performs the determination of the movement distance.

Therefore, before the moving distance determining method of the embodiment of the disclosure is used, the problem of poor implementation effect of the moving distance determining method due to excessive environmental sound can be reduced by comparing the environmental sound signal with the preset threshold, and the accuracy of the moving distance calculation can be ensured as much as possible.

According to the embodiment of the disclosure, the movement parameters of the user during movement are determined by collecting the sound signals generated during movement of the user, and then the movement distance is determined according to the movement parameters. Therefore, the moving distance can be determined by collecting the sound signals during moving without the participation of positioning signals. Therefore, the problem of determining the moving distance in the environment without or with problems of the positioning signal can be effectively solved, and a new implementation mode is provided for determining the moving distance when the user moves. In addition, the step frequency mode when the user moves is determined directly through the collected sound signals, extra other equipment is not needed to participate, the participation of positioning signals is also not needed, the operation process is simplified, and more application scenes can be adapted. Furthermore, the amplitude of the first step obtained by the user input indication, the amplitude of the second step determined by the physiological characteristics of the user and the historical movement data of the user are integrated to be determined together, so that the determined stride is more accurate. In addition, due to the fact that at least one of historical movement data of the user, physiological characteristics of the user, amplitude of the first step indicated by user input and data detected by the pickup sensor are used, the obtained integrated data are combined, and the movement parameter is determined based on richer data, so that the data are more accurate. And the combination mode can be matched with other data (such as heart rate, blood oxygen and the like), more implementation schemes are provided, and application scenes are enriched.

In order to accurately calculate a moving distance in an environment where a positioning signal is absent or the positioning signal is weak and cannot work, an embodiment of the present disclosure provides a moving distance determining apparatus, and fig. 6 is a schematic structural diagram of a moving distance determining apparatus according to an exemplary embodiment, and as shown in fig. 6, the moving distance determining apparatus 600 includes:

the acquisition module 601 is used for acquiring a sound signal generated when a user moves;

a movement parameter determining module 602, configured to determine a movement parameter of the user when the user moves according to the collected sound signal;

a moving distance determining module 603, configured to determine a moving distance according to the moving parameter.

In some embodiments, the movement parameter determination module 602 includes:

the step frequency determining module is used for determining the step frequency when the user moves according to the collected sound signals;

and the movement parameter determination submodule is used for determining the movement parameters of the user during movement according to the step frequency and the stride of the user.

In some embodiments, the step frequency determination module comprises:

the waveform acquisition module is used for acquiring the waveform of the sound signal according to the acquired sound signal;

the step frequency determining submodule is used for determining step frequency based on the time points of appearance of two adjacent peak values of the same type in the waveform; wherein, two adjacent peak values of the same type include: two adjacent wave crests; alternatively, two adjacent troughs.

In some embodiments, the apparatus further comprises:

a stride determination module to determine a stride of the user based on at least one of a physiological characteristic of the user, a first stride value indicated by the user input, and historical movement data of the user.

In some embodiments, the stride determination module is specifically configured to:

determining a second step amplitude value according to the physiological characteristics of the user;

determining a third step amplitude value according to historical movement data of the user;

and determining the stride of the user according to the first step amplitude, the second step amplitude and the third step amplitude and by combining the weight occupied by the first step amplitude, the weight occupied by the second step amplitude and the weight occupied by the third step amplitude.

In some embodiments, the apparatus further comprises:

the mobile duration determining module is used for determining the accumulated mobile duration of the user in a preset time period;

and the weight determining module is used for determining the weight occupied by the amplitude in the first step, the weight occupied by the amplitude in the second step and the weight occupied by the amplitude in the third step according to the corresponding relation between the accumulated moving time and the weight.

In some embodiments, the first step amplitude and the second step amplitude are weighted equally;

the sum of the weight occupied by the amplitude of the first step, the weight occupied by the amplitude of the second step and the weight occupied by the amplitude of the third step is 1.

With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.

Fig. 7 is a block diagram illustrating a movement distance determination apparatus 1800 according to an example embodiment. For example, the apparatus 1800 may be a mobile phone, computer, digital broadcast terminal, messaging device, game console, tablet device, medical device, fitness device, personal digital assistant, and so forth.

Referring to fig. 7, apparatus 1800 may include one or more of the following components: a processing component 1802, a memory 1804, a power component 1806, a multimedia component 1808, an audio component 1810, an input/output (I/O) interface 1812, a sensor component 1814, and a communications component 1816.

The processing component 1802 generally controls the overall operation of the device 1800, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 1802 may include one or more processors 1820 to execute instructions to perform all or part of the steps of the methods described above. Further, the processing component 1802 may also include one or more modules that facilitate interaction between the processing component 1802 and other components. For example, the processing component 1802 can include a multimedia module to facilitate interaction between the multimedia component 1808 and the processing component 1802.

The memory 1804 is configured to store various types of data to support operation at the apparatus 1800. Examples of such data include instructions for any application or method operating on the device 1800, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 1804 may be implemented by any type or combination of volatile or non-volatile storage devices, such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.

Power components 1806 provide power to various components of device 1800. The power components 1806 may include: a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for the apparatus 1800.

The multimedia component 1808 includes a screen that provides an output interface between the device 1800 and a user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 1808 includes a front facing camera and/or a rear facing camera. The front-facing camera and/or the rear-facing camera may receive external multimedia data when the device 1800 is in an operating mode, such as a shooting mode or a video mode. Each front camera and/or rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.

Audio component 1810 is configured to output and/or input audio signals. For example, the audio component 1810 includes a Microphone (MIC) configured to receive external audio signals when the apparatus 1800 is in operating modes, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 1804 or transmitted via the communication component 1816. In some embodiments, audio component 1810 also includes a speaker for outputting audio signals.

I/O interface 1812 provides an interface between processing component 1802 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.

The sensor component 1814 includes one or more sensors for providing various aspects of state assessment for the apparatus 1800. For example, the sensor assembly 1814 can detect an open/closed state of the device 1800, the relative positioning of components such as a display and keypad of the device 1800, a change in position of the device 1800 or a component of the device 1800, the presence or absence of user contact with the device 1800, orientation or acceleration/deceleration of the device 1800, and a change in temperature of the device 1800. The sensor assembly 1814 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 1814 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 1814 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.

The communication component 1816 is configured to facilitate communications between the apparatus 1800 and other devices in a wired or wireless manner. The device 1800 may access a wireless network based on a communication standard, such as WiFi, 2G, or 3G, or a combination thereof. In an exemplary embodiment, the communication component 1816 receives a broadcast signal or broadcast associated information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 1816 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, or other technologies.

In an exemplary embodiment, the apparatus 1800 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described methods.

In an exemplary embodiment, a non-transitory computer readable storage medium is also provided, such as the memory 1804 including instructions that are executable by the processor 1820 of the apparatus 1800 to perform the above-described method. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.

A non-transitory computer-readable storage medium, instructions in which, when executed by a processor of a movement distance determination apparatus, enable execution of the movement distance determination method described above.

Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This disclosure is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.

It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

20页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:传感器及传感器系统

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!