Data Study on the Culinary Footprint of World Cuisines

Posted on Sep 26, 2018
The skills the author demoed here can be learned through taking Data Science with Machine Learning bootcamp with NYC Data Science Academy.


We all love food; and we all talk about it a lot. There are myriad of data sets 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

Data Analysis

Recipe Generator

Data Study on the Culinary Footprint of World Cuisines

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.


Data Study on the Culinary Footprint of World Cuisines

                           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.

Data Study on the Culinary Footprint of World Cuisines

Top n ingredients



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 2020 Revenue 3-points agriculture air quality airbnb airline alcohol Alex Baransky algorithm alumni Alumni Interview Alumni Reviews Alumni Spotlight alumni story Alumnus ames dataset ames housing dataset apartment rent API Application artist aws bank loans 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 boston safety Bundles cake recipe California Cancer Research capstone car price Career Career Day citibike classic cars classpass clustering Coding Course Demo Course Report covid 19 credit credit card crime frequency crops D3.js data data analysis Data Analyst data analytics data for tripadvisor reviews data science Data Science Academy Data Science Bootcamp Data science jobs Data Science Reviews Data Scientist Data Scientist Jobs data visualization database Deep Learning Demo Day Discount disney dplyr drug data e-commerce economy employee employee burnout employer networking environment feature engineering Finance Financial Data Science fitness studio Flask flight delay gbm Get Hired ggplot2 googleVis H20 Hadoop hallmark holiday movie happiness healthcare frauds higgs boson Hiring hiring partner events Hiring Partners hotels housing housing data housing predictions housing price hy-vee Income Industry Experts Injuries Instructor Blog Instructor Interview insurance italki Job Job Placement Jobs Jon Krohn JP Morgan Chase Kaggle Kickstarter las vegas airport lasso regression Lead Data Scienctist Lead Data Scientist leaflet league linear regression Logistic Regression machine learning Maps market matplotlib Medical Research Meet the team meetup methal health miami beach movie music Napoli NBA netflix Networking neural network Neural networks New Courses NHL nlp NYC NYC Data Science nyc data science academy NYC Open Data nyc property NYCDSA NYCDSA Alumni Online Online Bootcamp Online Training Open Data painter pandas Part-time performance phoenix pollutants Portfolio Development precision measurement prediction Prework Programming public safety PwC python Python Data Analysis python machine learning python scrapy python web scraping python webscraping Python Workshop R R Data Analysis 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 seafood type Selenium sentiment analysis sentiment classification Shiny Shiny Dashboard Spark Special Special Summer Sports statistics streaming Student Interview Student Showcase SVM Switchup Tableau teachers team team performance TensorFlow Testimonial tf-idf Top Data Science Bootcamp Top manufacturing companies Transfers tweets twitter videos visualization wallstreet wallstreetbets web scraping Weekend Course What to expect whiskey whiskeyadvocate wildfire word cloud word2vec XGBoost yelp youtube trending ZORI