Skip to content

An intelligent chatbot for food and nutrition analysis, powered by machine learning and natural language processing. It predicts meal types, analyzes nutrition, and provides food suggestions based on user queries.

License

Notifications You must be signed in to change notification settings

LoveDoLove-School-Projects/FoodNutritionChatbot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Contributors Forks Stargazers Issues project_license


Logo

Smart Food Nutrition Chatbot

An intelligent chatbot for food and nutrition analysis, powered by machine learning and natural language processing. It predicts meal types, analyzes nutrition, and provides food suggestions based on user queries.
Explore the docs »

View Demo · Report Bug · Request Feature

Table of Contents
  1. About The Project
  2. Getting Started
  3. Usage
  4. Contributing
  5. License
  6. Contact
  7. Acknowledgments

About The Project

Smart Food Nutrition Chatbot is a machine learning-based conversational assistant that helps users analyze food nutrition, predict meal types, and get healthy food suggestions. It leverages deep learning (TensorFlow/Keras), NLP, and a curated food dataset to provide accurate and interactive responses.

Key features:

  • Predicts meal type (Low/Medium/High nutrition density) from food queries
  • Analyzes nutrition facts and provides per-serving breakdowns
  • Suggests similar foods and handles fuzzy/semantic queries
  • Supports autocorrection, synonym matching, and user-friendly CLI

(back to top)

Built With

(back to top)

Getting Started

To get a local copy up and running, follow these steps.

Prerequisites

  • Python 3.9+
  • pip
  • (Optional) conda for environment management

Installation

  1. Clone the repository:
    git clone https://github.com/LoveDoLove-School-Projects/FoodNutritionChatbot.git
    cd FoodNutritionChatbot
  2. (Recommended) Create and activate a virtual environment:
    conda create --name foodnutri python=3.9
    conda activate foodnutri
    # or
    python -m venv venv
    venv\Scripts\activate  # Windows
    source venv/bin/activate  # Linux/Mac
  3. Install dependencies:
    pip install tensorflow-cpu==2.10 tensorflow-directml-plugin numpy<2.0 pandas joblib scikit-learn fuzzywuzzy nltk matplotlib seaborn tabulate rouge_score pyyaml pulp ipywidgets python-Levenshtein autocorrect rich
  4. Download NLTK data:
    import nltk
    nltk.download('wordnet')
    nltk.download('omw-1.4')
  5. (Optional) For GPU support, ensure compatible hardware and drivers.

(back to top)

Usage

Run the chatbot CLI:

python Sources/ML-Based-ChatBot.ipynb
# or convert to .py and run:
# jupyter nbconvert --to script Sources/ML-Based-ChatBot.ipynb
# python Sources/ML-Based-ChatBot.py

Interact with the chatbot in your terminal. Example queries:

  • "How many calories in 100g chicken breast?"
  • "Suggest foods similar to broccoli."
  • "Is oatmeal a high nutrition meal?"

The chatbot will analyze, predict, and respond with nutrition facts, meal type, and suggestions.

(back to top)

Contributing

Contributions are welcome! Please fork the repo and submit a pull request, or open an issue for suggestions and bug reports.

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

(back to top)

Top contributors:

contrib.rocks image

License

Distributed under the MIT License. See LICENSE for more information.

(back to top)

Contact

LoveDoLove - @LoveDoLove

Project Link: https://github.com/LoveDoLove-School-Projects/FoodNutritionChatbot

(back to top)

Acknowledgments

(back to top)

About

An intelligent chatbot for food and nutrition analysis, powered by machine learning and natural language processing. It predicts meal types, analyzes nutrition, and provides food suggestions based on user queries.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published