Skip to content

SUdvisha/FoodRecommender

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

10 Commits
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿฒ FoodRecommender

๐Ÿง  Mood-Based Recipe Recommendation System
This project is a Natural Language Processing (NLP)-powered recipe recommendation system that personalizes meal suggestions based on the user's mood or craving.
It leverages TextBlob, spaCy, and TF-IDF cosine similarity to analyze user input and match it with recipes from the Food.com Recipes and Reviews dataset.


๐Ÿ“Š Dataset Overview


๐Ÿ”‘ Key Features

  • Name, AuthorId, Description, RecipeInstructions
  • Time metrics: PrepTime, CookTime, TotalTime
  • Nutritional info: Calories, FatContent, ProteinContent, CarbohydrateContent
  • Ingredients: RecipeIngredientParts
  • Ratings: AggregatedRating, ReviewCount, RecipeServings

๐Ÿงช Features

โœ… User Mood Detection

  • Identifies user mood from free-text input using:
    • TextBlob sentiment polarity
    • Keyword-based rules
  • Supported moods:
    comfort, energizing, light, indulgent, refreshing, hearty, sweet, detox, neutral

๐Ÿงน Recipe Text Processing

  • Cleans and parses Description and RecipeIngredientParts
  • Lemmatizes and filters non-alphabetic tokens using TextBlob and spaCy

๐Ÿงฎ Feature Engineering

  • Computes total cooking time (in minutes) from ISO 8601 durations
  • Derives:
    • CaloriesPerServing
    • ProteinToFatRatio
    • CarbToFatRatio
  • Classifies recipes into: Easy, Medium, or Hard complexity levels

๐Ÿท๏ธ Mood Tagging

  • Tags each recipe with a predefined MoodTag based on ingredients and description

๐Ÿ” Recommendation Engine

  • Filters recipes matching the detected mood
  • Vectorizes processed recipe text using TF-IDF
  • Computes cosine similarity to user input
  • Returns top-N recipe matches

๐Ÿ“Š Visualization

  • Mood tag distribution plot (Seaborn)
  • Ingredient word cloud (WordCloud)

๐Ÿ› ๏ธ Tech Stack

Programming Language

  • Python

Libraries & Frameworks

  • Pandas
  • NumPy
  • Matplotlib
  • Seaborn
  • TextBlob
  • spaCy
  • scikit-learn
  • WordCloud

Tools

  • Google Colab (for development)
  • Kaggle (for dataset)

Other

  • TF-IDF Vectorization
  • Cosine Similarity
  • Sentiment Analysis (TextBlob)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published