Often people find themselves in a situation when they wonder if adding a certain component to a meal will improve or worsen its taste. This problem leads to the question of whether a specific ingredient combination tastes delicious or disgusting. This research scrapes and brings together several datasets about various recipes from worldwide cuisines. Each recipe has a list of ingredients. The goal of this paper is to create a model that can evaluate correctly the tastiness of the ingredient combination. Thus, we call th idea Sentiment Analysis on Ingredients. Imagine people using ingredients to express opinions:
What would happen if you put tzatziki into your orange juice when you don't have tzaziki in your vocabulary?
We gathered data from various sources (Kaggle datasets, scraping), so that it represents as many cuisine specific ingredients as possible.
Another issue was negative examples generation (aim for balanced dataset). We created recipes with random ingredients sampled from over 8000 different types with a specific length distribution.
One lovely negative recipe worth mentioning:
cactus, nonfat buttermilk, soybean sprouts, nectarines, northern beans, banana, ton skins, black pepper, english cucumber, oyster mushrooms, tomato sauce, frogs legs, spam
This research implements four models which reach the following results:
Our research can find further use in the following areas:
- Food recommendation systems
- Recipe generation systems
- Food industry awareness
Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Distributed under the MIT License. See LICENSE
for more information.
Hristo Minkov - minkov.h@gmail.com
Zhecho Mitev - zhecho15@yahoo.com
Codebase Link: https://github.com/icaka98/IngredientSA