arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1911.01770cs.IRcs.CL
收藏

基于自注意和重复注意的图像检索模型

Self-Attention and Ingredient-Attention Based Model for Recipe Retrieval from Image Queries

University of Bern(伯尔尼大学)

Matthias Fontanellaz, Stergios Christodoulidis, Stavroula Mougiakakou

摘要:

基于直接计算机视觉的营养素含量估计是一项艰巨的任务,这是由于成分的变形和闭塞,以及膳食类别之间的高类别内和低类别间变异性。为了解决这些问题,我们提出了一个从图像中检索配方的系统。食谱信息随后可用于估计膳食的营养成分。在这项研究中,我们利用了多模态Recipe 1 M数据集,该数据集包含超过100万个食谱以及超过1300万张图像。所提出的模型可以作为第一步,在一个自动流水线的营养含量的估计,通过支持相关的成分和指令的提示。通过自注意,我们的模型可以直接处理原始食谱文本,使上游指令句子嵌入过程冗余,从而减少训练时间,同时提供理想的检索结果。此外,我们建议使用的成分注意力机制,以获得洞察到哪些指令,部分指令或单个指令字是重要的,在一定的食谱内处理一个单一的成分。基于注意力的食谱文本编码通过关注特定于膳食的准备步骤而有助于解决高类内/低类间可变性的问题。实验结果表明,这样一个系统的配方检索图像的潜力。还介绍了两种基准方法的比较。

英文摘要:

Direct computer vision based-nutrient content estimation is a demanding task, due to deformation and occlusions of ingredients, as well as high intra-class and low inter-class variability between meal classes. In order to tackle these issues, we propose a system for recipe retrieval from images. The recipe information can subsequently be used to estimate the nutrient content of the meal. In this study, we utilize the multi-modal Recipe1M dataset, which contains over 1 million recipes accompanied by over 13 million images. The proposed model can operate as a first step in an automatic pipeline for the estimation of nutrition content by supporting hints related to ingredient and instruction. Through self-attention, our model can directly process raw recipe text, making the upstream instruction sentence embedding process redundant and thus reducing training time, while providing desirable retrieval results. Furthermore, we propose the use of an ingredient attention mechanism, in order to gain insight into which instructions, parts of instructions or single instruction words are of importance for processing a single ingredient within a certain recipe. Attention-based recipe text encoding contributes to solving the issue of high intra-class/low inter-class variability by focusing on preparation steps specific to the meal. The experimental results demonstrate the potential of such a system for recipe retrieval from images. A comparison with respect to two baseline methods is also presented.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑