mt-from-sf-to-gh / features

0 stars 0 forks source link

Calculate calories burned by average heartrate #166

Open mt-from-sf-to-gh opened 4 years ago

mt-from-sf-to-gh commented 4 years ago

Include a calculator for the estimated calories burned by average heartrate .

Motivation: To compare different tours the amount of burned calories is very interesting. Some devices calculate the burned calories, some not. It is very helpfull to compare the tours with an identical calculation. Of course this is no exact calculation, because there are many other exercise parameters not included.

Proposed formula: Calorie Burned Calculator Formula for Men(kCal):
Calorie Burned = [ (AGE_IN_YEAR x 0.2017) + (WEIGHT_IN_KILOGRAM x 0.1988)+ (HEART_BEAT_PER_MINUTE x 0.6309) - 55.0969] x DURATION_IN_MINUTE / 4.184

Calorie Burned Calculator Formula for Women(kCal):
Calorie Burned = [ (AGE_IN_YEAR x 0.074) - (WEIGHT_IN_KILOGRAM x 0.1263) + (HEART_BEAT_PER_MINUTE x 0.4472) - 20.4022] x DURATION_IN_MINUTE / 4.184

Reported by: rudolfmartin

Original Ticket: mytourbook/feature-requests/171

mt-from-sf-to-gh commented 4 years ago

The formula is on page 11 of the ref_paper.

Here are two online calculators:

http://www.calories-calculator.net/Calories_Burned_By_Heart_Rate.html

https://www.runtastic.com/blog/en/calories-burned-calculator/

Original comment by: rudolfmartin

mt-from-sf-to-gh commented 4 years ago

rudolf, I looked at this formula and applied it to some of my workout history and compared the calorie calculation to my existing calorie calculation which was computed by ST3. I did this with a few hundred workouts over 12 years and found this calculation to be fairly similar with a difference of 7% on average. The workouts where I had a a high HR, ST3 reported lower and where I had a low HR, ST3 reported just about 100%. There was also variation by workout type with running being nearly spot on, cycling being way low in ST3 and other workout types generally low.

ST uses weight, duration, activity type, and distance to compute it's estimated calorie count with no regard to heart rate or age. My conclusion is that this calculation that you propose is superior to the ST3 calculation. I don't have any actual reference to the truth on these data so I'm comparing one model to another, but logically the cases I reviewed seem to reason better with the HR-based calculation. Furthermore your proposed model utilizes more relevant inputs and a strong scientific basis.

From a feature perspective I'd like to see a Computed Value preference that allowed a user to select or apply a calorie calculation algorithm with your proposed algorithm as the default. Another algorithm would be needed for cases in which no heart rate data exists. This would require a coefficient on the tour type and other data like duration, distance, weigtht, and possibly gender. Someone would need to work out what that algorithm was and how to adjust it based on the tour type. There would also need to be treatment for systems that import the calories so that imported calorie measurements could optionally remain unmolested during calculations.

Original comment by: rtdog

mt-from-sf-to-gh commented 4 years ago

I upvoted this feature request as I think it could be something useful to add. Personally, I could see the possibility to select a formula based on a tour type. For example, Running vs Cycling.

As for the available formulas, there are severel availables and maybe the most relevant should be implemented.

Original comment by: FJBDev

mt-from-sf-to-gh commented 4 years ago

Here is a formula for a pedestrian tour :

For flat tours, the energy expenditure depends on the distance traveled and the athlete weight Energy expenditure (kcal) = 10km x 50kg = 500kcal

For tours with elevation gain/loss, a technique used is to find the "equivalent" flat distance and use the same formula above. Example of a 50kg athlete running UTMB: Equivalent flat distance = Distance + 0.75x(Elevation Gain/100) Equivalent UTMB flat distance = 160 + 0.75x (9000/100) = 227.5km

Energy expenditure (kcal) = 227.5 x 50kg = 11,375 kcal

Source : "L’entraînement sportif en trail et ultra-trail 2.0 "

Original comment by: FJBDev

mt-from-sf-to-gh commented 4 years ago

Before MT is using formulas to calculate values, first it must be checked if the use of these formulas are legaly allowed, I don't want to have any legal trouble.

Original comment by: wolfgang-ch

mt-from-sf-to-gh commented 4 years ago

I believe the formula I mentioned above can be legally used but I can double check

Original comment by: FJBDev