It isn’t often there is a huge public dataset of the quantified self data for a large group of people.
I ran across this public dataset of MyFitnessPal data for 587K days of food diary records:
MyFitnessPal Food Diary Dataset
Their paper uses this data and machine learning to predict diet success:
Insights from Machine-Learned Diet Success Prediction
I got to the paper and data via this tweet from Ted Naiman, MD and author of the book “The P:E Diet”, which relates protein intake to energy intake to explain fat gain.
How to Observe the P:E Diet in Real Life
Using basic macronutrient correlations, he shows that increasing protein content in the diet is several times more effective at calorie reduction than changing any other macronutrient.