A.I. can generate pictures of a finished meal based on just a written recipe

Recipe books contain photos. You know why? Because most of us aren’t capable of reading through a list of ingredients and associated instructions and picturing exactly what is supposed to come out of the oven or other cooking appliance at the end of the process. Artificial intelligence, it seems, doesn’t have quite the same problem — at least, not according to a project carried out by researchers from Tel-Aviv University in Israel.

Using a training data set of approximately 52,000 written recipes, along with images showing the completed foods, the researchers were able to devise a system that can read a recipe and then generate a picture showing what the end result is likely to look like.

“Our system takes a recipe as an input and generates, from scratch, an image that reflects the food that the system ‘believes’ this recipe describes,” Ori Bar El, one of the co-authors on the paper, told Digital Trends. “The important aspect is that the system has no access to the title of the recipe — otherwise this task would have been pretty easy — and that the text of the recipe is both long and does not describe the visual content of the image directly. [This fact] makes this task very hard even for humans, and all the more so for computers.”

The neural network responsible for the feat generates its images using a two-stage process. First, the text of the recipe is converted into a vector of numbers in a process called text embedding. This numerical representation attempts to capture the meaning of the text by mapping semantically similar pieces of text to close vectors in the embedding space. After this is done, a separate network maps the text vectors and images to align them.

In the second stage, the team uses a Generative Adversarial Network (GAN) which both generates new images and evaluates them. This is the process that resulted in the A.I.-created painting which sold at Christie’s auction last year. By having the GAN attempt to fool itself into thinking a generated image is a real photo, the pictures the system comes up with look increasingly realistic.

“[One] challenge we faced was the fact that the quality of the images in the dataset we used was low,” Bar El continued. “This is reflected by lots of blurred images with bad lighting conditions.” The system also turned out to be better at generating certain, more formless foods (pasta, rice, soups, and salads) than others that had a distinctive shape, such as hamburgers.

While the results may be quite good enough for sharing on Instagram, however, it’s nonetheless an impressive example of machine learning. Pair it with IBM’s recipe-generating Chef Watson and it would be more dazzling.

Editors’ Recommendations

  • Forget painting-style transfers, this A.I. creates realistic portraits of fake people
  • An A.I. cracks the internet’s squiggly letter bot test in 0.5 seconds
  • Replaced by robots: 10 jobs that could be hit hard by the A.I. revolution
  • The best recipe apps for Android and iOS
  • The best Nintendo Switch games





Latest posts

Netflix says around 300 titles used generative AI

A scene from The American Experiment, one of the Netflix titles to use generative AI | Image: Netflix Netflix says roughly 300 titles on its...

Samsung’s 55-inch Frame art TV is $200 cheaper than usual

Samsung’s art TV looks right at home alongside real paintings. | Image: Samsung Samsung’s Frame is different from your average 4K TV. Its biggest selling...

Fortnite is getting a bunch of AI-powered ‘personas’

Get ready for more AI characters in Fortnite. Developer Epic Games is going to let Fortnite creators publish experiences featuring characters with AI-powered voices...

Google Health 5.04 rolling out: Custom food logging, more fixes

Google Health 5.04 is rolling out today with a focus on nutrition updates — a big complaint of the initial redesign — and other...

Apple TV for Android adds widgets, Apple Music gets WhatsApp sharing

Apple TV and Apple Music for Android are rolling out sizable updates today, with homescreen widgets as the shared theme. Read more @ 9to5google

Roblox will let people use AI to make games on their phone

Roblox is about to let people make games with AI right inside its mobile app, which could make a platform that's already filled with...

Google is better than Apple at playing the AI regulations game

Google CEO Sundar Pichai | Bloomberg via Getty Images Today, the European Union ordered Google to give its AI rivals greater access to Android, the...

Ecovacs’ self-cleaning Deebot X11 has hit a new low price

Sometimes it feels like keeping your floors clean is one of those never-ending chores, which is why it's nice to have a versatile robot...

New York governor says she’s using AI to analyze ‘every single rule’ in the state

New York Governor Kathy Hochul might have just signed a moratorium on new AI data centers in the state, but she's not against using...

Kalshi says it caught Trump’s teleprompter operator insider trading

Kalshi users betting on what President Donald Trump would say during his speeches were reportedly up against tough competition: the president's teleprompter operator. ABC News...