This disclosure relates to an exercise monitoring technology, and particularly to an exercise data estimation method, device, and a computer-readable storage medium.
For athletes, Maximum Aerobic Power (MAP) can be an important indicator of their physical ability. Therefore, if a technique can be developed to accurately estimate the maximum aerobic power of an athlete, it should be effective in improving the mastery of the physical ability of the athlete.
In view of this, the disclosure provides an exercise data estimation method, device, and a computer-readable storage medium, capable of being used to solve the above-mentioned technical problems.
An embodiment of the disclosure provides an exercise data estimation method adapted to an exercise data estimation device, including that an exercise data set corresponding to a tth time point is obtained, where the exercise data set corresponding to the tth time point includes an exercise heart rate and an exercise power corresponding to the tth time point, and t is an index value; a heart rate ratio corresponding to the tth time point is determined based on the exercise heart rate corresponding to the tth time point; in response to determining that the exercise data set and the heart rate ratio corresponding to the tth time point match multiple predetermined conditions, the exercise data set is determined to be a valid exercise data set, and a power estimation model is updated based on the exercise data set and the heart rate ratio corresponding to the tth time point; and a maximum aerobic power corresponding to the tth time point is estimated based on the power estimation model.
An embodiment of the disclosure provides an exercise data estimation device including a storage circuit and a processor. The storage circuit stores a program code. The processor is coupled to the storage circuit and accesses the program code to obtain an exercise data set corresponding to a tth time point, where the exercise data set corresponding to the tth time point includes an exercise heart rate and an exercise power corresponding to the tth time point, and t is an index value; determine a heart rate ratio corresponding to the tth time point based on the exercise heart rate corresponding to the tth time point; in response to determining that the exercise data set and the heart rate ratio corresponding to the tth time point match multiple predetermined conditions, determine that the exercise data set is a valid exercise data set, and update a power estimation model based on the exercise data set and the heart rate ratio corresponding to the tth time point; and estimate a maximum aerobic power corresponding to the tth time point based on the power estimation model.
An embodiment of the disclosure provides a computer-readable storage medium recording an executable computer program. The executable computer program is loaded by an exercise data estimation device to obtain an exercise data set corresponding to a tth time point, where the exercise data set corresponding to the tth time point includes an exercise heart rate and an exercise power corresponding to the tth time point, and t is an index value; determine a heart rate ratio corresponding to the tth time point based on the exercise heart rate corresponding to the tth time point; in response to determining that the exercise data set and the heart rate ratio corresponding to the tth time point match multiple predetermined conditions, determine that the exercise data set is a valid exercise data set, and update a power estimation model based on the exercise data set and the heart rate ratio corresponding to the tth time point; and estimate a maximum aerobic power corresponding to the tth time point based on the power estimation model.
Please refer to
In
The processor 104 is coupled to storage circuit 102 and may be a general-purpose processor, special-purpose processor, traditional processor, digital signal processor, multiple microprocessors, one or more microprocessors with integrated digital signal processor cores, controllers, microcontrollers, application specific integrated circuit (ASIC), field programmable gate array (FPGA) circuit, any other type of integrated circuit, state machine, processor based on Advanced RISC Machine (ARM), and similar products.
In an embodiment of the disclosure, the processor 104 may access the modules and program codes recorded in the storage circuit 102 to implement the exercise data estimation method proposed in the disclosure, as detailed below.
Please refer to
Firstly, in step S210, the processor 104 obtains an exercise data set corresponding to a tth time point, where the exercise data set corresponding to the tth time point includes an exercise heart rate (expressed in hr) and an exercise power (expressed in pr) corresponding to the tth time point, and t is an index value.
In an embodiment of the disclosure, the exercise heart rate (hr) corresponding to the tth time point is measured from a user riding on a bicycle (e.g., a heart rate of the user at a t time point), which may be measured by a heart rate sensor on the exercise data estimation device 100 or by a heart rate sensor separately worn by the user and connected to the exercise data estimation device 100. The exercise power (pr) corresponding to the tth time point is, for example, a pedaling power applied to the bicycle by the user at the t time point, but not limited thereto. In other embodiments, the exercise heart rate (hr) and the exercise power (pr) may also be a heart rate and/or power measured during other exercises performed by the user, such as rowing (rowing machine), running.
In a first embodiment, the exercise power pr (e.g., pedaling power) may be measured from a power meter disposed on the bicycle. For example, the power meter may be disposed on a crank, chainwheel, or pedal of the bicycle to measure the pedaling power output from the user while pedaling the bicycle, but not limited thereto.
In the second embodiment, the exercise power pr (e.g., pedaling power) may also be estimated through other means. For example, the processor 104 may, for example, estimate the exercise power pr corresponding to the tth time point based on frictional force, a gravitational component, and air resistance corresponding to the bicycle, and kinetic energy and a movement speed of the bicycle.
In the second embodiment, the exercise power corresponding to the tth time point is expressed as:
where Prworkenergy is the kinetic energy of the bicycle at the tth time point, sp is the speed of the bicycle at the tth time point, which may be sensed and calculated by a positioning system, a wheel rotation sensor, etc., Ffrictional is the frictional force corresponding to the bicycle at the tth time point, Fg is the gravitational component corresponding to the bicycle (at the tth time point), and Fair is the air resistance corresponding to the bicycle at the tth time point.
In an embodiment, Ffrictional may be expressed as:
where mtotal is preferably a sum of a weight of the bicycle, a weight of the user riding on the bicycle, and a weight of equipment installed on the bicycle. The weight of the bicycle, the weight of the user riding on the bicycle, and the weight of the equipment installed on the bicycle may be entered by the user or synchronized with other databases respectively. coeffrictional is a coefficient of friction of a surface (e.g., the ground) on which the bicycle travels.
In an embodiment, Fg may be expressed as:
where θ is an angle between the surface on which the bicycle travels and the horizontal surface, and sin θ may be, for example, obtained by dividing a vertical height change of the bicycle in a unit of time by a traveling distance of the surface on which the bicycle travels, but not limited thereto.
In an embodiment, Fair may be expressed as:
where Areadrag is a windward area of the bicycle (and the user riding thereon) (which may, for example, be regarded as a fixed value or derived from the weight of the user), p is an air density (which may, for example, also be regarded as a fixed value or may be taken from a database), Cd is a wind resistance coefficient (which may, for example, also be regarded as a fixed value or may be taken from a database), and spwind is a wind speed (which may, for example, also be regarded as a fixed value or may be taken from a database).
In an embodiment, Prworkenergy may be expressed as:
where Fnet is net force of the bicycle; rwheel is a radius of a bicycle wheel, which may be entered by the user or taken from the database; splast is a speed of the bicycle at a t−1th time point.
In an embodiment, Fnet may be expressed as:
where Frider is force of the user pedaling the bicycle.
In step S220, the processor 104 determines a heart rate ratio corresponding to the tth time point based on the exercise heart rate corresponding to the tth time point.
In an embodiment, the processor 104 may, for example, estimate the heart rate ratio corresponding to the tth time point based on the following formula, e.g., a heart rate reserve ratio:
where hrrest is a resting heart rate of the user, hrmax is a maximum heart rate of the user. The resting heart rate and the maximum heart rate of the user may be entered by the user, measured by the heart rate sensor, or obtained from a database.
After obtaining the exercise data set and the heart rate ratio (i.e., hrr_t) corresponding to the tth time point, in an embodiment, the processor 104 may determine whether the exercise data set and the heart rate ratio corresponding to the tth time point match multiple predetermined conditions as a valid exercise data set that represents that the user is pedaling and riding.
In an embodiment, the processor 104 may obtain multiple historical exercise data sets corresponding to a first time point to a t−1th time point, where a kth historical exercise data set of the historical exercise data sets includes a historical exercise heart rate and a historical exercise power corresponding to a kth time point, (which may be interpreted as a measured exercise heart rate and exercise power of the user at the kth time point), 1≤k≤(t−1).
Afterwards, the processor 104 may determine whether t is not less than a first predetermined quantity threshold (e.g., 5). If so, this means that collected exercise data sets (i.e., the historical exercise data sets and the exercise data set corresponding to the tth time point) are sufficient for subsequent processing, so that the processor 104 may estimate multiple parameter thresholds based on the historical exercise data sets, and determine at least one of the predetermined conditions accordingly. On the other hand, if the processor 104 determines that t is less than the first predetermined quantity threshold, this means that the collected exercise data sets are still insufficient; thus the processor 104 may update a power estimation model based on the exercise data set corresponding to the tth time point and continue to collect the exercise data set, and the relevant details will be described later.
In an embodiment, after determining that t is not less than the first predetermined quantity threshold, the processor 104 may, for example, determine the predetermined conditions based on the following methods. Specifically, the processor 104 may estimate a heart rate ratio statistical value based on the historical exercise heart rate of each of the historical exercise data sets.
For example, for the historical exercise heart rate at the kth time point, the processor 104 may, for example, estimate a corresponding historical heart rate ratio based on the following formula:
where hrk is the historical exercise heart rate of the user at the kth time point, hrrest is the resting heart rate of the user, and hrmax is the maximum heart rate of the user.
After determining the historical heart rate ratio corresponding to each of the historical exercise heart rate, the processor 104 may take a statistical value for the historical heart rate ratio of the each of the historical exercise heart rate and use the statistical value as the heart rate ratio statistical value. In an embodiment, the processor 104 may, for example, take an average value for the historical heart rate ratio of the each of the historical exercise heart rate and use the average value as the heart rate ratio statistic value (expressed as hr_mean), but may not be limited thereto.
In an embodiment, the processor 104 may estimate a power statistical value based on the historical exercise power of the each of the historical exercise data sets. For example, the processor 104 may take a statistical value for each of the historical exercise power and use the statistical value as the power statistical value, but not limited thereto. In an embodiment, the processor 104 may take an average value for each of the historical exercise power and use the average value as the power statistical value (expressed as pr_mean), but may not be limited thereto.
In an embodiment, the predetermined conditions include one or more of the following conditions: (1) the heart rate ratio corresponding to the tth time point being greater than the heart rate ratio statistical value hr_mean and a heart rate ratio lower limit value (e.g., 0.5); (2) the exercise power pr corresponding to the tth time point being greater than the power statistical value pr_mean and a power lower limit value (e.g., 0), as a valid exercise data set that represents that the user did indeed pedal the bicycle and output power at the tth time point.
In an embodiment, the processor 104 may determine a power estimation model based on the historical exercise data sets corresponding to the first time point to the t−1th time point.
Please refer to
In
where pwr is an estimated power, hrr is a specific heart rate ratio, and a and c are multiple model coefficients of the power estimation model 300.
Based on this, the processor 104 may, after obtaining a specific heart rate ratio, substitute the specific heart rate ratio into the above formula to estimate the estimated power corresponding to the specific heart rate ratio, but not limited thereto.
In an embodiment, after obtaining the exercise power pr corresponding to the tth time point, the processor 104 may also determine a predicted exercise power (expressed as pr′) corresponding to the tth time point based on the exercise heart rate hr corresponding to the tth time point. Afterwards, the processor 104 may obtain a specific error (expressed as err_LR) between the exercise power pr and the predicted exercise power pr′ corresponding to the tth time point. In an embodiment, the specific error err_LR may be expressed as |pr-pr′|, but is not limited thereto. In an embodiment, the predetermined conditions may also include: (3) the specific error is less than an error threshold (e.g., 0.4).
In an embodiment, the processor 104 may determine that the exercise data set corresponding to the tth time point satisfies the predetermined conditions as a valid exercise data set when, but not limited to, (1) the heart rate ratio corresponding to the tth time point is greater than the heart rate ratio statistical value hr_mean and the heart rate ratio lower limit value (e.g., 0.5); (2) the exercise power pr corresponding to the tth time point is greater than the power statistical value pr_mean and the power lower limit value (e.g., 0); and (3) the specific error is less than the error threshold.
In addition, as mentioned earlier, if the processor 104 determines that t is less than the first predetermined quantity threshold (e.g., 5), the processor 104 may update the power estimation model based on the exercise data set corresponding to the tth time point.
For example, when obtaining the exercise data set and heart rate ratio corresponding to the tth time point, the processor 104 may be interpreted to have determined the relevant model coefficients of the power estimation model based on the historical exercise data sets and the historical heart rate ratio corresponding to the first time point to the t−1th time point. Based on this, the processor 104 may update the model coefficients again based on the exercise data set and the heart rate ratio corresponding to the tth time point.
In an embodiment, the processor 104 may perform a linear regression based on the historical heart rate ratio, the historical exercise power of the each of the historical exercise data sets, and the exercise power and the heart rate ratio corresponding to the tth time point to determine the relevant model coefficients of the power estimation model.
In an embodiment, the processor 104 may be interpreted as performing a linear regression based on correspondence between the heart rate ratios and the (historical) exercise power corresponding to the first time point to the tth time point after obtaining the (historical) heart rate ratio corresponding to the first time point to the tth time point, thereby determining the corresponding relevant model coefficients of the power estimation model, but not limited thereto. From another perspective, when t is less than the first predetermined quantity threshold, the processor 104 may be interpreted as not separately determining whether the exercise data set corresponding to the tth time point satisfies the predetermined conditions, but directly updating the relevant model coefficients of the power estimation model based on the exercise data set corresponding to the tth time point, but not limited thereto.
On the other hand, when t is not less than the first predetermined quantity threshold, the processor 104 may accordingly determine the predetermined conditions and determine whether the exercise data set and the heart rate ratio corresponding to the tth time point match the predetermined conditions.
Please refer to
In an embodiment, a method for updating (the relevant model coefficients of) the power estimation model by the processor 104 may be referred to the description in the previous embodiments, and will not be repeated in the following.
In step S230, since the processor 104 updates the power estimation model only after determining that the predetermined conditions are met, it is possible to avoid the result of updating the power estimation model being affected by abnormalities in collected exercise data (e.g., below a lower limit or the heart rate ratio of the heart rate ratio statistical value hr_mean and/or below a lower limit or the exercise power pr of the power statistical value pr_mean, etc.).
Afterwards, in step S240, the processor 104 estimates a maximum aerobic power corresponding to the tth time point based on the power estimation model.
In an embodiment, where the power estimation model is expressed as “pwr=a*hrr+c”, the processor 104 may, for example, set the specific heart rate ratio (i.e., hrr) as a reference value and substitute the specific heart rate ratio set as the reference value into the power estimation model. Afterwards, the processor 104 may determine the corresponding estimated power as the maximum aerobic power corresponding to the tth time point.
In an embodiment, the reference value may, for example, be set to 1 (which may be interpreted as corresponding to the maximum heart rate), and the processor 104 may, after substituting the specific heart rate ratio set to 1 into the power estimation model, use the corresponding estimated power (i.e., a+c) as a maximum aerobic power (expressed as P) corresponding to the tth time point, but may not be limited thereto.
In an embodiment, after obtaining the maximum aerobic power P corresponding to the tth time point, the processor 104 may estimate functional threshold power (FTP) of the user based on multiple physiological characteristics (e.g., gender, height, weight, age, etc.) of the user and the maximum aerobic power P corresponding to the tth time point.
In an embodiment, FTP may be expressed as:
where G is the gender of the user (male is 1, female is 0), H is the height of the user (in meters), W is the weight of the user (in kilograms), A is the age of the user; w1˜w6 is coefficients, which may be determined by the designer according to the needs or situation.
In an embodiment, the processor 104 may determine a specific factor (e.g. FTP/W) based on the functional threshold power and the weight of the user. Then, the processor 104 may determine whether the specific factor falls within a predetermined range (e.g. between 1 and 6, as may be determined by the designer depending on the situation) to determine whether a resulting value of the determined specific factor matches a value that a normal user can generate; and whether a quantity of the valid exercise data set is greater than a second predetermined quantity threshold (which may be set to a sufficiently large value, e.g., 180, depending on the needs of the designer) to determine whether the collected exercise data sets are sufficient.
In an embodiment, if the specific factor falls within the predetermined range and t is greater than the second predetermined quantity threshold, this means that the processor 104 has collected data for a long enough time and that the FTP of the user is not abnormal. In this case, the processor 104 may determine that the FTP is a valid value, and may then provide the FTP to the user for reference. In another embodiment, the new FTP value may also be used as the basis for updating the previous FTP value.
On the other hand, if the specific factor does not fall within the predetermined range or if t is not greater than the second predetermined quantity threshold, this means that the processor 104 is not collecting data for a long enough time or that the FTP of the user is abnormal. In this case, the processor 104 may determine that the FTP is invalid and further may not provide the FTP to the user for reference.
In addition, the disclosure further provides a computer-readable storage medium for performing an exercise data estimation method. The computer-readable storage medium is composed of multiple program instructions (e.g., setup program instructions and deployment program instructions) implemented therein. The program instructions may be loaded into and performed by the exercise data estimation device 100 to perform the exercise data estimation method and functions of the exercise data estimation device 100.
In summary, the method proposed in this embodiment of the disclosure may be adapted to update/determine the power estimation model after obtaining the exercise heart rate and the exercise power corresponding to the tth time point, and use the power estimation model to estimate the maximum aerobic power corresponding to the tth time point. In addition, this embodiment of the disclosure proposes a mechanism for estimating the functional threshold power based on the maximum aerobic power. In this way, a more accurate estimation of physical ability of an athlete may be made, which in turn improves mastery of the physical ability of the athlete and allows the relevant personnel to arrange a more complete and effective training program for the athlete.
Although the disclosure has been disclosed by way of embodiment as above, it is not intended to limit the disclosure, and any person skilled in the art may, without departing from the spirit and scope of the disclosure, make some modifications and embellishments, so that the scope of protection of the disclosure shall be subject to the scope of the following claims.