Target pace determination method and apparatus, device and storage medium
By obtaining the user's reference pace and the slope of the current location, the target influencing factors are determined, which solves the problem of adjusting the target pace due to changes in terrain during running and improves the user's training effect.
Patent Information
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2025-09-15
- Publication Date
- 2026-03-26
AI Technical Summary
During running, existing technologies struggle to dynamically adjust target pace based on terrain changes, making it difficult for users to maintain a constant output and impacting training effectiveness.
By obtaining the user's reference pace and the slope of the current location, the target influencing factors are determined, and the target pace is adjusted accordingly to adapt to terrain changes.
It enables dynamic adjustment of target pace based on terrain changes, improving the training effect and experience for users during running.
Smart Images

Figure CN2025121428_26032026_PF_FP_ABST
Abstract
Description
Target speed determination method, device, equipment and storage medium
[0001] Priority information
[0002] This application claims priority to and the benefit of the filing date of Chinese Patent Application No. 202411328163.2, filed September 23, 2024, and is incorporated herein by reference in its entirety. TECHNICAL FIELD
[0003] The present application relates to the technical field of computer, in particular to a target speed determination method, a target speed determination device, a computer device and a computer readable storage medium. BACKGROUND
[0004] At present, people pay more and more attention to health, and more and more people use their spare time to exercise. For example, running is a kind of fitness way that can exercise the whole body. For people, the speed during running is very important, and users often set a target speed before starting running. SUMMARY
[0005] The present application provides a target speed determination method, a target speed determination device, a computer device and a computer readable storage medium.
[0006] In a first aspect, the embodiments of the present application provide a target speed determination method, which comprises: obtaining a reference speed of a target object and a slope of a location where the target object is located; determining a target influence factor based on the slope of the location where the target object is located, the target influence factor being used to represent an influence of the slope on body energy consumption when the target object runs on the slope; and determining a target speed of the target object on the slope based on the reference speed and the target influence factor.
[0007] In a second aspect, the embodiments of the present application further provide a target speed determination device, which comprises:
[0008] A first obtaining module is configured to obtain a reference speed of a target object and a slope of a location where the target object is located;
[0009] A first determining module is configured to determine a target influence factor based on the slope of the location where the target object is located, the target influence factor being used to represent an influence of the slope on body energy consumption when the target object runs on the slope; and
[0010] A second determining module is configured to determine a target speed of the target object on the slope based on the reference speed and the target influence factor.
[0011] In a third aspect, an embodiment of the present application provides a computer device, which comprises a memory, a processor, and a computer program stored in the memory and capable of running on the processor, and the computer program, when executed by the processor, implements a target pacing method. The target pacing method comprises: obtaining a reference pacing of a target object and a slope at a location where the target object is located; determining a target impact factor based on the slope at the location where the target object is located, the target impact factor being used to represent an impact of the target object on body energy consumption when running on the slope; and determining a target pacing of the target object on the slope based on the reference pacing and the target impact factor.
[0012] In a fourth aspect, an embodiment of the present application provides a computer readable storage medium, which stores a computer program, and the computer program, when executed by a processor, implements a target pacing method. The target pacing method comprises: obtaining a reference pacing of a target object and a slope at a location where the target object is located; determining a target impact factor based on the slope at the location where the target object is located, the target impact factor being used to represent an impact of the target object on body energy consumption when running on the slope; and determining a target pacing of the target object on the slope based on the reference pacing and the target impact factor.
[0013] In a fifth aspect, an embodiment of the present application provides a computer program product containing instructions which, when executed on a computer, cause the computer to perform a target pacing method. The target pacing method comprises: obtaining a reference pacing of a target object and a slope at a location where the target object is located; determining a target impact factor based on the slope at the location where the target object is located, the target impact factor being used to represent an impact of the target object on body energy consumption when running on the slope; and determining a target pacing of the target object on the slope based on the reference pacing and the target impact factor.
[0014] Additional aspects and advantages of the application will be made apparent by the following description and the accompanying drawings. BRIEF DESCRIPTION OF DRAWINGS
[0015] The above and / or additional aspects and advantages of the application will become apparent and be readily appreciated from the following description, including the accompanying drawings, wherein:
[0016] FIG. 1 is a schematic diagram of a scene of a target pacing determination method according to an embodiment of the present application;
[0017] FIG. 2 is a flowchart of a target pacing determination method according to an embodiment of the present application;
[0018] FIG. 3 is a schematic diagram of a great circle distance according to an embodiment of the present application;
[0019] FIG. 4 is a schematic diagram of a reference pace setting interface according to an embodiment of the present application;
[0020] FIG. 5 is a flowchart of another target pace determination method according to an embodiment of the present application;
[0021] FIG. 6 is a schematic diagram of a target pace determination apparatus according to an embodiment of the present application;
[0022] FIG. 7 is a schematic diagram of a computer device according to an embodiment of the present application. DETAILED DESCRIPTION
[0023] In order to make the above objectives, features and advantages of the present application more apparent, specific embodiments of the present application will be described in detail below with reference to the accompanying drawings. In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present application. However, the present application can be practiced in a number of ways other than those described herein without departing from the spirit of the present application. It will be apparent that the present application can be practiced by using equivalents thereof which are within the scope of the present application. Therefore, the specific embodiments disclosed below are not intended to limit the present application, but to explain the present application so that others skilled in the art can employ the present application.
[0024] It should be understood that the "multiple" mentioned in the present application refers to two or more. In the description of the present application, unless otherwise specified, " / " represents the meaning of or, for example, A / B can represent A or B; "and / or" in the present application only represents a description of the association relationship of the associated objects, which means that there can be three relationships, for example, A and / or B, which means that there are three cases of A alone, A and B together, and B alone. In addition, in order to clearly describe the technical solutions of the present application, the same items or similar items with basically the same functions and effects are distinguished by using "first", "second", etc. Those skilled in the art can understand that "first", "second", etc. do not limit the quantity and execution order, and "first", "second", etc. also do not necessarily mean different.
[0025] Before the target pace determination method provided by the embodiments of the present application is described, the implementation environment of the target pace determination method provided by the embodiments of the present application is described.
[0026] The target pace determination method provided by the embodiments of the present application can determine a reasonable target pace in combination with the terrain where the user is located during running. In this case, the user needs to carry a device capable of obtaining motion data during running. In the embodiments of the present application, the user can carry a mobile phone, a tablet computer, a smart wearable device, etc.
[0027] The smart wearable device is a small electronic device that can be worn on the body. The smart wearable device exchanges data by connecting with a smart phone or other devices. The smart wearable device can include a smart watch, a smart bracelet, a virtual reality headset, augmented reality glasses, smart clothing, a smart ring, and the like. The smart wearable device can be used in health management, sports training, smart home control, business office, education, and the like.
[0028] In the sports training scenario, the smart wearable device can obtain heart rate data of a user, position data, motion duration, and pace data by using a GPS (Global Positioning System).
[0029] In the embodiments of the present application, the position data, heart rate data, and pace data of the user can be obtained by using the GPS of the smart wearable device, and the target pace combined with the terrain is determined subsequently.
[0030] The application scenario of the embodiments of the present application is described.
[0031] For example, FIG. 1 is a schematic diagram of a scene of a target pace determination method provided by the embodiments of the present application. Referring to FIG. 1, the scene includes a user 101 and a road 102. The road 102 includes a flat ground and a slope.
[0032] As shown in FIG. 1, the user 101 is ready to run on the road 102, and the user 101 holds or wears a device that can obtain the pace. Before starting running, the user 101 can set a target pace of this running on the device, that is, set a pace that the user 101 wants to achieve during running.
[0033] However, the road 102 has a slope, so the effort used by the user 101 to run on the flat ground of the road 102 is different from that used to run on the slope. Therefore, the user 101 cannot maintain a constant output. Therefore, the real-time pace of the user 101 running on the flat ground and the real-time pace of the user 101 running on the slope should also change, and therefore the target pace of the user 101 should also change accordingly with the change of the terrain.
[0034] Therefore, the embodiments of the present application provide a target pace determination method, which can be applied to a scenario in which a user performs a competitive exercise. For example, the method can be applied to a scenario in which a user runs, and for example, the method can be applied to a scenario in which a user walks.
[0035] For example, the method is applied to a running process, and a specific process of determining the target pace is as follows: first, a target pace set by the user 101 himself / herself and a slope of a location where the user 101 is currently located are obtained. Then, a target influence factor is determined based on the slope of the location where the user 101 is currently located, that is, an influence of the slope on energy consumption of the user 101 when running at the location is determined. Finally, a target pace of the user 101 at the slope is determined based on the target pace set by the user 101 himself / herself and the target influence factor, that is, the target pace combined with the topography of the location is determined.
[0036] For example, the method is applied to a running process, and a specific process of determining the target pace is as follows: first, a target pace set by the user 101 himself / herself and a slope of a location where the user 101 is currently located are obtained. Then, a target influence factor is determined based on the slope of the location where the user 101 is currently located, that is, an influence of the slope on energy consumption of the user 101 when running at the location is determined. Finally, a target pace of the user 101 at the slope is determined based on the target pace set by the user 101 himself / herself and the target influence factor, that is, the target pace combined with the topography of the location is determined.
[0037] Thus, by correcting the reference pace of the user 101 based on the reference pace and the target influence factor, that is, by correcting the reference pace of the user 101 combined with the topography of the location where the user 101 is located, a more accurate target pace can be obtained, and an accurate pace reference can be provided for the user 101, which can improve user experience.
[0038] The target pace determination method provided in the embodiments of the present application will be explained in detail as follows.
[0039] FIG. 2 is a flowchart of a target pace determination method provided in the embodiments of the present application. The method can be applied to a computer device, which can be a mobile phone, a tablet computer, a smart wearable device, or the like. Referring to FIG. 2, the method includes the following steps.
[0040] Step 201: obtaining a reference pace of a target object and a slope of a location where the target object is located.
[0041] The target object is an object to be exercised.
[0042] The reference pace of the target object can be a target pace set by the target object himself / herself. For example, the target object can set a target pace for this exercise before starting the exercise, that is, the reference pace. It should be understood that the reference pace of the target object is a pace without considering topography changes. In the embodiments of the present application, the reference pace of the target object can also be determined based on a threshold pace of the target object, and the threshold pace of the target object is a pace of the target object at a target heart rate threshold.
[0043] In this case, by obtaining the reference speed of the target object and the slope of the position where the target object is located, the target speed initially set by the target object can be obtained, and the terrain condition of the position where the target object is currently located can be obtained.
[0044] Specifically, the method for determining the slope of the position where the target object is located can include the following steps (1)-(3).
[0045] (1) Obtain the longitude, latitude and altitude of the target object at the current time and the previous time.
[0046] Optionally, the longitude, latitude and altitude of the target object at the current time and the previous time can be obtained by GPS.
[0047] In the embodiments of the present application, the current time refers to the time when the latest position output by the GPS, and the previous time refers to the time when the last position output by the GPS.
[0048] (2) Determine the horizontal distance between the positions where the target object is located at the current time and the previous time based on the longitude and latitude of the target object at the current time and the previous time.
[0049] Since the longitude and latitude can accurately represent the position where the target object is located, the horizontal distance between the positions where the target object is located at the current time and the previous time can be accurately determined based on the longitude and latitude.
[0050] Specifically, the operation of step (2) can include the following steps (a)-(b).
[0051] (a) Determine the great circle distance between the positions where the target object is located at the current time and the previous time based on the longitude and latitude of the target object at the current time and the previous time.
[0052] The great circle distance refers to the shortest distance along the great circle arc between two points on the surface of the earth. Generally, any plane passing through the center of the sphere intersects the spherical surface to form a great circle, and the great circle arc connecting any two points on the surface of the earth is the shortest path between the two points.
[0053] For example, FIG. 3 is a schematic diagram of a great circle distance, as shown in FIG. 3, which includes a sphere 301, wherein the sphere 301 includes a position A and a position B. The plane passing through the position A and the position B passes through the center of the sphere 301, so that the plane formed by the position A and the position B is a great circle, and the shortest circular arc (solid line AB in FIG. 3) connecting the position A and the position B on the great circle is the great circle distance between the position A and the position B.
[0054] Specifically, the operation of step (a) can be: determining a longitude difference value between the longitude of the target object at the current time and the longitude of the target object at the last time; determining a latitude difference value between the latitude of the target object at the current time and the latitude of the target object at the last time; and determining a great circle distance between the positions of the target object at the current time and the last time based on the longitude difference value, the latitude difference value, and the latitudes of the target object at the current time and the last time.
[0055] The operation of determining the great circle distance between the positions of the target object at the current time and the last time based on the longitude difference value, the latitude difference value, and the latitudes of the target object at the current time and the last time can be: determining the great circle distance between the positions of the target object at the current time and the last time based on the longitude difference value, the latitude difference value, and the latitudes of the target object at the current time and the last time by the following formulas (1) and (2).
[0056] wherein c is the great circle distance between the positions of the target object at the current time and the last time. is the latitude difference value between the positions at the current time and the last time, Δλ is the longitude difference value between the positions at the current time and the last time, is the latitude of the position of the target object at the current time, is the latitude of the position of the target object at the last time, and a is an intermediate quantity set for the convenience of calculation and has no physical meaning.
[0057] (b) multiplying the great circle distance by the radius of the earth to determine a horizontal distance between the positions of the target object at the current time and the last time.
[0058] In this case, multiplying the great circle distance by the radius of the earth is equivalent to considering the curvature of the earth when calculating the horizontal distance between the two positions. In this way, the horizontal distance between the positions of the target object at the current time and the last time can be accurately determined, and a more accurate slope can be determined.
[0059] The operation of step (b) is achieved by the following formula (3).
[0060] wherein d is the horizontal distance between the positions of the target object at the current time and the last time, and R is the radius of the earth.
[0061] (3) dividing the height difference between the altitudes of the target object at the current time and the last time by the horizontal distance to obtain the slope of the position of the target object at the current time.
[0062] The slope refers to the degree of the terrain rising or falling, and the slope can be expressed in different ways, which can include percentage slope, angle slope and gradient, and the embodiments of the present application are not limited thereto. For example, in the embodiments of the present application, the slope can be expressed in percentage. The percentage slope is the ratio of the vertical rising or falling height to the horizontal distance, and thus the height difference between the altitudes of the target object at the current time and the last time can be divided by the horizontal distance.
[0063] The height difference between the altitudes of the target object at the current time and the last time is equivalent to the vertical distance between the position of the target object at the current time and the position at the last time. The subsequent is equivalent to dividing the vertical distance by the horizontal distance, thereby obtaining the slope of the position of the target object at the current time.
[0064] The operation of step (3) is achieved by the following formula (4).
[0065] Wherein, S is the slope of the position of the target object at the current time, and Δh is the height difference between the altitudes of the target object at the current time and the last time.
[0066] It is worth noting that after obtaining the slope of the position of the target object at the current time, it can also be determined whether the slope of the position of the target object at the current time is within a preset slope interval.
[0067] Generally, the greater the slope, the greater the resistance to the user when running, but if the slope is too large, it will exceed the limit of the human body, and the user may not be able to run normally, or even need to climb uphill or downhill. Therefore, in the embodiments of the present application, it is necessary to determine whether the slope of the position of the target object at the current time is within a preset slope interval.
[0068] The preset slope interval can be set in advance, and the preset slope interval can be set according to the limit of the human motion on the slope, for example, the preset slope interval can be set to [-60%, 60%].
[0069] In this case, when the slope of the position of the target object at the current time is within the preset slope interval, it means that the slope of the position of the target object at the current time meets the limit of the human motion, and thus the target speed of the target object is determined directly according to the calculated slope of the position of the target object at the current time.
[0070] When the slope of the position of the target object at the current time is not within the preset slope interval, it means that the slope of the position of the target object at the current time has exceeded the limit of the human motion, and thus there is no speed when the target object is in such a slope. Therefore, in this case, the target speed of the target object can be determined according to the maximum slope within the preset slope interval.
[0071] The specific process of determining the reference speed of the target object based on the threshold speed of the target object is described in detail below. Before determining the reference speed of the target object, the threshold speed of the target object needs to be determined first.
[0072] The threshold speed of the target object refers to the speed of the target object at the target heart rate threshold. In the embodiments of the present application, the target heart rate threshold can be the maximum heart rate of the target object during high-intensity exercise. In addition, generally, the heart rate of a person will rise sharply at a certain time period during high-intensity exercise, and therefore, in the embodiments of the present application, the threshold speed of the target object can sometimes be the heart rate of the target object at the inflection point of the sharp rise of the exercise heart rate.
[0073] Specifically, the method for determining the threshold speed of the target object includes the following steps (1)-(4).
[0074] (1) Obtain a plurality of real-time speeds and a plurality of real-time heart rates of the target object within a target time period.
[0075] The target time period can be a period of time in the historical running process of the target object, and in the embodiments of the present application, the target time period can be the period of time between the last time the target object starts running and the last time the target object ends running. Of course, the target time period can also be a period of time in the last running process of the target object, which is not limited in the embodiments of the present application.
[0076] The plurality of real-time speeds refers to the speeds reached by the target object at each time within the target time period, and the plurality of real-time heart rates refers to the heart rates of the target object at each time within the target time period.
[0077] In this case, by obtaining the plurality of real-time speeds and the plurality of real-time heart rates of the target object within the target time period, it is possible to obtain the speed reached by the target object at each time within the target time period at the heart rate, so as to know the exercise capacity of the target object.
[0078] (2) Based on the real-time heart rates of the target object within the target time period, filter the plurality of real-time speeds within the target time period to obtain a plurality of reference real-time speeds.
[0079] Since the user can improve the heart pumping efficiency and increase the oxygen utilization rate during aerobic exercise without causing excessive fatigue, the threshold speed of the target object needs to be calculated based on the speed reached by the target object at the heart rate during aerobic exercise when determining the threshold speed of the target object. In this case, after obtaining the plurality of real-time heart rates and the plurality of real-time speeds of the target object, the plurality of real-time speeds can be filtered based on the real-time heart rates of the target object within the target time period.
[0080] Thus, by filtering the multiple real-time pacing speeds in the target time period, the real-time pacing speed meeting the requirement can be obtained, so that the threshold pacing speed more suitable for the target object to move can be obtained subsequently.
[0081] Specifically, the operation of step (2) can be: for the real-time heart rate at any moment in the target time period, determining whether the real-time heart rate at the moment is in the target heart rate interval; in the case that the real-time heart rate at the moment is in the target heart rate interval, retaining the real-time pacing speed corresponding to the moment; in the case that the real-time heart rate at the moment is not in the target heart rate interval, deleting the real-time pacing speed corresponding to the moment.
[0082] The target heart rate interval is the heart rate interval in which the target object is in when performing aerobic exercise. In the embodiments of the present application, the target heart rate interval is the second zone (heart rate zone 2) in the heart rate zones. In the embodiments of the present application, the target heart rate interval can be determined according to at least one of the maximum heart rate, the resting heart rate and the lactate threshold heart rate of the target object.
[0083] The maximum heart rate of the target object refers to the maximum heart rate that can be reached by the target object under the current physical condition. In the embodiments of the present application, the maximum heart rate of the target object can be estimated according to the age of the target object.
[0084] The resting heart rate refers to the average heart rate of the target object in a supine position within a preset time period in the morning after getting up. For example, the preset time period can be 3 minutes.
[0085] The lactate threshold heart rate refers to the heart rate at the inflection point where the heart rate sharply rises during high-intensity exercise.
[0086] Specifically, the determination method of the target heart rate interval can be realized by the following three possible ways.
[0087] The first possible implementation way is to multiply the maximum heart rate by a first value to obtain the minimum heart rate of the target heart rate interval, and to multiply the maximum heart rate by a second value to obtain the maximum heart rate of the target heart rate interval.
[0088] It should be understood that the first value is less than the second value, and both the first value and the second value are numbers less than 1.
[0089] The first possible implementation way is realized by the following formula (5). HR zone2 = [HR max × (e-f), HR max × (e+f)] (5)
[0090] wherein, HR zone2 is the target heart rate interval, and HR maxFor the maximum heart rate of the target object, e and f can be set in advance, and e-f is a first value and e+f is a second value.
[0091] For example, the maximum heart rate of the target object is 150, e is 0.6, and f is 0.2. Then the target heart rate interval is [60, 120].
[0092] In the second possible implementation, a difference between the maximum heart rate and the resting heart rate is calculated to obtain a target difference; a product of the target difference and a third value is added to the resting heart rate to obtain a minimum heart rate of the target heart rate interval; a product of the target difference and a fourth value is added to the resting heart rate to obtain a maximum heart rate of the target heart rate interval.
[0093] It should be understood that the third value is less than the fourth value, and the third value and the fourth value are both less than 1.
[0094] The second possible implementation can also be implemented by the following formula (6). HR zone2 = [HR rest +(HR max -HR rest )×(1-m), HR rest +(HR max -HR rest )×(1+m)] (6)
[0095] wherein HR rest is the resting heart rate of the target object. l and m can be set in advance, and l-m is the third value and l+m is the fourth value.
[0096] In the third possible implementation, the lactate threshold heart rate is multiplied by a fifth value to obtain a minimum heart rate of the target heart rate interval, and the lactate threshold heart rate is multiplied by a sixth value to obtain a maximum heart rate of the target heart rate interval.
[0097] It should be understood that the fifth value is less than the sixth value, and the fifth value and the sixth value are both less than 1.
[0098] The third possible implementation can also be implemented by the following formula (7). HR zone2 = [HR LT ×(p-q), HR LT ×(p+q)] (7)
[0099] wherein HR LT is the lactate threshold heart rate of the target object. p and q can be set in advance, and p-q is the fifth value and p+q is the sixth value.
[0100] After the target heart rate interval is calculated through any of the three possible ways, it can be determined whether the real-time heart rate is in the target heart rate interval.
[0101] Specifically, in the case that the real-time heart rate at a time is in the target heart rate interval, it means that the pace at the heart rate reached at the time meets the threshold pace determination requirement, and therefore the real-time pace at the time can be retained. In the case that the real-time heart rate at a time is not in the target heart rate interval, it means that the pace at the heart rate reached at the time does not meet the threshold pace determination requirement, and therefore the real-time pace at the time can be deleted.
[0102] By filtering the multiple real-time paces in the target time period in the above manner, multiple reference real-time paces meeting the threshold pace determination requirement can be obtained. Subsequently, the threshold pace can be determined based on the multiple reference real-time paces.
[0103] Optionally, in the embodiments of the present application, the multiple real-time paces can also be filtered through a sliding window filtering manner.
[0104] Optionally, in the embodiments of the present application, the multiple real-time paces can also be filtered through a sliding window filtering manner.
[0105] Specifically, for any one of the multiple real-time heart rates, in the case that the real-time heart rate is in the target heart rate interval, the real-time heart rate is determined as a reference heart rate; in the case that the real-time heart rate is not in the target heart rate interval, the real-time heart rate is deleted.
[0106] Through the above operation, multiple reference heart rates can be obtained, and then multiple real-time paces corresponding to the multiple reference heart rates can be retained, so that multiple reference real-time paces can also be obtained.
[0107] Optionally, when the multiple real-time heart rates and the multiple real-time paces of the target object in the target time period are obtained, the real-time slopes of the positions of the target object at each time in the target time period can also be obtained, the real-time slopes at each time in the target time period are filtered first, and then the multiple real-time paces are filtered according to the filtered real-time slopes and the multiple real-time heart rates.
[0108] Since the threshold pace is determined based on the pace of the target object in the heart rate zone II, the threshold pace is determined based on the relationship between the heart rate and the pace of the target object in this case. However, when the real-time slope at a position exceeds the preset slope interval, the user's exercise limit range is exceeded, and thus the relationship between the heart rate and the pace of the target object does not exist. Therefore, the real-time slope can be filtered first.
[0109] Specifically, when the real-time slope at a position where the target object is located at a moment is in the preset slope interval, the real-time slope at the position where the moment is located is retained.
[0110] Further, after the real-time slopes are filtered, it is determined whether the real-time heart rate corresponding to the real-time slope is in the target heart rate interval; when the real-time heart rate corresponding to the real-time slope is in the target heart rate interval, the real-time pace corresponding to the slope is determined as the reference real-time pace; and when the real-time heart rate corresponding to the real-time slope is not in the target heart rate interval, the real-time pace corresponding to the slope is deleted.
[0111] It should be understood that the real-time heart rate, the real-time slope, and the real-time pace at each moment in the target time period correspond to each other.
[0112] Notably, before the above filtering operation of the real-time slope in the target time period is performed, it can be determined whether the real-time slope in the target time period is real based on the horizontal position error. When the real-time slope in the target time period is real, the real-time slope in the target time period is retained for subsequent filtering operation of the real-time slope.
[0113] It should be understood that the data of the target object during running can be in a unit of a moment, including position information at the moment, a real-time heart rate at the moment, a real-time pace at the moment, and a real-time slope at the moment. The position information at the moment can include a horizontal position error at the moment. The horizontal position error generally represents an error range between a receiver position and an actual position in GPS, and can measure the reliability of the position determined by the receiver in GPS.
[0114] Generally, the larger the horizontal position error, the larger the error between the calculated receiver position and the actual position, and thus the less accurate the position information provided by GPS, and the less accurate the subsequently calculated slope. The smaller the horizontal position error, the smaller the error between the calculated receiver position and the actual position, and thus the more accurate the position information provided by GPS, and the more accurate the subsequently calculated slope.
[0115] Specifically, the operation of determining whether the real-time slope in the target time period is real based on the horizontal position error can be: determining a target number of times that the horizontal position error at each time in the target time period is less than a target error threshold; in a case where the target number is greater than or equal to a target number threshold, determining that the real-time slope in the target time period is real; in a case where the target number is less than the target number threshold, determining that the real-time slope in the target time period is not reliable enough.
[0116] wherein the target error threshold and the target number threshold can be set in advance, and the target error threshold can be set smaller and the target number threshold can be set larger. For example, the target error threshold can be set to 10 and the target number threshold can be set to 30.
[0117] In this case, in a case where the horizontal position error is less than the target error threshold, it indicates that the error between the receiver position and the real position is small. Then in a case where the target number is greater than or equal to the target number threshold, it indicates that the number of times that the horizontal position error in the target time period is small is large, that is, the error between the receiver position and the real position in most of the target time period is small, and then it can be determined that the position information output by the GPS in the target time period is reliable, and the real-time slope in the target time period is real. Then in a case where the target number of times that the horizontal position error at each time in the target time period is less than the target error threshold, it indicates that the number of times that the horizontal position error in the target time period is small is small, that is, the error between the receiver position and the real position in most of the target time period is large, and then it can be determined that the position information output by the GPS in the target time period is not reliable, and the real-time slope in the target time period is not reliable.
[0118] Optionally, after obtaining the horizontal position error at each time in the target time period, the real-time slope in the target time period can be determined to be real or not through a sliding window filtering manner.
[0119] Suppose that the sliding window filtering operation is determined in a window size of one minute, then the target number of times that the horizontal position error in one minute is less than the target error threshold can be determined. Suppose that the target error threshold is 10, and specifically, the above manner can be implemented through the following formula (8) and formula (9).
[0120] wherein i represents the i-th sliding window, and j is the j-th data in the sliding window. EHPE i,j is the j-th horizontal position error in the i-th sliding window in the target time period. EHPEi is the number of times that the horizontal position error in the i-th sliding window is less than or equal to the target error threshold. threshold is the target number threshold. Filter iFilter i = 1 indicates that the slope corresponding to the time point in the i-th window is true, then the slope in the window can be retained, Filter i = 0 indicates that the slope corresponding to the time point in the i-th window is not reliable.
[0121] It is worth noting that the above-mentioned manner can determine a plurality of reference real-time pacing, and after determining the plurality of reference real-time pacing, the threshold pacing can be calculated according to the plurality of reference real-time pacing.
[0122] (3) determining a target heart rate threshold based on at least one of the maximum heart rate, the resting heart rate and the lactate threshold heart rate of the target object.
[0123] Specifically, the operation of step (3) can be realized by the following three possible ways.
[0124] The first possible implementation manner is to determine the lactate threshold heart rate as the target heart rate threshold when the lactate threshold heart rate of the target object is obtained.
[0125] Since the lactate threshold heart rate is the heart rate at the inflection point of the heart rate of the target object during exercise, that is, the lactate threshold heart rate is the maximum heart rate of the target object during exercise, which indicates that the lactate threshold heart rate can represent the heart rate of the target object under high-intensity exercise, and then the lactate threshold heart rate can be determined as the target heart rate threshold.
[0126] The second possible implementation manner is to determine the target heart rate threshold based on the maximum heart rate.
[0127] In this case, the target heart rate threshold is estimated based on the maximum heart rate of the target object when the lactate threshold heart rate and the resting heart rate of the target object are not obtained. In this way, a target heart rate threshold can always be determined when the lactate threshold heart rate is not obtained.
[0128] Specifically, the operation of determining the target heart rate threshold based on the maximum heart rate can be: multiplying the maximum heart rate by a seventh value to obtain the target heart rate threshold.
[0129] The seventh value can be set in advance, for example, the seventh value can be set to 0.95.
[0130] For example, the maximum heart rate is 160, and the target heart rate threshold is 152.
[0131] The third possible implementation manner is to determine the target heart rate threshold based on the resting heart rate and the maximum heart rate.
[0132] In this case, the target heart rate threshold can be estimated based on the maximum heart rate and the resting heart rate when the lactate threshold heart rate of the target object is not obtained. In this way, the target heart rate threshold can be determined in the case where the lactate threshold heart rate is not obtained.
[0133] Specifically, the operation of determining the target heart rate threshold based on the resting heart rate and the maximum heart rate can be: calculating the difference between the maximum heart rate and the resting heart rate to obtain a target difference; multiplying the target difference by the product of the eighth value and adding the resting heart rate to obtain the target heart rate threshold.
[0134] It should be understood that the seventh value and the eighth value are both positive numbers less than 1.
[0135] In this case, calculating the difference between the maximum heart rate and the resting heart rate is equivalent to determining the heart rate rising space of the target object. In addition, since the target object does not always reach the maximum heart rate during high-intensity exercise, multiplying the target difference by the eighth value is equivalent to reducing this rising space to obtain the maximum floating heart rate. Then adding the resting heart rate is equivalent to adding the maximum floating heart rate to the resting heart rate, which can determine the target heart rate threshold. In this way, the target heart rate threshold can be more accurately estimated.
[0136] (4) determining the threshold speed of the target object based on the target heart rate threshold and the plurality of reference real-time speeds.
[0137] Since the target heart rate threshold can represent the maximum heart rate of the target object during high-intensity exercise, the plurality of reference real-time speeds refers to the speed of the target object in the target heart rate interval, that is, the speed in the heart rate interval reached by aerobic exercise. In addition, the speed of the target object in the heart rate interval reached by aerobic exercise can indicate the aerobic exercise ability of the target object, that is, the relationship between heart rate and speed. Therefore, in the case where the relationship between heart rate and speed and the heart rate during high-intensity exercise are known, the threshold speed of the target object can be determined.
[0138] In this case, by determining the threshold speed of the target object based on the target heart rate threshold and the plurality of reference real-time speeds, the threshold speed of the target object during high-intensity exercise can be estimated without the target object performing high-intensity exercise.
[0139] Specifically, the operation of step (4) can include the following steps (a)-(c).
[0140] (a) For any one of the plurality of reference real-time speeds, predicting the high-intensity speed corresponding to the heart rate of the reference real-time speed based on the reference real-time speed.
[0141] Since the reference real-time pace is the pace when the heart rate of the target object is in the target heart rate interval, that is, the pace when the target object is in aerobic exercise. Since the pace when the target object is in aerobic exercise can represent the basic aerobic capacity of the target object, the high-intensity pace corresponding to the heart rate can be estimated based on the reference real-time pace.
[0142] In this case, it is equivalent to determining the high-intensity pace corresponding to the heart rate on the basis of the basic aerobic capacity of the target object. Therefore, a more accurate threshold pace can be determined subsequently.
[0143] Specifically, the operation of step (a) can be: for any one of the plurality of reference real-time paces, based on the reference real-time pace, the high-intensity pace corresponding to the heart rate of the reference real-time pace is predicted by the following formula (10).
[0144] Wherein, Pace hight is the high-intensity pace corresponding to the heart rate of the reference real-time pace at the tth moment in the target time period, and Pace t is the reference real-time pace at the tth moment in the target time period.
[0145] Therefore, for each of the plurality of reference real-time paces, a plurality of high-intensity paces, that is, high-intensity paces corresponding to the heart rates of the plurality of reference real-time paces, can be obtained by calculating each of the plurality of reference real-time paces.
[0146] Optionally, the above formula (10) can be determined by least squares method.
[0147] Since the least squares method can fit the relationship between data points and functions, the basic idea is to find the optimal function parameters by minimizing the sum of squared residuals between observed values and predicted values. Therefore, the above formula (10) can be more conveniently predicted by the least squares method.
[0148] Specifically, assume is a straight line, wherein α, β, ε t are coefficients to be solved, α is the intercept of the curve, β is the slope of the curve, and ε t is an error term.
[0149] In the embodiments of the present application, the above α, β, ε t can be obtained by least squares normalization. Specifically, the above α, β, ε t can be obtained by optimization by the following formula (11).
[0150] This is equivalent to taking a minute as a data unit, obtaining a reference real-time pace of a minute in the target time period, and performing a least square method regression prediction to predict the optimal solution of a, b, and e. t
[0151] (b) determining an average pace of the plurality of high-intensity paces.
[0152] After determining the plurality of high-intensity paces, an average pace of the plurality of high-intensity paces can be determined to determine the threshold pace of the target object.
[0153] The operation of step (b) is achieved by the following formula (12).
[0154] wherein, AvgPace high is the average pace of the plurality of high-intensity paces, and n is the number of the plurality of high-intensity paces.
[0155] (c) determining the threshold pace of the target object based on the average pace and a target heart rate threshold.
[0156] Since the average pace refers to the average pace of the plurality of high-intensity paces predicted, the high-intensity pace can represent the movement ability of the target object under high-intensity movement, and the target heart rate threshold is the maximum heart rate of the target object under high-intensity movement. Therefore, based on the average pace and the target heart rate threshold, the threshold pace of the target object under high-intensity can be predicted, and the threshold pace of the target object under high-intensity movement can be accurately predicted.
[0157] Optionally, before determining the threshold pace of the target object based on the average pace and the target heart rate threshold, the maximum heart rate of the target object in the target time period can also be obtained.
[0158] In this case, the operation of step (c) can be: determining the threshold pace of the target object based on the average pace, the target heart rate threshold, and the maximum heart rate of the target object in the target time period by the following formula (13).
[0159] wherein, Pace threshold is the threshold pace of the target object, HR threshold is the target heart rate threshold, and HR maxt is the maximum heart rate in the target time period.
[0160] It is worth noting that in the embodiments of the present application, the threshold pace of the target object can be determined by the above steps (1)-(4), that is, the maximum pace that the target object can reach under high-intensity movement can be estimated.
[0161] In the embodiments of the present application, after the threshold pace of the target object is determined, the threshold pace of the target object can be outputted, so that the target object knows the threshold pace of the target object in high-intensity exercise.
[0162] Optionally, after the threshold pace of the target object is determined, the reference pace of the target object can be determined based on the threshold pace of the target object.
[0163] Specifically, the method for determining the reference pace of the target object includes the following steps (1)-(3).
[0164] (1) In response to a reference pace setting instruction, a reference pace setting interface is displayed.
[0165] The reference pace setting instruction is used to set the reference pace of the target object. Optionally, the reference pace setting instruction can be triggered by the target object, for example, the target object can trigger the reference pace setting instruction through a click operation, a sliding operation, a somatosensory operation, a voice operation, etc. As a real-time method, a button for setting the reference pace can be displayed on the computer device, and the target object can click the button to trigger the reference pace setting instruction when the target object wants to set the reference pace.
[0166] The reference pace setting interface can display a plurality of level selection controls, and the plurality of level selection controls are used to determine reference paces of different levels. In this case, the target object can select a reference pace of a corresponding level according to the situation of the target object.
[0167] In the embodiments of the present application, the reference paces of different levels can be associated with the threshold pace of the target object. Optionally, the reference paces of different levels can be associated with the threshold pace of the target object through a level coefficient.
[0168] Specifically, one level corresponds to one level coefficient, and after the target object selects a level, the target object can determine the reference pace that the target object wants to set based on the level coefficient and the threshold pace of the target object.
[0169] For example, Table 1 below shows the correspondence between different levels and level coefficients. As shown in Table 1, Table 1 includes a plurality of levels and a plurality of level coefficients, wherein each level of the plurality of levels corresponds to one level coefficient.
[0170] Table 1
[0171] The embodiments of the present application only exemplarily illustrate the correspondence between different levels and level coefficients by using Table 1 above, and do not limit the embodiments of the present application.
[0172] For example, FIG. 4 is a schematic diagram of an interface for setting a reference pace, and as shown in FIG. 4, the interface for setting a reference pace includes a plurality of level selection controls 402.
[0173] (2) In response to a selection operation on a level selection control in the interface for setting a reference pace, determining a target pace level.
[0174] The selection operation on the level selection control is used to select a target level control, and then the level corresponding to the target level control is determined as the target pace level, i.e., the pace level that the target object wants to set.
[0175] Optionally, the selection operation on the level selection control can be triggered by the target object, such as through a click operation, a voice operation, etc. As an implementation manner, when the target object wants to select a corresponding level selection control, the target object can click the corresponding level selection control to select the target level control, so as to determine the target pace level.
[0176] (3) Multiplying the threshold pace of the target object by a level coefficient corresponding to the target pace level to obtain a reference pace of the target object.
[0177] In this way, by selecting the pace level that the target object wants to set, and then determining the corresponding reference pace based on the threshold pace, the reference pace of the target object can be set more flexibly and accurately.
[0178] It is worth noting that the threshold pace of the target object is determined in step 201, so that the reference pace of the target object can be determined based on the threshold pace of the target object. In the implementation manner of the present application, the threshold pace of the target object can be determined when the target object completes a run, and the interface for setting a reference pace is displayed when the target object performs the next run, so that the target object can select a corresponding pace level, and then the reference pace of the target object can be determined based on the threshold pace of the target object and the selected pace level.
[0179] After the slope at the current location of the target object and the reference pace of the target object are determined through the above step 201, the target pace of the target object at the current location can also be determined based on the reference pace of the target object and the slope at the current location of the target object, i.e., steps 202 and 203 are further executed.
[0180] Step 202: Based on the slope at the location of the target object, determining a target influence factor, which is used to represent the influence of the slope on the body energy consumption when the target object moves at the location.
[0181] Since the slope is resistant to the movement of the target object when the target object moves on the slope, the target object consumes physical energy when moving on the slope. Therefore, the target influence factor can be determined based on the slope of the position where the target object is located.
[0182] In this case, by determining the target influence factor based on the slope of the position where the target object is located, the influence of the position where the target object is located on the physical energy consumption can be known, so that the target pace can be determined in combination with the terrain characteristics.
[0183] It should be understood that the target influence factor can be greater when the target object moves uphill, which increases the energy consumption and heart rate of the target object, and the target influence factor can be smaller when the target object moves downhill, which relatively reduces the energy consumption but can increase muscle fatigue.
[0184] Therefore, the operation of step 202 can be: determining a sine value and a logarithmic value of the slope of the position where the target object is located; and determining the target influence factor based on the sine value and the logarithmic value.
[0185] Since the periodicity of the sine function can simulate the fluctuations of the heart rate and the energy consumption to some extent, the sine function can reflect the periodic influence of the slope on the heart rate and the energy consumption. The logarithmic function can represent the nonlinear influence of the slope on the energy consumption. As the slope increases, the speed of energy consumption gradually slows down, so the logarithmic function can more accurately represent this influence.
[0186] In this case, the sine value and the logarithmic value can accurately represent the periodic influence and the nonlinear influence of the slope on the heart rate and the energy consumption. Therefore, the target influence factor can be accurately determined based on the sine value and the logarithmic value.
[0187] The operation of determining the target influence factor based on the sine value and the logarithmic value can be: determining the target influence factor based on the sine value and the logarithmic value by the following formula (14). η=1+εsin(S)+γlog(2·S+1) (14)
[0188] Wherein, η is the target influence factor, S is the slope, ε is the influence weight of the sine function on the energy consumption, and γ is the influence weight of the logarithmic function on the energy consumption. In addition, ε and γ can be set by the technician in advance, such as ε=0.6, γ=0.4.
[0189] Step 203: determining the target pace of the target object on the slope based on the reference pace and the target influence factor.
[0190] In this case, the reference pace of the target object is corrected in combination with the terrain where the target object is located, so that the target pace can be obtained more accurately, and then the user can be provided with accurate pace reference, which can improve the user experience.
[0191] Specifically, the operation of step 203 can be: dividing the reference pace of the target object by the target influence factor to obtain the target pace of the target object at the current slope.
[0192] Since the target influence factor represents the influence of the slope on the energy consumption of the target object, the target pace of the target object should actually be less than the reference pace, so the reference pace of the target object can be divided by the target influence factor.
[0193] In this case, by dividing the reference pace of the target object by the target influence factor, the reference pace of the target object is actually reduced, so that the target pace of the target object at the current slope can be accurately obtained.
[0194] The above operation is realized by the following formula (15). Pace target =TargetNGP / η (15)
[0195] Wherein, Pace target is the target pace of the target object at the slope, and TargetNGP is the reference pace of the target object.
[0196] Optionally, after determining the target pace of the target object at the slope, the target pace of the target object at the slope can also be displayed in real time.
[0197] In this way, the target object can know what the target pace suitable for itself is at the current location, so that the target object can know whether to exert more force or relax according to this, so that the movement process of the target object can be more comfortable.
[0198] Further, after determining the target pace of the target object at the slope, the current pace of the target object at the location can also be obtained; based on the difference between the target pace and the current pace, it is determined whether the current pace of the target object reaches the target pace.
[0199] Specifically, in the case that the difference obtained by subtracting the target pace from the current pace is positive, it is determined that the current pace of the target object reaches the target pace; in the case that the difference obtained by subtracting the target pace from the current pace is negative, it is determined that the current pace of the target object does not reach the target pace.
[0200] In this case, when the difference between the current pace and the target pace is positive, it indicates that the current pace is greater than the target pace, that is, the pace of the target object at the current position is greater than the recommended target pace, and it can be determined that the current pace of the target object reaches the target pace. When the difference between the current pace and the target pace is negative, it indicates that the current pace is less than the target pace, that is, the pace of the target object at the current position is less than the recommended target pace, and it can be determined that the current pace of the target object does not reach the target pace.
[0201] Further, after determining whether the current pace of the target object reaches the target pace based on the difference between the target pace and the current pace, it can also be determined that the target object leads or lags a distance.
[0202] The target object moves at the current pace for a period of time, and will move a corresponding distance. Assuming that the target object moves at the recommended target pace for a period of time, it will also move a corresponding distance. Therefore, if the current pace of the target object reaches or does not reach the target pace, there will also be a leading or lagging distance, and thus the leading or lagging distance of the target object can be determined.
[0203] Specifically, a target time difference between the current time and the previous time is determined, and the difference between the target pace and the current pace of the target object is multiplied by the target time difference to obtain a target distance.
[0204] The target distance is the distance that the target object moves at the current pace ahead of or behind the target pace.
[0205] The specific operation of obtaining the target distance can be implemented by the following formula (16).
[0206] Wherein, W is the target distance, Pace current is the current pace of the target object, x2 is the current time, and x1 is the previous time.
[0207] Optionally, after the target distance is determined, the target distance can be output to enable the target object to know the current leading or lagging distance.
[0208] It is worth noting that the target pace determination method provided by the embodiments of the present application can update the target pace in real time by considering the influence of the terrain features on the energy consumption of the target object, so as to recommend a suitable target pace for the user. In addition, the threshold pace of the target object can be determined based on the heart rate, historical pace and other data of the target object, so the threshold pace is a more reasonable pace determined in combination with the strength of the target object itself, so that the target object can set a more scientific and personalized pace in the subsequent process.
[0209] For ease of understanding, the target speed determination method provided by the embodiments of the present application will be exemplarily described in combination with FIG. 5. For example, FIG. 5 is a flowchart of another target speed determination method provided by the embodiments of the present application. As shown in FIG. 5, the method comprises steps 501-515.
[0210] In step 501, the heart rate data of the target object and the longitude, latitude and altitude of the position where the target object is located at the current time and the last time are obtained.
[0211] The heart rate data of the target object can include the maximum heart rate, the resting heart rate and the lactate threshold heart rate of the target object.
[0212] In step 502, the horizontal distance of the position where the target object is located at the current time and the last time is determined based on the longitude and latitude of the target object.
[0213] In step 503, the height difference of the position where the target object is located at the current time and the last time is determined based on the altitude of the target object.
[0214] In step 504, the slope of the position where the target object is located is determined based on the horizontal distance and the height difference of the position where the target object is located at the current time and the last time.
[0215] In step 505, it is judged whether the slope is within a preset slope interval.
[0216] In step 506, if the slope is within the preset slope interval, the following step 514 is continued to be executed; if the slope is not within the preset slope interval, the slope of the position where the target object is located is updated to the maximum slope within the preset slope interval, and then the following step 514 is continued to be executed.
[0217] In step 507, the real-time heart rate and the real-time speed of the target object within a target time period are obtained.
[0218] In step 508, it is judged whether the real-time heart rate within the target time period is within a target heart rate interval by a sliding window filtering.
[0219] In step 509, the real-time speed corresponding to the real-time heart rate within the target heart rate interval is reserved to obtain a plurality of reference real-time speeds.
[0220] In step 510, the real-time speed corresponding to the real-time heart rate not within the target heart rate interval is deleted.
[0221] In step 511, the target heart rate threshold of the target object is determined based on the heart rate data of the target object.
[0222] Step 512: determining a threshold speed of the target object based on the target heart rate threshold and the plurality of reference real-time paces.
[0223] Step 513: setting a reference speed of the target object based on the threshold speed of the target object.
[0224] Step 514: determining a target influence factor based on a slope of a location where the target object is currently located.
[0225] Step 515: dividing the reference speed of the target object by the target influence factor to obtain a target speed of the target object at the location where the target object is currently located.
[0226] In the embodiments of the present application, the computer device first acquires the reference speed of the target object and the slope of the location where the target object is located, and then determines the target influence factor based on the slope of the location where the target object is located, that is, determines the influence of the slope on the body energy consumption when the target object runs at the location. Finally, the target speed of the target object at the slope is determined based on the reference speed of the target object and the target influence factor. Since the target influence factor can represent the influence of the slope on the body energy consumption when the target object runs at the location, by determining the target speed based on the reference speed and the target influence factor, the reference speed of the target object at the location is corrected in combination with the terrain of the location where the target object is located, so that a more accurate target speed can be obtained, and then an accurate speed reference can be provided for the user, which can improve the user experience.
[0227] FIG. 6 is a structural schematic diagram of a target speed determination apparatus provided by the embodiments of the present application. The target speed determination apparatus can be realized by software, hardware or a combination of both as part or all of a computer device, and the computer device can be the computer device shown in FIG. 7 below. Referring to FIG. 6, the apparatus includes a first acquisition module 601, a first determination module 602 and a second determination module 603.
[0228] The first acquisition module 601 is configured to acquire a reference speed of a target object and a slope of a location where the target object is located.
[0229] The first determination module 602 is configured to determine a target influence factor based on the slope of the location where the target object is located, and the target influence factor is used to represent the influence of the slope on the body energy consumption when the target object runs at the location.
[0230] The second determination module 603 is configured to determine a target speed of the target object at the slope based on the reference speed and the target influence factor.
[0231] Optionally, the apparatus further includes:
[0232] The second acquisition module is configured to acquire the longitude, the latitude and the altitude of the target object at the current time and at the previous time;
[0233] The third determination module is configured to determine a horizontal distance between the positions of the target object at the current time and at the previous time based on the longitude and the latitude of the target object at the current time and at the previous time.
[0234] The first calculation module is configured to divide the height difference of the altitude of the target object at the current time and at the previous time by the horizontal distance to obtain a slope of the current position of the target object.
[0235] Optionally, the third determination module is configured to:
[0236] determine a great circle distance between the positions of the target object at the current time and at the previous time based on the longitude and the latitude of the target object at the current time and at the previous time.
[0237] multiply the great circle distance by the radius of the earth to obtain the horizontal distance between the positions of the target object at the current time and at the previous time.
[0238] Optionally, the apparatus further comprises:
[0239] The display module is configured to display a reference pace setting interface in response to a reference pace setting instruction, the reference pace setting interface being displayed with a plurality of grade selection controls, the plurality of grade selection controls being used to determine pace of different grades.
[0240] The fourth determination module is configured to determine a target pace grade in response to a selection operation on the reference pace setting interface for the grade selection controls.
[0241] The second calculation module is configured to multiply a threshold pace of the target object by a grade coefficient corresponding to the target pace grade to obtain a reference pace of the target object, the threshold pace being a pace of the target object at a target heart rate threshold.
[0242] Optionally, the apparatus further comprises:
[0243] The third acquisition module is configured to acquire a plurality of real-time paces and a plurality of real-time heart rates of the target object within a target time period.
[0244] The filtering module is configured to filter the plurality of real-time paces within the target time period based on the plurality of real-time heart rates of the target object within the target time period to obtain a plurality of reference real-time paces.
[0245] The fifth determination module is configured to determine a target heart rate threshold based on at least one of a maximum heart rate, a resting heart rate and a lactate threshold heart rate of the target object.
[0246] The sixth determining module is configured to determine a threshold speed of the target object based on the target heart rate threshold and the plurality of reference real-time speeds.
[0247] Optionally, the filtering module is configured to:
[0248] For a real-time heart rate at any moment in the target time period, determine whether the real-time heart rate at the moment is within a target heart rate interval, the target heart rate interval being a heart rate interval in which the target object is performing aerobic exercise;
[0249] In a case where the real-time heart rate at the moment is within the target heart rate interval, retain a real-time speed corresponding to the moment;
[0250] In a case where the real-time heart rate at the moment is not within the target heart rate interval, delete the real-time speed corresponding to the moment.
[0251] Optionally, the fifth determining module is configured to:
[0252] determine the target heart rate threshold as a lactic acid threshold heart rate;
[0253] or, determine the target heart rate threshold based on a maximum heart rate;
[0254] or, determine the target heart rate threshold based on a resting heart rate and a maximum heart rate.
[0255] Optionally, the sixth determining module is configured to:
[0256] For any one of the plurality of reference real-time speeds, predict a high-intensity speed corresponding to a heart rate of the reference real-time speed based on the reference real-time speed;
[0257] determine an average speed of the plurality of high-intensity speeds;
[0258] determine a threshold speed of the target object based on the average speed and the target heart rate threshold.
[0259] Optionally, the first determining module is configured to:
[0260] determine a sine value and a logarithm value of a slope of a location where the target object is located;
[0261] determine a target influence factor based on the sine value and the logarithm value.
[0262] Optionally, the second determining module is configured to:
[0263] divide the reference speed by the target influence factor to obtain a target speed of the target object at the slope.
[0264] Optionally, the apparatus further comprises:
[0265] a fourth obtaining module, configured to obtain a current pace of the target object at a current position;
[0266] a seventh determining module, configured to determine whether the current pace of the target object reaches the target pace based on a difference between the target pace and the current pace.
[0267] Optionally, the seventh determining module is configured to:
[0268] determine that the current pace of the target object reaches the target pace when the difference is a positive value;
[0269] determine that the current pace of the target object does not reach the target pace when the difference is a negative value.
[0270] Optionally, the apparatus further comprises:
[0271] an eighth determining module, configured to determine a target time difference between a current time and a previous time;
[0272] a third calculating module, configured to multiply the difference between the target pace and the current pace of the target object by the target time difference to obtain a target distance, the target distance being a distance by which the target object moves ahead of or falls behind a target object moving at the target pace.
[0273] In the embodiments of the present application, the reference pace of the target object and the slope of the current position of the target object are obtained first, then the target influence factor is determined based on the slope of the current position of the target object, that is, the influence of the slope on the body energy consumption when the target object runs at the current position is determined, and finally the target pace of the target object at the current slope is determined based on the reference pace of the target object and the target influence factor. Since the target influence factor can represent the influence of the slope on the body energy consumption when the target object runs at the current position, by determining the target pace based on the reference pace and the target influence factor, the reference pace of the target object is corrected in combination with the terrain of the current position of the target object, so that a more accurate target pace can be obtained, and then an accurate pace reference can be provided for the user, which can improve the user experience.
[0274] It should be noted that: the target pace determination apparatus provided by the above embodiments determines the target pace when the target object moves, and only the division of the above functional modules is used as an example for illustration, and in actual application, the above functions can be completed by different functional modules according to needs, that is, the internal structure of the apparatus is divided into different functional modules to complete all or part of the functions described above.
[0275] The various functional units and modules in the above-described embodiments can be integrated in one processing unit, or each unit can exist physically, or two or more units can be integrated in one unit, and the integrated unit can be implemented in the form of hardware or in the form of a software functional unit. In addition, the specific names of the various functional units and modules are only for the purpose of mutual distinction, and do not serve to limit the protection scope of the embodiments of the present application.
[0276] The target speed determination device and the target speed determination method provided by the above-described embodiments belong to the same concept, and the specific working processes of the units and modules in the above-described embodiments and the resulting technical effects can be referred to in the method embodiment part, which will not be repeated here.
[0277] FIG. 7 is a structural schematic diagram of a computer device according to an embodiment of the present application. As shown in FIG. 7, the computer device 7 includes a processor 70, a memory 71, and a computer program 72 stored in the memory 71 and executable on the processor 70, and the processor 70 implements the steps in the target speed determination method in the above-described embodiments when executing the computer program 72.
[0278] The computer device 7 can be a general-purpose computer device or a special-purpose computer device. In a specific implementation, the computer device 7 can be a mobile terminal such as a mobile phone, a tablet computer, a smart wearable device, etc., and the embodiments of the present application do not limit the type of the computer device 7. Those skilled in the art can understand that FIG. 7 is only an example of the computer device 7 and does not constitute a limitation on the computer device 7, and can include more or fewer components than those shown, or combine certain components, or different components, such as an input / output device, a network access device, etc.
[0279] The processor 70 can be a central processing unit (CPU), and the processor 70 can also be other general-purpose processors, digital signal processors (DSP), application specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor can be a microprocessor or any conventional processor.
[0280] The memory 71 can be an internal storage unit of the computer device 7, such as a hard disk or a memory of the computer device 7 in some embodiments. The memory 71 can also be an external storage device of the computer device 7, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) card, a Flash Card, etc. equipped on the computer device 7 in other embodiments. Further, the memory 71 can include both an internal storage unit and an external storage device of the computer device 7. The memory 71 is used to store an operating system, an application program, a BootLoader, data, and other programs, etc. The memory 71 can also be used to temporarily store data that has been output or is to be output.
[0281] The embodiments of the present application further provide a computer readable storage medium, which stores a computer program. The computer program is executed by a processor to implement the steps in the above various method embodiments.
[0282] The embodiments of the present application provide a computer program product, which, when running on a computer, causes the computer to perform the steps in the above various method embodiments.
[0283] The integrated unit, if implemented in the form of a software functional unit and sold or used as an independent product, can be stored in a computer readable storage medium. Based on such understanding, the present application can implement all or part of the processes in the above method embodiments by a computer program to instruct related hardware to complete. The computer program can be stored in a computer readable storage medium and can implement the steps in the above various method embodiments when executed by a processor. The computer program includes computer program code, which can be in the form of source code, object code, executable files or some intermediate forms. The computer readable medium at least includes any entity or device capable of carrying the computer program code to the photographing device / terminal device, a recording medium, a computer memory, a ROM (Read-Only Memory), a RAM (Random Access Memory), a CD-ROM (Compact Disc Read-Only Memory), a magnetic tape, a floppy disk, and an optical data storage device, etc. The computer readable storage medium mentioned in the present application can be a non-volatile storage medium, in other words, a non-transitory storage medium.
[0284] It should be understood that all or part of the steps of the above-mentioned embodiments can be realized by software, hardware, firmware or any combination thereof. When realized by software, it can be realized in the form of a computer program product in whole or in part. The computer program product includes one or more computer instructions. The computer instructions can be stored in the computer readable storage medium described above.
[0285] In the above embodiments, the description of each embodiment has its own focus, and the parts not described or recorded in detail in a certain embodiment can be referred to the related description of other embodiments.
[0286] Those skilled in the art can appreciate that the units and algorithm steps of each example described in combination with the embodiments disclosed herein can be realized by electronic hardware or a combination of computer software and electronic hardware. Whether the functions are realized in hardware or software depends on the specific application and design constraints of the technical solution. The skilled person can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of the present application.
[0287] In the embodiments provided in the present application, it should be understood that the disclosed apparatus / computer device and method can be implemented in other ways. For example, the apparatus / computer device embodiments described above are only schematic. The division of the modules or units is only a logical function division, and there can be another division manner in actual implementation. For example, a plurality of units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the displayed or discussed mutual coupling or direct coupling or communication connection can be indirect coupling or communication connection through some interface, device or unit, and can be electrical, mechanical or in other forms.
[0288] The units described as separate components can or can not be physically separate, and the components shown as units can or can not be physical units, i.e. they can be located in one place or distributed on a plurality of network units. Some or all of the units can be selected to achieve the purpose of the embodiments according to actual needs.
[0289] The above-described embodiments are only used to illustrate the technical solutions of the present application, but not to limit them; although the present application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that the technical solutions recorded in the foregoing embodiments can be modified, or some technical features can be replaced by equivalent ones; and these modifications or replacements do not make the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present application, and should be included in the protection scope of the present application.
Claims
1. A method of determining a target pace for an individual, wherein, The method comprises: obtaining a reference pace of a target object and a slope at a position where the target object is located; determining a target influence factor based on the slope at the position where the target object is located, the target influence factor being used to represent an influence of the slope on body energy consumption when the target object moves at the position; and determining a target pace of the target object under the slope based on the reference pace and the target influence factor.
2. The method of claim 1, wherein, A method for determining a slope at a position where a target object is located, comprising: obtaining longitude, latitude and altitude of the target object at a current time and a previous time; determining a horizontal distance between positions where the target object is located at the current time and the previous time based on longitude and latitude of the target object at the current time and the previous time; dividing a height difference between altitudes of the target object at the current time and the previous time by the horizontal distance to obtain the slope at the current position where the target object is located.
3. The method of claim 2, wherein, The method for determining the horizontal distance between positions where the target object is located at the current time and the previous time based on longitude and latitude of the target object at the current time and the previous time comprises: determining a great-circle distance between positions where the target object is located at the current time and the previous time based on longitude and latitude of the target object at the current time and the previous time; multiplying the great-circle distance by an earth radius to obtain the horizontal distance between positions where the target object is located at the current time and the previous time.
4. The method of claim 1, wherein, A method for determining a reference pace of a target object, comprising: in response to a reference pace setting instruction, displaying a reference pace setting interface, the reference pace setting interface displaying a plurality of grade selection controls, the plurality of grade selection controls being used to determine paces of different grades; in response to a selection operation on a grade selection control on the reference pace setting interface, determining a target pace grade; multiplying a threshold pace of the target object by a grade coefficient corresponding to the target pace grade to obtain a reference pace of the target object, the threshold pace being a pace of the target object under a target heart rate threshold.
5. The method of claim 4, wherein, A method for determining a threshold pace of a target object, comprising: obtaining a plurality of real-time paces and a plurality of real-time heart rates of the target object within a target time period; filtering the plurality of real-time paces within the target time period based on the plurality of real-time heart rates of the target object within the target time period to obtain a plurality of reference real-time paces; determining the target heart rate threshold based on at least one of a maximum heart rate, a resting heart rate and a lactate threshold heart rate of the target object; determining a threshold pace of the target object based on the target heart rate threshold and the plurality of reference real-time paces.
6. The method of claim 5, wherein, The method for filtering the plurality of real-time paces within the target time period based on the plurality of real-time heart rates of the target object within the target time period to obtain a plurality of reference real-time paces comprises: For a real-time heart rate at any moment in the target time period, determining whether the real-time heart rate at the moment is within a target heart rate interval, the target heart rate interval being a heart rate interval in which the target object is in when performing aerobic exercise; In the case that the real-time heart rate at the moment is within the target heart rate interval, retaining a real-time pacing speed corresponding to the moment; In the case that the real-time heart rate at the moment is not within the target heart rate interval, deleting the real-time pacing speed corresponding to the moment.
7. The method of claim 5, wherein, The target heart rate threshold is determined based on at least one of a maximum heart rate, a resting heart rate and a lactate threshold heart rate of the target object, and the target heart rate threshold comprises: The lactate threshold heart rate is determined as the target heart rate threshold; Or, the target heart rate threshold is determined based on the maximum heart rate; Or, the target heart rate threshold is determined based on the resting heart rate and the maximum heart rate.
8. The method of claim 5, wherein, The threshold pacing speed of the target object is determined based on the target heart rate threshold and the plurality of reference real-time pacing speeds, and the threshold pacing speed comprises: For any one of the plurality of reference real-time pacing speeds, a high-intensity pacing speed corresponding to a heart rate of the reference real-time pacing speed is predicted based on the reference real-time pacing speed; An average pacing speed of the plurality of high-intensity pacing speeds is determined; The threshold pacing speed of the target object is determined based on the average pacing speed and the target heart rate threshold.
9. The method of claim 1, wherein, The target influence factor is determined based on a slope of a location where the target object is located, and the target influence factor comprises: A sine value and a logarithm value of the slope of the location where the target object is located are determined; The target influence factor is determined based on the sine value and the logarithm value.
10. The method of claim 1, wherein, The target pacing speed of the target object under the slope is determined based on the reference pacing speed and the target influence factor, and the target pacing speed comprises: The reference pacing speed is divided by the target influence factor to obtain the target pacing speed of the target object under the slope.
11. The method of claim 1, wherein, After the target pacing speed of the target object under the slope is determined based on the reference pacing speed and the target influence factor, the method further comprises: A current pacing speed of the target object at the location where the target object is located is obtained; Whether the current pacing speed of the target object reaches the target pacing speed is determined based on a difference between the target pacing speed and the current pacing speed.
12. The method of claim 11, wherein, Whether the current pacing speed of the target object reaches the target pacing speed is determined based on a difference between the target pacing speed and the current pacing speed, and the difference comprises: In the case that the difference is a positive value, it is determined that the current pacing speed of the target object reaches the target pacing speed; In the case that the difference is a negative value, it is determined that the current pacing speed of the target object does not reach the target pacing speed.
13. The method of claim 11, wherein, After whether the current pacing speed of the target object reaches the target pacing speed is determined based on the difference between the target pacing speed and the current pacing speed, the method further comprises: A target time difference between a current moment and a previous moment is determined; The difference between the target pace of the target object and the current pace is multiplied by the target time difference to obtain a target distance, the target distance being a distance that the target object moves ahead or falls behind of moving at the target pace with the current pace.
14. A target pacing determination apparatus, wherein, The device comprises: a first obtaining module, configured to obtain a reference pace of a target object and a slope at a position where the target object is located; a first determining module, configured to determine a target influence factor based on the slope at the position where the target object is located, the target influence factor being used to represent an influence of the slope on body energy consumption when the target object runs at the position; a second determining module, configured to determine a target pace of the target object at the slope based on the reference pace and the target influence factor.
15. A computer device, wherein, The computer device comprises a memory, a processor, and a computer program stored in the memory and executable on the processor, and the computer program, when executed by the processor, implements the method in any one of claims 1 to 13.
16. A computer readable storage medium, wherein, The computer readable storage medium stores a computer program, and the computer program, when executed by a processor, implements the method in any one of claims 1 to 13.
Citation Information
Patent Citations
Sports physical ability analysis method and equipment and storage medium
CN108970085A
Sport data processing method and electronic equipment
CN111202955A
Speed allocation recommendation method and device, electronic equipment and storage medium
CN112289405A
Real-time gradient calculation method and device, intelligent wearable equipment and storage medium
CN116858185A
Method and device for determining equivalent speed allocation, equipment and storage medium
CN117815632A