CaliRequest beta access

Glossary

Food recognition

Food recognition: Software that identifies which foods and ingredients appear in a photo, using computer vision. In calorie apps, it is the first step before estimating portions and nutrition.

Also called Food image recognition, Food detection, AI food recognition.

Food recognition is the part of a photo calorie counter that answers "what is this?" It looks at the image and names the foods: scrambled eggs, a slice of toast, half an avocado. It is the first step in a photo estimate, and usually the easiest one.

How food recognition works

A photo-based calorie estimate has three steps:

  1. Recognize. A vision model identifies the dishes and the visible ingredients.
  2. Estimate portions. It judges how much of each item there is, using cues such as plate size, cutlery and how high the food is piled.
  3. Estimate nutrition. It turns each item and amount into calories and macros.

Older systems used a separate model for each step, trained on labeled photos. Newer apps can use large multimodal models that handle all three steps at once, from a photo or a written description.

The datasets behind food recognition

  • Food-101 (ETH Zurich, 2014): 101,000 photos across 101 dish categories, a classic test for naming dishes (Bossard et al.). It has names, not calories.
  • Nutrition5k (Google Research, 2021): about 5,000 cafeteria dishes. Each ingredient was weighed as it went onto the plate, so calorie estimates can be checked against measured values (Thames et al., 2021).

Recognition is not calorie accuracy

Naming the food correctly does not mean the calories are right. On 200 Nutrition5k meals, Cali identified ingredients correctly 92.7% of the time. Its calorie estimates still had a mean absolute percentage error of 38.1% and a median error of 29% (our benchmark). The accuracy measure behind those numbers is MAPE.

The gap comes from what a camera cannot see:

  • how much food there is, from one angle (portion size)
  • oil, butter and dressing soaked into the food
  • ingredients hidden under other ingredients

Small misses on energy-dense foods like oil and cheese cost the most calories.

Common misconceptions

  • "It recognized my meal, so the number is right." Portions and hidden fat matter more than the name of the dish.
  • "The AI can see what is inside." A sauce or a sandwich filling is a guess unless you say what is in it.
  • "A higher accuracy claim means a better app." Ask what was measured, on which meals, and against what. See AI calorie tracker accuracy.

In Cali

Take a photo with the camera in Cali, and it replies with an estimate and logs it (photo calorie counter). If something is hidden or wrong, correct it in the chat or tap Edit. For the whole process from photo to number, read how AI calorie counting works.