Skip to content

Smart decentralized AI based diet managment system.

License

Notifications You must be signed in to change notification settings

GaganMishra305/InDiet

Repository files navigation

Getting Started

Create a project using this example:

npx thirdweb create --template next-typescript-starter

You can start editing the page by modifying pages/index.tsx. The page auto-updates as you edit the file.

On pages/_app.tsx, you'll find our ThirdwebProvider wrapping your app, this is necessary for our hooks and UI Components to work.

Environment Variables

To run this project, you will need to add environment variables. Check the .env.example file for all the environment variables required and add it to .env.local file or set them up on your hosting provider.

Deploy to IPFS

Deploy a copy of your application to IPFS using the following command:

yarn deploy

Learn More

To learn more about thirdweb and Next.js, take a look at the following resources:

You can check out the thirdweb GitHub organization - your feedback and contributions are welcome!

Join our Discord!

For any questions, suggestions, join our discord at https://discord.gg/thirdweb.

About InDiet

InDiet is a platform to solve the Obesity Problems faced Accross the World. InDiet uses a fun, interactive and gamified platform to reduce obesity and create awareness about Nutritional Intake necessary for the Human Body.

Procedure

1> The User captures a pic of their Meal and uploads the picture onto the Website where a Model identifies their meal and assigns a food score. After getting this food score, the user can compete among a set of other users worldwide, the User with the highest food score for a set of time period wins the Challenge and takes home the Trophy. The User can win some NFT and trade it for cryptocurrency that is directly added to the user's metamask address.

2> The Other part of this process is thay the user can trade Non Fungible Tokens(NFT's) of various Fruits and Vegetables. The NFT's are segregated into Common and Premium NFT's

3> The Premium Feature, Personalized Diet Plans, uses a Regression Model that will give you the Best Diet Plan for upcoming week depending upon the amount of calories, proteins you need to consume based upon your dietary conditions.

Model Explained

1> Food Detection Model:

--> Dataset Used: Food 101
    Found on Kaggle
    Contains 25000 images distributed accross 101 Classes.
    Link for the dataset: https://www.kaggle.com/datasets/dansbecker/food-101

--> The Model is trained using CNN. This model gives food name from image.

2> Nutrients Detection Model:

--> Uses "https://api.nal.usda.gov/fdc/v1/foods/search" for getting information about food nutrients(carbs, proteins, sugar, fiber, calories) from food name.

3> Food score model:

--> Normalizes food nutrients and gives a food score based of the constituents of a balanced diet. (

Carbs: 45-65%, Proteins: 10-35%, Fats: 20-35%, Sugar: <10%, Fiber: 25-38g, Calories: 2000)

--> The link to the Model: https://drive.google.com/file/d/1f37-QP8JQEvuicTQXUDIEi7eJxQG3GME/view?usp=sharing

4> The above three models combine to give a complex model that gives the food score from just the image of over 100 differnet food classes.

5> Diet Plan Model:

--> Dataset Used: Nutrition Dataset

--> Model is Trained using Pulp to Give Diet for the entire week based on the amount of Carbs, Proteins, etc the user wants to consume.

--> The link to the Model: https://colab.research.google.com/drive/1Kq0ipe3UCjZv1K5bkpIwAopt8Dca_UU5?usp=sharing

Web 3

We have used ThirdWeb to create codeless contracts. Many NFT's have been minted and added to the application which the user can trade.

Front End

NextJS has been used to create Front End of this application.

Back End

Flask has been used to create Back end of this application.

About

Smart decentralized AI based diet managment system.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •