WO2019204968A1 - Method for obtaining movement distance of user, and terminal device - Google Patents

Method for obtaining movement distance of user, and terminal device Download PDF

Info

Publication number
WO2019204968A1
WO2019204968A1 PCT/CN2018/084120 CN2018084120W WO2019204968A1 WO 2019204968 A1 WO2019204968 A1 WO 2019204968A1 CN 2018084120 W CN2018084120 W CN 2018084120W WO 2019204968 A1 WO2019204968 A1 WO 2019204968A1
Authority
WO
WIPO (PCT)
Prior art keywords
motion
user
distance
current motion
terminal device
Prior art date
Application number
PCT/CN2018/084120
Other languages
French (fr)
Chinese (zh)
Inventor
钟振
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Priority to CN201880071251.5A priority Critical patent/CN111373224B/en
Priority to PCT/CN2018/084120 priority patent/WO2019204968A1/en
Publication of WO2019204968A1 publication Critical patent/WO2019204968A1/en

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01CMEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
    • G01C22/00Measuring distance traversed on the ground by vehicles, persons, animals or other moving solid bodies, e.g. using odometers, using pedometers

Definitions

  • the present application relates to the field of data processing, and more particularly, to a method and a terminal device for acquiring a user's motion distance.
  • the motion distance estimated by the motion APP is equal to the product of the number of motion steps of the user and the stride, and the stride is again equal to the product of the user's personal parameter and a coefficient, wherein the coefficient is fixed.
  • this formula for estimating the distance of motion is a general formula that does not take into account the individual's individual athletic ability and habits, the same height or gender, the same number of steps, but the distance may be different. Under normal circumstances, the motion distance estimated by this general formula will have a deviation of about 10% to 30%, and the error is relatively large.
  • the present application provides a method for acquiring a user's motion distance and a terminal device, which can improve the accuracy of estimating the user's motion distance.
  • the first aspect provides a method for acquiring a user's motion distance, including: determining a step frequency of a current motion of the user; determining a first motion distance of the current motion of the user based on the step frequency of the current motion; and outputting the first A moving distance.
  • the movement distance can be directly affected by the change of the step frequency.
  • the step frequency is larger, and the motion distance is longer; the smaller the step frequency, the more the motion distance is.
  • the motion distance based on the step frequency estimation is smaller than the actual distance, so that the accuracy of the terminal device estimating the user's motion distance can be improved.
  • the method before the determining the step frequency of the current motion of the user, the method further includes: calculating a calculated motion distance of the first motion of the user according to a preset algorithm, where the first motion is a motion before the current motion; acquiring a pitch of the first motion of the user; generating a calibration function according to the pitch of the first motion, the calculated motion distance, and the actual motion distance of the first motion,
  • the calibration function is a function of the step frequency as an independent variable; the determining the first motion distance of the current motion of the user based on the step frequency of the current motion, comprising: according to the calibration function and the current motion Step frequency, obtaining a calibration coefficient; using the calibration coefficient and the preset algorithm, obtaining a first motion distance of the user's current motion.
  • the preset algorithm is configured to calculate a motion distance according to the detected motion step number and the user's stride parameter.
  • the calibration coefficient obtained by the calibration function can be used to determine the moving distance of the user. Since the calibration function is obtained by training the sample data of the user's multiple motions, and the sample data of the training calibration function is more, the training result is obtained. The calibration function and the calibration coefficients obtained by the calibration function are also accurate. The calibration coefficient obtained by the calibration function is used to determine the moving distance, so that the accuracy of the estimated moving distance of the terminal device is also relatively high.
  • the using the calibration coefficient and the preset algorithm to obtain a first motion distance of the current motion of the user including: using the calibration coefficient, in the preset algorithm The parameter is calibrated to obtain a calibrated preset algorithm; the first motion distance of the current motion is calculated using the calibrated preset algorithm.
  • the using the calibration coefficient and the preset algorithm to obtain a first motion distance of the current motion of the user including: using the calibration coefficient, in the preset algorithm The parameter is calibrated to obtain a calibrated preset algorithm; the first motion distance of the current motion is calculated using the calibrated preset algorithm.
  • the method further includes: adjusting the calibration function according to the step frequency of the current motion, the first motion distance, and the actual motion distance of the current motion, and obtaining the adjusted a calibration function for calibrating the calculated distance of the next motion, the next calculated distance being the motion distance calculated using the preset algorithm.
  • the terminal device can input the step frequency of the current motion of the user, the first motion distance, and the actual motion distance of the current motion into the calibration function, so that the number of samples of the training calibration function is more, and the trained calibration function is more It is accurate that the first motion distance determined by the calibration function is closer to the actual motion distance of the user.
  • the method further includes receiving an instruction input by the user, the instruction being used to indicate an actual moving distance of the current motion.
  • the actual moving distance of the current motion is the moving distance on the treadmill.
  • the current motion includes a plurality of time periods, and determining, according to the step frequency of the current motion, determining a first motion distance of the current motion of the user, including: based on the multiple time periods The pitch of each time period is determined, and the motion distance of each time period is determined; the sum of the motion distances of the plurality of time periods is determined as the first motion distance of the current motion of the user.
  • the step frequency is changed. If the total exercise time and the total number of motion steps are used to calculate the step frequency, and then the step frequency is used to calculate the exercise distance, The calculated user's motion distance error is large. If the current motion is divided into multiple time periods, the time frequency of each time period is the same, for example, 5 seconds is a time period. In general, it can be considered that the step frequency within 5 seconds is constant, and then based on the step frequency, it is determined. The distance of motion for each time period, which improves the accuracy of estimating the distance traveled by the user.
  • the current motion includes a plurality of time periods, and according to the calibration function, and the pitch frequency of the current motion, obtaining calibration coefficients, including: according to the calibration function and the multiple a step frequency of each time period in the time period, respectively obtaining a calibration coefficient of each time period; the using the calibration coefficient and the preset algorithm to obtain a first motion distance of the current motion of the user, including: according to the each time period The calibration coefficient and the preset algorithm respectively obtain the motion distances of the respective time periods; and determine the sum of the motion distances of the respective time periods as the first motion distance.
  • the step frequencies of two adjacent ones of the plurality of time periods are different.
  • the determining a step frequency of a current motion of the user includes: acquiring current motion data of the user, where the current motion data includes a current motion time and a current motion step; according to the current motion time And the current number of motion steps, determining the pitch of the current motion.
  • a method for acquiring a user's motion distance including: determining a step frequency of a current motion of the user; and determining a first step of the current motion of the user based on the step frequency of the current motion.
  • the method before the determining the first step of the user's current motion, the method further includes: calculating, according to a preset algorithm, a calculated motion distance of the first motion of the user, the first motion a motion before the current motion; acquiring a pitch of the first motion of the user; generating a calibration function according to the pitch of the first motion, the calculated motion distance, and an actual distance of the first motion,
  • the calibration function is a function of the step frequency as an independent variable; the determining the first step of the current motion of the user based on the step frequency of the current motion, comprising: according to the calibration function and the current motion Step frequency, obtaining a calibration coefficient; using the calibration coefficient and the preset algorithm, obtaining a first step of the user's current motion.
  • the using the calibration coefficient and the preset algorithm to obtain a first step of the current motion of the user including: calculating, according to the preset algorithm, the current motion Two steps; using the calibration coefficients, the second step is calibrated to obtain the first step.
  • the second stride is obtained based on at least one of a height, a weight, or a gender of the user.
  • the current motion includes a plurality of time periods, and determining, according to the step frequency of the current motion, a first step of the current motion of the user, including: based on the multiple time periods The step frequency of each time period determines the first step of each time period.
  • the current motion includes a plurality of time periods, and according to the calibration function and the step frequency of the current motion, obtaining calibration coefficients, including: according to the calibration function and the multiple time periods The step frequency of each time period is obtained, respectively, the calibration coefficient of each time period is obtained; using the calibration coefficient and the preset algorithm, the first step of the current motion of the user is obtained, including: according to the calibration coefficient of each time period And the preset algorithm respectively obtains the first step of each time period.
  • the step frequencies of two adjacent ones of the plurality of time periods are different.
  • the determining a step frequency of a current motion of the user includes: acquiring current motion data of the user, where the current motion data includes a current motion time and a current motion step; according to the current motion time And the current number of motion steps, determining the pitch of the current motion.
  • a terminal device including: a first determining unit, configured to determine a step frequency of a current motion of the user; and a second determining unit, configured to determine, according to the step of the current motion determined by the first determining unit And determining, by the frequency, a first motion distance of the current motion of the user; and an output unit, configured to output the first motion distance determined by the second determining unit.
  • the terminal device further includes: a calculating unit, configured to calculate, according to a preset algorithm, a calculated motion distance of the first motion of the user, where the first motion is before the current motion a motion unit; an acquisition unit, configured to acquire a step frequency of the first motion of the user; a generating unit, configured to calculate, according to the step frequency of the first motion acquired by the acquiring unit, the calculation calculated by the computing unit a movement distance, and an actual movement distance of the first motion, a calibration function, wherein the calibration function is a function of the step frequency as an independent variable; the second determining unit is specifically configured to: generate the a calibration function and a pitch of the current motion determined by the first determining unit to obtain a calibration coefficient; using the calibration coefficient and the preset algorithm, obtaining a first motion distance of the current motion of the user.
  • a calculating unit configured to calculate, according to a preset algorithm, a calculated motion distance of the first motion of the user, where the first motion is before the current motion a motion unit
  • an acquisition unit
  • the second determining unit is specifically configured to: calculate a second motion distance of the current motion according to the preset algorithm; and use the calibration coefficient to perform the second motion distance Calibrating, the first moving distance is obtained.
  • the second determining unit is specifically configured to: calibrate the parameter in the preset algorithm by using the calibration coefficient, to obtain a calibrated preset algorithm; and use the calibrated The preset algorithm calculates the first motion distance of the current motion.
  • the preset algorithm is configured to calculate a motion distance according to the detected motion step number and the user's stride parameter.
  • the terminal device further includes an adjusting unit, configured, according to the step frequency of the current motion determined by the first determining unit, the first motion distance determined by the second determining unit And adjusting the calibration function to obtain an adjusted calibration function, wherein the adjusted calibration function is used to calibrate the calculated distance of the next motion, the next calculation The distance is the motion distance calculated using the preset algorithm.
  • the terminal device further includes a receiving unit, configured to receive an instruction input by the user, where the instruction is used to indicate an actual moving distance of the current motion.
  • the actual moving distance of the current motion is the moving distance on the treadmill.
  • the current motion includes a plurality of time periods
  • the second determining unit is specifically configured to: determine a motion distance of each time period based on a pitch frequency of each of the plurality of time periods; The sum of the motion distances of the plurality of time periods is determined as the first motion distance of the current motion of the user.
  • the current motion includes multiple time periods
  • the second determining unit is specifically configured to: respectively obtain each time period according to the calibration function and the step frequency of each of the plurality of time periods
  • the calibration coefficient is obtained according to the calibration coefficients of the respective time periods and the preset algorithm, respectively, and the sum of the motion distances of the respective time periods is determined as the first motion distance.
  • the step frequencies of two adjacent ones of the plurality of time periods are different.
  • the first determining unit is specifically configured to: acquire current motion data of the user, where the current motion data includes a current motion time and a current motion step; according to the current motion time and current The number of motion steps determines the pitch of the current motion.
  • a fourth aspect provides a terminal device, including: a first determining unit, configured to determine a step frequency of a current motion of the user; and a second determining unit, based on the step frequency of the current motion determined by the first determining unit, Determine the first step of the user's current movement.
  • the terminal device further includes: a calculating unit, configured to calculate, according to a preset algorithm, a calculated motion distance of the first motion of the user, where the first motion is before the current motion a motion unit; an acquisition unit, configured to acquire a step frequency of the first motion of the user; a generating unit, configured to calculate, according to the step frequency of the first motion acquired by the acquiring unit, the calculation calculated by the computing unit a movement distance, and an actual movement distance of the first motion, a calibration function, wherein the calibration function is a function of the step frequency as an independent variable; the second determining unit is specifically configured to: generate the And a calibration function and a step frequency of the current motion determined by the first determining unit to obtain a calibration coefficient; using the calibration coefficient and the preset algorithm, obtaining a first step of the current motion of the user.
  • a calculating unit configured to calculate, according to a preset algorithm, a calculated motion distance of the first motion of the user, where the first motion is before the current motion a motion unit
  • the second determining unit is specifically configured to: calculate a second stride of the current motion according to the preset algorithm; and use the calibration coefficient to perform the second stride Calibrate to obtain the first step.
  • the second stride is obtained based on at least one of a height, a weight, or a gender of the user.
  • the current motion includes multiple time periods
  • the second determining unit is specifically configured to: determine a first step of each time period based on a step frequency of each of the plurality of time periods Width.
  • the current motion includes multiple time periods
  • the second determining unit is specifically configured to: respectively obtain each time period according to the calibration function and the step frequency of each of the plurality of time periods The calibration coefficient; according to the calibration coefficients of the respective time periods and the preset algorithm, respectively obtain the first step of each time period.
  • the step frequencies of two adjacent ones of the plurality of time periods are different.
  • the first determining unit is specifically configured to: acquire current motion data of the user, where the current motion data includes a current motion time and a current motion step; according to the current motion time and current The number of motion steps determines the pitch of the current motion.
  • a terminal device comprising a processor for implementing the functions in the method described in the first aspect above.
  • the terminal device may also include a memory for storing program instructions and data.
  • the memory is coupled to the processor, and the processor can invoke and execute program instructions stored in the memory for implementing the functions of the method described in the first aspect above.
  • the terminal device may further include a transceiver for the terminal device to communicate with other devices.
  • a terminal device comprising a processor for implementing the functions in the method described in the second aspect above.
  • the terminal device may also include a memory for storing program instructions and data.
  • the memory is coupled to the processor, and the processor can invoke and execute program instructions stored in the memory for implementing the functions of the method described in the second aspect above.
  • the terminal device may further include a transceiver for the terminal device to communicate with other devices.
  • the embodiment of the present application further provides a computer storage medium, where the program medium stores a program instruction, where the program instruction can be implemented by one or more processors and can implement the method described in the first aspect. .
  • the embodiment of the present application further provides a computer storage medium, where the software program stores a software program, and the software program can implement the method described in the second aspect when being read and executed by one or more processors. .
  • an embodiment of the present application provides a computer program product comprising instructions, which when executed on a computer, cause the computer to perform the method described in the first aspect above.
  • an embodiment of the present application provides a computer program product comprising instructions, when executed on a computer, causing a computer to perform the method described in the second aspect above.
  • FIG. 1 is a schematic diagram of a terminal device to which a method for acquiring a user's motion distance is applied according to an embodiment of the present application.
  • FIG. 2 is a schematic flowchart of a method for acquiring a user's motion distance according to an embodiment of the present application.
  • FIG. 3 is a specific implementation flowchart of a method for acquiring a user's motion distance according to an embodiment of the present application.
  • FIG. 4 is a schematic diagram of user operations based on a method for acquiring a user's motion distance according to an embodiment of the present application.
  • FIG. 5 is a schematic diagram of user operations based on a method for acquiring a user's motion distance according to an embodiment of the present application.
  • FIG. 6 is a comparison diagram of the first moving distance, the second moving distance, and the actual moving distance estimated by the user in the embodiment of the present application.
  • FIG. 7 is a schematic flowchart of a method for acquiring a user's motion distance according to an embodiment of the present application.
  • FIG. 8 is a schematic block diagram of a terminal device according to an embodiment of the present application.
  • FIG. 9 is a schematic block diagram of a terminal device according to an embodiment of the present application.
  • FIG. 10 is a schematic block diagram of a terminal device according to an embodiment of the present application.
  • FIG. 11 is a schematic block diagram of a terminal device according to an embodiment of the present application.
  • a terminal device which can also be called a terminal, is a device with a wireless transceiver function.
  • a terminal device may also be called a user equipment (User Equipment, UE), an access terminal, a subscriber unit, a subscriber station, a mobile station, a mobile station, a remote station, a remote terminal, a mobile device, a user terminal, a terminal, a wireless communication device, and a user. Agent or user device.
  • UE User Equipment
  • the terminal device can be a station in the WLAN (STAION, ST), which can be a cellular phone, a cordless phone, a Session Initiation Protocol (SIP) phone, a Wireless Local Loop (WLL) station, and a personal digital processing.
  • STAION ST
  • WLAN Wireless Local Loop
  • PDA Personal Digital Assistant
  • handheld device with wireless communication capabilities computing device or other processing device connected to a wireless modem
  • in-vehicle device car networking terminal
  • computer laptop
  • handheld communication device handheld Computing devices
  • satellite wireless devices wireless modem cards
  • STBs set top boxes
  • CPE customer premise equipment
  • next generation communication systems For example, a terminal device in a 5G network or a terminal device in a public land mobile network (PLMN) network that is evolving in the future.
  • PLMN public land mobile network
  • the terminal device may also be a terminal device in an Internet of Things (IoT) system, and the IoT is an important component of future information technology development, and its main technical feature is to pass the article through the communication technology. Connected to the network to realize an intelligent network of human-machine interconnection and physical interconnection.
  • IoT Internet of Things
  • FIG. 1 is a block diagram showing a part of a terminal device to which an embodiment of the present application is applicable.
  • the terminal device 100 may include the following components.
  • A. Radio frequency (RF) circuit 110 A. Radio frequency (RF) circuit 110
  • the RF circuit 110 can be used to transmit and receive information and receive and transmit signals during a call.
  • the RF circuit may include, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier (LNA), a duplexer, and the like.
  • LNA low noise amplifier
  • the RF circuit 110 may receive the downlink information sent by the base station and then process it to the processor 180. In addition, the RF circuit 110 may also send the uplink data to the base station.
  • RF circuitry 110 can also communicate with the network and other devices via wireless communication.
  • the wireless communication can use any communication standard or protocol, including but not limited to a global system of mobile communication (GSM) system, a code division multiple access (CDMA) system, and a wideband code division.
  • GSM global system of mobile communication
  • CDMA code division multiple access
  • WCDMA Wideband code division multiple access
  • GPRS general packet radio service
  • LTE long term evolution
  • SMS short messaging service
  • the memory 120 can be used to store software programs and modules, and the processor 180 can execute various functional applications and data processing of the terminal device 100 by running software programs and modules stored in the memory 120.
  • the memory 120 can mainly include a storage program area and a storage data area.
  • the storage program area may store an operating system, an application required for at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data) created according to the use of the terminal device 100. , phone book, etc.).
  • memory 120 can include high speed random access memory, and can also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
  • Other input devices 130 can be used to receive input digital or character information, as well as to generate key signal inputs related to user settings and function control of terminal device 100.
  • other input devices 130 may include, but are not limited to, a physical keyboard, function keys (such as volume control buttons, switch buttons, etc.), trackballs, mice, joysticks, and light mice (the light mouse is not sensitive to display visual output).
  • function keys such as volume control buttons, switch buttons, etc.
  • trackballs mice
  • joysticks the light mouse is not sensitive to display visual output.
  • light mice the light mouse is not sensitive to display visual output.
  • Other input devices 130 are coupled to other input device controllers 171 of I/O subsystem 170 for signal interaction with processor 180 under the control of other device input controllers 171.
  • the display screen 140 can be used to display information input by the user or information provided to the user as well as various menus of the terminal device 100, and can also accept user input.
  • the display screen 140 may include a display panel 141 and a touch panel 142.
  • the display panel 141 can be configured by using a liquid crystal display (LCD), an organic light-emitting diode (OLED), or the like.
  • the touch panel 142 also referred to as a touch screen, a touch sensitive screen, etc., can collect contact or non-contact operations on or near the user (eg, the user uses any suitable object or accessory such as a finger, a stylus, etc. on the touch panel 142.
  • the operation in the vicinity of the touch panel 142 may also include a somatosensory operation; the operation includes a single-point control operation, a multi-point control operation, and the like, and drives the corresponding connection device according to a preset program.
  • the touch panel 142 may include two parts of a touch detection device and a touch controller.
  • the touch detection device detects the touch orientation and posture of the user, and detects a signal brought by the touch operation, and transmits a signal to the touch controller;
  • the touch controller receives the touch information from the touch detection device, and converts the signal into a processor.
  • the processed information is sent to the processor 180 and can receive commands from the processor 180 and execute them.
  • the touch panel 142 can be implemented by using various types such as resistive, capacitive, infrared, and surface acoustic waves, and the touch panel 142 can be implemented by any technology developed in the future.
  • the touch panel 142 can cover the display panel 141, and the user can cover the display panel 141 according to the content displayed by the display panel 141, including but not limited to a soft keyboard, a virtual mouse, a virtual button, an icon, and the like. Operation on or near the touch panel 142, after detecting the operation on or near it, the touch panel 142 transmits to the processor 180 through the I/O subsystem 170 to determine user input, and then the processor 180 inputs according to the user. A corresponding visual output is provided on display panel 141 by I/O subsystem 170.
  • touch panel 142 and the display panel 141 in FIG. 1 are two independent components to implement the input and input functions of the terminal device 100, but in some possible embodiments, the touch panel 142 and the display may be The panel 141 is integrated to implement input and output functions of the terminal device 100.
  • the terminal device 100 may also include at least one type of sensor 150, such as a light sensor, a motion sensor, and other sensors.
  • sensor 150 such as a light sensor, a motion sensor, and other sensors.
  • the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 141 according to the brightness of the ambient light, and the proximity sensor may close the display panel 141 when the terminal device 100 moves to the ear. And / or backlight.
  • the accelerometer sensor can detect the acceleration of each direction (usually three axes), and the magnitude and direction of gravity can be detected at rest. It can be used to identify the attitude of the terminal device (such as horizontal and vertical screen switching, Related games, magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tapping).
  • the terminal device 100 can also configure other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, an infrared sensor, and the like, and no specific description is made here.
  • sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, an infrared sensor, and the like, and no specific description is made here.
  • the audio circuit 160, the speaker 161, and the microphone 162 can provide an audio interface between the user and the terminal device 100.
  • the audio circuit 160 can transmit the converted audio data to the speaker 161 for conversion to the sound signal output by the speaker 161; on the other hand, the microphone 162 converts the collected sound signal into a signal, which is received by the audio circuit 160.
  • the audio data is converted to audio data, which is then output to the RF circuit 108 for transmission to, for example, another terminal device, or the audio data is output to the memory 120 for further processing.
  • I/O subsystem 170 Input/output subsystem 170
  • the I/O subsystem 170 can be an external device for controlling input and output.
  • the I/O subsystem 170 can include other device input controllers 171, sensor controllers 172, and display controllers 173.
  • one or more other input control device controllers 171 may receive signals from other input devices 130 and/or send signals to other input devices 130.
  • Other input devices 130 may include physical buttons (press buttons, rocker buttons, etc.) ), dial, slide switch, joystick, click wheel, light mouse (light mouse is a touch-sensitive surface that does not display visual output, or an extension of a touch-sensitive surface formed by a touch screen).
  • Display controller 173 in I/O subsystem 170 receives signals from display 140 and/or transmits signals to display 140. After the display 140 detects the user input, the display controller 173 can convert the detected user input into an interaction with the user interface object displayed on the display screen 140, ie, implement human-computer interaction. Sensor controller 172 can receive signals from one or more sensors 150 and/or send signals to one or more sensors 150.
  • the processor 180 is a control center of the terminal device 100 that connects various portions of the entire terminal device using various interfaces and lines, by running or executing software programs and/or modules stored in the memory 120, and recalling stored in the memory 120.
  • the data performs various functions and processing data of the terminal device 100, thereby performing overall monitoring of the terminal device.
  • the processor 180 may include one or more processing units; preferably, the processor 180 may integrate an application processor and a modem processor, where the application processor mainly processes an operating system, a user interface, an application, and the like.
  • the modem processor primarily handles wireless communications. It will be appreciated that the above described modem processor may also not be integrated into the processor 180.
  • the terminal device 100 further includes a power source 190 (such as a battery) for supplying power to the various components.
  • a power source 190 such as a battery
  • the power source 190 can be logically connected to the processor 180 through the power management system to manage functions such as charging, discharging, and power consumption through the power management system. .
  • the terminal device 100 may further include a camera, a Bluetooth module, and the like, and details are not described herein again.
  • terminal device structure shown in FIG. 1 does not constitute a limitation on the terminal device, and may include more or less components than those illustrated, or combine some components, or split some components, or Different parts are arranged.
  • FIG. 2 is a schematic flowchart of a method for acquiring a user's motion distance according to an embodiment of the present application. The method of FIG. 2 can be applied to the above-described terminal device 100.
  • the method of FIG. 2 may include steps 210-230, which are described in detail below.
  • the step frequency of the user's current motion is determined.
  • the step frequency can be expressed as the frequency of the user's footsteps.
  • the terminal device may determine the current motion of the step by using the current motion data of the user and then determining the current motion.
  • the current motion data may include a current exercise time and a current motion step number. That is to say, the step frequency of the current motion can be determined according to the current exercise time and the current number of motion steps.
  • the step frequency can be expressed as the ratio of the current number of motion steps to the current exercise time.
  • the terminal device can periodically determine the pitch of the current motion of the user.
  • the user's 2-minute exercise time can be divided into 24 cycles, and the user's step frequency is determined every 5 seconds.
  • the user has 12 steps in a period of 0 to 5 seconds and a step of 15 in a period of 5 to 10 seconds, so that the user can obtain a step frequency of 144 steps in a period of 0 to 5 seconds. Minutes, the step frequency is 180 steps/minute in 5 to 10 seconds, and so on.
  • the terminal device may use a sensor (eg, the sensor 150 described above), such as an accelerometer sensor, to obtain the current number of motion steps of the user.
  • a sensor eg, the sensor 150 described above
  • an accelerometer sensor such as an accelerometer sensor
  • the terminal device may acquire the current number of motion steps of the user based on the current motion step of the user determined by the treadmill.
  • the treadmill can transmit the determined current number of motion steps of the user to the terminal device, so that the terminal device can acquire the current number of motion steps of the user, and can display the number of steps in a user interface (UI) (for example, Above the display screen 140).
  • UI user interface
  • the treadmill may transmit the current number of motion steps of the user to the terminal device through a transmission method such as Bluetooth or infrared.
  • the user can manually input the current number of motion steps displayed by the treadmill into the terminal device, so that the terminal device can obtain the current number of motion steps of the user.
  • the user can take a picture of the current motion step displayed by the treadmill, and the terminal device can obtain the current number of motion steps in a certain manner by scanning the photo.
  • the user can input the current number of motion steps displayed by the treadmill to the terminal device by voice, and after the terminal device recognizes the voice content, the current number of motion steps can be obtained.
  • the terminal device may acquire the current motion time of the user according to other devices.
  • the user can input an instruction to the terminal device according to the time displayed by the watch, and the instruction is used to indicate the current exercise time of the user.
  • the other terminal device may send information to the terminal device that carries the current motion time of the user. After receiving the information, the terminal device may obtain the current motion time of the user.
  • the specific manner in which the terminal device obtains the current motion time of the user may refer to the manner of obtaining the current number of motion steps, and details are not described herein again.
  • the terminal device can directly obtain the current motion time of the user according to the recorded user motion time.
  • the mobile APP is installed on the terminal device in the embodiment of the present application.
  • a first motion distance of the user's current motion is determined based on the pitch of the current motion.
  • the terminal device may determine the first motion distance of the current motion through the calibration function based on the pitch of the current motion.
  • the calibration function can be trained by sample data of the user's multiple motions.
  • the sample data of each motion may include a step frequency of the first motion of the user, a calculated motion distance of the first motion, and an actual distance of the first motion.
  • the terminal device may generate a calibration function according to the acquired pitch of the first motion of the user, the calculated motion distance of the first motion, and the actual distance of the first motion.
  • the calibration function is a function of the step frequency as an independent variable
  • the first motion may be N times of motion before the current motion
  • N is an integer greater than or equal to 1.
  • the first motion may be one motion before the current motion, or may be multiple motions before the current motion. It should be understood that the multiple movements may be continuous multiple movements or discontinuous. Of course, the first motion may be continuous with the current motion or may be discontinuous with the current motion.
  • the user has been exercising 5 times before and the current exercise is the 6th exercise.
  • the first motion may be any one of the first 5 motions; when the first motion is the third motion before the current motion, the first motion may be the first 5 motions Any three movements, such as the first movement, the second movement, and the fourth movement.
  • the actual distance of the user may be the distance traveled on the treadmill.
  • the actual distance of the user may be a moving distance obtained by a global positioning system (GPS).
  • GPS global positioning system
  • the terminal device can train the calibration function using a regression algorithm.
  • regression algorithms may include, but are not limited to, least squares, logistic regression (LR), and the like.
  • the terminal device may train the calibration function by the ratio between the actual distance of the first motion of the user per movement in the sample data and the calculated motion distance of the first motion, and the pitch of the first motion. which is:
  • the function f 1 represents a calibration function.
  • the terminal device may train the calibration function by the ratio between the actual stride of the first motion of the user and the calculated stride of the first motion in the sample data, and the pitch of the first motion. . which is:
  • the function f 2 can represent a calibration function.
  • the actual stride of the first motion may be the ratio of the actual distance of the first motion to the number of motion steps
  • the calculated stride of the first motion may be the ratio of the calculated motion distance of the first motion to the number of motion steps. It can be seen that the ratio between the actual stride of the first motion of the user and the calculated stride of the first motion is essentially the actual distance of the first motion of each motion and the calculated motion of the first motion. The ratio between the distances.
  • the terminal device may calculate a calculated motion distance of the first motion of the user according to a preset algorithm.
  • the preset algorithm is used by the terminal device to calculate the motion distance according to the detected motion step number and the user's stride parameter.
  • the preset algorithm can be as shown in equations (3) and (4):
  • Movement distance number of movement steps * stride (3)
  • Stride personal parameters * first coefficient (4)
  • the personal parameters may include the user's height, weight, gender, and the like.
  • the name of the stride is not limited in the embodiment of the present application, that is, the stride may also be expressed as another name.
  • a stride can also be called a step size.
  • the first coefficients of different sports APPs may be different.
  • the first coefficient of some sports APP is a fixed value, such as 0.42; alternatively, some sports apps have different first coefficients for different personal parameters, such as height.
  • the motion distance calculated by the preset algorithm may also be referred to as a general estimation distance.
  • the formula (1) and the formula (2) may also be referred to as a general formula, which is not specifically limited in the embodiment of the present application.
  • the terminal device can preset a plurality of calibration functions.
  • the plurality of calibration functions correspond to a plurality of step frequencies.
  • a plurality of calibration functions may be in one-to-one correspondence with a plurality of step frequencies.
  • calibration function 1 corresponds to step frequency 1
  • calibration function 2 corresponds to step frequency 2. If the terminal device determines that the user's step frequency is the step frequency 1, the calibration function 1 may be used to calibrate the first motion distance of the user's current motion; if the terminal device determines that the user's step frequency is the step frequency 2, the calibration function 2 may be used. Calibrate the first motion distance of the user's current motion.
  • one calibration function may correspond to multiple step frequencies.
  • the plurality of step frequencies satisfy a preset range corresponding to the one calibration function.
  • the calibration function 1 corresponds to a step frequency of 100 steps/minute to 120 steps/minute. If the terminal device determines that the user's step frequency is 100 steps/minute, the calibration function 1 can be used to calibrate the user's current motion. The distance of movement; if the terminal device determines that the user's step frequency is 115 steps/minute, the calibration function 1 can be used to calibrate the first motion distance of the user's current motion.
  • the terminal device may obtain a calibration coefficient according to the calibration function and the step frequency of the current motion, and the first motion distance of the current motion may be obtained by using the calibration coefficient and the preset algorithm.
  • the terminal device may obtain a second motion distance of the current motion according to a preset algorithm, and then calibrate the second motion distance based on the calibration coefficient, and finally obtain a first motion distance of the current motion of the user.
  • the formula (5) may also be referred to as a personalization formula, and the function f may be a calibration function.
  • the function f may be f 1 or f 2 , which is not limited by the embodiment of the present application.
  • the second moving distance can be obtained according to formula (3) and formula (4).
  • the terminal device may use the calibration coefficient to calibrate the parameters in the preset algorithm to obtain a calibrated preset algorithm, and then use the calibrated preset algorithm to calculate the first motion distance of the current motion.
  • the parameter can be the second step of the user.
  • the second step can be the step size in formula (3) and formula (4).
  • the terminal device may multiply the second step by the calibration coefficient to obtain the first step, and then multiply the first step by the number of motion steps of the user, to obtain the first motion distance.
  • This implementation can be expressed by equation (6):
  • First motion distance second step *f (step frequency) * number of motion steps (6)
  • the formula (6) may also be referred to as a personalization formula, and the function f may be f 1 or f 2 , which is not limited by the embodiment of the present application.
  • the calibration coefficient obtained by the calibration function can be used to determine the moving distance of the user. Since the calibration function is obtained by training the sample data of the user's multiple motions, and the sample data of the training calibration function is more, the training result is obtained. The calibration function and the calibration coefficients obtained by the calibration function are also accurate. The calibration coefficient obtained by the calibration function is used to determine the moving distance, so that the accuracy of the estimated moving distance of the terminal device is also relatively high.
  • the terminal device may directly determine the first motion distance of the current motion of the user based on the step frequency of the current motion.
  • the terminal device may determine, according to a step frequency of the current motion, a first motion distance of the current motion of the user by using a certain algorithm.
  • the current motion may include multiple time periods.
  • each of the plurality of time periods has the same step frequency.
  • the length of each of the plurality of time periods may be the same. That is to say, the current motion can be divided into a plurality of time periods by cycle.
  • each time period of the current motion is 5 seconds. Then, the user's step frequency in the first period of the current motion is 120 steps/minute, the step frequency in the second period may be 150 steps/minute, and the step frequency in the third period may be 150 steps/minute.
  • the step frequencies of the adjacent two of the plurality of time periods may be the same or different.
  • the length of each of the plurality of time periods may not be identical.
  • the pitches of the adjacent two of the plurality of time periods may be different.
  • the user has a step frequency of 150 steps/minute in the current motion for 0 to 5 seconds, a step frequency of 175 steps/minute in the period of 5 to 15 seconds, and a step frequency of 15 to 23 seconds.
  • 160 steps / minute the user can move the 23 seconds of the current movement into three periods: the first period is 0 to 5 seconds, the step frequency is 150 steps / minute; the second period is 5 to 15 seconds, step The frequency is 175 steps/minute; the third time period is 15 to 23 seconds, and the step frequency is 160 steps/minute.
  • the terminal device may determine the motion distance of each time period based on the pitch frequency of each of the plurality of time periods, and determine the sum of the motion distances of the plurality of time periods as the first motion distance of the current motion of the user.
  • the terminal device may obtain the motion distance of each time period by using a calibration function based on the pitch frequency of each of the plurality of time periods, and determine the sum of the motion distances of the respective time periods as the first motion distance. .
  • the terminal device can obtain the calibration coefficients of the respective time periods according to the calibration function and the step frequency of each time period in the plurality of time periods, and then obtain the motion distances of the respective time periods according to the calibration coefficients of each time period and the preset algorithm, respectively.
  • the sum of the moving distances of the respective periods is determined as the first moving distance.
  • the terminal device can directly calibrate the second moving distance of each time period by using calibration coefficients of each time period, which can be expressed by formula (7):
  • L1 a 1 *L2 1 +a 2 *L2 2 +a 3 *L2 3 +...+a n *L2 n (7)
  • L1 represents the first motion distance
  • a represents the calibration coefficient
  • L2 represents the second motion distance
  • subscript 1 represents the first time period
  • subscript 2 represents the second time period
  • the terminal device may calibrate the second step of each time period by using calibration coefficients of respective time periods, which may be expressed by formula (8):
  • F2 represents the second step and H represents the number of motion steps of the user.
  • the terminal device may directly determine the moving distance of the user in each time period based on the step frequency of the user in each time period, and then gradually increase the moving distance of each time period, thereby obtaining the first time of the user. Movement distance.
  • the terminal device can calculate the step frequency of the user every 5 seconds, and determine the motion distance based on the step frequency.
  • the user's first time period has a step frequency of 144 steps/minute. Based on the step frequency, the user is determined to move 6.2 meters in the first time period; the second time period has a step frequency of 180 steps/minute, and the user is determined based on the step frequency. In the second period, the movement is 7.8 meters; the third period has a step frequency of 160 steps/minute, and based on the step frequency, it is determined that the user has exercised 7 meters in the third period. If the user has been exercising for a total of 15 seconds, the motion distance of the three cycles is accumulated, and the first motion distance of the user is 21 meters.
  • the pitch frequency is changed. If the total motion time and the total number of motion steps are used to calculate the pitch frequency, and then the pitch frequency is used to calculate the motion distance, The calculated user's motion distance error is large. If the current motion is divided into multiple time periods, the time frequency of each time period is the same, for example, 5 seconds is a time period. In general, it can be considered that the step frequency within 5 seconds is constant, and then based on the step frequency, it is determined. The distance of movement for each time period, which can improve the accuracy of estimating the distance of the user's movement.
  • the terminal device may further receive an instruction input by the user, where the instruction is used to indicate an actual moving distance of the current motion of the user.
  • the manner in which the user inputs an instruction is not specifically limited in the embodiment of the present application.
  • the instruction may refer to an instruction manually input by a user.
  • the terminal device can display a distance calibration interface through the display screen (for example, the display screen 140 described above), and the user can manually calibrate the first motion distance to the actual motion distance according to the actual motion distance.
  • a distance calibration interface through the display screen (for example, the display screen 140 described above), and the user can manually calibrate the first motion distance to the actual motion distance according to the actual motion distance.
  • the user can calibrate the user's exercise distance to 6 kilometers on the distance calibration interface of the exercise APP.
  • the instruction may refer to an instruction of a user's voice input.
  • the user can input the actual distance of movement displayed on the treadmill to the terminal device by voice.
  • the first movement distance displayed on the exercise APP is 7.5 kilometers
  • the actual movement distance displayed on the treadmill is 6 kilometers
  • the user can input the voice of “actual movement distance 6 kilometers” to the terminal device.
  • the first motion distance can be calibrated to 6 kilometers.
  • the user can directly input an instruction indicating the actual moving distance directly on the terminal device.
  • the user may input an instruction indicating the actual moving distance to other devices.
  • the other device may send the distance information to the terminal device, and the distance information may be used to indicate the actual moving distance of the user.
  • the terminal device can also adjust the calibration function according to the actual moving distance of the current motion.
  • the terminal device may adjust the calibration function according to the step frequency of the current motion, the first motion distance, and the actual motion distance of the current motion to obtain an adjusted calibration function.
  • the adjusted calibration function can be used to calibrate the calculated distance of the next motion, and the next calculated distance is the motion distance calculated using the preset algorithm.
  • the terminal device may obtain the actual moving distance of the user according to the actual moving distance of the current motion input by the user on the sports APP.
  • other devices may transmit the actual moving distance of the user's current motion to the terminal device.
  • other devices may be treadmills, sports bracelets, etc.
  • the sending method may be Bluetooth, infrared or WIFI.
  • the treadmill can transmit the actual moving distance of the user to the terminal device through Bluetooth, and accordingly, the terminal device can receive the actual moving distance of the user sent by the treadmill.
  • the calibration function may be adjusted based on the actual moving distance of the current motion of the user, the first moving distance, and the pitch of the current motion.
  • the user can calibrate the user's exercise distance to 6 kilometers on the distance calibration interface of the exercise APP.
  • the terminal device can adjust the calibration function according to the 6 km data input by the user, the obtained step frequency of the current motion of the user, and the 7.5 km data, so that the adjusted calibration function can be obtained, and the adjusted calibration function can be used in the user. Calibrate the calculated distance for the next exercise.
  • the terminal device can also periodically adjust the calibration function.
  • the terminal device may adjust the calibration function based on the actual motion distance, the first motion distance, and the pitch frequency of the first period of the user's current motion, and then the terminal device may use the adjusted calibration function to estimate the second period of the user's current motion.
  • the motion distance, the calibration function adjusted in the second period can be used to estimate the motion distance of the third period.
  • the terminal device may not train or adjust the calibration function in the following three cases:
  • the data of the actual moving distance input by the user is abnormal.
  • the user intentionally or unintentionally inputs an error.
  • the terminal device may not train or adjust the calibration function.
  • the terminal device can input the actual moving distance of the current motion of the user into the calibration function, so that the number of samples of the training calibration function is more, and the trained calibration function is more accurate, so that the first motion determined by the calibration function is performed.
  • the distance is closer to the actual distance traveled by the user.
  • a first motion distance is output.
  • the terminal device may display the first moving distance of the user on the UI interface.
  • the terminal device can use the voice to broadcast the first moving distance of the user.
  • the terminal device may send the first motion distance to other devices in a certain manner, and the user may acquire the first motion distance by using other devices.
  • a series of operations may be performed according to the first motion distance.
  • the user can save the current first exercise distance, and adjust the exercise plan or diet plan in combination with the previously saved first exercise distance.
  • the user can publish the first motion distance of the exercise on the network.
  • the terminal device can display the first moving distance of the user on the UI interface, and can also broadcast the first moving distance of the user.
  • FIG. 3 is a flow chart of an embodiment of the present application. An implementation process of an embodiment of the present application will be described below with reference to FIG. 3.
  • the start button can be clicked on the exercise APP and the treadmill, respectively, and the exercise APP and the treadmill begin to calculate the distance of the user's exercise.
  • the user can open the sports app, click "indoor running", after the indoor running interface appears, click the start button, the user starts running, and the sports APP starts to calculate the user's moving distance.
  • the motion APP can estimate the moving distance of the user in each time period.
  • the personalized formula can first call a preset algorithm, and the preset algorithm calculates the second moving distance according to formula (3) and formula (4). After the preset algorithm calculates the second motion distance, the second motion distance may be fed back to the personalized formula, and the personalized formula uses the trained calibration function to adjust the second motion distance.
  • the step frequency of each time period can be obtained according to the motion time and the number of motion steps of each time period. Then, the step frequency of each time period can be input into the calibration function to obtain a calibration coefficient, and then the second motion distance is multiplied by the calibration coefficient, and the adjusted motion distance of each time period can be obtained.
  • the personalized formula feeds the adjusted moving distance of each time period to the main control flow, and the main control process can gradually accumulate the adjusted moving distances of the obtained time periods, thereby obtaining the first moving distance and displaying the first moving distance.
  • the main control process can gradually accumulate the adjusted moving distances of the obtained time periods, thereby obtaining the first moving distance and displaying the first moving distance.
  • the UI interface of the sports APP may display the motion data of the user's current motion, which may include, but is not limited to, the first motion distance, the exercise time, and the average pace.
  • the UI interface of the sports APP shows that the user has exercised 6.01 kilometers for a total of 32 minutes and 30 seconds, and the average exercise time of one kilometer takes 5 minutes and 24 seconds.
  • the exercise APP can display an interface for calibrating the distance, and the user can manually calibrate the first movement distance.
  • the user can click the distance calibration button on the interface, and the distance calibration interface as shown in the right figure of FIG. 5 appears, and the user can according to the actual distance of movement displayed on the treadmill.
  • the distance of motion on the sports APP is calibrated.
  • the UI interface of the sports APP shows that the user has exercised 6.01 km, but the treadmill shows that the user has exercised 6.1 km, then the user can select 6.1 km in the distance calibration interface, and then click the confirm button.
  • the terminal device can finally display the user's 6.1 km interface.
  • the movement distance can be directly affected by the change of the step frequency.
  • the step frequency is larger, and the motion distance is longer; the smaller the step frequency, the more the motion distance is.
  • the motion distance based on the step frequency estimation is smaller than the actual distance, so that the accuracy of the terminal device estimating the user's motion distance can be improved.
  • FIG. 6 shows a comparison between the actual moving distance of the user per movement, the second moving distance estimated by the terminal device using the preset algorithm, and the first moving distance estimated by the terminal device after adopting the technical solution of the embodiment of the present application.
  • the horizontal axis represents the moving distance
  • the vertical axis represents the number of movements. After the end of each exercise, the technical solution of the embodiment of the present application is used for calibration.
  • the solid line indicates the first motion distance estimated by the terminal device after adopting the technical solution of the embodiment of the present application, and the broken line indicates the second motion distance estimated by the terminal device using the general formula.
  • the second motion distance has a random deviation and there is no convergence tendency.
  • the first moving distance estimated by the terminal device has a random deviation in the previous several movements, but has gradually converge to about 600 meters in the following several times. It can be seen that, after adopting the technical solution of the embodiment of the present application, the more accurate the motion distance estimated by the user of the mobile terminal device is, the accuracy of estimating the user's motion distance is improved.
  • FIG. 7 is a schematic flowchart of a method for processing user information according to an embodiment of the present application. The method of FIG. 7 can be applied to the above-described terminal device 100.
  • the method of Figure 7 may include 710 and 720, which are described in detail below.
  • the step frequency of the user's current motion is determined.
  • a first step of the user's current motion is determined based on the pitch of the current motion.
  • the terminal device can determine the first step of the current motion through the calibration function based on the pitch of the current motion.
  • the terminal device can obtain the calibration coefficient through the calibration function based on the pitch of the current motion, and then calibrate the second step by using the calibration coefficient, so that the first step can be obtained.
  • the second step is obtained according to a personal parameter of the user, wherein the personal parameter may include at least one of a height, a weight, or a gender of the user.
  • the terminal device may obtain the second step according to formula (4).
  • the partial implementation manner of determining the first step of the current motion by the calibration function is the same as the partial implementation process of 220 in FIG. 2, and for the sake of brevity, the following is omitted as appropriate. description of.
  • the terminal device may obtain a calibration coefficient by using a calibration function based on the pitch of the current motion, and then calibrate the first coefficient by using the calibration coefficient, and then calibrate the second step by using the first coefficient after the calibration. Thereby the first step can be determined.
  • First step first coefficient * f (step frequency) * personal parameters (10)
  • the terminal device can directly determine the first step of the user's current motion based on the pitch of the current motion.
  • the terminal device may determine the first step of the current motion of the user by using a certain algorithm based on the step frequency of the current motion.
  • the current motion may include multiple time periods.
  • the terminal device may determine the first step of each time slot based on the pitch of each of the plurality of time periods.
  • the terminal device may obtain the first step of each time period by using a calibration function based on the step frequency of each of the plurality of time periods.
  • the terminal device can obtain the calibration coefficients of the respective time periods according to the calibration function and the step frequency of each time period in the plurality of time periods, and then obtain the first step of each time period according to the calibration coefficients of each time period and the preset algorithm respectively. Width.
  • the terminal device can directly calibrate the second step of each time period by using calibration coefficients of respective time periods.
  • the terminal device may calibrate the first coefficients of the respective time periods by using calibration coefficients of respective time periods, and then use the first coefficients after the calibration of the respective time periods to obtain the first step of each time period.
  • the terminal device can directly determine the first step of the user at each time interval based on the user's step frequency at each time period.
  • 5 seconds is a time period
  • the terminal device can calculate the step frequency of the user every 5 seconds, and the stride of each time period is determined based on the step frequency.
  • the user's first time period has a step frequency of 144 steps/minute.
  • the user's step size is 0.53 meters in the first time period;
  • the second time step frequency is 180 steps/minute, based on the step.
  • the frequency determines that the user has a step size of 0.5 meters in the second period;
  • the step frequency in the third period is 160 steps/minute, and based on the step frequency, the user's step size in the third period is determined to be 0.61 meters.
  • the step frequency is changed. If the total exercise time and the total number of motion steps are used to calculate the step frequency, the step frequency is used to calculate the first step. In the case of the first step, the calculated error is large. If the current motion is divided into multiple time periods, the time frequency of each time period is the same, for example, 5 seconds is a time period. In general, it can be considered that the step frequency within 5 seconds is constant, and then based on the step frequency, it is determined. The first step of each time period, which can improve the accuracy of estimating the user's first step.
  • the terminal device may perform a series of operations according to the first step.
  • the terminal device can output the first step of the user.
  • the terminal device may display the first step of the user on the UI interface.
  • the terminal device can use the voice to broadcast the first step of the user.
  • the terminal device can send the first step to other devices in a certain manner, and the user can obtain the first step by using other devices.
  • the user can perform a series of operations according to the first step of the output of the terminal device, which is not specifically limited in this embodiment of the present application.
  • the terminal device may determine the height and/or gender of the user according to the first step, and based on the determined gender, the terminal device may push the user to be interested in the user.
  • APP the terminal device may push a shopping APP, a game APP suitable for a female, and the like.
  • the terminal device can push a motion mode suitable for the user on the sports APP according to the first step of the user.
  • the terminal device may determine that the user may be excessively exercising, and the user's body may not be able to withstand the current amount of exercise.
  • the terminal device will give a warning sound, such as a continuous beep, or a user to stop the motion of the voice broadcast, etc., to prevent the user from being injured during the exercise.
  • association relationship describing an association object, indicating that there may be three relationships, for example, A and/or B, which may indicate that A exists separately. There are three cases of A and B, and B alone.
  • the terminal device may include a hardware structure and/or a software module, a hardware structure, a software module, or a hardware structure.
  • the software modules are added to implement the above functions.
  • One of the above functions is performed in a hardware structure, a software module, or a hardware structure plus a software module, depending on the specific application and design constraints of the technical solution.
  • FIG. 8 is a schematic block diagram of a terminal device according to an embodiment of the present application. It should be understood that the terminal device 800 shown in FIG. 8 is only an example, and the terminal device in the embodiment of the present application may further include other modules or units, or include modules similar to those of the modules in FIG. 8, or not including the figure. All modules in 8.
  • a first determining unit 810 configured to determine a step frequency of a current motion of the user
  • a second determining unit 820 configured to determine, according to the step frequency of the current motion determined by the first determining unit 810, a first moving distance of the current motion of the user;
  • the output unit 830 is configured to output the first motion distance determined by the second determining unit 820.
  • the terminal device 800 may further include a calculating unit 840, configured to calculate, according to a preset algorithm, a first calculated motion distance of the user, where the first motion is a motion before the current motion.
  • a calculating unit 840 configured to calculate, according to a preset algorithm, a first calculated motion distance of the user, where the first motion is a motion before the current motion.
  • the terminal device 800 may further include an obtaining unit 850, configured to acquire a step frequency of the first motion of the user.
  • the terminal device 800 may further include a generating unit 860, configured to generate a calibration function according to the step frequency of the first motion acquired by the obtaining unit 850, the calculated motion distance calculated by the calculating unit 840, and the actual motion distance of the first motion.
  • the calibration function is a function of the step frequency as an independent variable.
  • the second determining unit 820 is specifically configured to obtain a calibration coefficient according to the calibration function generated by the generating unit 860 and the step frequency of the current motion determined by the first determining unit 810; and obtain the user by using the calibration coefficient and the preset algorithm.
  • the first movement distance of the current movement is specifically configured to obtain a calibration coefficient according to the calibration function generated by the generating unit 860 and the step frequency of the current motion determined by the first determining unit 810; and obtain the user by using the calibration coefficient and the preset algorithm.
  • the second determining unit 820 is specifically configured to calculate a second moving distance of the current motion according to a preset algorithm; and use the calibration coefficient to calibrate the second moving distance to obtain a first moving distance.
  • the second determining unit 820 is specifically configured to: calibrate the parameter in the preset algorithm by using the calibration coefficient, to obtain a calibrated preset algorithm; and calculate the first motion by using the calibrated preset algorithm. Movement distance.
  • the preset algorithm is configured to calculate the motion distance according to the detected motion step number and the user's stride parameter.
  • the terminal device 800 may further include an adjusting unit 870, configured according to the step frequency of the current motion determined by the first determining unit 810, the first motion distance determined by the second determining unit 820, and the actual moving distance of the current motion,
  • the calibration function generated by the generating unit 860 is adjusted to obtain an adjusted calibration function, and the adjusted calibration function is used to calibrate the calculated distance of the next motion, and the next calculated distance is the motion distance calculated using the preset algorithm.
  • the terminal device 800 may further include a receiving unit 880, configured to receive an instruction input by the user, where the instruction is used to indicate an actual moving distance of the current motion.
  • a receiving unit 880 configured to receive an instruction input by the user, where the instruction is used to indicate an actual moving distance of the current motion.
  • the actual moving distance of the current exercise is the moving distance on the treadmill.
  • the current motion includes multiple time periods
  • the second determining unit 820 is specifically configured to determine a motion distance of each time period based on a step frequency of each of the plurality of time periods; And determine the first motion distance for the user's current motion.
  • the current motion includes a plurality of time periods
  • the second determining unit 820 is specifically configured to obtain calibration coefficients of the respective time periods according to the calibration function generated by the generating unit 860 and the step frequency of each of the plurality of time periods;
  • the calibration coefficient and the preset algorithm of each time period respectively obtain the motion distances of the respective time periods; the sum of the motion distances of the respective time periods is determined as the first motion distance.
  • the step frequencies of two adjacent ones of the plurality of time periods are different.
  • the first determining unit 810 is specifically configured to acquire current motion data of the user, where the current motion data includes a current motion time and a current motion step number; and determining a current motion step frequency according to the current motion time and the current motion step number.
  • terminal device 800 can perform the operations of the methods 210-230 provided by the embodiments of the present application. Here, in order to avoid redundancy, detailed description thereof is omitted.
  • the terminal device 900 is provided to implement the functions of the methods 210-230 provided by the embodiments of the present application.
  • the terminal device 900 includes a processor 920 for implementing the functions of the methods 210-230 provided by the embodiments of the present application.
  • the processor 920 may be configured to determine a pitch of a current motion of the user, determine a first motion distance of the current motion of the user, and the like based on the pitch of the current motion. For details, refer to the detailed description in the method example, where Make a statement.
  • the terminal device 900 can also include a memory 930 for storing program instructions and/or data.
  • Memory 930 is coupled to processor 920.
  • the coupling in the embodiments of the present application is an indirect coupling or communication connection between devices, units or modules, and may be in an electrical, mechanical or other form for information interaction between devices, units or modules.
  • Processor 920 may operate in conjunction with memory 930.
  • Processor 920 may execute program instructions stored in memory 930.
  • the processor 920 can be implemented by hardware or by software. When implemented by hardware, the processor 920 can be a logic circuit, an integrated circuit, etc.; when implemented by software, the processor 920 can be a general-purpose processor.
  • the memory 930 can be integrated into the processor 920 by reading the software code stored in the memory 930, and can exist independently of the processor 920 and exist independently.
  • the terminal device 900 may further include a transceiver 910 for communicating with other devices through the transmission medium, so that the terminal devices in the terminal device 900 can communicate with other devices.
  • the processor 920 can utilize the transceiver 910 to transmit and receive signals and is used to implement the methods in the method embodiments of the present application.
  • the transceiver 910 may also be referred to as a transceiver unit, a transceiver, or a transceiver circuit or the like.
  • the transceiver 910 can include a control circuit and an antenna, wherein the control circuit can be used for converting baseband signals and radio frequency signals and processing the radio frequency signals, and the antenna can be used to transmit and receive radio frequency signals.
  • connection medium between the above transceiver 910, the processor 920, and the memory 930 is not limited in the embodiment of the present application.
  • the memory 930, the processor 920, and the transceiver 910 are connected by a bus 940 in FIG. 9.
  • the bus is indicated by a thick line in FIG. 9, and the connection manner between other components is only schematically illustrated. , not limited to.
  • the bus can be divided into an address bus, a data bus, a control bus, and the like. For ease of representation, only one thick line is shown in Figure 9, but it does not mean that there is only one bus or one type of bus.
  • FIG. 10 is a schematic block diagram of a terminal device according to an embodiment of the present application. It should be understood that the terminal device 1000 shown in FIG. 10 is only an example, and the terminal device in the embodiment of the present application may further include other modules or units, or include modules similar to those of the modules in FIG. 10, or not including the figure. All modules in 10.
  • the first determining unit 1010 is configured to determine a step frequency of the current motion of the user.
  • the second determining unit 1020 is configured to determine a first step of the current motion of the user based on the pitch of the current motion determined by the first determining unit 1010.
  • the terminal device 1000 may further include a calculating unit 1030, configured to calculate, according to a preset algorithm, a first calculated motion distance of the user, where the first motion is a motion before the current motion.
  • a calculating unit 1030 configured to calculate, according to a preset algorithm, a first calculated motion distance of the user, where the first motion is a motion before the current motion.
  • the terminal device 1000 may further include an obtaining unit 1040, configured to acquire a step frequency of the first motion of the user.
  • the terminal device 1000 may further include a generating unit 1050, configured to generate a calibration function according to the step frequency of the first motion acquired by the obtaining unit 1040, the calculated motion distance calculated by the calculating unit 1030, and the actual motion distance of the first motion.
  • the calibration function is a function of the step frequency as an independent variable.
  • the second determining unit 1020 is specifically configured to obtain a calibration coefficient according to the calibration function generated by the generating unit 1050 and the step frequency of the current motion determined by the first determining unit 1010; and obtain the user by using the calibration coefficient and the preset algorithm. The first step of the current movement.
  • the second determining unit 1020 is specifically configured to calculate a second stride of the current motion according to the preset algorithm, and perform calibration on the second stride by using the calibration coefficient to obtain a Said the first step.
  • the second step is obtained according to at least one of the user's height, weight or gender.
  • the current motion includes multiple time periods
  • the second determining unit 1020 is specifically configured to determine a first step of each time period based on a step frequency of each of the plurality of time periods.
  • the current motion includes a plurality of time periods
  • the second determining unit 1020 is specifically configured to obtain calibration coefficients of the respective time periods according to the calibration function generated by the generating unit 1050 and the step frequency of each of the plurality of time periods;
  • the calibration coefficients and preset algorithms for each time period get the first step of each time period.
  • the step frequencies of two adjacent ones of the plurality of time periods are different.
  • the first determining unit 1010 is specifically configured to acquire current motion data of the user, where the current motion data includes a current motion time and a current motion step number; and determining a current motion step frequency according to the current motion time and the current motion step number. .
  • terminal device 1000 can perform the operations of the methods 710 and 720 provided by the embodiments of the present application. Here, in order to avoid redundancy, detailed description thereof is omitted.
  • the terminal device 1100 is provided to implement the functions of the methods 710 and 720 provided by the embodiments of the present application.
  • the terminal device 1100 includes a processor 1120 for implementing the functions of the methods 710 and 720 provided by the embodiments of the present application.
  • the processor 1120 may be configured to determine a pitch of a current motion of the user, determine a first step of the current motion of the user, and the like based on the pitch of the current motion. For details, refer to the detailed description in the method example, where Make a statement.
  • the terminal device 1100 may also include a memory 1130 for storing program instructions and/or data.
  • Memory 1130 is coupled to processor 1120.
  • the coupling in the embodiments of the present application is an indirect coupling or communication connection between devices, units or modules, and may be in an electrical, mechanical or other form for information interaction between devices, units or modules.
  • Processor 1120 may operate in conjunction with memory 1130.
  • the processor 1120 may execute program instructions stored in the memory 1130.
  • the processor 1120 can be implemented by hardware or by software. When implemented by hardware, the processor 1120 can be a logic circuit, an integrated circuit, etc.; when implemented by software, the processor 1120 can be a general-purpose processor.
  • the memory 1130 can be integrated into the processor 1120 by reading the software code stored in the memory 1130, and can be located outside the processor 1120 and exist independently.
  • the terminal device 1100 may further include a transceiver 1110 for communicating with other devices through the transmission medium, so that the terminal devices in the terminal device 1100 can communicate with other devices.
  • the processor 1120 can utilize the transceiver 1110 to transmit and receive signals and is used to implement the method in the method embodiments of the present application.
  • connection medium between the above transceiver 1110, the processor 1120, and the memory 1130 is not limited in the embodiment of the present application.
  • the memory 1130, the processor 1120, and the transceiver 1110 are connected by a bus 1140 in FIG. 11, and the bus is indicated by a thick line in FIG. 11, and the connection manner between other components is only schematically illustrated. , not limited to.
  • the bus can be divided into an address bus, a data bus, a control bus, and the like. For ease of representation, only one thick line is shown in Figure 11, but it does not mean that there is only one bus or one type of bus.
  • the processor may be a central processing unit (CPU), and the processor may also be other general-purpose processors, digital signal processors (DSPs), and application specific integrated circuits ( Application specific integrated circuit (ASIC), field programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware component, etc.
  • the general purpose processor may be a microprocessor or the processor or any conventional processor or the like.
  • the memory may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memory.
  • the non-volatile memory may be a read-only memory (ROM), a programmable read only memory (ROMM), an erasable programmable read only memory (erasable PROM, EPROM), or an electrical Erase programmable EPROM (EEPROM) or flash memory.
  • the volatile memory can be a random access memory (RAM) that acts as an external cache.
  • RAM random access memory
  • RAM random access memory
  • SRAM static random access memory
  • DRAM dynamic random access memory
  • synchronous dynamic randomness synchronous dynamic randomness.
  • Synchronous DRAM SDRAM
  • DDR SDRAM double data rate synchronous DRAM
  • ESDRAM enhanced synchronous dynamic random access memory
  • SLDRAM synchronous connection dynamic random access memory Take memory
  • DR RAM direct memory bus random access memory
  • the size of the sequence numbers of the foregoing processes does not mean the order of execution sequence, and the order of execution of each process should be determined by its function and internal logic, and should not be applied to the embodiment of the present application.
  • the implementation process constitutes any limitation.
  • the disclosed systems, devices, and methods may be implemented in other manners.
  • the device embodiments described above are merely illustrative.
  • the division of the unit is only a logical function division.
  • there may be another division manner for example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored or not executed.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be in an electrical, mechanical or other form.
  • the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
  • each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
  • the method provided by the embodiment of the present application may be implemented in whole or in part by software, hardware, firmware, or any combination thereof.
  • software When implemented in software, it may be implemented in whole or in part in the form of a computer program product.
  • the computer program product includes one or more computer instructions.
  • the computer program instructions When the computer program instructions are loaded and executed on a computer, the processes or functions described in accordance with embodiments of the present application are generated in whole or in part.
  • the computer can be a general purpose computer, a special purpose computer, a computer network, a network device, a user device, or other programmable device.
  • the computer instructions can be stored in a computer readable storage medium or transferred from one computer readable storage medium to another computer readable storage medium, for example, the computer instructions can be from a website site, computer, server or data center Transmission to another website site, computer, server or data center via wired (eg coaxial cable, fiber optic, digital subscriber line (DSL)) or wireless (eg infrared, wireless, microwave, etc.).
  • the computer readable storage medium can be any available media that can be accessed by a computer or a data storage device such as a server, data center, or the like that includes one or more available media.
  • the usable medium may be a magnetic medium (eg, a floppy disk, a hard disk, a magnetic tape), an optical medium (eg, a digital video disc (DVD)), or a semiconductor medium (eg, an SSD) or the like.
  • a magnetic medium eg, a floppy disk, a hard disk, a magnetic tape
  • an optical medium eg, a digital video disc (DVD)
  • a semiconductor medium eg, an SSD

Abstract

The present provides a method for obtaining a movement distance of a user, and a terminal device. The method comprises: determining a stride frequency of current movement of the user; on the basis of the stride frequency of the current movement, determining a first movement distance of the current movement of the user; and outputting the first movement distance. By the method for obtaining a movement distance of a user, and the terminal device provided in embodiments of the present application, the accuracy of estimating the movement distance of the user can be improved.

Description

用户运动距离的获取方法和终端设备User motion distance acquisition method and terminal device 技术领域Technical field
本申请涉及数据处理领域,并且更具体地,涉及一种用户运动距离的获取方法和终端设备。The present application relates to the field of data processing, and more particularly, to a method and a terminal device for acquiring a user's motion distance.
背景技术Background technique
目前,手机运动类应用程序(application,APP),如咕咚、悦动圈等,越来越受到人们的欢迎,这些运动APP大多有“室内跑”,即跑步机功能,可以通过运动步数来估算运动距离。At present, mobile sports applications (applications, APP), such as 咕咚, Yuedong circle, etc., are more and more popular among people. Most of these sports apps have “indoor running”, that is, treadmill function, which can be estimated by the number of sports steps. Movement distance.
具体地,运动APP估算的运动距离等于用户的运动步数与步幅的乘积,而步幅又等于用户的个人参数与某一系数的乘积,其中,该系数是固定的。可以看到,这种估算运动距离的公式是一种通用公式,没有考虑用户个人的运动能力和习惯,同样身高或性别的人、同样的运动步数,但运动距离可能是不同的。一般情况下,这种通用公式估算出来的运动距离会有10%~30%左右的偏差,误差比较大。Specifically, the motion distance estimated by the motion APP is equal to the product of the number of motion steps of the user and the stride, and the stride is again equal to the product of the user's personal parameter and a coefficient, wherein the coefficient is fixed. It can be seen that this formula for estimating the distance of motion is a general formula that does not take into account the individual's individual athletic ability and habits, the same height or gender, the same number of steps, but the distance may be different. Under normal circumstances, the motion distance estimated by this general formula will have a deviation of about 10% to 30%, and the error is relatively large.
发明内容Summary of the invention
本申请提供一种用户运动距离的获取方法和终端设备,可以提高估算用户运动距离的准确度。The present application provides a method for acquiring a user's motion distance and a terminal device, which can improve the accuracy of estimating the user's motion distance.
第一方面,提供了一种用户运动距离的获取方法,包括:确定用户当前运动的步频;基于所述当前运动的步频,确定所述用户当前运动的第一运动距离;输出所述第一运动距离。The first aspect provides a method for acquiring a user's motion distance, including: determining a step frequency of a current motion of the user; determining a first motion distance of the current motion of the user based on the step frequency of the current motion; and outputting the first A moving distance.
本申请实施例,在用户的运动过程中,由于步频的变化可以直接影响运动距离,比如在其它因素一定的条件下,步频越大,运动距离越长;步频越小,运动距离越短,并且终端设备确定的步频非常接近用户的实际步频。因此,基于步频估算的运动距离和实际距离相比,误差较小,从而可以提高终端设备估算用户运动距离的准确度。In the embodiment of the present application, during the movement of the user, the movement distance can be directly affected by the change of the step frequency. For example, under other conditions, the step frequency is larger, and the motion distance is longer; the smaller the step frequency, the more the motion distance is. Short, and the step frequency determined by the terminal device is very close to the actual step frequency of the user. Therefore, the motion distance based on the step frequency estimation is smaller than the actual distance, so that the accuracy of the terminal device estimating the user's motion distance can be improved.
在一些可能的实现方式中,在所述确定用户当前运动的步频前,所述方法还包括:根据预设算法计算得到所述用户的第一运动的计算运动距离,所述第一运动为所述当前运动之前的一次运动;获取所述用户的第一运动的步频;根据所述第一运动的步频、所述计算运动距离以及所述第一运动的实际运动距离生成校准函数,所述校准函数是以步频为自变量的函数;所述基于所述当前运动的步频,确定所述用户当前运动的第一运动距离,包括:根据所述校准函数和所述当前运动的步频,获得校准系数;使用所述校准系数和所述预设算法,得到所述用户当前运动的第一运动距离。In some possible implementations, before the determining the step frequency of the current motion of the user, the method further includes: calculating a calculated motion distance of the first motion of the user according to a preset algorithm, where the first motion is a motion before the current motion; acquiring a pitch of the first motion of the user; generating a calibration function according to the pitch of the first motion, the calculated motion distance, and the actual motion distance of the first motion, The calibration function is a function of the step frequency as an independent variable; the determining the first motion distance of the current motion of the user based on the step frequency of the current motion, comprising: according to the calibration function and the current motion Step frequency, obtaining a calibration coefficient; using the calibration coefficient and the preset algorithm, obtaining a first motion distance of the user's current motion.
其中,所述预设算法用于根据检测到的运动步数和用户的步幅参数计算运动距离。The preset algorithm is configured to calculate a motion distance according to the detected motion step number and the user's stride parameter.
上述技术方案,校准函数得到的校准系数可以用于确定用户的运动距离,由于校准函数是通过用户多次运动的样本数据训练得到的,且训练校准函数的样本数据较多,这样使 得训练得到的校准函数,以及通过校准函数得到的校准系数也比较准确。校准函数得到的校准系数用于确定运动距离,从而终端设备估算的运动距离的准确度也比较高。In the above technical solution, the calibration coefficient obtained by the calibration function can be used to determine the moving distance of the user. Since the calibration function is obtained by training the sample data of the user's multiple motions, and the sample data of the training calibration function is more, the training result is obtained. The calibration function and the calibration coefficients obtained by the calibration function are also accurate. The calibration coefficient obtained by the calibration function is used to determine the moving distance, so that the accuracy of the estimated moving distance of the terminal device is also relatively high.
在一些可能的实现方式中,所述使用所述校准系数和所述预设算法,得到所述用户当前运动的第一运动距离,包括:利用所述校准系数,对所述预设算法中的参数进行校准,得到校准后的预设算法;使用所述校准后的预设算法计算得到所述当前运动的所述第一运动距离。In some possible implementations, the using the calibration coefficient and the preset algorithm to obtain a first motion distance of the current motion of the user, including: using the calibration coefficient, in the preset algorithm The parameter is calibrated to obtain a calibrated preset algorithm; the first motion distance of the current motion is calculated using the calibrated preset algorithm.
在一些可能的实现方式中,所述使用所述校准系数和所述预设算法,得到所述用户当前运动的第一运动距离,包括:利用所述校准系数,对所述预设算法中的参数进行校准,得到校准后的预设算法;使用所述校准后的预设算法计算得到所述当前运动的所述第一运动距离。In some possible implementations, the using the calibration coefficient and the preset algorithm to obtain a first motion distance of the current motion of the user, including: using the calibration coefficient, in the preset algorithm The parameter is calibrated to obtain a calibrated preset algorithm; the first motion distance of the current motion is calculated using the calibrated preset algorithm.
在一些可能的实现方式中,所述方法还包括:根据所述当前运动的步频,所述第一运动距离以及所述当前运动的实际运动距离,对所述校准函数进行调整,得到调整后的校准函数,所述调整后的校准函数用于对下一次运动的计算距离进行校准,所述下一次的计算距离为使用所述预设算法计算得到的运动距离。In some possible implementations, the method further includes: adjusting the calibration function according to the step frequency of the current motion, the first motion distance, and the actual motion distance of the current motion, and obtaining the adjusted a calibration function for calibrating the calculated distance of the next motion, the next calculated distance being the motion distance calculated using the preset algorithm.
上述技术方案,终端设备可以将用户当前运动的步频、第一运动距离以及当前运动的实际运动距离输入到校准函数中,这样使得训练校准函数的样本数量更多,训练出来的校准函数就更加准确,从而通过校准函数确定的第一运动距离更加接近用户的实际运动距离。In the above technical solution, the terminal device can input the step frequency of the current motion of the user, the first motion distance, and the actual motion distance of the current motion into the calibration function, so that the number of samples of the training calibration function is more, and the trained calibration function is more It is accurate that the first motion distance determined by the calibration function is closer to the actual motion distance of the user.
在一些可能的实现方式中,所述方法还包括:接收所述用户输入的指令,所述指令用于指示当前运动的实际运动距离。In some possible implementations, the method further includes receiving an instruction input by the user, the instruction being used to indicate an actual moving distance of the current motion.
在一些可能的实现方式中,所述当前运动的实际运动距离为跑步机上的运动距离。In some possible implementations, the actual moving distance of the current motion is the moving distance on the treadmill.
在一些可能的实现方式中,所述当前运动包括多个时段,所述基于所述当前运动的步频,确定所述用户当前运动的第一运动距离,包括:基于所述多个时段中的每个时段的步频,确定每个时段的运动距离;将所述多个时段的运动距离之和确定为所述用户当前运动的第一运动距离。In some possible implementations, the current motion includes a plurality of time periods, and determining, according to the step frequency of the current motion, determining a first motion distance of the current motion of the user, including: based on the multiple time periods The pitch of each time period is determined, and the motion distance of each time period is determined; the sum of the motion distances of the plurality of time periods is determined as the first motion distance of the current motion of the user.
上述技术方案,由于在运动过程中,用户有可能不完全是匀速运动,步频是有变化的,若用总运动时间和总运动步数来计算步频、再用此步频计算运动距离的话,计算出的用户的运动距离误差较大。而如果将当前运动分为多个时段,每个时段的步频相同,比如5秒为一个时段,一般情况下,可以认为5秒内的步频是不变的,再基于此步频,确定每个时段的运动距离,这样可以提高估算用户运动距离的准确度。In the above technical solution, since the user may not be completely moving at the same time during the movement, the step frequency is changed. If the total exercise time and the total number of motion steps are used to calculate the step frequency, and then the step frequency is used to calculate the exercise distance, The calculated user's motion distance error is large. If the current motion is divided into multiple time periods, the time frequency of each time period is the same, for example, 5 seconds is a time period. In general, it can be considered that the step frequency within 5 seconds is constant, and then based on the step frequency, it is determined. The distance of motion for each time period, which improves the accuracy of estimating the distance traveled by the user.
在一些可能的实现方式中,所述当前运动包括多个时段,所述根据所述校准函数,和所述当前运动的步频,获得校准系数,包括:根据所述校准函数和所述多个时段中的各个时段的步频,分别得到各个时段的校准系数;所述使用所述校准系数和所述预设算法,得到所述用户当前运动的第一运动距离,包括:根据所述各个时段的校准系数和所述预设算法,分别得到各个时段的运动距离;将各个时段的运动距离之和确定为所述第一运动距离。In some possible implementations, the current motion includes a plurality of time periods, and according to the calibration function, and the pitch frequency of the current motion, obtaining calibration coefficients, including: according to the calibration function and the multiple a step frequency of each time period in the time period, respectively obtaining a calibration coefficient of each time period; the using the calibration coefficient and the preset algorithm to obtain a first motion distance of the current motion of the user, including: according to the each time period The calibration coefficient and the preset algorithm respectively obtain the motion distances of the respective time periods; and determine the sum of the motion distances of the respective time periods as the first motion distance.
在一些可能的实现方式中,所述多个时段中相邻的两个时段的步频不同。In some possible implementations, the step frequencies of two adjacent ones of the plurality of time periods are different.
在一些可能的实现方式中,所述确定用户当前运动的步频,包括:获取所述用户的当前运动数据,所述当前运动数据包括当前运动时间和当前运动步数;根据所述当前运动时间和当前运动步数,确定所述当前运动的步频。In some possible implementations, the determining a step frequency of a current motion of the user includes: acquiring current motion data of the user, where the current motion data includes a current motion time and a current motion step; according to the current motion time And the current number of motion steps, determining the pitch of the current motion.
上述技术方案,在用户的运动过程中,只有运动的时间和步数可以直接得到,且得到的运动时间和步数误差较小,因此,根据运动时间和步数确定的步频误差也较小,接近用户的实际步频。In the above technical solution, only the time and the number of steps of the motion can be directly obtained during the movement of the user, and the obtained motion time and the step number error are small, and therefore, the step frequency error determined according to the motion time and the number of steps is also small. , close to the user's actual step frequency.
第二方面,提供了一种用户运动距离的获取方法,包括:确定用户当前运动的步频;基于所述当前运动的步频,确定所述用户当前运动的第一步幅。In a second aspect, a method for acquiring a user's motion distance is provided, including: determining a step frequency of a current motion of the user; and determining a first step of the current motion of the user based on the step frequency of the current motion.
在一些可能的实现方式中,所述确定用户当前运动的第一步幅前,所述方法还包括:根据预设算法计算得到所述用户的第一运动的计算运动距离,所述第一运动为所述当前运动之前的一次运动;获取所述用户的第一运动的步频;根据所述第一运动的步频、所述计算运动距离以及所述第一运动的实际距离生成校准函数,所述校准函数是以步频为自变量的函数;所述基于所述当前运动的步频,确定所述用户当前运动的第一步幅,包括:根据所述校准函数和所述当前运动的步频,获得校准系数;使用所述校准系数和所述预设算法,得到所述用户当前运动的第一步幅。In some possible implementations, before the determining the first step of the user's current motion, the method further includes: calculating, according to a preset algorithm, a calculated motion distance of the first motion of the user, the first motion a motion before the current motion; acquiring a pitch of the first motion of the user; generating a calibration function according to the pitch of the first motion, the calculated motion distance, and an actual distance of the first motion, The calibration function is a function of the step frequency as an independent variable; the determining the first step of the current motion of the user based on the step frequency of the current motion, comprising: according to the calibration function and the current motion Step frequency, obtaining a calibration coefficient; using the calibration coefficient and the preset algorithm, obtaining a first step of the user's current motion.
在一些可能的实现方式中,所述使用所述校准系数和所述预设算法,得到所述用户当前运动的第一步幅,包括:根据所述预设算法计算得到所述当前运动的第二步幅;使用所述校准系数,对所述第二步幅进行校准,得到所述第一步幅。In some possible implementations, the using the calibration coefficient and the preset algorithm to obtain a first step of the current motion of the user, including: calculating, according to the preset algorithm, the current motion Two steps; using the calibration coefficients, the second step is calibrated to obtain the first step.
在一些可能的实现方式中,所述第二步幅是根据所述用户的身高、体重或性别中的至少一项得到的。In some possible implementations, the second stride is obtained based on at least one of a height, a weight, or a gender of the user.
在一些可能的实现方式中,所述当前运动包括多个时段,所述基于所述当前运动的步频,确定所述用户当前运动的第一步幅,包括:基于所述多个时段中的每个时段的步频,确定每个时段的第一步幅。In some possible implementations, the current motion includes a plurality of time periods, and determining, according to the step frequency of the current motion, a first step of the current motion of the user, including: based on the multiple time periods The step frequency of each time period determines the first step of each time period.
在一些可能的实现方式中,所述当前运动包括多个时段,所述根据所述校准函数和所述当前运动的步频,获得校准系数,包括:根据所述校准函数和所述多个时段中的各个时段的步频,分别得到各个时段的校准系数;使用所述校准系数和所述预设算法,得到所述用户当前运动的第一步幅,包括:根据所述各个时段的校准系数和所述预设算法,分别得到各个时段的第一步幅。In some possible implementations, the current motion includes a plurality of time periods, and according to the calibration function and the step frequency of the current motion, obtaining calibration coefficients, including: according to the calibration function and the multiple time periods The step frequency of each time period is obtained, respectively, the calibration coefficient of each time period is obtained; using the calibration coefficient and the preset algorithm, the first step of the current motion of the user is obtained, including: according to the calibration coefficient of each time period And the preset algorithm respectively obtains the first step of each time period.
在一种可能的实现方式中,所述多个时段中相邻的两个时段的步频不同。In a possible implementation manner, the step frequencies of two adjacent ones of the plurality of time periods are different.
在一些可能的实现方式中,所述确定用户当前运动的步频,包括:获取所述用户的当前运动数据,所述当前运动数据包括当前运动时间和当前运动步数;根据所述当前运动时间和当前运动步数,确定所述当前运动的步频。In some possible implementations, the determining a step frequency of a current motion of the user includes: acquiring current motion data of the user, where the current motion data includes a current motion time and a current motion step; according to the current motion time And the current number of motion steps, determining the pitch of the current motion.
第三方面,提供了一种终端设备,包括:第一确定单元,用于确定用户当前运动的步频;第二确定单元,用于基于所述第一确定单元确定的所述当前运动的步频,确定所述用户当前运动的第一运动距离;输出单元,用于输出所述第二确定单元确定的所述第一运动距离。In a third aspect, a terminal device is provided, including: a first determining unit, configured to determine a step frequency of a current motion of the user; and a second determining unit, configured to determine, according to the step of the current motion determined by the first determining unit And determining, by the frequency, a first motion distance of the current motion of the user; and an output unit, configured to output the first motion distance determined by the second determining unit.
在一些可能的实现方式中,所述终端设备还包括:计算单元,用于根据预设算法计算得到所述用户的第一运动的计算运动距离,所述第一运动为所述当前运动之前的一次运动;获取单元,用于获取所述用户的第一运动的步频;生成单元,用于根据所述获取单元获取的所述第一运动的步频、所述计算单元计算的所述计算运动距离,以及所述第一运动的实际运动距离生成校准函数,所述校准函数是以步频为自变量的函数;所述第二确定单元具体用于:根据所述生成单元生成的所述校准函数和所述第一确定单元确定的所述当前 运动的步频,获得校准系数;使用所述校准系数和所述预设算法,得到所述用户当前运动的第一运动距离。In some possible implementations, the terminal device further includes: a calculating unit, configured to calculate, according to a preset algorithm, a calculated motion distance of the first motion of the user, where the first motion is before the current motion a motion unit; an acquisition unit, configured to acquire a step frequency of the first motion of the user; a generating unit, configured to calculate, according to the step frequency of the first motion acquired by the acquiring unit, the calculation calculated by the computing unit a movement distance, and an actual movement distance of the first motion, a calibration function, wherein the calibration function is a function of the step frequency as an independent variable; the second determining unit is specifically configured to: generate the a calibration function and a pitch of the current motion determined by the first determining unit to obtain a calibration coefficient; using the calibration coefficient and the preset algorithm, obtaining a first motion distance of the current motion of the user.
在一些可能的实现方式中,所述第二确定单元具体用于:根据所述预设算法计算得到所述当前运动的第二运动距离;使用所述校准系数,对所述第二运动距离进行校准,得到所述第一运动距离。In some possible implementations, the second determining unit is specifically configured to: calculate a second motion distance of the current motion according to the preset algorithm; and use the calibration coefficient to perform the second motion distance Calibrating, the first moving distance is obtained.
在一些可能的实现方式中,所述第二确定单元具体用于:利用所述校准系数,对所述预设算法中的参数进行校准,得到校准后的预设算法;使用所述校准后的预设算法计算得到所述当前运动的所述第一运动距离。In some possible implementations, the second determining unit is specifically configured to: calibrate the parameter in the preset algorithm by using the calibration coefficient, to obtain a calibrated preset algorithm; and use the calibrated The preset algorithm calculates the first motion distance of the current motion.
在一些可能的实现方式中,所述预设算法用于根据检测到的运动步数和用户的步幅参数计算运动距离。In some possible implementations, the preset algorithm is configured to calculate a motion distance according to the detected motion step number and the user's stride parameter.
在一些可能的实现方式中,所述终端设备还包括调整单元,用于根据所述第一确定单元确定的所述当前运动的步频、所述第二确定单元确定的所述第一运动距离以及所述当前运动的实际运动距离,对所述校准函数进行调整,得到调整后的校准函数,所述调整后的校准函数用于对下一次运动的计算距离进行校准,所述下一次的计算距离为使用所述预设算法计算得到的运动距离。In some possible implementations, the terminal device further includes an adjusting unit, configured, according to the step frequency of the current motion determined by the first determining unit, the first motion distance determined by the second determining unit And adjusting the calibration function to obtain an adjusted calibration function, wherein the adjusted calibration function is used to calibrate the calculated distance of the next motion, the next calculation The distance is the motion distance calculated using the preset algorithm.
在一些可能的实现方式中,所述终端设备还包括接收单元,用于接收所述用户输入的指令,所述指令用于指示当前运动的实际运动距离。In some possible implementations, the terminal device further includes a receiving unit, configured to receive an instruction input by the user, where the instruction is used to indicate an actual moving distance of the current motion.
在一些可能的实现方式中,所述当前运动的实际运动距离为跑步机上的运动距离。In some possible implementations, the actual moving distance of the current motion is the moving distance on the treadmill.
在一些可能的实现方式中,所述当前运动包括多个时段,所述第二确定单元具体用于:基于所述多个时段中的每个时段的步频,确定每个时段的运动距离;将所述多个时段的运动距离之和确定为所述用户当前运动的第一运动距离。In some possible implementations, the current motion includes a plurality of time periods, and the second determining unit is specifically configured to: determine a motion distance of each time period based on a pitch frequency of each of the plurality of time periods; The sum of the motion distances of the plurality of time periods is determined as the first motion distance of the current motion of the user.
在一些可能的实现方式中,所述当前运动包括多个时段,所述第二确定单元具体用于:根据所述校准函数和所述多个时段中的各个时段的步频,分别得到各个时段的校准系数;根据所述各个时段的校准系数和所述预设算法,分别得到各个时段的运动距离;将各个时段的运动距离之和确定为所述第一运动距离。In some possible implementations, the current motion includes multiple time periods, and the second determining unit is specifically configured to: respectively obtain each time period according to the calibration function and the step frequency of each of the plurality of time periods The calibration coefficient is obtained according to the calibration coefficients of the respective time periods and the preset algorithm, respectively, and the sum of the motion distances of the respective time periods is determined as the first motion distance.
在一些可能的实现方式中,所述多个时段中相邻的两个时段的步频不同。In some possible implementations, the step frequencies of two adjacent ones of the plurality of time periods are different.
在一些可能的实现方式中,所述第一确定单元具体用于:获取所述用户的当前运动数据,所述当前运动数据包括当前运动时间和当前运动步数;根据所述当前运动时间和当前运动步数,确定所述当前运动的步频。In some possible implementations, the first determining unit is specifically configured to: acquire current motion data of the user, where the current motion data includes a current motion time and a current motion step; according to the current motion time and current The number of motion steps determines the pitch of the current motion.
第四方面,提供了一种终端设备,包括:第一确定单元,用于确定用户当前运动的步频;第二确定单元,基于所述第一确定单元确定的当前运动的所述步频,确定所述用户当前运动的第一步幅。A fourth aspect provides a terminal device, including: a first determining unit, configured to determine a step frequency of a current motion of the user; and a second determining unit, based on the step frequency of the current motion determined by the first determining unit, Determine the first step of the user's current movement.
在一些可能的实现方式中,所述终端设备还包括:计算单元,用于根据预设算法计算得到所述用户的第一运动的计算运动距离,所述第一运动为所述当前运动之前的一次运动;获取单元,用于获取所述用户的第一运动的步频;生成单元,用于根据所述获取单元获取的所述第一运动的步频、所述计算单元计算的所述计算运动距离,以及所述第一运动的实际运动距离生成校准函数,所述校准函数是以步频为自变量的函数;所述第二确定单元具体用于:根据所述生成单元生成的所述校准函数和所述第一确定单元确定的所述当前运动的步频,获得校准系数;使用所述校准系数和所述预设算法,得到所述用户当前运动 的第一步幅。In some possible implementations, the terminal device further includes: a calculating unit, configured to calculate, according to a preset algorithm, a calculated motion distance of the first motion of the user, where the first motion is before the current motion a motion unit; an acquisition unit, configured to acquire a step frequency of the first motion of the user; a generating unit, configured to calculate, according to the step frequency of the first motion acquired by the acquiring unit, the calculation calculated by the computing unit a movement distance, and an actual movement distance of the first motion, a calibration function, wherein the calibration function is a function of the step frequency as an independent variable; the second determining unit is specifically configured to: generate the And a calibration function and a step frequency of the current motion determined by the first determining unit to obtain a calibration coefficient; using the calibration coefficient and the preset algorithm, obtaining a first step of the current motion of the user.
在一些可能的实现方式中,所述第二确定单元具体用于:根据所述预设算法计算得到所述当前运动的第二步幅;使用所述校准系数,对所述第二步幅进行校准,得到所述第一步幅。In some possible implementations, the second determining unit is specifically configured to: calculate a second stride of the current motion according to the preset algorithm; and use the calibration coefficient to perform the second stride Calibrate to obtain the first step.
在一些可能的实现方式中,所述第二步幅是根据所述用户的身高、体重或性别中的至少一项得到的。In some possible implementations, the second stride is obtained based on at least one of a height, a weight, or a gender of the user.
在一些可能的实现方式中,所述当前运动包括多个时段,所述第二确定单元具体用于:基于所述多个时段中的每个时段的步频,确定每个时段的第一步幅。In some possible implementations, the current motion includes multiple time periods, and the second determining unit is specifically configured to: determine a first step of each time period based on a step frequency of each of the plurality of time periods Width.
在一些可能的实现方式中,所述当前运动包括多个时段,所述第二确定单元具体用于:根据所述校准函数和所述多个时段中的各个时段的步频,分别得到各个时段的校准系数;根据所述各个时段的校准系数和所述预设算法,分别得到各个时段的第一步幅。In some possible implementations, the current motion includes multiple time periods, and the second determining unit is specifically configured to: respectively obtain each time period according to the calibration function and the step frequency of each of the plurality of time periods The calibration coefficient; according to the calibration coefficients of the respective time periods and the preset algorithm, respectively obtain the first step of each time period.
在一些可能的实现方式中,所述多个时段中相邻的两个时段的步频不同。In some possible implementations, the step frequencies of two adjacent ones of the plurality of time periods are different.
在一些可能的实现方式中,所述第一确定单元具体用于:获取所述用户的当前运动数据,所述当前运动数据包括当前运动时间和当前运动步数;根据所述当前运动时间和当前运动步数,确定所述当前运动的步频。In some possible implementations, the first determining unit is specifically configured to: acquire current motion data of the user, where the current motion data includes a current motion time and a current motion step; according to the current motion time and current The number of motion steps determines the pitch of the current motion.
第五方面,提供了一种终端设备,所述终端设备包括处理器,用于实现上述第一方面描述的方法中的功能。所述终端设备还可以包括存储器,用于存储程序指令和数据。所述存储器与所述处理器耦合,所述处理器可以调用并执行所述存储器中存储的程序指令,用于实现上述第一方面描述的方法中的功能。所述终端设备还可以包括收发器,所述收发器用于该终端设备与其它设备进行通信。In a fifth aspect, a terminal device is provided, the terminal device comprising a processor for implementing the functions in the method described in the first aspect above. The terminal device may also include a memory for storing program instructions and data. The memory is coupled to the processor, and the processor can invoke and execute program instructions stored in the memory for implementing the functions of the method described in the first aspect above. The terminal device may further include a transceiver for the terminal device to communicate with other devices.
第六方面,提供了一种终端设备,所述终端设备包括处理器,用于实现上述第二方面描述的方法中的功能。所述终端设备还可以包括存储器,用于存储程序指令和数据。所述存储器与所述处理器耦合,所述处理器可以调用并执行所述存储器中存储的程序指令,用于实现上述第二方面描述的方法中的功能。所述终端设备还可以包括收发器,所述收发器用于该终端设备与其它设备进行通信。In a sixth aspect, a terminal device is provided, the terminal device comprising a processor for implementing the functions in the method described in the second aspect above. The terminal device may also include a memory for storing program instructions and data. The memory is coupled to the processor, and the processor can invoke and execute program instructions stored in the memory for implementing the functions of the method described in the second aspect above. The terminal device may further include a transceiver for the terminal device to communicate with other devices.
第七方面,本申请实施例中还提供一种计算机存储介质,该存储介质中存储程序指令,该程序指令在被一个或多个处理器读取并执行时可实现第一方面所述的方法。In a seventh aspect, the embodiment of the present application further provides a computer storage medium, where the program medium stores a program instruction, where the program instruction can be implemented by one or more processors and can implement the method described in the first aspect. .
第八方面,本申请实施例中还提供一种计算机存储介质,该存储介质中存储软件程序,该软件程序在被一个或多个处理器读取并执行时可实现第二方面所述的方法。In an eighth aspect, the embodiment of the present application further provides a computer storage medium, where the software program stores a software program, and the software program can implement the method described in the second aspect when being read and executed by one or more processors. .
第九方面,本申请实施例提供了一种包含指令的计算机程序产品,当其在计算机上运行时,使得计算机执行上述第一方面所述的方法。In a ninth aspect, an embodiment of the present application provides a computer program product comprising instructions, which when executed on a computer, cause the computer to perform the method described in the first aspect above.
第十方面,本申请实施例提供了一种包含指令的计算机程序产品,当其在计算机上运行时,使得计算机执行上述第二方面所述的方法。In a tenth aspect, an embodiment of the present application provides a computer program product comprising instructions, when executed on a computer, causing a computer to perform the method described in the second aspect above.
附图说明DRAWINGS
图1是本申请实施例的用户运动距离的获取方法所适用的一种终端设备的示意图。FIG. 1 is a schematic diagram of a terminal device to which a method for acquiring a user's motion distance is applied according to an embodiment of the present application.
图2是本申请实施例的用户运动距离的获取方法的示意性流程图。FIG. 2 is a schematic flowchart of a method for acquiring a user's motion distance according to an embodiment of the present application.
图3是本申请实施例的用户运动距离的获取方法的一种具体实现流程图。FIG. 3 is a specific implementation flowchart of a method for acquiring a user's motion distance according to an embodiment of the present application.
图4是基于本申请实施例用户运动距离的获取方法的用户操作的示意图。FIG. 4 is a schematic diagram of user operations based on a method for acquiring a user's motion distance according to an embodiment of the present application.
图5是基于本申请实施例用户运动距离的获取方法的用户操作的示意图。FIG. 5 is a schematic diagram of user operations based on a method for acquiring a user's motion distance according to an embodiment of the present application.
图6是本申请实施例估算的用户的第一运动距离、第二运动距离和实际运动距离的对比图。FIG. 6 is a comparison diagram of the first moving distance, the second moving distance, and the actual moving distance estimated by the user in the embodiment of the present application.
图7是本申请实施例的用户运动距离的获取方法的示意性流程图。FIG. 7 is a schematic flowchart of a method for acquiring a user's motion distance according to an embodiment of the present application.
图8是本申请实施例的终端设备的示意性框图。FIG. 8 is a schematic block diagram of a terminal device according to an embodiment of the present application.
图9是本申请实施例的终端设备的示意性框图。FIG. 9 is a schematic block diagram of a terminal device according to an embodiment of the present application.
图10是本申请实施例的终端设备的示意性框图。FIG. 10 is a schematic block diagram of a terminal device according to an embodiment of the present application.
图11是本申请实施例的终端设备的示意性框图。FIG. 11 is a schematic block diagram of a terminal device according to an embodiment of the present application.
具体实施方式detailed description
下面将结合附图,对本申请实施例提供的技术方案进行描述。The technical solutions provided by the embodiments of the present application will be described below with reference to the accompanying drawings.
本申请的用户运动距离的获取方法可以应用于针对终端设备的用户运动距离的获取。终端设备还可以称为终端,是一种具有无线收发功能的设备。终端设备也可以称为用户设备(User Equipment,UE)、接入终端、用户单元、用户站、移动站、移动台、远方站、远程终端、移动设备、用户终端、终端、无线通信设备、用户代理或用户装置。终端设备可以是WLAN中的站点(STAION,ST),可以是蜂窝电话、无绳电话、会话启动协议(Session Initiation Protocol,SIP)电话、无线本地环路(Wireless Local Loop,WLL)站、个人数字处理(Personal Digital Assistant,PDA)设备、具有无线通信功能的手持设备、计算设备或连接到无线调制解调器的其它处理设备、车载设备、车联网终端、电脑、膝上型计算机、手持式通信设备、手持式计算设备、卫星无线设备、无线调制解调器卡、电视机顶盒(set top box,STB)、用户驻地设备(customer premise equipment,CPE)和/或用于在无线系统上进行通信的其它设备以及下一代通信系统,例如,5G网络中的终端设备或者未来演进的公共陆地移动网络(public land mobile network,PLMN)网络中的终端设备等。The method for acquiring the user's motion distance of the present application can be applied to the acquisition of the user's motion distance for the terminal device. A terminal device, which can also be called a terminal, is a device with a wireless transceiver function. A terminal device may also be called a user equipment (User Equipment, UE), an access terminal, a subscriber unit, a subscriber station, a mobile station, a mobile station, a remote station, a remote terminal, a mobile device, a user terminal, a terminal, a wireless communication device, and a user. Agent or user device. The terminal device can be a station in the WLAN (STAION, ST), which can be a cellular phone, a cordless phone, a Session Initiation Protocol (SIP) phone, a Wireless Local Loop (WLL) station, and a personal digital processing. (Personal Digital Assistant, PDA) device, handheld device with wireless communication capabilities, computing device or other processing device connected to a wireless modem, in-vehicle device, car networking terminal, computer, laptop, handheld communication device, handheld Computing devices, satellite wireless devices, wireless modem cards, set top boxes (STBs), customer premise equipment (CPE), and/or other devices for communicating over wireless systems, and next generation communication systems For example, a terminal device in a 5G network or a terminal device in a public land mobile network (PLMN) network that is evolving in the future.
此外,在本申请实施例中,终端设备还可以是物联网(internet of things,IoT)系统中的终端设备,IoT是未来信息技术发展的重要组成部分,其主要技术特点是将物品通过通信技术与网络连接,从而实现人机互连,物物互连的智能化网络。In addition, in the embodiment of the present application, the terminal device may also be a terminal device in an Internet of Things (IoT) system, and the IoT is an important component of future information technology development, and its main technical feature is to pass the article through the communication technology. Connected to the network to realize an intelligent network of human-machine interconnection and physical interconnection.
图1是可以应用本申请实施例的一种终端设备的部分结构框图。参考图1,该终端设备100可以包括以下部件。FIG. 1 is a block diagram showing a part of a terminal device to which an embodiment of the present application is applicable. Referring to FIG. 1, the terminal device 100 may include the following components.
A.射频(radio frequency,RF)电路110A. Radio frequency (RF) circuit 110
RF电路110可用于收发信息或通话过程中,信号的接收和发送。其中,RF电路可以包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器(low noise amplifier,LNA)、双工器等。The RF circuit 110 can be used to transmit and receive information and receive and transmit signals during a call. The RF circuit may include, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier (LNA), a duplexer, and the like.
特别地,RF电路110可以将基站发送的下行信息接收后,给处理器180进行处理;另外,RF电路110也可以将上行数据发送给基站。In particular, the RF circuit 110 may receive the downlink information sent by the base station and then process it to the processor 180. In addition, the RF circuit 110 may also send the uplink data to the base station.
此外,RF电路110还可以通过无线通信与网络和其他设备通信。其中,该无线通信可以使用任一通信标准或协议,包括但不限于全球移动通讯(global system of mobile communication,GSM)系统、码分多址(code division multiple access,CDMA)系统、宽带码分多址(wideband code division multiple access,WCDMA)系统、通用分组无线业务 (general packet radio service,GPRS)、长期演进(long term evolution,LTE)系统、电子邮件、短消息服务(short messaging service,SMS)等。In addition, RF circuitry 110 can also communicate with the network and other devices via wireless communication. The wireless communication can use any communication standard or protocol, including but not limited to a global system of mobile communication (GSM) system, a code division multiple access (CDMA) system, and a wideband code division. Wideband code division multiple access (WCDMA) system, general packet radio service (GPRS), long term evolution (LTE) system, e-mail, short messaging service (SMS), etc. .
B.存储器120 B. Memory 120
存储器120可用于存储软件程序以及模块,处理器180通过运行存储在存储器120的软件程序以及模块,从而可以执行终端设备100的各种功能应用以及数据处理。The memory 120 can be used to store software programs and modules, and the processor 180 can execute various functional applications and data processing of the terminal device 100 by running software programs and modules stored in the memory 120.
存储器120主要可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据终端设备100的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器120可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。The memory 120 can mainly include a storage program area and a storage data area. The storage program area may store an operating system, an application required for at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data) created according to the use of the terminal device 100. , phone book, etc.). Moreover, memory 120 can include high speed random access memory, and can also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
C.其他输入设备130C. Other input devices 130
其他输入设备130可用于接收输入的数字或字符信息,以及产生与终端设备100的用户设置以及功能控制有关的键信号输入。 Other input devices 130 can be used to receive input digital or character information, as well as to generate key signal inputs related to user settings and function control of terminal device 100.
具体地,其他输入设备130可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆、光鼠(光鼠是不显示可视输出的触摸敏感表面,或者是由触摸屏形成的触摸敏感表面的延伸)等中的一种或多种。其他输入设备130与I/O子系统170的其他输入设备控制器171相连接,在其他设备输入控制器171的控制下与处理器180进行信号交互。Specifically, other input devices 130 may include, but are not limited to, a physical keyboard, function keys (such as volume control buttons, switch buttons, etc.), trackballs, mice, joysticks, and light mice (the light mouse is not sensitive to display visual output). One or more of a surface, or an extension of a touch sensitive surface formed by a touch screen. Other input devices 130 are coupled to other input device controllers 171 of I/O subsystem 170 for signal interaction with processor 180 under the control of other device input controllers 171.
D.显示屏140 D. Display 140
显示屏140可以用于显示由用户输入的信息或提供给用户的信息以及终端设备100的各种菜单,还可以接受用户输入。The display screen 140 can be used to display information input by the user or information provided to the user as well as various menus of the terminal device 100, and can also accept user input.
具体地,显示屏140可包括显示面板141,以及触控面板142。其中显示面板141可以采用液晶显示器(liquid crystal display,LCD)、有机发光二极管(organic light-emitting diode,OLED)等形式来配置显示面板141。触控面板142,也称为触摸屏、触敏屏等,可收集用户在其上或附近的接触或者非接触操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板142上或在触控面板142附近的操作,也可以包括体感操作;该操作包括单点控制操作、多点控制操作等操作类型。),并根据预先设定的程式驱动相应的连接装置。Specifically, the display screen 140 may include a display panel 141 and a touch panel 142. The display panel 141 can be configured by using a liquid crystal display (LCD), an organic light-emitting diode (OLED), or the like. The touch panel 142, also referred to as a touch screen, a touch sensitive screen, etc., can collect contact or non-contact operations on or near the user (eg, the user uses any suitable object or accessory such as a finger, a stylus, etc. on the touch panel 142. Or the operation in the vicinity of the touch panel 142 may also include a somatosensory operation; the operation includes a single-point control operation, a multi-point control operation, and the like, and drives the corresponding connection device according to a preset program.
可选地,触控面板142可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位、姿势,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成处理器能够处理的信息,再送给处理器180,并能接收处理器180发来的命令并加以执行。此外,还可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板142,也可以采用未来发展的任何技术实现触控面板142。Alternatively, the touch panel 142 may include two parts of a touch detection device and a touch controller. Wherein, the touch detection device detects the touch orientation and posture of the user, and detects a signal brought by the touch operation, and transmits a signal to the touch controller; the touch controller receives the touch information from the touch detection device, and converts the signal into a processor. The processed information is sent to the processor 180 and can receive commands from the processor 180 and execute them. In addition, the touch panel 142 can be implemented by using various types such as resistive, capacitive, infrared, and surface acoustic waves, and the touch panel 142 can be implemented by any technology developed in the future.
进一步地,触控面板142可覆盖显示面板141,用户可以根据显示面板141显示的内容(该显示内容包括但不限于软键盘、虚拟鼠标、虚拟按键、图标等等),在显示面板141上覆盖的触控面板142上或者附近进行操作,触控面板142检测到在其上或附近的操作后,通过I/O子系统170传送给处理器180以确定用户输入,随后处理器180根据用户输入通过I/O子系统170在显示面板141上提供相应的视觉输出。Further, the touch panel 142 can cover the display panel 141, and the user can cover the display panel 141 according to the content displayed by the display panel 141, including but not limited to a soft keyboard, a virtual mouse, a virtual button, an icon, and the like. Operation on or near the touch panel 142, after detecting the operation on or near it, the touch panel 142 transmits to the processor 180 through the I/O subsystem 170 to determine user input, and then the processor 180 inputs according to the user. A corresponding visual output is provided on display panel 141 by I/O subsystem 170.
应理解,图1中触控面板142与显示面板141是作为两个独立的部件来实现终端设备100的输入和输入功能,但是在某些可能的实施例中,可以将触控面板142与显示面板141集成而实现终端设备100的输入和输出功能。It should be understood that the touch panel 142 and the display panel 141 in FIG. 1 are two independent components to implement the input and input functions of the terminal device 100, but in some possible embodiments, the touch panel 142 and the display may be The panel 141 is integrated to implement input and output functions of the terminal device 100.
E.传感器150 E. Sensor 150
终端设备100还可包括至少一种传感器150,比如光传感器、运动传感器以及其他传感器。The terminal device 100 may also include at least one type of sensor 150, such as a light sensor, a motion sensor, and other sensors.
具体地,光传感器可以包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板141的亮度,接近传感器可在终端设备100移动到耳边时,关闭显示面板141和/或背光。作为运动传感器的一种,加速计传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别终端设备姿态的应用(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等。Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 141 according to the brightness of the ambient light, and the proximity sensor may close the display panel 141 when the terminal device 100 moves to the ear. And / or backlight. As a kind of motion sensor, the accelerometer sensor can detect the acceleration of each direction (usually three axes), and the magnitude and direction of gravity can be detected at rest. It can be used to identify the attitude of the terminal device (such as horizontal and vertical screen switching, Related games, magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tapping).
此外,终端设备100还可以配置陀螺仪、气压计、湿度计、温度计、红外线传感器等其他传感器,此处不做具体的描述。In addition, the terminal device 100 can also configure other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, an infrared sensor, and the like, and no specific description is made here.
F.音频电路160、扬声器161、麦克风162 F. Audio circuit 160, speaker 161, microphone 162
音频电路160、扬声器161,麦克风162可提供用户与终端设备100之间的音频接口。音频电路160可将接收到的音频数据转换后的信号,传输到扬声器161,由扬声器161转换为声音信号输出;另一方面,麦克风162将收集的声音信号转换为信号,由音频电路160接收后转换为音频数据,再将音频数据输出至RF电路108以发送给比如另一终端设备,或者将音频数据输出至存储器120以便进一步处理。The audio circuit 160, the speaker 161, and the microphone 162 can provide an audio interface between the user and the terminal device 100. The audio circuit 160 can transmit the converted audio data to the speaker 161 for conversion to the sound signal output by the speaker 161; on the other hand, the microphone 162 converts the collected sound signal into a signal, which is received by the audio circuit 160. The audio data is converted to audio data, which is then output to the RF circuit 108 for transmission to, for example, another terminal device, or the audio data is output to the memory 120 for further processing.
G.输入/输出(input/output,I/O)子系统170G. Input/output (I/O) subsystem 170
I/O子系统170可以是用来控制输入输出的外部设备。其中,I/O子系统170可以包括其他设备输入控制器171、传感器控制器172、显示控制器173。The I/O subsystem 170 can be an external device for controlling input and output. The I/O subsystem 170 can include other device input controllers 171, sensor controllers 172, and display controllers 173.
可选的,一个或多个其他输入控制设备控制器171可以从其他输入设备130接收信号和/或者向其他输入设备130发送信号,其他输入设备130可以包括物理按钮(按压按钮、摇臂按钮等)、拨号盘、滑动开关、操纵杆、点击滚轮、光鼠(光鼠是不显示可视输出的触摸敏感表面,或者是由触摸屏形成的触摸敏感表面的延伸)。Alternatively, one or more other input control device controllers 171 may receive signals from other input devices 130 and/or send signals to other input devices 130. Other input devices 130 may include physical buttons (press buttons, rocker buttons, etc.) ), dial, slide switch, joystick, click wheel, light mouse (light mouse is a touch-sensitive surface that does not display visual output, or an extension of a touch-sensitive surface formed by a touch screen).
值得说明的是,其他输入控制设备控制器171可以与任一个或者多个上述设备连接。It is worth noting that other input control device controllers 171 can be connected to any one or more of the above devices.
I/O子系统170中的显示控制器173从显示屏140接收信号和/或者向显示屏140发送信号。显示屏140检测到用户输入后,显示控制器173可以将检测到的用户输入转换为与显示在显示屏140上的用户界面对象的交互,即实现人机交互。传感器控制器172可以从一个或者多个传感器150接收信号和/或者向一个或者多个传感器150发送信号。 Display controller 173 in I/O subsystem 170 receives signals from display 140 and/or transmits signals to display 140. After the display 140 detects the user input, the display controller 173 can convert the detected user input into an interaction with the user interface object displayed on the display screen 140, ie, implement human-computer interaction. Sensor controller 172 can receive signals from one or more sensors 150 and/or send signals to one or more sensors 150.
H.处理器180 H. Processor 180
处理器180是终端设备100的控制中心,利用各种接口和线路连接整个终端设备的各个部分,通过运行或执行存储在存储器120内的软件程序和/或模块,以及调用存储在存储器120内的数据,执行终端设备100的各种功能和处理数据,从而对终端设备进行整体监控。可选的,处理器180可包括一个或多个处理单元;优选的,处理器180可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到 处理器180中。The processor 180 is a control center of the terminal device 100 that connects various portions of the entire terminal device using various interfaces and lines, by running or executing software programs and/or modules stored in the memory 120, and recalling stored in the memory 120. The data performs various functions and processing data of the terminal device 100, thereby performing overall monitoring of the terminal device. Optionally, the processor 180 may include one or more processing units; preferably, the processor 180 may integrate an application processor and a modem processor, where the application processor mainly processes an operating system, a user interface, an application, and the like. The modem processor primarily handles wireless communications. It will be appreciated that the above described modem processor may also not be integrated into the processor 180.
终端设备100还包括给各个部件供电的电源190(比如电池),优选的,电源190可以通过电源管理系统与处理器180逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗等功能。The terminal device 100 further includes a power source 190 (such as a battery) for supplying power to the various components. Preferably, the power source 190 can be logically connected to the processor 180 through the power management system to manage functions such as charging, discharging, and power consumption through the power management system. .
尽管未示出,终端设备100还可以包括摄像头、蓝牙模块等,在此不再赘述。Although not shown, the terminal device 100 may further include a camera, a Bluetooth module, and the like, and details are not described herein again.
应理解,图1中示出的该终端设备结构并不构成对该终端设备的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。It should be understood that the terminal device structure shown in FIG. 1 does not constitute a limitation on the terminal device, and may include more or less components than those illustrated, or combine some components, or split some components, or Different parts are arranged.
图2是本申请实施例的用户运动距离的获取方法的示意性流程图。图2的方法可以应用于上述终端设备100中。FIG. 2 is a schematic flowchart of a method for acquiring a user's motion distance according to an embodiment of the present application. The method of FIG. 2 can be applied to the above-described terminal device 100.
图2的方法可以包括步骤210-230,下面分别对步骤210-230进行详细描述。The method of FIG. 2 may include steps 210-230, which are described in detail below.
在210中,确定用户当前运动的步频。At 210, the step frequency of the user's current motion is determined.
其中,步频可以表示为用户脚步的频率。Among them, the step frequency can be expressed as the frequency of the user's footsteps.
可选地,终端设备可以通过获取该用户的当前运动数据,然后根据当前运动数据确定当前运动的步频。Optionally, the terminal device may determine the current motion of the step by using the current motion data of the user and then determining the current motion.
其中,当前运动数据可以包括当前运动时间和当前运动步数。也就是说,可以根据当前运动时间和当前运动步数,确定当前运动的步频。The current motion data may include a current exercise time and a current motion step number. That is to say, the step frequency of the current motion can be determined according to the current exercise time and the current number of motion steps.
具体而言,步频可以表示为当前运动步数与当前运动时间的比值。Specifically, the step frequency can be expressed as the ratio of the current number of motion steps to the current exercise time.
例如,该用户2分钟内的步数为300步,则用户的步频为300步/2分钟=150步/分钟。For example, if the user has 300 steps in 2 minutes, the user's step frequency is 300 steps / 2 minutes = 150 steps / minute.
再例如,终端设备可以周期性地确定该用户当前运动的步频。As another example, the terminal device can periodically determine the pitch of the current motion of the user.
示例性地,令5秒为一个周期,则可以将用户的2分钟运动时间分为24个周期,分别确定该用户在每5秒内的步频。具体地,该用户在0到5秒的时间内步数为12,在5到10秒的时间内步数为15,则可以得到该用户在0到5秒的时间内步频为144步/分钟,在5到10秒的时间内步频为180步/分钟,以此类推。Illustratively, letting 5 seconds be a cycle, the user's 2-minute exercise time can be divided into 24 cycles, and the user's step frequency is determined every 5 seconds. Specifically, the user has 12 steps in a period of 0 to 5 seconds and a step of 15 in a period of 5 to 10 seconds, so that the user can obtain a step frequency of 144 steps in a period of 0 to 5 seconds. Minutes, the step frequency is 180 steps/minute in 5 to 10 seconds, and so on.
可选地,终端设备可以使用传感器(例如,上述传感器150),比如加速计传感器,得到用户当前运动步数。Alternatively, the terminal device may use a sensor (eg, the sensor 150 described above), such as an accelerometer sensor, to obtain the current number of motion steps of the user.
可选地,当用户选择“室内跑”场景时,终端设备可以基于跑步机确定的用户的当前运动步数,获取到该用户的当前运动步数。Optionally, when the user selects the “indoor running” scenario, the terminal device may acquire the current number of motion steps of the user based on the current motion step of the user determined by the treadmill.
例如,跑步机可以将确定的用户的当前运动步数发送给终端设备,从而终端设备可以获取用户的当前运动步数,并且可以将该步数显示在用户界面(user interface,UI)(例如,上述显示屏140)上。For example, the treadmill can transmit the determined current number of motion steps of the user to the terminal device, so that the terminal device can acquire the current number of motion steps of the user, and can display the number of steps in a user interface (UI) (for example, Above the display screen 140).
作为示例而非限定,跑步机可以通过蓝牙、红外等传输方式将用户的当前运动步数发送给终端设备。By way of example and not limitation, the treadmill may transmit the current number of motion steps of the user to the terminal device through a transmission method such as Bluetooth or infrared.
再例如,用户可以将跑步机显示的当前运动步数手动输入到终端设备中,这样,终端设备可以获取到用户的当前运动步数。For another example, the user can manually input the current number of motion steps displayed by the treadmill into the terminal device, so that the terminal device can obtain the current number of motion steps of the user.
再例如,用户可以将跑步机显示的有当前运动步数的界面进行拍照,终端设备通过扫描照片,以一定的方式可以获得当前运动步数。For another example, the user can take a picture of the current motion step displayed by the treadmill, and the terminal device can obtain the current number of motion steps in a certain manner by scanning the photo.
再例如,用户可以通过语音将跑步机显示的当前运动步数,输入给终端设备,终端设备识别出语音内容后,可以获取到当前运动步数。For another example, the user can input the current number of motion steps displayed by the treadmill to the terminal device by voice, and after the terminal device recognizes the voice content, the current number of motion steps can be obtained.
可选地,该终端设备可以根据其他设备获取到用户的当前运动时间。Optionally, the terminal device may acquire the current motion time of the user according to other devices.
例如,若其他设备为用户佩戴的手表,用户可以根据手表显示的时间向终端设备输入指令,该指令用于指示该用户的当前运动时间。For example, if the other device is a watch worn by the user, the user can input an instruction to the terminal device according to the time displayed by the watch, and the instruction is used to indicate the current exercise time of the user.
再例如,若其他设备为其他终端设备,其他终端设备可以向该终端设备发送携带用户当前运动时间的信息,该终端设备接收到信息后,可以获取到用户的当前运动时间。For another example, if the other device is another terminal device, the other terminal device may send information to the terminal device that carries the current motion time of the user. After receiving the information, the terminal device may obtain the current motion time of the user.
再例如,若其他设备为跑步机,终端设备获取用户当前运动时间的具体方式可以参照获取当前运动步数的方式,此处不再赘述。For example, if the other device is a treadmill, the specific manner in which the terminal device obtains the current motion time of the user may refer to the manner of obtaining the current number of motion steps, and details are not described herein again.
可选地,终端设备可以根据记录的用户运动时间直接获取用户的当前运动时间。Optionally, the terminal device can directly obtain the current motion time of the user according to the recorded user motion time.
需要说明的是,本申请实施例中的终端设备上安装有运动APP。It should be noted that the mobile APP is installed on the terminal device in the embodiment of the present application.
上述技术方案,在用户的运动过程中,只有运动的时间和步数可以直接得到,且得到的运动时间和步数误差较小,因此,根据运动时间和步数确定的步频误差也较小,接近用户的实际步频。In the above technical solution, only the time and the number of steps of the motion can be directly obtained during the movement of the user, and the obtained motion time and the step number error are small, and therefore, the step frequency error determined according to the motion time and the number of steps is also small. , close to the user's actual step frequency.
在220中,基于当前运动的步频,确定该用户当前运动的第一运动距离。At 220, a first motion distance of the user's current motion is determined based on the pitch of the current motion.
在一种实现方式中,终端设备可以基于当前运动的步频,通过校准函数确定当前运动的第一运动距离。In one implementation, the terminal device may determine the first motion distance of the current motion through the calibration function based on the pitch of the current motion.
可选地,校准函数可以通过该用户多次运动的样本数据训练得到。Alternatively, the calibration function can be trained by sample data of the user's multiple motions.
其中,每次运动的样本数据可以包括该用户第一运动的步频、第一运动的计算运动距离以及第一运动的实际距离。The sample data of each motion may include a step frequency of the first motion of the user, a calculated motion distance of the first motion, and an actual distance of the first motion.
在一种可能的实施例中,终端设备可以根据获取到的该用户第一运动的步频、第一运动的计算运动距离以及第一运动的实际距离,生成校准函数。In a possible embodiment, the terminal device may generate a calibration function according to the acquired pitch of the first motion of the user, the calculated motion distance of the first motion, and the actual distance of the first motion.
其中,校准函数是以步频为自变量的函数,第一运动可以为当前运动之前的N次运动,N为大于或等于1的整数。Wherein, the calibration function is a function of the step frequency as an independent variable, the first motion may be N times of motion before the current motion, and N is an integer greater than or equal to 1.
换句话说,第一运动可以为当前运动之前的一次运动,也可以为当前运动之前的多次运动。应理解,该多次运动可以为连续的多次运动,也可以不连续。当然,第一运动可以与当前运动连续,也可以与当前运动不连续。In other words, the first motion may be one motion before the current motion, or may be multiple motions before the current motion. It should be understood that the multiple movements may be continuous multiple movements or discontinuous. Of course, the first motion may be continuous with the current motion or may be discontinuous with the current motion.
例如,该用户之前运动了5次,当前运动是第6次运动。当第一运动为当前运动之前的一次运动时,第一运动可以是前5次运动的任意一次运动;当第一运动为当前运动之前的三次运动时,第一运动可以是前5次运动的任意三次运动,如第1次运动、第2次运动以及第4次运动。For example, the user has been exercising 5 times before and the current exercise is the 6th exercise. When the first motion is a motion before the current motion, the first motion may be any one of the first 5 motions; when the first motion is the third motion before the current motion, the first motion may be the first 5 motions Any three movements, such as the first movement, the second movement, and the fourth movement.
可选地,该用户的实际距离可以为跑步机上的运动距离。Alternatively, the actual distance of the user may be the distance traveled on the treadmill.
可选地,该用户的实际距离可以为通过全球定位系统(global positioning system,GPS)得到的运动距离。Alternatively, the actual distance of the user may be a moving distance obtained by a global positioning system (GPS).
可选地,终端设备可以使用回归算法训练校准函数。Alternatively, the terminal device can train the calibration function using a regression algorithm.
其中,回归算法可以有很多种,本申请实施例不作具体限定。示例性地,回归算法可以包括但不限于最小二乘法、逻辑回归(logistic regression,LR)等。There may be many types of regression algorithms, which are not specifically limited in the embodiment of the present application. Illustratively, regression algorithms may include, but are not limited to, least squares, logistic regression (LR), and the like.
作为一种示例,终端设备可以通过样本数据中的该用户每次运动的第一运动的实际距离和第一运动的计算运动距离之间的比值,以及第一运动的步频,训练校准函数。即:As an example, the terminal device may train the calibration function by the ratio between the actual distance of the first motion of the user per movement in the sample data and the calculated motion distance of the first motion, and the pitch of the first motion. which is:
实际距离/计算运动距离=f 1(第一运动的步频)      (1) Actual distance / calculated motion distance = f 1 (step frequency of the first motion) (1)
其中,函数f 1表示校准函数。 Among them, the function f 1 represents a calibration function.
作为一种示例,终端设备可以通过样本数据中的该用户每次运动的第一运动的实际步 幅和第一运动的计算步幅之间的比值,以及第一运动的步频,训练校准函数。即:As an example, the terminal device may train the calibration function by the ratio between the actual stride of the first motion of the user and the calculated stride of the first motion in the sample data, and the pitch of the first motion. . which is:
实际步幅/计算步幅=f 2(第一运动的步频)        (2) Actual stride / calculated stride = f 2 (step frequency of the first motion) (2)
其中,函数f 2可以表示校准函数。 Among them, the function f 2 can represent a calibration function.
需要说明的是,第一运动的实际步幅可以为第一运动的实际距离与运动步数的比值,第一运动的计算步幅可以为第一运动的计算运动距离与运动步数的比值。可以看到,该用户每次运动的第一运动的实际步幅和第一运动的计算步幅之间的比值,本质上也是每次运动的第一运动的实际距离和第一运动的计算运动距离之间的比值。It should be noted that the actual stride of the first motion may be the ratio of the actual distance of the first motion to the number of motion steps, and the calculated stride of the first motion may be the ratio of the calculated motion distance of the first motion to the number of motion steps. It can be seen that the ratio between the actual stride of the first motion of the user and the calculated stride of the first motion is essentially the actual distance of the first motion of each motion and the calculated motion of the first motion. The ratio between the distances.
可选地,终端设备可以根据预设算法计算得到该用户的第一运动的计算运动距离。Optionally, the terminal device may calculate a calculated motion distance of the first motion of the user according to a preset algorithm.
可选地,预设算法用于终端设备根据检测到的运动步数和用户的步幅参数计算运动距离。Optionally, the preset algorithm is used by the terminal device to calculate the motion distance according to the detected motion step number and the user's stride parameter.
可选地,预设算法可以如公式(3)和公式(4)所示:Alternatively, the preset algorithm can be as shown in equations (3) and (4):
运动距离=运动步数*步幅          (3)Movement distance = number of movement steps * stride (3)
步幅=个人参数*第一系数           (4)Stride = personal parameters * first coefficient (4)
其中,个人参数可以包括用户的身高、体重、性别等。The personal parameters may include the user's height, weight, gender, and the like.
应理解,本申请实施例对步幅的名称并不限定,也就是说,步幅也可以表述为其他名称。例如,步幅也可以称为步长。It should be understood that the name of the stride is not limited in the embodiment of the present application, that is, the stride may also be expressed as another name. For example, a stride can also be called a step size.
不同运动APP的第一系数可能不同。可选地,有些运动APP的第一系数是固定值,如0.42;可选地,有些运动APP针对不同的个人参数,如身高,有不同的第一系数。The first coefficients of different sports APPs may be different. Optionally, the first coefficient of some sports APP is a fixed value, such as 0.42; alternatively, some sports apps have different first coefficients for different personal parameters, such as height.
本申请实施例中,预设算法计算的运动距离也可以称为通用估算距离,公式(1)和公式(2)也可以称为通用公式,本申请实施例对此不作具体限定。In the embodiment of the present application, the motion distance calculated by the preset algorithm may also be referred to as a general estimation distance. The formula (1) and the formula (2) may also be referred to as a general formula, which is not specifically limited in the embodiment of the present application.
在一种可能的实施例中,终端设备可以预设多个校准函数。其中,该多个校准函数与多个步频对应。In a possible embodiment, the terminal device can preset a plurality of calibration functions. Wherein, the plurality of calibration functions correspond to a plurality of step frequencies.
可选地,多个校准函数可以与多个步频一一对应。Alternatively, a plurality of calibration functions may be in one-to-one correspondence with a plurality of step frequencies.
例如,校准函数1对应于步频1,校准函数2对应于步频2。若终端设备确定该用户的步频为步频1,则可以使用校准函数1校准用户当前运动的第一运动距离;若终端设备确定该用户的步频为步频2,则可以使用校准函数2校准用户当前运动的第一运动距离。For example, calibration function 1 corresponds to step frequency 1, and calibration function 2 corresponds to step frequency 2. If the terminal device determines that the user's step frequency is the step frequency 1, the calibration function 1 may be used to calibrate the first motion distance of the user's current motion; if the terminal device determines that the user's step frequency is the step frequency 2, the calibration function 2 may be used. Calibrate the first motion distance of the user's current motion.
可选地,一个校准函数可以对应于多个步频。其中,该多个步频满足该一个校准函数对应的预设范围。Alternatively, one calibration function may correspond to multiple step frequencies. The plurality of step frequencies satisfy a preset range corresponding to the one calibration function.
例如,校准函数1对应的步频为步频100步/分钟~120步/分钟,若终端设备确定该用户的步频为100步/分钟,则可以使用校准函数1校准用户当前运动的第一运动距离;若终端设备确定该用户的步频为115步/分钟,则可以使用校准函数1校准用户当前运动的第一运动距离。For example, the calibration function 1 corresponds to a step frequency of 100 steps/minute to 120 steps/minute. If the terminal device determines that the user's step frequency is 100 steps/minute, the calibration function 1 can be used to calibrate the user's current motion. The distance of movement; if the terminal device determines that the user's step frequency is 115 steps/minute, the calibration function 1 can be used to calibrate the first motion distance of the user's current motion.
可选地,终端设备可以根据校准函数和当前运动的步频,得到校准系数,利用校准系数和预设算法,可以得到当前运动的第一运动距离。Optionally, the terminal device may obtain a calibration coefficient according to the calibration function and the step frequency of the current motion, and the first motion distance of the current motion may be obtained by using the calibration coefficient and the preset algorithm.
作为一种示例,终端设备可以根据预设算法,得到当前运动的第二运动距离,然后再基于校准系数对第二运动距离进行校准,最终可以得到该用户当前运动的第一运动距离。As an example, the terminal device may obtain a second motion distance of the current motion according to a preset algorithm, and then calibrate the second motion distance based on the calibration coefficient, and finally obtain a first motion distance of the current motion of the user.
可选地,这种实现方式可以用公式(5)表示:Alternatively, this implementation can be expressed by equation (5):
第一运动距离=第二运动距离*f(步频)         (5)First motion distance = second motion distance *f (step frequency) (5)
其中,公式(5)也可以称为个性化公式,函数f表示校准函数,函数f可以为f 1或 f 2,本申请实施例对此不作限定。 The formula (5) may also be referred to as a personalization formula, and the function f may be a calibration function. The function f may be f 1 or f 2 , which is not limited by the embodiment of the present application.
其中,第二运动距离可以根据公式(3)和公式(4)得到。Wherein, the second moving distance can be obtained according to formula (3) and formula (4).
应理解,在本申请实施例中,“第一”和“第二”仅仅为了区分不同的对象,但并不对本申请实施例的范围构成限制。It should be understood that in the embodiments of the present application, the “first” and “second” are only used to distinguish different objects, but do not limit the scope of the embodiments of the present application.
作为一种示例,终端设备可以利用校准系数,对预设算法中的参数进行校准,得到校准后的预设算法,再使用校准后的预设算法计算得到当前运动的第一运动距离。As an example, the terminal device may use the calibration coefficient to calibrate the parameters in the preset algorithm to obtain a calibrated preset algorithm, and then use the calibrated preset algorithm to calculate the first motion distance of the current motion.
可选地,该参数可以为用户的第二步幅。其中,第二步幅可以为公式(3)和公式(4)中的步幅。Optionally, the parameter can be the second step of the user. Among them, the second step can be the step size in formula (3) and formula (4).
可选地,终端设备可以将第二步幅与校准系数相乘,得到第一步幅,再将第一步幅与该用户的运动步数相乘,则可以得到第一运动距离。这种实现方式可以用公式(6)表示:Optionally, the terminal device may multiply the second step by the calibration coefficient to obtain the first step, and then multiply the first step by the number of motion steps of the user, to obtain the first motion distance. This implementation can be expressed by equation (6):
第一运动距离=第二步幅*f(步频)*运动步数          (6)First motion distance = second step *f (step frequency) * number of motion steps (6)
其中,公式(6)也可以称为个性化公式,函数f可以为f 1或f 2,本申请实施例对此不作限定。 The formula (6) may also be referred to as a personalization formula, and the function f may be f 1 or f 2 , which is not limited by the embodiment of the present application.
上述技术方案,校准函数得到的校准系数可以用于确定用户的运动距离,由于校准函数是通过用户多次运动的样本数据训练得到的,且训练校准函数的样本数据较多,这样使得训练得到的校准函数,以及通过校准函数得到的校准系数也比较准确。校准函数得到的校准系数用于确定运动距离,从而终端设备估算的运动距离的准确度也比较高。In the above technical solution, the calibration coefficient obtained by the calibration function can be used to determine the moving distance of the user. Since the calibration function is obtained by training the sample data of the user's multiple motions, and the sample data of the training calibration function is more, the training result is obtained. The calibration function and the calibration coefficients obtained by the calibration function are also accurate. The calibration coefficient obtained by the calibration function is used to determine the moving distance, so that the accuracy of the estimated moving distance of the terminal device is also relatively high.
在一种实现方式中,终端设备可以基于当前运动的步频,直接确定该用户当前运动的第一运动距离。In an implementation manner, the terminal device may directly determine the first motion distance of the current motion of the user based on the step frequency of the current motion.
可选地,终端设备可以基于当前运动的步频,通过一定的算法确定用户当前运动的第一运动距离。Optionally, the terminal device may determine, according to a step frequency of the current motion, a first motion distance of the current motion of the user by using a certain algorithm.
应理解,本申请实施例对该算法不作具体限定,任何可以基于步频确定第一运动距离的算法都涵盖在本申请的保护范围之内。It should be understood that the algorithm in this application does not specifically limit the algorithm, and any algorithm that can determine the first motion distance based on the step frequency is covered by the scope of the present application.
可选地,当前运动可以包括多个时段。Alternatively, the current motion may include multiple time periods.
其中,多个时段中的每个时段的步频相同。Wherein, each of the plurality of time periods has the same step frequency.
可选地,该多个时段中每个时段的长度可以相同。也就是说,可以将当前运动按周期分为多个时段。Alternatively, the length of each of the plurality of time periods may be the same. That is to say, the current motion can be divided into a plurality of time periods by cycle.
例如,可以令5秒为一个周期,则当前运动的每个时段都为5秒。则该用户在当前运动中的第一个时段的步频为120步/分钟,第二个时段的步频可以为150步/分钟,第三个时段的步频可以为150步/分钟,For example, you can make 5 seconds a cycle, and each time period of the current motion is 5 seconds. Then, the user's step frequency in the first period of the current motion is 120 steps/minute, the step frequency in the second period may be 150 steps/minute, and the step frequency in the third period may be 150 steps/minute.
此时,该多个时段中相邻的两个时段的步频可以相同,也可以不同。At this time, the step frequencies of the adjacent two of the plurality of time periods may be the same or different.
可选地,该多个时段中每个时段的长度可以不完全相同。此时,该多个时段中相邻的两个时段的步频可以不同。Optionally, the length of each of the plurality of time periods may not be identical. At this time, the pitches of the adjacent two of the plurality of time periods may be different.
例如,该用户在当前运动中0~5秒的时间内步频为150步/分钟,在5~15秒的时间内步频为175步/分钟,在15~23秒的时间内步频为160步/分钟,则可以将该用户当前运动的23秒分为三个时段:第一个时段为0~5秒,步频为150步/分钟;第二个时段为5~15秒,步频为175步/分钟;第三个时段为15~23秒,步频为160步/分钟。For example, the user has a step frequency of 150 steps/minute in the current motion for 0 to 5 seconds, a step frequency of 175 steps/minute in the period of 5 to 15 seconds, and a step frequency of 15 to 23 seconds. 160 steps / minute, the user can move the 23 seconds of the current movement into three periods: the first period is 0 to 5 seconds, the step frequency is 150 steps / minute; the second period is 5 to 15 seconds, step The frequency is 175 steps/minute; the third time period is 15 to 23 seconds, and the step frequency is 160 steps/minute.
此时,终端设备可以基于多个时段中的每个时段的步频,确定每个时段的运动距离,将多个时段的运动距离之和确定为该用户当前运动的第一运动距离。At this time, the terminal device may determine the motion distance of each time period based on the pitch frequency of each of the plurality of time periods, and determine the sum of the motion distances of the plurality of time periods as the first motion distance of the current motion of the user.
在一种可能的实施例中,终端设备可以基于多个时段中的每个时段的步频,通过校准函数得到各个时段的运动距离,再将各个时段的运动距离之和确定为第一运动距离。In a possible embodiment, the terminal device may obtain the motion distance of each time period by using a calibration function based on the pitch frequency of each of the plurality of time periods, and determine the sum of the motion distances of the respective time periods as the first motion distance. .
也就是说,终端设备可以根据校准函数和多个时段中的各个时段的步频,分别得到各个时段的校准系数,再根据各个时段的校准系数和预设算法,分别得到各个时段的运动距离,将各个时段的运动距离之和确定为第一运动距离。That is to say, the terminal device can obtain the calibration coefficients of the respective time periods according to the calibration function and the step frequency of each time period in the plurality of time periods, and then obtain the motion distances of the respective time periods according to the calibration coefficients of each time period and the preset algorithm, respectively. The sum of the moving distances of the respective periods is determined as the first moving distance.
可选地,终端设备可以利用各个时段的校准系数,直接对各个时段的第二运动距离进行校准,可以用公式(7)表示:Optionally, the terminal device can directly calibrate the second moving distance of each time period by using calibration coefficients of each time period, which can be expressed by formula (7):
L1=a 1*L2 1+a 2*L2 2+a 3*L2 3+……+a n*L2 n          (7) L1=a 1 *L2 1 +a 2 *L2 2 +a 3 *L2 3 +...+a n *L2 n (7)
其中,L1表示第一运动距离,a表示校准系数,L2表示第二运动距离,下标1表示第一个时段,下标2表示第二个时段,以此类推。Where L1 represents the first motion distance, a represents the calibration coefficient, L2 represents the second motion distance, subscript 1 represents the first time period, subscript 2 represents the second time period, and so on.
可选地,终端设备可以利用各个时段的校准系数,对各个时段的第二步幅进行校准,可以用公式(8)表示:Optionally, the terminal device may calibrate the second step of each time period by using calibration coefficients of respective time periods, which may be expressed by formula (8):
L1=a 1*F2 1*H 1+a 2*F2 2*H 2+a 3*F2 3*H 3+……+a n*F2 n*H n         (8) L1=a 1 *F2 1 *H 1 +a 2 *F2 2 *H 2 +a 3 *F2 3 *H 3 +...+a n *F2 n *H n (8)
其中,F2表示第二步幅,H表示该用户的运动步数。Where F2 represents the second step and H represents the number of motion steps of the user.
在一种可能的实施例中,终端设备可以基于用户在各个时段的步频,直接确定该用户在各个时段的运动距离,再将各个时段的运动距离逐步累加,从而可以得到该用户的第一运动距离。In a possible embodiment, the terminal device may directly determine the moving distance of the user in each time period based on the step frequency of the user in each time period, and then gradually increase the moving distance of each time period, thereby obtaining the first time of the user. Movement distance.
示例性地,令5秒为一个时段,终端设备可以每5秒计算一次该用户的步频,基于该步频确定出运动距离。该用户第一个时段的步频为144步/分钟,基于该步频确定用户在第一个时段运动了6.2米;第二个时段的步频为180步/分钟,基于该步频确定用户在第二个时段运动了7.8米;第三个时段的步频为160步/分钟,基于该步频确定用户在第三个时段运动了7米。若该用户共运动了15秒,则将三个周期的运动距离累加,就可以得到该用户的第一运动距离为21米。Illustratively, let 5 seconds be a time period, the terminal device can calculate the step frequency of the user every 5 seconds, and determine the motion distance based on the step frequency. The user's first time period has a step frequency of 144 steps/minute. Based on the step frequency, the user is determined to move 6.2 meters in the first time period; the second time period has a step frequency of 180 steps/minute, and the user is determined based on the step frequency. In the second period, the movement is 7.8 meters; the third period has a step frequency of 160 steps/minute, and based on the step frequency, it is determined that the user has exercised 7 meters in the third period. If the user has been exercising for a total of 15 seconds, the motion distance of the three cycles is accumulated, and the first motion distance of the user is 21 meters.
上述技术方案,由于在运动过程中,用户不可能完全是匀速运动,步频是有变化的,若用总运动时间和总运动步数来计算步频、再用此步频计算运动距离的话,计算出的用户的运动距离误差较大。而如果将当前运动分为多个时段,每个时段的步频相同,比如5秒为一个时段,一般情况下,可以认为5秒内的步频是不变的,再基于此步频,确定每个时段的运动距离,这样可以提高估算用户运动距离的准确率。In the above technical solution, since the user cannot completely move at a uniform speed during the movement, the pitch frequency is changed. If the total motion time and the total number of motion steps are used to calculate the pitch frequency, and then the pitch frequency is used to calculate the motion distance, The calculated user's motion distance error is large. If the current motion is divided into multiple time periods, the time frequency of each time period is the same, for example, 5 seconds is a time period. In general, it can be considered that the step frequency within 5 seconds is constant, and then based on the step frequency, it is determined. The distance of movement for each time period, which can improve the accuracy of estimating the distance of the user's movement.
可选地,终端设备还可以接收该用户输入的指令,其中,该指令用于指示用户当前运动的实际运动距离。Optionally, the terminal device may further receive an instruction input by the user, where the instruction is used to indicate an actual moving distance of the current motion of the user.
应理解,本申请实施例对用户输入指令的方式不作具体限定。作为一种可能的实施例,该指令可以指用户手动输入的指令。It should be understood that the manner in which the user inputs an instruction is not specifically limited in the embodiment of the present application. As a possible embodiment, the instruction may refer to an instruction manually input by a user.
示例性地,在用户结束运动后,终端设备可以通过显示屏(例如,上述显示屏140)显示出一个距离校准界面,用户可以根据实际运动距离,手动将第一运动距离校准为实际运动距离。Exemplarily, after the user finishes the motion, the terminal device can display a distance calibration interface through the display screen (for example, the display screen 140 described above), and the user can manually calibrate the first motion distance to the actual motion distance according to the actual motion distance.
例如,运动APP上显示的第一运动距离为7.5公里,跑步机上显示的实际运动距离为6公里,则用户可以在运动APP的距离校准界面上将该用户的运动距离校准为6公里。For example, if the first exercise distance displayed on the exercise APP is 7.5 kilometers and the actual exercise distance displayed on the treadmill is 6 kilometers, the user can calibrate the user's exercise distance to 6 kilometers on the distance calibration interface of the exercise APP.
作为一种可能的实施例,该指令可以指用户语音输入的指令。As a possible embodiment, the instruction may refer to an instruction of a user's voice input.
示例性地,在用户结束运动后,用户可以通过语音将跑步机上显示的实际运动距离输 入给终端设备。Illustratively, after the user has finished exercising, the user can input the actual distance of movement displayed on the treadmill to the terminal device by voice.
例如,用户结束运动后,运动APP上显示的第一运动距离为7.5公里,跑步机上显示的实际运动距离为6公里,用户可以向终端设备输入“实际运动距离6公里”的语音,在终端设备识别出该语音的内容后,可以将第一运动距离校准为6公里。For example, after the user finishes the exercise, the first movement distance displayed on the exercise APP is 7.5 kilometers, and the actual movement distance displayed on the treadmill is 6 kilometers, and the user can input the voice of “actual movement distance 6 kilometers” to the terminal device. After the content of the voice is recognized, the first motion distance can be calibrated to 6 kilometers.
可选地,用户可以直接在终端设备上输入指示实际运动距离的指令。Alternatively, the user can directly input an instruction indicating the actual moving distance directly on the terminal device.
可选地,用户可以向其它设备输入指示实际运动距离的指令,其它设备接收到该指令后,可以向该终端设备发送距离信息,该距离信息可以用于指示用户的实际运动距离。Optionally, the user may input an instruction indicating the actual moving distance to other devices. After receiving the instruction, the other device may send the distance information to the terminal device, and the distance information may be used to indicate the actual moving distance of the user.
应理解,本申请实施例中的具体的例子只是为了帮助本领域技术人员更好地理解本申请实施例,而非限制本申请实施例的范围。It should be understood that the specific examples in the embodiments of the present application are only intended to help those skilled in the art to better understand the embodiments of the present application.
可选地,终端设备还可以根据当前运动的实际运动距离,调整校准函数。Optionally, the terminal device can also adjust the calibration function according to the actual moving distance of the current motion.
在一种可能的实施例中,终端设备可以根据当前运动的步频、第一运动距离以及当前运动的实际运动距离,对校准函数进行调整,以得到调整后的校准函数。In a possible embodiment, the terminal device may adjust the calibration function according to the step frequency of the current motion, the first motion distance, and the actual motion distance of the current motion to obtain an adjusted calibration function.
其中,调整后的校准函数可以用于对下一次运动的计算距离进行校准,下一次的计算距离为使用预设算法计算得到的运动距离。The adjusted calibration function can be used to calibrate the calculated distance of the next motion, and the next calculated distance is the motion distance calculated using the preset algorithm.
可选地,终端设备可以根据用户在运动APP上输入的当前运动的实际运动距离,获取到该用户的实际运动距离。Optionally, the terminal device may obtain the actual moving distance of the user according to the actual moving distance of the current motion input by the user on the sports APP.
可选地,其它设备可以向终端设备发送用户当前运动的实际运动距离。Alternatively, other devices may transmit the actual moving distance of the user's current motion to the terminal device.
应理解,本申请实施例对其它设备以及其它设备向终端设备发送用户的实际运动距离的方式不作具体限定。It should be understood that the manner in which the other device and other devices send the actual moving distance of the user to the terminal device is not specifically limited.
比如,其它设备可以为跑步机、运动手环等,发送方式可以为蓝牙、红外或WIFI等。For example, other devices may be treadmills, sports bracelets, etc., and the sending method may be Bluetooth, infrared or WIFI.
具体地,当其它设备为跑步机时,跑步机可以通过蓝牙将用户的实际运动距离发送给终端设备,相应地,终端设备可以接收到跑步机发送的该用户的实际运动距离。Specifically, when the other device is a treadmill, the treadmill can transmit the actual moving distance of the user to the terminal device through Bluetooth, and accordingly, the terminal device can receive the actual moving distance of the user sent by the treadmill.
终端设备获取到用户当前运动的实际运动距离后,可以基于用户当前运动的实际运动距离、第一运动距离以及当前运动的步频,调整校准函数。After the terminal device obtains the actual moving distance of the current motion of the user, the calibration function may be adjusted based on the actual moving distance of the current motion of the user, the first moving distance, and the pitch of the current motion.
例如,运动APP上显示的第一运动距离为7.5公里,跑步机上显示的实际运动距离为6公里,则用户可以在运动APP的距离校准界面上将该用户的运动距离校准为6公里。则终端设备可以根据用户输入的6公里数据、获取到的用户当前运动的步频以及7.5公里数据,调整校准函数,从而可以得到调整后的校准函数,该调整后的校准函数可以用于在用户下一次运动时对计算距离进行校准。For example, if the first exercise distance displayed on the exercise APP is 7.5 kilometers and the actual exercise distance displayed on the treadmill is 6 kilometers, the user can calibrate the user's exercise distance to 6 kilometers on the distance calibration interface of the exercise APP. The terminal device can adjust the calibration function according to the 6 km data input by the user, the obtained step frequency of the current motion of the user, and the 7.5 km data, so that the adjusted calibration function can be obtained, and the adjusted calibration function can be used in the user. Calibrate the calculated distance for the next exercise.
可选地,终端设备也可以周期性地调整校准函数。Alternatively, the terminal device can also periodically adjust the calibration function.
例如,终端设备可以基于用户本次运动第一个周期的实际运动距离、第一运动距离以及步频调整校准函数,然后终端设备可以利用调整后的校准函数估算用户本次运动第二个周期的运动距离,在第二个周期调整的校准函数可以用于估算第三个周期的运动距离。For example, the terminal device may adjust the calibration function based on the actual motion distance, the first motion distance, and the pitch frequency of the first period of the user's current motion, and then the terminal device may use the adjusted calibration function to estimate the second period of the user's current motion. The motion distance, the calibration function adjusted in the second period can be used to estimate the motion distance of the third period.
需要说明的是,在以下三种情况下终端设备可能不会训练或调整校准函数:It should be noted that the terminal device may not train or adjust the calibration function in the following three cases:
(1)用户运动和校准的次数太少,此时终端设备可能不会训练校准函数。(1) The number of user movements and calibrations is too small, and the terminal device may not train the calibration function at this time.
(2)用户输入的实际运动距离的数据异常,比如用户有意无意输入错误,如实际运动了5公里但手动输入10公里,此时终端设备可能不会训练或调整校准函数。(2) The data of the actual moving distance input by the user is abnormal. For example, the user intentionally or unintentionally inputs an error. For example, if the actual movement is 5 kilometers but the manual input is 10 kilometers, the terminal device may not train or adjust the calibration function.
(3)当前数据无明显异常,但全部数据的回归误差太大,此时终端设备可能不会调整校准函数。(3) There is no obvious abnormality in the current data, but the regression error of all the data is too large, and the terminal device may not adjust the calibration function at this time.
上述技术方案,终端设备可以将用户当前运动的实际运动距离输入到校准函数中,这样使得训练校准函数的样本数量更多,训练出来的校准函数就更加准确,从而通过校准函数确定的第一运动距离更加接近用户的实际运动距离。In the above technical solution, the terminal device can input the actual moving distance of the current motion of the user into the calibration function, so that the number of samples of the training calibration function is more, and the trained calibration function is more accurate, so that the first motion determined by the calibration function is performed. The distance is closer to the actual distance traveled by the user.
在230中,输出第一运动距离。At 230, a first motion distance is output.
可选地,终端设备可以在UI界面显示用户的第一运动距离。Optionally, the terminal device may display the first moving distance of the user on the UI interface.
可选地,终端设备可以使用语音播报用户的第一运动距离。Alternatively, the terminal device can use the voice to broadcast the first moving distance of the user.
可选地,该终端设备可以通过一定的方式,将第一运动距离发送给其它设备,用户可以通过其它设备获取到第一运动距离。Optionally, the terminal device may send the first motion distance to other devices in a certain manner, and the user may acquire the first motion distance by using other devices.
用户获取到第一运动距离后,可以根据第一运动距离执行一系列操作。After the user obtains the first motion distance, a series of operations may be performed according to the first motion distance.
可选地,用户可以保存当前的第一运动距离,结合之前保存的第一运动距离,调整运动计划或饮食计划。Alternatively, the user can save the current first exercise distance, and adjust the exercise plan or diet plan in combination with the previously saved first exercise distance.
可选地,用户可以在网络上发布本次运动的第一运动距离。Alternatively, the user can publish the first motion distance of the exercise on the network.
应理解,本申请实施例的各种实施方式既可以单独实施,也可以结合实施,本申请实施例对此并不限定。It should be understood that the various embodiments of the embodiments of the present application may be implemented separately or in combination, and the embodiments of the present application are not limited thereto.
例如,终端设备既可以在UI界面显示用户的第一运动距离,同时也可以语音播报该用户的第一运动距离。For example, the terminal device can display the first moving distance of the user on the UI interface, and can also broadcast the first moving distance of the user.
图3是可以应用本申请实施例的一种流程图。下面将结合图3对本申请实施例的一种实现过程进行描述。FIG. 3 is a flow chart of an embodiment of the present application. An implementation process of an embodiment of the present application will be described below with reference to FIG. 3.
具体而言,当用户准备跑步时,可以在运动APP和跑步机上分别点击开始按钮,运动APP和跑步机开始计算该用户的运动距离。Specifically, when the user is ready to run, the start button can be clicked on the exercise APP and the treadmill, respectively, and the exercise APP and the treadmill begin to calculate the distance of the user's exercise.
例如,参见图4,用户可以打开运动APP,点击“室内跑”,在出现室内跑界面后,点击开始按钮,用户开始跑步,运动APP开始计算用户的运动距离。For example, referring to FIG. 4, the user can open the sports app, click "indoor running", after the indoor running interface appears, click the start button, the user starts running, and the sports APP starts to calculate the user's moving distance.
运动APP可以估算用户各个时段的运动距离,在估算运动距离的过程中,个性化公式可以先调用预设算法,预设算法根据公式(3)和公式(4)计算出第二运动距离。在预设算法将第二运动距离计算出之后,可以将第二运动距离反馈给个性化公式,个性化公式利用训练好的校准函数对第二运动距离进行调整。The motion APP can estimate the moving distance of the user in each time period. In the process of estimating the moving distance, the personalized formula can first call a preset algorithm, and the preset algorithm calculates the second moving distance according to formula (3) and formula (4). After the preset algorithm calculates the second motion distance, the second motion distance may be fed back to the personalized formula, and the personalized formula uses the trained calibration function to adjust the second motion distance.
具体地,可以根据各个时段的运动时间和运动步数,得到各个时段的步频。然后可以将各个时段的步频输入校准函数中,得到校准系数,再将第二运动距离与校准系数相乘,可以得到各个时段调整后的运动距离。Specifically, the step frequency of each time period can be obtained according to the motion time and the number of motion steps of each time period. Then, the step frequency of each time period can be input into the calibration function to obtain a calibration coefficient, and then the second motion distance is multiplied by the calibration coefficient, and the adjusted motion distance of each time period can be obtained.
个性化公式将各个时段调整后的运动距离反馈给主控流程,主控流程可以将得到的各个时段的调整后的运动距离逐步累加,从而可以得到第一运动距离,并将第一运动距离显示在运动APP的UI界面上。The personalized formula feeds the adjusted moving distance of each time period to the main control flow, and the main control process can gradually accumulate the adjusted moving distances of the obtained time periods, thereby obtaining the first moving distance and displaying the first moving distance. On the UI interface of the sports app.
在用户要结束跑步时,可以点击跑步机和运动APP上的结束按钮。运动APP的UI界面可以显示出该用户本次运动的运动数据,可以包括但不限于第一运动距离、运动时间和平均配速等。When the user wants to end the run, he can click on the end button on the treadmill and sports app. The UI interface of the sports APP may display the motion data of the user's current motion, which may include, but is not limited to, the first motion distance, the exercise time, and the average pace.
如图5中的左图所示,运动APP的UI界面显示该用户本次运动了6.01公里,共运动了32分钟30秒的时间,平均运动一公里耗时5分钟24秒。As shown in the left diagram of FIG. 5, the UI interface of the sports APP shows that the user has exercised 6.01 kilometers for a total of 32 minutes and 30 seconds, and the average exercise time of one kilometer takes 5 minutes and 24 seconds.
同时运动APP可以出现校准距离的界面,用户可以手动校准第一运动距离。At the same time, the exercise APP can display an interface for calibrating the distance, and the user can manually calibrate the first movement distance.
继续参见图5中的左图,可选地,用户可以在该界面点击距离校准按钮,会出现如图 5中的右图所示的距离校准界面,用户可以根据跑步机上显示的实际运动距离对运动APP上的运动距离进行校准。如图5中,运动APP的UI界面显示该用户本次运动了6.01公里,但跑步机上显示用户运动了6.1公里,则用户可以在距离校准界面选择6.1公里,然后点击确认按钮。Continuing to refer to the left diagram in FIG. 5, optionally, the user can click the distance calibration button on the interface, and the distance calibration interface as shown in the right figure of FIG. 5 appears, and the user can according to the actual distance of movement displayed on the treadmill. The distance of motion on the sports APP is calibrated. As shown in Fig. 5, the UI interface of the sports APP shows that the user has exercised 6.01 km, but the treadmill shows that the user has exercised 6.1 km, then the user can select 6.1 km in the distance calibration interface, and then click the confirm button.
终端设备最终可以显示用户运动了6.1公里的界面。The terminal device can finally display the user's 6.1 km interface.
本申请实施例,在用户的运动过程中,由于步频的变化可以直接影响运动距离,比如在其它因素一定的条件下,步频越大,运动距离越长;步频越小,运动距离越短,并且终端设备确定的步频非常接近用户的实际步频。因此,基于步频估算的运动距离和实际距离相比,误差较小,从而可以提高终端设备估算用户运动距离的准确度。In the embodiment of the present application, during the movement of the user, the movement distance can be directly affected by the change of the step frequency. For example, under other conditions, the step frequency is larger, and the motion distance is longer; the smaller the step frequency, the more the motion distance is. Short, and the step frequency determined by the terminal device is very close to the actual step frequency of the user. Therefore, the motion distance based on the step frequency estimation is smaller than the actual distance, so that the accuracy of the terminal device estimating the user's motion distance can be improved.
图6示出了用户每次运动的实际运动距离、终端设备使用预设算法估算的第二运动距离以及采用本申请实施例的技术方案后,终端设备估算的第一运动距离之间的对比。图6中,横轴表示运动距离,纵轴表示运动次数。每次运动结束后,均采用本申请实施例的技术方案进行校准。FIG. 6 shows a comparison between the actual moving distance of the user per movement, the second moving distance estimated by the terminal device using the preset algorithm, and the first moving distance estimated by the terminal device after adopting the technical solution of the embodiment of the present application. In Fig. 6, the horizontal axis represents the moving distance, and the vertical axis represents the number of movements. After the end of each exercise, the technical solution of the embodiment of the present application is used for calibration.
如图6所示,该用户实际运动了600米,实线表示采用本申请实施例的技术方案后,终端设备估算的第一运动距离,虚线表示终端设备使用通用公式估算的第二运动距离。As shown in FIG. 6, the user actually moves 600 meters. The solid line indicates the first motion distance estimated by the terminal device after adopting the technical solution of the embodiment of the present application, and the broken line indicates the second motion distance estimated by the terminal device using the general formula.
从图6中可以看到,第二运动距离有随机偏差,并且没有收敛趋势。采用本申请实施例的技术方案后,终端设备估算的第一运动距离虽然在前面几次运动中有随机偏差,但后面几次已经逐渐收敛到600米左右。可以看到,采用本申请实施例的技术方案后,用户越运动终端设备估算的运动距离越准,提高了估算用户运动距离的准确度。As can be seen from Figure 6, the second motion distance has a random deviation and there is no convergence tendency. After adopting the technical solution of the embodiment of the present application, the first moving distance estimated by the terminal device has a random deviation in the previous several movements, but has gradually converge to about 600 meters in the following several times. It can be seen that, after adopting the technical solution of the embodiment of the present application, the more accurate the motion distance estimated by the user of the mobile terminal device is, the accuracy of estimating the user's motion distance is improved.
图7是根据本申请实施例的用户信息处理方法的示意性流程图。图7的方法可以应用于上述终端设备100中。FIG. 7 is a schematic flowchart of a method for processing user information according to an embodiment of the present application. The method of FIG. 7 can be applied to the above-described terminal device 100.
图7的方法可以包括710和720,下面分别对710和720进行详细描述。The method of Figure 7 may include 710 and 720, which are described in detail below.
在710中,确定用户当前运动的步频。At 710, the step frequency of the user's current motion is determined.
710的具体实现过程可以参考图2中210的描述,这里,为了避免赘述,省略其详细说明。For a specific implementation process of the 710, reference may be made to the description of 210 in FIG. 2, and a detailed description thereof is omitted herein to avoid redundancy.
在720中,基于该当前运动的步频,确定用户当前运动的第一步幅。At 720, a first step of the user's current motion is determined based on the pitch of the current motion.
在一种实现方式中,终端设备可以基于当前运动的步频,通过校准函数确定当前运动的第一步幅。In one implementation, the terminal device can determine the first step of the current motion through the calibration function based on the pitch of the current motion.
作为一种示例,终端设备可以基于当前运动的步频,通过校准函数得到校准系数,再利用校准系数,对第二步幅进行校准,从而可以得到第一步幅。As an example, the terminal device can obtain the calibration coefficient through the calibration function based on the pitch of the current motion, and then calibrate the second step by using the calibration coefficient, so that the first step can be obtained.
可选地,第二步幅是根据用户的个人参数得到的,其中,个人参数可以包括用户的身高、体重或性别中的至少一项。Optionally, the second step is obtained according to a personal parameter of the user, wherein the personal parameter may include at least one of a height, a weight, or a gender of the user.
可选地,终端设备可以根据公式(4)得到第二步幅。Alternatively, the terminal device may obtain the second step according to formula (4).
需要说明的是,终端设备基于当前运动的步频,通过校准函数确定当前运动的第一步幅的部分实现方式与图2中的220的部分实现过程是相同的,为了简洁,下面适当省略重复的描述。It should be noted that, according to the step frequency of the current motion, the partial implementation manner of determining the first step of the current motion by the calibration function is the same as the partial implementation process of 220 in FIG. 2, and for the sake of brevity, the following is omitted as appropriate. description of.
这种实现方式可以如公式(9)所示:This implementation can be as shown in equation (9):
第一步幅=第二步幅*f(步频)         (9)First step = second step *f (step frequency) (9)
作为一种示例,终端设备可以基于当前运动的步频,通过校准函数得到校准系数,再 利用校准系数,对第一系数进行校准,再利用校准后的第一系数对第二步幅进行校准,从而可以确定第一步幅。As an example, the terminal device may obtain a calibration coefficient by using a calibration function based on the pitch of the current motion, and then calibrate the first coefficient by using the calibration coefficient, and then calibrate the second step by using the first coefficient after the calibration. Thereby the first step can be determined.
这种实现方式可以如公式(10)所示:This implementation can be as shown in equation (10):
第一步幅=第一系数*f(步频)*个人参数         (10)First step = first coefficient * f (step frequency) * personal parameters (10)
在一种实现方式中,终端设备可以基于当前运动的步频,直接确定用户当前运动的第一步幅。In one implementation, the terminal device can directly determine the first step of the user's current motion based on the pitch of the current motion.
可选地,终端设备可以基于当前运动的步频,通过一定的算法确定用户当前运动的第一步幅。Optionally, the terminal device may determine the first step of the current motion of the user by using a certain algorithm based on the step frequency of the current motion.
应理解,本申请实施例对该算法不作具体限定,任何可以基于步频确定第一步幅的算法都涵盖在本申请的保护范围之内。It should be understood that the algorithm in this application does not specifically limit the algorithm, and any algorithm that can determine the first step based on the step frequency is covered by the scope of the present application.
可选地,当前运动可以包括多个时段。Alternatively, the current motion may include multiple time periods.
此时,终端设备可以基于多个时段中的每个时段的步频,确定每个时段的第一步幅。At this time, the terminal device may determine the first step of each time slot based on the pitch of each of the plurality of time periods.
在一种可能的实施例中,终端设备可以基于多个时段中的每个时段的步频,通过校准函数得到各个时段的第一步幅。In a possible embodiment, the terminal device may obtain the first step of each time period by using a calibration function based on the step frequency of each of the plurality of time periods.
也就是说,终端设备可以根据校准函数和多个时段中的各个时段的步频,分别得到各个时段的校准系数,再根据各个时段的校准系数和预设算法,分别得到各个时段的第一步幅。That is to say, the terminal device can obtain the calibration coefficients of the respective time periods according to the calibration function and the step frequency of each time period in the plurality of time periods, and then obtain the first step of each time period according to the calibration coefficients of each time period and the preset algorithm respectively. Width.
可选地,终端设备可以利用各个时段的校准系数,直接对各个时段的第二步幅进行校准。Optionally, the terminal device can directly calibrate the second step of each time period by using calibration coefficients of respective time periods.
可选地,终端设备可以利用各个时段的校准系数,对各个时段的第一系数进行校准,再利用各个时段的校准后的第一系数,得到各个时段的第一步幅。Optionally, the terminal device may calibrate the first coefficients of the respective time periods by using calibration coefficients of respective time periods, and then use the first coefficients after the calibration of the respective time periods to obtain the first step of each time period.
在一种可能的实施例中,终端设备可以基于用户在各个时段的步频,直接确定该用户在各个时段的第一步幅。In a possible embodiment, the terminal device can directly determine the first step of the user at each time interval based on the user's step frequency at each time period.
示例性地,5秒为一个时段,终端设备可以每5秒计算一次该用户的步频,基于该步频确定出各个时段的步幅。比如该用户第一个时段的步频为144步/分钟,基于该步频确定用户在第一个时段的步幅为0.53米;第二个时段的步频为180步/分钟,基于该步频确定用户在第二个时段的步幅为0.5米;第三个时段的步频为160步/分钟,基于该步频确定用户在第三个时段的步幅为0.61米。Exemplarily, 5 seconds is a time period, and the terminal device can calculate the step frequency of the user every 5 seconds, and the stride of each time period is determined based on the step frequency. For example, the user's first time period has a step frequency of 144 steps/minute. Based on the step frequency, the user's step size is 0.53 meters in the first time period; the second time step frequency is 180 steps/minute, based on the step. The frequency determines that the user has a step size of 0.5 meters in the second period; the step frequency in the third period is 160 steps/minute, and based on the step frequency, the user's step size in the third period is determined to be 0.61 meters.
上述技术方案,由于在运动过程中,用户不可能完全是匀速运动,步频是有变化的,若用总运动时间和总运动步数来计算步频、再用此步频计算第一步幅的话,计算出的第一步幅误差较大。而如果将当前运动分为多个时段,每个时段的步频相同,比如5秒为一个时段,一般情况下,可以认为5秒内的步频是不变的,再基于此步频,确定每个时段的第一步幅,这样可以提高估算用户第一步幅的准确率。In the above technical solution, since the user cannot completely move at a uniform speed during the movement, the step frequency is changed. If the total exercise time and the total number of motion steps are used to calculate the step frequency, the step frequency is used to calculate the first step. In the case of the first step, the calculated error is large. If the current motion is divided into multiple time periods, the time frequency of each time period is the same, for example, 5 seconds is a time period. In general, it can be considered that the step frequency within 5 seconds is constant, and then based on the step frequency, it is determined. The first step of each time period, which can improve the accuracy of estimating the user's first step.
可选地,终端设备确定用户的第一步幅后,可以根据该第一步幅,执行一系列操作。Optionally, after the terminal device determines the first step of the user, the terminal device may perform a series of operations according to the first step.
例如,终端设备可以输出用户第一步幅。For example, the terminal device can output the first step of the user.
可选地,终端设备可以在UI界面显示用户的第一步幅。Optionally, the terminal device may display the first step of the user on the UI interface.
可选地,终端设备可以使用语音播报用户的第一步幅。Alternatively, the terminal device can use the voice to broadcast the first step of the user.
可选地,该终端设备可以通过一定的方式,将第一步幅发送给其它设备,用户可以通过其它设备获取到第一步幅。Optionally, the terminal device can send the first step to other devices in a certain manner, and the user can obtain the first step by using other devices.
用户根据终端设备输出的第一步幅,可以执行一系列操作,本申请实施例对此不作具体限定。The user can perform a series of operations according to the first step of the output of the terminal device, which is not specifically limited in this embodiment of the present application.
例如,若公式(4)中的个人参数为用户的体重,则终端设备可以根据第一步幅确定用户的身高和/或性别,基于确定的性别,终端设备可以为用户推送该用户可能感兴趣的APP。比如,若终端设备根据第一步幅确定用户为女性,则可以向该用户推送购物APP、适合女性的游戏APP等。For example, if the personal parameter in the formula (4) is the weight of the user, the terminal device may determine the height and/or gender of the user according to the first step, and based on the determined gender, the terminal device may push the user to be interested in the user. APP. For example, if the terminal device determines that the user is a female according to the first step, the user may push a shopping APP, a game APP suitable for a female, and the like.
再例如,终端设备可以根据用户的第一步幅,在运动APP上为用户推送适合该用户的运动方式。For another example, the terminal device can push a motion mode suitable for the user on the sports APP according to the first step of the user.
再例如,若用户在运动过程中,终端设备确定的该用户的第一步幅明显与个人参数不符时,终端设备可以判断出该用户可能运动过量,用户的身体已承受不住当前的运动量,终端设备会发出警告声,比如连续的蜂鸣声,或者请用户停止运动的语音播报等,以防止用户在运动的过程中出现受伤的情况。For another example, if the first step of the user determined by the terminal device is obviously inconsistent with the personal parameter during the motion, the terminal device may determine that the user may be excessively exercising, and the user's body may not be able to withstand the current amount of exercise. The terminal device will give a warning sound, such as a continuous beep, or a user to stop the motion of the voice broadcast, etc., to prevent the user from being injured during the exercise.
需要说明的是,在本申请实施例中,术语“和/或”仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。It should be noted that, in the embodiment of the present application, the term “and/or” is merely an association relationship describing an association object, indicating that there may be three relationships, for example, A and/or B, which may indicate that A exists separately. There are three cases of A and B, and B alone.
以上对本申请实施例提供的方法进行了详细描述,为了实现上述本申请实施例提供的方法中的各功能,终端设备可以包括硬件结构和/或软件模块,以硬件结构、软件模块、或硬件结构加软件模块的形式来实现上述各功能。上述各功能中的某个功能以硬件结构、软件模块、还是硬件结构加软件模块的方式来执行,取决于技术方案的特定应用和设计约束条件。The method provided by the embodiment of the present application is described in detail. In order to implement the functions in the foregoing method provided by the embodiment of the present application, the terminal device may include a hardware structure and/or a software module, a hardware structure, a software module, or a hardware structure. The software modules are added to implement the above functions. One of the above functions is performed in a hardware structure, a software module, or a hardware structure plus a software module, depending on the specific application and design constraints of the technical solution.
基于与上述方法实施例同样的发明构思,本申请实施例提供了一种终端设备,可以对应上述方法210-230中描述的终端设备。图8是本申请实施例终端设备的示意性框图。应理解,图8示出的终端设备800仅是示例,本申请实施例的终端设备还可以包括其他模块或单元,或者包括与图8中的各个模块的功能相似的模块,或者并非要包括图8中所有模块。Based on the same inventive concept as the foregoing method embodiment, the embodiment of the present application provides a terminal device, which can correspond to the terminal device described in the foregoing methods 210-230. FIG. 8 is a schematic block diagram of a terminal device according to an embodiment of the present application. It should be understood that the terminal device 800 shown in FIG. 8 is only an example, and the terminal device in the embodiment of the present application may further include other modules or units, or include modules similar to those of the modules in FIG. 8, or not including the figure. All modules in 8.
第一确定单元810,用于确定用户当前运动的步频;a first determining unit 810, configured to determine a step frequency of a current motion of the user;
第二确定单元820,用于基于第一确定单元810确定的当前运动的步频,确定用户当前运动的第一运动距离;a second determining unit 820, configured to determine, according to the step frequency of the current motion determined by the first determining unit 810, a first moving distance of the current motion of the user;
输出单元830,用于输出第二确定单元820确定的第一运动距离。The output unit 830 is configured to output the first motion distance determined by the second determining unit 820.
可选地,该终端设备800还可以包括计算单元840,用于根据预设算法计算得到该用户的第一计算运动距离,该第一运动为当前运动之前的一次运动。Optionally, the terminal device 800 may further include a calculating unit 840, configured to calculate, according to a preset algorithm, a first calculated motion distance of the user, where the first motion is a motion before the current motion.
可选地,该终端设备800还可以包括获取单元850,用于获取该用户的第一运动的步频。Optionally, the terminal device 800 may further include an obtaining unit 850, configured to acquire a step frequency of the first motion of the user.
可选地,该终端设备800还可以包括生成单元860,用于根据获取单元850获取的第一运动的步频、计算单元840计算的计算运动距离,以及第一运动的实际运动距离生成校准函数,校准函数是以步频为自变量的函数。Optionally, the terminal device 800 may further include a generating unit 860, configured to generate a calibration function according to the step frequency of the first motion acquired by the obtaining unit 850, the calculated motion distance calculated by the calculating unit 840, and the actual motion distance of the first motion. The calibration function is a function of the step frequency as an independent variable.
可选地,该第二确定单元820具体可以用于根据生成单元860生成的校准函数和第一确定单元810确定的当前运动的步频,获得校准系数;使用校准系数和预设算法,得到用户当前运动的第一运动距离。Optionally, the second determining unit 820 is specifically configured to obtain a calibration coefficient according to the calibration function generated by the generating unit 860 and the step frequency of the current motion determined by the first determining unit 810; and obtain the user by using the calibration coefficient and the preset algorithm. The first movement distance of the current movement.
可选地,该第二确定单元820具体可以用于根据预设算法计算得到当前运动的第二运动距离;使用校准系数,对第二运动距离进行校准,得到第一运动距离。Optionally, the second determining unit 820 is specifically configured to calculate a second moving distance of the current motion according to a preset algorithm; and use the calibration coefficient to calibrate the second moving distance to obtain a first moving distance.
可选地,该第二确定单元820具体可以用于利用校准系数,对预设算法中的参数进行校准,得到校准后的预设算法;使用校准后的预设算法计算得到当前运动的第一运动距离。Optionally, the second determining unit 820 is specifically configured to: calibrate the parameter in the preset algorithm by using the calibration coefficient, to obtain a calibrated preset algorithm; and calculate the first motion by using the calibrated preset algorithm. Movement distance.
其中,预设算法用于根据检测到的运动步数和用户的步幅参数计算运动距离。The preset algorithm is configured to calculate the motion distance according to the detected motion step number and the user's stride parameter.
可选地,该终端设备800还可以包括调整单元870,用于根据第一确定单元810确定的当前运动的步频、第二确定单元820确定的第一运动距离以及当前运动的实际运动距离,对生成单元860生成的校准函数进行调整,得到调整后的校准函数,调整后的校准函数用于对下一次运动的计算距离进行校准,下一次的计算距离为使用预设算法计算得到的运动距离。Optionally, the terminal device 800 may further include an adjusting unit 870, configured according to the step frequency of the current motion determined by the first determining unit 810, the first motion distance determined by the second determining unit 820, and the actual moving distance of the current motion, The calibration function generated by the generating unit 860 is adjusted to obtain an adjusted calibration function, and the adjusted calibration function is used to calibrate the calculated distance of the next motion, and the next calculated distance is the motion distance calculated using the preset algorithm. .
可选地,该终端设备800还可以包括接收单元880,用于接收用户输入的指令,该指令用于指示当前运动的实际运动距离。Optionally, the terminal device 800 may further include a receiving unit 880, configured to receive an instruction input by the user, where the instruction is used to indicate an actual moving distance of the current motion.
其中,当前运动的实际运动距离为跑步机上的运动距离。Among them, the actual moving distance of the current exercise is the moving distance on the treadmill.
可选地,当前运动包括多个时段,该第二确定单元820具体可以用于基于多个时段中的每个时段的步频,确定每个时段的运动距离;将多个时段的运动距离之和确定为用户当前运动的第一运动距离。Optionally, the current motion includes multiple time periods, and the second determining unit 820 is specifically configured to determine a motion distance of each time period based on a step frequency of each of the plurality of time periods; And determine the first motion distance for the user's current motion.
可选地,当前运动包括多个时段,该第二确定单元820具体可以用于根据生成单元860生成的校准函数和多个时段中的各个时段的步频,分别得到各个时段的校准系数;根据各个时段的校准系数和预设算法,分别得到各个时段的运动距离;将各个时段的运动距离之和确定为第一运动距离。Optionally, the current motion includes a plurality of time periods, and the second determining unit 820 is specifically configured to obtain calibration coefficients of the respective time periods according to the calibration function generated by the generating unit 860 and the step frequency of each of the plurality of time periods; The calibration coefficient and the preset algorithm of each time period respectively obtain the motion distances of the respective time periods; the sum of the motion distances of the respective time periods is determined as the first motion distance.
可选地,多个时段中相邻的两个时段的步频不同。Optionally, the step frequencies of two adjacent ones of the plurality of time periods are different.
可选地,该第一确定单元810具体可以用于获取用户的当前运动数据,当前运动数据包括当前运动时间和当前运动步数;根据当前运动时间和当前运动步数,确定当前运动的步频。Optionally, the first determining unit 810 is specifically configured to acquire current motion data of the user, where the current motion data includes a current motion time and a current motion step number; and determining a current motion step frequency according to the current motion time and the current motion step number. .
应理解,该终端设备800可以执行本申请实施例提供的方法210-230的动作,这里,为了避免赘述,省略其详细说明。It should be understood that the terminal device 800 can perform the operations of the methods 210-230 provided by the embodiments of the present application. Here, in order to avoid redundancy, detailed description thereof is omitted.
如图9所示为本申请实施例提供的终端设备900,用于实现本申请实施例提供的方法210-230的功能。终端设备900包括处理器920,用于实现本申请实施例提供的方法210-230的功能。示例性地,处理器920可以用于确定用户当前运动的步频,基于该当前运动的步频,确定用户当前运动的第一运动距离等等,具体参见方法示例中的详细描述,此处不做赘述。As shown in FIG. 9, the terminal device 900 is provided to implement the functions of the methods 210-230 provided by the embodiments of the present application. The terminal device 900 includes a processor 920 for implementing the functions of the methods 210-230 provided by the embodiments of the present application. For example, the processor 920 may be configured to determine a pitch of a current motion of the user, determine a first motion distance of the current motion of the user, and the like based on the pitch of the current motion. For details, refer to the detailed description in the method example, where Make a statement.
终端设备900还可以包括存储器930,用于存储程序指令和/或数据。存储器930和处理器920耦合。本申请实施例中的耦合是装置、单元或模块之间的间接耦合或通信连接,可以是电性,机械或其它的形式,用于装置、单元或模块之间的信息交互。处理器920可能和存储器930协同操作。处理器920可能执行存储器930中存储的程序指令。The terminal device 900 can also include a memory 930 for storing program instructions and/or data. Memory 930 is coupled to processor 920. The coupling in the embodiments of the present application is an indirect coupling or communication connection between devices, units or modules, and may be in an electrical, mechanical or other form for information interaction between devices, units or modules. Processor 920 may operate in conjunction with memory 930. Processor 920 may execute program instructions stored in memory 930.
处理器920可以通过硬件来实现也可以通过软件来实现,当通过硬件实现时,处理器920可以是逻辑电路、集成电路等;当通过软件来实现时,处理器920可以是一个通用处理器,通过读取存储器930中存储的软件代码来实现,存储器930可以集成在处理器920中,可以位于处理器920之外,独立存在。The processor 920 can be implemented by hardware or by software. When implemented by hardware, the processor 920 can be a logic circuit, an integrated circuit, etc.; when implemented by software, the processor 920 can be a general-purpose processor. The memory 930 can be integrated into the processor 920 by reading the software code stored in the memory 930, and can exist independently of the processor 920 and exist independently.
终端设备900还可以包括收发器910,用于通过传输介质和其它设备进行通信,从而用于终端设备900中的终端设备可以和其它设备进行通信。处理器920可以利用收发器910收发信号,并用于实现本申请方法实施例中的方法。The terminal device 900 may further include a transceiver 910 for communicating with other devices through the transmission medium, so that the terminal devices in the terminal device 900 can communicate with other devices. The processor 920 can utilize the transceiver 910 to transmit and receive signals and is used to implement the methods in the method embodiments of the present application.
可选地,收发器910还可以称为收发单元、收发机或者收发电路等等。Alternatively, the transceiver 910 may also be referred to as a transceiver unit, a transceiver, or a transceiver circuit or the like.
可选地,收发器910可以包括控制电路和天线,其中,控制电路可用于基带信号与射频信号的转换以及对射频信号的处理,天线可用于收发射频信号。Optionally, the transceiver 910 can include a control circuit and an antenna, wherein the control circuit can be used for converting baseband signals and radio frequency signals and processing the radio frequency signals, and the antenna can be used to transmit and receive radio frequency signals.
本申请实施例中不限定上述收发器910、处理器920以及存储器930之间的具体连接介质。本申请实施例在图9中以存储器930、处理器920以及收发器910之间通过总线940连接,总线在图9中以粗线表示,其它部件之间的连接方式,仅是进行示意性说明,并不引以为限。所述总线可以分为地址总线、数据总线、控制总线等。为便于表示,图9中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。The specific connection medium between the above transceiver 910, the processor 920, and the memory 930 is not limited in the embodiment of the present application. In the embodiment of the present application, the memory 930, the processor 920, and the transceiver 910 are connected by a bus 940 in FIG. 9. The bus is indicated by a thick line in FIG. 9, and the connection manner between other components is only schematically illustrated. , not limited to. The bus can be divided into an address bus, a data bus, a control bus, and the like. For ease of representation, only one thick line is shown in Figure 9, but it does not mean that there is only one bus or one type of bus.
基于与上述方法实施例同样的发明构思,本申请实施例提供了一种终端设备,可以对应上述方法710和720中描述的终端设备。图10是本申请实施例终端设备的示意性框图。应理解,图10示出的终端设备1000仅是示例,本申请实施例的终端设备还可以包括其他模块或单元,或者包括与图10中的各个模块的功能相似的模块,或者并非要包括图10中所有模块。Based on the same inventive concept as the foregoing method embodiment, the embodiment of the present application provides a terminal device, which can correspond to the terminal device described in the foregoing methods 710 and 720. FIG. 10 is a schematic block diagram of a terminal device according to an embodiment of the present application. It should be understood that the terminal device 1000 shown in FIG. 10 is only an example, and the terminal device in the embodiment of the present application may further include other modules or units, or include modules similar to those of the modules in FIG. 10, or not including the figure. All modules in 10.
第一确定单元1010,用于确定用户当前运动的步频。The first determining unit 1010 is configured to determine a step frequency of the current motion of the user.
第二确定单元1020,用于基于第一确定单元1010确定的当前运动的步频,确定用户当前运动的第一步幅。The second determining unit 1020 is configured to determine a first step of the current motion of the user based on the pitch of the current motion determined by the first determining unit 1010.
可选地,该终端设备1000还可以包括计算单元1030,用于根据预设算法计算得到该用户的第一计算运动距离,该第一运动为当前运动之前的一次运动。Optionally, the terminal device 1000 may further include a calculating unit 1030, configured to calculate, according to a preset algorithm, a first calculated motion distance of the user, where the first motion is a motion before the current motion.
可选地,该终端设备1000还可以包括获取单元1040,用于获取该用户的第一运动的步频。Optionally, the terminal device 1000 may further include an obtaining unit 1040, configured to acquire a step frequency of the first motion of the user.
可选地,该终端设备1000还可以包括生成单元1050,用于根据获取单元1040获取的第一运动的步频、计算单元1030计算的计算运动距离,以及第一运动的实际运动距离生成校准函数,校准函数是以步频为自变量的函数。Optionally, the terminal device 1000 may further include a generating unit 1050, configured to generate a calibration function according to the step frequency of the first motion acquired by the obtaining unit 1040, the calculated motion distance calculated by the calculating unit 1030, and the actual motion distance of the first motion. The calibration function is a function of the step frequency as an independent variable.
可选地,该第二确定单元1020具体可以用于根据生成单元1050生成的校准函数和第一确定单元1010确定的当前运动的步频,获得校准系数;使用校准系数和预设算法,得到用户当前运动的第一步幅。Optionally, the second determining unit 1020 is specifically configured to obtain a calibration coefficient according to the calibration function generated by the generating unit 1050 and the step frequency of the current motion determined by the first determining unit 1010; and obtain the user by using the calibration coefficient and the preset algorithm. The first step of the current movement.
可选地,该第二确定单元1020具体可以用于根据所述预设算法计算得到所述当前运动的第二步幅;使用所述校准系数,对所述第二步幅进行校准,得到所述第一步幅。Optionally, the second determining unit 1020 is specifically configured to calculate a second stride of the current motion according to the preset algorithm, and perform calibration on the second stride by using the calibration coefficient to obtain a Said the first step.
其中,第二步幅是根据用户的身高、体重或性别中的至少一项得到的。The second step is obtained according to at least one of the user's height, weight or gender.
可选地,当前运动包括多个时段,该第二确定单元1020具体可以用于基于多个时段中的每个时段的步频,确定每个时段的第一步幅。Optionally, the current motion includes multiple time periods, and the second determining unit 1020 is specifically configured to determine a first step of each time period based on a step frequency of each of the plurality of time periods.
可选地,当前运动包括多个时段,该第二确定单元1020具体可以用于根据生成单元1050生成的校准函数和多个时段中的各个时段的步频,分别得到各个时段的校准系数;根据各个时段的校准系数和预设算法,分别得到各个时段的第一步幅。Optionally, the current motion includes a plurality of time periods, and the second determining unit 1020 is specifically configured to obtain calibration coefficients of the respective time periods according to the calibration function generated by the generating unit 1050 and the step frequency of each of the plurality of time periods; The calibration coefficients and preset algorithms for each time period get the first step of each time period.
可选地,多个时段中相邻的两个时段的步频不同。Optionally, the step frequencies of two adjacent ones of the plurality of time periods are different.
可选地,该第一确定单元1010具体可以用于获取用户的当前运动数据,当前运动数 据包括当前运动时间和当前运动步数;根据当前运动时间和当前运动步数,确定当前运动的步频。Optionally, the first determining unit 1010 is specifically configured to acquire current motion data of the user, where the current motion data includes a current motion time and a current motion step number; and determining a current motion step frequency according to the current motion time and the current motion step number. .
应理解,该终端设备1000可以执行本申请实施例提供的方法710和720的动作,这里,为了避免赘述,省略其详细说明。It should be understood that the terminal device 1000 can perform the operations of the methods 710 and 720 provided by the embodiments of the present application. Here, in order to avoid redundancy, detailed description thereof is omitted.
如图11所示为本申请实施例提供的终端设备1100,用于实现本申请实施例提供的方法710和720的功能。终端设备1100包括处理器1120,用于实现本申请实施例提供的方法710和720的功能。示例性地,处理器1120可以用于确定用户当前运动的步频,基于该当前运动的步频,确定用户当前运动的第一步幅等等,具体参见方法示例中的详细描述,此处不做赘述。As shown in FIG. 11 , the terminal device 1100 is provided to implement the functions of the methods 710 and 720 provided by the embodiments of the present application. The terminal device 1100 includes a processor 1120 for implementing the functions of the methods 710 and 720 provided by the embodiments of the present application. Exemplarily, the processor 1120 may be configured to determine a pitch of a current motion of the user, determine a first step of the current motion of the user, and the like based on the pitch of the current motion. For details, refer to the detailed description in the method example, where Make a statement.
终端设备1100还可以包括存储器1130,用于存储程序指令和/或数据。存储器1130和处理器1120耦合。本申请实施例中的耦合是装置、单元或模块之间的间接耦合或通信连接,可以是电性,机械或其它的形式,用于装置、单元或模块之间的信息交互。处理器1120可能和存储器1130协同操作。处理器1120可能执行存储器1130中存储的程序指令。The terminal device 1100 may also include a memory 1130 for storing program instructions and/or data. Memory 1130 is coupled to processor 1120. The coupling in the embodiments of the present application is an indirect coupling or communication connection between devices, units or modules, and may be in an electrical, mechanical or other form for information interaction between devices, units or modules. Processor 1120 may operate in conjunction with memory 1130. The processor 1120 may execute program instructions stored in the memory 1130.
处理器1120可以通过硬件来实现也可以通过软件来实现,当通过硬件实现时,处理器1120可以是逻辑电路、集成电路等;当通过软件来实现时,处理器1120可以是一个通用处理器,通过读取存储器1130中存储的软件代码来实现,存储器1130可以集成在处理器1120中,可以位于处理器1120之外,独立存在。The processor 1120 can be implemented by hardware or by software. When implemented by hardware, the processor 1120 can be a logic circuit, an integrated circuit, etc.; when implemented by software, the processor 1120 can be a general-purpose processor. The memory 1130 can be integrated into the processor 1120 by reading the software code stored in the memory 1130, and can be located outside the processor 1120 and exist independently.
终端设备1100还可以包括收发器1110,用于通过传输介质和其它设备进行通信,从而用于终端设备1100中的终端设备可以和其它设备进行通信。处理器1120可以利用收发器1110收发信号,并用于实现本申请方法实施例中的方法。The terminal device 1100 may further include a transceiver 1110 for communicating with other devices through the transmission medium, so that the terminal devices in the terminal device 1100 can communicate with other devices. The processor 1120 can utilize the transceiver 1110 to transmit and receive signals and is used to implement the method in the method embodiments of the present application.
本申请实施例中不限定上述收发器1110、处理器1120以及存储器1130之间的具体连接介质。本申请实施例在图11中以存储器1130、处理器1120以及收发器1110之间通过总线1140连接,总线在图11中以粗线表示,其它部件之间的连接方式,仅是进行示意性说明,并不引以为限。所述总线可以分为地址总线、数据总线、控制总线等。为便于表示,图11中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。The specific connection medium between the above transceiver 1110, the processor 1120, and the memory 1130 is not limited in the embodiment of the present application. In the embodiment of the present application, the memory 1130, the processor 1120, and the transceiver 1110 are connected by a bus 1140 in FIG. 11, and the bus is indicated by a thick line in FIG. 11, and the connection manner between other components is only schematically illustrated. , not limited to. The bus can be divided into an address bus, a data bus, a control bus, and the like. For ease of representation, only one thick line is shown in Figure 11, but it does not mean that there is only one bus or one type of bus.
在本申请实施例中,该处理器可以为中央处理单元(central processing unit,CPU),该处理器还可以是其他通用处理器、数字信号处理器(digital signal processor,DSP)、专用集成电路(application specific integrated circuit,ASIC)、现成可编程门阵列(field programmable gate array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。In this embodiment, the processor may be a central processing unit (CPU), and the processor may also be other general-purpose processors, digital signal processors (DSPs), and application specific integrated circuits ( Application specific integrated circuit (ASIC), field programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware component, etc. The general purpose processor may be a microprocessor or the processor or any conventional processor or the like.
在本申请实施例中,存储器可以是易失性存储器或非易失性存储器,或可包括易失性和非易失性存储器两者。其中,非易失性存储器可以是只读存储器(read-only memory,ROM)、可编程只读存储器(programmable ROM,PROM)、可擦除可编程只读存储器(erasable PROM,EPROM)、电可擦除可编程只读存储器(electrically EPROM,EEPROM)或闪存。易失性存储器可以是随机存取存储器(random access memory,RAM),其用作外部高速缓存。通过示例性但不是限制性说明,许多形式的随机存取存储器(random access memory,RAM)可用,例如静态随机存取存储器(static RAM,SRAM)、动态随机存取存储器(DRAM)、同步动态随机存取存储器(synchronous DRAM,SDRAM)、双倍数据 速率同步动态随机存取存储器(double data rate SDRAM,DDR SDRAM)、增强型同步动态随机存取存储器(enhanced SDRAM,ESDRAM)、同步连接动态随机存取存储器(synchlink DRAM,SLDRAM)和直接内存总线随机存取存储器(direct rambus RAM,DR RAM)。In the embodiments of the present application, the memory may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memory. The non-volatile memory may be a read-only memory (ROM), a programmable read only memory (ROMM), an erasable programmable read only memory (erasable PROM, EPROM), or an electrical Erase programmable EPROM (EEPROM) or flash memory. The volatile memory can be a random access memory (RAM) that acts as an external cache. By way of example and not limitation, many forms of random access memory (RAM) are available, such as static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic randomness. Synchronous DRAM (SDRAM), double data rate synchronous DRAM (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous connection dynamic random access memory Take memory (synchlink DRAM, SLDRAM) and direct memory bus random access memory (DR RAM).
应理解,在本申请的各种实施例中,上述各过程的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本申请实施例的实施过程构成任何限定。It should be understood that, in the various embodiments of the present application, the size of the sequence numbers of the foregoing processes does not mean the order of execution sequence, and the order of execution of each process should be determined by its function and internal logic, and should not be applied to the embodiment of the present application. The implementation process constitutes any limitation.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。A person skilled in the art can clearly understand that for the convenience and brevity of the description, the specific working process of the system, the device and the unit described above can refer to the corresponding process in the foregoing method embodiment, and details are not described herein again.
在本申请所提供的几个实施例中,应该理解到,所揭露的系统、装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided by the present application, it should be understood that the disclosed systems, devices, and methods may be implemented in other manners. For example, the device embodiments described above are merely illustrative. For example, the division of the unit is only a logical function division. In actual implementation, there may be another division manner, for example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be in an electrical, mechanical or other form.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
本申请实施例提供的方法中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。所述计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行所述计算机程序指令时,全部或部分地产生按照本申请实施例所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、网络设备、用户设备或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,所述计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线(digital subscriber line,DSL))或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机可以存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质(例如,软盘、硬盘、磁带)、光介质(例如,数字视频光盘(digital video disc,DVD))、或者半导体介质(例如,SSD)等。The method provided by the embodiment of the present application may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented in software, it may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the processes or functions described in accordance with embodiments of the present application are generated in whole or in part. The computer can be a general purpose computer, a special purpose computer, a computer network, a network device, a user device, or other programmable device. The computer instructions can be stored in a computer readable storage medium or transferred from one computer readable storage medium to another computer readable storage medium, for example, the computer instructions can be from a website site, computer, server or data center Transmission to another website site, computer, server or data center via wired (eg coaxial cable, fiber optic, digital subscriber line (DSL)) or wireless (eg infrared, wireless, microwave, etc.). The computer readable storage medium can be any available media that can be accessed by a computer or a data storage device such as a server, data center, or the like that includes one or more available media. The usable medium may be a magnetic medium (eg, a floppy disk, a hard disk, a magnetic tape), an optical medium (eg, a digital video disc (DVD)), or a semiconductor medium (eg, an SSD) or the like.
以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以所述权利要求的保护范围为准。The foregoing is only a specific embodiment of the present application, but the scope of protection of the present application is not limited thereto, and any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed in the present application. It should be covered by the scope of protection of this application. Therefore, the scope of protection of the present application should be determined by the scope of the claims.

Claims (25)

  1. 一种用户运动距离的获取方法,其特征在于,包括:A method for acquiring a user's motion distance, comprising:
    确定用户当前运动的步频;Determining the pace of the user's current motion;
    基于所述当前运动的步频,确定所述用户当前运动的第一运动距离;Determining a first motion distance of the current motion of the user based on the step frequency of the current motion;
    输出所述第一运动距离。The first moving distance is output.
  2. 根据权利要求1所述的方法,其特征在于,在所述确定用户当前运动的步频前,所述方法还包括:The method according to claim 1, wherein before the determining the step frequency of the current motion of the user, the method further comprises:
    根据预设算法计算得到所述用户的第一运动的计算运动距离,所述第一运动为所述当前运动之前的一次运动;Calculating a calculated motion distance of the first motion of the user according to a preset algorithm, where the first motion is a motion before the current motion;
    获取所述用户的第一运动的步频;Obtaining a step frequency of the first motion of the user;
    根据所述第一运动的步频、所述计算运动距离以及所述第一运动的实际距离生成校准函数,所述校准函数是以步频为自变量的函数;Generating a calibration function according to the pitch of the first motion, the calculated motion distance, and the actual distance of the first motion, the calibration function being a function of the pitch as an independent variable;
    所述基于所述当前运动的步频,确定所述用户当前运动的第一运动距离,包括:Determining, according to the step frequency of the current motion, determining a first motion distance of the current motion of the user, including:
    根据所述校准函数和所述当前运动的步频,获得校准系数;Obtaining a calibration coefficient according to the calibration function and the pitch of the current motion;
    使用所述校准系数和所述预设算法,得到所述用户当前运动的第一运动距离。Using the calibration coefficient and the preset algorithm, a first motion distance of the user's current motion is obtained.
  3. 根据权利要求2所述的方法,其特征在于,所述使用所述校准系数和所述预设算法,得到所述用户当前运动的第一运动距离,包括:The method according to claim 2, wherein the using the calibration coefficient and the preset algorithm to obtain a first motion distance of the user's current motion comprises:
    根据所述预设算法计算得到所述当前运动的第二运动距离;Calculating, according to the preset algorithm, a second motion distance of the current motion;
    使用所述校准系数,对所述第二运动距离进行校准,得到所述第一运动距离。The second moving distance is calibrated using the calibration coefficient to obtain the first moving distance.
  4. 根据权利要求2所述的方法,其特征在于,所述使用所述校准系数和所述预设算法,得到所述用户当前运动的第一运动距离,包括:The method according to claim 2, wherein the using the calibration coefficient and the preset algorithm to obtain a first motion distance of the user's current motion comprises:
    利用所述校准系数,对所述预设算法中的参数进行校准,得到校准后的预设算法;Using the calibration coefficient, calibrating parameters in the preset algorithm to obtain a calibrated preset algorithm;
    使用所述校准后的预设算法计算得到所述当前运动的所述第一运动距离。The first motion distance of the current motion is calculated using the calibrated preset algorithm.
  5. 根据权利要求2至4中任一项所述的方法,其特征在于,所述预设算法用于根据检测到的运动步数和用户的步幅参数计算运动距离。The method according to any one of claims 2 to 4, wherein the preset algorithm is configured to calculate a motion distance based on the detected number of motion steps and a user's stride parameter.
  6. 根据权利要求2至5中任一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 2 to 5, wherein the method further comprises:
    根据所述当前运动的步频,所述第一运动距离以及所述当前运动的实际运动距离,对所述校准函数进行调整,得到调整后的校准函数,所述调整后的校准函数用于对下一次运动的计算距离进行校准,所述下一次的计算距离为使用所述预设算法计算得到的运动距离。And adjusting the calibration function according to the step frequency of the current motion, the first motion distance and the actual motion distance of the current motion, to obtain an adjusted calibration function, where the adjusted calibration function is used to The calculated distance of the next motion is calibrated, and the next calculated distance is the motion distance calculated using the preset algorithm.
  7. 根据权利要求1至6中任一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 1 to 6, wherein the method further comprises:
    接收所述用户输入的指令,所述指令用于指示当前运动的实际运动距离。An instruction input by the user is received, the instruction being used to indicate an actual moving distance of the current motion.
  8. 根据权利要求6或7所述的方法,其特征在于,所述当前运动的实际运动距离为跑步机上的运动距离。The method according to claim 6 or 7, wherein the actual moving distance of the current motion is the moving distance on the treadmill.
  9. 根据权利要求1至8中任一项所述的方法,其特征在于,所述当前运动包括多个时段,所述基于所述当前运动的步频,确定所述用户当前运动的第一运动距离,包括:The method according to any one of claims 1 to 8, wherein the current motion comprises a plurality of time periods, and the first motion distance of the current motion of the user is determined based on the pitch of the current motion ,include:
    基于所述多个时段中的每个时段的步频,确定每个时段的运动距离;Determining a moving distance of each time period based on a step frequency of each of the plurality of time periods;
    将所述多个时段的运动距离之和确定为所述用户当前运动的第一运动距离。The sum of the motion distances of the plurality of time periods is determined as the first motion distance of the current motion of the user.
  10. 根据权利要求2至6中任一项所述的方法,其特征在于,所述当前运动包括多个时段,所述根据所述校准函数,和所述当前运动的步频,获得校准系数,包括:The method according to any one of claims 2 to 6, wherein the current motion comprises a plurality of time periods, the obtaining a calibration coefficient according to the calibration function, and a pitch of the current motion, including :
    根据所述校准函数和所述多个时段中的各个时段的步频,分别得到各个时段的校准系数;And obtaining calibration coefficients of respective time periods according to the calibration function and the step frequency of each of the plurality of time periods;
    所述使用所述校准系数和所述预设算法,得到所述用户当前运动的第一运动距离,包括:And using the calibration coefficient and the preset algorithm to obtain a first motion distance of the current motion of the user, including:
    根据所述各个时段的校准系数和所述预设算法,分别得到各个时段的运动距离;Obtaining a motion distance of each time period according to the calibration coefficient of each time period and the preset algorithm;
    将各个时段的运动距离之和确定为所述第一运动距离。The sum of the moving distances of the respective periods is determined as the first moving distance.
  11. 根据权利要求9或10所述的方法,其特征在于,所述多个时段中相邻的两个时段的步频不同。The method according to claim 9 or 10, wherein the adjacent two of the plurality of time periods have different step frequencies.
  12. 根据权利要求1至11中任一项所述的方法,其特征在于,所述确定用户当前运动的步频,包括:The method according to any one of claims 1 to 11, wherein the determining a step frequency of a user's current motion comprises:
    获取所述用户的当前运动数据,所述当前运动数据包括当前运动时间和当前运动步数;Obtaining current motion data of the user, where the current motion data includes a current motion time and a current motion step number;
    根据所述当前运动时间和当前运动步数,确定所述当前运动的步频。Determining the pitch of the current motion based on the current motion time and the current number of motion steps.
  13. 一种终端设备,其特征在于,包括:A terminal device, comprising:
    第一确定单元,用于确定用户当前运动的步频;a first determining unit, configured to determine a step frequency of the current motion of the user;
    第二确定单元,用于基于所述第一确定单元确定的所述当前运动的步频,确定所述用户当前运动的第一运动距离;a second determining unit, configured to determine, according to the step frequency of the current motion determined by the first determining unit, a first moving distance of the current motion of the user;
    输出单元,用于输出所述第二确定单元确定的所述第一运动距离。And an output unit, configured to output the first motion distance determined by the second determining unit.
  14. 根据权利要求13所述的终端设备,其特征在于,所述终端设备还包括:The terminal device according to claim 13, wherein the terminal device further comprises:
    计算单元,用于根据预设算法计算得到所述用户的第一运动的计算运动距离,所述第一运动为所述当前运动之前的一次运动;a calculating unit, configured to calculate, according to a preset algorithm, a calculated moving distance of the first motion of the user, where the first motion is a motion before the current motion;
    获取单元,用于获取所述用户的第一运动的步频;An obtaining unit, configured to acquire a step frequency of the first motion of the user;
    生成单元,用于根据所述获取单元获取的所述第一运动的步频、所述计算单元计算的所述计算运动距离,以及所述第一运动的实际距离生成校准函数,所述校准函数是以步频为自变量的函数;a generating unit, configured to generate a calibration function according to a step frequency of the first motion acquired by the acquiring unit, the calculated motion distance calculated by the calculating unit, and an actual distance of the first motion, the calibration function Is a function with a step frequency as an independent variable;
    所述第二确定单元具体用于:The second determining unit is specifically configured to:
    根据所述生成单元生成的所述校准函数和所述第一确定单元确定的所述当前运动的步频,获得校准系数;Obtaining a calibration coefficient according to the calibration function generated by the generating unit and the step frequency of the current motion determined by the first determining unit;
    使用所述校准系数和所述预设算法,得到所述用户当前运动的第一运动距离。Using the calibration coefficient and the preset algorithm, a first motion distance of the user's current motion is obtained.
  15. 根据权利要求14所述的终端设备,其特征在于,所述第二确定单元具体用于:The terminal device according to claim 14, wherein the second determining unit is specifically configured to:
    根据所述预设算法计算得到所述当前运动的第二运动距离;Calculating, according to the preset algorithm, a second motion distance of the current motion;
    使用所述校准系数,对所述第二运动距离进行校准,得到所述第一运动距离。The second moving distance is calibrated using the calibration coefficient to obtain the first moving distance.
  16. 根据权利要求14所述的终端设备,其特征在于,所述第二确定单元具体用于:The terminal device according to claim 14, wherein the second determining unit is specifically configured to:
    利用所述校准系数,对所述预设算法中的参数进行校准,得到校准后的预设算法;Using the calibration coefficient, calibrating parameters in the preset algorithm to obtain a calibrated preset algorithm;
    使用所述校准后的预设算法计算得到所述当前运动的所述第一运动距离。The first motion distance of the current motion is calculated using the calibrated preset algorithm.
  17. 根据权利要求14至16中任一项所述的终端设备,其特征在于,所述预设算法用 于根据检测到的运动步数和用户的步幅参数计算运动距离。The terminal device according to any one of claims 14 to 16, wherein the preset algorithm is for calculating a motion distance based on the detected number of motion steps and a user's stride parameter.
  18. 根据权利要求14至17中任一项所述的终端设备,其特征在于,所述终端设备还包括:The terminal device according to any one of claims 14 to 17, wherein the terminal device further comprises:
    调整单元,用于根据所述第一确定单元确定的所述当前运动的步频、所述第二确定单元确定的所述第一运动距离以及所述当前运动的实际运动距离,对所述校准函数进行调整,得到调整后的校准函数,所述调整后的校准函数用于对下一次运动的计算距离进行校准,所述下一次的计算距离为使用所述预设算法计算得到的运动距离。An adjusting unit, configured to perform the calibration according to the pitch of the current motion determined by the first determining unit, the first motion distance determined by the second determining unit, and the actual motion distance of the current motion The function adjusts to obtain an adjusted calibration function for calibrating the calculated distance of the next motion, the next calculated distance being the motion distance calculated using the preset algorithm.
  19. 根据权利要求13至18中任一项所述的终端设备,其特征在于,所述终端设备还包括:The terminal device according to any one of claims 13 to 18, wherein the terminal device further comprises:
    接收单元,用于接收所述用户输入的指令,所述指令用于指示当前运动的实际运动距离。And a receiving unit, configured to receive an instruction input by the user, where the instruction is used to indicate an actual moving distance of the current motion.
  20. 根据权利要求18或19所述的终端设备,其特征在于,所述当前运动的实际运动距离为跑步机上的运动距离。The terminal device according to claim 18 or 19, wherein the actual moving distance of the current motion is a moving distance on the treadmill.
  21. 根据权利要求13至20中任一项所述的终端设备,其特征在于,所述当前运动包括多个时段,所述第二确定单元具体用于:The terminal device according to any one of claims 13 to 20, wherein the current motion comprises a plurality of time periods, and the second determining unit is specifically configured to:
    基于所述多个时段中的每个时段的步频,确定每个时段的运动距离;Determining a moving distance of each time period based on a step frequency of each of the plurality of time periods;
    将所述多个时段的运动距离之和确定为所述用户当前运动的第一运动距离。The sum of the motion distances of the plurality of time periods is determined as the first motion distance of the current motion of the user.
  22. 根据权利要求14至18中任一项所述的终端设备,其特征在于,所述当前运动包括多个时段,所述第二确定单元具体用于:The terminal device according to any one of claims 14 to 18, wherein the current motion comprises a plurality of time periods, and the second determining unit is specifically configured to:
    根据所述校准函数和所述多个时段中的各个时段的步频,分别得到各个时段的校准系数;And obtaining calibration coefficients of respective time periods according to the calibration function and the step frequency of each of the plurality of time periods;
    根据所述各个时段的校准系数和所述预设算法,分别得到各个时段的运动距离;Obtaining a motion distance of each time period according to the calibration coefficient of each time period and the preset algorithm;
    将各个时段的运动距离之和确定为所述第一运动距离。The sum of the moving distances of the respective periods is determined as the first moving distance.
  23. 根据权利要求21或22所述的终端设备,其特征在于,所述多个时段中相邻的两个时段的步频不同。The terminal device according to claim 21 or 22, wherein a step frequency of two adjacent ones of the plurality of time periods is different.
  24. 根据权利要求13至23中任一项所述的终端设备,其特征在于,所述第一确定单元具体用于:The terminal device according to any one of claims 13 to 23, wherein the first determining unit is specifically configured to:
    获取所述用户的当前运动数据,所述当前运动数据包括当前运动时间和当前运动步数;Obtaining current motion data of the user, where the current motion data includes a current motion time and a current motion step number;
    根据所述当前运动时间和当前运动步数,确定所述当前运动的步频。Determining the pitch of the current motion based on the current motion time and the current number of motion steps.
  25. 一种计算机可读存储介质,包括指令,当其在计算机上运行时,使得所述计算机执行如权利要求1至12中任一项所述的方法。A computer readable storage medium comprising instructions which, when executed on a computer, cause the computer to perform the method of any one of claims 1 to 12.
PCT/CN2018/084120 2018-04-23 2018-04-23 Method for obtaining movement distance of user, and terminal device WO2019204968A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201880071251.5A CN111373224B (en) 2018-04-23 2018-04-23 User movement distance acquisition method and terminal equipment
PCT/CN2018/084120 WO2019204968A1 (en) 2018-04-23 2018-04-23 Method for obtaining movement distance of user, and terminal device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2018/084120 WO2019204968A1 (en) 2018-04-23 2018-04-23 Method for obtaining movement distance of user, and terminal device

Publications (1)

Publication Number Publication Date
WO2019204968A1 true WO2019204968A1 (en) 2019-10-31

Family

ID=68293432

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/084120 WO2019204968A1 (en) 2018-04-23 2018-04-23 Method for obtaining movement distance of user, and terminal device

Country Status (2)

Country Link
CN (1) CN111373224B (en)
WO (1) WO2019204968A1 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103339475A (en) * 2010-12-22 2013-10-02 戴卡特隆有限公司 Method of calibrating a measurement device and associated measurement device
CN104937376A (en) * 2012-11-07 2015-09-23 谷歌技术控股有限责任公司 Systems and methods for frequency-based stride length correction in a pedometer device
CN105403228A (en) * 2015-12-18 2016-03-16 北京朗动科技有限公司 Determination method and device of movement distance
EP3090684A1 (en) * 2015-05-08 2016-11-09 The Swatch Group Research and Development Ltd. Pedometer and method for analyzing motion data

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105203126B (en) * 2014-06-17 2018-07-06 昆达电脑科技(昆山)有限公司 Estimate the method for user's displacement distance and wearable Distance estimation device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103339475A (en) * 2010-12-22 2013-10-02 戴卡特隆有限公司 Method of calibrating a measurement device and associated measurement device
CN104937376A (en) * 2012-11-07 2015-09-23 谷歌技术控股有限责任公司 Systems and methods for frequency-based stride length correction in a pedometer device
EP3090684A1 (en) * 2015-05-08 2016-11-09 The Swatch Group Research and Development Ltd. Pedometer and method for analyzing motion data
CN105403228A (en) * 2015-12-18 2016-03-16 北京朗动科技有限公司 Determination method and device of movement distance

Also Published As

Publication number Publication date
CN111373224A (en) 2020-07-03
CN111373224B (en) 2022-07-19

Similar Documents

Publication Publication Date Title
US8519835B2 (en) Systems and methods for sensory feedback
US20190230210A1 (en) Context recognition in mobile devices
TW201843654A (en) Image description generation method, model training method, devices and storage medium
CN105765489A (en) Techniques for detecting sensor inputs on wearable wireless device
JP6325384B2 (en) Mobile terminal, training management program, and training management method
WO2019233216A1 (en) Gesture recognition method, apparatus and device
WO2018166204A1 (en) Method for controlling fingerprint recognition module, and mobile terminal and storage medium
CN105100197B (en) The method and device of application is installed
WO2019041280A1 (en) Application resource recommendation method and related device
CN108668024B (en) Voice processing method and terminal
TW201515682A (en) Methods and terminal for data acquisition
CN107608855A (en) Based reminding method and mobile terminal
CN108886548B (en) Method for determining device power consumption of electronic equipment, electronic equipment and storage medium
CN109960456B (en) Virtual key layout generation method and terminal equipment
WO2020221109A1 (en) Method for calculating moving distance, device, and system
CN107765954B (en) Application icon updating method, mobile terminal and server
WO2019204968A1 (en) Method for obtaining movement distance of user, and terminal device
CN112414370A (en) Building floor positioning method, electronic device and computer storage medium
WO2018039914A1 (en) Method for copying data, and user terminal
CN108536272B (en) Method for adjusting frame rate of application program and mobile terminal
US10702185B2 (en) Electronic device and body composition analyzing method
WO2023016385A1 (en) Processing method and apparatus for processing audio data, and mobile device and audio system
CN114532992A (en) Method, device and system for detecting snooze state and computer readable storage medium
KR20110064237A (en) Watch
CN111947808B (en) Body temperature detection method, mobile terminal and computer readable storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18916459

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 18916459

Country of ref document: EP

Kind code of ref document: A1