Learning a Food World Model That Predicts the Next State from Production Data
Organizations: Chef Robotics, San Francisco, CA, USA
Abstract
Food assembly robots pick ingredients from a pan, and every pick must deliver a target weight. We learn a world model of food picking from 61,773 production picks, labeled automatically by a camera and a scale (self-supervised learning). From the pre-pick heightmap of the pan on a 2.5 mm grid, the commanded pick action, the food and the utensil, the model predicts the post-pick heightmap and the picked mass with uncertainty. We evaluate the mass prediction on 12,294 held-out picks of nine foods. The production controller keeps each pick near its commanded target. The model's root-mean-square error (RMSE) of 10.93 g is 9% lower than that of the commanded target or of a per-food mean. This RMSE is 24% lower than that of the controller's internal mass estimate. Gradient-boosted trees on 20 hand-crafted features have a 0.2 g lower RMSE, but they predict only the mass, not the next state that planning and policy learning need. Using the predicted uncertainty, we decline the most uncertain picks and answer 89.4% of picks with an RMSE of 10.28 g. The prediction barely responds to the commanded volume and depth, because they vary little in closed-loop production. The model also fails without warning at target weights not seen in training. Future directions include action-primitive conditioning and a more general model across foods and utensils. We give recommendations for learning world models from production data.
Figures & tables
| Median | Mass RMSE (g) | |||
|---|---|---|---|---|
| Food | Picks (sess.) | mass (g) | Ours | Mean |
| Rice A | 4,538 (209) | 168 | 9.52 | 11.01 |
| Kidney beans | 979 (19) | 79 | 7.74 | 9.29 |
| Broccoli | 2,059 (33) | 33 | 8.89 | 9.19 |
| Vegetable mix | 1,942 (33) | 35 | 5.89 | 6.10 |
| Tortellini | 1,454 (40) | 181 | 18.04 | 19.47 |
| Predictor | Ans. (%) | RMSE (g) | Difference (g) [95% CI] | 10% |
| All picks | ||||
| Commanded target | 100 | 11.97 | [0.89, 1.19] | 66.7 |
| Mean of each food | 100 | 12.06 | [0.90, 1.44] | 66.9 |
| Internal estimate | 100 | 14.35 | [2.46, 4.54] | 64.7 |
| Gradient-boosted trees | 100 | 10.73 | [ , ] | 71.2 |
| Our model | 100 | 10.93 | ref. | 70.3 |
Appendix figures & tables8 assets
Supplementary material from the paper’s appendix.
Appendix
| Stage | Picks | Sessions | Robots |
|---|---|---|---|
| Recorded | 133,340 | 43 | |
| Usable frames and scale reading | 107,270 | ||
| Pass the pairing and weight checks a | 77,371 | ||
| Training split a | 61,773 | 1,012 | 40 |
| Test split | 15,598 | 440 | 36 |
| Evaluation set | 12,294 | 410 | 36 |
| Setting | Value |
|---|---|
| Optimizer | AdamW [ 35 ] |
| Weight decay | 0.05; none on normalization and bias terms |
| Batch size | 64 |
| Epochs | 40 |
| Learning-rate schedule | one-cycle cosine [ 43 ] |
| Peak learning rate | , after a 5% warm-up |
| One network | Our model | |
|---|---|---|
| Inputs (evaluation set) | (seed 11) | (five networks) |
| Mass RMSE (g) , no session correction | ||
| Training inputs (mask from both frames) | 10.81 | |
| pre-pick mask | 11.42 | |
| robot scalars | 11.40 | |
| heightmap built by the robot’s code | 11.41 | |
| Predictor | RMSE (g) [95% CI] | Difference (g) [95% CI] | Within 10% (%) | MAE (g) |
| Without the session correction, all picks | ||||
| Mean of each food | 12.66 [11.47, 14.17] | [0.96, 2.52] | 65.9 | 8.36 |
| One network (seed 11) | 11.42 [10.46, 12.52] | [0.09, 0.61] | 68.7 | 7.54 |
| One network (five seeds) | 11.28 0.08 | |||
| Our model | 11.14 [10.25, 12.10] | ref. | 69.4 | 7.37 |
| With the session correction, all picks | ||||
| Median | RMSE with the correction (g) | Rel. | Within (%) | |||||
|---|---|---|---|---|---|---|---|---|
| Food | Picks (sess.) | mass (g) | Ours | Mean | Ours [95% CI] | (%) | ||
| Rice A | 4,538 (209) | 168 | 9.52 | 11.01 | [8.63, 10.54] | 5.7 | 71.7 | 94.4 |
| Kidney beans | 979 (19) | 79 | 7.74 | 9.29 | [6.75, 8.53] | 9.8 | 72.8 | 96.5 |
| Broccoli | 2,059 (33) | 33 | 8.89 | 9.19 | [8.38, 9.53] | 27.2 | 75.0 | 97.0 |
| Vegetable mix | 1,942 (33) | 35 | 5.89 | 6.10 | [5.29, 6.65] | 16.8 | 82.0 | 96.7 |
| Tortellini | 1,454 (40) | 181 | 18.04 | 19.47 | [16.04, 20.86] | 10.0 | 65.3 | 93.1 |
| RMSE (g) | Difference (g) | Within | |
|---|---|---|---|
| Predictor | [95% CI] | [95% CI] | 10% (%) |
| Commanded target | 11.97 [11.08, 12.96] | [0.89, 1.19] | 66.7 |
| Internal estimate | 14.35 [12.91, 16.00] | [2.46, 4.54] | 64.7 |
| Gradient-boosted trees | 10.73 [9.89, 11.66] | [ , ] | 71.2 |
| Our model | 10.93 [10.03, 11.91] | ref. | 70.3 |
| Surface RMSE (mm) | |||
|---|---|---|---|
| Prediction | Interior | Near pick | Next pick |
| No change ( ) | 8.84 | 25.35 | 5.56 |
| Mean crater | 4.90 | 9.87 | 4.16 |
| One network (seed 11) | 5.04 | 11.99 | 3.87 |
| Mean of the five networks | 4.81 | 11.36 | 3.74 |
| Five seeds (range) | 4.76 to 5.18 | 10.88 to 12.53 | 3.79 to 3.90 |
World Model Learning
World model learning builds predictive models of how environments change under actions to support planning, simulation, and decision-making.
See all 486 papers