CS 513-A Knowledge
Discovery and Datamining
Project:
Mashuk Kumar Jain
20012041
Country Dish Classifier
Objectives
Unveiling the Secrets of Asian Cuisine Through Data Analysis
Discovering patterns, ingredients, and classification models to gain insights into
culinary diversity.
Explore the dataset and understand its structure.
Visualize ingredient distributions and correlations.
Implement classification models to predict cuisine.
Compare the performance of different models.
DataSet
Cuisines: Thai, Japanese, Chinese, Indian, Korean
Exploratory Data Analysis
Clean and balance the
data
Visualizing ingredient
distributions for each
cuisine.
Identify the different
attributes in the data by
plotting various plotting
tools to better
understand the data.
Exploring correlations
between key features.
Various Plotting for
better understanding of
the features
Thai Ingredients
Chinese Ingredients
Japanese Ingredients
Indian Ingredients
Data:
•The dataset used in this pair plot contains
information about Asian cuisine
recipes, including the cuisine
type, ingredients, and nutritional values.
•The selected features for the pair plot are:
• Cuisine type: The type of Asian
cuisine, e.g., Indian, Thai, Chinese, Japa
nese, Korean
• Yogurt: The amount of yogurt in the
recipe
• Onion: The amount of onion in the recipe
• Garlic: The amount of garlic in the recipe
• Ginger: The amount of ginger in the
recipe
Observations:
•The pair plot shows that there are some strong correlations between some of the
features. For example, there is a positive correlation between yogurt and Indian
cuisine, and a negative correlation between onion and Japanese cuisine.
•There are also some weaker correlations between other features. For example, there is
a weak positive correlation between garlic and Thai cuisine, and a weak negative
correlation between ginger and Chinese cuisine.
Test Train Data
Evaluation: Splitting data enables assessing how well a model generalizes to
unseen data, crucial for understanding its real-world performance.
Overfitting Prevention: The separation into training and testing sets helps
identify and mitigate overfitting, ensuring the model captures meaningful
patterns in the data.
Hyperparameter Tuning: The test set serves as an unbiased evaluation metric,
aiding in the selection of the best-performing model and optimizing
hyperparameters for effective predictions on new data.
Choosing the right Classifier
Test Set Performance: Select the model with superior performance on the test
set, evaluating metrics like accuracy and generalization to unseen data.
Complexity vs. Interpretability: Consider the trade-off between model
complexity and interpretability, opting for a balance that aligns with project
goals.
Resource Alignment: Ensure the chosen model aligns with available
computational resources and domain knowledge, experimenting with multiple
models and cross-validation results for an informed decision.
KNN: Simple and intuitive, but sensitive to feature scale and choice of
neighbors (k).
Logistic Regression: Provides probabilistic predictions, interpretable, but
assumes linear relationships.
SVM: Versatile in high-dimensional spaces, sensitive to noise.
Random Forest: Powerful ensemble method, requires attention to
hyperparameter tuning.
Results
Conclusions
In this project, we delved into the rich world of Asian and Indian cuisines, aiming
to develop a robust classification model to predict the cuisine based on a given
set of ingredients. The journey involved data cleaning, exploration, balancing,
and ultimately, training a classification model.
The models demonstrated reasonable accuracy, showcasing their potential in
predicting cuisines from ingredient lists.
Random Forest classifier was the best suited with highest accuracy.
Visualizations such as bar charts and box plots provided a clear understanding
of ingredient distributions and model performance.
In conclusion, our project successfully addressed the challenge of classifying
Asian cuisines based on ingredients.