Learning to assess visual aesthetics of food images

Kekai Sheng, Weiming Dong, Haibin Huang, Menglei Chai, Yong Zhang, Chongyang Ma, Bao-Gang Hu

Abstract

This paper introduces the Gourmet Photography Dataset (GPD), the first large-scale benchmark specifically designed for assessing the visual aesthetics of food. To improve how AI handles subjective judgments, the authors propose Adaptive Smoothing Regularization (ASR), a technique that prevents neural networks from becoming overconfident and helps them generalize to real-world photos.

The Challenge of Food Aesthetics

While humans can easily identify a "good" food photo—noting vibrant colors, soft lighting, and clean plating—teaching AI to make these distinctions is difficult. Existing aesthetic datasets are often too general, missing the specific nuances that make food look appetizing. Moreover, standard deep learning models often suffer from "over-confidence," forcing binary labels on subjective "shades of gray" judgments. This leads to models that fail when encountering the messy, uncurated photos typical of social media.

User survey results highlight the frequency of food photography and a widespread desire for aesthetic improvement tools.

The Gourmet Photography Dataset (GPD)

The star of this research is the GPD, containing 24,000 food images with binary aesthetic labels (13,088 positive, 10,912 negative). Images were scraped from platforms like Flickr and Pinterest, then filtered through a rigorous process involving Amazon Mechanical Turk workers and expert photographers.

A selection of food images from the GPD dataset, illustrating the diversity of subjects and aesthetic qualities used for training.

Adaptive Smoothing Regularization (ASR)

The authors utilize standard CNNs (ResNet-18, InceptionV2) but introduce ASR to improve training. ASR adds auxiliary "smoothing vectors" to the final classification layer, acting as buffer classes that absorb probability mass for ambiguous images. Instead of being forced into a 100% "Positive" or "Negative" prediction, the model can distribute confidence to these buffers. During training, the model uses DBSCAN to cluster features of "confusing" images and dynamically update these vectors, tailoring the regularization to the specific dataset.

Key Insights

  • Negative Consensus: Humans and AI reach consensus on "bad" photos (often sharing flaws like blurriness) much faster than on "good" ones, which are more subjective.
  • Semantics Matter: Models trained on specific food objects performed significantly better than those trained on general scenes, suggesting that understanding "what" the food is is a prerequisite for judging its beauty.
  • Generalization: By intentionally "weakening" model confidence through ASR, the authors improved the model's ability to handle unseen, real-world images.

Results and Applications

Neural networks trained on the GPD achieved approximately 90.7% accuracy. In a "wild" test using 825 unseen WeChat food photos, the ResNet-18 + ASR model achieved a 73.5% consistency score with human judgments, slightly outperforming human experts (72.1%).

Practically, the model was used to assist "PizzaGAN," a generative model. By acting as an aesthetic filter, the assessor automatically discarded generated pizzas with unappetizing textures or artifacts, demonstrating the utility of automated aesthetic assessment in content creation.

Conclusion

While binary labels are a simplification of continuous aesthetic scales, this work provides a robust foundation for food-specific AI. Future work may expand the GPD to include more diverse cuisines and complex environmental scenes, further refining the AI's "taste."

Summary updated

BibTeX
@article{sheng2021learning,
  author = {Kekai Sheng and Weiming Dong and Haibin Huang and Menglei Chai and Yong Zhang and Chongyang Ma and Bao-Gang Hu},
  title = {{Learning to assess visual aesthetics of food images}},
  journal = {Comput. Vis. Media},
  year = {2021},
  doi = {10.1007/s41095-020-0193-5},
}
Figure