Analyses
The evaluation covers various analyses of a food selection. All analyses are based on the nutrient data and classifications of the generic single foods. This is possible because both generic composite foods and branded foods in our database ultimately resolve to recipes composed of generic single foods.
Each analysis requires a list of foods with consumption amounts (e.g., a day log or a meal) in the request to the respective endpoint. For foods with a processing state, we take into account whether the consumption amount refers to the original form or the processed state. If the food was weighed before preparation, weight changes and nutrient losses are applied.
Nutrition Summary
Section titled “Nutrition Summary”
POST /evaluate/nutrition-summary
The nutrition summary returns the sum of all nutrients consumed across the selected foods. This corresponds to a complete nutrient calculation of the diet. In addition to calories and macronutrients, you can also analyze vitamins, minerals, and other constituents.
Macronutrient Distribution
Section titled “Macronutrient Distribution”
POST /evaluate/macro-distribution
Macronutrient distribution refers to how total energy is split across macronutrients. Specifically, it calculates what share of calories comes from carbohydrates, fats, proteins, and alcohol. The result is reported as a percentage of total energy and gives a quick overview of the diet’s macronutrient balance.
Healthy Eating Index
Section titled “Healthy Eating Index”
POST /evaluate/healthy-eating-index
The metric Healthy Eating Index (mHEI) is a published variant of the U.S. Healthy Eating Index (HEI). It assesses diet quality based on the Dietary Guidelines for Americans 2015. The HEI originated in the U.S. and uses U.S. units and reference portions. The mHEI adopts the 13 scoring components of HEI-2015 unchanged but converts all quantities to the metric system. The core HEI framework has not changed since 2015 and remains current.
Instead of focusing on individual nutrient amounts, the index emphasizes food groups and dietary patterns relative to energy intake. This highlights the importance of a varied selection of primarily nutrient-dense, low-energy foods. Absolute energy is not decisive for the calculation; rather, it’s the quality of the selection relative to its energy content. The mHEI is therefore applicable at different scales—from day- or week-level logs to entire recipe databases. It is less suitable for single meals, as it targets overall dietary patterns.
Energy Density
Section titled “Energy Density”
POST /evaluate/energy-density
Energy density (ED) describes how much energy a food provides per unit mass (kcal/g). Applied to the total diet, average ED indicates how energy-dense the selection is on average. Beverages are excluded because they often have very low ED and are less satiating than solid foods. Even highly sugary drinks like sodas would typically lower the ED of an entire diet. Their calories are therefore considered separately (“beverage calories”).
The split between “counts as food” and “counts as beverage” is not trivial in practice. Liquids or semi-liquids such as smoothies, soups, or milkshakes can be considered food or beverage depending on context. We therefore classify generic single foods in the database as is_solid = True/False. For generic composite foods and branded foods, we derive the is_solid flag from the included generic single foods. If more than 25% of the ingredients (by weight) are solids, the entire item is classified as is_solid = True. Hydration factors for branded foods are taken into account.