Most food recognition models have never seen egusi or amala. Here's how Plately added six Nigerian dishes no public dataset covers.

Food diaries don't work. People forget meals, misjudge portions and give up after a week. Photographing a plate is easier, but only if the software can recognise what's on it.

Most food recognition models are trained on datasets like Food-101: pizza, hamburgers, Caesar salad. Show them a plate of egusi soup and pounded yam and they guess. For a Nigerian user, that makes the whole idea useless.

Collect the data nobody had

Plately recognises twelve dishes. Six come from Food-101. The other six (jollof rice, egusi soup, pounded yam, amala, eba and moi moi) had no public dataset at all, so the images were collected for the project.

Transfer learning, not training from scratch

With a modest dataset, training a CNN from zero would overfit fast. Instead the model starts from MobileNetV2, pretrained on ImageNet, and is fine tuned for the twelve classes. MobileNetV2 is also small enough to export to TensorFlow Lite and serve cheaply from a FastAPI backend.

Be honest about uncertainty

The app shows the model's top three predictions with confidence scores. Anything under 0.55 is flagged as uncertain rather than presented as fact, and users can correct a wrong guess. The original prediction is kept, so every correction becomes data for error analysis.

Nutrition from local sources

Recognising the dish is half the job. Calories, protein, carbohydrate and fat for the Nigerian dishes come from the West African Food Composition Table (FAO, 2019) and the Nigerian Food Composition Table (2017); the international dishes use USDA FoodData Central. Portions are editable, and a daily dashboard tracks intake against each user's own targets.

A model is only as inclusive as the data you were willing to go and collect.

The backend only reads the training pipeline's output, a model file and a class index, so a retrained model with more dishes can be dropped in without touching application code. That's the next step.