WO2022156651A1 - Step length acquisition method and electronic device - Google Patents

Step length acquisition method and electronic device Download PDF

Info

Publication number
WO2022156651A1
WO2022156651A1 PCT/CN2022/072433 CN2022072433W WO2022156651A1 WO 2022156651 A1 WO2022156651 A1 WO 2022156651A1 CN 2022072433 W CN2022072433 W CN 2022072433W WO 2022156651 A1 WO2022156651 A1 WO 2022156651A1
Authority
WO
WIPO (PCT)
Prior art keywords
target
motion
matrix
step size
movement distance
Prior art date
Application number
PCT/CN2022/072433
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 维沃移动通信有限公司
Publication of WO2022156651A1 publication Critical patent/WO2022156651A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/20Analysis of motion
    • G06T7/207Analysis of motion for motion estimation over a hierarchy of resolutions
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/20Analysis of motion
    • G06T7/246Analysis of motion using feature-based methods, e.g. the tracking of corners or segments

Definitions

  • the present application belongs to the field of electronic technology, and specifically relates to a step size acquisition method and electronic device.
  • the method for calculating the motion distance is: synthesizing the relationship between the height, stride frequency, motion energy and the real step size of a large number of people, and using a polynomial approximation method to fit the functional relationship closest to the real step size, thereby using The functional relationship calculates the step size, and then takes the inner product of the step size vector and the step number vector during a period of motion, and then obtains the motion distance.
  • the purpose of the embodiments of the present application is to provide a step size acquisition method, which can solve the problem of low accuracy of the step size acquisition method in the prior art.
  • an embodiment of the present application provides a step size acquisition method, the method includes: in a correction mode, acquiring target motion feature information within a target time period where the correction mode is located; and determining a target time period according to the target motion feature information The corresponding target movement scene; respectively obtain the first movement distance and the second movement distance in the target period; the first movement distance is calculated by the preset method, and the second movement distance is obtained by measurement; according to the first movement distance and the second movement distance The movement distance determines the target correction ratio of the target movement scene; in the movement mode, according to the movement feature information at the target moment, the target moment is determined as the target movement scene; the step length corresponding to the target moment is obtained as the first step length; the first step length Calculated by a preset method; according to the first step length and the target correction ratio, the step length corresponding to the updated target moment is the second step length; wherein, the motion feature information at least includes the athletic ability level and the stride frequency level.
  • an embodiment of the present application provides a step size acquisition device, the device includes: a first acquisition module, configured to acquire, in a correction mode, target motion feature information within a target period in which the correction mode is located; first The determination module is used to determine the target movement scene corresponding to the target period according to the target movement feature information; the second acquisition module is used to obtain the first movement distance and the second movement distance in the target period respectively; the first movement distance is determined by the preset The second movement distance is obtained by measurement; the second determination module is used to determine the target correction ratio of the target movement scene according to the first movement distance and the second movement distance; the third determination module is used in the movement mode Next, according to the motion feature information of the target moment, determine that the target moment is the target motion scene; the third acquisition module is used to obtain the step size corresponding to the target moment as the first step length; the first step length is calculated by a preset method; The module is configured to update the step size corresponding to the target moment to the second step size according to the first step size and the target correction ratio
  • an embodiment of the present application provides an electronic device, the electronic device includes a processor, a memory, and a program or instruction stored in the memory and executable on the processor.
  • the program or instruction is executed by the processor, the The steps of the method of the first aspect.
  • an embodiment of the present application provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or instruction is executed by a processor, the steps of the method of the first aspect are implemented.
  • an embodiment of the present application provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to run programs or instructions to implement the method of the first aspect.
  • an embodiment of the present application provides a computer program product, the computer program product being executed by at least one processor to implement the method for obtaining the step size of the first aspect.
  • a step size acquisition method is provided.
  • the user can exercise based on a relatively stable motion feature (such as a stable motion speed, etc.), so that the electronic device can input a motion scene corresponding to the motion feature.
  • the target motion feature information such as the target motion energy level and the target stride frequency of the target period in which the correction mode is located can be obtained as the motion feature of the period, so as to determine the target motion feature according to the target motion feature information.
  • the first movement distance is calculated according to the preset method, and the second movement distance is measured by tools such as maps. Target correction scale.
  • the correction ratio of each motion scene can be obtained.
  • the exercise scene corresponding to each moment can be determined according to the motion feature information such as the user's exercise energy level and cadence level at each moment. Therefore, at each moment, after the corresponding first step size is obtained based on the preset method, the correction ratio of the motion scene corresponding to the moment may be used to perform correction to obtain the corrected second step size. It can be seen that, compared with the first step, the corrected second step is combined with the actual motion characteristics of the user, so that the final obtained step is more accurate, thereby effectively improving the accuracy of the step obtaining method.
  • Fig. 1 is one of the flowcharts of the step size acquisition method of the embodiment of the present application.
  • Fig. 2 is the second flow chart of the step size acquisition method according to the embodiment of the present application.
  • Fig. 3 is the third flow chart of the step size acquisition method of the embodiment of the present application.
  • FIG. 4 is the fourth flowchart of the step size acquisition method according to the embodiment of the present application.
  • FIG. 5 is the fifth flowchart of the step size acquisition method according to the embodiment of the present application.
  • FIG. 7 is a schematic interface diagram of an electronic device according to an embodiment of the present application.
  • FIG. 8 is a block diagram of an apparatus for obtaining a step size according to an embodiment of the present application.
  • FIG. 9 is one of the schematic diagrams of the hardware structure of the electronic device according to the embodiment of the present application.
  • FIG. 10 is the second schematic diagram of the hardware structure of the electronic device according to the embodiment of the present application.
  • first, second and the like in the description and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It is to be understood that the data so used are interchangeable under appropriate circumstances so that the embodiments of the present application can be practiced in sequences other than those illustrated or described herein, and distinguish between “first”, “second”, etc.
  • the objects are usually of one type, and the number of objects is not limited.
  • the first object may be one or more than one.
  • “and/or” in the description and claims indicates at least one of the connected objects, and the character “/" generally indicates that the associated objects are in an "or” relationship.
  • FIG. 1 shows a flowchart of a step size acquisition method according to an embodiment of the present application. The method is applied to an electronic device, including:
  • Step S1 in the correction mode, acquire target motion feature information within the target period in which the correction mode is located.
  • the motion feature information includes at least a motion ability level and a cadence level.
  • the target motion feature information includes at least a target athletic ability level and a target cadence level.
  • the electronic devices to which this embodiment is applicable include wearable devices such as wristbands and watches, and portable terminal devices such as mobile phones and tablets.
  • the application scenario of this embodiment is: when the user is exercising, the electronic device is carried or worn on the body.
  • the step size calculated by the electronic device through the formula is inaccurate due to individual differences during the user's exercise. Therefore, in this embodiment, based on the above phenomenon, a method for correcting the step size is proposed.
  • the correction mode is used for the user to obtain the correction ratio by exercising before exercising. Further, after the user enters the exercise mode and starts exercising, the correction ratio can be used to correct the step length calculated by the formula.
  • the user enters the calibration mode through a preset input method.
  • the target time period is: the entire time period from the start time of the calibration mode to the end time of the calibration mode; optionally, the target time period is: from the start time of the calibration mode to the end time of the calibration mode, including a certain period of time.
  • a period with relatively stable motion characteristics may be used as the target period to ensure that the data acquired in this correction mode is valid data.
  • the motion feature information in this embodiment at least includes motion energy and stride frequency.
  • the motion characteristics are relatively stable, the fluctuations of motion energy and cadence are kept within a small range, so that it is convenient to determine the motion scene corresponding to the correction mode in the correction mode.
  • a method for obtaining the step size through correction is provided. Because various factors such as different stride frequencies, different people, different motion energy, and different speeds will affect the accuracy of obtaining the step size, there are many factors that need to be considered when obtaining the correction ratio. In this embodiment, however, two variables, exercise energy and cadence, are mainly considered. In further embodiments, more variables may also be considered.
  • the target period may be a shorter duration such as one minute.
  • the energy and cadence of the user in the target period can be kept within a small variation range, so as to obtain the target exercise energy level and the target cadence level corresponding to the target period.
  • the user has been running at a constant speed and maintained a habitual waving motion to ensure that energy and cadence can be kept within a small variation range.
  • the electronic device collects acceleration sensor data, and uses the acceleration sensor data to calculate the target motion energy level and the target cadence level corresponding to the target time period.
  • the exercise energy level and cadence level at each moment can be calculated, and according to the exercise energy level and cadence level at each moment, the frequently occurring exercise energy level and cadence level can be obtained as the corresponding target period.
  • target exercise energy level and target cadence level can be calculated, and according to the exercise energy level and cadence level at each moment, the frequently occurring exercise energy level and cadence level can be obtained as the corresponding target period.
  • the exercise energy level and cadence level at each moment can be calculated, and according to the exercise energy level and cadence level at each moment, the average exercise energy level and cadence level in the target period can be obtained as the target.
  • the acceleration sensor data in the case of using the acceleration sensor data to calculate the target exercise energy level and the target cadence level corresponding to the target period, it can also be combined with the age, gender, height, weight and other information related to the user's exercise recorded in the electronic device to improve the performance. Calculates the accuracy of the target exercise energy level and the target cadence level.
  • the motion characteristics vary greatly, and therefore, in one motion, there are many motion scenes that appear.
  • the user may appear in various states such as fast running, jogging, and slow walking, and each state corresponds to a sports scene.
  • the user can obtain the correction ratio of the motion scene corresponding to each motion feature by using various motion features in advance.
  • each motion energy is divided into a plurality of grades in advance, and each cadence is divided into a plurality of grades.
  • the value of the target motion energy in the target period is obtained, and the level to which it belongs is determined according to the value; and the value of the target cadence in the target period is obtained, and according to the value, the class to which it belongs.
  • Step S2 Determine the target motion scene corresponding to the target time period according to the target motion feature information.
  • the target motion energy level and the target cadence level are combined to determine a motion scene, that is, the target motion scene.
  • multiple motion scenes can be divided, so that based on different scenes, a correction ratio suitable for the scene can be obtained, and then the step size can be realized in different motion scenes. 's correction. In this way, the accuracy of obtaining the step size in each scene can be improved.
  • Step S3 respectively acquiring the first movement distance and the second movement distance within the target period.
  • the first movement distance is calculated by a preset method, and the second movement distance is obtained by measurement.
  • the preset manner is an algorithm in the background art.
  • the algorithm includes calculating the step size by using the functional relationship, and taking the inner product of the step size vector and the step number vector within a period of motion to calculate the motion distance.
  • the second movement distance is real distance data, which can be measured by a global positioning system (Global Positioning System, GPS for short) device, or can be measured by a high-precision device such as a treadmill.
  • a global positioning system Global Positioning System, GPS for short
  • a high-precision device such as a treadmill
  • the application scenario of this embodiment is, for example, after the target period ends, on the one hand, the first movement distance is calculated, and on the other hand, the end movement confirmation box pops up. After the user confirms, the distance calibration interface pops up, and the user inputs the second movement on the distance calibration interface. distance. Thus, the first movement distance and the second movement distance are obtained in this step.
  • the following solutions are proposed: 1.
  • the calibration interface does not support right swipe to return, and the screen is turned off without exiting; 2.
  • the up button makes the electronic device shut down, or the electronic device is automatically shut down, etc., and the first movement distance is saved before shutting down.
  • Step S4 Determine the target correction ratio of the target movement scene according to the first movement distance and the second movement distance.
  • the target correction ratio obtained in this step is used to correct the step size calculated by a preset method in the target motion scene, so as to improve the accuracy of obtaining the step size.
  • the target correction ratio may be the ratio of the first movement distance to the second movement distance, or the ratio of the second movement distance to the first movement distance, or a ratio obtained by combining some coefficients, depending on the actual situation.
  • Step S5 In the motion mode, according to the motion feature information of the target time, determine the target time as the target motion scene.
  • the motion feature information at each moment can be obtained in real time, and the motion feature information includes at least the motion energy level and the cadence level. sports scene.
  • the target time is any time, and the time is the target motion scene obtained above.
  • Step S6 the step size corresponding to the acquisition target time is the first step size.
  • the first step length is calculated by a preset method.
  • the step size corresponding to this moment can be calculated as the first step size.
  • the first step length is obtained.
  • the first step length is the step length before correction.
  • Step S7 According to the first step length and the target correction ratio, update the step size corresponding to the target time as the second step size.
  • the first step length is corrected by using the target correction ratio of the target motion scene to obtain the corrected second step size as the step size corresponding to the target moment.
  • the inner product of the step size vector and the step number vector within a period of time is used to obtain the motion distance, so that the motion distance is closer to the real distance.
  • a step size acquisition method is provided.
  • the user can exercise based on a relatively stable motion feature (such as a stable motion speed, etc.), so that the electronic device can input a motion scene corresponding to the motion feature.
  • the target motion feature information such as the target motion energy level and the target stride frequency of the target period in which the correction mode is located can be obtained as the motion feature of the period, so as to determine the target motion feature according to the target motion feature information.
  • the first movement distance is calculated according to the preset method, and the second movement distance is measured by tools such as maps. Target correction scale.
  • the correction ratio of each motion scene can be obtained. Then, when the user exercises in the exercise mode, the exercise scene corresponding to each moment can be determined according to the motion feature information such as the user's exercise energy level and cadence level at each moment. Therefore, at each moment, after the corresponding first step size is obtained based on the preset method, the correction ratio of the motion scene corresponding to the moment may be used to perform correction to obtain the corrected second step size. It can be seen that, compared with the first step, the corrected second step is combined with the actual motion characteristics of the user, so that the final obtained step is more accurate, thereby effectively improving the accuracy of the step obtaining method.
  • the sports mode can also be used as the correction mode.
  • the user is always running at a constant speed, so after the exercise mode ends, the measured exercise distance can be input to obtain the correction ratio.
  • the first matrix includes N ⁇ M elements, and N and M are positive integers.
  • N motion energy levels and M cadence levels are included, and any motion energy level is combined with any cadence level to represent a motion scene.
  • step S2 includes:
  • Sub-step A1 Mark the first target element in the first matrix according to the target motion energy level and the target cadence level included in the target motion feature information.
  • the first target element is used to represent the target motion scene.
  • the motion energy is divided into 0-9 grades, and the step frequency is divided into 0-9 grades to construct a two-dimensional matrix, that is, the first matrix.
  • rows 1 to 10 correspond to the motion energies of 10 gears respectively, and the motion energies corresponding to rows 1 to 10 increase row by row.
  • row 0 is used as a backup, and elements are not stored for the time being to expand more sports scenes.
  • Columns 1 to 10 correspond to 10 gears of cadence respectively, and the cadences corresponding to 1 to 10 columns decrease column by column.
  • the first column corresponds to a stride frequency greater than 3.4 steps per second, and the corresponding stride frequency to the right decreases in turn.
  • the tenth column saves non-running features, such as walking or standing on a treadmill.
  • the 0th column is used as a backup, and elements are not stored for the time being to expand more sports scenes.
  • the target functional energy level and the target stride frequency of the target period are obtained, and then in the first matrix, the corresponding row and column are found, so that the element at the corresponding position is used as the first target element , and mark it to associate the marked first target element with the target correction ratio for use in the subsequent step size correction.
  • various sports scenes can be represented by elements in the matrix.
  • the combination of the motion energy of each level and the cadence of each level can correspond to an element in the matrix, and each element corresponds to a motion scene.
  • multiple motion scenes can be divided in the matrix.
  • the more elements in the first matrix the finer the scene is divided, so that the step size can be corrected in more motion scenes, thereby greatly improving the accuracy of obtaining the step size.
  • the target motion scene can be determined in the first matrix by marking, so as to prepare for the subsequent association with the target correction ratio.
  • step A1 includes:
  • Sub-step B1 Mark the element corresponding to each moment in the first matrix according to the motion energy level and cadence level of at least two moments in the target period.
  • the current exercise energy level and cadence level are obtained respectively, so as to find which row and which column each moment corresponds to in the first matrix, and mark the element at the corresponding position of each moment.
  • the movement energy at the current moment may be calculated based on the data of a period of about 1.5 seconds before the current moment, and the movement energy level may be obtained.
  • the energy calculation is performed with the data in the time period, which can not only realize the calculation of the motion energy, but also ensure the timeliness of the calculation result.
  • the cadence level at the current moment may be obtained based on the cadence at the current moment, thereby ensuring the timeliness of the cadence level.
  • Sub-step B2 At the end of the target period, among the at least two marked elements, determine the first S elements with the highest marked frequency as the first target element.
  • S is a positive integer, and S>1.
  • the number of target motion scenes in the target period is not limited to one, and may be multiple. However, the number of target motion scenes should not be too large, so as to avoid too many motion scenes spanning motion energy levels and stride frequency levels that are too large to reflect the true motion characteristics of the target period.
  • the value of S is related to the number of elements of the first matrix.
  • the first matrix includes 100 elements, and the value of S can be defined as 3, that is, the 3 elements with the highest marked frequency are used as the first target elements.
  • multiple motion scenes can be determined by the motion energy levels and cadence levels at multiple times, and then among the multiple motion scenes, the motion scene with the most frequent occurrences is found as the target Motion scene to avoid the unrepresentative motion scene being mistakenly regarded as the target motion scene due to fluctuation of user motion characteristics.
  • the motion scenes at each moment are reflected in the first matrix by means of marking, so as to find several motion scenes that appear more frequently from the marked situation as the target motion scenes.
  • the marked elements in the first matrix are analyzed. If the distribution of marked elements is discrete, the data generated in this calibration mode is considered invalid. Because the marked elements are scattered, it means that the user's motion characteristics are unstable, so that the motion scene cannot be determined based on the unstable motion characteristics.
  • the value of each element of the first matrix is 0.
  • step A1 includes:
  • Sub-step C1 Mark the first target element by accumulating a preset value for the value of the first target element.
  • the default value is 1.
  • the application scenario is, for example, calculating the current motion energy level and cadence level, and finding which row and column of the first matrix the current moment corresponds to, and adding 1 to the value of the element at the corresponding position.
  • the first matrix find the first S elements with the largest value, that is, the first target element.
  • the values of all elements are divided by the sum of the element values to obtain the percentage, so as to find the first S elements with the largest percentage value, that is, the first target element .
  • the value of each element in the first matrix needs to be cleared to 0, so as to avoid interference to the data generated by this correction mode.
  • an accumulation method is proposed to mark the elements in the first matrix, the marking method is simple, and it is convenient to quickly obtain the first target element through the value of the element.
  • the second matrix includes N ⁇ M elements.
  • the elements in the second matrix correspond one-to-one with the elements in the first matrix, and the elements in the second matrix are used to represent the correction ratio of the corresponding motion scene.
  • step S2 it also includes:
  • Step D1 Determine a second target element corresponding to the first target element in the second matrix according to the first target element in the first matrix.
  • Step D2 Update the value of the second target element according to the target correction ratio.
  • a second matrix is constructed, and the element distribution of the second matrix is consistent with that of the first matrix.
  • the first matrix is used to save the motion scenes combined with motion features and the time length ratio of each motion scene in one correction mode; the second matrix is used to save the correction ratios in different motion scenes corresponding to the first matrix.
  • all correction ratios for a user may be accumulated in the second matrix based on individual differences between each user.
  • the corresponding position of a row and a certain column is the a1 element
  • the a2 element is found in the same position.
  • the correction ratio is b1, then on the basis of the current value of the a2 element, it is updated according to b1 to obtain the updated value of c1.
  • the correction ratio is obtained as b2, then on the basis of c1, it is updated according to b2 to obtain the updated value of c2.
  • the data in the second matrix can be automatically saved to the file system.
  • first perform a conventional initialization operation on the second matrix set the value of each element to the initial value, and then reload the data in the second matrix saved in the file system.
  • the corresponding second target element can be found in the second matrix, so that the obtained The target correction ratio is reflected by the value of the second target element.
  • the user determines the correction ratio of the corresponding motion scene in the second matrix for the motion energy level and cadence level obtained at each moment, so as to realize the correction of the step size, thereby improving the accuracy of obtaining the step size.
  • the correction ratio can be directly determined in the second matrix to realize the correction of the step size. Additionally, motion scenes can also be marked in the first matrix for self-learning alignment.
  • step D2 includes:
  • Sub-step E1 Multiply the value of the second target element by the target correction ratio to obtain the updated value of the second target element.
  • the target correction ratio is the ratio of the second movement distance to the first movement distance.
  • the initial value of each element of the second matrix is 1, and the value of the element of the second matrix is multiplied by the correction ratio, so that the value of the element of the second matrix can represent the correction ratio.
  • the values of the elements in the second matrix are used in the correction of the step size.
  • the correction ratio can be directly recorded in the second matrix by multiplying the correction ratio. Moreover, multiple correction ratios obtained in the same motion scene can be recorded in a cumulative manner, so that the correction ratios are more and more accurate.
  • the calibration mode if it is detected that the user stops moving, or the preset time is detected, the calibration mode is considered to be over, and the user is prompted to start calibrating the distance.
  • the pop-up box will prompt "If the movement distance is too short, there will be no record to end the movement. Are you sure you want to end the movement?"; If the movement distance value is greater than or equal to 0.10 km, enter the distance calibration interface.
  • this distance is used as a reference (default value), and calculates the increment of every grid (the increase or decrease of the distance of every sliding one grid up and down in the calibration interface).
  • a distance calibration scheme is designed to facilitate the user to input the second movement distance.
  • the distance is taken as the actual exercise distance, and the average pace, broken line pace, maximum pace and minimum pace are recalculated, stored in the exercise report, and displayed on the exercise report screen. .
  • the calibrated distance and pace are displayed.
  • the average pace (exercise duration ⁇ calibration distance);
  • Pace scaling ratio X (distance given by algorithm ⁇ calibration distance);
  • This embodiment provides a method for the user to input the second movement distance by setting a plurality of adjustment grids.
  • the user can complete the input through a simple adjustment operation, and the operation is simple.
  • such an input method can intuitively reflect the relationship with the first movement distance, so that the user can understand the calculation deviation of the electronic device.
  • the execution body may be a step size acquisition device, or a control module in the step size acquisition device for executing the step size acquisition method.
  • the step size acquisition device of the step size acquisition method provided by the embodiment of the present application is described by taking the step size acquisition device executing the step size acquisition method as an example.
  • FIG. 8 shows a block diagram of an apparatus for obtaining a step size according to another embodiment of the present application, including:
  • the first acquisition module 10 is configured to acquire, in the correction mode, target motion feature information within the target time period in which the correction mode is located;
  • the first determining module 20 is configured to determine the target motion scene corresponding to the target time period according to the target motion feature information
  • the second obtaining module 30 is used to obtain the first movement distance and the second movement distance respectively within the target time period; the first movement distance is calculated by a preset method, and the second movement distance is obtained by measurement;
  • the second determination module 40 is configured to determine the target correction ratio of the target movement scene according to the first movement distance and the second movement distance;
  • the third determining module 50 is configured to, in the motion mode, determine the target moment as the target motion scene according to the motion feature information of the target moment;
  • the third obtaining module 60 is used to obtain the step size corresponding to the target moment as the first step length; the first step length is calculated by a preset method;
  • the correction module 70 is configured to update the step size corresponding to the target moment to the second step size according to the first step length and the target correction ratio;
  • the motion feature information includes at least a motion ability level and a cadence level.
  • a step size acquisition method is provided.
  • the user can exercise based on a relatively stable motion feature (such as a stable motion speed, etc.), so that the electronic device can input a motion scene corresponding to the motion feature.
  • the target motion feature information such as the target motion energy level and the target stride frequency of the target period in which the correction mode is located can be obtained as the motion feature of the period, so as to determine the target motion feature according to the target motion feature information.
  • the first movement distance is calculated according to the preset method, and the second movement distance is measured by tools such as maps. Target correction scale.
  • the correction ratio of each motion scene can be obtained. Then, when the user exercises in the exercise mode, the exercise scene corresponding to each moment can be determined according to the motion feature information such as the user's exercise energy level and cadence level at each moment. Therefore, at each moment, after the corresponding first step size is obtained based on the preset method, the correction ratio of the motion scene corresponding to the moment may be used to perform correction to obtain the corrected second step size. It can be seen that, compared with the first step, the corrected second step is combined with the actual motion characteristics of the user, so that the final obtained step is more accurate, thereby effectively improving the accuracy of the step obtaining method.
  • the first matrix includes N ⁇ M elements, and N and M are positive integers; in the first matrix, it includes N motion energy levels and M cadence levels, and any motion energy level and any cadence level. Level combination, used to represent a sports scene;
  • the first determination module 20 includes:
  • a marking unit for marking the first target element in the first matrix according to the target movement energy level and the target cadence level included in the target movement feature information
  • the first target element is used to represent the target motion scene.
  • a marking unit including:
  • the multi-element marking subunit is used to mark the element corresponding to each moment in the first matrix respectively according to the motion energy level and the cadence level of at least two moments in the target period;
  • Multi-element determination subunit for at the end moment of the target period, in at least two marked elements, it is determined that the first S elements with the highest marked frequency are the first target elements;
  • S is a positive integer, and S>1.
  • the marking unit includes:
  • the value accumulation subunit is used to mark the first target element by accumulating a preset value for the value of the first target element.
  • the second matrix includes N ⁇ M elements; the elements in the second matrix are in one-to-one correspondence with the elements in the first matrix, and the elements in the second matrix are used to represent the correction ratio of the corresponding motion scene;
  • a fourth determination module configured to determine a second target element corresponding to the first target element in the second matrix according to the first target element in the first matrix
  • the updating module is configured to update the value of the second target element according to the target correction ratio.
  • the update module includes:
  • a value update unit for multiplying the value of the second target element with the target correction ratio to obtain the value of the updated second target element
  • the target correction ratio is the ratio of the second movement distance to the first movement distance.
  • the apparatus for obtaining the step size in this embodiment of the present application may be an apparatus, or may be a component, an integrated circuit, or a chip in a terminal.
  • the apparatus may be a mobile electronic device or a non-mobile electronic device.
  • the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palmtop computer, an in-vehicle electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (personal digital assistant).
  • UMPC ultra-mobile personal computer
  • netbook or a personal digital assistant
  • non-mobile electronic devices can be servers, network attached storage (Network Attached Storage, NAS), personal computer (personal computer, PC), television (television, TV), teller machine or self-service machine, etc., this application Examples are not specifically limited.
  • Network Attached Storage NAS
  • personal computer personal computer, PC
  • television television
  • teller machine or self-service machine etc.
  • the step size obtaining device in this embodiment of the present application may be a device having an operating system.
  • the operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, which are not specifically limited in the embodiments of the present application.
  • the step size obtaining apparatus provided in the embodiment of the present application can implement each process implemented by the foregoing method embodiment, and in order to avoid repetition, details are not repeated here.
  • an embodiment of the present application further provides an electronic device 100, including a processor 101, a memory 102, a program or instruction stored in the memory 102 and executable on the processor 101,
  • an electronic device 100 including a processor 101, a memory 102, a program or instruction stored in the memory 102 and executable on the processor 101,
  • the program or instruction is executed by the processor 101, each process of any one of the foregoing step size acquisition method embodiments can be implemented, and the same technical effect can be achieved. To avoid repetition, details are not described here.
  • the electronic devices in the embodiments of the present application include the aforementioned mobile electronic devices and non-mobile electronic devices.
  • FIG. 10 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
  • the electronic device 1000 includes but is not limited to: a radio frequency unit 1001, a network module 1002, an audio output unit 1003, an input unit 1004, a sensor 1005, a display unit 1006, a user input unit 1007, an interface unit 1008, a memory 1009, a processor 1010 and other components .
  • the electronic device 1000 may also include a power source (such as a battery) for supplying power to various components, and the power source may be logically connected to the processor 1010 through a power management system, so that the power management system can manage charging, discharging, and power functions. consumption management and other functions.
  • a power source such as a battery
  • the power management system can manage charging, discharging, and power functions. consumption management and other functions.
  • the structure of the electronic device shown in FIG. 10 does not constitute a limitation on the electronic device, and the electronic device may include more or less components than the one shown, or combine some components, or arrange different components, which will not be repeated here. .
  • the processor 1010 is configured to, in the correction mode, acquire target motion feature information within the target period in which the correction mode is located; and determine the target motion scene corresponding to the target period according to the target motion feature information;
  • the first movement distance and the second movement distance in the target period are obtained respectively;
  • the first movement distance is calculated by a preset method, and the second movement distance is obtained by measurement;
  • the target correction ratio of the target movement scene is determined; in the movement mode, according to the movement feature information at the target moment, it is determined that the target moment is the target movement scene; the step corresponding to the target moment is obtained.
  • the motion feature information includes at least a motion ability level and a cadence level.
  • a step size acquisition method is provided.
  • the user can exercise based on a relatively stable motion feature (such as a stable motion speed, etc.), so that the electronic device can input a motion scene corresponding to the motion feature.
  • the target motion feature information such as the target motion energy level and the target stride frequency of the target period in which the correction mode is located can be obtained as the motion feature of the period, so as to determine the target motion feature according to the target motion feature information.
  • the first movement distance is calculated according to the preset method, and the second movement distance is measured by tools such as maps. Target correction scale.
  • the correction ratio of each motion scene can be obtained. Then, when the user exercises in the exercise mode, the exercise scene corresponding to each moment can be determined according to the motion feature information such as the user's exercise energy level and cadence level at each moment. Therefore, at each moment, after the corresponding first step size is obtained based on the preset method, the correction ratio of the motion scene corresponding to the moment may be used to perform correction to obtain the corrected second step size. It can be seen that, compared with the first step, the corrected second step is combined with the actual motion characteristics of the user, so that the final obtained step is more accurate, thereby effectively improving the accuracy of the step obtaining method.
  • the first matrix includes N ⁇ M elements, and N and M are positive integers; in the first matrix, it includes N motion energy levels and M cadence levels, any one motion energy level and any one.
  • the cadence level combination is used to represent a motion scene; the processor 1010 is further configured to mark the first target element in the first matrix according to the target motion energy level and the target cadence level included in the target motion feature information ; wherein, the first target element is used to represent the target motion scene.
  • the processor 1010 is further configured to mark the element corresponding to each moment in the first matrix according to the motion energy level and the cadence level of at least two moments in the target period; At the end time of the target period, among the at least two marked elements, the first S elements with the highest marked frequency are determined as the first target elements; wherein, S is a positive integer, and S>1.
  • the value of each element of the first matrix is 0; the processor 1010 is further configured to accumulate a pre-determined value by adding a value to the first target element.
  • the first target element is marked in the manner of setting a value.
  • the second matrix includes N ⁇ M elements; the elements in the second matrix are in one-to-one correspondence with the elements in the first matrix, and the elements in the second matrix are used to represent the corresponding motion the correction ratio of the scene; the processor 1010 is further configured to determine a second target element corresponding to the first target element in the second matrix according to the first target element in the first matrix; according to The target correction ratio is used to update the value of the second target element.
  • the initial value of each element of the second matrix is 1; the processor 1010 is further configured to multiply the value of the second target element by the target correction ratio to obtain an updated The value of the second target element; wherein, the target correction ratio is the ratio of the second movement distance to the first movement distance.
  • the input unit 1004 may include a graphics processor (Graphics Processing Unit, GPU) 10041 and a microphone 10042. Such as camera) to obtain still pictures or video image data for processing.
  • the display unit 1006 may include a display panel 10061, which may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like.
  • the user input unit 1007 includes a touch panel 10071 and other input devices 10072 .
  • the touch panel 10071 is also called a touch screen.
  • the touch panel 10071 may include two parts, a touch detection device and a touch controller.
  • Memory 1009 may be used to store software programs as well as various data, including but not limited to application programs and operating systems. Memory 1009 may include Read-Only Memory (ROM), Random Access Memory (RAM), magnetic disk storage media devices, optical storage media devices, flash memory devices, electrical, optical or other physical/tangible memory storage device.
  • ROM Read-Only Memory
  • RAM Random Access Memory
  • magnetic disk storage media devices optical storage media devices
  • flash memory devices electrical, optical or other physical/tangible memory storage device.
  • Memory 1009 includes one or more tangible (non-transitory) computer-readable storage media (eg, memory devices) encoded with software including computer-executable instructions, and when the software is executed (eg, processed by one or more device), it is operable to perform the operations described with reference to the step size obtaining method according to the embodiment of the present application.
  • the processor 1010 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, and the like, and the modem processor mainly processes wireless communication. It can be understood that, the above-mentioned modulation and demodulation processor may not be integrated into the processor 1010.
  • the above-mentioned processor 1010 may include a central processing unit (CPU), or a specific integrated circuit (Application Specific Integrated Circuit, ASIC), or may be configured to implement one or more integrated circuits of the embodiments of the present application.
  • the embodiments of the present application further provide a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or instruction is executed by a processor, each process of any one of the foregoing step size acquisition method embodiments is implemented, And can achieve the same technical effect, in order to avoid repetition, it is not repeated here.
  • the processor is the processor in the electronic device described in the foregoing embodiments.
  • the readable storage medium includes a computer-readable storage medium, such as a computer read-only memory (Read-Only Memory, ROM), a random access memory (Random Access Memory, RAM), a magnetic disk or an optical disk, and the like.
  • An embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is used to run a program or an instruction to achieve any of the above step size acquisitions
  • the chip includes a processor and a communication interface
  • the communication interface is coupled to the processor
  • the processor is used to run a program or an instruction to achieve any of the above step size acquisitions
  • the chip mentioned in the embodiments of the present application may also be referred to as a system-on-chip, a system-on-chip, a system-on-a-chip, or a system-on-a-chip, or the like.

Abstract

A step length acquisition method and an electronic device. The method comprises: in a correction mode, acquiring target motion feature information within a target time period, and determining a target motion scenario within the target time period; respectively acquiring a first motion distance obtained by means of calculation and in a preset manner within the target time period, and a second motion distance obtained by means of measurement, and determining a target correction ratio for the target motion scenario; in a motion mode, according to motion feature information at a target moment, determining that the target moment corresponds to the target motion scenario; acquiring a step length, which is obtained by means of calculation and in the preset manner and corresponds to the target moment, and taking the step length as a first step length; and according to the first step length and the target correction ratio, updating, to a second step length, the step length corresponding to the target moment, wherein the motion feature information at least comprises a motion capability level and a stride frequency level.

Description

步长获取方法和电子设备Step size acquisition method and electronic device
相关申请的交叉引用CROSS-REFERENCE TO RELATED APPLICATIONS
本申请主张在2021年01月25日在中国提交的中国专利申请号202110098825.1的优先权,其全部内容通过引用包含于此。This application claims priority to Chinese Patent Application No. 202110098825.1 filed in China on Jan. 25, 2021, the entire contents of which are hereby incorporated by reference.
技术领域technical field
本申请属于电子技术领域,具体涉及一种步长获取方法和电子设备。The present application belongs to the field of electronic technology, and specifically relates to a step size acquisition method and electronic device.
背景技术Background technique
目前,用户会通过手环、手机等电子设备来记录自己在运动过程中的运动距离。At present, users will use electronic devices such as wristbands and mobile phones to record their movement distance during exercise.
在现有技术中,计算运动距离的方法是:综合大量人群的身高、步频、运动能量与真实步长的关系,使用多项式逼近方法拟合出跟真实步长最接近的函数关系,从而利用函数关系计算步长,再把一段运动时间内的步长向量与步数向量做内积,进而得到运动距离。In the prior art, the method for calculating the motion distance is: synthesizing the relationship between the height, stride frequency, motion energy and the real step size of a large number of people, and using a polynomial approximation method to fit the functional relationship closest to the real step size, thereby using The functional relationship calculates the step size, and then takes the inner product of the step size vector and the step number vector during a period of motion, and then obtains the motion distance.
因个体差异,每个人的运动习惯不同,因此运动过程中的步长差异较大,从而导致现有技术中的步长计算方法并不是适用于每一个人,进而导致获取步长的准确率较低。Due to individual differences, each person's exercise habits are different, so the step size in the exercise process is quite different, so that the step size calculation method in the prior art is not suitable for everyone, and the accuracy rate of obtaining the step size is relatively high. Low.
发明内容SUMMARY OF THE INVENTION
本申请实施例的目的是提供一种步长获取方法,能够解决现有技术中的步长获取方法准确率较低的问题。The purpose of the embodiments of the present application is to provide a step size acquisition method, which can solve the problem of low accuracy of the step size acquisition method in the prior art.
为了解决上述技术问题,本申请是这样实现的:In order to solve the above technical problems, this application is implemented as follows:
第一方面,本申请实施例提供了一种步长获取方法,该方法包括:在校正模式下,获取校正模式所处的目标时段内的目标运动特征信息;根据目标运动特征信息,确定目标时段所对应的目标运动场景;分别获取目标 时段内的第一运动距离和第二运动距离;第一运动距离由预设方式计算得到,第二运动距离由测量得到;根据第一运动距离和第二运动距离,确定目标运动场景的目标校正比例;在运动模式下,根据目标时刻的运动特征信息,确定目标时刻为目标运动场景;获取目标时刻对应的步长为第一步长;第一步长由预设方式计算得到;根据第一步长和目标校正比例,更新目标时刻对应的步长为第二步长;其中,运动特征信息至少包括运动能力等级和步频等级。In a first aspect, an embodiment of the present application provides a step size acquisition method, the method includes: in a correction mode, acquiring target motion feature information within a target time period where the correction mode is located; and determining a target time period according to the target motion feature information The corresponding target movement scene; respectively obtain the first movement distance and the second movement distance in the target period; the first movement distance is calculated by the preset method, and the second movement distance is obtained by measurement; according to the first movement distance and the second movement distance The movement distance determines the target correction ratio of the target movement scene; in the movement mode, according to the movement feature information at the target moment, the target moment is determined as the target movement scene; the step length corresponding to the target moment is obtained as the first step length; the first step length Calculated by a preset method; according to the first step length and the target correction ratio, the step length corresponding to the updated target moment is the second step length; wherein, the motion feature information at least includes the athletic ability level and the stride frequency level.
第二方面,本申请实施例提供了一种步长获取装置,该装置包括:第一获取模块,用于在校正模式下,获取校正模式所处的目标时段内的目标运动特征信息;第一确定模块,用于根据目标运动特征信息,确定目标时段所对应的目标运动场景;第二获取模块,用于分别获取目标时段内的第一运动距离和第二运动距离;第一运动距离由预设方式计算得到,第二运动距离由测量得到;第二确定模块,用于根据第一运动距离和第二运动距离,确定目标运动场景的目标校正比例;第三确定模块,用于在运动模式下,根据目标时刻的运动特征信息,确定目标时刻为目标运动场景;第三获取模块,用于获取目标时刻对应的步长为第一步长;第一步长由预设方式计算得到;校正模块,用于根据第一步长和目标校正比例,更新目标时刻对应的步长为第二步长;其中,运动特征信息至少包括运动能力等级和步频等级。In a second aspect, an embodiment of the present application provides a step size acquisition device, the device includes: a first acquisition module, configured to acquire, in a correction mode, target motion feature information within a target period in which the correction mode is located; first The determination module is used to determine the target movement scene corresponding to the target period according to the target movement feature information; the second acquisition module is used to obtain the first movement distance and the second movement distance in the target period respectively; the first movement distance is determined by the preset The second movement distance is obtained by measurement; the second determination module is used to determine the target correction ratio of the target movement scene according to the first movement distance and the second movement distance; the third determination module is used in the movement mode Next, according to the motion feature information of the target moment, determine that the target moment is the target motion scene; the third acquisition module is used to obtain the step size corresponding to the target moment as the first step length; the first step length is calculated by a preset method; The module is configured to update the step size corresponding to the target moment to the second step size according to the first step size and the target correction ratio; wherein, the motion feature information at least includes the motion ability level and the step frequency level.
第三方面,本申请实施例提供了一种电子设备,该电子设备包括处理器、存储器及存储在存储器上并可在处理器上运行的程序或指令,程序或指令被处理器执行时实现如第一方面的方法的步骤。In a third aspect, an embodiment of the present application provides an electronic device, the electronic device includes a processor, a memory, and a program or instruction stored in the memory and executable on the processor. When the program or instruction is executed by the processor, the The steps of the method of the first aspect.
第四方面,本申请实施例提供了一种可读存储介质,可读存储介质上存储程序或指令,程序或指令被处理器执行时实现如第一方面的方法的步骤。In a fourth aspect, an embodiment of the present application provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or instruction is executed by a processor, the steps of the method of the first aspect are implemented.
第五方面,本申请实施例提供了一种芯片,芯片包括处理器和通信接口,通信接口和处理器耦合,处理器用于运行程序或指令,实现如第一方面的方法。In a fifth aspect, an embodiment of the present application provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to run programs or instructions to implement the method of the first aspect.
第六方面,本申请实施例提供了一种计算机程序产品,所述计算机程 序产品被至少一个处理器执行以实现第一方面的步长的获取方法。In a sixth aspect, an embodiment of the present application provides a computer program product, the computer program product being executed by at least one processor to implement the method for obtaining the step size of the first aspect.
这样,在本申请的实施例中,提供了一种步长获取方法。首先,在校正模式下,用户可基于较为稳定的运动特征(如稳定的运动速度等)进行运动,从而电子设备可输入该运动特征所对应的运动场景。其中,在校正模式下,可获取校正模式所处的目标时段的目标运动能量等级和目标步频等目标运动特征信息,作为该时段的运动特征,从而根据目标运动特征信息,确定与目标运动特征信息对应的目标运动场景。其次,目标时段结束后,按照预设方式计算得来第一运动距离,以及由地图等工具测量得来第二运动距离,结合第一运动距离和第二运动距离,得到适用于目标运动场景的目标校正比例。从而,基于上述校正模式,可得到各个运动场景的校正比例。然后,用户在运动模式下进行运动,可根据用户每个时刻的运动能量等级和步频等级等运动特征信息,确定每个时刻所对应的运动场景。从而,在每个时刻,基于预设方式得到对应的第一步长后,可利用该时刻对应的运动场景的校正比例进行校正,以得到校正后的第二步长。可见,校正后的第二步长相比于第一步长,结合了用户实际的运动特征,使得最终获取的步长更加准确,从而有效提高步长获取方法的准确率。In this way, in the embodiments of the present application, a step size acquisition method is provided. First, in the correction mode, the user can exercise based on a relatively stable motion feature (such as a stable motion speed, etc.), so that the electronic device can input a motion scene corresponding to the motion feature. Among them, in the correction mode, the target motion feature information such as the target motion energy level and the target stride frequency of the target period in which the correction mode is located can be obtained as the motion feature of the period, so as to determine the target motion feature according to the target motion feature information. The target motion scene corresponding to the information. Secondly, after the target period ends, the first movement distance is calculated according to the preset method, and the second movement distance is measured by tools such as maps. Target correction scale. Therefore, based on the above correction mode, the correction ratio of each motion scene can be obtained. Then, when the user exercises in the exercise mode, the exercise scene corresponding to each moment can be determined according to the motion feature information such as the user's exercise energy level and cadence level at each moment. Therefore, at each moment, after the corresponding first step size is obtained based on the preset method, the correction ratio of the motion scene corresponding to the moment may be used to perform correction to obtain the corrected second step size. It can be seen that, compared with the first step, the corrected second step is combined with the actual motion characteristics of the user, so that the final obtained step is more accurate, thereby effectively improving the accuracy of the step obtaining method.
附图说明Description of drawings
图1是本申请实施例的步长获取方法的流程图之一;Fig. 1 is one of the flowcharts of the step size acquisition method of the embodiment of the present application;
图2是本申请实施例的步长获取方法的流程图之二;Fig. 2 is the second flow chart of the step size acquisition method according to the embodiment of the present application;
图3是本申请实施例的步长获取方法的流程图之三;Fig. 3 is the third flow chart of the step size acquisition method of the embodiment of the present application;
图4是本申请实施例的步长获取方法的流程图之四;FIG. 4 is the fourth flowchart of the step size acquisition method according to the embodiment of the present application;
图5是本申请实施例的步长获取方法的流程图之五;FIG. 5 is the fifth flowchart of the step size acquisition method according to the embodiment of the present application;
图6是本申请实施例的步长获取方法的流程图之六;6 is the sixth flowchart of the step size acquisition method according to the embodiment of the present application;
图7是本申请实施例的电子设备的界面示意图;7 is a schematic interface diagram of an electronic device according to an embodiment of the present application;
图8是本申请实施例的步长获取装置的框图;8 is a block diagram of an apparatus for obtaining a step size according to an embodiment of the present application;
图9是本申请实施例的电子设备的硬件结构示意图之一。FIG. 9 is one of the schematic diagrams of the hardware structure of the electronic device according to the embodiment of the present application.
图10是本申请实施例的电子设备的硬件结构示意图之二。FIG. 10 is the second schematic diagram of the hardware structure of the electronic device according to the embodiment of the present application.
具体实施方式Detailed ways
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative work fall within the protection scope of the present application.
本申请的说明书和权利要求书中的术语“第一”、“第二”等是用于区别类似的对象,而不用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便本申请的实施例能够以除了在这里图示或描述的那些以外的顺序实施,且“第一”、“第二”等所区分的对象通常为一类,并不限定对象的个数,例如第一对象可以是一个,也可以是多个。此外,说明书以及权利要求中“和/或”表示所连接对象的至少其中之一,字符“/”,一般表示前后关联对象是一种“或”的关系。The terms "first", "second" and the like in the description and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It is to be understood that the data so used are interchangeable under appropriate circumstances so that the embodiments of the present application can be practiced in sequences other than those illustrated or described herein, and distinguish between "first", "second", etc. The objects are usually of one type, and the number of objects is not limited. For example, the first object may be one or more than one. In addition, "and/or" in the description and claims indicates at least one of the connected objects, and the character "/" generally indicates that the associated objects are in an "or" relationship.
下面结合附图,通过具体的实施例及其应用场景对本申请实施例提供的步长获取方法进行详细地说明。The method for obtaining the step size provided by the embodiments of the present application will be described in detail below with reference to the accompanying drawings through specific embodiments and application scenarios thereof.
图1示出了本申请一个实施例的步长获取方法的流程图,该方法应用于电子设备,包括:FIG. 1 shows a flowchart of a step size acquisition method according to an embodiment of the present application. The method is applied to an electronic device, including:
步骤S1:在校正模式下,获取校正模式所处的目标时段内的目标运动特征信息。Step S1 : in the correction mode, acquire target motion feature information within the target period in which the correction mode is located.
其中,运动特征信息至少包括运动能力等级和步频等级。Wherein, the motion feature information includes at least a motion ability level and a cadence level.
对应地,目标运动特征信息至少包括目标运动能力等级和目标步频等级。Correspondingly, the target motion feature information includes at least a target athletic ability level and a target cadence level.
可选地,本实施例适用于的电子设备包括:手环、手表等穿戴设备,以及手机、平板等可携带的终端设备。Optionally, the electronic devices to which this embodiment is applicable include wearable devices such as wristbands and watches, and portable terminal devices such as mobile phones and tablets.
本实施例的应用场景为:用户在运动时,将电子设备携带或者穿戴在身上。The application scenario of this embodiment is: when the user is exercising, the electronic device is carried or worn on the body.
在现有技术中,用户在运动过程中,因个人差异,导致电子设备通过公式计算出来的步长不准确。因此,在本实施例中,基于上述现象,提出了一种对步长进行校正的方法。In the prior art, the step size calculated by the electronic device through the formula is inaccurate due to individual differences during the user's exercise. Therefore, in this embodiment, based on the above phenomenon, a method for correcting the step size is proposed.
在该步骤中,校正模式用于用户在运动之前,通过运动得到校正比例,进一步地,用户进入运动模式开始运动之后,可利用校正比例对通过公式计算出来的步长进行校正。In this step, the correction mode is used for the user to obtain the correction ratio by exercising before exercising. Further, after the user enters the exercise mode and starts exercising, the correction ratio can be used to correct the step length calculated by the formula.
可选地,用户通过预设的输入方式进入校正模式。Optionally, the user enters the calibration mode through a preset input method.
可参考地,用户点击手表上的“室内跑步校正模式”,进入校正模式。For reference, the user clicks "Indoor Running Calibration Mode" on the watch to enter the calibration mode.
可选地,目标时段为:从校正模式的开始时刻,至校正模式的结束时刻,的整个时段;可选地,目标时段为:从校正模式的开始时刻,至校正模式的结束时刻,包括的某个时段。Optionally, the target time period is: the entire time period from the start time of the calibration mode to the end time of the calibration mode; optionally, the target time period is: from the start time of the calibration mode to the end time of the calibration mode, including a certain period of time.
可参考地,在校正模式下,可将运动特征较为稳定的时段,作为目标时段,以确保本次校正模式中获取的数据为有效数据。For reference, in the correction mode, a period with relatively stable motion characteristics may be used as the target period to ensure that the data acquired in this correction mode is valid data.
其中,本实施例中的运动特征信息至少包括:运动能量和步频。当运动特征较为稳定时,运动能量和步频的波动保持在一个小范围内,这样,便于在校正模式下,确定校正模式所对应的运动场景。The motion feature information in this embodiment at least includes motion energy and stride frequency. When the motion characteristics are relatively stable, the fluctuations of motion energy and cadence are kept within a small range, so that it is convenient to determine the motion scene corresponding to the correction mode in the correction mode.
需要说明的是,在本实施例中,提供了一种通过校正来获取步长的方法。因为不同的步频、不同的人、不同的运动能量和不同的速度等多种因素都会影响获取步长的准确率,因此在获取校正比例时,需要考虑的因素也很多。而在本实施例中,主要考虑运动能量和步频这两个变量。在更多的实施例中,还可以考虑更多的变量。It should be noted that, in this embodiment, a method for obtaining the step size through correction is provided. Because various factors such as different stride frequencies, different people, different motion energy, and different speeds will affect the accuracy of obtaining the step size, there are many factors that need to be considered when obtaining the correction ratio. In this embodiment, however, two variables, exercise energy and cadence, are mainly considered. In further embodiments, more variables may also be considered.
可参考地,目标时段可以是一分钟等较短的时长。这样,用户在目标时段内的能量和步频可以保持在一个较小的变化范围内,以便于得到目标时段对应的目标运动能量等级和目标步频等级。For reference, the target period may be a shorter duration such as one minute. In this way, the energy and cadence of the user in the target period can be kept within a small variation range, so as to obtain the target exercise energy level and the target cadence level corresponding to the target period.
例如,在目标时段内,用户一直处于匀速跑步,且保持习惯性的摆手动作,以确保能量和步频可以保持在一个较小的变化范围内。For example, during the target period, the user has been running at a constant speed and maintained a habitual waving motion to ensure that energy and cadence can be kept within a small variation range.
可选地,电子设备采集加速度传感器数据,利用加速度传感器数据计算目标时段对应的目标运动能量等级和目标步频等级。Optionally, the electronic device collects acceleration sensor data, and uses the acceleration sensor data to calculate the target motion energy level and the target cadence level corresponding to the target time period.
例如,在目标时段内,可计算每个时刻的运动能量等级和步频等级,根据每个时刻的运动能量等级和步频等级,得到出现频繁的运动能量等级和步频等级,作为目标时段对应的目标运动能量等级和目标步频等级。For example, within the target period, the exercise energy level and cadence level at each moment can be calculated, and according to the exercise energy level and cadence level at each moment, the frequently occurring exercise energy level and cadence level can be obtained as the corresponding target period. target exercise energy level and target cadence level.
又如,在目标时段内,可计算每个时刻的运动能量等级和步频等级,根据每个时刻的运动能量等级和步频等级,得到目标时段平均的运动能量等级和步频等级,作为目标时段对应的目标运动能量等级和目标步频等级。For another example, in the target period, the exercise energy level and cadence level at each moment can be calculated, and according to the exercise energy level and cadence level at each moment, the average exercise energy level and cadence level in the target period can be obtained as the target. The target exercise energy level and target cadence level corresponding to the time period.
另外,在利用加速度传感器数据计算目标时段对应的目标运动能量等级和目标步频等级的情况下,还可结合电子设备中记录的年龄、性别、身高、体重等与用户运动相关的信息,以提高计算目标运动能量等级和目标步频等级的准确度。In addition, in the case of using the acceleration sensor data to calculate the target exercise energy level and the target cadence level corresponding to the target period, it can also be combined with the age, gender, height, weight and other information related to the user's exercise recorded in the electronic device to improve the performance. Calculates the accuracy of the target exercise energy level and the target cadence level.
可选地,用户在实际运动时,运动特征的变化较大,因此,在一次运动中,出现的运动场景也包括很多个。例如,一次运动中,用户可能会出现快跑、慢跑、慢走等多种状态,每个状态对应一个运动场景。这样,为了实现在各个运动场景中对得到的步长进行校正,用户可预先以各种运动特征,来获取各个运动特征对应的运动场景的校正比例。Optionally, when the user is actually exercising, the motion characteristics vary greatly, and therefore, in one motion, there are many motion scenes that appear. For example, during an exercise, the user may appear in various states such as fast running, jogging, and slow walking, and each state corresponds to a sports scene. In this way, in order to correct the obtained step size in each motion scene, the user can obtain the correction ratio of the motion scene corresponding to each motion feature by using various motion features in advance.
在该步骤之前,预先将各个运动能量划分为多个等级,以及将各个步频划分为多个等级。Before this step, each motion energy is divided into a plurality of grades in advance, and each cadence is divided into a plurality of grades.
对应地,在本实施例中,获取目标时段的目标运动能量的取值,根据该取值,确定其所属的等级;以及获取目标时段的目标步频的取值,根据该取值,确定其所属的等级。Correspondingly, in this embodiment, the value of the target motion energy in the target period is obtained, and the level to which it belongs is determined according to the value; and the value of the target cadence in the target period is obtained, and according to the value, the the class to which it belongs.
步骤S2:根据目标运动特征信息,确定目标时段所对应的目标运动场景。Step S2: Determine the target motion scene corresponding to the target time period according to the target motion feature information.
在该步骤中,将目标运动能量等级和目标步频等级结合,确定为一个运动场景,即目标运动场景。In this step, the target motion energy level and the target cadence level are combined to determine a motion scene, that is, the target motion scene.
可选地,基于不同的运动能量等级和不同的步频等级,可划分出多个运动场景,从而基于不同的场景,得到适用于该场景的校正比例,进而在不同的运动场景下实现步长的校正。这样,可提高各个场景下获取步长的准确率。Optionally, based on different motion energy levels and different cadence levels, multiple motion scenes can be divided, so that based on different scenes, a correction ratio suitable for the scene can be obtained, and then the step size can be realized in different motion scenes. 's correction. In this way, the accuracy of obtaining the step size in each scene can be improved.
其中,运动场景划分得越细致,对提高获取步长准确率越有帮助。Among them, the more detailed the motion scene is divided, the more helpful it is to improve the accuracy of obtaining step size.
步骤S3:分别获取目标时段内的第一运动距离和第二运动距离。Step S3: respectively acquiring the first movement distance and the second movement distance within the target period.
其中,第一运动距离由预设方式计算得到,第二运动距离由测量得 到。Wherein, the first movement distance is calculated by a preset method, and the second movement distance is obtained by measurement.
可选地,预设方式为背景技术中的算法。该算法包括利用函数关系计算步长,以及将一段运动时间内的步长向量与步数向量做内积,计算运动距离。Optionally, the preset manner is an algorithm in the background art. The algorithm includes calculating the step size by using the functional relationship, and taking the inner product of the step size vector and the step number vector within a period of motion to calculate the motion distance.
可选地,第二运动距离是真实的距离数据,可由全球定位系统(Global Positioning System,简称GPS)设备测量而来,或者可由跑步机等高精度设备测量而来。Optionally, the second movement distance is real distance data, which can be measured by a global positioning system (Global Positioning System, GPS for short) device, or can be measured by a high-precision device such as a treadmill.
本实施例的应用场景如,目标时段结束后,一方面计算出第一运动距离,另一方面,弹出结束运动确认框,用户确认后,弹出距离校准界面,用户在距离校准界面输入第二运动距离。从而在该步骤中获取第一运动距离和第二运动距离。The application scenario of this embodiment is, for example, after the target period ends, on the one hand, the first movement distance is calculated, and on the other hand, the end movement confirmation box pops up. After the user confirms, the distance calibration interface pops up, and the user inputs the second movement on the distance calibration interface. distance. Thus, the first movement distance and the second movement distance are obtained in this step.
可选地,为了避免在距离校准界面出现数据丢失的情况,提出一下方案:一、校准界面不支持右滑等返回,且灭屏不退出;二、当处于距离校准界面时,若用户长按上键使得电子设备关机、或者电子设备自动关机等,关机前保存第一运动距离;三、当消息通知、电话、闹钟、计时器等画面临时显示,依旧返回到距离校准界面。Optionally, in order to avoid data loss in the distance calibration interface, the following solutions are proposed: 1. The calibration interface does not support right swipe to return, and the screen is turned off without exiting; 2. When in the distance calibration interface, if the user long presses The up button makes the electronic device shut down, or the electronic device is automatically shut down, etc., and the first movement distance is saved before shutting down.
步骤S4:根据第一运动距离和第二运动距离,确定目标运动场景的目标校正比例。Step S4: Determine the target correction ratio of the target movement scene according to the first movement distance and the second movement distance.
在该步骤得到的目标校正比例,用于在目标运动场景中对有预设方式计算而来的步长进行校正,以提高获取步长的准确率。The target correction ratio obtained in this step is used to correct the step size calculated by a preset method in the target motion scene, so as to improve the accuracy of obtaining the step size.
目标校正比例可以是第一运动距离与第二运动距离的比值,还可以是第二运动距离与第一运动距离的比值,还有是结合一些系数而来的比值,以实际情况而定。The target correction ratio may be the ratio of the first movement distance to the second movement distance, or the ratio of the second movement distance to the first movement distance, or a ratio obtained by combining some coefficients, depending on the actual situation.
步骤S5:在运动模式下,根据目标时刻的运动特征信息,确定目标时刻为目标运动场景。Step S5: In the motion mode, according to the motion feature information of the target time, determine the target time as the target motion scene.
可参考地,用户点击手表上的“室内跑步模式”,进入运动模式。For reference, the user clicks "indoor running mode" on the watch to enter the sports mode.
在运动模式下,可实时获取每个时刻的运动特征信息,运动特征信息至少包括运动能量等级和步频等级,从而根据获取的运动能量等级和步频等级等运动特征信息,确定每个时刻对应的运动场景。In the sports mode, the motion feature information at each moment can be obtained in real time, and the motion feature information includes at least the motion energy level and the cadence level. sports scene.
其中,目标时刻为任意时刻,该时刻为前述得到的目标运动场景。Wherein, the target time is any time, and the time is the target motion scene obtained above.
步骤S6:获取目标时刻对应的步长为第一步长。Step S6: the step size corresponding to the acquisition target time is the first step size.
其中,第一步长由预设方式计算得到。The first step length is calculated by a preset method.
基于背景技术中的算法,可算出该时刻对应的步长为第一步长。Based on the algorithm in the background art, the step size corresponding to this moment can be calculated as the first step size.
在该步骤中,获取第一步长。In this step, the first step length is obtained.
其中,第一步长为校正前的步长。Among them, the first step length is the step length before correction.
步骤S7:根据第一步长和目标校正比例,更新目标时刻对应的步长为第二步长。Step S7: According to the first step length and the target correction ratio, update the step size corresponding to the target time as the second step size.
当目标时刻对应为目标运动场景时,利用目标运动场景的目标校正比例,对第一步长进行校正,以得到校正后的第二步长,作为目标时刻对应的步长。When the target moment corresponds to the target motion scene, the first step length is corrected by using the target correction ratio of the target motion scene to obtain the corrected second step size as the step size corresponding to the target moment.
进一步地,在运动模式下,基于各个时刻校正后的步长,把一段时间内的步长向量与步数向量做内积得到运动距离,使得运动距离与真实距离更接近。Further, in the motion mode, based on the corrected step size at each moment, the inner product of the step size vector and the step number vector within a period of time is used to obtain the motion distance, so that the motion distance is closer to the real distance.
这样,在本申请的实施例中,提供了一种步长获取方法。首先,在校正模式下,用户可基于较为稳定的运动特征(如稳定的运动速度等)进行运动,从而电子设备可输入该运动特征所对应的运动场景。其中,在校正模式下,可获取校正模式所处的目标时段的目标运动能量等级和目标步频等目标运动特征信息,作为该时段的运动特征,从而根据目标运动特征信息,确定与目标运动特征信息对应的目标运动场景。其次,目标时段结束后,按照预设方式计算得来第一运动距离,以及由地图等工具测量得来第二运动距离,结合第一运动距离和第二运动距离,得到适用于目标运动场景的目标校正比例。基于上述校正模式,可得到各个运动场景的校正比例。然后,用户在运动模式下进行运动,可根据用户每个时刻的运动能量等级和步频等级等运动特征信息,确定每个时刻所对应的运动场景。从而,在每个时刻,基于预设方式得到对应的第一步长后,可利用该时刻对应的运动场景的校正比例进行校正,以得到校正后的第二步长。可见,校正后的第二步长相比于第一步长,结合了用户实际的运动特征,使得最终获取的步长更加准确,从而有效提高步长获取方法的准确率。In this way, in the embodiments of the present application, a step size acquisition method is provided. First, in the correction mode, the user can exercise based on a relatively stable motion feature (such as a stable motion speed, etc.), so that the electronic device can input a motion scene corresponding to the motion feature. Among them, in the correction mode, the target motion feature information such as the target motion energy level and the target stride frequency of the target period in which the correction mode is located can be obtained as the motion feature of the period, so as to determine the target motion feature according to the target motion feature information. The target motion scene corresponding to the information. Secondly, after the target period ends, the first movement distance is calculated according to the preset method, and the second movement distance is measured by tools such as maps. Target correction scale. Based on the above correction mode, the correction ratio of each motion scene can be obtained. Then, when the user exercises in the exercise mode, the exercise scene corresponding to each moment can be determined according to the motion feature information such as the user's exercise energy level and cadence level at each moment. Therefore, at each moment, after the corresponding first step size is obtained based on the preset method, the correction ratio of the motion scene corresponding to the moment may be used to perform correction to obtain the corrected second step size. It can be seen that, compared with the first step, the corrected second step is combined with the actual motion characteristics of the user, so that the final obtained step is more accurate, thereby effectively improving the accuracy of the step obtaining method.
需要说明的是,运动模式也可以作为校正模式。例如,在运动模式下,用户始终处于匀速跑步中,从而在运动模式结束后,可输入测量而来的运动距离,以得到校正比例。It should be noted that the sports mode can also be used as the correction mode. For example, in the exercise mode, the user is always running at a constant speed, so after the exercise mode ends, the measured exercise distance can be input to obtain the correction ratio.
在本申请另一个实施例的步长获取方法的流程中,第一矩阵包括N×M个元素,N、M为正整数。在第一矩阵中,包括N个运动能量等级和M个步频等级,任意一个运动能量等级与任意一个步频等级组合,用于表示一个运动场景。In the flow of the step size obtaining method according to another embodiment of the present application, the first matrix includes N×M elements, and N and M are positive integers. In the first matrix, N motion energy levels and M cadence levels are included, and any motion energy level is combined with any cadence level to represent a motion scene.
如图2所示,步骤S2,包括:As shown in Figure 2, step S2 includes:
子步骤A1:根据目标运动特征信息包括的目标运动能量等级和目标步频等级,在第一矩阵中标记第一目标元素。Sub-step A1: Mark the first target element in the first matrix according to the target motion energy level and the target cadence level included in the target motion feature information.
其中,第一目标元素用于表示目标运动场景。Wherein, the first target element is used to represent the target motion scene.
可选地,把运动能量分成0~9档,步频分为0~9档,构造一个二维矩阵,即第一矩阵。Optionally, the motion energy is divided into 0-9 grades, and the step frequency is divided into 0-9 grades to construct a two-dimensional matrix, that is, the first matrix.
在第一矩阵中,1~10行分别对应10个档位的运动能量,1~10行对应的运动能量逐行增加。其中,第0行作为备用,暂不存放元素,以用于扩展更多的运动场景。1~10列分别对应10个档位的步频,1~10列对应的步频逐列递减。第1列对应步频大于3.4步每秒,向右对应的步频依次递减,第10列保存非跑步的特征,例如在跑步机上走路或者站立等。其中,第0列作为备用,暂不存放元素,以用于扩展更多的运动场景。In the first matrix, rows 1 to 10 correspond to the motion energies of 10 gears respectively, and the motion energies corresponding to rows 1 to 10 increase row by row. Among them, row 0 is used as a backup, and elements are not stored for the time being to expand more sports scenes. Columns 1 to 10 correspond to 10 gears of cadence respectively, and the cadences corresponding to 1 to 10 columns decrease column by column. The first column corresponds to a stride frequency greater than 3.4 steps per second, and the corresponding stride frequency to the right decreases in turn. The tenth column saves non-running features, such as walking or standing on a treadmill. Among them, the 0th column is used as a backup, and elements are not stored for the time being to expand more sports scenes.
在该步骤中,在校正模式下,获取目标时段的目标运功能量等级和目标步频,再在第一矩阵中,找到对应哪一行哪一列,从而将对应位置的元素,作为第一目标元素,并进行标记,以将标记的第一目标元素与目标校正比例进行关联,用于后续的步长校正中。In this step, in the correction mode, the target functional energy level and the target stride frequency of the target period are obtained, and then in the first matrix, the corresponding row and column are found, so that the element at the corresponding position is used as the first target element , and mark it to associate the marked first target element with the target correction ratio for use in the subsequent step size correction.
在本实施例中,通过构建矩阵的方式,可将多种运动场景通过矩阵中的元素表现出来。其中,每个等级的运动能量和每个等级的步频结合,均可对应矩阵中的一个元素,而每个元素对应一个运动场景。这样,通过矩阵的方式,结合运动能量和步频的不同组合方式,可在矩阵中划分出多个运动场景。第一矩阵中的元素越多,划分场景越精细,从而可以在更多的运动场景中校正步长,进而大大提高获取步长的准确率。其中,可通过标 记的方式,在第一矩阵中确定目标运动场景,以为后续与目标校正比例关联做准备。In this embodiment, by constructing a matrix, various sports scenes can be represented by elements in the matrix. Wherein, the combination of the motion energy of each level and the cadence of each level can correspond to an element in the matrix, and each element corresponds to a motion scene. In this way, by means of a matrix, combined with different combinations of motion energy and cadence, multiple motion scenes can be divided in the matrix. The more elements in the first matrix, the finer the scene is divided, so that the step size can be corrected in more motion scenes, thereby greatly improving the accuracy of obtaining the step size. Wherein, the target motion scene can be determined in the first matrix by marking, so as to prepare for the subsequent association with the target correction ratio.
在本申请另一个实施例的步长获取方法的流程中,如图3所示,步骤A1,包括:In the flow of the step size acquisition method according to another embodiment of the present application, as shown in FIG. 3 , step A1 includes:
子步骤B1:根据目标时段中的至少两个时刻的运动能量等级和步频等级,分别在第一矩阵中标记每个时刻对应的元素。Sub-step B1: Mark the element corresponding to each moment in the first matrix according to the motion energy level and cadence level of at least two moments in the target period.
可选地,在每个时刻,分别获取当前的运动能量等级和步频等级,从而在第一矩阵中,找到每个时刻对应于哪一行哪一列,并标记每个时刻对应位置的元素。Optionally, at each moment, the current exercise energy level and cadence level are obtained respectively, so as to find which row and which column each moment corresponds to in the first matrix, and mark the element at the corresponding position of each moment.
可选地,对于任意时刻,可基于当前时刻往前1.5秒左右内的时段的数据,计算当前时刻的运动能量,并获取运动能量等级。这样,以时段内的数据进行能量计算,既可以实现对运动能量的计算,又确保了计算结果的时效性。Optionally, for any moment, the movement energy at the current moment may be calculated based on the data of a period of about 1.5 seconds before the current moment, and the movement energy level may be obtained. In this way, the energy calculation is performed with the data in the time period, which can not only realize the calculation of the motion energy, but also ensure the timeliness of the calculation result.
可选地,对于任意时刻,可基于当前时刻的步频,获取当前时刻的步频等级,从而确保步频等级的时效性。Optionally, for any moment, the cadence level at the current moment may be obtained based on the cadence at the current moment, thereby ensuring the timeliness of the cadence level.
子步骤B2:在目标时段的结束时刻,在至少两个被标记的元素中,确定被标记频率最高的前S个元素为第一目标元素。Sub-step B2: At the end of the target period, among the at least two marked elements, determine the first S elements with the highest marked frequency as the first target element.
其中,S为正整数,且S>1。Wherein, S is a positive integer, and S>1.
在该步骤中,在校正模式下,考虑到用户的运动特征可能会出现波动,因此会有多个元素被标记,可将被标记频率最高的前S个元素作为第一目标元素。In this step, in the correction mode, considering that the user's motion characteristics may fluctuate, multiple elements will be marked, and the first S elements with the highest marked frequency may be used as the first target element.
即,目标时段的目标运动场景的数量不限于一个,可以是多个。但目标运动场景的数量也不宜太多,以避免太多的运动场景跨越的运动能量等级和步频等级太大,不能够体现出目标时段的真正运动特征。That is, the number of target motion scenes in the target period is not limited to one, and may be multiple. However, the number of target motion scenes should not be too large, so as to avoid too many motion scenes spanning motion energy levels and stride frequency levels that are too large to reflect the true motion characteristics of the target period.
可选地,S的取值关联于第一矩阵的元素数量。例如,第一矩阵包括100个元素,可将S的取值定义为3,即将被标记频率最高的3个元素作为第一目标元素。Optionally, the value of S is related to the number of elements of the first matrix. For example, the first matrix includes 100 elements, and the value of S can be defined as 3, that is, the 3 elements with the highest marked frequency are used as the first target elements.
在本实施例中,在校正模式下,可通过多个时刻的运动能量等级和步频等级,来确定多个运动场景,再在多个运动场景中,找到出现频率最多 的运动场景,作为目标运动场景,以避免因用户运动特征出现波动,而导致误将不具代表性的运动场景作为目标运动场景。进一步地,在本实施例中,通过标记的方式,在第一矩阵中体现各个时刻的运动场景,以便于从标记情况来找到出现较为频繁的几个运动场景,作为目标运动场景。In this embodiment, in the correction mode, multiple motion scenes can be determined by the motion energy levels and cadence levels at multiple times, and then among the multiple motion scenes, the motion scene with the most frequent occurrences is found as the target Motion scene to avoid the unrepresentative motion scene being mistakenly regarded as the target motion scene due to fluctuation of user motion characteristics. Further, in this embodiment, the motion scenes at each moment are reflected in the first matrix by means of marking, so as to find several motion scenes that appear more frequently from the marked situation as the target motion scenes.
在本申请另一个实施例的步长获取方法的流程中,在目标时段的结束时刻,对第一矩阵中被标记的元素进行分析。若被标记的元素分布离散,认为本次校正模式下产生的数据无效。因被标记的元素分散,说明用户的运动特征不稳定,从而无法基于不稳定的运动特征来确定运动场景。In the flow of the step size obtaining method according to another embodiment of the present application, at the end of the target period, the marked elements in the first matrix are analyzed. If the distribution of marked elements is discrete, the data generated in this calibration mode is considered invalid. Because the marked elements are scattered, it means that the user's motion characteristics are unstable, so that the motion scene cannot be determined based on the unstable motion characteristics.
在本申请另一个实施例的步长获取方法的流程中,在目标时段的开始时刻,第一矩阵的每个元素的取值均为0。In the flow of the step size obtaining method according to another embodiment of the present application, at the start time of the target period, the value of each element of the first matrix is 0.
如图4所示,步骤A1,包括:As shown in Figure 4, step A1 includes:
子步骤C1:通过对第一目标元素的取值累加一个预设值的方式,对第一目标元素进行标记。Sub-step C1: Mark the first target element by accumulating a preset value for the value of the first target element.
可选地,预设值为1。Optionally, the default value is 1.
应用场景如,计算当前的运动能量等级和步频等级,并且找到当前时刻对应于第一矩阵的哪一行哪一列,将对应位置的元素的取值加1。The application scenario is, for example, calculating the current motion energy level and cadence level, and finding which row and column of the first matrix the current moment corresponds to, and adding 1 to the value of the element at the corresponding position.
进一步地,目标时段之后,在第一矩阵中,找到取值最大的前S个元素,即第一目标元素。Further, after the target period, in the first matrix, find the first S elements with the largest value, that is, the first target element.
另一种方案中,目标时段之后,在第一矩阵中,将所有元素的取值除以元素取值的总和,得到百分比,从而找到百分比取值最大的前S个元素,即第一目标元素。In another solution, after the target period, in the first matrix, the values of all elements are divided by the sum of the element values to obtain the percentage, so as to find the first S elements with the largest percentage value, that is, the first target element .
其中,在这一方案中,若得到的百分比均较小,如均没有达到预设百分比,则认为被标记的元素分布离散,用户的运动特征不稳定,本次校正模式下产生的数据无效。Among them, in this solution, if the obtained percentages are all small, if none of them reach the preset percentage, it is considered that the distribution of the marked elements is discrete, the user's motion characteristics are unstable, and the data generated in this correction mode is invalid.
其中,在目标时段的开始时刻之前,需将第一矩阵中的各个元素的取值清零,以避免对本次校正模式产生的数据造成干扰。Wherein, before the start time of the target period, the value of each element in the first matrix needs to be cleared to 0, so as to avoid interference to the data generated by this correction mode.
在本实施例中,提出了一种累加的方式,对第一矩阵中的元素进行标记,标记方法简单,便于通过元素的取值快速第一目标元素。In this embodiment, an accumulation method is proposed to mark the elements in the first matrix, the marking method is simple, and it is convenient to quickly obtain the first target element through the value of the element.
在本申请另一个实施例的步长获取方法的流程中,第二矩阵包括 N×M个元素。第二矩阵中的元素与第一矩阵中的元素一一对应,且第二矩阵中的元素用于表示对应的运动场景的校正比例。In the flow of the step size obtaining method according to another embodiment of the present application, the second matrix includes N×M elements. The elements in the second matrix correspond one-to-one with the elements in the first matrix, and the elements in the second matrix are used to represent the correction ratio of the corresponding motion scene.
如图5所示,步骤S2之后,还包括:As shown in Figure 5, after step S2, it also includes:
步骤D1:根据第一矩阵中的第一目标元素,在第二矩阵中确定与第一目标元素对应的第二目标元素。Step D1: Determine a second target element corresponding to the first target element in the second matrix according to the first target element in the first matrix.
步骤D2:根据目标校正比例,更新第二目标元素的取值。Step D2: Update the value of the second target element according to the target correction ratio.
在本实施例中,构建第二矩阵,第二矩阵与第一矩阵的元素分布一致。In this embodiment, a second matrix is constructed, and the element distribution of the second matrix is consistent with that of the first matrix.
其中,第一矩阵用于保存运动特征组合的运动场景,以及各个运动场景在一次校正模式中的时间长度占比;第二矩阵用于保存与第一矩阵对应的不同运动场景下的校正比例。Wherein, the first matrix is used to save the motion scenes combined with motion features and the time length ratio of each motion scene in one correction mode; the second matrix is used to save the correction ratios in different motion scenes corresponding to the first matrix.
可选地,基于每个用户之间存在个体差异的情况,可将一个用户的所有校正比例在第二矩阵中进行累计。Optionally, all correction ratios for a user may be accumulated in the second matrix based on individual differences between each user.
例如,在第一矩阵中,某行某列对应位置为a1元素,第二矩阵中,同一位置找到a2元素。对于a1元素所表示的运动场景,在一次校正模式下,得到校正比例为b1,则在a2元素当前取值的基础上,根据b1进行更新,以得到更新后的取值为c1。在下一次校正模式下,得到校正比例为b2,则在c1的基础上,根据b2进行更新,以得到更新后的取值为c2。For example, in the first matrix, the corresponding position of a row and a certain column is the a1 element, and in the second matrix, the a2 element is found in the same position. For the motion scene represented by the a1 element, in the one-time correction mode, the correction ratio is b1, then on the basis of the current value of the a2 element, it is updated according to b1 to obtain the updated value of c1. In the next correction mode, the correction ratio is obtained as b2, then on the basis of c1, it is updated according to b2 to obtain the updated value of c2.
可见,对应第二矩阵而言,只要不更改用户信息,第二矩阵中的元素取值不需要恢复初始值。而多次得到的校正比例不断累积,可使得同一运动场景的校正比例越来越精确,从而达到自学习较准的目的。It can be seen that, corresponding to the second matrix, as long as the user information is not changed, the value of the elements in the second matrix does not need to be restored to the initial value. The correction ratios obtained for multiple times are continuously accumulated, which can make the correction ratio of the same motion scene more and more accurate, so as to achieve the purpose of self-learning calibration.
可参考地,电子设备在关机之前,可自动保存第二矩阵中的数据至文件系统里。在下次开机后,先对第二矩阵执行常规的初始化操作,每个元素的取值都置为初始值,然后再把文件系统里保存的第二矩阵中的数据重新加载。For reference, before the electronic device is shut down, the data in the second matrix can be automatically saved to the file system. After the next power-on, first perform a conventional initialization operation on the second matrix, set the value of each element to the initial value, and then reload the data in the second matrix saved in the file system.
在本实施例中,在第一矩阵中确定当前场景对应第一目标元素后,根据第一目标元素所在的行和列,可在第二矩阵中找到对应的第二目标元素,从而将得到的目标校正比例,通过第二目标元素的取值体现出来。这样,用户在运动模式下,针对每个时刻获取的运动能量等级和步频等级, 在第二矩阵中确定对应运动场景的校正比例,实现步长的校正,进而提高获取步长的准确率。In this embodiment, after it is determined in the first matrix that the current scene corresponds to the first target element, according to the row and column where the first target element is located, the corresponding second target element can be found in the second matrix, so that the obtained The target correction ratio is reflected by the value of the second target element. In this way, in the motion mode, the user determines the correction ratio of the corresponding motion scene in the second matrix for the motion energy level and cadence level obtained at each moment, so as to realize the correction of the step size, thereby improving the accuracy of obtaining the step size.
需要说明的是,在运动模式下,可直接在第二矩阵中确定校正比例,以实现步长的校正。另外,还可在第一矩阵中标记运动场景,以用于自学习较准。It should be noted that, in the motion mode, the correction ratio can be directly determined in the second matrix to realize the correction of the step size. Additionally, motion scenes can also be marked in the first matrix for self-learning alignment.
在本申请另一个实施例的步长获取方法的流程中,第二矩阵的每个元素的初始值均为1。如图6所示,步骤D2,包括:In the flow of the step size obtaining method according to another embodiment of the present application, the initial value of each element of the second matrix is 1. As shown in Figure 6, step D2 includes:
子步骤E1:将第二目标元素的取值与目标校正比例相乘,得到更新后的第二目标元素的取值。Sub-step E1: Multiply the value of the second target element by the target correction ratio to obtain the updated value of the second target element.
其中,目标校正比例为第二运动距离与第一运动距离的比值。The target correction ratio is the ratio of the second movement distance to the first movement distance.
在本实施例中,第二矩阵的每个元素的初始值均为1,第二矩阵的元素取值乘以校正比例,从而使得第二矩阵的元素取值可表示校正比例,进而可直接将第二矩阵中的元素取值用于步长的校正中。In this embodiment, the initial value of each element of the second matrix is 1, and the value of the element of the second matrix is multiplied by the correction ratio, so that the value of the element of the second matrix can represent the correction ratio. The values of the elements in the second matrix are used in the correction of the step size.
在本实施例中,基于第二矩阵的对应行和对应列的元素的取值的初始值为1的情况,可通过乘以校正比例的方法,将校正比例直接记录在第二矩阵中。而且,同一运动场景中得到的多个校正比例,可以累乘的方式进行记录,使得校正比例越来越精确。In this embodiment, based on the fact that the initial value of the elements of the corresponding row and the corresponding column of the second matrix is 1, the correction ratio can be directly recorded in the second matrix by multiplying the correction ratio. Moreover, multiple correction ratios obtained in the same motion scene can be recorded in a cumulative manner, so that the correction ratios are more and more accurate.
在本申请另一个实施例的步长获取方法的应用场景中,在校正模式下,若检测到用户停止运动,或者检测到达到预设时间,则认为校正模式结束,从而提示用户开始校准距离。In the application scenario of the step size acquisition method of another embodiment of the present application, in the calibration mode, if it is detected that the user stops moving, or the preset time is detected, the calibration mode is considered to be over, and the user is prompted to start calibrating the distance.
其中,在一种情况下,若第一运动距离数值小于0.10公里,则弹框会提示“运动距离过短结束运动将无记录确定要结束运动吗”;在另一种情况下,若第一运动距离数值大于或者等于0.10公里,则进入距离较准界面。Among them, in one case, if the value of the first movement distance is less than 0.10 kilometers, the pop-up box will prompt "If the movement distance is too short, there will be no record to end the movement. Are you sure you want to end the movement?"; If the movement distance value is greater than or equal to 0.10 km, enter the distance calibration interface.
进一步地,参见图7,在距离校准界面,取得运动报告的第一运动距离后,此距离作为基准(默认值),计算出每格增量(校准界面每上下滑动一格的距离的增减幅度),公式为:每格增量=0.01*((取整(取整(x)/3))+1),其中,x为第一运动距离;然后,选择列表增长方向,可选的个数为50;减小方向,可选的个数最大值为50,不可出现负数和零。Further, referring to Fig. 7, in the distance calibration interface, after obtaining the first movement distance of the motion report, this distance is used as a reference (default value), and calculates the increment of every grid (the increase or decrease of the distance of every sliding one grid up and down in the calibration interface). Amplitude), the formula is: increment per grid = 0.01*((rounding (rounding (x)/3))+1), where x is the first movement distance; then, select the growth direction of the list, optional The number is 50; in the decreasing direction, the maximum optional number is 50, and negative numbers and zeros are not allowed.
Figure PCTCN2022072433-appb-000001
Figure PCTCN2022072433-appb-000001
表1Table 1
参见表1,根据第一运动距离,来设计一种距离校准方案,以便于用户输入第二运动距离。Referring to Table 1, according to the first movement distance, a distance calibration scheme is designed to facilitate the user to input the second movement distance.
进一步地,用户选择第二运动距离后,将该距离作为实际运动距离,并重新计算平均配速、折线配速、最大配速和最小配速,存入运动报告,并显示在运动报告画面上。当再次从运动记录上查看室内运动记录时,显示校准后的距离和配速。Further, after the user selects the second exercise distance, the distance is taken as the actual exercise distance, and the average pace, broken line pace, maximum pace and minimum pace are recalculated, stored in the exercise report, and displayed on the exercise report screen. . When viewing the indoor exercise record from the exercise record again, the calibrated distance and pace are displayed.
当距离校准界面选择的距离与原数据一致,则不需要再次重新计算平均配速。When the distance selected in the distance calibration interface is consistent with the original data, there is no need to recalculate the average pace again.
其中,平均配速=(运动时长\校准距离);Among them, the average pace = (exercise duration\calibration distance);
配速伸缩比例X=(算法给出的距离\校准距离);Pace scaling ratio X=(distance given by algorithm\calibration distance);
最大配速=算法给出的最大配速*X;Maximum pace = maximum pace given by the algorithm *X;
最小配速=算法给出的最小配速*X;Minimum pace = minimum pace given by the algorithm *X;
折线配速=折线配速*X。Broken line pace = broken line pace *X.
本实施例提供了一种通过设置多个调节格,供用户输入第二运动距离的方式。这样,用户通过简单的调整操作,就可完成输入,操作简单。同时,这样的输入方式,可直观地体现出与第一运动距离之间的关系,以便于用户了解电子设备的计算偏差。This embodiment provides a method for the user to input the second movement distance by setting a plurality of adjustment grids. In this way, the user can complete the input through a simple adjustment operation, and the operation is simple. At the same time, such an input method can intuitively reflect the relationship with the first movement distance, so that the user can understand the calculation deviation of the electronic device.
综上,本申请的实施例中,根据不同运动特征组合划分为不同的运动场景,针对各种运动场景(慢中快各种速度跑)逐个校正,得到各个运动场景中的校正比例。可见,本申请考虑到每个人个体差异导致运动习惯不同,从而对步长造成的影响,使得每一种运动场景下的步长都得到校正,从而使得每种场景下最终获取的步长,达到很高的准确率。经测试,本申请实施例相对于现有技术,获取步长的准确率提高了12个百分点,可达到了97%的准确率。To sum up, in the embodiment of the present application, different motion scenes are divided into different motion scenes according to different motion feature combinations, and each motion scene (slow, medium and fast running at various speeds) is corrected one by one to obtain the correction ratio in each motion scene. It can be seen that this application takes into account the individual differences of each person resulting in different exercise habits, thereby affecting the step size, so that the step size in each motion scene is corrected, so that the final step size obtained in each scene can reach Very high accuracy. After testing, compared with the prior art, the embodiment of the present application improves the accuracy of obtaining the step size by 12 percentage points, and can reach an accuracy of 97%.
需要说明的是,本申请实施例提供的步长获取方法,执行主体可以为步长获取装置,或者该步长获取装置中的用于执行步长获取方法的控制模块。本申请实施例中以步长获取装置执行步长获取方法为例,说明本申请实施例提供的步长获取方法的步长获取装置。It should be noted that, in the step size acquisition method provided by the embodiments of the present application, the execution body may be a step size acquisition device, or a control module in the step size acquisition device for executing the step size acquisition method. In the embodiment of the present application, the step size acquisition device of the step size acquisition method provided by the embodiment of the present application is described by taking the step size acquisition device executing the step size acquisition method as an example.
图8示出了本申请另一个实施例的步长获取装置的框图,包括:8 shows a block diagram of an apparatus for obtaining a step size according to another embodiment of the present application, including:
第一获取模块10,用于在校正模式下,获取校正模式所处的目标时段内的目标运动特征信息;The first acquisition module 10 is configured to acquire, in the correction mode, target motion feature information within the target time period in which the correction mode is located;
第一确定模块20,用于根据目标运动特征信息,确定目标时段所对应的目标运动场景;The first determining module 20 is configured to determine the target motion scene corresponding to the target time period according to the target motion feature information;
第二获取模块30,用于分别获取目标时段内的第一运动距离和第二运动距离;第一运动距离由预设方式计算得到,第二运动距离由测量得到;The second obtaining module 30 is used to obtain the first movement distance and the second movement distance respectively within the target time period; the first movement distance is calculated by a preset method, and the second movement distance is obtained by measurement;
第二确定模块40,用于根据第一运动距离和第二运动距离,确定目标运动场景的目标校正比例;The second determination module 40 is configured to determine the target correction ratio of the target movement scene according to the first movement distance and the second movement distance;
第三确定模块50,用于在运动模式下,根据目标时刻的运动特征信息,确定目标时刻为目标运动场景;The third determining module 50 is configured to, in the motion mode, determine the target moment as the target motion scene according to the motion feature information of the target moment;
第三获取模块60,用于获取目标时刻对应的步长为第一步长;第一步长由预设方式计算得到;The third obtaining module 60 is used to obtain the step size corresponding to the target moment as the first step length; the first step length is calculated by a preset method;
校正模块70,用于根据第一步长和目标校正比例,更新目标时刻对应的步长为第二步长;The correction module 70 is configured to update the step size corresponding to the target moment to the second step size according to the first step length and the target correction ratio;
其中,运动特征信息至少包括运动能力等级和步频等级。Wherein, the motion feature information includes at least a motion ability level and a cadence level.
这样,在本申请的实施例中,提供了一种步长获取方法。首先,在校正模式下,用户可基于较为稳定的运动特征(如稳定的运动速度等)进行运动,从而电子设备可输入该运动特征所对应的运动场景。其中,在校正模式下,可获取校正模式所处的目标时段的目标运动能量等级和目标步频等目标运动特征信息,作为该时段的运动特征,从而根据目标运动特征信息,确定与目标运动特征信息对应的目标运动场景。其次,目标时段结束后,按照预设方式计算得来第一运动距离,以及由地图等工具测量得来第二运动距离,结合第一运动距离和第二运动距离,得到适用于目标运动场景的目标校正比例。基于上述校正模式,可得到各个运动场景的校正比例。然后,用户在运动模式下进行运动,可根据用户每个时刻的运动能量等级和步频等级等运动特征信息,确定每个时刻所对应的运动场景。从而,在每个时刻,基于预设方式得到对应的第一步长后,可利用该时刻对应的运动场景的校正比例进行校正,以得到校正后的第二步长。可见,校正后的第二步长相比于第一步长,结合了用户实际的运动特征,使得最终获取的步长更加准确,从而有效提高步长获取方法的准确率。In this way, in the embodiments of the present application, a step size acquisition method is provided. First, in the correction mode, the user can exercise based on a relatively stable motion feature (such as a stable motion speed, etc.), so that the electronic device can input a motion scene corresponding to the motion feature. Among them, in the correction mode, the target motion feature information such as the target motion energy level and the target stride frequency of the target period in which the correction mode is located can be obtained as the motion feature of the period, so as to determine the target motion feature according to the target motion feature information. The target motion scene corresponding to the information. Secondly, after the target period ends, the first movement distance is calculated according to the preset method, and the second movement distance is measured by tools such as maps. Target correction scale. Based on the above correction mode, the correction ratio of each motion scene can be obtained. Then, when the user exercises in the exercise mode, the exercise scene corresponding to each moment can be determined according to the motion feature information such as the user's exercise energy level and cadence level at each moment. Therefore, at each moment, after the corresponding first step size is obtained based on the preset method, the correction ratio of the motion scene corresponding to the moment may be used to perform correction to obtain the corrected second step size. It can be seen that, compared with the first step, the corrected second step is combined with the actual motion characteristics of the user, so that the final obtained step is more accurate, thereby effectively improving the accuracy of the step obtaining method.
可选地,第一矩阵包括N×M个元素,N、M为正整数;在第一矩阵中,包括N个运动能量等级和M个步频等级,任意一个运动能量等级与任意一个步频等级组合,用于表示一个运动场景;Optionally, the first matrix includes N×M elements, and N and M are positive integers; in the first matrix, it includes N motion energy levels and M cadence levels, and any motion energy level and any cadence level. Level combination, used to represent a sports scene;
第一确定模块20,包括:The first determination module 20 includes:
标记单元,用于根据目标运动特征信息包括的目标运动能量等级和目标步频等级,在第一矩阵中标记第一目标元素;a marking unit for marking the first target element in the first matrix according to the target movement energy level and the target cadence level included in the target movement feature information;
其中,第一目标元素用于表示目标运动场景。Wherein, the first target element is used to represent the target motion scene.
可选地,标记单元,包括:Optionally, a marking unit, including:
多元素标记子单元,用于根据目标时段中的至少两个时刻的运动能量等级和步频等级,分别在第一矩阵中标记每个时刻对应的元素;The multi-element marking subunit is used to mark the element corresponding to each moment in the first matrix respectively according to the motion energy level and the cadence level of at least two moments in the target period;
多元素确定子单元,用于在目标时段的结束时刻,在至少两个被标记 的元素中,确定被标记频率最高的前S个元素为第一目标元素;Multi-element determination subunit, for at the end moment of the target period, in at least two marked elements, it is determined that the first S elements with the highest marked frequency are the first target elements;
其中,S为正整数,且S>1。Wherein, S is a positive integer, and S>1.
可选地,在目标时段的开始时刻,第一矩阵的每个元素的取值均为0;标记单元,包括:Optionally, at the beginning of the target period, the value of each element of the first matrix is 0; the marking unit includes:
取值累加子单元,用于通过对第一目标元素的取值累加一个预设值的方式,对第一目标元素进行标记。The value accumulation subunit is used to mark the first target element by accumulating a preset value for the value of the first target element.
可选地,第二矩阵包括N×M个元素;第二矩阵中的元素与第一矩阵中的元素一一对应,且第二矩阵中的元素用于表示对应的运动场景的校正比例;Optionally, the second matrix includes N×M elements; the elements in the second matrix are in one-to-one correspondence with the elements in the first matrix, and the elements in the second matrix are used to represent the correction ratio of the corresponding motion scene;
装置,还包括:device, which also includes:
第四确定模块,用于根据第一矩阵中的第一目标元素,在第二矩阵中确定与第一目标元素对应的第二目标元素;a fourth determination module, configured to determine a second target element corresponding to the first target element in the second matrix according to the first target element in the first matrix;
更新模块,用于根据目标校正比例,更新第二目标元素的取值。The updating module is configured to update the value of the second target element according to the target correction ratio.
可选地,第二矩阵的每个元素的初始值均为1;更新模块,包括:Optionally, the initial value of each element of the second matrix is 1; the update module includes:
取值更新单元,用于将第二目标元素的取值与目标校正比例相乘,得到更新后的第二目标元素的取值;A value update unit, for multiplying the value of the second target element with the target correction ratio to obtain the value of the updated second target element;
其中,目标校正比例为第二运动距离与第一运动距离的比值。The target correction ratio is the ratio of the second movement distance to the first movement distance.
本申请实施例中的步长获取装置可以是装置,也可以是终端中的部件、集成电路、或芯片。该装置可以是移动电子设备,也可以为非移动电子设备。示例性的,移动电子设备可以为手机、平板电脑、笔记本电脑、掌上电脑、车载电子设备、可穿戴设备、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本或者个人数字助理(personal digital assistant,PDA)等,非移动电子设备可以为服务器、网络附属存储器(Network Attached Storage,NAS)、个人计算机(personal computer,PC)、电视机(television,TV)、柜员机或者自助机等,本申请实施例不作具体限定。The apparatus for obtaining the step size in this embodiment of the present application may be an apparatus, or may be a component, an integrated circuit, or a chip in a terminal. The apparatus may be a mobile electronic device or a non-mobile electronic device. Exemplarily, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palmtop computer, an in-vehicle electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (personal digital assistant). assistant, PDA), etc., non-mobile electronic devices can be servers, network attached storage (Network Attached Storage, NAS), personal computer (personal computer, PC), television (television, TV), teller machine or self-service machine, etc., this application Examples are not specifically limited.
本申请实施例中的步长获取装置可以为具有操作系统的装置。该操作系统可以为安卓(Android)操作系统,可以为ios操作系统,还可以为其他可能的操作系统,本申请实施例不作具体限定。The step size obtaining device in this embodiment of the present application may be a device having an operating system. The operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, which are not specifically limited in the embodiments of the present application.
本申请实施例提供的步长获取装置能够实现上述方法实施例实现的各个过程,为避免重复,这里不再赘述。The step size obtaining apparatus provided in the embodiment of the present application can implement each process implemented by the foregoing method embodiment, and in order to avoid repetition, details are not repeated here.
可选地,如图9所示,本申请实施例还提供一种电子设备100,包括处理器101,存储器102,存储在存储器102上并可在所述处理器101上运行的程序或指令,该程序或指令被处理器101执行时实现上述任一种步长获取方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。Optionally, as shown in FIG. 9 , an embodiment of the present application further provides an electronic device 100, including a processor 101, a memory 102, a program or instruction stored in the memory 102 and executable on the processor 101, When the program or instruction is executed by the processor 101, each process of any one of the foregoing step size acquisition method embodiments can be implemented, and the same technical effect can be achieved. To avoid repetition, details are not described here.
需要说明的是,本申请实施例中的电子设备包括上述所述的移动电子设备和非移动电子设备。It should be noted that the electronic devices in the embodiments of the present application include the aforementioned mobile electronic devices and non-mobile electronic devices.
图10为实现本申请实施例的一种电子设备的硬件结构示意图。FIG. 10 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
该电子设备1000包括但不限于:射频单元1001、网络模块1002、音频输出单元1003、输入单元1004、传感器1005、显示单元1006、用户输入单元1007、接口单元1008、存储器1009、处理器1010等部件。The electronic device 1000 includes but is not limited to: a radio frequency unit 1001, a network module 1002, an audio output unit 1003, an input unit 1004, a sensor 1005, a display unit 1006, a user input unit 1007, an interface unit 1008, a memory 1009, a processor 1010 and other components .
本领域技术人员可以理解,电子设备1000还可以包括给各个部件供电的电源(比如电池),电源可以通过电源管理系统与处理器1010逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。图10中示出的电子设备结构并不构成对电子设备的限定,电子设备可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置,在此不再赘述。Those skilled in the art can understand that the electronic device 1000 may also include a power source (such as a battery) for supplying power to various components, and the power source may be logically connected to the processor 1010 through a power management system, so that the power management system can manage charging, discharging, and power functions. consumption management and other functions. The structure of the electronic device shown in FIG. 10 does not constitute a limitation on the electronic device, and the electronic device may include more or less components than the one shown, or combine some components, or arrange different components, which will not be repeated here. .
其中,处理器1010,用于在校正模式下,获取所述校正模式所处的目标时段内的目标运动特征信息;根据所述目标运动特征信息,确定所述目标时段所对应的目标运动场景;分别获取所述目标时段内的第一运动距离和第二运动距离;所述第一运动距离由预设方式计算得到,所述第二运动距离由测量得到;根据所述第一运动距离和所述第二运动距离,确定所述目标运动场景的目标校正比例;在运动模式下,根据目标时刻的运动特征信息,确定所述目标时刻为所述目标运动场景;获取所述目标时刻对应的步长为第一步长;所述第一步长由所述预设方式计算得到;根据所述第一步长和所述目标校正比例,更新所述目标时刻对应的步长为第二步长;其中,所述运动特征信息至少包括运动能力等级和步频等级。Wherein, the processor 1010 is configured to, in the correction mode, acquire target motion feature information within the target period in which the correction mode is located; and determine the target motion scene corresponding to the target period according to the target motion feature information; The first movement distance and the second movement distance in the target period are obtained respectively; the first movement distance is calculated by a preset method, and the second movement distance is obtained by measurement; according to the first movement distance and the The second movement distance is determined, and the target correction ratio of the target movement scene is determined; in the movement mode, according to the movement feature information at the target moment, it is determined that the target moment is the target movement scene; the step corresponding to the target moment is obtained. length is the first step length; the first step length is calculated by the preset method; according to the first step length and the target correction ratio, update the step length corresponding to the target moment to the second step length ; wherein, the motion feature information includes at least a motion ability level and a cadence level.
这样,在本申请的实施例中,提供了一种步长获取方法。首先,在校正模式下,用户可基于较为稳定的运动特征(如稳定的运动速度等)进行运动,从而电子设备可输入该运动特征所对应的运动场景。其中,在校正模式下,可获取校正模式所处的目标时段的目标运动能量等级和目标步频等目标运动特征信息,作为该时段的运动特征,从而根据目标运动特征信息,确定与目标运动特征信息对应的目标运动场景。其次,目标时段结束后,按照预设方式计算得来第一运动距离,以及由地图等工具测量得来第二运动距离,结合第一运动距离和第二运动距离,得到适用于目标运动场景的目标校正比例。基于上述校正模式,可得到各个运动场景的校正比例。然后,用户在运动模式下进行运动,可根据用户每个时刻的运动能量等级和步频等级等运动特征信息,确定每个时刻所对应的运动场景。从而,在每个时刻,基于预设方式得到对应的第一步长后,可利用该时刻对应的运动场景的校正比例进行校正,以得到校正后的第二步长。可见,校正后的第二步长相比于第一步长,结合了用户实际的运动特征,使得最终获取的步长更加准确,从而有效提高步长获取方法的准确率。In this way, in the embodiments of the present application, a step size acquisition method is provided. First, in the correction mode, the user can exercise based on a relatively stable motion feature (such as a stable motion speed, etc.), so that the electronic device can input a motion scene corresponding to the motion feature. Among them, in the correction mode, the target motion feature information such as the target motion energy level and the target stride frequency of the target period in which the correction mode is located can be obtained as the motion feature of the period, so as to determine the target motion feature according to the target motion feature information. The target motion scene corresponding to the information. Secondly, after the target period ends, the first movement distance is calculated according to the preset method, and the second movement distance is measured by tools such as maps. Target correction scale. Based on the above correction mode, the correction ratio of each motion scene can be obtained. Then, when the user exercises in the exercise mode, the exercise scene corresponding to each moment can be determined according to the motion feature information such as the user's exercise energy level and cadence level at each moment. Therefore, at each moment, after the corresponding first step size is obtained based on the preset method, the correction ratio of the motion scene corresponding to the moment may be used to perform correction to obtain the corrected second step size. It can be seen that, compared with the first step, the corrected second step is combined with the actual motion characteristics of the user, so that the final obtained step is more accurate, thereby effectively improving the accuracy of the step obtaining method.
可选地,第一矩阵包括N×M个元素,N、M为正整数;在所述第一矩阵中,包括N个运动能量等级和M个步频等级,任意一个运动能量等级与任意一个步频等级组合,用于表示一个运动场景;处理器1010,还用于根据所述目标运动特征信息包括的目标运动能量等级和目标步频等级,在所述第一矩阵中标记第一目标元素;其中,所述第一目标元素用于表示所述目标运动场景。Optionally, the first matrix includes N×M elements, and N and M are positive integers; in the first matrix, it includes N motion energy levels and M cadence levels, any one motion energy level and any one. The cadence level combination is used to represent a motion scene; the processor 1010 is further configured to mark the first target element in the first matrix according to the target motion energy level and the target cadence level included in the target motion feature information ; wherein, the first target element is used to represent the target motion scene.
可选地,处理器1010,还用于根据所述目标时段中的至少两个时刻的运动能量等级和步频等级,分别在所述第一矩阵中标记每个时刻对应的元素;在所述目标时段的结束时刻,在至少两个被标记的元素中,确定被标记频率最高的前S个元素为所述第一目标元素;其中,S为正整数,且S>1。Optionally, the processor 1010 is further configured to mark the element corresponding to each moment in the first matrix according to the motion energy level and the cadence level of at least two moments in the target period; At the end time of the target period, among the at least two marked elements, the first S elements with the highest marked frequency are determined as the first target elements; wherein, S is a positive integer, and S>1.
可选地,在所述目标时段的开始时刻,所述第一矩阵的每个元素的取值均为0;处理器1010,还用于通过对所述第一目标元素的取值累加一个预设值的方式,对所述第一目标元素进行标记。Optionally, at the beginning of the target period, the value of each element of the first matrix is 0; the processor 1010 is further configured to accumulate a pre-determined value by adding a value to the first target element. The first target element is marked in the manner of setting a value.
可选地,第二矩阵包括N×M个元素;所述第二矩阵中的元素与所述第一矩阵中的元素一一对应,且所述第二矩阵中的元素用于表示对应的运动场景的校正比例;处理器1010,还用于根据所述第一矩阵中的所述第一目标元素,在所述第二矩阵中确定与所述第一目标元素对应的第二目标元素;根据所述目标校正比例,更新所述第二目标元素的取值。Optionally, the second matrix includes N×M elements; the elements in the second matrix are in one-to-one correspondence with the elements in the first matrix, and the elements in the second matrix are used to represent the corresponding motion the correction ratio of the scene; the processor 1010 is further configured to determine a second target element corresponding to the first target element in the second matrix according to the first target element in the first matrix; according to The target correction ratio is used to update the value of the second target element.
可选地,所述第二矩阵的每个元素的初始值均为1;处理器1010,还用于将所述第二目标元素的取值与所述目标校正比例相乘,得到更新后的所述第二目标元素的取值;其中,所述目标校正比例为所述第二运动距离与所述第一运动距离的比值。Optionally, the initial value of each element of the second matrix is 1; the processor 1010 is further configured to multiply the value of the second target element by the target correction ratio to obtain an updated The value of the second target element; wherein, the target correction ratio is the ratio of the second movement distance to the first movement distance.
综上,本申请的实施例中,根据不同运动特征组合划分为不同的运动场景,针对各种运动场景(慢中快各种速度跑)逐个校正,得到各个运动场景中的校正比例。可见,本申请考虑到每个人个体差异导致运动习惯不同,从而对步长造成的影响,使得每一种运动场景下的步长都得到校正,从而使得每种场景下最终获取的步长,达到很高的准确率。经测试,本申请实施例相对于现有技术,获取步长的准确率提高了12个百分点,可达到了97%的准确率。To sum up, in the embodiment of the present application, different motion scenes are divided into different motion scenes according to different motion feature combinations, and each motion scene (slow, medium and fast running at various speeds) is corrected one by one to obtain the correction ratio in each motion scene. It can be seen that this application takes into account the individual differences of each person resulting in different exercise habits, thereby affecting the step size, so that the step size in each motion scene is corrected, so that the final step size obtained in each scene can reach Very high accuracy. After testing, compared with the prior art, the embodiment of the present application improves the accuracy of obtaining the step size by 12 percentage points, and can reach an accuracy of 97%.
应理解的是,本申请实施例中,输入单元1004可以包括图形处理器(Graphics Processing Unit,GPU)10041和麦克风10042,图形处理器10041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。显示单元1006可包括显示面板10061,可以采用液晶显示器、有机发光二极管等形式来配置显示面板10061。用户输入单元1007包括触控面板10071以及其他输入设备10072。触控面板10071,也称为触摸屏。触控面板10071可包括触摸检测装置和触摸控制器两个部分。其他输入设备10072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。存储器1009可用于存储软件程序以及各种数据,包括但不限于应用程序和操作系统。存储器1009可包括只读存储器(Read-Only Memory,ROM),随机存取存储器(Random Access Memory,RAM),磁盘存储介质设备,光存储介质设备,闪存设备,电气、光学或 其他物理/有形的存储器存储设备。存储器1009包括一个或多个编码有包括计算机可执行指令的软件的有形(非暂态)计算机可读存储介质(例如,存储器设备),并且当该软件被执行(例如,由一个或多个处理器)时,其可操作来执行参考根据本申请实施例中步长获取方法所描述的操作。处理器1010可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器1010中。上述处理器1010可以包括中央处理器(CPU),或者特定集成电路(Application Specific Integrated Circuit,ASIC),或者可以被配置成实施本申请实施例的一个或多个集成电路。It should be understood that, in this embodiment of the present application, the input unit 1004 may include a graphics processor (Graphics Processing Unit, GPU) 10041 and a microphone 10042. Such as camera) to obtain still pictures or video image data for processing. The display unit 1006 may include a display panel 10061, which may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 1007 includes a touch panel 10071 and other input devices 10072 . The touch panel 10071 is also called a touch screen. The touch panel 10071 may include two parts, a touch detection device and a touch controller. Other input devices 10072 may include, but are not limited to, physical keyboards, function keys (such as volume control keys, switch keys, etc.), trackballs, mice, and joysticks, which will not be repeated here. Memory 1009 may be used to store software programs as well as various data, including but not limited to application programs and operating systems. Memory 1009 may include Read-Only Memory (ROM), Random Access Memory (RAM), magnetic disk storage media devices, optical storage media devices, flash memory devices, electrical, optical or other physical/tangible memory storage device. Memory 1009 includes one or more tangible (non-transitory) computer-readable storage media (eg, memory devices) encoded with software including computer-executable instructions, and when the software is executed (eg, processed by one or more device), it is operable to perform the operations described with reference to the step size obtaining method according to the embodiment of the present application. The processor 1010 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, and the like, and the modem processor mainly processes wireless communication. It can be understood that, the above-mentioned modulation and demodulation processor may not be integrated into the processor 1010. The above-mentioned processor 1010 may include a central processing unit (CPU), or a specific integrated circuit (Application Specific Integrated Circuit, ASIC), or may be configured to implement one or more integrated circuits of the embodiments of the present application.
本申请实施例还提供一种可读存储介质,所述可读存储介质上存储有程序或指令,该程序或指令被处理器执行时实现上述任一种步长获取方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。The embodiments of the present application further provide a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or instruction is executed by a processor, each process of any one of the foregoing step size acquisition method embodiments is implemented, And can achieve the same technical effect, in order to avoid repetition, it is not repeated here.
其中,所述处理器为上述实施例中所述的电子设备中的处理器。所述可读存储介质,包括计算机可读存储介质,如计算机只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等。Wherein, the processor is the processor in the electronic device described in the foregoing embodiments. The readable storage medium includes a computer-readable storage medium, such as a computer read-only memory (Read-Only Memory, ROM), a random access memory (Random Access Memory, RAM), a magnetic disk or an optical disk, and the like.
本申请实施例另提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现上述任一种步长获取方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。An embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is used to run a program or an instruction to achieve any of the above step size acquisitions Each process of the method embodiment can achieve the same technical effect, and in order to avoid repetition, it will not be repeated here.
应理解,本申请实施例提到的芯片还可以称为系统级芯片、系统芯片、芯片系统或片上系统芯片等。It should be understood that the chip mentioned in the embodiments of the present application may also be referred to as a system-on-chip, a system-on-chip, a system-on-a-chip, or a system-on-a-chip, or the like.
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括 该要素的过程、方法、物品或者装置中还存在另外的相同要素。此外,需要指出的是,本申请实施方式中的方法和装置的范围不限按示出或讨论的顺序来执行功能,还可包括根据所涉及的功能按基本同时的方式或按相反的顺序来执行功能,例如,可以按不同于所描述的次序来执行所描述的方法,并且还可以添加、省去、或组合各种步骤。另外,参照某些示例所描述的特征可在其他示例中被组合。It should be noted that, herein, the terms "comprising", "comprising" or any other variation thereof are intended to encompass non-exclusive inclusion, such that a process, method, article or device comprising a series of elements includes not only those elements, It also includes other elements not expressly listed or inherent to such a process, method, article or apparatus. Without further limitation, an element qualified by the phrase "comprising a..." does not preclude the presence of additional identical elements in a process, method, article or apparatus that includes the element. Furthermore, it should be noted that the scope of the methods and apparatus in the embodiments of the present application is not limited to performing the functions in the order shown or discussed, but may also include performing the functions in a substantially simultaneous manner or in the reverse order depending on the functions involved. To perform functions, for example, the described methods may be performed in an order different from that described, and various steps may also be added, omitted, or combined. Additionally, features described with reference to some examples may be combined in other examples.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本申请各个实施例所述的方法。From the description of the above embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus a necessary general hardware platform, and of course hardware can also be used, but in many cases the former is better implementation. Based on this understanding, the technical solution of the present application can be embodied in the form of a software product in essence or in a part that contributes to the prior art, and the computer software product is stored in a storage medium (such as ROM/RAM, magnetic disk, CD-ROM), including several instructions to make a terminal (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) execute the methods described in the various embodiments of this application.
上面结合附图对本申请的实施例进行了描述,但是本申请并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本申请的启示下,在不脱离本申请宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本申请的保护之内。The embodiments of the present application have been described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific embodiments, which are merely illustrative rather than restrictive. Under the inspiration of this application, without departing from the scope of protection of the purpose of this application and the claims, many forms can be made, which all fall within the protection of this application.

Claims (15)

  1. 一种步长的获取方法,包括:A step size acquisition method, including:
    在校正模式下,获取所述校正模式所处的目标时段内的目标运动特征信息;In the correction mode, obtain the target motion feature information within the target period in which the correction mode is located;
    根据所述目标运动特征信息,确定所述目标时段所对应的目标运动场景;According to the target motion feature information, determine the target motion scene corresponding to the target time period;
    分别获取所述目标时段内的第一运动距离和第二运动距离;所述第一运动距离由预设方式计算得到,所述第二运动距离由测量得到;respectively acquiring the first movement distance and the second movement distance in the target period; the first movement distance is calculated by a preset method, and the second movement distance is obtained by measurement;
    根据所述第一运动距离和所述第二运动距离,确定所述目标运动场景的目标校正比例;Determine the target correction ratio of the target movement scene according to the first movement distance and the second movement distance;
    在运动模式下,根据目标时刻的运动特征信息,确定所述目标时刻为所述目标运动场景;In the motion mode, according to the motion feature information of the target moment, it is determined that the target moment is the target motion scene;
    获取所述目标时刻对应的步长为第一步长;所述第一步长由所述预设方式计算得到;Obtaining the step size corresponding to the target moment is the first step size; the first step size is calculated by the preset method;
    根据所述第一步长和所述目标校正比例,更新所述目标时刻对应的步长为第二步长;According to the first step size and the target correction ratio, update the step size corresponding to the target moment to the second step size;
    其中,所述运动特征信息至少包括运动能力等级和步频等级。Wherein, the motion feature information includes at least a motion ability level and a cadence level.
  2. 根据权利要求1所述的方法,其中,第一矩阵包括N×M个元素,N、M为正整数;在所述第一矩阵中,包括N个运动能量等级和M个步频等级,任意一个运动能量等级与任意一个步频等级组合,用于表示一个运动场景;The method according to claim 1, wherein the first matrix includes N×M elements, and N and M are positive integers; in the first matrix, it includes N motion energy levels and M cadence levels, any A motion energy level is combined with any cadence level to represent a motion scene;
    所述根据所述目标运动特征信息,确定所述目标时段所对应的目标运动场景,包括:The determining the target motion scene corresponding to the target time period according to the target motion feature information includes:
    根据所述目标运动特征信息包括的目标运动能量等级和目标步频等级,在所述第一矩阵中标记第一目标元素;Mark the first target element in the first matrix according to the target motion energy level and the target cadence level included in the target motion feature information;
    其中,所述第一目标元素用于表示所述目标运动场景。Wherein, the first target element is used to represent the target motion scene.
  3. 根据权利要求2所述的方法,其中,所述根据所述目标运动特征信息包括的目标运动能量等级和目标步频等级,在所述第一矩阵中标记第一 目标元素,包括:method according to claim 2, wherein, described according to the target motion energy level and target cadence level that described target motion characteristic information comprises, mark the first target element in described first matrix, comprise:
    根据所述目标时段中的至少两个时刻的运动能量等级和步频等级,分别在所述第一矩阵中标记每个时刻对应的元素;Mark the element corresponding to each moment in the first matrix according to the motion energy level and cadence level of at least two moments in the target period;
    在所述目标时段的结束时刻,在至少两个被标记的元素中,确定被标记频率最高的前S个元素为所述第一目标元素;At the end of the target period, among the at least two marked elements, determine the first S elements with the highest marked frequency as the first target element;
    其中,S为正整数,且S>1。Wherein, S is a positive integer, and S>1.
  4. 根据权利要求2所述的方法,其中,在所述目标时段的开始时刻,所述第一矩阵的每个元素的取值均为0;所述在所述第一矩阵中标记第一目标元素,包括:The method according to claim 2, wherein, at the beginning of the target period, the value of each element of the first matrix is 0; the marking of the first target element in the first matrix ,include:
    通过对所述第一目标元素的取值累加一个预设值的方式,对所述第一目标元素进行标记。The first target element is marked by adding a preset value to the value of the first target element.
  5. 根据权利要求2所述的方法,其中,第二矩阵包括N×M个元素;所述第二矩阵中的元素与所述第一矩阵中的元素一一对应,且所述第二矩阵中的元素用于表示对应的运动场景的校正比例;The method of claim 2, wherein the second matrix includes N×M elements; the elements in the second matrix correspond one-to-one with the elements in the first matrix, and the elements in the second matrix The element is used to represent the correction scale of the corresponding motion scene;
    所述根据所述第一运动距离和所述第二运动距离,确定所述目标运动场景的目标校正比例之后,还包括:After determining the target correction ratio of the target movement scene according to the first movement distance and the second movement distance, the method further includes:
    根据所述第一矩阵中的所述第一目标元素,在所述第二矩阵中确定与所述第一目标元素对应的第二目标元素;determining a second target element corresponding to the first target element in the second matrix according to the first target element in the first matrix;
    根据所述目标校正比例,更新所述第二目标元素的取值。According to the target correction ratio, the value of the second target element is updated.
  6. 根据权利要求5所述的方法,其中,所述第二矩阵的每个元素的初始值均为1;所述更新所述第二目标元素的取值,包括:The method according to claim 5, wherein the initial value of each element of the second matrix is 1; the updating the value of the second target element comprises:
    将所述第二目标元素的取值与所述目标校正比例相乘,得到更新后的所述第二目标元素的取值;Multiplying the value of the second target element by the target correction ratio to obtain the updated value of the second target element;
    其中,所述目标校正比例为所述第二运动距离与所述第一运动距离的比值。The target correction ratio is a ratio of the second movement distance to the first movement distance.
  7. 一种步长获取装置,包括:A step size acquisition device, comprising:
    第一获取模块,用于在校正模式下,获取所述校正模式所处的目标时段内的目标运动特征信息;a first acquisition module, configured to acquire, in a correction mode, target motion feature information within a target period in which the correction mode is located;
    第一确定模块,用于根据所述目标运动特征信息,确定所述目标时段 所对应的目标运动场景;The first determination module is used to determine the target motion scene corresponding to the target time period according to the target motion feature information;
    第二获取模块,用于分别获取所述目标时段内的第一运动距离和第二运动距离;所述第一运动距离由预设方式计算得到,所述第二运动距离由测量得到;a second obtaining module, configured to obtain the first movement distance and the second movement distance respectively within the target period; the first movement distance is calculated by a preset method, and the second movement distance is obtained by measurement;
    第二确定模块,用于根据所述第一运动距离和所述第二运动距离,确定所述目标运动场景的目标校正比例;a second determination module, configured to determine the target correction ratio of the target movement scene according to the first movement distance and the second movement distance;
    第三确定模块,用于在运动模式下,根据目标时刻的运动特征信息,确定所述目标时刻为所述目标运动场景;A third determining module, configured to determine the target moment as the target motion scene according to the motion feature information of the target moment in the motion mode;
    第三获取模块,用于获取所述目标时刻对应的步长为第一步长;所述第一步长由所述预设方式计算得到;a third obtaining module, configured to obtain the step size corresponding to the target moment as the first step length; the first step length is calculated by the preset method;
    校正模块,用于根据所述第一步长和所述目标校正比例,更新所述目标时刻对应的步长为第二步长;a correction module, configured to update the step size corresponding to the target moment to the second step size according to the first step length and the target correction ratio;
    其中,所述运动特征信息至少包括运动能力等级和步频等级。Wherein, the motion feature information includes at least a motion ability level and a cadence level.
  8. 根据权利要求7所述的装置,其中,第一矩阵包括N×M个元素,N、M为正整数;在所述第一矩阵中,包括N个运动能量等级和M个步频等级,任意一个运动能量等级与任意一个步频等级组合,用于表示一个运动场景;The apparatus according to claim 7, wherein the first matrix includes N×M elements, and N and M are positive integers; in the first matrix, it includes N motion energy levels and M cadence levels, any A motion energy level is combined with any cadence level to represent a motion scene;
    所述第一确定模块,包括:The first determining module includes:
    标记单元,用于根据所述目标运动特征信息包括的目标运动能量等级和目标步频等级,在所述第一矩阵中标记第一目标元素;a marking unit, configured to mark the first target element in the first matrix according to the target movement energy level and the target cadence level included in the target movement feature information;
    其中,所述第一目标元素用于表示所述目标运动场景。Wherein, the first target element is used to represent the target motion scene.
  9. 根据权利要求8所述的装置,其中,所述标记单元,包括:The apparatus of claim 8, wherein the marking unit comprises:
    多元素标记子单元,用于根据所述目标时段中的至少两个时刻的运动能量等级和步频等级,分别在所述第一矩阵中标记每个时刻对应的元素;a multi-element marking subunit, configured to mark the element corresponding to each moment in the first matrix according to the motion energy level and the cadence level of at least two moments in the target period;
    多元素确定子单元,用于在所述目标时段的结束时刻,在至少两个被标记的元素中,确定被标记频率最高的前S个元素为所述第一目标元素;A multi-element determination subunit, configured to, at the end moment of the target period, among at least two marked elements, determine the first S elements with the highest marked frequency as the first target element;
    其中,S为正整数,且S>1。Wherein, S is a positive integer, and S>1.
  10. 根据权利要求8所述的装置,其中,在所述目标时段的开始时刻,所述第一矩阵的每个元素的取值均为0;所述标记单元,包括:The device according to claim 8, wherein, at the beginning of the target period, the value of each element of the first matrix is 0; the marking unit comprises:
    取值累加子单元,用于通过对所述第一目标元素的取值累加一个预设值的方式,对所述第一目标元素进行标记。The value accumulation subunit is configured to mark the first target element by accumulating a preset value for the value of the first target element.
  11. 根据权利要求8所述的装置,其中,第二矩阵包括N×M个元素;所述第二矩阵中的元素与所述第一矩阵中的元素一一对应,且所述第二矩阵中的元素用于表示对应的运动场景的校正比例;The apparatus of claim 8, wherein the second matrix includes N×M elements; the elements in the second matrix correspond one-to-one with the elements in the first matrix, and the elements in the second matrix The element is used to represent the correction scale of the corresponding motion scene;
    所述装置,还包括:The device also includes:
    第四确定模块,用于根据所述第一矩阵中的所述第一目标元素,在所述第二矩阵中确定与所述第一目标元素对应的第二目标元素;a fourth determination module, configured to determine a second target element corresponding to the first target element in the second matrix according to the first target element in the first matrix;
    更新模块,用于根据所述目标校正比例,更新所述第二目标元素的取值。An update module, configured to update the value of the second target element according to the target correction ratio.
  12. 根据权利要求11所述的装置,其中,所述第二矩阵的每个元素的初始值均为1;所述更新模块,包括:The device according to claim 11, wherein the initial value of each element of the second matrix is 1; the updating module comprises:
    取值更新单元,用于将所述第二目标元素的取值与所述目标校正比例相乘,得到更新后的所述第二目标元素的取值;A value updating unit, for multiplying the value of the second target element by the target correction ratio to obtain the updated value of the second target element;
    其中,所述目标校正比例为所述第二运动距离与所述第一运动距离的比值。The target correction ratio is a ratio of the second movement distance to the first movement distance.
  13. 一种电子设备,包括处理器,存储器及存储在所述存储器上并可在所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时实现如权利要求1-6任一项所述的步长获取方法的步骤。An electronic device, comprising a processor, a memory, and a program or instruction stored on the memory and executable on the processor, the program or instruction being executed by the processor to implement claims 1-6 any one of the steps of the step size acquisition method.
  14. 一种芯片,包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现如权利要求1-6任一项所述的步长的获取方法。A chip, comprising a processor and a communication interface, wherein the communication interface is coupled with the processor, and the processor is used to run a program or an instruction to implement the step size acquisition method according to any one of claims 1-6 .
  15. 一种计算机程序产品,其特征在于,所述计算机程序产品被至少一个处理器执行以实现如权利要求1-6任一项所述的步长的获取方法。A computer program product, characterized in that, the computer program product is executed by at least one processor to implement the step size acquisition method according to any one of claims 1-6.
PCT/CN2022/072433 2021-01-25 2022-01-18 Step length acquisition method and electronic device WO2022156651A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110098825.1A CN112767434B (en) 2021-01-25 2021-01-25 Step length acquisition method and electronic equipment
CN202110098825.1 2021-01-25

Publications (1)

Publication Number Publication Date
WO2022156651A1 true WO2022156651A1 (en) 2022-07-28

Family

ID=75707237

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/072433 WO2022156651A1 (en) 2021-01-25 2022-01-18 Step length acquisition method and electronic device

Country Status (2)

Country Link
CN (1) CN112767434B (en)
WO (1) WO2022156651A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112767434B (en) * 2021-01-25 2023-10-20 维沃移动通信有限公司 Step length acquisition method and electronic equipment
CN113312102B (en) * 2021-05-27 2024-03-19 维沃移动通信有限公司 Control method and electronic equipment

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130085677A1 (en) * 2011-09-30 2013-04-04 Apple Inc. Techniques for improved pedometer readings
CN106525066A (en) * 2016-10-17 2017-03-22 深圳众思科技有限公司 Step-counting data processing method and step counter
CN107504979A (en) * 2017-07-31 2017-12-22 上海斐讯数据通信技术有限公司 Move distance computational methods and device and wearable device
CN107515004A (en) * 2017-07-27 2017-12-26 上海斐讯数据通信技术有限公司 Step size computation device and method
WO2018076205A1 (en) * 2016-10-26 2018-05-03 华为技术有限公司 Stride calibrating method, and relevant device and system
CN108692738A (en) * 2018-03-30 2018-10-23 四川斐讯信息技术有限公司 The computational methods and system of the bearing calibration of step-length and device, distance of running
CN111141308A (en) * 2019-12-25 2020-05-12 歌尔科技有限公司 Step pitch correction method and device and wearable device
CN111829550A (en) * 2019-04-15 2020-10-27 青岛海信移动通信技术股份有限公司 Movement distance determination method, device and equipment
CN112767434A (en) * 2021-01-25 2021-05-07 维沃移动通信有限公司 Step length obtaining method and electronic equipment

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104729524A (en) * 2013-12-18 2015-06-24 中国移动通信集团公司 Step length estimation method, pedometer and step counting system
US20160001131A1 (en) * 2014-07-03 2016-01-07 Katarzyna Radecka Accurate Step Counting Pedometer for Children, Adults and Elderly

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130085677A1 (en) * 2011-09-30 2013-04-04 Apple Inc. Techniques for improved pedometer readings
CN106525066A (en) * 2016-10-17 2017-03-22 深圳众思科技有限公司 Step-counting data processing method and step counter
WO2018076205A1 (en) * 2016-10-26 2018-05-03 华为技术有限公司 Stride calibrating method, and relevant device and system
CN107515004A (en) * 2017-07-27 2017-12-26 上海斐讯数据通信技术有限公司 Step size computation device and method
CN107504979A (en) * 2017-07-31 2017-12-22 上海斐讯数据通信技术有限公司 Move distance computational methods and device and wearable device
CN108692738A (en) * 2018-03-30 2018-10-23 四川斐讯信息技术有限公司 The computational methods and system of the bearing calibration of step-length and device, distance of running
CN111829550A (en) * 2019-04-15 2020-10-27 青岛海信移动通信技术股份有限公司 Movement distance determination method, device and equipment
CN111141308A (en) * 2019-12-25 2020-05-12 歌尔科技有限公司 Step pitch correction method and device and wearable device
CN112767434A (en) * 2021-01-25 2021-05-07 维沃移动通信有限公司 Step length obtaining method and electronic equipment

Also Published As

Publication number Publication date
CN112767434A (en) 2021-05-07
CN112767434B (en) 2023-10-20

Similar Documents

Publication Publication Date Title
WO2022156651A1 (en) Step length acquisition method and electronic device
CN110121118B (en) Video clip positioning method and device, computer equipment and storage medium
US9632626B2 (en) Apparatuses and methods for providing a 3D man-machine interface (MMI)
WO2017161827A1 (en) Method for adjusting focus of camera and terminal
WO2023020468A1 (en) Wallpaper display method and apparatus, and electronic device
US20200293603A1 (en) Attitude Matrix Calculation Method and Device
CN113888619A (en) Distance determination method and device, electronic equipment and storage medium
JP2014164599A (en) Information apparatus, control method thereof and program
CN106679691B (en) A kind of method of adjustment, device and the mobile terminal of pedometer data
CN110297592B (en) Processing method and electronic equipment
WO2022161219A1 (en) Step number counting method and apparatus
CN112326999A (en) Wind speed measurement method, equipment and terminal
CN111524492A (en) Method and device for automatically adjusting screen brightness in preset mode
US11686776B2 (en) Prediction method and apparatus of battery health, and storage medium
WO2018154970A1 (en) Information processing device, information processing method, and program
CN108664194B (en) Display method and device
WO2022100622A1 (en) Candidate word display method and apparatus, and electronic device
WO2022198991A1 (en) Motion time calculation method, apparatus and device, and computer-readable storage medium
JP2017504917A (en) Method and apparatus for generating a personal input panel
CN111027344B (en) Display method and device
CN109524025B (en) Singing scoring method and device, electronic equipment and storage medium
CN108345940B (en) Data processing method, device and computer readable storage medium
US20100004884A1 (en) System and method for determining capacity of battery of electronic device
US20220245447A1 (en) Systems and methods for quantization aware training of a neural network for heterogeneous hardware platform
CN112833907B (en) Step counting method, device, equipment and 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: 22742130

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: 22742130

Country of ref document: EP

Kind code of ref document: A1