LucaComing soon

How photo calorie estimation works, and its limits

By · Published · General information, not medical advice

Estimating calories from a photo takes three steps: recognize the foods, estimate how much of each is on the plate, and multiply by nutrition values per amount. The result is an estimate, not a weighed amount. A photo cannot see oil, butter or sugar inside a dish, and portion size is hard to judge from one flat image, so expect to adjust.

A calorie number from a photo is the end of a short chain of guesses. Each link is reasonable. None of them is a weighed amount. Knowing where the guesses are makes the number far more useful, because you know which part to check.

The three steps behind every photo estimate

Whatever the app, the logic is the same.

1. Recognize the foods

Software looks at the image and names what it sees: rice, grilled chicken, broccoli, a sauce. It also has to separate the items from each other and from the plate. Clear, familiar foods on a plain plate are the easy case. A stew, a wrap or a casserole is harder, because the ingredients are mixed or hidden.

2. Estimate how much of each

Next comes the amount: how many grams of rice, how large the piece of chicken. This is the step with the most room for error. A photo is flat. It has no scale, and it shows how high or how full something is poorly.

3. Look up nutrition per amount

Finally each amount is multiplied by nutrition values for that food, and the items are added up. The calorie part rests on fixed factors. The National Agricultural Library of the US Department of Agriculture states that carbohydrates provide 4 calories per gram, protein provides 4 calories per gram, and fat provides 9 calories per gram. More on that in macros explained.

So the total is: food identity, times amount, times nutrition per amount. A mistake in any of the three carries through to the result.

Why portion size is the hard part

Researchers who study food photography have long added a physical reference to the picture. In a 2020 review of image-assisted dietary assessment, Höchsmann and Martin describe methods where people place a reference card next to their food. The card gives computer imaging algorithms a way to “standardize the images for distance, angle, and color” before portion sizes are estimated.

A casual meal photo has none of that. The same bowl of pasta looks different from 20 cm and from 50 cm, from above and from the side. A deep bowl and a shallow plate can show the same surface and hold very different amounts.

Humans are not great at this either. That is why portion guides lean on familiar objects. See how to estimate portions for the hand and plate references that dietitians publish.

What a photo cannot see

Blind spot Why it matters
Cooking oil and butter Absorbed into the food or left in the pan, so invisible in the image
Sugar Dissolved in drinks, sauces and dressings
Layers Whatever is under the top of a burrito, sandwich, curry or salad
Heaped or thin A heaped serving and a thin one can look similar from above
Sauces and dressings Recipes vary widely, and the amount is hard to see once mixed in
Light and color Dim or tinted light makes foods harder to tell apart

Fat is the blind spot with the biggest effect on the total, because of the 9 calories per gram above. The British Dietetic Association’s portion table lists a tablespoon of oil as 15 ml, or 11 g. At 9 kcal per gram that is roughly 100 kcal that leaves no visible trace on a plate of roasted vegetables.

Mixed dishes combine several of these problems at once. The ingredients are unknown, the proportions are unknown, and the fat is inside.

What published research says

Image-based food recording has been studied for years, mostly as a research tool where trained people analyze the photos.

  • A meta-analysis. Ho and colleagues (2020) pooled 13 studies with 606 participants. Across them, image-based methods under-reported energy intake by a weighted mean of about 179 kcal. Against doubly labeled water, a biomarker method, the gap was about 448 kcal. Compared with food recalls and food records, there was no statistical difference. The authors conclude that “like traditional methods, image-based methods have serious measurement errors”.
  • A narrative review. Höchsmann and Martin (2020) wrote that the technology for automatic food recognition and portion size estimation was “still in its infancy” at the time, and that “less burdensome methods are less accurate and that no current method is adequate in all settings”.

Two cautions when reading these. First, they describe research methods from 2020 and earlier, and the software has changed since. Second, they tested research methods, many of them with trained human raters, and not any app you can install. Nothing here is a figure for a particular product.

The steady message from the literature is simple: every way of recording food has error, whether it is memory, a written diary or a camera.

How to correct an estimate

The fix is to treat the result as a draft. This takes a few seconds per meal.

  1. Read the item list. Wrong food names are the easiest errors to spot. Chicken thigh logged as breast, or regular soda logged as diet, changes the numbers.
  2. Check the amounts. If the estimate says one cup of rice and you know you served two, change it. A kitchen scale used a handful of times teaches your eye quickly.
  3. Add what was invisible. Oil in the pan, butter on the bread, dressing, sugar in coffee.
  4. Use the label when there is one. For packaged food, label data is a better starting point than a visual guess. See barcode data vs estimates.
  5. Be consistent, not perfect. The NIDDK suggests keeping a food tracker to see how much you eat. A record with small errors every day still shows your patterns.

A few habits when taking the picture help too: put the whole plate in the frame, shoot from above, use decent light, and keep sauces and sides visible instead of stacked.

How Luca handles this

Luca is an AI calorie tracker for iPhone that is coming to the App Store. You photograph a meal in a square frame, and in seconds Luca returns an estimate of calories, protein, carbs and fat with an item list. Every item and number can be edited, which is the point of everything above: the estimate is where you start, and your corrections make it yours. No accuracy figure is published for it, because one number would not describe your kitchen, your plates or your recipes.

When a photo is the wrong tool, you can log by voice, by typing a description, or by scanning a barcode. The steps are shown on how it works, and count calories without typing covers the everyday flow.

This article is general information, not medical or dietary advice.

Frequently asked questions

How does an app estimate calories from a photo?

It works in three steps. Software recognizes the foods in the image, estimates the amount of each one, then multiplies each amount by nutrition values per gram or per portion. The total is the sum of those items. Every step adds uncertainty, so the output is an estimate that should be checked.

Why are photo calorie estimates sometimes wrong?

A photo shows the surface of a meal. It does not show cooking oil, butter, sugar in a sauce or what sits under the top layer. Portion size is also hard to judge from a single flat image without a reference object. These gaps are part of the method, not a fault of one product.

What does research say about image-based food logging?

A 2020 meta-analysis of 13 studies with 606 participants found that image-based dietary assessment methods under-reported energy intake on average, and concluded they have serious measurement errors, as traditional methods do. Those studies tested research methods, many with human raters. They did not test Luca.

How can I make a photo estimate more useful?

Photograph the whole plate from above in decent light, then read the item list. Fix the food names, change the amounts that look off, and add what the camera could not see, such as oil, dressing or sugar. For packaged food, scanning the barcode gives label data instead of a visual guess.

Snap it. Luca counts.

An estimate of calories, protein, carbs and fat from a photo, and every number is yours to correct.

Coming to the App Store