Peter Attia· MD
an alternative method to doing that is something called doubly labeled water where a person drinks water that has two different isotopes one is heavily labeled oxygen the other deuterium and by collecting urine over a period of days following that ingestion you can also estimate energy expenditure but do so in a free living environment