Case study
TrayCheck
A food-recognition evaluation demo that keeps the model's answer, the human correction and the limits of the evidence visible.
The question
A food-recognition tool can produce a dish label and a score. The harder question is whether the result is reliable enough for food-service staff to use, and how to spot the mistakes that still get through.
The experiment
I trained a small MobileNetV2 classifier on four food categories using public photographs. It was correct on 142 of 160 held-out photos. The model and training code live in the source project. That result is about one-dish photographs, not hospital trays.
The interactive web demo replays six saved model predictions, including two confident mistakes. A visitor can change a sample menu, confirm or correct a prediction, and see how the review decision is recorded. The original model answer stays beside the human answer so the error remains measurable.
What the demo makes clear
- A low score can trigger a review, but a high score can still be wrong.
- A menu mismatch and a random spot check give staff other ways to catch mistakes.
- Weights are needed to discuss portions or leftovers. A photo classifier does not measure grams eaten.
- Results from public food photos and illustrative browser entries must be kept separate.
The hosted page uses scores computed by the trained model before publication. It does not run image inference on visitor uploads. For a hospital pilot, the next step would be an approved local dataset, staff-checked labels and weighed reference portions, followed by testing across different menus and capture conditions.