Identifying Object States in Cooking-Related Images

Ahmad Babaeian Jelodar, Sirajus Salekin, Yu SunarXiv 2018 · DOI

Abstract

Understanding object states is as important as object recognition for robotic task planning and manipulation. To our knowledge, this paper explicitly introduces and addresses the state identification problem in cooking related images for the first time. In this paper, objects and ingredients in cooking videos are explored and the most frequent objects are analyzed. Eleven states from the most frequent cooking objects are examined and a dataset of images containing those objects and their states is created. As a solution to the state identification problem, a Resnet based deep model is proposed. The model is initialized with Imagenet weights and trained on the dataset of eleven classes. The trained state identification model is evaluated on a subset of the Imagenet dataset and state labels are provided using a combination of the model with manual checking. Moreover, an individual model is fine-tuned for each object in the dataset using the weights from the initially trained model and object-specific images, where significant improvement is demonstrated.

Introduction

While computer vision has become excellent at identifying what an object is, it often ignores what state that object is in. Imagine asking a robot chef to "dice the tomato." To execute this command, the robot first needs to know the current state of the tomato. Is it whole? Is it already sliced? If the robot cannot distinguish between a whole tomato and a pile of tomato slices, it cannot plan its next physical action or choose the correct tool.

Most computer vision research focuses on object recognition or scene understanding. However, for robotic manipulation, the physical state of an object—resulting from human or robotic activity—is just as important. This paper addresses the gap in dedicated datasets and specialized models for identifying fine-grained ingredient states in a cooking context.

State Taxonomy and Dataset

The researchers introduced the State Identification Dataset, consisting of 9,309 images across 17 common cooking objects (e.g., tomato, onion, garlic). The dataset categorizes ingredients into 11 state labels: whole, peeled, floured, sliced, diced, grated, julienne, juice, creamy, mixed, and other.

Figure 2: Taxonomy of physical state changes categorized by shape, surface, texture, and color transformations.

As shown in the taxonomy above, states are often the result of specific physical transformations. Understanding these relationships is key to robotic planning. The images were curated via Google Search and manually filtered and labeled to ensure high-quality training data.

Methodology

The state identification problem was approached as an image classification task using deep convolutional neural networks (CNNs).

  1. Architecture: The model utilizes a ResNet base (up to the 46th activation layer) as a feature extractor. A custom "head" was added, consisting of a 1x1 convolution layer to reduce feature map depth, followed by two additional convolution layers to capture spatial features specific to ingredient states, and a global average pooling layer leading into an 11-class softmax output.
  2. Transfer Learning: The model was initialized with ImageNet weights. Training involved freezing the ResNet base to train the new top layers, followed by full-network fine-tuning.
  3. Object-Specific Fine-Tuning: Because states are highly correlated with specific objects (e.g., "grating" applies to cheese but not milk), individual models were fine-tuned for each of the 17 objects. This allowed the models to learn object-specific visual nuances for shared states like "sliced."
Figure 4: The proposed ResNet-based architecture featuring custom convolution and normalization layers for state identification.

Key Results and Insights

  • Model Performance: The base ResNet model achieved 80.4% Top-1 accuracy. Using an ensemble voting system between three similar architectures improved this to 82%.
  • Object-Specific Success: Fine-tuning for individual objects yielded the best results, with an average accuracy of 86.9%. For certain distinct categories like milk, the model achieved 100% accuracy.
  • Generalization: On an ImageNet subset, the model maintained 78.5% Top-1 accuracy, proving that the learned features are robust for "in-the-wild" images.
  • Visual Ambiguity: Errors often occurred between similar states, such as "diced" versus "chopped" (often categorized as "other"). Additionally, "creamy" textures (like mashed potatoes) were sometimes confused with "juice" or "paste" depending on lighting.

Conclusion and Future Work

While this work establishes a baseline for state identification, several challenges remain. Current models assume a single state per image, whereas real-world scenes often contain "multi-state" environments (e.g., a whole onion next to diced pieces). Future research will focus on tracking states across video frames to capture transformations temporally and developing pipelines that perform object recognition and state identification simultaneously.

Summary updated

Abstract

Understanding object states is as important as object recognition for robotic task planning and manipulation. To our knowledge, this paper explicitly introduces and addresses the state identification problem in cooking related images for the first time. In this paper, objects and ingredients in cooking videos are explored and the most frequent objects are analyzed. Eleven states from the most frequent cooking objects are examined and a dataset of images containing those objects and their states is created. As a solution to the state identification problem, a Resnet based deep model is proposed. The model is initialized with Imagenet weights and trained on the dataset of eleven classes. The trained state identification model is evaluated on a subset of the Imagenet dataset and state labels are provided using a combination of the model with manual checking. Moreover, an individual model is fine-tuned for each object in the dataset using the weights from the initially trained model and object-specific images, where significant improvement is demonstrated.
BibTeX
@misc{jelodar2018identifying,
  author = {Ahmad Babaeian Jelodar and Sirajus Salekin and Yu Sun},
  title = {{Identifying Object States in Cooking-Related Images}},
  year = {2018},
  eprint = {1805.06956},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1805.06956},
}

Loading related content...

Figure