Extra Crispy
July 25, 2017 10:00 am
Getty Images/Lucia Lambriex

Apparently a picture of food is all you need to decipher what your meal is made of. MIT researchers have created an algorithm called “Pic2Recipe” that generates a list of ingredients based off of a picture of food, and even suggests recipes. The program uses machine learning to evaluate food photos and pulls ingredients from a huge database. In testing, it produced the correct recipe more than half the time.

Related article: New technology could make vegetables taste like chocolate

Nicholas Hynes, a graduate student at MIT’s Computer Science and Artificial Intelligence lab, compiled data from All Recipes, Food.com, and other food sites to create Recipe1M, a database that stores more than a million recipes.

Related article: Google uses espresso making to test its VR tech

The algorithm has the most success with baked goods like pastries, but struggles with more complex dishes like smoothies or sushi. Still, it means that one day there could be an app that helps you better understand your meal at a restaurant so you can recreate it at home.

Related article: The most overplayed breakfast ingredient of 2016

The researchers are working to improve the program to better recognize different food preparation methods such as slicing, boiling, and frying. They hope it can serve as a “dinner aide,” so that people can customize it based off of what ingredients they have at home as well as their dietary restrictions.

Advertisement