Skip to main content
QUICK REVIEW

[Paper Review] Diet2Vec: Multi-scale analysis of massive dietary data

Wesley Tansey, Edward W. Lowe|arXiv (Cornell University)|Dec 1, 2016
Nutritional Studies and DietMedicine4 references1 citations
TL;DR

Diet2Vec is a multi-scale deep learning framework that learns interpretable, real-valued embeddings for foods, meals, and entire diets from a massive 55,000-user dataset in the LoseIt app. By combining word2vec and paragraph2vec with iterative clustering and normalization, it discovers semantically meaningful clusters at each level, with diet-level clusters showing clear macro-nutrient profiles despite no explicit nutritional input in the training process.

ABSTRACT

Smart assistants and recommender systems must deal with lots of information coming from different sources and having different formats. This is more frequent in text data, which presents increased variability and complexity, and is rather common for conversational assistants or chatbots. Moreover, this issue is very evident in the food and nutrition lexicon, where the semantics present increased variability, namely due to hypernyms and hyponyms. This work describes the creation of a set of word embeddings based on the incorporation of information from a food thesaurus - LanguaL - through retrofitting. The ingredients were classified according to three different facet label groups. Retrofitted embeddings seem to properly encode food-specific knowledge, as shown by an increase on accuracy as compared to generic embeddings (+23%, +10% and +31% per group). Moreover, a weighing mechanism based on TF-IDF was applied to embedding creation before retrofitting, also bringing an increase on accuracy (+5%, +9% and +5% per group). Finally, the approach has been tested with human users in an ingredient retrieval exercise, showing very positive evaluation (77.3% of the volunteer testers preferred this method over a string-based matching algorithm).

Motivation & Objective

  • To model fine-grained dietary patterns at scale using real-world data from smartphone diet-tracking apps.
  • To address the challenge of noisy, crowd-sourced dietary data by developing a robust, scalable method for learning latent representations.
  • To create a hierarchical, multi-scale representation of diets—foods, meals, and complete eating patterns—using both textual and nutritional features.
  • To produce interpretable clusters at each level that reflect real-world eating behaviors and nutritional profiles.
  • To enable downstream applications such as personalized nutrition recommendations and behavior prediction in weight management.

Proposed method

  • Apply word2vec to food names to generate initial name-based embeddings, treating each food name as a document.
  • Convert macronutrient and micronutrient values to per-calorie measures to ensure portion invariance.
  • Concatenate word2vec-based food name vectors with normalized, winsorized nutrient vectors to form final food embeddings.
  • Use paragraph2vec (DBOW) on meal-level data, where meals are sequences of food entries, to generate meal-level embeddings.
  • Apply clustering (e.g., k-means) to embeddings at each level to form interpretable 'words' at the food, meal, and diet levels.
  • Iteratively refine representations through a contract-and-expand process: cluster embeddings, then re-embed at the next higher level.

Experimental results

Research questions

  • RQ1Can a scalable deep learning framework learn meaningful, interpretable representations of dietary patterns from massive, noisy, real-world data?
  • RQ2Do the resulting clusters at the food, meal, and diet levels reflect intuitive, real-world eating behaviors and nutritional profiles?
  • RQ3Can meal-level embeddings, trained on co-occurrence without direct nutritional input, still capture distinct macro-nutrient ratios in user diets?
  • RQ4To what extent do the final diet clusters correspond to known dietary patterns such as low-carb or high-protein regimens?
  • RQ5Can the model’s output be used to support practical applications like personalized meal recommendations or weight loss prediction?

Key findings

  • The model successfully learned 4.5 million unique food embeddings from 88 million food log entries, with 90% of food clusters being highly interpretable based on names and nutrient profiles.
  • Meal-level embeddings, derived from co-occurrence patterns, formed 1,000 interpretable clusters such as 'Mexican food', 'American breakfast', and 'Subway combo meals'.
  • Diet-level clusters, formed from meal word bags, revealed distinct macro-nutrient profiles: one group was clearly low-carb, another high-carb and low-fat, and a third balanced.
  • Despite no direct nutritional input in the meal modeling step, the resulting diet clusters showed strong semantic and nutritional coherence, indicating emergent structure from co-occurrence.
  • The model demonstrated robustness to data noise, including misspellings and missing nutrients, through median deviation standardization and winsorization.
  • The final diet clusters were not cherry-picked; uninterpretable clusters were rare, and the majority reflected common dietary patterns across the 55,000-user dataset.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.