This repository will contain information about the models that used by Diet!n applicatin to predicts user's calories need per day with an approach using linear regression
- Tensorflow
- Pandas
- Numpy
- Seaborn
The setup to build and training the model :
- Jupyter Notebook
- Install latest version of libraries (Tensorflow, Pandas, Numpy, Seaborn, etc)
- Prepare dataset with .csv format
The dataset that we used comes from Kaggle's site which is a collection of calorie data to maintain weight based on age, weight, height, gender, BMI, BMR and activity level
Data processing is carried out as follows:
- Deleting the bmi_tags column and labels
- Changing the category column to numeric
- Changing the unit for the user's height column and rounding off the user's weight column
Model's Summary
Model's Metric
This is how our final model training history
Model's Testing
This is a result of calorie prediction from our model :
Final Model's Flow for Daily Calorie Needs Prediction
- User inputs personal data according to the data in the training (age, gender, weight, height, activity)
- User chooses priority or goals which is maintain, loose or gain their weight
- Model will gives prediction of calorie needs based on user priorities
- For example, if you want to be fat, then input how many kg you are fat, then predict calories based on the data entered + additional weight data
- Output that will model gives is number of calories in a day based on user priority
Pipeline for Daily Calorie Needs
- Look for datasets related to calories
- Prep-rocessing dataset
- Create model
- Training model
- Evaluate model
- Retrain model
- Deploy model