Target pace determination method and apparatus, device, and storage medium

The method adjusts running pace based on terrain slope using GPS data to maintain consistent performance, addressing inconsistent pace issues due to terrain changes.

US20260084009A1Pending Publication Date: 2026-03-26SUUNTO SPORTS TECHNOLOGY (DONGGUAN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
US · United States
Patent Type
Applications(United States)
Current Assignee / Owner
Filing Date
2025-11-21
Publication Date
2026-03-26

Smart Images

  • Figure US20260084009A1-D00000_ABST
    Figure US20260084009A1-D00000_ABST
Patent Text Reader

Abstract

A target pace determination method includes: obtaining a reference pace of a target object and a slope of a position where the target object is located; determining a target impact factor based on the slope of the position where the target object is located; and determining a target pace of the target object at the slope based on the reference pace and the target impact factor.
Need to check novelty before this filing date? Find Prior Art

Description

CROSS-REFERENCE TO RELATED APPLICATIONS

[0001] This application is a continuation of International Patent Application No. PCT / CN2025 / 121428, filed on Sep. 15, 2025, which claims priority and benefit to Chinese Patent Application No. 202411328163.2, filed on Sep. 23, 2024 with the China National Intellectual Property Administration, both of which are incorporated herein by reference in their entireties.FIELD

[0002] The present disclosure relates to the field of computer technologies, and in particular, to a target pace determination method, a target pace determination apparatus, a computer device, and a computer-readable storage medium.BACKGROUND

[0003] Currently, persons are paying increasing attention to health, and more and more persons are using their spare time for exercise. For example, running is a fitness method that exercises the entire body and mind. For a person, the pace during running is very important, and a user usually sets a target pace for the run before starting running.SUMMARY

[0004] The present disclosure provides a target pace determination method, a target pace determination apparatus, a computer device, and a computer-readable storage medium.

[0005] In a first aspect, embodiments of the present disclosure provide a target pace determination method. The method includes: obtaining a reference pace of a target object and a slope of a position where the target object is located; determining a target impact factor based on the slope of the position where the target object is located, the target impact factor being configured to indicate an impact on physical energy consumption when the target object runs at the slope; and determining a target pace of the target object at the slope based on the reference pace and the target impact factor.

[0006] In a second aspect, the embodiments of the present disclosure further provide a target pace determination apparatus. The apparatus includes: a first obtaining module configured to obtain a reference pace of a target object and a slope of a position where the target object is located; a first determination module configured to determine a target impact factor based on the slope of the position where the target object is located, the target impact factor being configured to indicate an impact of the slope on physical energy consumption when the target object runs at the position where the target object is located; and a second determination module configured to determine a target pace of the target object at the slope based on the reference pace and the target impact factor.

[0007] In a third aspect, the embodiments of the present disclosure provide a computer device. The computer device includes a memory, a processor, and a computer program stored in the memory and executable on the processor. The computer program, when executed by the processor, implements the target pace determination method. The target pace determination method includes: obtaining a reference pace of a target object and a slope of a position where the target object is located; determining a target impact factor based on the slope of the position where the target object is located, the target impact factor being configured to indicate an impact on physical energy consumption when the target object runs at the slope; and determining a target pace of the target object at the slope based on the reference pace and the target impact factor.

[0008] In a fourth aspect, the embodiments of the present disclosure provide a computer-readable storage medium. The computer-readable storage medium stores a computer program. The computer program, when executed by a processor, implements the target pace determination method. The target pace determination method includes: obtaining a reference pace of a target object and a slope of a position where the target object is located; determining a target impact factor based on the slope of the position where the target object is located, the target impact factor being configured to indicate an impact on physical energy consumption when the target object runs at the slope; and determining a target pace of the target object at the slope based on the reference pace and the target impact factor.

[0009] In a fifth aspect, the embodiments of the present disclosure provide a computer program product containing instructions. The computer program product, when running on a computer, causes the computer to execute the above target pace determination method. The target pace determination method includes: obtaining a reference pace of a target object and a slope of a position where the target object is located; determining a target impact factor based on the slope of the position where the target object is located, the target impact factor being configured to indicate an impact on physical energy consumption when the target object runs at the slope; and determining a target pace of the target object at the slope based on the reference pace and the target impact factor.

[0010] Additional aspects and advantages of the present disclosure will be provided in part in the following description, or will become apparent in part from the following description, or can be learned from practicing of the present disclosure.BRIEF DESCRIPTION OF THE DRAWINGS

[0011] The above and / or additional aspects and advantages of the present disclosure will become more apparent and more understandable from the following description of embodiments taken in conjunction with the accompanying drawings, in which:

[0012] FIG. 1 is a scenario schematic diagram of a target pace determination method provided by an embodiment of the present disclosure.

[0013] FIG. 2 is a flowchart of a target pace determination method provided by an embodiment of the present disclosure.

[0014] FIG. 3 is a schematic diagram of a great-circle distance provided by an embodiment of the present disclosure.

[0015] FIG. 4 is an interface schematic diagram of a reference pace setting interface provided by an embodiment of the present disclosure.

[0016] FIG. 5 is a flowchart of another target pace determination method provided by an embodiment of the present disclosure.

[0017] FIG. 6 is a schematic structural diagram of a target pace determination apparatus provided by an embodiment of the present disclosure.

[0018] FIG. 7 is a schematic structural diagram of a computer device provided by an embodiment of the present disclosure.DETAILED DESCRIPTION

[0019] In order to clarify the above-mentioned objects, features, and advantages of the present disclosure, specific embodiments of the present disclosure are described in detail below in conjunction with the accompanying drawings. In the following description, many specific details are provided to facilitate full understanding of the present disclosure. However, the present disclosure can be implemented in various manners other than those described herein, and similar improvements can be made by those skilled in the art without contradicting the intent of the present disclosure. Therefore, the present disclosure is not limited by specific embodiments disclosed below.

[0020] It should be understood that “a plurality of” referred to herein means two or more. In the description of the present disclosure, unless otherwise specified, “ / ” indicates an “or” relationship. For example, A / B may indicate A or B. The expression “and / or” herein merely describes the association relationship of the associated objects and expresses that three kinds of relationships may exist. For example, A and / or B may indicate that three cases where A exists independently, both A and B exist, and B exists independently. In addition, to clearly describe the technical solutions of the present disclosure, terms such as “first” and “second” are used to distinguish the same or similar items with basically the same functions and roles. Those skilled in the art can understand that the terms “first” and “second” do not limit the quantity and execution order, nor do they necessarily imply that the items are different.

[0021] Before a target pace determination method provided by the embodiments of the present disclosure is described, an implementation environment of the target pace determination method provided by the embodiments of the present disclosure will be explained first.

[0022] In the embodiments of the present disclosure, for ease of calculation and understanding, the term “pace” refers to a movement speed of the target object, and the unit of the pace may be meters per second (m / s). The definition of pace ensures that a relationship between pace, time, and distance conforms to standard physical formulas. For example, the commonly known“5-minute pace” (i.e., 5 minutes per kilometer) may be converted into a corresponding speed value (approximately 3.33 m / s) for calculation in the present disclosure.

[0023] The target pace determination method provided by the embodiments of the present disclosure may determine a reasonable target pace based on terrain where a user is located during running. In this case, the user needs to carry a device capable of obtaining exercise data while running. In the embodiments of the present disclosure, the user may carry a mobile phone, a tablet computer, a smart wearable device, or the like.

[0024] The smart wearable device is a small electronic device that may be worn on the body, and performs data exchange by connecting to a smart phone or other devices. The smart wearable device may 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 may be used in scenarios such as health management, exercise training, smart home control, business office, and education.

[0025] In an exercise training scenario, the smart wearable device may obtain heart rate data of the user, and obtain position data, an exercise duration, and pace data through a Global Positioning System (GPS).

[0026] In the embodiments of the present disclosure, position data of a position where the user is located, heart rate data, and pace data may be obtained through the GPS of the smart wearable device, and a target pace adapted to the terrain may be determined based on these data subsequently.

[0027] Next, an application scenario of the embodiments of the present disclosure will be described.

[0028] For example, FIG. 1 is a scenario schematic diagram of a target pace determination method provided by an embodiment of the present disclosure. Referring to FIG. 1, FIG. 1 includes a user 101 and a road 102. The road 102 consists of flat ground and a slope.

[0029] 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 capable of obtaining a pace. Before starting the run, the user 101 may set a target pace for the run on the device, i.e., set a pace that the user 101 intends to achieve during the run.

[0030] However, the road 102 has a slope, so an effort exerted by the user 101 when running on the flat ground of the road 102 is different from an effort exerted by the user 101 when running on the slope. Thus, the user 101 cannot maintain a constant output, and a real-time pace of the user 101 varies between the flat ground and the slope during the run. Therefore, the target pace of the user 101 should also change correspondingly with a change in the terrain.

[0031] To this end, the embodiments of the present disclosure provide a target pace determination method, which may be applied in a scenario where the user performs competitive exercises. For example, this method may be applied in a running scenario or a race walking scenario of the user.

[0032] For example, when the method is applied in the running scenario, a specific process of determining the target pace is as follows. First, a target pace set by the user 101 and a slope of a position where the user 101 is currently located are obtained. Then, based on the slope of the position where the user 101 is currently located, a target impact factor is determined, i.e., an impact of the slope on physical energy consumption when the user 101 runs at the position, where the user 101 is located, is determined. Finally, based on the target pace set by the user 101 and the target impact factor, the target pace of the user 101 at the above slope is determined, that is, a target pace adapted to the terrain of the position where the user 101 is located may be determined.

[0033] For another example, when the method is applied in the race walking scenario, a specific process of determining a target pace of the user 101 during race walking is as follows. First, a target pace set by the user 101 for the entire race walking process and a slope of a position where the user 101 is currently located are obtained. Then, based on the slope of the position where the user 101 is currently located, a target impact factor is determined, i.e., it is determined an impact of the slope on physical energy consumption when the user 101 racewalks at the position where the user 101 is located. Finally, based on the target pace set by the user 101 and the target impact factor, the target pace of the user 101 at the above-mentioned slope is determined, i.e., a target pace adapted to the terrain of the position where the user 101 is located may be determined.

[0034] In this way, based on the reference pace and the target impact factor, it is equivalent to correcting the reference pace of the user 101 based on the terrain of the position where the user 101 is located. Therefore, a relatively accurate target pace can be obtained, and an accurate pace reference can be provided for the user 101, which can improve user experience.

[0035] The target pace determination method provided by the embodiments of the present disclosure will be explained in detail below.

[0036] FIG. 2 is a flowchart of a target pace determination method provided by an embodiment of the present disclosure. The method may be applied in a computer device, which may be a mobile terminal such as a mobile phone, a tablet computer, or a smart wearable device. Referring to FIG. 2, the method includes operations at steps 201 to 203.

[0037] At step 201, a reference pace of a target object and a slope of a position, where the target object is located, are obtained.

[0038] The target object is an object that is going to exercise.

[0039] The reference pace of the target object may be a target pace set by the target object itself. For example, before starting exercise, the target object may set a target pace for current exercise, which serves as the reference pace. It should be understood that the reference pace of the target object is a pace that does not take a terrain change into account. In the embodiments of the present disclosure, the reference pace of the target object may also be determined based on a threshold pace of the target object. The threshold pace of the target object is a pace of the target object at a target heart rate threshold.

[0040] In this case, by obtaining the reference pace of the target object and the slope of the position where the target object is located, an initially set target pace of the target object and a terrain condition of the position where the target object is currently located may be obtained.

[0041] The operation of determining the slope of the position where the target object is located may include the following steps (1) to (3).

[0042] At step (1), a longitude, a latitude, and an altitude of the target object at a current time point and a longitude, a latitude, and an altitude of the target object at a previous time point are obtained.

[0043] Optionally, the longitude, latitude, and altitude of the target object at the current time point and the longitude, latitude, and altitude of the target object at the previous time point may be obtained through the GPS.

[0044] In the embodiments of the present disclosure, the “current time point” is a time point when the GPS outputs a latest position, and the “previous time point” is a time point when the GPS outputs the position last time.

[0045] At step (2), a horizontal distance between a position where the target object is located at the current time point and a position where the target object is located at the previous time point is determined based on the longitude and the latitude of the target object at the current time point and the longitude and the latitude of the target object at the previous time point.

[0046] Since the longitude and the latitude may accurately represent the position where the target object is located, the horizontal distance between the position where the target object is located at the current time point and the position where the target object is located at the previous time point can be accurately determined based on the longitude and the latitude of the target object at the current time point and the longitude and the latitude of the target object at the previous time point.

[0047] Specifically, the operation of step (2) may include the following steps (a) to (b).

[0048] At step (a), a central angle between a line, connecting the center of the earth and the position where the target object is located at the current time point, and a line, connecting the center of the earth and the position where the target object is located at the previous time point, is determined based on the longitude and the latitude of the target object at the current time point and the longitude and the latitude of the target object at the previous time point.

[0049] The great-circle distance is a shortest distance between two points on an earth surface along an arc of a great circle. Generally, any circle formed by intersection of the earth surface and a plane passing through an earth center is called the great circle. The arc of the great circle connecting any two points on the earth surface is a shortest path between the two points.

[0050] For example, FIG. 3 is a schematic diagram of the great-circle distance. Referring to FIG. 3, FIG. 3 includes a sphere 301. The sphere 301 contains a position A and a position B. A plane, formed by passing through the position A and the position B, passes through a center of the sphere 301, making the plane formed by the position A and the position B be a great circle. A shortest arc connecting the position A and the position B (a solid line AB in FIG. 3) on the great circle is a great-circle distance between the position A and the position B.

[0051] Specifically, the operation of step (a) may include: determining a longitude difference between the longitude of the target object at the current time point and the longitude of the target object at the previous time point; determining a latitude difference between the latitude of the target object at the current time point and the latitude of the target object at the previous time point; and determining a central angle between the position where the target object is located at the current time point and the position where the target object is located at the previous time point based on the longitude difference, the latitude difference, the latitude of the target object at the current time point, and the latitude of the target object at the previous time point.

[0052] The operation of determining the central angle between the position where the target object is located at the current time point and the position where the target object is located at the previous time point based on the longitude difference, the latitude difference, the latitude of the target object at the current time point, and the latitude of the target object at the previous time point may include: determining, by using the following formulas (1) and (2), the central angle between the position where the target object is located at the current time point and the position where the target object is located at the previous time point based on the longitude difference, the latitude difference, the latitude of the target object at the current time point, and the latitude of the target object at the previous time point:a=sin2(Δϕ2)+cos⁢ (ϕ1)⁢ cos⁢ (ϕ2)⁢ sin2(Δλ2),and(1)c=2⁢arc⁢ tan⁢2⁢ (a,1-a),(2)

[0053] where c is the central angle between the position where the target object is located at the current time point and the position where the target object is located at the previous time point, the unit of the central angle is radian; Δφ is the latitude difference between the latitude of the target object at the current time point and the latitude of the target object at the previous time point; Δλ is the longitude difference between the longitude of the target object at the current time point and the longitude of the target object at the previous time point; Di is the latitude of the target object at the current time point; φ2 is the latitude of the target object at the previous time point; and a is an intermediate variable set for calculation convenience and has no physical meaning.

[0054] At step (b), the horizontal distance between the position where the target object is located at the current time point and the position where the target object is located at the previous time point is obtained by multiplying the central angle by an earth radius.

[0055] In this case, multiplying the central angle by the earth radius is equivalent to accounting for earth curvature when the horizontal distance between the two positions is calculated. In this way, the horizontal distance between the position where the target object is located at the current time point and the position where the target object is located at the previous time point can be accurately determined, and thus a more accurate slope is determined.

[0056] The operation of step (b) is implemented by using the following formula (3):d=R·c,(3)

[0057] where d is the horizontal distance between the position where the target object is located at the current time point and the position where the target object is located at the previous time point, and R is the earth radius.

[0058] At step (3), a slope of a position where the target object is currently located is obtained by determining an altitude difference between the altitude of the target object at the current time point and the altitude of the target object at the previous time point, and dividing the altitude difference by the horizontal distance.

[0059] The slope is a degree of rise or fall of the terrain and may be expressed in different ways, including a percentage slope, an angle slope, and a gradient, which are not limited in the embodiments of the present disclosure. For example, the embodiments of the present disclosure may express the slope as a percentage. The percentage slope represents a ratio of a vertically risen or fallen height to the horizontal distance. Therefore, the altitude difference between the altitude of the target object at the current time point and the altitude of the target object at the previous time point may be divided by the horizontal distance.

[0060] The altitude difference between the altitude of the target object at the current time point and the altitude of the target object at the previous time point is equivalent to a vertical distance between the position where the target object is located at the current time point and the position where the target object is located at the previous time point. Subsequently, the vertical distance is divided by the horizontal distance, to calculate the slope of the position where the target object is currently located.

[0061] The operation of step (3) is also implemented by using the following formula (4):S=(Δ⁢hd)×100⁢%,(4)

[0062] where S is the slope of the position where the target object is currently located, and Δh is the altitude difference between the altitude of the target object at the current time point and the altitude of the target object at the previous time point.

[0063] It is worth noting that after the slope of the position where the target object is currently located is obtained, it can also be determined whether the slope of the position where the target object is currently located is within a predetermined slope range.

[0064] Generally, when the user is running, the greater the slope, the greater resistance the user encounters. However, an excessively steep slope may exceed physical limits of human body, making it impossible for the user to run normally or even requiring the user to climb uphill or scramble downhill instead. Therefore, in the embodiments of the present disclosure, it is necessary to determine whether the slope of the position where the target object is currently located is within the predetermined slope range.

[0065] The predetermined slope range may be set in advance, and the predetermined slope range may be set based on exercise limits of human at a slope. For example, the predetermined slope range may be set to a range from −60% to 60%.

[0066] In this case, in response to the slope of the position where the target object is currently located being within the predetermined slope range, it indicates that the slope of the position where the target object is currently located is within the exercise limits of the human body. Therefore, the target pace of the target object is determined directly based on the calculated slope of the position where the target object is currently located in subsequent steps.

[0067] In response to the slope of the position where the target object is currently located not being within the predetermined slope range, it indicates that the slope of the position where the target object is currently located has exceeded the exercise limits of the human body. In such a slope condition, the target object may no longer have a pace. Therefore, in such a case, the target pace of the target object can be determined subsequently based on a maximum slope within the predetermined slope range.

[0068] A specific process for determining the reference pace of the target object based on the threshold pace of the target object is described in detail below. Before the reference pace of the target object is determined, the threshold pace of the target object must first be obtained.

[0069] The threshold pace of the target object is the pace of the target object at the target heart rate threshold. In the embodiments of the present disclosure, the target heart rate threshold may be a maximum heart rate of the target object during high-intensity exercise. In addition, generally, a person's heart rate rises sharply within a certain time period during high-intensity exercise. Therefore, in the embodiments of the present disclosure, the threshold pace of the target object may sometimes be a heart rate at an inflection point where a heart rate of the target object rises sharply during exercise.

[0070] Specifically, the operation of determining the threshold pace of the target object includes the following steps (1) to (4).

[0071] At step (1), a plurality of real-time paces and a plurality of real-time heart rates of the target object within a target time period are obtained.

[0072] The target time period may be a time period within historical running activities of the target object. In the embodiments of the present disclosure, the target time period may be a time period from the start to the end of most recent run of the target object. Of course, the target time period may be a specific period within the most recent run of the target object, which is not limited in the embodiments of the present disclosure.

[0073] The plurality of real-time paces are paces reached by the target object at various time points within the target time period. The plurality of real-time heart rates refer to heart rates of the target object at various time points within the target time period.

[0074] In such a case, by obtaining the plurality of real-time paces and the plurality of real-time heart rates of the target object within the target time period, it is possible to obtain paces reached at the corresponding heart rates of the target object at various time points within the target time period. In this way, an exercise capacity of the target object can be obtained.

[0075] At step (2), a plurality of reference real-time paces is obtained by 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.

[0076] When engaging in aerobic exercise, it is possible for the user to improve cardiac pumping efficiency and increase an aerobic utilization rate without causing excessive fatigue. Therefore, the threshold pace of the target object is required to be calculated based on a pace at the heart rate reached by the target object during aerobic exercise. In such a case, after the plurality of real-time heart rates and the plurality of real-time paces of the target object are obtained, the plurality of real-time paces may be filtered based on the real-time heart rates of the target object within the target time period.

[0077] In this way, by filtering the plurality of real-time paces within the target time period, a real-time pace that satisfies the requirements can be obtained, and thus a threshold pace that is more suitable for exercise of the target object can be obtained subsequently.

[0078] Specifically, the operation of step (2) may include: for a real-time heart rate at each time point within the target time period, determining whether a real-time heart rate at the time point is within a target heart rate range; retaining the real-time pace corresponding to the time point, in response to the real-time heart rate at the time point being within the target heart rate range; and deleting the real-time pace corresponding to the time point, in response to the real-time heart rate at the time point not being within the target heart rate range.

[0079] The target heart rate range is a heart rate range of the target object during aerobic exercise. In the embodiments of the present disclosure, the target heart rate range is also a second zone (heart rate zone 2) in heart rate zoning. In the embodiments of the present disclosure, the target heart rate range may be determined based on at least one of a maximum heart rate, a resting heart rate, or a lactate threshold heart rate of the target object.

[0080] The maximum heart rate of the target object is a maximum heart rate reachable by the target object under a current physical condition of the target object. In the embodiments of the present disclosure, the maximum heart rate of the target object may be estimated based on an age of the target object.

[0081] The resting heart rate is an average heart rate of the target object in a supine position within a predetermined time period after waking up in the morning. For example, the predetermined time period may be 3 minutes.

[0082] The lactate threshold heart rate is a heart rate at an inflection point where the heart rate of the target object rises sharply during high-intensity exercise.

[0083] Specifically, the operation of determining the target heart rate range may be implemented in the following three possible manners.

[0084] A first possible implementation manner is to multiply the maximum heart rate by a first value to obtain a minimum heart rate of the target heart rate range, and multiply the maximum heart rate by a second value to obtain a maximum heart rate of the target heart rate range.

[0085] It should be understood that the first value is smaller than the second value, and both the first value and the second value are smaller than 1.

[0086] The first possible implementation manner is implemented by the following formula (5)HRzone⁢2=[HRmax×(e-f),HRmax×(e+f)],(5)

[0087] where HRzone2 represents the target heart rate range, HRmax represents the maximum heart rate of the target object, and e and f may be set in advance, with e−f being the first value and e+f being the second value.

[0088] For example, in response to the maximum heart rate of the target object being 150, e being 0.6, and f being 0.2, the target heart rate range is a range from 60 to 120.

[0089] A second possible implementation manner is to calculate a difference between the maximum heart rate and the resting heart rate to obtain a target difference; add a product, obtained by multiplying the target difference by a third value, to the resting heart rate to obtain the minimum heart rate of the target heart rate range; and add a product, obtained by multiplying the target difference by a fourth value, to the resting heart rate to obtain the maximum heart rate of the target heart rate range.

[0090] It should be understood that the third value is smaller than the fourth value, and both the third value and the fourth value are smaller than 1.

[0091] The second possible implementation manner may be implemented by the following formula (6):HRzone⁢2=[HRrest+(HRmax-HRrest)×(l-m),(6)HRrest+(HRmax-HRrest)×(l+m)]

[0092] where HRrest represents the resting heart rate of the target object, and l and m may be set in advance, with l−m being the third value and l+m being the fourth value.

[0093] A third possible implementation method is to multiply the lactate threshold heart rate by a fifth value to obtain the minimum heart rate of the target heart rate range, and multiply the lactate threshold heart rate by a sixth value to obtain the maximum heart rate of the target heart rate range.

[0094] It should be understood that the fifth value is smaller than the sixth value, and both the fifth value and the sixth value are smaller than 1.

[0095] The third possible implementation manner is implemented by the following formula (7):HRzone⁢2=[HRLT×(p-q),HRLT×(p+q)],(7)

[0096] where HRLT represents the lactate threshold heart rate of the target object, and p and q may be set in advance, with p−q being the fifth value and p+q being the sixth value.

[0097] After the target heart rate range is calculated by any one of the above three possible manners, it can be determined whether the real-time heart rate is within the target heart rate range.

[0098] Specifically, in response to a real-time heart rate at a time point being within the target heart rate range, it indicates that a pace reached at the heart rate at that time point satisfies requirements for determining the threshold pace. Therefore, a real-time pace at that time point may be retained. In response to the real-time heart rate at the time point not being within the target heart rate range, it indicates that the pace reached at the heart rate at that time point does not satisfy the requirements for determining the threshold pace, and an accurate threshold pace may not be calculated based on the real-time pace at that time point. Therefore, the real-time pace at that time point may be deleted.

[0099] By filtering the plurality of real-time paces within the target time period in the above manner, a plurality of reference real-time paces that satisfy the requirements for determining the threshold pace may be obtained. Subsequently, the threshold pace may be determined based on the plurality of reference real-time paces.

[0100] Optionally, in the embodiments of the present disclosure, the plurality of real-time paces may also be filtered through sliding window filtering.

[0101] Optionally, in the embodiments of the present disclosure, it is also possible to filter the plurality of real-time heart rates within the target time period to obtain a plurality of reference heart rates, and then retain the plurality of real-time paces corresponding to the plurality of reference heart rates.

[0102] Specifically, for each of the plurality of real-time heart rates, in response to the real-time heart rate being within the target heart rate range, the real-time heart rate is determined as a reference heart rate. In response to the real-time heart rate not being within the target heart rate range, the real-time heart rate is deleted.

[0103] The plurality of reference heart rates may be obtained through the above operations, and then the plurality of reference real-time paces may also be obtained by retaining the plurality of real-time paces corresponding to the plurality of reference heart rates.

[0104] Optionally, when the plurality of real-time heart rates and the plurality of real-time paces of the target object within the target time period are obtained, a real-time slope of a position where the target object is located at each time point within the target time period may also be obtained. The real-time slope of the position where the target object is located at each time point within the target time period is filtered, and then the plurality of real-time paces are filtered based on the filtered real-time slope and the plurality of real-time heart rates.

[0105] Since the threshold pace is calculated based on a pace of the target object in the heart rate zone 2, in this case, the threshold pace is determined based on a relationship between the heart rate and the pace of the target object. However, when a real-time slope of a position exceeds the predetermined slope range, it will exceed an exercise limit range of the user, and thus the relationship between the heart rate and the pace of the target object will no longer exist. Therefore, the real-time slope may be filtered first.

[0106] Specifically, in response to a real-time slope of a position where the target object is located at a time point being within the predetermined slope range, a real-time slope of the position at that time point is retained.

[0107] Further, after the plurality of real-time slopes is obtained by filtering, it is determined whether a real-time heart rate corresponding to the real-time slope is within the target heart rate range. In response to the real-time heart rate corresponding to the real-time slope being within the target heart rate range, a real-time pace corresponding to the slope is determined as a reference real-time pace. In response to the real-time heart rate corresponding to the real-time slope not being within the target heart rate range, the real-time pace corresponding to the slope is deleted.

[0108] It should be understood that the real-time heart rate, the real-time slope, and the real-time pace at each time point within the target time period are in one-to-one correspondence.

[0109] It is worth noting that before the above operation of filtering the real-time slope within the target time period is performed, it is also possible to determine whether the real-time slope within the target time period is authentic based on a horizontal position error. In response to the real-time slope within the target time period being authentic, the real-time slope within the target time period is retained for a subsequent filtering operation on the real-time slope.

[0110] It should be understood that data generated during running of the target object may be recorded in a unit of one time point, and includes position information, a real-time heart rate, a real-time pace, and a real-time slope at the time point. The position information at the time point may include a horizontal position error at the time point. The horizontal position error generally represents an error range between a receiver position of the GPS and an actual position, and is capable of measuring reliability of a determined receiver position in the GPS.

[0111] Generally, a greater horizontal position error indicates a greater error between the calculated receiver position and the actual position, meaning that position information provided by the GPS is less accurate, and thus a subsequently calculated slope is also inaccurate. Conversely, a smaller horizontal position error indicates a smaller error between the calculated receiver position and the actual position, meaning that the position information provided by the GPS is more accurate, and thus the subsequently calculated slope is more accurate.

[0112] Specifically, the operation of determining whether the real-time slope within the target time period is authentic based on the horizontal position error may include: determining a target number of time points within the target time period where the horizontal position error is smaller than a target error threshold. In response to the target number being greater than or equal to a target number threshold, it is determined that the real-time slope within the target time period is authentic. In response to the target number being smaller than the target number threshold, it is determined that the real-time slope within the target time period is insufficiently authentic.

[0113] The target error threshold and the target number threshold may be set in advance. Moreover, the target error threshold may be set to a small value, and the target number threshold may be set to a large value. For example, the target error threshold may be set to 10, and the target number threshold may be set to 30.

[0114] In this case, in response to the horizontal position error being smaller than the target error threshold, it indicates that the error between the receiver position and the actual position is relatively small. In response to the target number being greater than or equal to the target number threshold, it indicates that there are many time points with small horizontal position errors within the target time period, i.e., errors between receiver positions and actual positions at most time points within the target time period are relatively small. Thus, it can be determined that the position information outputted by the GPS within the target time period is relatively reliable, and the real-time slope within the target time period is authentic. Conversely, in response to the target number of time points within the target time period, where the horizontal position error is smaller than the target error threshold, being smaller than the target number threshold, it indicates that there are few time points with small horizontal position errors within the target time period, i.e., the errors between the receiver positions and actual positions at most time points within the target time period are relatively large. Thus, it can be determined that the position information outputted by the GPS within the target time period is unauthentic, and the real-time slope within the target time period is unauthentic.

[0115] Optionally, after the horizontal position error at each time point within the target time period is obtained, it can be determined whether the real-time slope within the target time period is authentic through sliding window filtering.

[0116] It is assumed that the operation of sliding window filtering uses a window size of one minute for determination, so that a target number of time points within one minute where the horizontal position error is smaller than the target error threshold can be determined. It is assumed that the target error threshold is 10. Specifically, the above manner may be implemented by the following formulas (8) and (9):GEHPEi=∑j=16⁢0EHPEi,j⩽10,and(8)Filteri={1if⁢ GEHPEi⩾Gthreshold0otherwise,(9)

[0117] where i represents an i-th sliding window, and j represents j-th data within the sliding window. EHPEi,j represents a j-th horizontal position error in the i-th sliding window within the target time period. GEHPEi represents the number of time points within the i-th sliding window where the horizontal position error is smaller than or equal to the target error threshold. Gthreshold represents the target number threshold. Filteri represents a comparison result of the i-th sliding window. In response to Filteri=1 indicating that a slope corresponding to a time point in the i-th window is authentic, a slope within this window may be retained. Filteri=0 indicates that the slope corresponding to the time point in the i-th window is unauthentic.

[0118] It is worth noting that the plurality of reference real-time paces may be determined through the above manner. After the plurality of reference real-time paces is determined, the threshold pace may be calculated based on the plurality of reference real-time paces.

[0119] At step (3), the target heart rate threshold is determined based on at least one of a maximum heart rate, a resting heart rate, or a lactate threshold heart rate of the target object.

[0120] Specifically, the operation of step (3) may be implemented in the following three possible manners.

[0121] A first possible implementation manner is to determine the lactate threshold heart rate as the target heart rate threshold in response to the lactate threshold heart rate of the target object being obtained.

[0122] Since the lactate threshold heart rate is the heart rate at the inflection point where the heart rate of the target object rises sharply during exercise, meaning that the lactate threshold heart rate is the maximum heart rate of the target object during exercise, indicating that the lactate threshold heart rate may represent the heart rate of the target object under high-intensity exercise, the lactate threshold heart rate may be determined as the target heart rate threshold.

[0123] A second possible implementation manner is to determine the target heart rate threshold based on the maximum heart rate.

[0124] In this case, in response to the lactate threshold heart rate and the resting heart rate of the target object not being obtained, the target heart rate threshold is estimated based on the maximum heart rate of the target object. In this way, it can be ensured that a target heart rate threshold can always be determined even when the lactate threshold heart rate is not obtained.

[0125] Specifically, the operation of determining the target heart rate threshold based on the maximum heart rate may include: multiplying the maximum heart rate by a seventh value to obtain the target heart rate threshold.

[0126] The seventh value may be set in advance. For example, the seventh value may be set to 0.95.

[0127] For example, in response to the maximum heart rate being 160, the target heart rate threshold is 152.

[0128] A third possible implementation manner is to determine the target heart rate threshold based on the resting heart rate and maximum heart rate.

[0129] In this case, when the lactate threshold heart rate of the target object is not obtained, the target heart rate threshold may be estimated based on the maximum heart rate and the resting heart rate. In this way, it can be ensured that a target heart rate threshold can always be determined even when the lactate threshold heart rate is not obtained.

[0130] Specifically, the operation of determining the target heart rate threshold based on the resting heart rate and the maximum heart rate may include: calculating a difference between the maximum heart rate and the resting heart rate to obtain a target difference; and adding a product, obtained by multiplying the target difference by an eighth value, to the resting heart rate to obtain the target heart rate threshold.

[0131] It should be understood that both the seventh value and the eighth value are positive numbers smaller than 1.

[0132] In this case, calculating the difference between the maximum heart rate and the resting heart rate is equivalent to determining a heart rate rise range of the target object. In addition, since the target object will not always reach the maximum heart rate during high-intensity exercise, multiplying the target difference by the eighth value is equivalent to narrowing this rise range to obtain a maximum floating heart rate. Adding the maximum floating heart rate to the resting heart rate is equivalent to taking the resting heart rate as a base and adding the maximum floating heart rate to it, which can determine the target heart rate threshold. In this way, the target heart rate threshold can be estimated relatively accurately.

[0133] At step (4), the threshold pace of the target object is determined based on the target heart rate threshold and the plurality of reference real-time paces.

[0134] Since the target heart rate threshold may represent the maximum heart rate of the target object during high-intensity exercise, and the plurality of reference real-time paces refer to the paces of the target object within the target heart rate range, i.e., paces corresponding to a heart rate range achieved during aerobic exercise. In addition, the paces of the target object corresponding to the heart rate range achieved during aerobic exercise may reflect an aerobic exercise capacity of the target object, i.e., the relationship between the heart rate and the pace. Therefore, by knowing the relationship between the heart rate and the pace and the heart rate during high-intensity exercise, the threshold pace of the target object can be determined.

[0135] In this case, based on the target heart rate threshold and the plurality of reference real-time paces, the target object may estimate the threshold pace of the target object during high-intensity exercise without the need to engage in high-intensity exercise.

[0136] Specifically, the operation of step (4) may include the following steps (a) to (c).

[0137] At step (a), for each of the plurality of reference real-time paces, a high-intensity pace at a heart rate corresponding to the reference real-time pace is predicted based on the reference real-time pace.

[0138] Since the reference real-time pace is the pace when the heart rate of the target object is within the target heart rate range, i.e., a pace of the target object during aerobic exercise, a high-intensity pace corresponding to the respective heart rate can be estimated based on the reference real-time pace as the pace of the target object during aerobic exercise may represent a basic aerobic capacity of the target object.

[0139] In this case, it is equivalent to determining the high-intensity pace corresponding to the respective heart rate based on the basic aerobic capacity of the target object. In this way, a relatively accurate threshold pace can be determined subsequently.

[0140] Specifically, the operation of step (a) may be: for each of the plurality of reference real-time paces, predicting the high-intensity pace at the heart rate corresponding to the reference real-time pace based on the reference real-time pace using the following formula (10):Pacehight=e2+3.411Pacet+6.172Pacet2,(10)

[0141] where Pacehight represents a high-intensity pace at a heart rate corresponding to a reference real-time pace at a t-th time point among the plurality of reference real-time paces within the target time period, and Pacer represents a reference real-time pace at the t-th time point among the plurality of reference real-time paces within the target time period.

[0142] In this way, by performing the above calculation for each of the plurality of reference real-time paces, a plurality of high-intensity paces, i.e., high-intensity paces at heart rates corresponding to the plurality of reference real-time paces can be obtained.

[0143] Optionally, the above formula (10) may be determined by using the least square method.

[0144] Since the least square method may fit a relationship between data points and a function, its basic idea is to find optimal function parameters by minimizing a residual sum of squares between observed values and predicted values. Therefore, the above formula (10) can be predicted by the least square method more conveniently.

[0145] Specifically, it is assumed that Pacehigh<sub2>t< / sub2>=α+β·Pacet+∈t is a straight line, where α, β, and εt are coefficients to be solved, α is an intercept of the curve, β is a slope of the curve, and εt is an error term.

[0146] In the embodiments of the present disclosure, the above α, β, and εt may be obtained through least squares normalization. Specifically, α, β, and εt may be optimized by using the following formula (11):minα,β∑t=160(Pacehight-(α+β⁢Pacet))2.(11)

[0147] This process is equivalent to using one minute as a data unit and obtaining a reference real-time pace of one minute from the target time period for regression prediction through the least square method, thereby predicting optimal solutions for α, β, and εt.

[0148] At step (b), an average pace of a plurality of high-intensity paces is determined.

[0149] After the plurality of high-intensity paces is determined, the average pace of the plurality of high-intensity paces may be determined to determine the threshold pace of the target object accordingly.

[0150] The operation of step (b) is also implemented by the following formula (12):AvgPacehígh=1n⁢∑t=1nPacehight,(12)

[0151] where AvgPacehigh represents the average pace of the plurality of high-intensity paces, and n represents the number of the plurality of high-intensity paces.

[0152] At step (c), the threshold pace of the target object is determined based on the average pace and the target heart rate threshold.

[0153] Since the average pace is an average of the plurality of predicted high-intensity paces, and the high-intensity pace may represent an exercise capacity of the target object under high-intensity exercise, while the target heart rate threshold is the maximum heart rate of the target object during high-intensity exercise, the threshold pace of the target object under high-intensity exercise can be predicted based on the average pace and the target heart rate threshold. Moreover, the threshold pace of the target object under high-intensity exercise can be accurately predicted.

[0154] Optionally, before the threshold pace of the target object is determined based on the average pace and the target heart rate threshold, the maximum heart rate of the target object within the target time period may be obtained first.

[0155] In this case, the operation of step (c) may include: 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 within the target time period by using the following formula (13):Pacethreshold=-0.4611±3.5982-4×9.612(0.1944-AvgPacehigh / HRthreshold×HRmaxt)2×0.7151,(13)

[0156] where Pacethreshold represents the threshold pace of the target object, HRthreshold represents the target heart rate threshold, and HRmaxt represents the maximum heart rate within the target time period.

[0157] It is worth noting that in the embodiments of the present disclosure, the threshold pace of the target object may be determined through the above steps (1) to (4), i.e., a maximum pace reachable by the target object during high-intensity exercise may be estimated.

[0158] In the embodiments of the present disclosure, after the threshold pace of the target object is determined, the threshold pace of the target object may be outputted to enable the target object to know its threshold pace during high-intensity exercise.

[0159] Optionally, after the threshold pace of the target object is determined, the reference pace of the target object may also be determined based on the threshold pace of the target object.

[0160] Specifically, the operation of determining the reference pace of the target object includes the following steps (1) to (3).

[0161] At step (1), a reference pace setting interface is displayed in response to a reference pace setting instruction.

[0162] The reference pace setting instruction is used to set the reference pace of the target object. Optionally, the reference pace setting instruction may be triggered by the target object. For example, the target object may trigger the reference pace setting instruction through a click operation, a slide operation, a somatosensory operation, a voice operation, or the like. As an implementation manner, a button for setting the reference pace may be displayed on the computer device. When intending to set the reference pace, the target object may click this button to trigger the reference pace setting instruction.

[0163] The reference pace setting interface may display a plurality of level selection controls, which are used to determine reference paces of different levels. In this case, it means that the target object may select a reference pace of a corresponding level according to their own situation.

[0164] In the embodiments of the present disclosure, the reference paces of different levels may be associated with the threshold pace of the target object. Optionally, the reference paces of different levels may be associated with the threshold pace of the target object through level coefficients.

[0165] Specifically, one level corresponds to one level coefficient. After the target object selects a level, a reference pace that the target object intends to set may be determined based on the corresponding level coefficient and the threshold pace of the target object.

[0166] For example, Table 1 below shows a correspondence between different levels and level coefficients. Referring to Table 1, Table 1 includes a plurality of levels and a plurality of level coefficients. Each of the plurality of levels corresponds to one level coefficient.TABLE 1LevelLevel coefficient10.620.831. . .. . .

[0167] The embodiments of the present disclosure only use Table 1 above as an example to illustratively explain the correspondence between different levels and level coefficients, and do not limit the embodiments of the present disclosure.

[0168] For example, FIG. 4 is an interface schematic diagram of a reference pace setting interface. Referring to FIG. 4, FIG. 4 includes a reference pace setting interface 401. The reference pace setting interface 401 includes a plurality of level selection controls 402.

[0169] At step (2), a target pace level is determined in response to a selection operation for the plurality of level selection controls on the reference pace setting interface.

[0170] The selection operation for the level selection control is used to select a target level control, and then a level corresponding to the target level control is determined as a target pace level, i.e., a pace level that the target object intends to set is determined.

[0171] Optionally, the selection operation for the level selection control may be triggered by the target object. For example, the target object may trigger the selection operation through a click operation, a voice operation, or the like. As an implementation manner, when intending to select a corresponding level selection control, the target object may click the corresponding level selection control to select the target level control, thereby determining the target pace level.

[0172] At step (3), the reference pace of the target object is obtained by multiplying a threshold pace of the target object by a level coefficient corresponding to the target pace level.

[0173] In this way, the target object selects the pace level that they intend to set, and then the corresponding reference pace is determined based on this level and the threshold pace, enabling a more flexible and accurate setting of the reference pace of the target object.

[0174] It is worth noting that by determining the threshold pace of the target object in the above step 201, the reference pace of the target object may be determined based on the threshold pace of the target object. In the embodiments of the present disclosure, the threshold pace of the target object may be determined when the target object completes a run. During a next run of the target object, the reference pace setting interface is displayed to allow the target object to select a corresponding pace level. Subsequently, a reference pace of the target object may be determined based on the threshold pace and the selected pace level of the target object.

[0175] After the slope of the position where the target object is currently located and the reference pace of the target object are determined through the above step 201, the target pace of the target object at that time point may also be determined based on the reference pace of the target object and the slope of the position where the target object is currently located, i.e., the following steps 202 and 203 continue to be performed.

[0176] At Step 202, a target impact factor is determined based on the slope of the position where the target object is located. The target impact factor is configured to indicate an impact of the slope on physical energy consumption when the target object exercises at the position where the target object is located.

[0177] Since the slope presents resistance to the exercise of the target object when the target object is exercising at the slope, the target object consumes physical energy during such exercise at the slope. Therefore, the target impact factor may be determined based on the slope of the position where the target object is located.

[0178] In this case, by determining the target impact factor based on the slope of the position where the target object is located, an impact of the position where the target object is located on the physical energy consumption can be known, enabling the target pace to be determined based on a terrain characteristic.

[0179] It should be understood that an uphill slope increases the energy consumption and the heart rate of the target object, resulting in the target impact factor likely being larger. Conversely, a downhill slope relatively reduces the energy consumption but may increase muscle fatigue, resulting in the target impact factor likely being smaller.

[0180] Based on this, the operation of step 202 may include: determining a sine value and a logarithmic value of the slope of the position where the target object is located; and determining the target impact factor based on the sine value and the logarithmic value.

[0181] Since periodicity of a sine function may simulate fluctuations in the heart rate and the energy consumption to some extent, the sine function may reflect a periodic impact of the slope on the heart rate and energy consumption. A logarithmic function may represent a non-linear impact of the slope on the energy consumption. With an increase in the slope, an energy consumption rate slows down gradually, so the logarithmic function may accurately represent this impact.

[0182] In this case, the sine value and the logarithm value may accurately represent the periodic impact and the non-linear impact of the slope on the heart rate and energy consumption. Therefore, the target impact factor can be accurately determined based on the sine value and the logarithm value.

[0183] The operation of determining the target impact factor based on the sine value and the logarithm value may include: determining the target impact factor based on the sine value and the logarithmic value by using the following formula (14):η=1+ε⁢ sin⁢ (S)+γ⁢log⁢(2·S+1),(14)where η represents the target impact factor, S represents the slope, ε represents an impact weight of the sine function on the energy consumption, and γ represents an impact weight of the logarithmic function on the energy consumption. In addition, ε and γ may be set in advance by a technician. For example, ε=0.6 and γ=0.4.At step 203, the target pace of the target object at the slope is determined based on the reference pace and the target impact factor.

[0185] In this case, it is equivalent to correcting the reference pace of the target object based on the terrain of the position where the target object is located. In this way, it is possible to obtain a relatively accurate target pace, further provide the user with accurate pace guidance, and improve the user experience.

[0186] Specifically, the operation of step 203 may include: dividing the reference pace of the target object by the target impact factor to obtain a target pace of the target object at a slope where the target object is currently located.

[0187] Since the target impact factor represents the impact of the slope on the energy consumption of the target object, the target pace of the target object should actually be smaller than the reference pace. Therefore, the reference pace of the target object can be divided by the target impact factor.

[0188] In this case, dividing the reference pace of the target object by the target impact factor is equivalent to reducing the reference pace of the target object, which can accurately obtain a target pace of the target object at the slope where the target object is currently located.

[0189] The above operation is implemented by the following formula (15):Pacetarget=TargetNGP / η,(15)where Pacetarget represents the target pace of the target object at the slope, and TargetNGP represents the reference pace of the target object.Optionally, after the target pace of the target object at the slope is determined, the target pace of the target object at the slope may also be displayed in real time.

[0191] In this way, the target object can know a suitable target pace for themselves at the position where the target object is currently located, and thus can determine whether to exert more effort or relax based on the suitable target pace, which can make an exercise process of the target object more comfortable.

[0192] Further, after the target pace of the target object at the slope is determined, a current pace of the target object at the position where the target object is located may also be obtained. Based on a difference between the target pace and the current pace, it is determined whether the current pace of the target object reaches the target pace.

[0193] Specifically, it is determined that the current pace of the target object reaches the target pace, in response to a difference obtained by subtracting the target pace from the current pace being a positive value; and it is determined that the current pace of the target object does not reach the target pace, in response to the difference obtained by subtracting the target pace from the current pace being a negative value.

[0194] In this case, in response to the difference obtained by subtracting the target pace from the current pace being the positive value, it indicates that the current pace is greater than the target pace, i.e., the pace of the target object at the current position is already greater than a recommended target pace, so it can be determined that the current pace of the target object reaches the target pace. In response to the difference obtained by subtracting the target pace from the current pace being the negative value, it indicates that the current pace is smaller than the target pace, i.e., the pace of the target object at the current position is smaller than the recommended target pace, so it can be determined that the current pace of the target object does not reach the target pace.

[0195] Further, after it is determined whether the current pace of the target object reaches the target pace based on the difference between the target pace and the current pace, a distance by which the target object is ahead or behind may also be determined.

[0196] When the target object exercises at the current pace for a period of time, the target object covers a corresponding distance. It is assumed that the target object exercises at the recommended target pace for the same period of time, the target object also covers a corresponding distance. Therefore, in response to the current pace of the target object reaching or failing to reach the target pace, there is a distance by which the target object is ahead or behind. Thus, the distance by which the target object is ahead or behind can also be determined.

[0197] Specifically, a target time difference between a current time point and a previous time point is determined, and a target distance is obtained by multiplying the difference, between the target pace and the current pace of the target object, by the target time difference.

[0198] The target distance is a distance by which the target object is ahead or behind when exercising at the current pace compared with exercising at the target pace.

[0199] A specific operation of obtaining the target distance may be implemented by the following formula (16):W=1Pacecurrent-Pacetarget⁢(x2-x1),(16)where W represents the target distance, Pacecurrent represents the current pace of the target object, x2 represents the current time point, and x1 represents the previous time point.Optionally, after the target distance is determined, the target distance may be outputted to enable the target object to know a distance by which the target object is currently ahead or behind.

[0201] It is worth noting that the target pace determination method provided in the embodiments of the present disclosure may update the target pace in real time based on an impact of the terrain characteristic on the energy consumption of the target object and other factors, and thus may recommend a suitable target pace for the user. In addition, the threshold pace of the target object may be determined based on data such as a heart rate and a historical pace of the target object. Therefore, the threshold pace is a pace with a relatively reasonable intensity and determined based on a personal condition of the target object, enabling the target object to subsequently set a more scientific and personalized pace.

[0202] To facilitate understanding, the target pace determination method provided in the embodiments of the present disclosure is illustratively described below with reference to FIG. 5. For example, FIG. 5 is a flowchart of another target pace determination method provided by an embodiment of the present disclosure. Referring to FIG. 5, FIG. 5 includes steps 501 to 515.

[0203] At step 501, heart rate data of a target object, a longitude, a latitude, and an altitude of a position where the target object is located at a current time point, and a longitude, a latitude, and an altitude of a position where the target object is located at a previous time point are obtained.

[0204] The heart rate data of the target object may include a maximum heart rate, a resting heart rate, and a lactate threshold heart rate of the target object.

[0205] At step 502, a horizontal distance between the position where the target object is located at the current time point and the position where the target object is located at the previous time point is determined based on the longitudes and the latitudes of the target object.

[0206] At step 503, an altitude difference between the altitude of the position where the target object is located at the current time point and the altitude of the position where the target object is located at the previous time point is determined based on the altitudes of the target object.

[0207] At step 504, a slope of a position where the target object is located is determined based on the horizontal distance and the altitude difference between the position where the target object is located at the current time point and the position where the target object is located at the previous time point.

[0208] At step 505, it is determined whether the slope is within a predetermined slope range.

[0209] At step 506, in response to determining that the slope is within the predetermined slope range, continuing to perform step S514 as described below. In response to determining that the slope is not within the predetermined slope range, the slope of the position where the target object is located is updated to a maximum slope within the predetermined slope range, and continuing to perform step S514 as described below.

[0210] At step 507, real-time heart rates and real-time paces of the target object within a target time period are obtained.

[0211] At step 508, it is determined whether the real-time heart rates within the target time period are within a target heart rate range through sliding window filtering.

[0212] At step 509, real-time paces corresponding to the real-time heart rates within the target heart rate range are retained to obtain a plurality of reference real-time paces.

[0213] At step 510, a real-time pace corresponding to a real-time heart rate that is not within the target heart rate range is deleted.

[0214] At step 511, a target heart rate threshold of the target object is determined based on the heart rate data of the target object.

[0215] At step 512, a threshold pace of the target object is determined based on the target heart rate threshold and the plurality of reference real-time paces.

[0216] At step 513, a reference pace of the target object is set and obtained based on the threshold pace of the target object.

[0217] At step 514, a target impact factor is determined based on a slope of a position where the target object is currently located.

[0218] At step 515, a target pace of the position where the target object is currently located is obtained by dividing the reference pace of the target object by the target impact factor.

[0219] In the embodiments of the present disclosure, the computer device obtains the reference pace of the target object and the slope of the position where the target object is located, and then determines the target impact factor based on the slope of the position where the target object is located, i.e., determines an impact of the slope on physical energy consumption when the target object runs at the position where the target object is located. Finally, the target pace of the target object at the slope is determined based on the reference pace and the target impact factor of the target object. Since the target impact factor may indicate the impact of the slope on the physical energy consumption when the target object runs at the position where the target object is located, based on the reference pace and the target impact factor, it is equivalent to correcting the reference pace of the target object based on terrain of the position where the target object is located. Therefore, a relatively accurate target pace can be obtained, and thus, precise pace guidance can be provided for the user, which can improve the user experience.

[0220] FIG. 6 is a schematic structural diagram of a target pace determination apparatus provided by an embodiment of the present disclosure. The target pace determination apparatus may be implemented as part or all of a computer device by software, hardware, or a combination thereof, and the computer device may be the computer device shown in FIG. 7 below. Referring to FIG. 6, the apparatus includes: a first obtaining module 601, a first determination module 602, and a second determination module 603.

[0221] The first obtaining module 601 is configured to obtain a reference pace of a target object and a slope of a position where the target object is located.

[0222] The first determination module 602 is configured to determine a target impact factor based on the slope of the position where the target object is located. The target impact factor is configured to indicate an impact of the slope on physical energy consumption when the target object runs at the position where the target object is located.

[0223] The second determination module 603 is configured to determine a target pace of the target object at the slope based on the reference pace and the target impact factor.

[0224] Optionally, the apparatus further includes: a second obtaining module configured to obtain a longitude, a latitude, and an altitude of the target object at a current time point and a longitude, a latitude, and an altitude of the target object at a previous time point; a third determination module configured to determine a horizontal distance between a position where the target object is located at the current time point and a position where the target object is located at the previous time point based on the longitude and the latitude of the target object at the current time point and the longitude and the latitude of the target object at the previous time point; and a first calculation module configured to determine an altitude difference between the altitude of the target object at the current time point and the altitude of the target object at the previous time point, and divide the altitude difference by the horizontal distance to obtain a slope of a position where the target object is currently located.

[0225] Optionally, the third determination module is configured to: determine a central angle between the position where the target object is located at the current time point and the position where the target object is located at the previous time point based on the longitude and the latitude of the target object at the current time point and the longitude and the latitude of the target object at the previous time point; and multiply the central angle by an earth radius to obtain the horizontal distance between the position where the target object is located at the current time point and the position where the target object is located at the previous time point.

[0226] Optionally, the apparatus further includes: a display module configured to display a reference pace setting interface in response to a reference pace setting instruction, in which the reference pace setting interface displays a plurality of level selection controls, the plurality of level selection controls are configured to determine paces of different levels; a fourth determination module configured to determine a target pace level in response to a selection operation for the plurality of level selection controls on the reference pace setting interface; and a second calculation module configured to multiply a threshold pace of the target object by a level coefficient corresponding to the target pace level to obtain the reference pace of the target object. The threshold pace is a pace of the target object at a target heart rate threshold.

[0227] Optionally, the apparatus further includes: a third obtaining module configured to obtain a plurality of real-time paces and a plurality of real-time heart rates of the target object within a target time period; a filtering module 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; a fifth determination module configured to determine the target heart rate threshold based on at least one of a maximum heart rate, a resting heart rate, or a lactate threshold heart rate of the target object; and a sixth determination module configured to determine the threshold pace of the target object based on the target heart rate threshold and the plurality of reference real-time paces.

[0228] Optionally, the filtering module is configured to: for a real-time heart rate at each time point within the target time period, determine whether a real-time heart rate at the time point is within a target heart rate range, in which the target heart rate range is a heart rate range of the target object during aerobic exercise; retain the real-time pace corresponding to the time point, in response to the real-time heart rate at the time point being within the target heart rate range; and delete the real-time pace corresponding to the time point, in response to the real-time heart rate at the time point not being within the target heart rate range.

[0229] Optionally, the fifth determination module is configured to: determine the lactate threshold heart rate as the target heart rate threshold; or determine the target heart rate threshold based on the maximum heart rate; or determine the target heart rate threshold based on the resting heart rate and the maximum heart rate.

[0230] Optionally, the sixth determination module is configured to: for each of the plurality of reference real-time paces, predict a high-intensity pace at a heart rate corresponding to the reference real-time pace based on the reference real-time pace; determine an average pace of a plurality of high-intensity paces; and determine the threshold pace of the target object based on the average pace and the target heart rate threshold.

[0231] Optionally, the first determination module is configured to: determine a sine value and a logarithmic value of the slope of the position where the target object is located; and determine the target impact factor based on the sine value and the logarithmic value.

[0232] Optionally, the second determination module is configured to: divide the reference pace by the target impact factor to obtain the target pace of the target object at the slope.

[0233] Optionally, the apparatus further includes: a fourth obtaining module configured to obtain a current pace of the target object at the position where the target object is located; and a seventh determination 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.

[0234] Optionally, the seventh determination module is configured to: determine that the current pace of the target object reaches the target pace, in response to a difference obtained by subtracting the target pace from the current pace being a positive value; and determine that the current pace of the target object does not reach the target pace, in response to the difference obtained by subtracting the target pace from the current pace being a negative value.

[0235] Optionally, the apparatus further includes: an eighth determination module configured to determine a target time difference between a current time point and a previous time point; and a third calculation 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 is a distance by which the target object is ahead or behind when exercising at the current pace compared with exercising at the target pace.

[0236] In the embodiments of the present disclosure, the reference pace of the target object and the slope of the position where the target object is located are obtained, and then the target impact factor is determined based on the slope of the position where the target object is located, i.e., an impact of the slope on physical energy consumption when the target object runs at the position where the target object is located is determined. Finally, the target pace of the target object at the slope is determined based on the reference pace of the target object and the target impact factor. Since the target impact factor may indicate the impact of the slope on the physical energy consumption when the target object runs at the position where the target object is located, based on the reference pace and the target impact factor, it is equivalent to correcting the reference pace of the target object based on terrain of the position where the target object is located. Therefore, a relatively accurate target pace can be obtained, and thus precise pace guidance can be provided for the user, which can improve the user experience.

[0237] It should be noted that when the target pace determination apparatus provided in the above embodiments determines the target pace during exercise of the target object, the divisions of the above functional modules are merely illustrative. In practical applications, the above functions can be allocated to different functional modules for implementation as required, i.e., an internal structure of the apparatus is divided into different functional modules, to complete all or some of the functions as described above.

[0238] The functional units and modules in the embodiments may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit. The integrated units can be implemented in a form of hardware, or in a form of a software functional unit. In addition, specific names of the functional units and modules are only for the convenience of distinguishing one from another, and are not used to limit the scope of the embodiments of the present disclosure.

[0239] The target pace determination apparatus provided in the above embodiments is of the same concept as the embodiments of the target pace determination method. For specific operating processes and technical effects of units and modules in the above embodiments, reference may be made to the method embodiments, and details are omitted here.

[0240] FIG. 7 is a schematic structural diagram of a computer device provided by an embodiment of the present disclosure. 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. The processor 70, when executing the computer program 72, implements the steps in the target pace determination method in the above embodiments.

[0241] The computer device 7 may be a general-purpose computer device or a special-purpose computer device. In specific implementations, the computer device 7 may be a mobile terminal such as a mobile phone, a tablet computer, or a smart wearable device, and the type of the computer device 7 is not limited in the embodiments of the present disclosure. It can be understood by those skilled in the art that FIG. 7 is only an example of the computer device 7, does not constitute a limitation of the computer device 7, and may include more or fewer components than shown, or combinations of some components, or different components, for example, may also include input and output devices, network access devices, and the like.

[0242] The processor 70 may be a central processing unit (CPU), and may also be other general processors, a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, and the like. The general processor may be a microprocessor or any conventional processor or the like.

[0243] In some embodiments, the memory 71 may be an internal storage unit of the computer device 7, such as a hard disk or memory of the computer device 7. In other embodiments, the memory 71 may 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, or the like equipped on the computer device 7. Further, the memory 71 may also include both an internal memory unit and an external memory device of the computer device 7. The memory 71 is used for storing an operation system, an application program, a BootLoader program, data, and other programs. The memory 71 may also be used for temporarily storing data that has been outputted or data that is to be outputted.

[0244] The embodiments of the present disclosure further provide a computer-readable storage medium, having a computer program stored thereon. The computer program, when executed by the processor, may implement the steps in the method embodiments described above.

[0245] The embodiments of the present disclosure provide a computer program product. The computer program product, when running on a computer, causes the computer to implement the steps in the method embodiments described above.

[0246] If the integrated units are realized in a form of functional software units and are sold or used as separate products, the integrated units can be stored in a computer-readable storage medium. Based on this understanding, all or part of the above method embodiments of the present disclosure may also be implemented by relevant hardware instructed by a computer program. The computer program can be stored in a computer-readable storage medium. When the computer program is executed by the processor, steps of the above method embodiments may be implemented. The computer program may include computer program codes. The computer program codes may be in a form of source codes, object codes, an executable file, or some intermediate forms, etc. The computer-readable medium may include any entity or device capable of carrying the computer program codes to a photographing device / terminal device, a recording medium, a computer memory, a Read-Only Memory (ROM), a Random Access Memory (RAM), a Compact Disc Read-Only Memory (CD-ROM), a magnetic tape, a floppy disk, an optical data storage device, and the like. The computer-readable storage medium mentioned in the present disclosure may be a non-volatile storage medium. In other words, the computer-readable storage medium mentioned in the present disclosure may be a non-transitory storage medium.

[0247] It should be understood that all or part of the steps in the above embodiments may be implemented by software, hardware, firmware, or any combination thereof. When implemented using software, the steps may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. The computer instructions may be stored in the computer-readable storage medium.

[0248] In the above embodiments, description of respective embodiments emphasizes different aspects, and for parts that are not detailed or described in some embodiments, reference may be made to relevant description of other embodiments.

[0249] Those skilled in the art could be aware that, exemplary units and algorithm steps described in combination with embodiments disclosed herein may be implemented by electronic hardware or in a combination of computer software and electronic hardware. Whether these functions are executed by hardware or software depends upon the specific use and design constraints of the technical solutions. Those skilled in the art may adopt different methods for different specific uses to implement described functions, which should not be regarded as going beyond the scope of the present disclosure.

[0250] In the embodiments provided by the present disclosure, it should be understood that, the disclosed apparatus / computer device and method may be implemented in other ways. The apparatus / computer device embodiments described above are merely illustrative. For example, the modules or units are merely divided according to logic functions, and may be divided in other ways in actual implementation. For example, a plurality of units or components may be combined or may be integrated into another system, or some features may be ignored or not be executed. In addition, the mutual coupling or direct coupling or communication connection between the various components illustrated or discussed may be an indirect coupling or communication connection via some interfaces, devices, or units, and may be an electrical, mechanical, or other forms.

[0251] The units described as separate parts may be or not be physically separated. Parts illustrated as units may be or not be physical units. That is, the parts may be located in one location, or may be distributed on a plurality of network units. Some or all of the units may be selected as desired to achieve the objects of solutions of the embodiments.

[0252] Each of the above embodiments is used only to illustrate, rather than to limit, the technical solutions of the present disclosure. Although the present disclosure has been described in detail with reference to the foregoing embodiments, it is conceivable for those skilled in the art that modifications can be made to the technical solutions described in the foregoing embodiments, or equivalent replacements can be made to some or all of the technical features in the technical solutions described in the foregoing embodiments. These modifications or equivalent replacements, which do not depart the essence of corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present disclosure, shall fall within the scope of the present disclosure.

Claims

1. A target pace determination method, comprising:obtaining a reference pace of a target object and a slope of a position where the target object is located;determining a target impact factor based on the slope of the position where the target object is located, the target impact factor being configured to indicate an impact of the slope on physical energy consumption when the target object exercises at the position where the target object is located; anddetermining a target pace of the target object at the slope based on the reference pace and the target impact factor.

2. The method according to claim 1, wherein determining the slope of the position where the target object is located comprises:obtaining a longitude, a latitude, and an altitude of the target object at a current time point and a longitude, a latitude, and an altitude of the target object at a previous time point;determining a horizontal distance between a position where the target object is located at the current time point and a position where the target object is located at the previous time point based on the longitude and the latitude of the target object at the current time point and the longitude and the latitude of the target object at the previous time point; anddetermining an altitude difference between the altitude of the target object at the current time point and the altitude of the target object at the previous time point, and dividing the altitude difference by the horizontal distance to obtain a slope of a position where the target object is currently located.

3. The method according to claim 2, wherein the determining the horizontal distance between the position where the target object is located at the current time point and the position where the target object is located at the previous time point based on the longitude and the latitude of the target object at the current time point and the longitude and the latitude of the target object at the previous time point comprises:determining a central angle between the position where the target object is located at the current time point and the position where the target object is located at the previous time point based on the longitude and the latitude of the target object at the current time point and the longitude and the latitude of the target object at the previous time point; andmultiplying the central angle by an earth radius to obtain the horizontal distance between the position where the target object is located at the current time point and the position where the target object is located at the previous time point.

4. The method according to claim 1, wherein determining the reference pace of the target object comprises:displaying a reference pace setting interface in response to a reference pace setting instruction, wherein the reference pace setting interface displays a plurality of level selection controls, the plurality of level selection controls are configured to determine paces of different levels;determining a target pace level in response to a selection operation for the plurality of level selection controls on the reference pace setting interface; andmultiplying a threshold pace of the target object by a level coefficient corresponding to the target pace level to obtain the reference pace of the target object, wherein the threshold pace is a pace of the target object at a target heart rate threshold.

5. The method according to claim 4, wherein determining the threshold pace of the target object comprises: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, or a lactate threshold heart rate of the target object; anddetermining the threshold pace of the target object based on the target heart rate threshold and the plurality of reference real-time paces.

6. The method according to claim 5, wherein the 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 the plurality of reference real-time paces comprises:for a real-time heart rate at each time point within the target time period, determining whether the real-time heart rate at the time point is within a target heart rate range, wherein the target heart rate range is a heart rate range of the target object during aerobic exercise;retaining the real-time pace corresponding to the time point, in response to the real-time heart rate at the time point being within the target heart rate range; anddeleting the real-time pace corresponding to the time point, in response to the real-time heart rate at the time point not being within the target heart rate range.

7. The method according to claim 5, wherein the determining the target heart rate threshold based on the at least one of the maximum heart rate, the resting heart rate, or the lactate threshold heart rate of the target object comprises:determining the lactate threshold heart rate as the target heart rate threshold; ordetermining the target heart rate threshold based on the maximum heart rate; ordetermining the target heart rate threshold based on the resting heart rate and the maximum heart rate.

8. The method according to claim 5, wherein the determining the threshold pace of the target object based on the target heart rate threshold and the plurality of reference real-time paces comprises:for each of the plurality of reference real-time paces, predicting a high-intensity pace at a heart rate corresponding to the reference real-time pace based on the reference real-time pace;determining an average pace of a plurality of high-intensity paces; anddetermining the threshold pace of the target object based on the average pace and the target heart rate threshold.

9. The method according to claim 1, wherein the determining the target impact factor based on the slope of the position where the target object is located comprises:determining a sine value and a logarithmic value of the slope of the position where the target object is located; anddetermining the target impact factor based on the sine value and the logarithmic value.

10. The method according to claim 1, wherein the determining the target pace of the target object at the slope based on the reference pace and the target impact factor comprises:dividing the reference pace by the target impact factor to obtain the target pace of the target object at the slope.

11. The method according to claim 1, further comprising, subsequent to the determining the target pace of the target object at the slope based on the reference pace and the target impact factor:obtaining a current pace of the target object at the position where the target object is located; anddetermining whether the current pace of the target object reaches the target pace based on a difference between the target pace and the current pace.

12. The method according to claim 11, wherein the 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 of the target object comprises:determining that the current pace of the target object reaches the target pace, in response to a difference obtained by subtracting the target pace from the current pace being a positive value; anddetermining that the current pace of the target object does not reach the target pace, in response to the difference obtained by subtracting the target pace from the current pace being a negative value.

13. The method according to claim 11, further comprising, subsequent to the 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 of the target object:determining a target time difference between a current time point and a previous time point; andmultiplying the difference between the target pace and the current pace of the target object by the target time difference to obtain a target distance, wherein the target distance is a distance by which the target object is ahead or behind when exercising at the current pace compared with exercising at the target pace.

14. A computer device, comprising:a memory;a processor; anda computer program stored in the memory and executable on the processor, wherein the computer program, when executed by the processor, implements a target pace determination method, the method comprising:obtaining a reference pace of a target object and a slope of a position where the target object is located;determining a target impact factor based on the slope of the position where the target object is located, the target impact factor being configured to indicate an impact of the slope on physical energy consumption when the target object exercises at the position where the target object is located; anddetermining a target pace of the target object at the slope based on the reference pace and the target impact factor.

15. The computer device according to claim 14, wherein determining the slope of the position where the target object is located comprises:obtaining a longitude, a latitude, and an altitude of the target object at a current time point and a longitude, a latitude, and an altitude of the target object at a previous time point;determining a horizontal distance between a position where the target object is located at the current time point and a position where the target object is located at the previous time point based on the longitude and the latitude of the target object at the current time point and the longitude and the latitude of the target object at the previous time point; anddetermining an altitude difference between the altitude of the target object at the current time point and the altitude of the target object at the previous time point, and dividing the altitude difference by the horizontal distance to obtain a slope of a position where the target object is currently located.

16. The computer device according to claim 15, wherein the determining the horizontal distance between the position where the target object is located at the current time point and the position where the target object is located at the previous time point based on the longitude and the latitude of the target object at the current time point and the longitude and the latitude of the target object at the previous time point comprises:determining a central angle between the position where the target object is located at the current time point and the position where the target object is located at the previous time point based on the longitude and the latitude of the target object at the current time point and the longitude and the latitude of the target object at the previous time point; andmultiplying the central angle by an earth radius to obtain the horizontal distance between the position where the target object is located at the current time point and the position where the target object is located at the previous time point.

17. The computer device according to claim 14, wherein determining the reference pace of the target object comprises:displaying a reference pace setting interface in response to a reference pace setting instruction, wherein the reference pace setting interface displays a plurality of level selection controls, the plurality of level selection controls are configured to determine paces of different levels;determining a target pace level in response to a selection operation for the plurality of level selection controls on the reference pace setting interface; andmultiplying a threshold pace of the target object by a level coefficient corresponding to the target pace level to obtain the reference pace of the target object, wherein the threshold pace is a pace of the target object at a target heart rate threshold.

18. The computer device according to claim 17, wherein determining the threshold pace of the target object comprises: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, or a lactate threshold heart rate of the target object; anddetermining the threshold pace of the target object based on the target heart rate threshold and the plurality of reference real-time paces.

19. The computer device according to claim 18, wherein the 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 the plurality of reference real-time paces comprises:for a real-time heart rate at each time point within the target time period, determining whether the real-time heart rate at the time point is within a target heart rate range, wherein the target heart rate range is a heart rate range of the target object during aerobic exercise;retaining the real-time pace corresponding to the time point, in response to the real-time heart rate at the time point being within the target heart rate range; anddeleting the real-time pace corresponding to the time point, in response to the real-time heart rate at the time point not being within the target heart rate range.

20. A non-transitory computer-readable storage medium, storing a computer program, wherein the computer program, when executed by a processor, implements a target pace determination method, the method comprising:obtaining a reference pace of a target object and a slope of a position where the target object is located;determining a target impact factor based on the slope of the position where the target object is located, the target impact factor being configured to indicate an impact of the slope on physical energy consumption when the target object exercises at the position where the target object is located; anddetermining a target pace of the target object at the slope based on the reference pace and the target impact factor.