Characterising Culinary Footprint of World Cuisines

Lavanya Gupta
Posted on Sep 26, 2018

Motivation

We all love food; and we all talk about it a lot. There are myriad of datasets on the web for food reviews (Yelp), food patterns affecting health and lifestyle, census reports/surveys on food habits across age groups and the like.

However, in this space we often miss out to dig down and investigate the main point - composition and organization of food. Why does food taste the way it tastes? What is the influence of culture on our food habits? Is there any bias introduced by the cultures? How have cuisines evolved over time - are they becoming more healthy or unhealthy?

This blog post and its corresponding R shiny app is a sincere attempt to answer these questions. The app has extended benefits that can be leveraged for companies aimed at innovative food design and tweaking recipes for better nutrition and health.

Note: All the visualizations are interactive and have been built using Plotly

Data Description

I used a private dataset that I had scarped during my undergrad. The data consists of :

  • 1.5 million dishes/recipes
  • 930 unique ingredients
  • 6 world cuisines
  • 24 regions

Analysis

Recipe Generator

Recipe Generator Dashboard

 

One of the most interesting and exciting module of my app is the recipe generatorThis features provides the user with an opportunity to discover and explore dishes from different cuisines/continents and regions and further refine the search by type of dish, ingredients to include and ingredients to exclude. 'Ingredients to exclude' is an unique feature which lets the user exclude ingredients that he/she dislikes or is allergic to.

The app takes a few seconds and presents the user with a comprehensive list of dishes from the rich culinary database that match his requirement.

Ingredients

                           Distribution of ingredients

 

The 930 unique ingredients have been classified into 20 categories namely Fruit, Vegetable, Spice, Pulses, Dairy etc. The app enables the user to see the distribution/prevalance of these ingredients over different cuisines, regions and subregions. For instance, the heatmap reveals a prefect prevelance (1.0) of Spice category in Asia and Africa. This is in sync with our intuition - i.e. - every dish in the Asian and African cuisine contains alteast one spice ingredient. Similar trends can be observed for other cuisines and ingredient categories. Salient and subtle patterns in the use of different ingredients across the globe can be observed using this heatmap.

Furthermore, the user can also explore the top n ingredients used in any cuisine, region or subregion.

Top n ingredients

 

Recipes

Distribution of recipe sizes

 

The above graph indicates that all dishes in any cuisines follow a common pattern in their sizes. Most dishes contain an optimum number of ingredients - no dishes are overly simple or overly complex! Recipe sizes are bounded with a thin tail.

The average size of a dish is about 10 ingredients.

Try it yourself

Find the link to the app here to begin your investigations!

About Author

Related Articles

Leave a Comment

No comments found.

View Posts by Categories


Our Recent Popular Posts


View Posts by Tags

#python #trainwithnycdsa 2019 airbnb Alex Baransky alumni Alumni Interview Alumni Reviews Alumni Spotlight alumni story Alumnus API Application artist aws beautiful soup Best Bootcamp Best Data Science 2019 Best Data Science Bootcamp Best Data Science Bootcamp 2020 Best Ranked Big Data Book Launch Book-Signing bootcamp Bootcamp Alumni Bootcamp Prep Bundles California Cancer Research capstone Career Career Day citibike clustering Coding Course Demo Course Report D3.js data Data Analyst data science Data Science Academy Data Science Bootcamp Data science jobs Data Science Reviews Data Scientist Data Scientist Jobs data visualization Deep Learning Demo Day Discount dplyr employer networking feature engineering Finance Financial Data Science Flask gbm Get Hired ggplot2 googleVis Hadoop higgs boson Hiring hiring partner events Hiring Partners Industry Experts Instructor Blog Instructor Interview Job Job Placement Jobs Jon Krohn JP Morgan Chase Kaggle Kickstarter lasso regression Lead Data Scienctist Lead Data Scientist leaflet linear regression Logistic Regression machine learning Maps matplotlib Medical Research Meet the team meetup Networking neural network Neural networks New Courses nlp NYC NYC Data Science nyc data science academy NYC Open Data NYCDSA NYCDSA Alumni Online Online Bootcamp Online Training Open Data painter pandas Part-time Portfolio Development prediction Prework Programming PwC python python machine learning python scrapy python web scraping python webscraping Python Workshop R R language R Programming R Shiny r studio R Visualization R Workshop R-bloggers random forest Ranking recommendation recommendation system regression Remote remote data science bootcamp Scrapy scrapy visualization seaborn Selenium sentiment analysis Shiny Shiny Dashboard Spark Special Special Summer Sports statistics streaming Student Interview Student Showcase SVM Switchup Tableau team TensorFlow Testimonial tf-idf Top Data Science Bootcamp twitter visualization web scraping Weekend Course What to expect word cloud word2vec XGBoost yelp