CN110246561A - A kind of moving distance calculation method, device and system - Google Patents

A kind of moving distance calculation method, device and system Download PDF

Info

Publication number
CN110246561A
CN110246561A CN201910364520.3A CN201910364520A CN110246561A CN 110246561 A CN110246561 A CN 110246561A CN 201910364520 A CN201910364520 A CN 201910364520A CN 110246561 A CN110246561 A CN 110246561A
Authority
CN
China
Prior art keywords
predetermined movement
movement model
terminal
moving target
kinematic parameter
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201910364520.3A
Other languages
Chinese (zh)
Inventor
姜永航
陈霄汉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201910364520.3A priority Critical patent/CN110246561A/en
Publication of CN110246561A publication Critical patent/CN110246561A/en
Priority to PCT/CN2020/086524 priority patent/WO2020221109A1/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01CMEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
    • G01C21/00Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00
    • G01C21/10Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00 by using measurements of speed or acceleration
    • G01C21/12Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00 by using measurements of speed or acceleration executed aboard the object being navigated; Dead reckoning
    • G01C21/16Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00 by using measurements of speed or acceleration executed aboard the object being navigated; Dead reckoning by integrating acceleration or speed, i.e. inertial navigation
    • G01C21/165Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00 by using measurements of speed or acceleration executed aboard the object being navigated; Dead reckoning by integrating acceleration or speed, i.e. inertial navigation combined with non-inertial navigation instruments
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01DMEASURING NOT SPECIALLY ADAPTED FOR A SPECIFIC VARIABLE; ARRANGEMENTS FOR MEASURING TWO OR MORE VARIABLES NOT COVERED IN A SINGLE OTHER SUBCLASS; TARIFF METERING APPARATUS; MEASURING OR TESTING NOT OTHERWISE PROVIDED FOR
    • G01D21/00Measuring or testing not otherwise provided for
    • G01D21/02Measuring two or more variables by means not covered by a single other subclass
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01SRADIO DIRECTION-FINDING; RADIO NAVIGATION; DETERMINING DISTANCE OR VELOCITY BY USE OF RADIO WAVES; LOCATING OR PRESENCE-DETECTING BY USE OF THE REFLECTION OR RERADIATION OF RADIO WAVES; ANALOGOUS ARRANGEMENTS USING OTHER WAVES
    • G01S19/00Satellite radio beacon positioning systems; Determining position, velocity or attitude using signals transmitted by such systems
    • G01S19/38Determining a navigation solution using signals transmitted by a satellite radio beacon positioning system
    • G01S19/39Determining a navigation solution using signals transmitted by a satellite radio beacon positioning system the satellite radio beacon positioning system transmitting time-stamped messages, e.g. GPS [Global Positioning System], GLONASS [Global Orbiting Navigation Satellite System] or GALILEO
    • G01S19/42Determining position
    • G01S19/45Determining position by combining measurements of signals from the satellite radio beacon positioning system with a supplementary measurement
    • G01S19/47Determining position by combining measurements of signals from the satellite radio beacon positioning system with a supplementary measurement the supplementary measurement being an inertial measurement, e.g. tightly coupled inertial
    • GPHYSICS
    • G16INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
    • G16HHEALTHCARE INFORMATICS, i.e. INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR THE HANDLING OR PROCESSING OF MEDICAL OR HEALTHCARE DATA
    • G16H20/00ICT specially adapted for therapies or health-improving plans, e.g. for handling prescriptions, for steering therapy or for monitoring patient compliance
    • G16H20/30ICT specially adapted for therapies or health-improving plans, e.g. for handling prescriptions, for steering therapy or for monitoring patient compliance relating to physical therapies or activities, e.g. physiotherapy, acupressure or exercising

Abstract

The embodiment of the present application provides a kind of moving distance calculation method, device and system, is related to field of terminal, solves the problems, such as that caused error is larger when estimated moving distance in the prior art.This method comprises: terminal determines the acceleration information and the first kinematic parameter of moving target in the case that terminal detects that moving target is kept in motion;Terminal according to acceleration information and N number of predetermined movement model determine moving target during exercise in the second kinematic parameter;Wherein, the first kinematic parameter is the step number of moving target, and the second kinematic parameter is the stride of moving target;Alternatively, the first kinematic parameter is the run duration of moving target, the second kinematic parameter is the movement velocity of moving target;N is the integer more than or equal to 2;Terminal determines the moving distance of moving target according to the first kinematic parameter and the second kinematic parameter.For improving the accuracy for calculating moving target distance.

Description

A kind of moving distance calculation method, device and system
Technical field
This application involves field of terminal more particularly to a kind of moving distance calculation methods, device and system.
Background technique
With people to movement and health increasingly pay attention to, can detecte moving target health and motion state at For the function of intelligent terminal (such as mobile phone or motion bracelet) indispensability.Intelligent terminal can be walked by detecting the movement of moving target Several and moving distance determines the amount of exercise of moving target, further determines that the parameters such as exercise intensity, the heat consumption of moving target, Good motion detection is provided to moving target.
But in the moving distance for determining moving target, under normal conditions it needs to be determined that the stride of moving target, still Currently there are errors in such a way that motion detection algorithm determines stride, will lead to caused error when estimated moving distance in this way It is larger.
Summary of the invention
The embodiment of the present application provides a kind of moving distance calculation method, device and system, solves in the prior art Caused error larger problem when estimated moving distance.
In order to solve the above-mentioned technical problem, the embodiment of the present application adopts the following technical scheme that
In a first aspect, the embodiment of the present application provides a kind of moving distance calculation method, this method comprises: terminal detects fortune In the case that moving-target is kept in motion, terminal determines the acceleration information and the first kinematic parameter of moving target;Terminal root According to acceleration information and N number of predetermined movement model determine moving target during exercise in the second kinematic parameter;Wherein, first Kinematic parameter is the step number of moving target, and the second kinematic parameter is the stride of moving target;Alternatively, the first kinematic parameter is movement The run duration of target, the second kinematic parameter are the movement velocity of moving target;N is the integer more than or equal to 2;Terminal according to First kinematic parameter and the second kinematic parameter determine the moving distance of moving target.
The embodiment of the present application provides a kind of moving distance calculation method, when terminal detects that moving target is kept in motion In the case where, terminal determines the acceleration information and the first kinematic parameter of moving target.Terminal is according to acceleration information and N number of pre- If motion model determine moving target during exercise in the second kinematic parameter.Wherein, the first kinematic parameter is moving target Step number, the second kinematic parameter be moving target stride;Alternatively, the first kinematic parameter is the run duration of moving target, the Two kinematic parameters are the movement velocity of moving target;N is the integer more than or equal to 2;Terminal is according to the first kinematic parameter and Two kinematic parameters determine the moving distance of moving target.The moving distance that moving target is calculated using N number of predetermined movement model, can The second kinematic parameter is determined with the calculated result of the N number of predetermined movement model of synthesis, is avoided through single predetermined movement model meter Calculate moving target moving distance when, because single predetermined movement model acceleration and moving target acceleration information difference compared with Moving distance calculates the larger problem of error caused by big, therefore the accurate of the moving distance for calculating moving target can be improved Degree.
In a kind of possible implementation, the first kinematic parameter is the step number of moving target, and the second kinematic parameter is movement The stride of target, terminal determine moving distance according to the first kinematic parameter and the second kinematic parameter, comprising: terminal according to step number with And the product of stride, determine moving distance.
In a kind of possible implementation, the first kinematic parameter is the run duration of moving target, and the second kinematic parameter is The movement velocity of moving target;Terminal determines moving distance according to the first kinematic parameter and the second kinematic parameter, comprising: terminal root According to the product of run duration and movement velocity, moving distance is determined.
In a kind of possible implementation, terminal determines moving target according to acceleration information and N number of predetermined movement model The second kinematic parameter in during exercise, comprising: acceleration information is inputted N number of predetermined movement model by terminal, is obtained N number of pre- If the corresponding third kinematic parameter of each predetermined movement model in motion model;Terminal is corresponding according to each predetermined movement model Third kinematic parameter and each respective weight of predetermined movement model, determine the second kinematic parameter.By for each default fortune Weight is arranged in movable model, and the second kinematic parameter can be made to meet the motion feature of moving target.
In a kind of possible implementation, method provided by the embodiments of the present application further include: terminal is according to acceleration information With the similarity of predetermined movement model each in N number of predetermined movement model, each respective weight of predetermined movement model is determined.It is logical The similarity for crossing acceleration information and predetermined movement model determines the weight of each predetermined movement model, can make each default fortune The weight setting of movable model is more reasonable, for example, can be to distribute with the higher predetermined movement model of acceleration information similarity Biggish weight, to improve the accuracy of moving distance calculating.
In a kind of possible implementation, terminal is according to each presetting fortune in acceleration information and N number of predetermined movement model The similarity of movable model determines each respective weight of predetermined movement model, comprising: terminal determines each predetermined movement model Acceleration variance average value and cadence average value;Terminal is according to the acceleration variance average value and cadence of each predetermined movement model The acceleration variance and cadence of average value and acceleration information determine the similar of acceleration information and each predetermined movement model Degree;Terminal determines the weight of each predetermined movement model according to the similarity of acceleration information and each predetermined movement model.It is logical Cross each predetermined movement in determination acceleration information and N number of predetermined movement model that acceleration variance and cadence can be more accurate The similarity of model.
In a kind of possible implementation, N number of predetermined movement model is the predetermined movement mould in M predetermined movement model Type, and the similarity between N number of predetermined movement model and acceleration information is greater than or equal to preset threshold, M is whole greater than N Number.The calculation amount of terminal can be reduced by the higher N number of motion model of similarity in M predetermined movement model of selection, and Exclude interference of the lower motion model of similarity to calculated result.
In a kind of possible implementation, acceleration information includes each time in multiple time windows in run duration Corresponding first acceleration information of window;When second kinematic parameter is the movement velocity of moving target, terminal is believed according to acceleration Breath and N number of predetermined movement model determine moving target during exercise in the second kinematic parameter, comprising: terminal according to it is each when Between corresponding first acceleration information of window and N number of predetermined movement model determine the corresponding movement velocity of each time window. In order to calculate corresponding movement velocity in each time window.
In a kind of possible implementation, terminal determines moving target according to the first kinematic parameter and the second kinematic parameter Moving distance, comprising: terminal is long according to the corresponding movement velocity of each time window and each time window respective time Degree, determines the moving distance of moving target.Determine that moving distance can according to corresponding movement velocity in each time window So as to finally determine that the result of moving distance is more accurate according to movement velocity.
In a kind of possible implementation, method provided by the embodiments of the present application further include: terminal obtains N from server A predetermined movement model.Terminal obtains server trained N number of predetermined movement model in advance, can mitigate the operation of terminal Amount saves operation time.
In a kind of possible implementation, which is stored in advance in the terminal.
Second aspect, the embodiment of the present application provide a kind of moving distance calculation method, this method comprises: server acquisition is gone through History data.It include the exercise data of different motion type in the historical data.Historical data is divided into N class history number by server According to.Server carries out predetermined movement model training to N class historical data, obtains N number of predetermined movement model.
The embodiment of the present application provides a kind of moving distance calculation method, and server obtains historical data;Server is by history Data are divided into N class historical data;Server carries out predetermined movement model training to N class historical data, obtains N number of predetermined movement Model.Server carries out predetermined movement model to different types of historical data by classifying to historical data, and respectively Training, obtains N number of predetermined movement model.Improve the adaptability to different operation type scenes.
In a kind of possible implementation, predetermined movement model training is carried out to N class historical data in server, obtains N After a predetermined movement model, this method further include: server sends N number of predetermined movement model to terminal.
In a kind of possible implementation, server sends N number of predetermined movement model to terminal, comprising: server receives Carry out the acquisition request of self terminal.The acquisition request is for requesting N number of predetermined movement model.Server is according to acquisition request, to end End sends N number of predetermined movement model.
It should be understood that if selecting N number of predetermined movement model from M predetermined movement model by terminal, terminal is from service At least M predetermined movement model is obtained at device.
In a kind of possible implementation, N number of predetermined movement model is the predetermined movement mould in M predetermined movement model Type, and the similarity between N number of predetermined movement model and acceleration information is greater than or equal to preset threshold, M is whole greater than N Number.
It should be understood that if selecting N number of predetermined movement model from M predetermined movement model by server, terminal is to clothes Also need to carry the acceleration information of moving target in the acquisition request that business device is sent.
The third aspect, the embodiment of the present application provide a kind of moving distance computing device, which includes: Processing unit, in the case where detecting that moving target is kept in motion, determine moving target acceleration information and First kinematic parameter;Processing unit is also used to determine that moving target is moving according to acceleration information and N number of predetermined movement model The second kinematic parameter in time;Wherein, the first kinematic parameter is the step number of moving target, and the second kinematic parameter is moving target Stride;Alternatively, the first kinematic parameter is the run duration of moving target, the second kinematic parameter is the movement speed of moving target Degree;N is the integer more than or equal to 2;Processing unit is also used to determine movement according to the first kinematic parameter and the second kinematic parameter The moving distance of target.
In a kind of possible implementation, the first kinematic parameter is the step number of moving target, and the second kinematic parameter is movement The stride of target;Processing unit, also particularly useful for: according to step number and the product of stride, determine moving distance.
In a kind of possible implementation, the first kinematic parameter is the run duration of moving target, and the second kinematic parameter is The movement velocity of moving target;Processing unit, also particularly useful for: according to the product of run duration and movement velocity, determine movement Distance.
A kind of possible implementation, processing unit, also particularly useful for: acceleration information is inputted into N number of predetermined movement mould Type obtains the corresponding third kinematic parameter of each predetermined movement model in N number of predetermined movement model;According to each predetermined movement mould The corresponding third kinematic parameter of type and each respective weight of predetermined movement model, determine the second kinematic parameter.
A kind of possible implementation, processing unit, also particularly useful for: according to acceleration information and N number of predetermined movement mould The similarity of each predetermined movement model in type determines each respective weight of predetermined movement model.
A kind of possible implementation, processing unit, also particularly useful for: determine the acceleration side of each predetermined movement model Poor average value and cadence average value;According to the acceleration variance average value of each predetermined movement model and cadence average value and add The acceleration variance and cadence of velocity information determine the similarity of acceleration information and each predetermined movement model;According to acceleration Degree information and the similarity of each predetermined movement model determine the weight of each predetermined movement model.
A kind of possible implementation, N number of predetermined movement model are the predetermined movement model in M predetermined movement model, And the similarity between N number of predetermined movement model and acceleration information is greater than or equal to preset threshold, M is the integer greater than N.
A kind of possible implementation, acceleration information include each time window in multiple time windows in run duration Corresponding first acceleration information of mouth;Processing unit, also particularly useful for: believed according to corresponding first acceleration of each time window Breath and N number of predetermined movement model determine the corresponding movement velocity of each time window.
A kind of possible implementation, processing unit, also particularly useful for: according to the corresponding movement velocity of each time window And each respective time span of time window, determine the moving distance of moving target.
A kind of possible implementation, moving distance computing device further include: communication unit, for being obtained from server N number of predetermined movement model.
Another example, the embodiment of the present application provide a kind of moving distance computing device, which can To be terminal, the chip being also possible in terminal.When the moving distance computing device is terminal, which can be logical Believe interface.The processing unit can be processor.The moving distance computing device can also include storage unit.The storage unit It can be memory.The storage unit, for storing computer program code, computer program code includes instruction.The processing Unit executes the instruction that the storage unit is stored, so that any one of terminal realization first aspect or first aspect may Implementation described in a kind of moving distance calculation method.When the moving distance computing device is the chip in terminal, The processing unit can be processor, which may be collectively referred to as: communication interface.For example, communication interface can for input/ Output interface, pin or circuit etc..The processing unit executes the computer program code that storage unit is stored, so that the terminal Realize a kind of moving distance calculation method described in any one possible implementation of first aspect or first aspect, it should Storage unit can be the storage unit (for example, register, caching etc.) in the chip, and being also possible to being located in the terminal should The storage unit (for example, read-only memory, random access memory etc.) of chip exterior.
Optionally, processor, communication interface and memory intercouple.
Fourth aspect, the embodiment of the present application provide a kind of moving distance computing device, which includes: Communication unit, for obtaining the historical data of movement;Processing unit, for historical data to be divided into N class historical data;Processing Unit is also used to carry out predetermined movement model training to N class historical data, obtains N number of predetermined movement model.
In a kind of possible implementation, predetermined movement model training is carried out to N class historical data in processing unit, is obtained After N number of predetermined movement model, communication unit, also particularly useful for: N number of predetermined movement model is sent to terminal.
In a kind of possible implementation, communication unit, also particularly useful for: receive the acquisition request for carrying out self terminal;This is obtained Take request for requesting N number of predetermined movement model.Communication unit, also particularly useful for: N number of predetermined movement model is sent to terminal.
It should be understood that communication unit is gone back if selecting N number of predetermined movement model from M predetermined movement model by terminal It is specifically used for: sends at least M predetermined movement model to terminal.
In a kind of possible implementation, N number of predetermined movement model is the predetermined movement mould in M predetermined movement model Type, and the similarity between N number of predetermined movement model and acceleration information is greater than or equal to preset threshold, M is whole greater than N Number.
It should be understood that if selecting N number of predetermined movement model from M predetermined movement model by processing unit, terminal to Also need to carry the acceleration information of moving target in the acquisition request that server is sent.
Another example, the embodiment of the present application provide a kind of moving distance computing device, which can To be server, the chip being also possible in server.When the moving distance computing device is server, which can Think communication interface.The processing unit can be processor.The moving distance computing device can also include storage unit.This is deposited Storage unit can be memory.The storage unit, for storing computer program code, computer program code includes instruction. The processing unit executes the instruction that the storage unit is stored, so that the server realizes any of second aspect or second aspect A kind of moving distance calculation method described in a kind of possible implementation.When the moving distance computing device is in server Chip when, which can be processor, which may be collectively referred to as: communication interface.For example, communication interface can Think input/output interface, pin or circuit etc..The processing unit executes the computer program code that storage unit is stored, So that the terminal realizes a kind of moving distance described in any one possible implementation of second aspect or second aspect Calculation method, the storage unit can be the storage unit (for example, register, caching etc.) in the chip, be also possible to the clothes The storage unit (for example, read-only memory, random access memory etc.) positioned at the chip exterior being engaged in device.
Optionally, processor, communication interface and memory intercouple.
5th aspect, the embodiment of the present application provide a kind of moving distance computing device, which includes: processor and communication Interface;Communication interface and processor coupling, processor is for running computer program or instruction, to realize such as first aspect and the Moving distance calculation method described in any possible implementation of one side.
6th aspect, the embodiment of the present application provide another moving distance computing device, which includes: processor and lead to Believe interface;Communication interface and processor coupling, processor for running computer program or instruction, to realize such as second aspect and Moving distance calculation method described in any possible implementation of second aspect.
7th aspect, the embodiment of the present application provide a kind of computer readable storage medium, in computer readable storage medium It is stored with instruction, when instruction is run on moving distance computing device, so that moving distance computing device executes such as first party Moving distance calculation method described in any possible implementation of face and first aspect.
Eighth aspect, the embodiment of the present application provide a kind of computer readable storage medium, in computer readable storage medium It is stored with instruction, when instruction is run on moving distance computing device, so that moving distance computing device executes such as second party Moving distance calculation method described in any possible implementation of face and second aspect.
9th aspect, the embodiment of the present application provide a kind of computer program product comprising instruction, when computer program produces Product on moving distance computing device when running, so that moving distance computing device executes times such as first aspect and first aspect Moving distance calculation method described in a kind of possible implementation.
Tenth aspect, the embodiment of the present application provide a kind of computer program product comprising instruction, when computer program produces Product on moving distance computing device when running, so that moving distance computing device executes times such as second aspect and second aspect Moving distance calculation method described in a kind of possible implementation.
Tenth on the one hand, and the embodiment of the present application provides a kind of chip, and chip includes processor and communication interface, communication interface It is coupled with processor, processor is for running computer program or instruction, to realize any such as first aspect and first aspect Moving distance calculation method described in the possible implementation of kind.
Specifically, the chip provided in the embodiment of the present application further includes memory, for storing computer program or instruction.
12nd aspect, the embodiment of the present application provide a kind of chip, and chip includes processor and communication interface, communication interface It is coupled with processor, processor is for running computer program or instruction, to realize any such as second aspect and second aspect Moving distance calculation method described in the possible implementation of kind.
Specifically, the chip provided in the embodiment of the present application further includes memory, for storing computer program or instruction.
13rd aspect, the embodiment of the present application provides a kind of moving distance computing system, comprising: terminal, and with the end The server of communication is held, terminal is for executing as described in any possible implementation of first aspect and first aspect Moving distance calculation method, server is used to execute in such as any possible implementation of second aspect and second aspect Described moving distance calculation method.
It should be understood that in the application not to the description of technical characteristic, technical solution, beneficial effect or similar language It is to imply that all feature and advantage may be implemented in arbitrary single embodiment.On the contrary, it is to be appreciated that for feature Or the description of beneficial effect means at least one embodiment to include specific technical characteristic, technical solution or beneficial effect Fruit.Therefore, identical implementation is not necessarily meant to refer to for the description of technical characteristic, technical solution or beneficial effect in this specification Example.In turn, can by it is any it is appropriate in a manner of combine technical characteristic as described in this embodiment, technical solution and beneficial to effect Fruit.It will be understood to those of skill in the art that without the specific technical characteristics of one or more of specific embodiment, technical solution or Embodiment can be realized in beneficial effect.It in other embodiments, can also be in no specific embodiment for embodying all embodiments Identify additional technical characteristic and beneficial effect.
Detailed description of the invention
Fig. 1 is a kind of structural schematic diagram of mobile phone provided by the embodiments of the present application;
Fig. 2 is a kind of system architecture diagram of moving distance computing system provided by the embodiments of the present application;
Fig. 3 is the system architecture diagram of another moving distance computing system provided by the embodiments of the present application;
Fig. 4 a is the interface schematic diagram for the exercise data that a kind of mobile phone provided by the embodiments of the present application shows moving target;
Fig. 4 b is the interface signal for the exercise data that a kind of motion bracelet provided by the embodiments of the present application shows moving target Figure;
Fig. 5 is a kind of flow diagram one of moving distance calculation method provided by the embodiments of the present application;
Fig. 6 is a kind of method schematic diagram that terminal is interacted with server provided by the embodiments of the present application;
Fig. 7 is a kind of flow diagram two of moving distance calculation method provided by the embodiments of the present application;
Fig. 8 is a kind of flow diagram three of moving distance calculation method provided by the embodiments of the present application;
Fig. 9 is a kind of flow diagram four of moving distance calculation method provided by the embodiments of the present application;
Figure 10 is a kind of flow diagram five of moving distance calculation method provided by the embodiments of the present application;
Figure 11 is a kind of structural schematic diagram of moving distance device provided by the embodiments of the present application;
Figure 12 is the structural schematic diagram of another moving distance device provided by the embodiments of the present application.
Specific embodiment
For the ease of clearly describing the technical solution of the embodiment of the present application, in embodiments herein, use " the One ", the printed words such as " second " distinguish function and the essentially identical identical entry of effect or similar item.For example, the first movement ginseng Several and the second kinematic parameter is used for the purpose of the different kinematic parameter of differentiation, is not defined to its sequencing.This field Technical staff is understood that the printed words such as " first ", " second " are not defined quantity and execution order, and " first ", Printed words such as " second " do not limit certain different yet.
It should be noted that in the application, " illustrative " or " such as " etc. words make example, illustration for indicating or say It is bright.Described herein as " illustrative " or " such as " any embodiment or design scheme be not necessarily to be construed as than it His embodiment or design scheme more preferably or more advantage.Specifically, use " illustrative " or " such as " etc. words be intended to Related notion is presented in specific ways.
In the application, "at least one" refers to one or more, and " multiple " refer to two or more."and/or", The incidence relation of affiliated partner is described, indicates may exist three kinds of relationships, for example, A and/or B, can indicate: individualism A, Exist simultaneously A and B, the case where individualism B, wherein A, B can be odd number or plural number.Character "/" typicallys represent front and back and closes Connection object is a kind of relationship of "or".At least one of " following (a) " or its similar expression, refer to these in any group It closes, any combination including individual event (a) or complex item (a).For example, at least one (a) in a, b or c, can indicate: A, b, c, a-b, a-c, b-c or a-b-c, wherein a, b, c can be individually, be also possible to multiple.
Before introducing the embodiment of the present application, first to the invention relates to related terms do description below:
Step counting algorithm: people movement when, can space three dimensions (taking human as object of reference, then be respectively up and down, Front and back and left and right) in generate an acceleration respectively.In the motion process of moving target, the acceleration of three dimensions always has one A is as time change presentation is periodically variable.The value of the periodically variable acceleration changes with the variation of time, The periodically variable acceleration is placed on using the time as in the coordinate system of axis, accelerating curve is totally rendered as a sine Curve.In people's motion process, paces can all correspond to the peak value in a sine curve each time.We are usually a minor peaks It is denoted as a step.
The essence of step counting algorithm is the period of determining Acceleration pulse.When acceleration undergo a wave crest-trough-wave crest, Or when trough-wave crest-trough, it is denoted as a step.Determine that the duration of a step (shares n for example, determining within the period of a step A acceleration sampled point, then the duration t of this step1=n × (1/F));Wherein, t1For the duration of this step, n is to add The number of speed sampling point, F are the sample frequency of acceleration.The cadence of moving target is determined according to the duration of each step, Then corresponding cadence
Step counting algorithm can also be counted in time t2The step number q inside walked, then corresponding cadence
Cadence: the frequency of moving target paces during the motion.The calculation method of cadence is moving target at one section In walk step number divided by this time duration (duration unit is generally minute).Illustratively, moving target was at 10 minutes 1200 steps are inside walked, then the cadence of moving target is 120.
Stride: the length of the moving target amplitude of paces namely moving target paces during the motion during the motion Degree.
Acceleration: the variable quantity for the speed that moving target is generated due to taking a step and receiving step during the motion.
Since the movement velocity of moving target and the cadence of moving target are related, server is in training motion model When, need to acquire the historical data of the cadence that largely can reflect moving target of multiple moving targets.In addition, the history number According to can also include: the corresponding moving distance of cadence.
Currently, server carries out model training to these historical datas, obtaining a motion model, (motion model is one A mathematical model, input parameter are the cadence of moving target, and output parameter is the stride of moving target or the fortune of moving target Dynamic speed, wherein output parameter is related with model training, and the model training output for stride is stride, for movement velocity Training output is movement velocity).Server sends motion model to terminal, and terminal receives the movement mould sent from server Type.(acceleration information is the original of the collected moving target of sensor to the acceleration information of the collected moving target of terminal Starting acceleration data, available acceleration information after handling the acceleration information) it is recorded later using step counting algorithm The step number (or run duration) and cadence of moving target.Cadence is input in above-mentioned motion model and obtains stride by terminal.Eventually Stride is obtained the moving distance of moving target multiplied by the step number determined above by step counting algorithm by end.Or terminal is defeated by cadence Enter to obtain the movement velocity of moving target into motion model;Movement velocity is moved multiplied by the run duration of moving target The moving distance of target.
But since moving target might have multi-motion state, different motion states one in the process of movement As correspond to different motion models.It may be such that and estimate using single motion model when estimating the moving distance of moving target There are biggish errors between the true moving distance of moving distance and moving target of meter.
In one implementation, server is in the above-mentioned Fast track surgery of training, in addition to comprehensively considering moving target Other than cadence and moving target height, parameter of the acceleration variance as motion model is also introduced.And server is transported in training Before movable model, the difference for moving cadence according to each time classifies to the movement of moving target.Every type games are determined respectively Historical movement parameter (including height, cadence and acceleration variance) different type of sports corresponds to different motion models.Example The motion model of property are as follows:
Mk=ak*f+bk*v+ck*h+dk
Wherein, f indicates cadence, and v indicates that acceleration variance, h indicate height.ak, bk, ck, dkTo indicate to number the fortune for being k The model parameter of dynamic type.Illustratively, ak, bk, ck, dkIt can be to pass through the constant obtained after model training.K indicates movement The number of type.MkIndicate the stride (or movement velocity) for the type of sports that number is k.
For the model parameter a for the motion model that the historical data training of different motion type obtainsk, bk, ck, dkIt is different.
When calculating the moving distance of moving target, it is first determined the cadence of moving target, according to the cadence of moving target It determines motion model corresponding with the cadence, is input to cadence, acceleration variance and height as input parameter in the model, It exports stride (or movement velocity).After obtaining output parameter, further calculating to output parameter can be obtained movement The moving distance of target.
Illustratively, output parameter is stride, then the step number of moving target is determined in step counting algorithm, by stride multiplied by step Number obtains the moving distance of moving target.Or output parameter is movement velocity, it is determined that the run duration of moving target will transport The movement velocity of moving-target obtains the moving distance of moving target multiplied by run duration.
In this implementation, it although server is classified the motion state of moving target, and is respectively trained To multiple motion models, but when the motion state of moving target is in two kinds of motion state intersections, no matter terminal is selected The corresponding motion model of which motion state in two kinds of motion states, calculated result may all generate large error. And when calculating the moving distance of moving target using model, motion model is selected to be not always able to according to the cadence of moving target Enough selections and the most like motion model of this motion state.Especially under running state, the cadence and movement of moving target State is not fully related.Lead to not choose optimal motion model.
In this regard, embodiments herein provides a kind of moving distance calculation method, the shifting for calculating moving target can be applied to In the terminal of dynamic distance.For example, the terminal can be mobile phone, wearable device (such as motion bracelet), tablet computer, individual digital In any terminals with moving distance computing function such as assistant (Personal Digital Assistant, PDA), certainly, In the examples below, the concrete form of the terminal is not intended to be limited in any.
Embodiment is specifically described so that the terminal is mobile phone 100 as an example below.It should be understood that diagram mobile phone 100 be only an example of terminal, and mobile phone 100 can have than shown in the drawings more or less component, Two or more components can be combined, or can have different component configurations.
As shown in Figure 1, mobile phone 100 can specifically include: processor 101, radio frequency (RF) circuit 102, memory 103, touching Touch screen 104, blue-tooth device 105, one or more sensors 106, Wi-Fi device 107, positioning device 108, voicefrequency circuit 109, The components such as Peripheral Interface 110 and power supply device 111.These components can pass through one or more communication bus or signal wire (Fig. 1 In be not shown) communicated.It will be understood by those skilled in the art that hardware configuration shown in Fig. 1 is not constituted to mobile phone It limits, mobile phone 100 may include perhaps combining certain components or different component cloth than illustrating more or fewer components It sets.
It is specifically introduced below with reference to all parts of the Fig. 1 to mobile phone 100:
Processor 101 is the control centre of mobile phone 100, using the various pieces of various interfaces and connection mobile phone 100, By running or executing the application program being stored in memory 103, and the data that calling is stored in memory 103, hold The various functions and processing data of row mobile phone 100.In some embodiments, processor 101 may include that one or more processing are single Member.For example, processor 101 can be 960 chip of kylin of Huawei Tech Co., Ltd's manufacture.In some implementations of the application In example, above-mentioned processor 101 can also include fingerprint authentication chip, for verifying to collected fingerprint.
Radio circuit 102 can be used for receive and send messages or communication process in, wireless signal sends and receivees.Particularly, After radio circuit 102 can receive the downlink data of base station, handled to processor 101;In addition, the data for being related to uplink are sent out Give base station.In general, radio circuit includes but is not limited to antenna, at least one amplifier, transceiver, coupler, low noise Amplifier, duplexer etc..In addition, radio circuit 102 can also be communicated with other equipment by wireless communication.The wireless communication Any communication standard or agreement, including but not limited to global system for mobile communications, general packet radio service, code point can be used Multiple access, wideband code division multiple access, long term evolution, Email, short message service etc..
Memory 103 is stored in memory 103 by operation for storing application program and data, processor 101 Application program and data execute the various functions and data processing of mobile phone 100.Memory 103 mainly includes storage program Area and storage data area, wherein storing program area can the (ratio of application program needed for storage program area, at least one function Such as sound-playing function, image player function);Storage data area can store according to the number created when using mobile phone 100 According to (such as audio data, phone directory etc.).In addition, memory 103 may include high-speed random access memory, can also include Nonvolatile storage, such as disk memory, flush memory device or other volatile solid-state parts etc..Memory 103 can To store various operating systems, for example, what Apple Inc. was developedOperating system, what Google was developedOperating system etc..Above-mentioned memory 103 can be independent, is connected by above-mentioned communication bus with processor 101 It connects;Memory 103 can also be integrated with processor 101.
Touch screen 104 may include Trackpad 104-1 and display (being referred to as display screen) 104-2.Wherein, touch-control Plate 104-1 can acquire the touch event of the user of mobile phone 100 on it or nearby, and (for example user is appointed using finger, stylus etc. What operation of the suitable object on Trackpad 104-1 or near Trackpad 104-1), and collected touch information is sent out Give other devices such as processor 101.Wherein, touch event of the user near Trackpad 104-1 can be referred to as to suspend Touch-control;Suspension touch control can refer to, user be not necessarily in order to select, move or drag target (such as icon etc.) and directly contact touching Plate is controlled, and user is only needed to be located near electronic equipment to execute wanted function.Under the application scenarios of suspension touch control, art Language " touch ", " contact " etc. will not be implied for directly contact touch screen, but neighbouring or close contact.It can suspend The Trackpad 104-1 of touch-control can be realized using condenser type, infrared light sensation and ultrasonic wave etc..Furthermore, it is possible to using resistance-type, The multiple types such as condenser type, infrared ray and surface acoustic wave realize Trackpad 104-1.Display (is referred to as display screen) 104-2 can be used for showing information input by user or be supplied to the information of user and the various menus of mobile phone 100.It can adopt Display 104-2 is configured with forms such as liquid crystal display, Organic Light Emitting Diodes.Trackpad 104-1 can be covered on display On device 104-2, after Trackpad 104-1 detects touch event on it or nearby, processor 101 is sent to determination The type of touch event, corresponding view can be provided according to the type of touch event on display 104-2 by being followed by subsequent processing device 101 Feel output.Although Trackpad 104-1 and display 104-2 are to realize mobile phone 100 as two independent components in Fig. 1 Output and input function, but it is in some embodiments it is possible to Trackpad 104-1 and display 104-2 is integrated and realize Mobile phone 100 outputs and inputs function.It is understood that touch screen 104 is stacked by the material of multilayer, the application is real It applies and only illustrates Trackpad (layer) and display screen (layer) in example, other layers are not recorded in the embodiment of the present application.In addition, In some other embodiment of the application, Trackpad 104-1 can be covered on display 104-2, and Trackpad 104-1 Size is greater than the size of display 104-2, so that display 104-2 is all covered on Trackpad 104-1 in the following, alternatively, above-mentioned Front that Trackpad 104-1 can be configured in the form of full panel in mobile phone 100 namely user are in the positive touch of mobile phone 100 It can be perceived by mobile phone, the full touch experience of mobile phone front thus may be implemented.In some other embodiment, Trackpad The front that 104-1 configured in the form of full panel in mobile phone 100, display 104-2 can also be configured in the form of full panel The front of mobile phone 100 can realize the structure of Rimless (Bezel) in the front of mobile phone in this way.
Mobile phone 100 can also include blue-tooth device 105, for realizing mobile phone 100 and other short-range electronic equipment (examples Such as mobile phone, smartwatch) between data exchange.Blue-tooth device in the embodiment of the present application can be integrated circuit or indigo plant Tooth chip etc..
Mobile phone 100 further includes at least one sensor 106, such as optical sensor, motion sensor and other sensors. Specifically, optical sensor may include ambient light sensor and proximity sensor, wherein ambient light sensor can be according to ambient light Light and shade adjust the brightness of the display of touch screen 104, proximity sensor can close aobvious when mobile phone 100 is moved in one's ear Show the power supply of device.
In this application as a kind of motion sensor, it is detected in all directions (generally using accelerometer sensor Three axis) acceleration size, using the acceleration transducer acquisition moving target acceleration information, processor 101 processing should Acceleration information obtains the moving distance of moving target.
Size and the direction that can detect that gravity when accelerometer sensor can also be used in static, can be used to identify mobile phone posture Application (such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (for example pedometer, strikes Hit) etc.;Other sensings such as gyroscope, barometer, hygrometer, thermometer, infrared sensor for can also configure as mobile phone 100 Device, details are not described herein.
Wi-Fi device 107, for providing the network insertion for following Wi-Fi relevant criterion agreement, mobile phone 100 for mobile phone 100 It can be linked into Wi-Fi access point by Wi-Fi device 107, and then user is helped to send and receive e-mail, browse webpage and access Streaming Media etc., it provides wireless broadband internet access for user.In some other embodiment, the Wi-Fi device 107 It can also be used as Wi-Fi wireless access point, Wi-Fi network access can be provided for other electronic equipments.
Positioning device 108, for providing geographical location for mobile phone 100.It is understood that the positioning device 108 is specific It can be the receiver of the positioning systems such as global positioning system (GPS) or Beidou satellite navigation system, Russian GLONASS.It is fixed Position device 108 is sent that information at processor 101 after receiving the geographical location that above-mentioned positioning system is sent Reason, or be sent to memory 103 and saved.In other some embodiments, which can also be auxiliary The receiver of GPS (AGPS), AGPS system are complete by assisting positioning device 108 as secondary server At ranging and positioning service, in this case, assisted location service device network and electronic equipment such as hand by wireless communication The positioning device 108 (i.e. GPS receiver) of machine 100 communicates and provides positioning assistance.In other some embodiments, the positioning Device 108 is also possible to the location technology based on Wi-Fi access point.Since each Wi-Fi access point has a whole world only One MAC Address, electronic equipment can scan in the case where opening Wi-Fi and collect the broadcast of the Wi-Fi access point of surrounding Signal, therefore the available MAC Address broadcast out to Wi-Fi access point;These can be indicated Wi-Fi and connect by electronic equipment Network is sent to location server to the data (such as MAC Address) of access point by wireless communication, is retrieved often by location server The geographical location of one Wi-Fi access point, and the degree of strength of Wi-Fi broadcast singal is combined, calculate the ground of the electronic equipment Reason position is simultaneously sent in the positioning device 108 of the electronic equipment.
Voicefrequency circuit 109, loudspeaker 113, microphone 114 can provide the audio interface between user and mobile phone 100.Audio Electric signal after the audio data received conversion can be transferred to loudspeaker 113, be converted to sound by loudspeaker 113 by circuit 109 Sound signal output.On the other hand, the voice signal of collection is converted to electric signal by microphone 114, after being received by voicefrequency circuit 109 Audio data is converted to, then audio data is exported to RF circuit 102 to be sent to such as another mobile phone, or by audio data Output is further processed to memory 103.
Peripheral Interface 110, for (such as keyboard, mouse, external-connection displayer, outside to be deposited for external input-output apparatus Reservoir, subscriber identification module card etc.) various interfaces are provided.Such as connect by universal serial bus (USB) interface with mouse, lead to Subscriber identification module card (SIM) card that the hard contact crossed on subscriber identification module card card slot is provided with telecom operators is connected It connects.Peripheral Interface 110 can be used to the input/output peripheral equipment of said external being couple to processor 101 and memory 103。
Mobile phone 100 can also include the power supply device 111 (such as battery and power management chip) powered to all parts, Battery can be logically contiguous by power management chip and processor 101, thus charged by the realization management of power supply device 111, The functions such as electric discharge and power managed.
Although Fig. 1 is not shown, mobile phone 100 can also include camera (front camera and/or rear camera), flash of light Lamp, micro projector, wireless near field communication (near field communication, NFC) device etc., it is no longer superfluous herein It states.
Moving distance calculation method provided by the embodiments of the present application is applied to moving distance computing system as shown in Figure 2 In.As shown in Fig. 2, the moving distance computing system includes: terminal 201 and the server communicated with terminal 202.
Wherein, terminal 201 is used to obtain the acceleration information of moving target, and true according to the acceleration information of moving target Determine the moving distance of moving target.
Server 202 is used to obtain the historical data of multiple moving targets, and to the historical data of moving target according to step Frequency and acceleration information are divided into N class.Server 202 is also used to carry out model training to every class historical data respectively, obtains N number of Predetermined movement model.
In conjunction with Fig. 2, as shown in figure 3, the terminal 201 may include processor 2012, and connect with processor 2012 Sensor 2011 and memory 2013.
Wherein, sensor 2011 is used to detect the acceleration information of acquisition moving target, and sends to processor 2012 Collected acceleration information.Illustratively, which can be acceleration transducer.In addition, the sensor 2011 It is also used to detect whether moving target is kept in motion.
Memory 2013 is for storing N number of predetermined movement model.Illustratively, which can be read-only storage Device (read only memory, ROM).
Processor 2012 is used for the acceleration information that receiving sensor 2011 is sent, and obtains from memory 2013 N number of pre- If motion model.Processor 2012 can be also used for the moving distance that moving target is determined according to acceleration information.Illustratively, Processor 2012 is central processing unit (central processing unit, CPU).
Processor 2012 can also be handled above-mentioned acceleration information according to N number of predetermined movement model, be moved The moving distance of target.
Termination example can be mobile phone or motion bracelet in this application, and mobile phone and motion bracelet all have display Interface can show the exercise data of moving target.
As shown in fig. 4 a, taking the terminal as an example, one can be run on mobile phone for showing the movement of moving target The application (application, APP) of data, when APP operation, the exercise data of moving target is as shown in fig. 4 a.The movement The exercise data of target may include: move distance, run duration, average speed, step number and stride.Optionally, the movement mesh Target exercise data can also include: heat, averagely with speed, average heart rate and average step number.
It should be understood that the exercise data for the moving target that the APP is shown was merely exemplary.In actual display, fortune The exercise data of moving-target can also be diagram for the total data or partial data of diagram, the exercise data of moving target Data other than data.
As shown in Figure 4 b, it by taking terminal is motion bracelet as an example, can be shown in the display screen of motion bracelet as shown in Figure 4 b Moving target exercise data.The exercise data of the moving target includes: move distance, run duration, average speed, step number And stride.Optionally, the exercise data of the moving target can also include: heat and average step number.
It should be understood that the exercise data of the moving target shown in the display screen of the motion bracelet was merely exemplary.? In actual display, the exercise data of moving target can be the total data or partial data of diagram, the movement of moving target Data can also be the data other than the data of diagram.
In a kind of achievable mode of the application, motion bracelet can also send out the exercise data of above-mentioned moving target It send to mobile phone, so that mobile phone shows the exercise data of moving target as shown in fig. 4 a.
Hereinafter, a kind of moving distance calculation method provided by the embodiments of the present application will be elaborated in conjunction with specific embodiments, As shown in figure 5, this method comprises:
In the case that step 101, terminal detect that moving target is kept in motion, terminal determines the acceleration of moving target Spend information and the first kinematic parameter.
Illustratively, motion state can be walking, run or ride.First kinematic parameter is the step of moving target Several or moving target run duration.Acceleration information includes acceleration variance and cadence.
Acceleration information handle according to the collected acceleration information of sensor by terminal in the embodiment of the present application It arrives.
If the first kinematic parameter is step number, the first kinematic parameter can be acquired sensor according to step counting algorithm by terminal To acceleration information handled to obtain.
Under motion state, acceleration changes over time and changes (in the walking or running of moving target moving target In the process, using the time as horizontal axis, acceleration is the acceleration that the longitudinal axis records moving target, and accelerating curve is close to sine curve).
Terminal detects that moving target is kept in motion and can be realized by following two mode in the embodiment of the present application:
Mode one, terminal obtain the acceleration information of moving target.Terminal divides the acceleration information of moving target Analyse the acceleration signature for determining moving target.Terminal determines that moving target is in movement if acceleration signature meets preset condition State.
Illustratively, above-mentioned acceleration signature is acceleration variance.Preset condition are as follows: if acceleration variance is greater than default threshold Value.When terminal determines the acceleration variance of moving target greater than preset threshold, determine that moving target is kept in motion.Ying Li Solution, acceleration signature can also be other features of moving target acceleration, such as chi square distribution etc..The application does not limit this It is fixed.
Mode two, terminal are handled by acceleration information of the step counting algorithm to moving target, judge acceleration information Whether meet step counting condition (wave period of the acceleration i.e. in acceleration information whether there is wave crest-trough-wave crest, or Trough-wave crest-trough feature acceleration period), if acceleration information meets step counting condition, terminal determines movement mesh Mark is kept in motion.
Illustratively, terminal determine moving target acceleration information can by the following manner 1 or in a manner of 2 realize:
The acceleration information of sensor real-time detection moving target in mode 1, terminal, and the processor hair into terminal Send acceleration information.The acceleration information that processor receiving sensor is sent, then processor obtains according to acceleration information and adds Velocity information.
The acceleration information of mode 2, sensor real-time detection moving target.Sensor obtains after handling acceleration information Then acceleration information is sent to processor by acceleration information.
Illustratively, after terminal detects the acceleration change of moving target, sensor is acquired according to step counting algorithm To the process of acceleration information that handles of acceleration information specifically:
Terminal counts the acceleration in the record period, counts the variation tendency of all acceleration.Whenever moving target plus There are a minor peaks in speed, then is denoted as a step.After record period, this is calculated according to the formula for calculating acceleration variance The step number of moving target is determined the step of moving target by the acceleration variance in record period divided by the duration of this record period Frequently.
Illustratively, acceleration variance can be calculated by following formula:
Wherein, s is acceleration variance, a1、a2、…anThe n acceleration respectively recorded in the period.B is the n and adds The average value of speed,
Step 102, terminal according to acceleration information and N number of predetermined movement model determine moving target during exercise in Second kinematic parameter.Wherein, N is the integer more than or equal to 2.
Illustratively, N number of predetermined movement model can be stride motion model or speed motion model.Wherein, stride is transported Movable model is used to calculate the stride of moving target.Speed motion model can be used for calculating the speed of moving target.
N number of predetermined movement model be server to multiple moving targets to historical data according to acceleration variance and step Frequency classify multiple motion models that laggard line number model training obtains.
When the first kinematic parameter is the step number of moving target, the second kinematic parameter is the stride of moving target.When first When kinematic parameter is the run duration of moving target, the second kinematic parameter is the movement velocity of moving target.
Specifically, N number of predetermined movement model can be obtained by the training of multiple historical datas.In order to more accurately calculate Moving distance of the moving target under different motion state, the type of sports of N number of predetermined movement model in the embodiment of the present application It is different.For example, the type of sports of N number of predetermined movement model may include any one or more combinations in following: moving target Motion model in the state of running, motion model of the moving target in walking states or moving target under riding condition.
N number of predetermined movement model can be obtained by terminal from server.Certainly, which can also To be stored in advance in terminal (for example, being stored in the ROM of terminal).
If N number of predetermined movement model is to be obtained by terminal from server, side provided by the embodiments of the present application Method further include: terminal to server sends acquisition request, and the acquisition request is for obtaining N number of predetermined movement model.Server Receive the acquisition request for carrying out self terminal.Server sends N number of predetermined movement model to terminal, so that terminal obtains from server Take N number of predetermined movement model.
It should be understood that terminal can also be from server in the case where being previously stored with N number of predetermined movement model in the terminal N number of predetermined movement model is obtained, at this moment terminal is higher than in terminal from the priority of the N number of predetermined movement model obtained from server The N number of default fortune got from server can be used in the priority namely terminal of pre-stored N number of predetermined movement model Movable model calculates the second kinematic parameter.
Step 103, terminal determine the moving distance of moving target according to the first kinematic parameter and the second kinematic parameter.
Example 1), the first kinematic parameter be moving target step number, the second kinematic parameter be moving target stride.
In one possible implementation, the step 103 in the embodiment of the present application can be specific real in the following manner Existing: terminal determines the moving distance of moving target according to the step number of moving target and the stride of moving target.Specifically, terminal Moving distance is determined according to the product of step number and stride.
Example 2), the first kinematic parameter be moving target run duration, the second kinematic parameter be moving target movement Speed.
In alternatively possible implementation, the step 103 in the embodiment of the present application can be specific in the following manner Realize: terminal determines the moving distance of moving target according to the step number of moving target and the stride of moving target.Specifically, eventually End determines moving distance according to the product of run duration and movement velocity.
The embodiment of the present application provides a kind of moving distance calculation method, when terminal detects that moving target is kept in motion In the case where, terminal determines the acceleration information and the first kinematic parameter of moving target.Terminal is according to acceleration information and N number of pre- If motion model determine moving target during exercise in the second kinematic parameter.Wherein, the first kinematic parameter is moving target Step number, the second kinematic parameter be moving target stride;Alternatively, the first kinematic parameter is the run duration of moving target, the Two kinematic parameters are the movement velocity of moving target;N is the integer more than or equal to 2;Terminal is according to the first kinematic parameter and Two kinematic parameters determine the moving distance of moving target.The moving distance of moving target is calculated using N number of predetermined movement model.It can The second kinematic parameter is determined with the calculated result of the N number of predetermined movement model of synthesis, is avoided through single predetermined movement model meter Calculate moving target moving distance when, because single predetermined movement model acceleration and moving target acceleration information difference compared with Moving distance calculates the larger problem of error caused by big, therefore the accurate of the moving distance for calculating moving target can be improved Degree.
In conjunction with Fig. 5, as shown in fig. 6, before step 102, method provided by the embodiments of the present application further include:
Step 201, terminal to server send acquisition request, which is used for the N number of predetermined movement mould of request Type.
Optionally, any one of height or age of moving target can also be carried in the acquisition request.
It should be understood that if selecting N number of predetermined movement model from M predetermined movement model by server, terminal is to clothes Also need to carry the acceleration information of moving target in the acquisition request that business device is sent.
Step 202, server receive the acquisition request for carrying out self terminal.
Step 203, server send N number of predetermined movement model to terminal.
Server can actively be sent to terminal N number of pre- after the N number of predetermined movement model of training in the embodiment of the present application If motion model, N number of predetermined movement model can also be sent to terminal under the triggering for the acquisition request that terminal is sent.By In the case that server actively sends N number of predetermined movement model to terminal, step 201 and step 202 be can be omitted.
Step 204, terminal receive N number of predetermined movement model from server.
In conjunction with Fig. 5, as shown in fig. 7, the step 102 in the embodiment of the present application can specifically be accomplished by the following way:
Acceleration information is inputted N number of predetermined movement model by step 1021, terminal, is obtained every in N number of predetermined movement model The corresponding third kinematic parameter of a predetermined movement model.
In one kind in the specific implementation, the corresponding third kinematic parameter of different predetermined movement model in N number of predetermined movement model Value it is different.Certainly, there may also be right in any two or more than two predetermined movement models in N number of predetermined movement model The value for the third kinematic parameter answered is identical.
Specifically, terminal calculates the acceleration information in this record period, the acceleration information of moving target is obtained.Eventually Acceleration information is separately input in each predetermined movement model of above-mentioned N number of predetermined movement model by end.Each predetermined movement Model can export a third kinematic parameter respectively.The parameter type phase of the third kinematic parameter and aforementioned second kinematic parameter Together.Also even the second kinematic parameter is stride, then third kinematic parameter is similarly stride.If the second kinematic parameter is speed, Third kinematic parameter is similarly speed.
A kind of example, by taking predetermined movement model is stride motion model as an example, when the second kinematic parameter is moving target When stride, stride motion model can be indicated with following mathematical model:
Xi=ai*f+bi*v+di
Wherein, f indicates cadence, and v indicates acceleration variance.ai, bi, diTo indicate to number the model ginseng for the type of sports for being i Number.Illustratively, ai, bi, diIt can be to pass through the constant obtained after model training.The number of i expression type of sports.XiIt indicates The stride for the type of sports that number is i.
For the model parameter a for the motion model that the historical data training of different motion type obtainsi, bi, diIt is different.
In one implementation, server is when carrying out model training to historical data, in addition to considering moving target Other than cadence, it is also added into the height factor of moving target.When terminal calculates the moving distance of moving target, by moving target The kinematic parameter of height and moving target is input to simultaneously in moving target motion model, calculates the accurate of moving distance to improve Degree.Certainly, which can be combined with different age group or different height to divide.Specifically, service Device or terminal can select and the matched N number of predetermined movement model of height in conjunction with the height of moving target.Server or end It end can be in conjunction with N number of predetermined movement model of the age selection and age-matched of moving target.
Another example, by taking predetermined movement model is speed motion model as an example, when the second kinematic parameter is moving target Movement velocity when, speed motion model can be indicated with following mathematical model: Yj=aj*f+bj*v+dj.Wherein, aj, bj, dj To indicate to number the model parameter for the type of sports for being j.Illustratively, aj, bj, djIt can be by being obtained after model training Constant.The number of j expression type of sports.YjIndicate the movement velocity for the type of sports that number is j.
In one possible implementation, if be trained to predetermined movement model, multiple moving targets be joined Height, then stride motion model can also be indicated with following mathematical model: Xi=ai*f+bi*v+ci*h+di.H indicates movement mesh Target height.ciIt can be to pass through the constant obtained after model training.Speed motion model can also use following mathematical model table Show: Yj=aj*f+bj*v+cj*h+dj。cjIt can be to pass through the constant obtained after model training.
For example, being a with acceleration information, which is respectively the first predetermined movement model and A is then input in the first predetermined movement model, obtains for the output of predetermined movement model is stride by two predetermined movement models To third kinematic parameter X1.Then a is input in the second predetermined movement model, obtains third kinematic parameter X2
Step 1022, terminal are according to the corresponding third kinematic parameter of each predetermined movement model and each predetermined movement mould The respective weight of type, determines the second kinematic parameter.
Wherein, each predetermined movement model respectively corresponds a weight, the corresponding weight of a predetermined movement model and its He may be the same or different the corresponding weight of predetermined movement model.The sum of weight of N number of predetermined movement model is equal to 1.
The weight is used to indicate the degree of correlation of predetermined movement model and moving target motion process in the record period. It should be understood that bigger expression predetermined movement model of weight of a predetermined movement model and movement in N number of predetermined movement model The degree of correlation of target motion process is higher.The smaller expression of weight of a predetermined movement model in N number of predetermined movement model The predetermined movement model is lower with the degree of correlation of moving target motion process.
For example, each predetermined movement model has a corresponding acceleration during training predetermined movement model Degree.
Specifically, the third kinematic parameter that terminal exports each predetermined movement model is corresponding with the predetermined movement model Weight is calculated by preset algorithm, obtains the second kinematic parameter.
Illustratively, when the second kinematic parameter is the stride of moving target, step 1022 specifically can be by with lower section Formula is realized: terminal is according to formulaDetermine the second kinematic parameter.
Wherein,Indicate the stride of moving target movement, wiIndicate the weight for the predetermined movement model that number is i, XiIt indicates Indicate that the stride for the type of sports that number is i, i are the number of type of sports, i is derived from 1,2 ..., N.
Illustratively, when the second kinematic parameter be moving target movement velocity when, step 1022 specifically can by with Under type is realized: terminal is according to formulaDetermine the second kinematic parameter.
Wherein,Indicate the movement velocity of moving target, λjIndicate the weight for the predetermined movement model that number is j, YjIt indicates The movement velocity for the type of sports that number is j.
For example, being a with acceleration information, which is respectively the first predetermined movement model and For two predetermined movement models, the weight of the first predetermined movement model isThe weight of second predetermined movement model isThen Two kinematic parameters
Each respective weight of predetermined movement model can be obtained by terminal from server in the embodiment of the present application, namely Server is that each predetermined movement model respectively distributes a weight, then by each predetermined movement model and respective weight it Between mapping relations be sent to terminal.Alternatively, each respective weight of predetermined movement model is voluntarily distributed by terminal.Specifically , terminal can be realized from each predetermined movement model distribution weight of behavior by following steps 104.
In conjunction with Fig. 7, as shown in figure 8, method provided by the embodiments of the present application is before step 1021 further include:
Step 104, terminal according to acceleration information in N number of predetermined movement model each predetermined movement model it is similar Degree, determines each respective weight of predetermined movement model.
In conjunction with Fig. 8, as shown in figure 9, the step 104 in the embodiment of the present application can specifically be realized by following steps:
Step 1041, terminal determine the acceleration variance average value and cadence average value of predetermined movement model.
Specifically, after training is completed, can be obtained each during server training N number of predetermined movement model The average value of the corresponding acceleration variance of predetermined movement model and the average value of cadence.Terminal receives N number of pre- from server If when motion model, while obtaining the average value of the acceleration variance of each predetermined movement model and the average value of cadence.
In a kind of implementation of this step, terminal or server can also match in advance for each predetermined movement model Set a weight.Acceleration information directly can be inputted each predetermined movement model by terminal, to obtain acceleration information every Corresponding third kinematic parameter in a predetermined movement model.Terminal joins the corresponding third movement of each predetermined movement model Number obtains the second kinematic parameter multiplied by cumulative after the corresponding weight of each predetermined movement model.It is each default by server Motion model distributes weight, it is possible to reduce the calculation amount of terminal.
Step 1042, terminal are according to the acceleration variance average value and cadence average value and acceleration of predetermined movement model The acceleration variance and cadence of information, determine the similarity of acceleration information and predetermined movement model.
Specifically, being provided with the algorithm for calculating the similarity of predetermined movement model and moving target movement in terminal in advance. Respectively by the acceleration side of the acceleration variance average value of above-mentioned predetermined movement model and cadence average value and acceleration information Difference and cadence are brought into above-mentioned similarity algorithm, and the similarity of acceleration information and predetermined movement model is obtained.
Illustratively, acceleration variance average value and the cadence that predetermined movement model can be calculated in the embodiment of the present application are flat Euclidean distance between mean value and the acceleration variance and cadence of acceleration information.Using Euclidean distance as predetermined movement model With the similarity of acceleration information.The calculation formula of Euclidean distance are as follows:
Wherein, l indicates the Euclidean distance of predetermined movement model and acceleration information, a1Indicate the acceleration of predetermined movement model Spend the normalization average value of variance, a2Indicate the normalized value of the acceleration variance of acceleration information, b1Indicate predetermined movement model Cadence normalization average value, b2Indicate the normalized value of the cadence of acceleration information.
It should be understood that the above-mentioned similarity using Euclidean distance as acceleration information and predetermined movement model is in order to one kind Mode more intuitive, easier to understand explains the calculation method of above-mentioned similarity, and should not be construed as to the application Ask the restriction of similarity based method.Those skilled in the art can determine acceleration information and predetermined movement mould by a variety of methods The similarity of type, the application do not limit this.
In a kind of implementation, since the value of acceleration variance is usually smaller, the value of cadence is usually larger, if directly calculating The acceleration variance and cadence of the acceleration variance average value of predetermined movement model and cadence average value and acceleration information it Between Euclidean distance, then specific gravity shared by acceleration variance is smaller, will lead to similarity calculation inaccuracy.Therefore, it is necessary to first The acceleration variance and cadence of acceleration variance average value and cadence average value and acceleration information to predetermined movement model It is normalized.Specifically:
It enablesWherein axIndicate the average value of the acceleration variance of predetermined movement model, axminIt is default The minimum value of the acceleration variance of motion model, axmaxThe maximum value of the acceleration variance of predetermined movement model.
It enablesWherein ayIndicate the acceleration variance of acceleration information, ayminAcceleration information adds The minimum value of velocity variance, aymaxThe maximum value of the acceleration variance of acceleration information.
It enablesWherein bxIndicate the average value of the cadence of predetermined movement model, bxminPredetermined movement mould The minimum value of the cadence of type, bxmaxThe maximum value of the cadence of predetermined movement model.
It enablesWherein byIndicate the cadence of acceleration information, byminThe cadence of acceleration information is most Small value, bymaxThe maximum value of the cadence of acceleration information.
Step 1043, terminal determine the power of predetermined movement model according to the similarity of acceleration information and predetermined movement model Weight.
In a kind of implementation of step 1043, terminal is true according to the similarity of acceleration information and predetermined movement model The weight for determining predetermined movement model, specifically may be implemented are as follows:
Terminal determines the sum of the similarity of acceleration information Yu above-mentioned N number of predetermined movement model, obtains similarity summation.
Terminal determines similarity the accounting in similarity summation of each predetermined movement model in N number of predetermined movement model Than.
Accounting of the terminal by the similarity of each predetermined movement model in similarity summation, is determined as each predetermined movement The respective weight of model.
Illustratively, with N=5, N number of predetermined movement model is respectively the first predetermined movement model, the second predetermined movement mould Type, third predetermined movement model, the 4th predetermined movement model, the 5th predetermined movement model.First to the 5th predetermined movement mould The similarity of type and acceleration information is respectively 10,30,2,5,3.Then acceleration information and first to the 5th predetermined movement mould The similarity summation of type is 50, be calculated acceleration information and first to the 5th predetermined movement model similarity account for it is above-mentioned The ratio of similarity summation is respectively 20%, 60%, 4%, 10%, 6%.By 20%, 60%, 4%, 10%, 6% respectively as The weight of above-mentioned first to the 5th predetermined movement model.Namely first the weight of predetermined movement model be the 20%, second default fortune The weight that the weight of movable model is 60%, the weight of third predetermined movement model is the 4%, the 4th predetermined movement model is 10%, The weight of 5th predetermined movement model is 6%.
In a kind of implementation of the application, motion state can be divided by server according to acceleration variance and cadence Multi-motion type is (for example, be divided into walking and running for motion state.Can also further will to walking and running state Divided, such as will walk and be divided into 5 grades, it is at different levels between motion state it is different.Running is divided into 5 grades, it is at different levels between Motion state it is different).Due to moving target within this period of motion usually only compared with several type of sports it is close.Example Such as, moving target differs larger with the state of running in the state of walking.At this point, if by this record period of moving target Acceleration information taken in whole Fast track surgeries respectively, may result in unnecessary calculation amount and increase, and with fortune The lower model of acceleration information similarity of moving-target may reduce the accuracy of calculated result.
In order to reduce the calculation amount of terminal, the predetermined movement model for avoiding similarity too low generates the calculating of moving distance Interference, method provided by the embodiments of the present application further include: N number of predetermined movement model is that similarity is big in M predetermined movement model In or equal to preset threshold predetermined movement model, M is integer more than or equal to N.
Specifically: server is divided into according to the acceleration of each movement in historical data and cadence according to preset rules M class.Server is trained class historical data every in M class, to obtain M predetermined movement model.Server is sent to terminal The M predetermined movement model, terminal receive the M predetermined movement model from server, and terminal is according to 1042 He of above-mentioned steps Each predetermined movement model and acceleration information in the M predetermined movement model is calculated in method documented by step 1043 Similarity.Take the N number of predetermined movement mould for being greater than preset threshold in the M predetermined movement model with the similarity of acceleration information Type, or take in the M predetermined movement model with the maximum N number of predetermined movement model of the similarity of acceleration information.Certainly, It can be that terminal selects and the maximum N number of default fortune of the similarity of acceleration information from M predetermined movement model by server Movable model.It should be understood that terminal is from server when selecting N number of predetermined movement model from M predetermined movement model by terminal Obtain M predetermined movement model.
In a kind of implementation of the embodiment of the present application, when terminal is according to the movement velocity and run duration of moving target When calculating the moving distance of moving target, since moving target is likely to be at different motion state (examples in different time period If moving target proceeds on foot training court, then start to take exercise by running, in walking a distance after taking exercise by running). If multiple motion state record is carried out moving distance calculating in one cycle, and will to will lead to error calculated larger.
Therefore, the embodiment of the present application the run duration can also be divided into multiple time windows (such as with per second or Time window is divided per minute for time span), terminal is according to corresponding first acceleration information of each time window and N A predetermined movement model determines the corresponding movement velocity of each time window.
Specifically, acceleration information includes each time window corresponding first in multiple time windows in run duration Acceleration information.Terminal determines every according to corresponding first acceleration information of each time window and N number of predetermined movement model The corresponding movement velocity of a time window.
Terminal is determined according to the corresponding movement velocity of each time window and the respective time span of each time window The moving distance of moving target.
More specifically, run duration is divided into multiple time windows according to preset duration by terminal.Terminal respectively will be each Acceleration information in time window is brought into N number of predetermined movement model, obtains the fortune of moving target in each time window Dynamic speed (process is identical above with the embodiment of the present application for the process, and details are not described herein again).Terminal will transport in each time window The movement velocity of moving-target multiplied by the time window time span, obtain movement of the moving target in each time window away from From.Terminal sums the moving distance of moving target in each time window, obtains total moving distance of moving target.
As shown in Figure 10, Figure 10 shows server training and obtains the process of N number of predetermined movement model, this method comprises:
Step 301, server obtain historical data.
It wherein, include the exercise data of different motion type in the historical data.The historical data is multiple fortune of acquisition The data of the motion profile of moving-target include acceleration of each moving target in each motion profile in these historical datas Variance, cadence, step number, stride (or movement velocity, run duration) and moving distance.
Above-mentioned historical data can store in the server, also can store and is establishing other communicated to connect with server It stores in equipment.
Historical data is divided into N class historical data by step 302, server.
Specifically, server carries out gait point to historical data according to preset acceleration variance section and cadence section Class.
Illustratively, the gait types of moving target are divided into five classes, respectively the first gait types, the second gait class Type, third gait types, the 4th gait types and the 5th gait types.The acceleration side of whole possible data in historical data Poor range is c1To c6;The range of cadence is d1To d6
By acceleration variance in c1To c2Between, cadence is in d1To d2Between historical data be divided into the first gait types. By acceleration variance in c2To c3Between, cadence is in d2To d3Between historical data be divided into the second gait types.By acceleration Variance is in c3To c4Between, cadence is in d3To d4Between historical data be divided into third gait types.By acceleration variance in c4 To c5Between, cadence is in d4To d5Between historical data be divided into the 4th gait types.By acceleration variance in c5To c6Between, Cadence is in d5To d6Between historical data be divided into the 5th gait types.
Step 303, server carry out predetermined movement model training to N class historical data, obtain N number of predetermined movement model.
It is trained specifically, the historical data after classification is input in corresponding mathematical model by server.Service There are many ways to device carries out model training to historical data.Such as server transports historical data by least square method It calculates, determines predetermined movement model.
Server carries out operation to historical data by least square method, determines the detailed process packet of predetermined movement model It includes:
Server extracts the cadence and acceleration variance of various time points in historical data.Server is by these points with step It is arranged in frequency and the coordinate system that acceleration variance is axis.These points are substantially in zonal distribution.By finding straight line, Keep quadratic sum of the above-mentioned all the points at a distance from the straight line minimum.The mathematic(al) representation of the straight line be we train obtain it is pre- If motion model.
In a kind of implementation of the embodiment of the present application, after step 103, server can with receiving terminal or its The second historical data that his equipment is sent.Second historical data is what terminal was calculated in the moving distance to moving target The historical data generated in the process.And above-mentioned historical data and other above-mentioned historical datas is combined further to classify and preset Motion model training.Obtain new N number of default training pattern.N number of default training pattern is sent to terminal so that terminal root The moving distance of moving target is determined according to N number of default training pattern.
It should be understood that second historical data information can also be other historical datas, such as other equipment acquisition other The historical data of the movement of moving target.
It is understood that above-mentioned terminal or server etc. are in order to realize the above functions, it comprises execute each function Corresponding hardware configuration and/or software module.Those skilled in the art should be readily appreciated that, in conjunction with disclosed herein Each exemplary unit and algorithm steps of embodiment description, the embodiment of the present application can be with hardware or hardware and computer software Combining form is realized.Some functions is executed in a manner of hardware or computer software driving hardware actually, depends on skill The specific application and design constraint of art scheme.Professional technician can carry out using distinct methods each specific application It realizes described function, but this realizes it is not considered that exceeding the range of the embodiment of the present application.
The embodiment of the present application can carry out functional module to above-mentioned terminal or server etc. according to above method example and draw Point, for example, each functional module of each function division can be corresponded to, two or more functions can also be integrated in one In a processing module.Above-mentioned integrated module both can take the form of hardware realization, can also be using software function module Form is realized.It should be noted that being schematical, only a kind of logic function to the division of module in the embodiment of the present application It divides, there may be another division manner in actual implementation.
In the case where each function division of use correspondence each functional module, Figure 11 shows involved in above-described embodiment And a kind of moving distance computing device a kind of possible structural schematic diagram, which includes: that processing is single Member 301.
In a kind of possible implementation, which can also include: communication unit 302.
A kind of example, the moving distance computing device are terminal or are chip applied to the method in terminal, the processing unit 301 for executing above-mentioned steps 101, step 102 and step 103.
A kind of possible implementation, the processing unit 301 be also used to execute step 1021, step 1022, step 104, Step 1041, step 1042 and step 1043.
A kind of possible implementation, the communication unit 302 is for executing above-mentioned steps 201 and step 204.
Another example, the moving distance computing device are server or for applied to the chip in server, at this It manages unit 301 and is used for above-mentioned steps 302 and step 303.
A kind of possible implementation, the communication unit 302 is for executing above-mentioned steps 301, step 202 and step 203.
Optionally, moving distance computing device can also include storage unit.Wherein, what above method embodiment was related to is each All related contents of step can quote the function description of corresponding function module, and details are not described herein.
Using integrated unit, Figure 12 shows moving distance involved in above-described embodiment and calculates dress A kind of possible structural schematic diagram set.The moving distance computing device includes: processing module 412 and communication module 413.Processing Module 412 is for carrying out control management to the movement of moving distance computing device.Communication module 413 is by supporting based on moving distance Calculate the communication of device and other network entities.The moving distance computing device can also include memory module 411, move for storing Dynamic program code and data apart from computing device.
A kind of example, the moving distance computing device are terminal or are chip applied to the method in terminal, the processing module 412 for executing above-mentioned steps 101, step 102 and step 103.
A kind of possible implementation, the processing module 412 are also used to execute step 1021, step 1022, step 104 Suddenly, step 1041, step 1042 and step 1043.
A kind of possible implementation, the communication module 413 is for executing above-mentioned steps 201 and step 204.
Another example, the moving distance computing device are server or for applied to the chip in server, at this Reason module 412 is for executing above-mentioned steps 302 and step 303.
A kind of possible implementation, the communication module 413 is for executing above-mentioned steps 301, step 202 and step 203.
Wherein, processing module 412 can be processor or controller, such as can be central processing unit (Central Processing Unit, CPU), general processor, digital signal processor (Digital Signal Processor, DSP), Specific integrated circuit (Application-Specific Integrated Circuit, ASIC), field programmable gate array It is (Field Programmable Gate Array, FPGA) or other programmable logic device, transistor logic, hard Part component or any combination thereof.It may be implemented or execute to combine and various illustratively patrol described in present disclosure Collect box, module and circuit.The processor is also possible to realize the combination of computing function, such as includes one or more micro- places Manage device combination, DSP and the combination of microprocessor etc..Communication module 413 can be communication interface etc..Memory module 411 can be with It is memory.
When processing module 412 is processor 101, communication module 413 is radio circuit 102, and memory module 411 is memory When 103, terminal provided by the embodiment of the present application can be terminal shown in FIG. 1.
In the other embodiment of the application, a kind of computer readable storage medium is provided, it is computer-readable to deposit Instruction is stored in storage media, when instruction is run so that moving distance computing device execute embodiment in step 101, Step 102 and step 103.
On the one hand, a kind of computer readable storage medium is provided, instruction is stored in computer readable storage medium, works as finger When order is run, so that moving distance computing device executes, step 1021, step 1022, step 104 in embodiment be rapid, step 1041, step 1042 and step 1043.
On the one hand, a kind of computer readable storage medium is provided, instruction is stored in computer readable storage medium, works as finger When order is run, so that moving distance computing device executes the step 201 and step 204 in embodiment.
On the other hand, a kind of computer readable storage medium is provided, instruction is stored in computer readable storage medium, when When instruction is run, so that moving distance computing device executes the step 302 and step 303 in embodiment.
On the one hand, a kind of computer readable storage medium is provided, instruction is stored in computer readable storage medium, works as finger When order is run, so that moving distance computing device executes step 301, step 202 and the step 203 in embodiment.
Readable storage medium storing program for executing above-mentioned may include: USB flash disk, mobile hard disk, read-only memory, random access memory, magnetic The various media that can store program code such as dish or CD.
On the one hand, a kind of computer program product including instruction is provided, is stored with instruction in computer program product, when When instruction is run, so that moving distance computing device executes step 101, step 102, step 103, step in embodiment 1021, step 1022, step 104 be rapid, step 1041, step 1042 and step 1043.
On the other hand, a kind of computer program product including instruction is provided, is stored with instruction in computer program product, When instruction is run, so that moving distance computing device executes step 201 and step 204.
Another aspect provides a kind of computer program product including instruction, is stored with instruction in computer program product, When instruction is run, so that moving distance computing device executes step 302 and step 303.
Another aspect provides a kind of computer program product including instruction, is stored with instruction in computer program product, When instruction is run, so that moving distance computing device executes step 301, step 202 and step 203.
In the above-described embodiments, all or part of can be come in fact by software, hardware, firmware or any combination thereof It is existing.When being realized using software program, can entirely or partly occur in the form of a computer program product.The computer Program product includes one or more computer instructions.When loading on computers and executing the computer program instructions, entirely Portion is partly generated according to process or function described in the embodiment of the present application.The computer can be general purpose computer, specially With computer, computer network or other programmable devices.The computer instruction can store in computer-readable storage In medium, or from a computer readable storage medium to the transmission of another computer readable storage medium, for example, the meter Calculation machine instruction can from a web-site, computer, server or data center by it is wired (such as coaxial cable, optical fiber, Digital Subscriber Line (DSL)) or wireless (such as infrared, wireless, microwave etc.) mode to another web-site, computer, service Device or data center's transmission.The computer readable storage medium can be any usable medium that computer can access or It is comprising data storage devices such as one or more usable mediums integrated server, data centers.The usable medium can be Magnetic medium, (for example, floppy disk, hard disk, tape), optical medium (for example, DVD) or semiconductor medium (such as solid state hard disk Solid State Disk (SSD)) etc..
The above, the only specific embodiment of the application, but the protection scope of the application is not limited thereto, it is any Those familiar with the art within the technical scope of the present application, can easily think of the change or the replacement, and should all contain Lid is within the scope of protection of this application.Therefore, the protection scope of the application should be based on the protection scope of the described claims.

Claims (21)

1. a kind of moving distance calculation method characterized by comprising
In the case that terminal detects that moving target is kept in motion, the terminal determines the acceleration letter of the moving target Breath and the first kinematic parameter;
The terminal according to the acceleration information and N number of predetermined movement model determine the moving target during exercise in Second kinematic parameter;Wherein, first kinematic parameter is the step number of the moving target, and second kinematic parameter is described The stride of moving target;Alternatively, first kinematic parameter is the run duration of the moving target, second kinematic parameter For the movement velocity of the moving target;N is the integer more than or equal to 2;
The terminal determines the moving distance of the moving target according to first kinematic parameter and second kinematic parameter.
2. the method according to claim 1, wherein the terminal is according to the acceleration information and N number of default Motion model determine the moving target during exercise in the second kinematic parameter, comprising:
The acceleration information is inputted N number of predetermined movement model by the terminal, is obtained in N number of predetermined movement model The corresponding third kinematic parameter of each predetermined movement model;
The terminal is according to each corresponding third kinematic parameter of predetermined movement model and each predetermined movement mould The respective weight of type determines second kinematic parameter.
3. -2 described in any item methods according to claim 1, which is characterized in that the method also includes:
The terminal according to the acceleration information in N number of predetermined movement model each predetermined movement model it is similar Degree, determines each respective weight of predetermined movement model.
4. according to the method described in claim 3, it is characterized in that, the terminal according to the acceleration information with it is described N number of The similarity of each predetermined movement model in predetermined movement model determines each respective weight of predetermined movement model, packet It includes:
The terminal determines the acceleration variance average value and cadence average value of each predetermined movement model;
The terminal according to the acceleration variance average value and cadence average value of each predetermined movement model and it is described plus The acceleration variance and cadence of velocity information determine the similarity of the acceleration information and each predetermined movement model;
The terminal determines described each default according to the similarity of the acceleration information and each predetermined movement model The weight of motion model.
5. method according to claim 1-4, which is characterized in that N number of predetermined movement model is M default Predetermined movement model in motion model, and the similarity between N number of predetermined movement model and the acceleration information is big In or equal to preset threshold, M is the integer greater than N.
6. method according to claim 1-5, which is characterized in that when the acceleration information includes the movement In multiple time windows in corresponding first acceleration information of each time window;Second kinematic parameter is the fortune When the movement velocity of moving-target, the terminal determines the movement mesh according to the acceleration information and N number of predetermined movement model The second kinematic parameter being marked in run duration, comprising:
The terminal is according to each corresponding first acceleration information of time window and N number of predetermined movement model Determine the corresponding movement velocity of each time window.
7. according to the method described in claim 6, it is characterized in that, the terminal is according to first kinematic parameter and described Two kinematic parameters determine the moving distance of the moving target, comprising:
The terminal is according to each corresponding movement velocity of time window and each time window respective time Length determines the moving distance of the moving target.
8. method according to claim 1-7, which is characterized in that the method also includes:
The terminal obtains N number of predetermined movement model from server.
9. a kind of moving distance computing device, which is characterized in that described device includes:
Processor determines the acceleration letter of the moving target in the case where detecting that moving target is kept in motion Breath and the first kinematic parameter;
The processor is also used to determine that the moving target is being transported according to the acceleration information and N number of predetermined movement model The second kinematic parameter in the dynamic time;Wherein, first kinematic parameter is the step number of the moving target, second movement Parameter is the stride of the moving target;Alternatively, first kinematic parameter is the run duration of the moving target, described the Two kinematic parameters are the movement velocity of the moving target;N is the integer more than or equal to 2;
The processor is also used to determine the moving target according to first kinematic parameter and second kinematic parameter Moving distance.
10. device according to claim 9, which is characterized in that the processor, also particularly useful for:
The acceleration information is inputted into N number of predetermined movement model, obtains each presetting in N number of predetermined movement model The corresponding third kinematic parameter of motion model;
It is respective according to each corresponding third kinematic parameter of predetermined movement model and each predetermined movement model Weight determines second kinematic parameter.
11. according to the described in any item devices of claim 9-10, which is characterized in that the processor, also particularly useful for:
According to the similarity of each predetermined movement model in the acceleration information and N number of predetermined movement model, institute is determined State each respective weight of predetermined movement model.
12. device according to claim 11, which is characterized in that the processor, also particularly useful for:
Determine the acceleration variance average value and cadence average value of each predetermined movement model;
According to the acceleration variance average value of each predetermined movement model and cadence average value and the acceleration information Acceleration variance and cadence, determine the similarity of the acceleration information and each predetermined movement model;
Each predetermined movement model is determined according to the similarity of the acceleration information and each predetermined movement model Weight.
13. according to the described in any item devices of claim 9-12, which is characterized in that N number of predetermined movement model is M pre- If the predetermined movement model in motion model, and the similarity between N number of predetermined movement model and the acceleration information More than or equal to preset threshold, M is the integer greater than N.
14. according to the described in any item devices of claim 9-13, which is characterized in that the acceleration information includes the movement Corresponding first acceleration information of each time window in multiple time windows in time;The processor, also particularly useful for:
According to described in each corresponding first acceleration information of time window and N number of predetermined movement model determination The corresponding movement velocity of each time window.
15. device according to claim 14, which is characterized in that the processor, also particularly useful for:
According to each corresponding movement velocity of time window and the respective time span of each time window, determine The moving distance of the moving target.
16. according to the described in any item devices of claim 9-15, which is characterized in that described device further include: communication interface;
The communication interface, for obtaining N number of predetermined movement model from server.
17. a kind of moving distance computing device characterized by comprising processor and communication interface;The communication interface and institute Processor coupling is stated, the processor is for running computer program or instruction, to realize as described in claim any one of 1-8 Moving distance calculation method.
18. a kind of computer readable storage medium, instruction is stored in the computer readable storage medium, which is characterized in that When described instruction is run at the terminal, so that the terminal executes such as moving distance of any of claims 1-8 Calculation method.
19. a kind of computer program product comprising instruction, which is characterized in that when the computer program product is transported at the terminal When row, so that the terminal executes such as moving distance calculation method of any of claims 1-8.
20. a kind of chip, which is characterized in that the chip includes processor and communication interface, the communication interface and the place Device coupling is managed, the processor is for running computer program or instruction, to realize such as the described in any item sides of claim 1-8 Method.
21. a kind of moving distance computing system characterized by comprising terminal, and the server communicated with the terminal, For determining N number of predetermined movement model, the terminal requires described in any one of 1-8 the server for perform claim Method.
CN201910364520.3A 2019-04-30 2019-04-30 A kind of moving distance calculation method, device and system Pending CN110246561A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201910364520.3A CN110246561A (en) 2019-04-30 2019-04-30 A kind of moving distance calculation method, device and system
PCT/CN2020/086524 WO2020221109A1 (en) 2019-04-30 2020-04-24 Method for calculating moving distance, device, and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910364520.3A CN110246561A (en) 2019-04-30 2019-04-30 A kind of moving distance calculation method, device and system

Publications (1)

Publication Number Publication Date
CN110246561A true CN110246561A (en) 2019-09-17

Family

ID=67883606

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910364520.3A Pending CN110246561A (en) 2019-04-30 2019-04-30 A kind of moving distance calculation method, device and system

Country Status (2)

Country Link
CN (1) CN110246561A (en)
WO (1) WO2020221109A1 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020221109A1 (en) * 2019-04-30 2020-11-05 华为技术有限公司 Method for calculating moving distance, device, and system
CN112781580A (en) * 2019-11-06 2021-05-11 佛山市云米电器科技有限公司 Positioning method of household equipment, intelligent household equipment and storage medium
CN113534118A (en) * 2020-04-17 2021-10-22 北京小米移动软件有限公司 Moving distance determining method, device and storage medium
CN112781580B (en) * 2019-11-06 2024-04-26 佛山市云米电器科技有限公司 Positioning method of home equipment, intelligent home equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120278023A1 (en) * 2011-04-29 2012-11-01 Zheng Han Method of confirming motion parameters apparatus for the same, and motion assisting device
CN105403228A (en) * 2015-12-18 2016-03-16 北京朗动科技有限公司 Determination method and device of movement distance
CN105411593A (en) * 2014-09-12 2016-03-23 三星电子株式会社 Method and apparatus for recognizing gait task
CN106289311A (en) * 2016-08-04 2017-01-04 北京妙医佳信息技术有限公司 A kind of motion duration and the detection method of distance
CN107506684A (en) * 2016-06-14 2017-12-22 中兴通讯股份有限公司 Gait recognition method and device

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105628028A (en) * 2016-01-04 2016-06-01 成都卫士通信息产业股份有限公司 Indoor three-dimensional positioning system and positioning method based on mobile phone built-in sensor
CN107727110A (en) * 2017-09-11 2018-02-23 上海斐讯数据通信技术有限公司 The statistical method and device of a kind of step number
CN110246561A (en) * 2019-04-30 2019-09-17 华为技术有限公司 A kind of moving distance calculation method, device and system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120278023A1 (en) * 2011-04-29 2012-11-01 Zheng Han Method of confirming motion parameters apparatus for the same, and motion assisting device
CN105411593A (en) * 2014-09-12 2016-03-23 三星电子株式会社 Method and apparatus for recognizing gait task
CN105403228A (en) * 2015-12-18 2016-03-16 北京朗动科技有限公司 Determination method and device of movement distance
CN107506684A (en) * 2016-06-14 2017-12-22 中兴通讯股份有限公司 Gait recognition method and device
CN106289311A (en) * 2016-08-04 2017-01-04 北京妙医佳信息技术有限公司 A kind of motion duration and the detection method of distance

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020221109A1 (en) * 2019-04-30 2020-11-05 华为技术有限公司 Method for calculating moving distance, device, and system
CN112781580A (en) * 2019-11-06 2021-05-11 佛山市云米电器科技有限公司 Positioning method of household equipment, intelligent household equipment and storage medium
CN112781580B (en) * 2019-11-06 2024-04-26 佛山市云米电器科技有限公司 Positioning method of home equipment, intelligent home equipment and storage medium
CN113534118A (en) * 2020-04-17 2021-10-22 北京小米移动软件有限公司 Moving distance determining method, device and storage medium

Also Published As

Publication number Publication date
WO2020221109A1 (en) 2020-11-05

Similar Documents

Publication Publication Date Title
CN108304758A (en) Facial features tracking method and device
CN110059744A (en) Method, the method for image procossing, equipment and the storage medium of training neural network
CN109784351B (en) Behavior data classification method and device and classification model training method and device
EP3805982B1 (en) Gesture recognition method, apparatus and device
CN107291317B (en) The selection method and device of target in a kind of virtual scene
CN109905754A (en) Virtual present collection methods, device and storage equipment
CN105981035A (en) Managing display of private information
CN107376353A (en) Outpost of the tax office collocation method and device
CN107817939A (en) A kind of image processing method and mobile terminal
CN107038455A (en) A kind of image processing method and device
CN108090855A (en) Method and mobile terminal are recommended in a kind of study plan
CN106648118A (en) Virtual teaching method based on augmented reality, and terminal equipment
CN109934512A (en) A kind of training method and system of prediction model
CN109101120A (en) The method and apparatus that image is shown
CN111144822A (en) Warehouse-out time length determining method and device, computer equipment and storage medium
CN107292237A (en) The acquisition method and Related product of fingerprint
CN109857245A (en) A kind of gesture identification method and terminal
CN108073437A (en) Method and mobile terminal are recommended in a kind of application
CN110392298A (en) A kind of volume adjusting method, device, equipment and medium
CN108427630A (en) Performance information acquisition methods, device, terminal and computer readable storage medium
CN107450841A (en) interactive object control method and device
CN109995862A (en) A kind of resource regulating method and terminal
CN107748785A (en) Wardrobe management method and mobile terminal
CN110246561A (en) A kind of moving distance calculation method, device and system
CN103458362B (en) Numeric value transfer, terminal, server and system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20190917

RJ01 Rejection of invention patent application after publication