[Paper Review] Food Ingredients Recognition through Multi-label Learning
This paper proposes a multi-label deep learning approach using fine-tuned CNNs (InceptionV3 and ResNet50) to recognize food ingredients from images, even in unseen recipes. It achieves strong generalization by training on diverse datasets, visualizes neuron specialization to specific ingredients, and releases two new datasets for ingredient recognition.
Automatically constructing a food diary that tracks the ingredients consumed can help people follow a healthy diet. We tackle the problem of food ingredients recognition as a multi-label learning problem. We propose a method for adapting a highly performing state of the art CNN in order to act as a multi-label predictor for learning recipes in terms of their list of ingredients. We prove that our model is able to, given a picture, predict its list of ingredients, even if the recipe corresponding to the picture has never been seen by the model. We make public two new datasets suitable for this purpose. Furthermore, we prove that a model trained with a high variability of recipes and ingredients is able to generalize better on new data, and visualize how it specializes each of its neurons to different ingredients.
Motivation & Objective
- Address the challenge of recognizing food ingredients in images, especially when ingredients are visually ambiguous or invisible.
- Overcome limitations of existing food recognition systems that fail to generalize to unseen recipes.
- Develop a method capable of predicting ingredients in dishes not seen during training, leveraging multi-label learning.
- Create and release two new datasets to support research in food ingredient recognition.
- Investigate how deep neural network neurons specialize to detect specific ingredients through visualization techniques.
Proposed method
- Fine-tune pre-trained ImageNet models (InceptionV3 and ResNet50) for multi-label classification using a cross-entropy loss function.
- Adapt the final fully connected layer of the CNN to output a binary vector indicating presence/absence of each ingredient.
- Train the model on a diverse dataset of food images paired with their ingredient lists to improve generalization.
- Apply visualization techniques to interpret neuron activations and analyze which ingredients specific neurons specialize in detecting.
- Use two datasets: Ingredients101 (101 ingredients, 10k images) and Recipes5k (5k recipes, 50k images) with both fine-grained and simplified ingredient lists.
- Evaluate model performance using F1-score, precision, and recall, comparing results on seen and unseen data.
Experimental results
Research questions
- RQ1Can a multi-label deep learning model generalize to recognize ingredients in recipes it has never seen during training?
- RQ2How does training on a dataset with high variability in ingredients and recipes affect the model’s generalization performance?
- RQ3To what extent can individual neurons in a CNN learn to specialize in detecting specific ingredients, even when they are not visually prominent?
- RQ4Can the model infer the presence of invisible or subtly represented ingredients based on visual appearance alone?
- RQ5How does simplifying the ingredient list during training and evaluation affect the model’s performance and robustness?
Key findings
- The model achieves strong generalization performance on unseen recipes, with F1 scores exceeding 40% on the simplified Recipes5k dataset when trained on the diverse Ingredients101 dataset.
- Models trained on high-variability datasets (e.g., Ingredients101) generalize significantly better to new recipes than those trained on limited or specific data.
- Visualization of neuron activations reveals that specific neurons specialize in detecting distinct ingredients—e.g., neurons responsive to 'lettuce' or 'ketchup' in hamburgers, or 'sugar' in desserts like crème brûlée.
- The model learns semantic embeddings of ingredients, enabling it to predict semantically related fine-grained variants (e.g., 'eggs', 'beaten eggs') as a group, even when only one variant appears in the ground truth.
- The model successfully infers the presence of invisible ingredients (e.g., sugar in a baked dessert) based on visual cues, demonstrating robust abstraction of ingredient composition.
- Simplifying the ingredient list during training improves F1 scores to 47.5%, indicating that reduced label complexity enhances model performance without sacrificing fine-grained recognition capability.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.