Best Flask open-source libraries and packages

Food_carbon_footprint

Prediction of food products' ecological footprint with Gradient Boosting Regressor, creating a Metabase dashboard and the web application (foodly.cc)
Updated 1 year ago

Prediction of food products' ecological footprint 👣

According to research by Our World in Data, food production generates more than 25% of global greenhouse gas emissions. One of the best ways to minimize our impact on the environment is to pay more attention to the food we consume and rethink the products with a high CO2 score. With this goal in mind, I have created Foodly. Foodly provides you with information about the total CO2 score per kilogram of your chosen product and suggests other products in the same food category with the lowest environmental impact. Based on the results, Foodly additionally shows you an equivalent in kilometers of driving a regular petrol car and minutes of a commercial flight.

foodly.cc is currently unavailable! ⏳ (The project is available via www.foodly.cc Please note: The website is not optimized for mobile screens, and it may take ca. 20 seconds to load the page when you try to access it for the first time during your session. This is due to using a free tier Heroku server that goes to sleep when the website was not visited recently.)

Data Sources:

Dashboard:

Workflow:

  1. Hosting MySQL Database in the cloud using AWS Relational Database Services (RDS).
  2. Reading, cleaning, and merging the data in JupyterLab.
  3. Exploring the data by writing SQL Queries and creating a dashboard using PostgreSQL and Metabase.
  4. Train-test split, feature engineering.
  5. Solving the problem with missing CO2 scores in the large data set using Gradient Boosting Regressor to predict CO2 scores based on the small data set from Kaggle and generate a more extensive database for Foodly.
  6. Creating a web interface using Flask and Bootstrap.
  7. Deploying the app to Heroku.

This project has been created as a final project during the last week of the Data Science Boot Camp at SPICED Academy.

To Do:

  • Fix bugs 🐞 Sometimes, Foodly shows the wrong results with a higher score bc there are no products with the same or lower score in this food category
  • Train the model with new features (e.g. add nutritions)
  • Deploy the dashboard to AWS
  • Front-end: fix mobile version of the website, change icons in description
  • Add some diagrams to the website (e.g. dashboard from Metabase or create horizontal sankey diagram using Tableau)