Download as pdf or txt
Download as pdf or txt
You are on page 1of 2

Virtual Fridge : Recipe Generator using ML

Dept. Computer Technology


Sou.Venutai Chavan Polytechnic
(MSBTE)
Pune, India
email: svcp@sinhgad.edu

Abstract—Research suggests that it often creates lot of make a user aware of the various dishes which can be cooked
confusion about what to cook with available ingredients. from the available set of ingredients being input by a user.
Further, we might not have accessibility from more ingredients
due to various reasons. Results showed a significant effect to
bound at home to make the best possible dish from leftover
ingredients and also to make a user aware of the various dishes
whichcan be cooked from the available set of ingredients being
input by a user. Recurrent Neural Network (RNN) model was
used to take outputs from available food ingredients that are fed
as input to the recipe generation.

Keywords—RNN, recipe generation, ingredients detection.

I. INTRODUCTION
A lot of times, we are in a situation when we want to cook
something delicious but we are short on ingredients at our
home and we are confused about what to cook with the
ingredients we have. We might be in a situation where either
we don’t have any means to get ingredients from the market,
or we are bound to stay at home. Just as we did in this B. Motivation:
COVID-19 pandemic situation, where we stayed in our Our project aims to make a user aware of the various dishes
homes for months in complete lockdown. We feel helpless in which can be cooked from the available set of ingredients
such a situation. being input by a user. There may be times when a person
In such a situation we keep on searching for recipes that desires new, delicious, healthy or maybe presentable cuisines
match our ingredients online, but hardly get any results and and above all, it necessarily is homemade as the possibilities
that too takes a lot of time, and ultimately we return to our to get one from outside might be restricted like in the recent
kitchen disappointed. There’s a need for a system that could pandemic period (Covid-19). An optimal solution to this
actually take ingredients as the input and give us the list of could be the design of an application wherein the user will be
most matching recipes that could help us make delicious food capable of exploring and preparing several new dishes which
at our homes. include those ingredients. Therefore, a system could be
In addition, this project would be a great platform for people designed that could actually take ingredients as the input and
to learn and expand their knowledge in the field of cooking. generates the best-matched recipe from an exhaustive list of
Moreover, it will help in exploring and spreading the taste of most matching recipes.
one region worldwide. It will also bring innovation to the art In addition, this project would be a great platform for people
of cooking. Our motivation is not only restricted to these to learn and expand their knowledge in the field of cooking.
merits but also includes more information about nutrition for Moreover, it will help in exploring and spreading the taste of
respective recipes. Nutrition and health being the most one region worldwide. It will also bring innovation to the art
important aspects of one's life are also one of the most of cooking. Our motivation is not only restricted to these
neglected areas. This project will also ensure that a user is merits but also includes more information about nutrition for
aware of his/her food intake value and thus plan to explore respective recipes. Nutrition and health being the most
and make healthier meals. important aspects of one's life are also one of the most
neglected areas. This project will also ensure that a user is
aware of his/her food intake value and thus plan to explore
A. Background and make healthier meals.
Most often, we get into a situation when we want to cook
something delicious, however, we are short on ingredients at
our home. It also creates a lot of confusion about what to cook II. METHODOLOGY
with the available ingredients. Further, we might not have A. Algorithm and Approach
accessibility to more ingredients from the nearby market due
to various reasons like non-availability or specifically the 1. Scrap Dataset from given websites:
unprecedented times as Covid which has resulted in i. All Recipes
shutdowns. Finally, we are bound at home to make the best ii. Epicurious
possible dish from leftover ingredients. Our project aims to iii. Food Network
2. Preprocessing Dataset:
i. Filtering out incomplete recipes and converting the Search options:
dictionary to string.
• Search by Ingredients
ii. Add stop words after recipe title, ingredients and
instructions. • Search by food image
iii. Fixing the length of recipes by removing too large
• Search by cuisine
recipes and padding the smaller ones with a special
character. Finally left with 100212 recipes. Output: self generated recipes
3. We have used used character level RNN’s where we have
An additional feature for inserting food ingredients
first vectorized the input dataset into numbers and then
through voice commands.
converted them into a Tensorflow dataset for final training.
4. Then we split up the dataset into batches of 64 and final
started the training.
ACKNOWLEDGMENTS
We have taken a lot of deliberations in this venture. But it
B. Architecture wouldn't have been possible without the help and backing of
a) Server: The system requires servers to process applications numerous people. We want to extend our true appreciation
and to host databases, to and from which the querying is done. and thank them. We take this opportunity to express our
For development purposes the team has used their local profound gratitude and deep regards to our mentor Prof. Aarti
machines. Patil for her exemplary guidance, monitoring and constant
b) Web Hosting: The application and databases are required encouragement throughout the course of this project.
to be hosted on the web, to provide anytime access to them.
For development, the team has used the localhost to host REFERENCES
applications. [1]. Discovery of Recipes Based on Ingredients using
c) IDEs: Since various technologies are being used, Machine Learning S. Praveen, M.V. Prithivi
specialized IDEs and tools are used for them. The team has Raj, R. Poovarasan, V. Thiruvenkadam, M. Kavinkumar
used: (International Research Journal of
I. Sublime Text and Atom for Web Development. Engineering and Technology (IRJET))
II. Jupyter Notebook for Development of Python Script [2]. Forage: Optimizing Food Use With Machine Learning
Generated Recipes Angelica Willis, Elbert
Lin, Brian Zhang REFRENCES
CONCLUSION We strive to reduce the stress, time, and complexity
A dynamic website incorporating machine learning involved in crafting a unique, healthy cooking
techniques. experience centered around using ingredients users
already own.

You might also like