NewThe Twistor's Engineer, free engineering skills for any coding agentInstall →

Blog

Recognising food on the phone in 2026

A 21 MB built-in model or a 2.6 GB multimodal one? How we chose Atwater's meal recognition, and why photos never leave the phone.

2026-11-20 · 4 min read · The Twistor Labs team

  • atwater
  • on-device-ai
  • engineering

Atwater is a pocket health app. You snap your meals, connect the band you already wear through Apple Health or Health Connect, and see Fuel, Burn and Recovery for the day in one place. The meal photo is where it starts, and we wanted that step to work on the phone, without an account and without sending pictures of every meal to a server. This post is about how that decision played out, with the numbers we measured and the ones we could only estimate.

Where we started: a multimodal model on the phone

The first version ran Gemma 4 E2B, a multimodal model from Google, on the device. You show it a photo and it names the dish in plain words, including dishes it was never specifically trained to classify.

It also comes with real costs on a phone. The model file is about 2.6 GB. It uses gigabytes of memory while running, and a single answer takes seconds on a mid-range Android phone. Asking someone to download 2.6 GB before they can log their first breakfast is a hard sell, and seconds per scan makes logging feel like waiting.

What we researched

We looked at three families of options.

Small image classifiers. EfficientNet-Lite0, quantised to 8-bit integers and fine-tuned on Food-101 (a public dataset of 101 dish categories), comes in at 5.4 MB. We measured that file size directly. For accuracy, we could not find a verified published number for a well-tuned int8 mobile model on Food-101; our working estimate was 85 to 90 percent top-1, and the only verified mobile baseline we found, a deliberately under-tuned MobileNetV2, reports 76.3 percent. For latency, our estimate on a mid-range Android CPU was roughly 20 to 60 milliseconds per photo. Both are estimates, not measurements.

Smaller multimodal models. We looked at the open models that can describe an image in words and are smaller than Gemma. The smallest credible ones still land between a few hundred megabytes and a couple of gigabytes, with answers measured in seconds. That is far larger than a food classifier, and far slower.

Portion size from a photo. This is the part people assume is solved. We found no verified open model that estimates the weight of food from a single ordinary photo. The research datasets that come close use depth cameras or multiple angles. So Atwater starts from a typical portion for the dish, and you change the grams.

The choice: a built-in classifier, with a big model as an option

The 5.4 MB Food-101 classifier ran in our development builds first. It proved the approach, and it also showed the limit: 101 categories is a short menu, and a regional dish outside it could only be matched to the nearest category it knew.

The default engine today is a 21 MB food classifier bundled inside the app. It knows 2,000+ dishes, many Indian ones included, and because it ships with the app it works on first launch with no download and no connection. Gemma 4 E2B is still there as an optional Max accuracy engine for people who want open-vocabulary dish names and have the space for a 2.6 GB download.

Recognising the dish is only half the job. The calories and macros come from a nutrition table that ships with the app. Common dishes fill in at once. When the model names a dish that has no row in that table, Atwater does not guess numbers; it asks you to pick the closest match. Grams of protein, carbs and fat then become calories with the 4-4-9 factors that Wilbur Atwater worked out in the 1890s, and fixing the dish or the grams updates every number.

When the model is unsure

Every recognition comes with a confidence score. Below 65 percent, the app shows its best guess labelled as low confidence, and you correct the dish name.

We did build a cloud check for unclear photos, which would send the photo to a hosted vision model for a second look. It is switched off for launch. In the launch build there is no upload path: meal photos and health numbers stay on the phone, and an unsure result is marked as unsure. A plausible fake number is worse than an honest “not sure” in an app people use to decide what they eat.

The rest stays local

Everything else lives on the phone too: your meals, your daily targets and your settings, in a local database. Daily targets start from the Mifflin-St Jeor equation, a standard estimate of resting energy needs, adjusted for your goal and training days, with a safety floor so a target never drops too low. Every number in the app is an estimate meant to help you log, not medical advice.

What we would tell another team

If you are building on-device recognition in 2026, start from the smallest model that does the core job, measure it on your own photos, and add a big model only as an option. Check that the label list covers what your users actually eat. Be honest in the interface about what leaves the device, and when. Do not promise portion sizes from a single photo.

Atwater is in build and launches on iPhone and Android in December 2026. It is free for 3 scans a day; Atwater Pro is $4.99 a month, $29.99 a year or $59.99 once. To hear when it is out, write to hello@twistorlabs.com.

The Twistor Labs team

Want a topic covered?

Ask how something works and we may write it up.

  • Allmount keys stay on your device
  • Atwater models run on your phone
  • Every release dated in public