Uncertainty-aware Self-supervised Target-mass Grasping of Granular Foods

Kuniyuki Takahashi, Wilson Ko, Avinash Ummadisingu, Shin-ichi Maeda

Abstract

Automating the portioning of granular foods in the food packing industry is challenging due to complex material dynamics and the high cost of real-world data collection. This paper introduces a robotic system capable of grasping user-specified target masses using minimal training data. By incorporating self-supervised uncertainty estimation—specifically Error Estimation (EE) and Random Network Distillation (RND)—the system identifies reliable grasp points even when trained on as few as 50 examples. Our results demonstrate that uncertainty-aware selection provides a four-fold reduction in required training data, achieving high success rates across diverse materials such as coffee beans, rice, oatmeal, and peanuts.

Introduction

In the food packing industry, such as the assembly of Japanese bento boxes, robots must frequently adapt to new ingredients to accommodate seasonal menus. Accurately portioning granular, deformable foods by weight is a significant hurdle. Because these materials feature complex particle interactions that are difficult to simulate, researchers must rely on real-world data. However, collecting such data is slow, and food is prone to spoilage. Standard deep learning models require massive datasets to be reliable; in low-data regimes, their predictions often fail. This work investigates how robots can accurately grasp specific weights of novel granular foods using very little real-world data by explicitly modeling prediction uncertainty.

Methodology

The system utilizes a Mass Estimation Network that processes cropped RGB-D image patches centered on candidate grasp points to predict the resulting mass. To handle the unreliability of models trained on small datasets, the authors introduce Uncertainty Estimation to identify unfamiliar food surface configurations (epistemic uncertainty).

Two self-supervised methods are proposed:

  1. Error Estimation (EE): A secondary network predicts the absolute difference between the predicted and actual mass.
  2. Random Network Distillation (RND): A predictor network tries to match the output of a fixed, random target network. High prediction error indicates out-of-distribution (novel) grasp candidates.
Grasp selection process overview.

During inference, the robot evaluates multiple candidates via a two-stage filter. It first identifies all points predicted to yield the target mass (within a $\pm 0.5$ g tolerance) and then selects the point with the lowest estimated uncertainty. This approach ensures the robot avoids "risky" grasps that the model is not confident about.

Experimental Setup

The authors developed an automated data collection system featuring a 7-DOF Sawyer robot arm, an RGB-D camera, and digital scales. The robot autonomously transfers food between trays, recording the weight of each grasp to generate training labels without human intervention.

Experimental setup and food materials.

The system was tested on four distinct granular materials: coffee beans, uncooked rice, oatmeal, and peanuts. These materials represent a range of densities, shapes, and friction properties. Training sets were varied from 50 to 1000 grasp attempts to evaluate performance in low-data regimes.

Key Results

The uncertainty-aware approach significantly outperforms standard baselines when data is scarce. For a target of 17g of coffee beans, the EE method achieved an 82% success rate with only 50 training samples, compared to 52% for the baseline.

Key findings include:

  • Data Efficiency: Models using EE or RND trained on 50 samples performed similarly to baseline models trained on over 200 samples, a 4x improvement in data efficiency.
  • Robustness: The system generalized well across materials, successfully handling the compressible nature of oatmeal and the brittle, irregular shapes of peanuts.
  • Diminishing Returns: As dataset size increases toward 1000 samples, the baseline performance converges with uncertainty-aware methods, as epistemic uncertainty naturally decreases with more data.

Conclusion

Explicitly modeling uncertainty allows robotic systems to perform reliably even with minimal real-world experience. By filtering for target mass and then optimizing for confidence, the proposed system bridges the gap between user requirements and model limitations. Future work will address more complex materials like wet or tangled foods (e.g., noodles) and implement strategies to handle low food volumes in trays, such as sweeping or gathering motions.

Summary updated

Abstract

Food packing industry workers typically pick a target amount of food by hand from a food tray and place them in containers. Since menus are diverse and change frequently, robots must adapt and learn to handle new foods in a short time-span. Learning to grasp a specific amount of granular food requires a large training dataset, which is challenging to collect reasonably quickly. In this study, we propose ways to reduce the necessary amount of training data by augmenting a deep neural network with models that estimate its uncertainty through self-supervised learning. To further reduce human effort, we devise a data collection system that automatically generates labels. We build on the idea that we can grasp sufficiently well if there is at least one low-uncertainty (high-confidence) grasp point among the various grasp point candidates. We evaluate the methods we propose in this work on a variety of granular foods-coffee beans, rice, oatmeal and peanuts, each of which has a different size, shape and material properties such as volumetric mass density or friction. For these foods, we show significantly improved grasp accuracy of user-specified target masses using smaller datasets by incorporating uncertainty.
BibTeX
@inproceedings{takahashi2021uncertainty,
  author = {Kuniyuki Takahashi and Wilson Ko and Avinash Ummadisingu and Shin-ichi Maeda},
  title = {{Uncertainty-aware Self-supervised Target-mass Grasping of Granular Foods}},
  booktitle = {IEEE International Conference on Robotics and Automation},
  year = {2021},
  url = {https://openreview.net/forum?id=z3jNzeMyKKk},
}
Figure