Visualising cooking a meal

I’ve always struggled to read recipes all the way through and visualise the order of operations. Mainly because my attention span is terrible, but also because there is going to be interactions with other things in my life; usually the other parts of the meal I’m cooking.

I’d imagine that chefs are pretty good at imagining how the sequencing of a day’s work is going to go. What prep needs to be done, in what order, and how it’s going to interact with the other components. There’s also the advantage of getting another go at it; Home cooks don’t do so well because usually it’s the only time you’ll ever cook a dish. Chris Young1 said in an interview that the best thing for a home cook to do to level up their cooking was to not cook things for the first time on the day of the dinner party.

Anyway, most recipes say “Here’s how to cook really good roast potatoes” which is great if you want to only serve your guests roasties, but if you want to roast a chicken too, your oven becomes a bottleneck in your production. This sort of thing makes cooking at home tricky because home cooks aren’t skilled in planning this sort of stuff. Short of having a cup of tea and writing lists, how else could we support home cooks who are planning a dinner party (or just dinner) to get things to the table at the right time?

Eventually, I really should go and talk to some people who are actually good at this sort of stuff, but while I’m trapped in my house, let’s take an abstract approach to the problem.

Questions:

  • Information structure (is this the right term?)

    • How do you plan the interaction between your recipes?
    • How do you plan the interaction between the cook[s] and the things they’re making?
    • Can the recipes be broken into components?
      • Do those components consist of tasks? Processes? It’s semantic, but does a task require an agent’s involvement? Is being in the oven a task? What’s the right word to make this idea flow into people’s minds?
    • Can components be interrupted? I can stop chopping a carrot to take something out of the oven if a beeper goes off. What’s the task switching cost?
    • What tolerances are there? E.g.:
      • Can I make this component ahead of time? How far ahead?
      • Can this cook for 40 minutes instead of 35?
    • Can components share equipment? E.g. there’s a ChefSteps eggs benedict recipe where everything gets cooked at 64°C. That means that you can do everything in the same pot with one circulator. The “Perfect Hollandaise” recipe asks for 75°C, but that would need an extra circulator for the eggs.

      vs

      • Does those shared pieces of equipment have limits? I can only put so many trays in the fridge (space), so many cookies in the oven (power).
  • User

    • Does the representation actually make it easier to understand and plan a cook?
    • Is there a lot of user specific information? Can cook A mince a shallot faster than cook B? (Do we end up with a bunch of comparative advantage issues here?)

First thoughts

I think that Gantt charts, a la Microsoft Project, are more about organisation theatre than an actually useful tool. Tufte agrees. But, if you flip the chart so that instead of each task going in it’s own row, like an endless waterfall of misery, each resource gets a row, then you can see some useful interactions.

The diagram above is pinched from the docs for Google’s OR-tools Job shop algorithm. Job shop scheduling is the most promising algo/concept that I’ve seen that applies to this problem. The only problem being that the jobs here (tasks/components) have a lot more metadata than the basic examples that I’ve seen. There are some papers that discuss the addition of operators to the problem, so they’re probably helpful (e.g.). I’ll consult the CS brains.

Prototype vis

TODO: draw out a couple of simple recipes to see how it looks. Put an operator rail along the top for person one, and along the bottom for person 2, maybe through the middle for a third person?

The people can be linked to the tasks on equipment rails.

TODO: look into critical path

TODO: Talk to some chefs

Examples

Cooking for engineers

This is interesting as it shows the process of combining ingredients into sub components. The flow of that is sometimes hard to parse out of prose recipes because the ordering is arbitrary. This particular recipe is more or less a waterfall. From looking at the table it seems like soaking and boiling could be parallel activities, but I wouldn’t want to risk it as it might not take 10 minutes to cook the sugar syrup. (ideally there’d be a way to show temporal relationships that’s more complicated than purely precedence. E.g. “you can do these two steps in parallel, but wait 5 minutes before you start boiling the sugar.”)

Pro cookbooks

More professional recipe books assemble dishes out of sub recipes. This makes it easier to delegate work to cooks, but doesn’t really help us understand the timeline or the interaction of those components.

Recipe schema

Schema.org has a markup for recipes which makes recipes parsable by a computer by adding semantic tags to each part of the recipe.

It has tags for: cookTime, cookingMethod, nutrition, recipeCategory, recipeCuisine, recipeIngredient, recipeInstructions and recipeYield. Those are the specific recipe tags, Schema.org has inheritance, so it inherits a whole bunch from more general things, like HowTo and CreativeWork. There’s an example of a marked up recipe at the bottom of the page, have a look.

The only one that’s actually interested in how the food gets cooked is recipeInstructions. That’s defined as:

   
CreativeWork or ItemList or Text A step in making the recipe, in the form of a single item (document, video, etc.) or an ordered list with HowToStep and/or HowToSection items.

Even the most structured (ItemList) is just a list. If we want more structured/nuanced way of describing things we need to layer on metadata from elsewhere.

Solution ideas

I think the ChefSteps process of having a list of ingredients, equipment, yield, active and inactive time at the top of the recipe is a good start.

  1. I think it was when he called in to Cooking Issues, but I wouldn’t trust anything I say!