Creating Recipes with Artificial Intelligence

IBM’s cognitive computing team takes on a new frontier: meal planning

3 min read
Creating Recipes with Artificial Intelligence
Photo: David Yellen

Now that Watson, IBM’s “Jeopardy!”-winning cognitive computing system, has left the game show circuit behind, it’s finding ample use for its talents in health care, finance, and other industries. Watson has quite a knack for combing through vast troves of data to find a fact or recommend a course of action based on knowledge and past experience.

Computing

And back at IBM’s Thomas J. Watson Research Center, in Yorktown Heights, N.Y., a research group led by electrical engineer and computer scientist Lav Varshney is pushing Watson to the next level. Varshney and his team don’t want a system that digs up a preexisting answer; they want to build a creative system, one that can come up with something new. And they want that something to be tasty.

Working with chefs at the Institute of Culinary Education in New York City, the IBM team is building a cognitive computing system that, given plenty of data about what foods most people already like, will be able to come up with inventive, delicious flavor combinations—far beyond the familiar pairings of tomato and basil, chocolate and strawberry, chicken and rosemary.

Recipe-generating programs already exist, but they are generally simple and case based, substituting new ingredients based on flavors that have worked well in other dishes. The IBM project is trying for something much harder: a system that comes up with radically new dishes based on combinations of ingredients and flavors that people would probably find appealing but may never have been put together in a dish before.

Here’s how it works. To begin, Varshney [left, in photo] and his team set up a large database of recipes from cookbooks, online recipe banks, and even the U.S. Navy (which, though not renowned for gourmet fare, makes some of its recipes publicly available). This collection is what’s known as an inspiration database, a pool of existing creative endeavors—recipes, in this case—that the system can draw from. “Then you can do a lot of transformations on those recipes,” Varshney says. “You can take two different recipes and mix them together; you can substitute ingredients; you can change the cooking processes.” The system takes those alterations as inputs, and then it knits together new recipes until it has—depending on available computing power—“a million or a billion or however many you want.”

But of those myriad recipes, many would likely prove unappetizing, and few would be both delectable and novel. So the system’s next and biggest challenge is to sort the wheat from the chaff—or perhaps the anise-infused wheat-berry salad from the nopal-cactus-and-halibut kebabs.

To do this, it first evaluates the taste-imparting molecules in each new combination of ingredients. Such flavor compounds might include, say, the fruity allyl propionate or coumarin, a chemical in green vegetables that has been described as “the taste of green.” The program then approximates what the newly meshed flavors taste like by comparing their component chemical structures with similar mixtures already in the database. To determine whether a new taste is appealing, the program is armed with a large body of research that has measured how much people like the flavors imparted by different combinations of compounds. If people tend to enjoy flavor combinations that are chemically similar to the new one, the computer can deduce that they’ll probably take pleasure in it, too.

To determine which flavor blends are truly novel, the system simply checks them against existing ones. Some mixtures will be entirely new, not found anywhere in the system’s database of recipes; others could be new within the context of a particular cuisine. For instance, they might introduce flavor pairings found in Indonesian food to an American-style dish.

Once the system has homed in on a promising recipe, Florian Pinel [right, in photo], a member of Varshney’s team who is both a software engineer and a professionally trained chef, will sometimes whip up a batch. “Last year we had a few things that were pretty good, like a turmeric-and-ginger grilled eggplant sandwich with a berry sauce,” Varshney recalls.

The system is still experimental, but Varshney is already envisioning real-world uses. Could it help improve school lunch menus? Definitely, he says. Could it create a range of recipes low in salt and fat for people with cardiovascular disease? No problem. What about dinners for a lactose-intolerant diabetic looking to incorporate specific seasonal produce into her diet? Eventually, Varshney believes. “Here you can create whatever you want under the constraints you set, rather than just having to work with what’s already there,” he declares.

But the biggest limitation of IBM’s approach may be that it oversimplifies the pleasures of eating. Our opinion of a meal is shaped by our feelings and memories, the people surrounding us, and the textures and presentation of the food in front of us—all things that are hard to capture in an algorithm.

Nevertheless, it’s clear that Varshney’s system is on track to create an inexhaustible recipe book of mouth-watering, never-before-tasted dishes. This artificial intelligence could very well prove that computers can outcompete humans at yet another cognitive craft we thought we alone had mastered.

This article originally appeared in print as “IBM’s Taste Master.”

The Conversation (0)

Being More Inclusive Is Paying Off for This IEEE Society

The Instrumentation & Measurement Society saw double-digit growth

6 min read
Illustration of a world map with icons of people over different land masses of the map.
ISTOCKPHOTO

Small changes made over time can lead to big results, the saying goes. A great example of that is the concerted effort the IEEE Instrumentation and Measurement Society started more than two decades ago to become a more welcoming and inclusive environment for women and members from outside the United States. Since 2012, the society has increased the number of female members by more than 60 percent. And more articles are now submitted from authors in China, India, and Italy than from North America.

“We tackled one diversity factor at a time,” says IEEE Senior Member Ferdinanda Ponci, the society’s liaison to IEEE Women in Engineering (WIE), a position established more than 10 years ago to coordinate joint activities and programs.

Keep Reading ↓ Show less

When They Electrified Christmas

It all started with 80 bulbs strung on a New York City tree

7 min read
An ornament of a head with weathered paint on the face.

Decorative light bulbs, like this 1925 two-faced doll's head, became popular as electrification spread in the early 20th century.

Division of Cultural and Community Life/National Museum of American History/Smithsonian Institution

In much of the world, December is a month of twinkling lights. Whether for religious or secular celebrations, the variety and functionality of lights have exploded in recent years, abetted by cheap and colorful LEDs and compact electronics. Homeowners can illuminate the eaves with iridescent icicles, shroud their shrubs with twinkling mesh nets, or mount massive menorahs on their minivans.

But decorative lights aren't new. On 22 December 1882, Edward H. Johnson, vice president of the Edison Electric Light Co., debuted electric Christmas lights when he lit up 80 hand-wired bulbs on a tree in the parlor of his New York City home. Johnson opted for red, white, and blue bulbs, and he mounted the tree on a revolving box. As the tree turned, the lights blinked on and off, creating a "continuous twinkling of dancing colors," as William Croffut reported in the Detroit Post and Tribune. (Croffut's account and many other wonderful facts about the history of decorative lights are available on the website Old Christmas Tree Lights.)

Keep Reading ↓ Show less

Learn How to Use a High-Performance Digitizer

Join Teledyne for a three-part webinar series on high-performance data acquisition basics

1 min read

Webinar: High-Performance Digitizer Basics

Part 3: How to Use a High-Performance Digitizer

Date: Tuesday, December 7, 2021

Time: 10 AM PST | 1 PM EST

Keep Reading ↓ Show less