Skip to content

murilo-cunha/CarbonFoodPrint

Repository files navigation

MyCarbonFoodPrint Project

This project was developed as part of the Datathon'19 competition, organized by the KU Leuven. Our team was rewarded as 2nd best Master team and best Modelling team of the event.

The competition consisted of analysing one of two different data sets and developing a prototype application/business solution. The data set selected for the analysis was the EFSA Comprehensive European Food Consumption (available on the the ./food_dataset folder). The app was developed in about 24 hours, by 5 group members.

The app

The goal of this web app is allow the user to know how much CO2 is emitted given a weekly input diet, as well as analyzing the CO2 emissions of several countries given their food consumption.

The user is asked for the country they want to be compared with, their age group and the amount of serves per week they consume for a wide variety of food items. Their Carbon Food Print is calculated based on these inputs and a comparison is shown with the selected country and age group.

User Input

The image below corresponds to the comparison of the user's CO2 emissions and the average of the country he selected.

User Foodprint

The 2 images below show the user's CO2 emissions split by category and food item, respectively.

User Categories Comparison

User Food Items Comparison

The below image presents the user's CO2 emissions compared to the average of other countries.

User Countries Comparison

Below is shown a map with the different CO2 emissions per country based on dietary preferences by age group.

MyCarbonFoodPrint Map

Technology

This web app is developed in Dash, which is a Python framework for building analytical web applications without the need of Javascript.

Deployment

In order to deploy the app on the browser, first download the required packages specified inside requirements.txt into a virtual environment. Then:

# From the project repository type
python main.py

# The app will be running on http://127.0.0.1:8050/

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published