Please refer to our datastory for a visual walk-through of our project and its results.
As the global discussion on human carbon emissions continues, more individuals are looking for ways to reduce their carbon footprint. One major contributor to carbon emissions is the food we eat. Some foods, such as meats and animal products, are known to be far more carbon-intensive per kg of food produced than plant-based food products. This would lead the carbon-conscious consumer to think that a vegetarian or vegan diet is the best path for an eco-friendly diet.
But what if this were not the case? In Switzerland, much of the meat is produced domestically due to the favorable climate for animals, while fruits do not grow well and are often imported from countries with warmer climates. So while carbon intensities for meats may be inherently higher, the carbon cost of transport increases the carbon intensities of imported foods. Is it possible that in Switzerland, it would be more environmentally friendly to eat the opposite of general recommendations?
The goal of this project was to look at several factors that go into the carbon cost of foods consumed in Switzerland, and to attempt to analyze how an individual might adjust their diet to lower their carbon "foodprint".
This project will attempt to answer the following question:
Note that we are assuming this analysis will be utilized by a Swiss consumer, and not by the government or any authoritative figure. Therefore, the utility of this analysis comes while assuming that nothing about the given situation will change (for example, Switzerland will not make a policy to start domestically producing more bananas); rather, we are looking to give an individual consumer insight into their carbon levels.
- Among Swiss consumption, how much of the various food types (e.g. bananas, beef, oats) are domestically produced versus imported?
- How far away do these imports come from? (The farther food is imported from, generally the higher the associated carbon "cost" of transporting the food to Switzerland.)
- Among the various meats and animal products, which ones are more carbon-efficient? How do these compare to the carbon efficiency of plant-based foods?
There are two primary sets of data that we used to drive our analysis.
The first is the FAO (Food and Agriculture Organisation of the United Nations) statistics dataset, which provides us with data specific to Switzerland regarding its crop and other food production. Since the latest available year for Swiss crop production is 2017, we will use 2017 data for all of our sources.
The second is Swiss Impex, a site hosted by the Swiss Federal Customs Administration which gives detailed datasets of imports and exports for many food items, among other traded goods. Impex also provides data on the method of transport for food items, i.e. whether imported food came by air, boat, rail, or truck.
Note that size is not an issue with our datasets, so we processed all data locally (not using Spark).
There are certain mismatches between data available from FAO and Impex. In these cases, assumptions were made about how to combine the data. Please see the assumptions tab of our datastory for a detailed list of these decisions.
Several large-scale assumptions had to be made to distill this massive question into a feasible project.
As mentioned above, this analysis is a consumer insight tool. We assume that no changes are made on the level of the government or other authoritative agents.
The most notable of all assumptions is the source of carbon intensities data. Many sources explain the impossibility of estimating the carbon intensities by crop type per country, since the amount of carbon that a crop's production causes depends on a massive number of factors, and these factors vary widely even within a single country, from farm to farm. Thus, there is no data available for carbon intensities of all crops by country. To circumvent this, we will use the global average carbon intensities sourced from a large number of different studies and gathered in this article.
Certain difficulties with the datasets were navigated by excluding or combining certain categories. For more details, please see the assumptions tab of our datastory.
We have included food waste as food consumption. That is, we calculated Swiss food consumption
as domestic production
- exports
+ imports
.
We are only looking at the carbon dioxide output. CO2 is only one of many greenhouse gases. So while this gives an informative picture, it is not all-encompassing. Where possible, however, values are provided as CO2 equivalents. That is, other greenhouse gases such as methane are given as an equivalent amount of CO2 in terms of their global warming potential.
Certain minor food groups, such as oils and sweets, were excluded from the analysis since they are not necessarily "recommended" foods to consume.
Finally, animals are often fed with by-products of human food production. If a consumer were to eat fewer meat/animal products, there would potentially be additional food waste to dispose of. The impact of this waste is not incorporated in this analysis.
Some of our findings matched expectations: accounting for transport carbon costs, meats are still by far the highest carbon intensity food group. Other findings were more surprising, such as the observation that transport is often not a significant contributor to the carbon cost of food.
The most important finding of our research, however, was that this question is not so easily addressed as we had hoped in the beginning. There are an incredible number of factors that go into the carbon intensity of a food item, and so many of them are impossible to account for on such a large scale. In the end, while we can rather confidently say that a plant-based diet is indeed better for the planet for Swiss consumers, it is difficult to quantify how much a given individual's diet contributes to carbon emissions.
For a more detailed analysis of our results, please see our datastory.
src/
directory contains the project notebook and requiredscripts/
project.ipynb
is the project Jupyter notebook fileimpex_types.py
includes a dictionary for loading the Swiss-Impex dataimpex_data_manipulation.py
includes scripts for loading and manipulating the Impex dataimpex_countries.py
includes a function to load countries and continentsfao_types.py
includes objects for facilitating the loading of FAO data and merging with the Impex data typesfao_data_manipulation.py
includes scripts for loading and manipulating the FAO dataemmissions_data_manipulation.py
includes scripts for loading and manipulating the emissions dataplots.py
includes plotting functionscombine_impex_data.py
andcombine-impex-data.ipynb
were used to preprocess the data and are not required to run the project notebook.
- Data handling libraries:
- Plotting libraries:
- Misc. libraries:
Download data (< 5MB)
- Clone or fork the repository
- Download the data and add the
data/
folder to the root of the project - Install Jupyter Notebook
- Install the above-mentioned dependencies
- Run
project.ipynb
to reproduce the data analysis
- Brooke Zampell, [email protected]
- Project mastermind, data sourcing and manipulation, visualizations, commentary, data story
- Emily Jamieson, [email protected]
- Emissions data loading and manipulation, visualizations, commentary, data story
- Ulugbek Abdullaev, [email protected]
- Data story, graph visualizations
- Valentin Oliver Loftsson, [email protected]
- Data loading and manipulation (except emissions), multi-indexing, merging FAO and Impex data sets, code reviewing, visualizations, commentary
This project is licensed under the MIT License - see the LICENSE file for details.