Recognition of Multiple Food Items in A Single Photo for Use in A Buffet-Style Restaurant

Masashi Anzawa, Sosuke Amano, Yoko Yamakata, Keiko Motonaga, Akiko Kamei, Kiyoharu Aizawa

This paper, published by researchers at the University of Tokyo and the Japan Institute of Sports Sciences, tackles the "buffet problem" in automated food recognition. Unlike standard datasets where one image equals one dish, buffet settings involve trays with multiple plates, daily changing menus, and "mixed" dishes like salads where several food items occupy the same space.

TL;DR

The researchers propose a hierarchical recognition pipeline that uses deep feature-based Nearest Neighbor (NN) search to identify food items in a buffet setting where training data is extremely scarce. By triggering a second, fine-grained analysis for "mixed" categories like salads, the system achieves a 0.79 F-measure and reduces caloric estimation error to under 10%.

What Problem Does This Paper Address?

Automated nutrition tracking is a holy grail for healthcare, but real-world buffet environments present three major hurdles for traditional computer vision:

  1. The Data Scarcity Gap: Buffet menus change daily. You cannot collect thousands of images per dish to train a standard classifier; you might only have 1–3 "template" photos of the day's offerings.
  2. The "Mixed Plate" Challenge: In a buffet, users often put multiple items (lettuce, tomato, corn) on a single plate. Standard detectors usually treat a plate as a single class, missing the individual components.
  3. Localization: Identifying where a dish starts and ends on a crowded tray is difficult without massive bounding-box datasets.

Methods

The authors developed a multi-stage pipeline to handle these constraints:

  1. Dish Localization: They use an SSD300 (Single Shot MultiBox Detector) to find the general areas of dishes on a tray. This was pre-trained on the large-scale FoodLog dataset and fine-tuned on a smaller, specific buffet dataset (JISS-DET).
  2. Coarse Recognition (Nearest Neighbor): For each detected dish area, the system extracts deep features using a ResNet50 (pre-trained on 469 food classes). Instead of a final softmax layer, it uses the feature vectors to perform a Nearest Neighbor search against the few template images available for that day's menu.
  3. Hierarchical Fine-Grained Recognition: This is the "secret sauce." If the coarse search identifies a dish as a "mixed" category (e.g., Salad, Fruits, or Rice with toppings), the system triggers a second pass. It uses a sliding window/object proposal method within that specific dish area to identify sub-components (like picking out the tomatoes in a bowl of lettuce).
  4. Nutritional Estimation: Once items are identified, the system maps them to a nutritional database to calculate total energy (kcal), protein, lipids, and carbohydrates.

Datasets

  • JISS-22: A custom dataset from the Japan Institute of Sports Sciences containing 22 meal-data sets (breakfasts, lunches, dinners) with about 50 items per meal. It includes 195 test images of full trays.
  • FoodLog Dataset (FLD): A large-scale dataset of 450,000 images used for initial training of the feature extractor and detector.
  • JISS-DET: 304 images with bounding box annotations used to fine-tune the dish detector for the specific buffet environment.

Key Insights and Ideas

  • NN Search over Retraining: The most practical insight is that for rapidly changing environments, feature-based similarity is superior to model retraining. By using a pre-trained ResNet as a feature extractor, the system treats new foods as new points in a high-dimensional space rather than requiring a new architecture.
  • Category-Triggered Refinement: The system doesn't waste computational power looking for "sub-items" in a bowl of soup or a piece of steak. It only activates the fine-grained sliding window when the top-level classification indicates a "mixed" category.
  • Nutrient-Centric Evaluation: The authors argue that F-measure isn't enough. They evaluate the system based on the Mean Absolute Error (MAE) of nutrients, which is the metric that actually matters to a nutritionist or a patient.

Key Results

The hierarchical method significantly outperformed standard single-class and multi-class baselines:

  • Recognition Accuracy: Achieved an F-measure of 0.787, compared to 0.708 for the single-class baseline.
  • Caloric Precision: The Mean Absolute Error for energy was reduced to 74 kcal (9.4% error). The baseline error was much higher at 106 kcal (13.8%).
  • Correlation: The correlation between the ground truth calories and the estimated calories was 0.92, indicating high reliability for long-term nutritional tracking.

Limitations and Future Work

  • The "Hidden Food" Problem: The system relies on visual cues. If a piece of chicken is buried under a mountain of cabbage, or if a sauce contains high-calorie hidden ingredients (like heavy cream or oils), the system cannot "see" them.
  • Portion Size Estimation: Currently, the model assumes a standard "one serving" size for every identified item. In reality, buffet users take varying amounts. Integrating depth sensing or 3D volume estimation would be a logical next step.
  • Failure Propagation: If the initial coarse recognition misidentifies a salad as a "main dish," the fine-grained hierarchical step is never triggered, leading to a total miss of the salad components.

Summary updated

Abstract

We investigate image recognition of multiple food items in a single photo, focusing on a buffet restaurant application, where menu changes at every meal, and only a few images per class are available. After detecting food areas, we perform hierarchical recognition. We evaluate our results, comparing to two baseline methods.
BibTeX
@article{anzawa2019recognition,
  author = {Masashi Anzawa and Sosuke Amano and Yoko Yamakata and Keiko Motonaga and Akiko Kamei and Kiyoharu Aizawa},
  title = {{Recognition of Multiple Food Items in A Single Photo for Use in A Buffet-Style Restaurant}},
  journal = {IEICE Trans. Information and Systems},
  year = {2019},
  url = {https://openreview.net/forum?id=EoF3uIABHyY},
}

Loading related content...

Figure