Guide
How AI calorie counting works
An AI calorie counter does three jobs: it works out what you ate, how much of it, and what that adds up to. The first job is mostly solved. The second is where the errors live.

AI calorie counting works in a few steps. Your photo, voice note or text is turned into something a model can read. The model names each food, estimates how much of it there is, and converts that into calories and grams of protein, carbs and fat. Then the app shows the estimate and logs it, and you can correct it. Recognizing foods is the easy part. Judging portions is the hard part, and it is where most of the error comes from.
Step 1: Your input becomes something the model can read
There are three common ways in:
- Photo. The image goes to a multimodal model, one that can read pictures as well as text.
- Voice. Speech recognition turns what you said into text first. The model then works from the text.
- Text. A line like "two eggs and toast" goes to the model as it is.
Text and voice have one real advantage over photos: you can say things a camera cannot see, like "fried in butter" or "a large."
Step 2: The model names the foods
This is food recognition: deciding that the plate holds salmon, rice and broccoli. Modern models are good at it on clear, common dishes.
- In a 2025 study, ChatGPT-4 identified foods in 114 meal photos with 93% precision and 85% recall (O'Hara et al., Nutrients, 2025).
- On our own benchmark of 200 meals, Cali recognized about 92.7% of ingredients (benchmark write-up).
Recognition gets harder with mixed dishes, regional foods and anything covered up.
Step 3: The model estimates portions
Now the model has to decide how much of each food is there. This is the hardest step, for machines and people alike.
- In Google's Nutrition5k research, a model's calorie error was about 9.5% when it only had to judge calories per gram, but about 26% when it also had to judge the amount of food. Portion size nearly tripled the error (Thames et al., CVPR 2021).
- In the same paper, people estimating food weight from photos were off by 53% on average, and nutritionists by 41%, on simple plates.
- The 2025 ChatGPT-4 study found the model underestimated meal weight in 76% of photos, mostly for medium and large meals.
A photo is flat. The model has to infer depth, density and scale from clues like the plate rim and cutlery. In our benchmark work, making the model write out its gram estimates before giving calories improved accuracy a lot, and so did giving it concrete size anchors such as a typical plate diameter. That is why the guide on taking food photos for calorie AI focuses on showing size.
Step 4: Grams become calories and macros
Once the model has foods and amounts, it estimates the nutrition. A large language model has absorbed typical nutrition values during training, from the same kind of information found in food composition tables. Some apps look values up in a database instead. Cali does not use a database; the model estimates directly.
The numbers should hang together. The Atwater system, used on food labels, gives about 4 kcal per gram of protein, 4 per gram of carbohydrate, 9 per gram of fat and 7 per gram of alcohol (FAO, 2003). So a meal with 30 g protein, 50 g carbs and 20 g fat should come to roughly 120 + 200 + 180 = 500 kcal. If the calories and macros do not roughly agree, something is off.
Step 5: The app replies, logs, and lets you correct it
A good AI tracker shows the estimate, logs it without extra steps, and makes corrections easy. Corrections matter more than people expect, because you know things the model never will: what you cooked it in, and how much you left on the plate.
Estimates, not medical advice. AI calorie estimates are approximate. Do not use them for insulin dosing, kidney diets or other medical decisions. Ask your doctor or a registered dietitian.
How accuracy is measured
The common measure is mean absolute percentage error, or MAPE: for each meal, take the size of the miss as a percentage of the true value, then average. The median error, the middle value, is also useful, because a few wild misses can pull the average up.
On our public benchmark of 200 meals from the Nutrition5k dataset (April 2026), Cali's calorie MAPE was 38.1% and its median error was 29%. Some simple, clearly separated foods came within a few percent. Piled, mixed and oily dishes were much worse. For how to read accuracy claims in this category, see AI calorie tracker accuracy.
Where AI calorie counting goes wrong
- Hidden fat. Oil, butter and dressing are often the biggest miss, and no camera can see them.
- Ambiguous portions. A deep bowl and a shallow one look alike from above.
- Recipes vary. Two lasagnas can differ by hundreds of calories depending on the cheese and meat.
- Things out of view. Food under other food, or a second helping.
A worked example
Here is a made-up example of the steps for the text "a turkey sandwich and an apple." The numbers are plausible, not lab values.
| Food | Assumed amount | kcal | Protein | Carbs | Fat |
|---|---|---|---|---|---|
| Bread | 2 slices | 165 | 7 g | 28 g | 2 g |
| Sliced turkey | about 3 oz | 90 | 15 g | 3 g | 2 g |
| Mayonnaise | about 1 tbsp | 95 | 0 g | 0 g | 10 g |
| Lettuce and tomato | a few slices | 10 | 1 g | 2 g | 0 g |
| Apple | 1 medium | 95 | 0 g | 25 g | 0 g |
| Total | 455 | 23 g | 58 g | 14 g |
The Atwater check: 23 × 4 + 58 × 4 + 14 × 9 = 450 kcal, close to 455, so the numbers agree. The biggest uncertainty is the mayonnaise. If there were two tablespoons, the meal is about 550 kcal. That is the kind of detail you can add in a second.
Doing this in Cali
Cali follows these steps. You send a photo taken with the camera in Cali, a voice note, or a line of text. Cali's estimates come from OpenAI's gpt-6.1-terra model. Cali replies in the chat with calories, protein, carbs and fat, and logs the entry.
- Photos are sent to the AI for analysis and are not stored on Cali's servers.
- Voice uses Apple's speech recognition to turn your words into text (Apple may process the audio on its servers), and Cali receives only the text to estimate calories. See voice food logging.
- Corrections are one tap or one line: tap Edit under the entry, or reply "actually it was a large one." See editing estimates.
Cali has no food database, no barcode scanner and no micronutrient tracking. It is built for rough awareness with very little effort.
Limits worth knowing
- AI estimates are rough. Expect misses of 30% or more on complex meals.
- They are weakest exactly where calories hide: fats, sauces and big portions.
- They do not replace a label, a weighed recipe or advice from a professional when precision matters.
Questions
- How accurate are AI calorie counters?
- Rough. On our public benchmark of 200 photographed meals, Cali's median calorie error was 29% and its mean absolute percentage error was 38.1%. Recognizing foods is much easier than judging portions.
- Do AI calorie apps use a food database?
- Some combine AI with a database. Cali does not: a language model estimates calories and macros directly from what you send, using nutrition knowledge it learned in training.
- Why does the AI get portion sizes wrong?
- A photo is flat, so the AI has to guess depth and density. Two portions can look alike and differ a lot in weight. Hidden oil and sauces are invisible to it.
- Can I use AI calorie estimates for diabetes or insulin dosing?
- No. The estimates are too rough for dosing decisions. Talk to your doctor or diabetes care team about carb counting.