jonasoreland / runnerup

A open source run tracker
GNU General Public License v3.0
752 stars 275 forks source link

compute calories spent during workout #97

Open jonasoreland opened 10 years ago

grriffin commented 10 years ago

Have you started work on this?

dhiltonp commented 10 years ago

I just spent a little while doing some research; HR seems to be the most accurate way of calculating calories burned, with 2 caveats

  1. the calculation is accurate for submaximal exercise (<85% max HR+)
  2. the formulas don't account for a change in HR with temperature (cardiac drift on long runs - HR increases without actual increase of intensity)

Calculating calories burned by distance traveled can also be quite accurate for running (ACSM and Leger/Mercier equations are great, but require your vo2max), while distance traveled is terrible for biking, as the largest power losses in biking are due to hills and air resistance, which is highly variable (wind, aerodynamics, etc.).

HR formula (it also mentions how to calculate watts for biking!): http://www.braydenwm.com/calburn.htm

McArdle's distance formula: http://www.brianmac.co.uk/energyexp.htm caveat: In this formula comparison study, McArdle's values overcalculated by 10%: http://www.ncbi.nlm.nih.gov/pubmed/15570150

There has been some work on combined formulas, using HR and movement, but I've been unable to find publications describing what the formulas are.

For running, I suggest using the HR formula if possible, falling back to a distance-based calculation. For cycling, the HR formula seems to be our best bet; any distance-based method could easily be off by 2-3x. Providing a 'watts' estimate would also be very cool.

nebmo commented 10 years ago

Interesting, i thought weight was an important part of calculating calories

dhiltonp commented 10 years ago

It is; both linked formulas use weight as part of the calculation. On Oct 25, 2014 1:21 AM, "Niklas Weidemann" notifications@github.com wrote:

Interesting, i thought weight was an important part of calculating calories

— Reply to this email directly or view it on GitHub https://github.com/jonasoreland/runnerup/issues/97#issuecomment-60474431 .

nebmo commented 10 years ago

Hehe sorry, didnt read the links :)

On Sat, Oct 25, 2014 at 9:23 AM, David Hilton notifications@github.com wrote:

It is; both linked formulas use weight as part of the calculation. On Oct 25, 2014 1:21 AM, "Niklas Weidemann" notifications@github.com wrote:

Interesting, i thought weight was an important part of calculating calories

— Reply to this email directly or view it on GitHub < https://github.com/jonasoreland/runnerup/issues/97#issuecomment-60474431> .

— Reply to this email directly or view it on GitHub https://github.com/jonasoreland/runnerup/issues/97#issuecomment-60474466 .

fg1 commented 9 years ago

What about using the value given by the heart-rate monitor? The bluetooth specification for heart-rate measurement provides a "energy expended" field, aka calories spent: https://developer.bluetooth.org/gatt/characteristics/Pages/CharacteristicViewer.aspx?u=org.bluetooth.characteristic.heart_rate_measurement.xml

dhiltonp commented 9 years ago

I guess it's usefulness would depend on how the HRM generates that value - if it has sensors in addition to the HR that it uses to improve the accuracy of the calculation, I guess it could be a better estimate than any formulas we might use.

I'm unsure of what devices would provide the data, though.

David

On Sat, Nov 22, 2014 at 10:02 AM, Fabien notifications@github.com wrote:

What about using the value given by the heart-rate monitor? The bluetooth specification for heart-rate measurement provides a "energy expended" field, aka calories spent:

https://developer.bluetooth.org/gatt/characteristics/Pages/CharacteristicViewer.aspx?u=org.bluetooth.characteristic.heart_rate_measurement.xml

— Reply to this email directly or view it on GitHub https://github.com/jonasoreland/runnerup/issues/97#issuecomment-64086908 .

matm commented 8 years ago

Any news on this one? Would love to see calories attached to workouts!

jonasoreland commented 8 years ago

not yet :(

On Tue, Nov 24, 2015 at 10:07 PM, Mathias Monnerville < notifications@github.com> wrote:

Any news on this one? Would love to see calories attached to workouts!

— Reply to this email directly or view it on GitHub https://github.com/jonasoreland/runnerup/issues/97#issuecomment-159405284 .