Skip to main content
  1. Home
  2. Photography
  3. Emerging Tech
  4. Health & Fitness
  5. Smart Home
  6. News

MIT's Pic2Recipe A.I. Can Predict Food Ingredients By Analyzing a Photo

Add as a preferred source on Google

Scrolling through food photography can bring on the desire to recreate a dish at home, but what if the ingredients aren’t listed? Could there be a way to find out just by analyzing the image? That’s what researchers at the Massachusetts Institute of Technology asked when they set out to create a deep learning algorithm that could predict a recipe based just on a photo. The research, published on July 20, resulted in a program called Pic2Recipe that could accurately predict a dish’s recipe based on a photo, with a 65 percent success rate.

Earlier attempts to turn photos into recipes were limited by smaller datasets — although “small” is relative to all the possible recipes available. One study used 65,000 recipes, but it only included traditional Chinese cuisine; another only had about a 50 percent accuracy in initial testing. Because deep learning algorithms “learn” from being fed large quantities of data, these resulting programs were missing large gaps in potential ingredients, affecting the program’s accuracy.

Recommended Videos

To create a larger database, the researchers from MIT’s Computer Science and Artificial Intelligence Laboratory (CSAIL) knew the software would have to be based on a wide-ranging set of data. So to solve that narrow dataset, the team turned to large sets of photos and recipes that already exists — food websites. Compiling data from places like Food.com and All Recipes, the team created Recipe1M, a dataset of over one million recipes.

Using those recipes and the associated images, the team was able to train the software to use object recognition to pick up on what each dish’s ingredients might be. With a list of ingredients, the system then selected  the recipe that best matched the list. Pic2Recipe was able to recognize ingredients like flour, eggs, and butter.

The program doesn’t actually identify a recipe from the photo — it creates a list of ingredients. With that list, the program can then go through that one-million-recipe database and choose the one with ingredients that match the list from the photo.

“In computer vision, food is mostly neglected because we don’t have the large-scale datasets needed to make predictions,” said Yusuf Aytar, a postdoctoral associate who co-wrote the paper with MIT professor Antonio Torralba. “But seemingly useless photos on social media can actually provide valuable insight into healthy habits and dietary preferences.”

Since the computer already has that large dataset, it is also able to able to pick up on a number of different patterns, like that the average recipe has nine ingredients and the most popular are salt, butter, sugar, olive oil, water, eggs, garlic cloves, milk, flour, and onion.

The software could have a number of different real-world uses. A person could snap a photo at a restaurant to learn how to make the dish at home, or to track her personal nutrition.

The program, while it contains a wider dataset than earlier attempts, still has a few gaps. The researchers said the program has trouble with dishes that are a bit more ambiguous, like smoothies and sushi rolls. Similar recipes with a number of different variations, like lasagna for example, also tended to confuse the program.

The group plans to continue developing the program and even hopes to give the system the ability to tell how something is cooked, like picking up the difference between stewed and diced. Future work could also expand the program’s ability to recognize specific ingredients, like determining the type of onion instead of just listing onion.

You don’t have to wait until Pic2Recipe becomes a full fledged app to try it out. An online version allows users to upload images and try it out.

Hillary K. Grigonis
Hillary never planned on becoming a photographer—and then she was handed a camera at her first writing job and she's been…
Fujifilm’s Instax Mini Evo 2 makes instant photography more digital with touchscreen and video capture
Fujifilm’s new camera can capture the moments before you take a photo.
instax-mini-evo-2-featured

Fujifilm just gave its most popular instant camera a serious digital upgrade. The Instax Mini Evo 2 now comes with a touchscreen, larger sensor, and a video feature that captures four seconds before each photo. It is set to arrive by the end of November for $289.95.

What's new with the Instax Mini Evo 2?

Read more
Sigma FP2 is the world’s smallest full-frame camera built for photographers and filmmakers
The new mirrorless camera combines 24.5MP photography, 6K OpenGate recording, and expandable accessories in a compact body.
Sigma FP2 featured

Full-frame cameras tend to be chunky beasts, but Sigma wants to prove that big imaging doesn't need a big body. Enter the Sigma FP2, the successor to its tiny, boxy fp mirrorless camera. It keeps the same modular design but packs in some serious upgrades, including a 24.5-megapixel partially stacked full-frame sensor, improved autofocus, 6K video recording, and 70GB of built-in storage. Sigma calls it the world's smallest full-frame camera, and while it might be tiny, the same cannot be said for its price tag.

Sigma FP2 brings faster shooting and 6K video

Read more
This award-winning phone thermal camera is 10% off for Halloween, saving you $107
Thermal Master P3 thermal camera drops with code THERMCAM10 (save $107 total): 512x384 IR super resolution, an adjustable-focus lens, and 2026 Tom’s Guide AI Award winner.
Man using thermal camera attachment with phone

A phone thermal camera is one of those tools you don’t think you need until the first time it saves you from an expensive problem, and the Thermal Master P3 just got easier to try. For Halloween, it’s discounted with the code THERMCAM10, a 10% cut that works out to $107 off the total. It’s also fresh off a win at the 2026 Tom’s Guide AI Awards for best phone thermal camera, which is the kind of third-party nod that separates a serious tool from the cheap clip-on sensors that flood this category.

Thermal Master Halloween sale

Read more