Skip to content

Food Recommendation Machine Learning Model to Recommend Food to Based on Food Nutrition, User Features, and Food Features

Notifications You must be signed in to change notification settings

NuSa-Nutrition-Scan/Food-Recommendation

Repository files navigation

Food Recommendation

This repository contains code to provide food recommendations to users according to the desired calories and how many times the user wants to eat each day. This project aims to make it easier for users to choose what to eat each day, and of course the recommended meals are in accordance with the desired calorie needs.

Through our research, we found an approach to find a solution to the problem. We used the approach of building with Ranking and Retrieval Model with Query and Candidate tower model.

Overview

overview

overview

overview

Program flow is as follows :

  • We fill in the data according to the form provided.
  • Then click the "Generate Recommender Food and Top Nutrition button".
  • After the form is submitted, the model will issue a recommendation output according to the input that has been filled in previously.
  • The model will display the top 15 recommendations and food list according to the times per day.

How to Replicate Process

  1. First clone this repository using comment "git clone git@github.com:NuSa-Nutrition-Scan/Food-Recommendation.git"
  2. Install requirements needed
  3. If you want to do training data, you can access it at Recommendation System.ipynb
  4. If you want to do a deployment to run the script, you can use Demo-deploy-with-gradio.py

Directory Structure

  1. dataset
  2. This folder contains dataset that we use to training food recommendation model with csv format
  3. saved_model
  4. This folder contains weight of parameter from food recommendation model that we already train from our dataset
  5. Demo-deploy-with-gradio.py
  6. This python script contains script for using our food recommendation model with the help of gradio package
  7. Recommendation System.ipynb
  8. This is jupyter notebook that we use for training our food recommendation model
  9. .pkl file
  10. The file that using .pkl name is the pickle form of our dataset that we use for training food recommendation model
  11. food_recom_model.py
  12. This python script constain script to define our food recommendation model
  13. requirements.txt
  14. List of python package that we use to training and deploying our food recommendation model

About

Food Recommendation Machine Learning Model to Recommend Food to Based on Food Nutrition, User Features, and Food Features

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published