Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Nine months of food

Lars Yencken
October 17, 2013
210

Nine months of food

A talk I gave on food tracking to the Melbourne Quantified Self Meetup.

Lars Yencken

October 17, 2013
Tweet

Transcript

  1. . . . .. . . . .. . .

    . .. . . . . .. . . . .. . . . .. . . . .. . . . . .. . . . .. . . . .. . . . .. . . . . .. . . . .. . . . .. . . . .. . . . . .. . . . .. . . . . .. . . . .. . . . .. . Nine months of food Lars Yencken Melbourne Quantified Self Meetup 17th October 2013
  2. . . . .. . . . .. . .

    . .. . . . . .. . . . .. . . . .. . . . .. . . . . .. . . . .. . . . .. . . . .. . . . . .. . . . .. . . . .. . . . .. . . . . .. . . . .. . . . . .. . . . .. . . . .. . Attempts at measurement ▶ Location: GPS tracking over time ▶ Habits: daily habits like meditation ▶ Writing: patterns and themes in my writing ▶ Coding: how long I spend editing what ▶ Food: what I eat when
  3. . . . .. . . . .. . .

    . .. . . . . .. . . . .. . . . .. . . . .. . . . . .. . . . .. . . . .. . . . .. . . . . .. . . . .. . . . .. . . . .. . . . . .. . . . .. . . . . .. . . . .. . . . .. . Earlier this year... ▶ Overweight at 94 kg ▶ In at-risk category for diabetes ▶ Active-ish, but not fit ▶ Long hours of computer work
  4. . . . .. . . . .. . .

    . .. . . . . .. . . . .. . . . .. . . . .. . . . . .. . . . .. . . . .. . . . .. . . . . .. . . . .. . . . .. . . . .. . . . . .. . . . .. . . . . .. . . . .. . . . .. . More generally ▶ Modern food ▶ Quantity: our bodies mislead us, food is abundant* ▶ Quality: food is optimised for taste, not health ▶ Intolerance: our diet contains vast numbers of ingredients ▶ Modern living ▶ Sedentary workplaces: we sit, all day
  5. . . . .. . . . .. . .

    . .. . . . . .. . . . .. . . . .. . . . .. . . . . .. . . . .. . . . .. . . . .. . . . . .. . . . .. . . . .. . . . .. . . . . .. . . . .. . . . . .. . . . .. . . . .. . My weight Historic range 87-105 kg Jan 2013 94 kg
  6. . . . .. . . . .. . .

    . .. . . . . .. . . . .. . . . .. . . . .. . . . . .. . . . .. . . . .. . . . .. . . . . .. . . . .. . . . .. . . . .. . . . . .. . . . .. . . . . .. . . . .. . . . .. . My weight Historic range 87-105 kg Jan 2013 94 kg Target (bet) 85 kg
  7. . . . .. . . . .. . .

    . .. . . . . .. . . . .. . . . .. . . . .. . . . . .. . . . .. . . . .. . . . .. . . . . .. . . . .. . . . .. . . . .. . . . . .. . . . .. . . . . .. . . . .. . . . .. . Tools Easy Diet Diary Bathroom scales
  8. . . . .. . . . .. . .

    . .. . . . . .. . . . .. . . . .. . . . .. . . . . .. . . . .. . . . .. . . . .. . . . . .. . . . .. . . . .. . . . .. . . . . .. . . . .. . . . . .. . . . .. . . . .. . Binges?
  9. . . . .. . . . .. . .

    . .. . . . . .. . . . .. . . . .. . . . .. . . . . .. . . . .. . . . .. . . . .. . . . . .. . . . .. . . . .. . . . .. . . . . .. . . . .. . . . . .. . . . .. . . . .. . How it unfolded... 1. I became hungry, very hungry, and tired 2. To eat more, I drifted to a healthier range of foods 3. To eat more, I increased my exercise 4. I lost about 12 kg 5. My energy largely returned, and I found myself “fit”
  10. . . . .. . . . .. . .

    . .. . . . . .. . . . .. . . . .. . . . .. . . . . .. . . . .. . . . .. . . . .. . . . . .. . . . .. . . . .. . . . .. . . . . .. . . . .. . . . . .. . . . .. . . . .. . 2012 2013 80 85 90 95 Weight over time Date Weight (kg)
  11. . . . .. . . . .. . .

    . .. . . . . .. . . . .. . . . .. . . . .. . . . . .. . . . .. . . . .. . . . .. . . . . .. . . . .. . . . .. . . . .. . . . . .. . . . .. . . . . .. . . . .. . . . .. . Dataset
  12. . . . .. . . . .. . .

    . .. . . . . .. . . . .. . . . .. . . . .. . . . . .. . . . .. . . . .. . . . .. . . . . .. . . . .. . . . .. . . . .. . . . . .. . . . .. . . . . .. . . . .. . . . .. . ▶ Food ▶ 185 days of meals ▶ 11.5 items/day on average ▶ 550 distinct food items (manually relabelled) ▶ Weight and macronutrients per item ▶ Weight ▶ 223 days of body mass and body fat percentage ▶ Exercise ▶ 185 days, still locked in software
  13. . . . .. . . . .. . .

    . .. . . . . .. . . . .. . . . .. . . . .. . . . . .. . . . .. . . . .. . . . .. . . . . .. . . . .. . . . .. . . . .. . . . . .. . . . .. . . . . .. . . . .. . . . .. . What did I eat?
  14. . . . .. . . . .. . .

    . .. . . . . .. . . . .. . . . .. . . . .. . . . . .. . . . .. . . . .. . . . .. . . . . .. . . . .. . . . .. . . . .. . . . . .. . . . .. . . . . .. . . . .. . . . .. . Most common foods Food Count bread 88 protein 85 alcohol-beer 84 crispbread 82 coffee 73 milk-cow 70 vegies-tomato 67 vegies-cucumber 62 fruit-banana 61 salad 53
  15. . . . .. . . . .. . .

    . .. . . . . .. . . . .. . . . .. . . . .. . . . . .. . . . .. . . . .. . . . .. . . . . .. . . . .. . . . .. . . . .. . . . . .. . . . .. . . . . .. . . . .. . . . .. . How much do I eat?
  16. . . . .. . . . .. . .

    . .. . . . . .. . . . .. . . . .. . . . .. . . . . .. . . . .. . . . .. . . . .. . . . . .. . . . .. . . . .. . . . .. . . . . .. . . . .. . . . . .. . . . .. . . . .. . 0 5000 10000 15000 20000 25000 0e+00 2e−05 4e−05 6e−05 8e−05 1e−04 Daily energy consumption (gross) Energy (KJ) Frequency
  17. . . . .. . . . .. . .

    . .. . . . . .. . . . .. . . . .. . . . .. . . . . .. . . . .. . . . .. . . . .. . . . . .. . . . .. . . . .. . . . .. . . . . .. . . . .. . . . . .. . . . .. . . . .. . How much can I eat?
  18. . . . .. . . . .. . .

    . .. . . . . .. . . . .. . . . .. . . . .. . . . . .. . . . .. . . . .. . . . .. . . . . .. . . . .. . . . .. . . . .. . . . . .. . . . .. . . . . .. . . . .. . . . .. . Tomorrow’s weight change based on how much I eat today (wt+1 − wt ) = α(et − ebase ) + noise
  19. . . . .. . . . .. . .

    . .. . . . . .. . . . .. . . . .. . . . .. . . . . .. . . . .. . . . .. . . . .. . . . . .. . . . .. . . . .. . . . .. . . . . .. . . . .. . . . . .. . . . .. . . . .. . > summary(lm(w$weightdiff ~ w$energy)) ... Coefficients: Estimate Std. Error t value Pr(>|t|) (Intercept) -4.545e-01 1.505e-01 -3.020 0.00310 ** w.e$energy 4.071e-05 1.458e-05 2.791 0.00613 ** --- Signif. codes: 0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1 Residual standard error: 0.6491 on 118 degrees of freedom (53 observations deleted due to missingness) Multiple R-squared: 0.06194, Adjusted R-squared: 0.05399 F-statistic: 7.791 on 1 and 118 DF, p-value: 0.006125
  20. . . . .. . . . .. . .

    . .. . . . . .. . . . .. . . . .. . . . .. . . . . .. . . . .. . . . .. . . . .. . . . . .. . . . .. . . . .. . . . .. . . . . .. . . . .. . . . . .. . . . .. . . . .. . ebase 11.2 MJ α 40.7 g per MJ (24.6 MJ per kg) fat 37 MJ per kg
  21. . . . .. . . . .. . .

    . .. . . . . .. . . . .. . . . .. . . . .. . . . . .. . . . .. . . . .. . . . .. . . . . .. . . . .. . . . .. . . . .. . . . . .. . . . .. . . . . .. . . . .. . . . .. . ebase 11.2 MJ α 40.7 g per MJ (24.6 MJ per kg) fat 37 MJ per kg but... missing exercise data
  22. . . . .. . . . .. . .

    . .. . . . . .. . . . .. . . . .. . . . .. . . . . .. . . . .. . . . .. . . . .. . . . . .. . . . .. . . . .. . . . .. . . . . .. . . . .. . . . . .. . . . .. . . . .. . Do large breakfasts help?
  23. . . . .. . . . .. . .

    . .. . . . . .. . . . .. . . . .. . . . .. . . . . .. . . . .. . . . .. . . . .. . . . . .. . . . .. . . . .. . . . .. . . . . .. . . . .. . . . . .. . . . .. . . . .. . 0 2000 4000 6000 8000 0 5000 10000 15000 20000 Breakfast vs rest of day Breakfast (kJ) Rest of day (kJ)
  24. . . . .. . . . .. . .

    . .. . . . . .. . . . .. . . . .. . . . .. . . . . .. . . . .. . . . .. . . . .. . . . . .. . . . .. . . . .. . . . .. . . . . .. . . . .. . . . . .. . . . .. . . . .. . How much meat do I eat?
  25. . . . .. . . . .. . .

    . .. . . . . .. . . . .. . . . .. . . . .. . . . . .. . . . .. . . . .. . . . .. . . . . .. . . . .. . . . .. . . . .. . . . . .. . . . .. . . . . .. . . . .. . . . .. . ▶ Manually tagged foods containing meat ▶ Results ▶ 20% of days meat free ▶ 63% of meals meat free
  26. . . . .. . . . .. . .

    . .. . . . . .. . . . .. . . . .. . . . .. . . . . .. . . . .. . . . .. . . . .. . . . . .. . . . .. . . . .. . . . .. . . . . .. . . . .. . . . . .. . . . .. . . . .. . Breakfast Lunch Snacks Dinner Vegetarian 141 (78%) 80 (47%) 145 (91%) 57 (35%) With meat 39 (22%) 89 (53%) 14 (9%) 105 (65%) Total 180 169 159 162
  27. . . . .. . . . .. . .

    . .. . . . . .. . . . .. . . . .. . . . .. . . . . .. . . . .. . . . .. . . . .. . . . . .. . . . .. . . . .. . . . .. . . . . .. . . . .. . . . . .. . . . .. . . . .. . What foods do I eat together?
  28. . . . .. . . . .. . .

    . .. . . . . .. . . . .. . . . .. . . . .. . . . . .. . . . .. . . . .. . . . .. . . . . .. . . . .. . . . .. . . . .. . . . . .. . . . .. . . . . .. . . . .. . . . .. . Itemsets Support Food 46 vegies-cucumber + vegies-tomato 37 crispbread + vegies-tomato 37 crispbread + vegies-cucumber 34 crispbread + vegies-cucumber + vegies-tomato 32 fruit-banana + protein 32 bread + vegies-tomato 30 alcohol-beer + vegies-tomato 30 alcohol-beer + vegies-cucumber 29 coffee + protein 29 bread + vegies-cucumber
  29. . . . .. . . . .. . .

    . .. . . . . .. . . . .. . . . .. . . . .. . . . . .. . . . .. . . . .. . . . .. . . . . .. . . . .. . . . .. . . . .. . . . . .. . . . .. . . . . .. . . . .. . . . .. .
  30. . . . .. . . . .. . .

    . .. . . . . .. . . . .. . . . .. . . . .. . . . . .. . . . .. . . . .. . . . .. . . . . .. . . . .. . . . .. . . . .. . . . . .. . . . .. . . . . .. . . . .. . . . .. . How much caffeine do I consume?
  31. . . . .. . . . .. . .

    . .. . . . . .. . . . .. . . . .. . . . .. . . . . .. . . . .. . . . .. . . . .. . . . . .. . . . .. . . . .. . . . .. . . . . .. . . . .. . . . . .. . . . .. . . . .. . Jan 05 2013 Feb 08 2013 May 01 2013 Jun 03 2013 Jul 22 2013 Sep 01 2013 Oct 01 2013 0 20 40 60 80 100 Caffeine consumption per day (rolling mean) Caffeine (mg)
  32. . . . .. . . . .. . .

    . .. . . . . .. . . . .. . . . .. . . . .. . . . . .. . . . .. . . . .. . . . .. . . . . .. . . . .. . . . .. . . . .. . . . . .. . . . .. . . . . .. . . . .. . . . .. . Data wierdness ▶ Varying granularity of meals ▶ Low-density foods sometimes left out ▶ Not enough detail for intolerances
  33. . . . .. . . . .. . .

    . .. . . . . .. . . . .. . . . .. . . . .. . . . . .. . . . .. . . . .. . . . .. . . . . .. . . . .. . . . .. . . . .. . . . . .. . . . .. . . . . .. . . . .. . . . .. . In retrospect ▶ Great benefits ▶ Measurement has helped me become healthy ▶ Much unresolved ▶ What foods make me most alert? ▶ Am I intolerant to foods I eat? ▶ Need matching datasets to answer more questions
  34. . . . .. . . . .. . .

    . .. . . . . .. . . . .. . . . .. . . . .. . . . . .. . . . .. . . . .. . . . .. . . . . .. . . . .. . . . .. . . . .. . . . . .. . . . .. . . . . .. . . . .. . . . .. . Thanks!