TL;DR
This paper introduces Food2K, a massive new dataset for visual food recognition, boasting 2,000 categories and over a million images, significantly outperforming existing benchmarks. They also propose PRENet, a novel deep learning architecture that leverages progressive local feature learning and self-attention to achieve state-of-the-art results on Food2K and demonstrate strong generalization across various food-related vision tasks.
What Problem Does This Paper Address?
While computer vision has seen tremendous progress in general image recognition thanks to large-scale datasets, the domain of food recognition has lagged behind. Existing food datasets are often too small in terms of both the number of categories and images, limiting the development of advanced models. This gap hinders progress in crucial applications like understanding dietary habits, supporting health initiatives, and enabling tasks like recipe retrieval and generation. The authors aim to bridge this gap by introducing a significantly larger and more diverse dataset and a robust model capable of learning from it.
Methods
The paper introduces a novel deep learning architecture called the Progressive Region Enhancement Network (PRENet). It has two main components:
- Global Feature Learning: This branch extracts high-level, global features from food images, similar to standard image classification approaches (e.g., using Global Average Pooling).
- Progressive Local Feature Learning: This is a key innovation. Instead of processing the entire image at once, this branch progressively learns local features. It starts with smaller receptive fields in earlier network stages and gradually expands to larger ones. This strategy is designed to capture fine-grained details like ingredients and cooking styles. To further enhance feature diversity, they introduce a KL-divergence loss to encourage differences between features learned at different stages.
- Region Feature Enhancement: This component uses a self-attention mechanism to incorporate richer contextual information from multiple scales into the local features, improving their representation.
Finally, the global and enhanced local features are concatenated and fed into a classifier for the final prediction. The training process is also progressive, optimizing different stages sequentially before a final end-to-end training phase.
Datasets
- Food2K: The primary contribution is this newly introduced dataset. It contains 2,000 food categories and 1,036,564 images. The authors emphasize its large scale, high quality (through rigorous cleaning and annotation), and diversity, covering both eastern and western cuisines. It's intended to serve as a challenging benchmark for fine-grained visual recognition.
- ETH Food-101, Vireo Food-172, ISIA Food-500: These existing food datasets are used for evaluating the generalization capabilities of models trained on Food2K.
- Recipe1M: Used for evaluating cross-modal recipe retrieval.
- UNIMIB2016, Oktoberfest: Used for evaluating food detection.
- UEC-FoodPix Complete: Used for evaluating food segmentation.
Key Insights and Ideas
- Scale Matters for Food Recognition: The success of large-scale datasets like ImageNet in general vision tasks is mirrored here; a significantly larger dataset (Food2K) is crucial for advancing food recognition.
- Progressive Learning for Fine-Grained Details: The progressive local feature learning strategy effectively captures subtle differences in food items (e.g., ingredients, presentation) that are often missed by standard approaches.
- Self-Attention for Contextual Enhancement: Integrating self-attention helps the model leverage broader contextual information, improving the robustness of local feature representations.
- Food2K's Generalization Power: Models trained on Food2K demonstrate remarkable transferability to various food-related tasks, suggesting the dataset captures fundamental visual representations of food.
- Fine-Grained Challenges in Food: The paper highlights that food recognition presents unique challenges compared to other fine-grained tasks (like birds or cars) due to the lack of rigid structures and the complex, often random distribution of ingredients.
Key Results
- Food2K Performance: The proposed PRENet model achieves state-of-the-art results on the Food2K benchmark, with Top-1 accuracy reaching 83.75% (using ResNet101 backbone).
- Generalization: Models trained on Food2K show significant performance improvements when transferred to other food recognition datasets (ETH Food-101, Vireo Food-172, ISIA Food-500), outperforming models trained solely on those datasets. For instance, an average improvement of 3.51% in Top-1 accuracy was observed on Vireo Food-172.
- Task Transferability: PRENet models trained on Food2K also show strong performance in food image retrieval, cross-modal recipe retrieval, food detection, and food segmentation, underscoring the dataset's broad utility. For example, in food detection on UNIMIB2016, the average mAP was 66.4%, higher than models trained on ETH Food-101.
Limitations and Future Work
- Fine-Grained Confusion: The authors acknowledge that even their model struggles with very similar food items (e.g., "Shrimp pizza" vs. "Sausage pizza"), indicating room for algorithmic improvement.
- Dataset Size and Imbalance: While large, Food2K still exhibits class imbalance, and further work could explore techniques to mitigate this.
- Human Vision Comparison: The paper suggests comparing human visual perception of food with model performance, which is challenging due to cultural biases and the complexity of food perception.
- Transformer Architectures: The authors propose exploring transformer-based models for food recognition, given their success in general image recognition.
- Richer Annotations: Future work could involve adding more detailed annotations, such as ingredient-level or pixel-level labels, and exploring new tasks like aesthetic assessment of food images.
- Cross-Domain Transfer Learning: Investigating transfer learning across cuisines (e.g., eastern to western) and super-classes is also highlighted as a promising direction.
Summary updated