-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcost_analysis_v3.Rmd
430 lines (279 loc) · 52.8 KB
/
cost_analysis_v3.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
---
title: 'FLW scenarios: methods and preliminary results (V3.3)'
author: "Quentin D. Read"
date: "`r format(Sys.time(), '%B %d, %Y')`"
header-includes:
- \usepackage{caption}
output: pdf_document
urlcolor: blue
---
```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = TRUE)
```
# Version history
* V1 created May 15, 2019
* V2 created June 4, 2019
* V3 created June 18, 2019 (including cost curve parameters from ReFED)
+ V3.1 created June 20, 2019 (correct error in how total cost was divided up, which impacts final result)
+ V3.2 created June 25, 2019 (include initial sensitivity analysis)
+ V3.3 created June 27, 2019 (correct additional errors in all analysis, add more sensitivity results, add eutrophication)
# Overarching question
The motivating question for this study is: how cost-effective are interventions targeted at reducing food loss and waste (FLW interventions) at different stages of the food supply chain (FSC)? Here, we define cost as the annual monetary cost of implementing an intervention at the national scale, and we measure effectiveness in terms of percentage reduction in environmental impact across multiple categories. We study the effectiveness of a single representative intervention to reduce food waste at six different stages of the FSC. The geographical scope of this study is the United States, and we limit our focus to interventions that *prevent* FLW, rather than solutions that divert wasted food to other uses or improvements to food waste disposal.
# Definitions
* **food loss and waste (FLW)**: this refers to any event where food destined for human consumption is lost or wasted so that it does not pass further down the supply chain. We include on-farm losses, losses in processing, distribution, and retail, and losses in preparation and consumption in both foodservice establishments and households.
* **food supply chain (FSC)**: all industries that are involved, partially or wholly, in the production, processing, distribution, retail, and consumption of food.
* **industry**: in the idealized representation of the economy in our model, an industry is an entity that produces a single type of output, using inputs from a variety of other industries, and either sells the output to other industries or directly to consumers. A subset of industries belong to the FSC and those industries are each assigned to one of the FSC stages.
* **input-output model (I-O model)**: a matrix model that represents monetary flows among industries that make up an economic system, enabling the calculation of the total direct and indirect demand required to satisfy final consumer demand. *Environmentally extended input-output (EEIO)* models extend I-O models with a set of satellite tables containing the environmental impacts or resource use of each industry per unit output. From an EEIO model we can calculate the total direct and indirect environmental impacts resulting from satisfying a given amount of final consumer demand for a product.
* **intervention**: broadly defined, any action intended to reduce FLW. It may be mandated by policy or voluntarily adopted by stakeholders. Interventions also differ in how they work, whether it is by causing changes in individual behavior or by introducing waste-reduction technologies.
* **stage**: a group of multiple industries involved in one of the four main processes of the FSC: production, processing, distribution/retail, and consumption. We identify six stages because we divide the consumption process into the foodservice sector, institutional foodservice sector, and household sector.
# Description of models and data
In order to answer the overarching question above, we need the following:
1. A model of environmental impact of each stage of the FSC
2. Baseline rates of FLW at each stage of the FSC
3. Information on the cost of achieving a particular rate of waste reduction at each stage of the FSC (i.e., the effectiveness of FLW interventions expressed as a percentage reduction of the baseline rate of waste)
## 1. Modeling environmental impact
An environmentally extended input-output model is appropriate to model the environmental impact of the food supply chain, accounting for direct and indirect impacts.
The model consists of a matrix of coefficients representing economic flows between industries, a final demand vector representing the final industry output available to consumers after accounting intermediate uses of gross industry output by other industrial processes, and satellite tables including the direct environmental impact of producing a given amount of output by each industry.
The model assumes strictly linear relationships between input, output, and impact. For example, doubling the final demand would double the amount of inputs required to satisfy that demand, and would also double the environmental impacts generated.
The most prominent source of data used to parameterize input-output models in the United States are the Bureau of Economic Analysis' (BEA's) input-output accounts.
Benchmark input-output tables are released every 5 years, with 2012 being the most recent year where the fully processed data are available.
These tables show the relationships among 389 industries. For intervening years, the Bureau of Labor Statistics produces input-output tables at a somewhat coarser level of aggregation, with 71 industries (the so-called summary level).
The industries included in the input-output accounts are classified using a scheme based on the North American Industry Classification System ([NAICS](https://www.census.gov/eos/www/naics)). Many of the BEA industry codes correspond exactly to a single six-digit NAICS industry code, but some represent aggregations of multiple six-digit NAICS codes.
The BEA produces a "make table" and a "use table." The make table has rows representing industries and columns representing commodities. The values in the table are the dollar value of each commodity produced by each industry. If each industry only produced a single commodity, and none of them overlapped in what they produced, the make table would have positive values on the diagonal and zeroes elsewhere. In reality, there are some nonzero values off the diagonal. In the idealized input-output model, it is assumed that each industry only produces one type of commodity, and the make table is used to proportionally assign the off-diagonal values to the correct place. Variations in the make table do not have a huge impact on the model output.
The use table is much more important. It has rows representing commodities and columns representing industries. The values in the table represent the dollar value of the commodity in the row, purchased by the industry in that column. In addition, the use table has additional columns for final demand in various categories (household, government, exports, and others). We are mainly concerned with values in the use table, including both the intermediate demand and final demand. The use table is available in both producer's price and purchaser's price values. We use the producer's price.
Currently, we are using the EPA's USEEIO model (Yang et al. 2017) to estimate environmental impacts at each stage of the FSC. This model has the advantage of being very detailed in terms of environmental impact categories.
The satellite tables that the EPA researchers compiled include values across 389 industries by 21 environmental impact categories that represent the incremental increase of environmental impact in that category for each additional \$1 of output produced by that industry.
For example, to produce an additional \$1 of output by the bread industry results in a certain amount of GHG emissions, land use, N runoff, water use, etc. The satellite table includes the direct impacts of the bread industry, but if bread final demand is increased in the final model, the other indirect impacts of bread production (e.g., from the wheat farming industry) would be included.
In some cases the satellite tables include variable per-unit impacts depending on the state in which the commodity is produced, but currently we are using US-wide aggregated values.
The disadvantage of the EPA model is that it was not designed in particular to study the impacts of the FSC.
Of course the FSC is included implicitly, since the model simulates the economy of the United States, but some industries include both food and non-food components, and it is hard to isolate the FSC-specific components of impact.
In addition, I am not sure that the links between the FSC stages are directly accounted for — for example it only represents the grocery and restaurant industries as purchasing a relatively small amount of output from food processing industries, which does not seem to capture the input-output relationships correctly. Some of the output of those processing industries is ascribed directly to personal consumption expenditures (final demand), rather than being recorded as being sold by a retail establishment. This does not seem realistic because it does not seem likely that, say, the breakfast cereal industry sells most of its output directly to consumers.
However, work done at ERS (Canning et al. 2016) that was involved with creating the [Food Dollar Series](https://www.ers.usda.gov/data-products/food-dollar-series/) may be useful to tease apart the FSC impacts.
The ERS study starts with the BEA benchmark tables and uses a matrix reduction procedure to transform the ~400 by 400 matrix to a matrix with rows and columns representing 8 stages of the FSC.
The flows among the other stages are aggregated within the FSC cells. In addition, the ERS study corrects for food imports and exports in various ways.
Currently I am trying to get more information on this model from the authors so that we can replicate some of their methods, which would make our model more interpretable. In principle the matrix reduction done by ERS could be applied to the EPA model which would then combine the high number of environmental impact categories with an input-output table that explicitly represents FSC stages. If we do use the ERS methods, the results may change, reflecting the new methodology.
### Pre-processing steps required before running model
The EEIO model was originally built with the 2007 BEA benchmark input-output tables. Although the model was released in 2017, the benchmark tables for 2012 were not yet available at that time because of the long time lag required to produce the tables. Some of the NAICS classifications changed between 2007 and 2012 so I mapped the new codes to the old codes. Some needed to be split and some needed to be aggregated. This was done using the ratios of total column values from the 2007 make and use tables where necessary.
It would be possible to update the model to an even more recent year than 2012. Either the yearly input-output tables with fewer rows and columns could be disaggregated with the 2012 table as a key, or the consumer price index could be used to update the gross outputs of the 2012 table to 2018 prices then the table could be renormalized using the updated totals. If we deem necessary, I could update those values. I would not expect the fundamental results to change much if we applied those corrections.
## 2. Estimating baseline rates of FLW
There are a few different data sources to estimate the loss rates for different food commodity groups at different stages of the FSC. The FAO (Gustavsson et al. 2011, 2013) broke down the FSC into five stages and estimated the loss rates for 11 food groups at each stage (Table 1). The loss estimates come from quite a few disparate data sources, which are documented in the 2013 methods appendix. Data for North America and Oceania are pooled, but for most of those data sources, the USA was used as representative of the region.
The five stages in the FAO report are agricultural production, handling & storage, processing & packaging, distribution, and consumption. We combined handling & storage with processing & packaging to represent the processing stage, and we took the distribution stage to represent retail loss. We used the same consumption loss rate for the foodservice industry, institutional consumption, and household consumption.
The foodservice industry includes all types of restaurants, as well as food sold by the transportation, recreation, and hospitality industries. Institutional foodservice includes food provided by schools, universities, hospitals, residential facilities, community services, and government facilities.
```{r echo = FALSE, warning = FALSE}
library(knitr)
library(kableExtra)
options(knitr.kable.NA = '---')
faotab <- read.csv('~/google_drive/SESYNC Food Waste/Model_MS1/fao_percentages_extended.csv', check.names = FALSE)
kable(faotab[,-1], format = 'latex', escape = FALSE, caption = 'Loss rates (Gustavsson et al. 2013 and other sources)') %>%
column_spec(2:6, width = '2cm')
```
The FAO dataset excludes two important categories: sugar/sweeteners and beverages. Those two groups represent a fairly large portion of the USA's food system. I used data from several different sources to get the best possible estimate of loss rates for those groups (Table 1). Despite the poor quality of the numbers, excluding those groups entirely would also systematically bias results downward.
I hope to supplement the FAO values with data from USDA LAFA data which are more highly resolved and more specific to the USA. LAFA does a good job capturing loss rates in the retail and consumption stages.
However, it does a poor job of capturing losses in the processing stage. For many food groups, the loss rate in the processing stage is given as zero. The zeroes are a result of processing loss already being accounted for in some of the input data LAFA works with. In addition, LAFA does not include agricultural losses.
If we later decide to work with LAFA data and only use FAO data to fill in gaps, we will end up with higher estimates of consumption impacts because of the higher consumption waste rates in LAFA relative to FAO.
## 3. Estimating the cost of reducing FLW
This component of the required data does not have one or a few central data sources. It must be compiled from as many peer-reviewed and gray literature sources as possible. For one thing, there are relatively few data sources combining both efficacy of a particular FLW reduction with information on how much the intervention cost to implement, and at what scale.
Currently (as of June 18, 2019) the numbers used here for cost reduction are taken from the analysis presented in ReFED's "roadmap" report (ReFED 2016). From the list of interventions in the report, I selected a "typical" intervention that targets each FSC stage (Table 2).
Stage | Intervention
----------------------------|-----------------------------------------------
Production | Produce specification
Processing | Manufacturing line optimization
Retail | Improved cold chain and inventory management
Consumption: food service | Waste tracking and analytics
Consumption: institutional | Waste tracking and analytics
Consumption: households | Consumer education campaigns
Table: Typical intervention for each supply chain stage
For each intervention, I used the (rough) estimates of the cost of implementation and the magnitude of waste reduction to create a cost curve. The curve tells us how much we can reduce the baseline waste rate at a given FSC stage when a given amount of money is spent on waste reduction. Details of how these curves are constructed are given below.
# Estimating environmental impacts of the food supply chain under different levels of food loss and waste
## 1. Isolating the FSC elements of the USA's economy
I assigned each industry in the 389-by-389 BEA input-output table to either belong to the FSC or not. Some industries represent aggregations of many smaller industries, only some of which belong to the FSC.
For example, the "wholesale trade" industry aggregates food and non-food wholesale industries. I found various data sources for total revenues of the more finely resolved categories in order to assign a proportion FSC value to those aggregated industries (Table 3).
In addition, I grouped the FSC industries into FSC stages. For the current analysis I defined four stages: stage 1 (production) represents farming, or the industries within the US economy that produce raw agricultural products, stage 2 (processing) and food processing, the industries within the US economy that produce processed food items, stage 3 (retail) represents retail and distribution, and stage 4 (consumption) is divided into 3 portions: consumption in the food service industry including hotels and the tourist industry, consumption in institutions such as schools and hospitals, and household consumption.
The agriculture stage is assigned the agricultural production loss rate, the processing stage is assigned the total loss rate between handling/storage and processing/packaging, the retail stage is assigned the distribution loss rate, and all consumption stages are assigned the consumption loss rate.
```{r echo = FALSE}
fsctab <- read.csv('Q:/crossreference_tables/naics_crosswalk_final.csv')
names(fsctab)[1:6] <- c('BEA code', 'Category description', 'foodsystem', 'Stage', 'f', 'Proportion FSC')
fsctab <- subset(fsctab, foodsystem %in% c('y','partial'))[,c(1,2,4,6)]
fsctab[,4] <- round(fsctab[,4], 3)
kable(fsctab, format = 'latex', escape = FALSE, longtable = TRUE, caption = 'Food supply chain industries in the US economy') %>%
column_spec(2, width = '4cm') %>%
kable_styling(latex_options = 'repeat_header')
```
## 2. Weighting each FSC industry by composition of food commodity groups
In order to determine the baseline FLW rate for each industry, it is necessary to determine what food commodity groups comprise it.
I roughly estimated this for this preliminary work by assuming that each FSC industry is composed in equal proportions of one or more food commodity groups.
For agricultural industries (NAICS codes starting with 1), there was typically only a single FAO category of its output. Some produce multiple outputs so I used the number of employees for the subcategories from QCEW to assign proportions to the outputs.
For processing industries (NAICS codes starting with 3), if the industry's output is still assignable to a single FAO category, such as the processed dairy product and meat industries, I assigned the entire output to that category. If the processed output is more of a composite food with a lot of ingredients, such as the frozen food industry, I assigned the output proportionally to the same categories as the proportions of inputs.
For the foodservice and institutional industries (NAICS codes 4 and above), I also assumed the output is proportionally in the same categories as the inputs they receive from the food production and processing industries.
The category weights are shown in a supplemental table (too large to print directly in this document).
## 3. Computing changes in demand associated with reductions in FLW, and altering model structure to reflect those changes
Here, we assume that reducing food waste in FSC industries that produce output (the production, processing, retail, food service, and institutional industries) reduces the intermediate inputs required for those industries to produce output. Reducing food waste on the consumer side (in the food service, institutional, and household consumption phases) reduces final demand. Note that reducing food waste in the institutional and food service industries would reduce both intermediate and final demand.
For example, if the retail stage generates 10% less waste but continues to satisfy the same amount of demand, the column of input coefficients to the retail stage should decrease.
If the household consumption stage becomes 10% less wasteful, final demand by households for all food-related products should decrease.
If the food service or institutional food service stages become 10% less wasteful, that would be reflected in a decrease of both intermediate and final demand in those stages.
### Operationalizing demand changes in the model
Changing intermediate demand by an industry means multiplying all values in the corresponding column of the direct requirements matrix (a component of the EEIO model which is created by dividing the use table by its own marginal column totals) by a factor. Changing final demand for food service or institutional industries requires modifying only certain elements of the "personal consumption expenditures" column of the use table, corresponding to the output of the food service or insitutional industries. Changing final demand at the household level means modifying the rows of the "personal consumption expenditures" column that represent household purchases of agricultural products, processed food, and food from retail stores.
The change to intermediate and/or final demand amounts to achieve a given rate of FLW reduction is:
$$d_{new} = d_{old}\bigg(1 + p \Big(\frac{1 - W_{old}}{1 - W_{old}(1 - r)} - 1\Big)\bigg)$$
where $W_{old}$ is the baseline rate of waste in that industry, $r$ is the proportion by which the waste rate is reduced, and $p$ is the proportion of that industry's output that is associated with the FSC. As mentioned above $p = 1$ for many industries such as bread production but $p < 1$ for industries like warehousing and wholesaling.
If an industry within the FSC generates less FLW, its demand for intermediate inputs to satisfy a constant amount of final demand will decrease. We simulate this by reducing all values in the column of the direct requirements coefficients matrix by the appropriate proportion, representing inputs ot that industry. If households or another location where food is consumed within the FSC (food service or accommodations for example) generate less FLW, the appropriate elements of the final demand vector are reduced by the appropriate proportion. Altering the coefficients exogenously should not require any rescaling of other coefficients (Wiebe et al. 2018).
After applying the changes to the direct requirements coefficients and personal consumption expenditures values and rebuilding the model, I evaluated the model, which results in a vector of environmental impacts across 21 different categories. Below, only a few selected categories are shown in detail.
## 4. Generating FSC-wide impact estimates for different levels of FLW
Ignoring the cost or feasibility of reducing FLW for the moment, I ran the model for all 25% increments of food waste reduction (0%, 25%, 50%, 75%, and 100%) for each of the six FSC stages (production, processing, retail, and the 3 consumer stages).
For all impact categories, I calculated the environmental impact associated with satisfying all food system-related demand relative to the baseline impact.
Therefore, the percentage reductions in impact given in the figures below represent reduction of the summed impacts across the entire food supply chain from farm to fork, when we reduce food waste.
Taking 50% waste reduction per stage as a reasonable but ambitious goal, I determined the stage in which reducing waste by 50% would reduce environmental impact the most, then repeated until all 6 stages had 50% waste reduction. Results for each of five impact categories (GHG emissions, energy use, land use, water use, and eutrophication potential or N runoff) are shown in Figures 1-4.
*Note: all error bars shown in figures are derived from a semi-quantitative sensitivity analysis described below in this document.*
The resulting pattern of environmental impact is an asymptotic abatement curve because we are choosing stages with successively less importance for the given impact category.
The individual FSC stages differ significantly in terms of intensity of impact in the different categories, leading to dramatically different results in terms of which FSC stage reduces impact the most by reducing FLW.
One interesting thing to note here is that the stage where the impact of reducing FLW is greatest is not necessarily the stage that directly consumes that resource the most. It may be the indirect inputs to that stage that result in the decrease, since reducing FLW down the chain reduces demand from stages up the chain.
{ width=50% }
{ width=50% }
{ width=50% }
{ width=50% }
{ width=50% }
Across the five impact categories shown here, the top three stages in terms of impact abated when cutting waste by 50% are household consumption, food service, and food processing. This makes sense because the food service industry and food processing industry both have fairly high direct impacts, and the household consumption phase has a very high volume of demand. Also, both food service industry and household consumption are downstream on the supply chain, so reducing waste at those stages impacts demand and thus output of previous stages. The primary agricultural production stage is less influential because it is the furthest upstream of the supply chain, so reducing waste at that stage only reduces the direct impacts there and the benefits do not "propagate" upstream. Reducing waste in the retail stage yields a smaller impact reduction because, at least according to the FAO numbers we are using, the baseline waste rate is quite low and there is little room for improvement. Finally, the institutional consumption stage is relatively small in size compared to the other consumption stages, though it has the same baseline waste rate, and therefore cutting waste there has a small effect.
\newpage
### Total baseline impact of FLW
To show the magnitude of impact reduction you could get by completely eliminating food waste, here are the same graphs shown for 100% reduction (Figure 6). The stages are not labeled in this figure but they are ordered differently for each impact category.
{ width=50% }
Probably due to differing methodologies of both food waste rates and environmental impacts, these magnitudes might be somewhat different than other estimates. Our analysis shows that completely eliminating food waste from the USA food supply chain would decrease water use and energy use by the food system by roughly 20%. I believe this number is fairly realistic.
I took the difference between the baseline impact values and the 100% waste reduction scenario impact values, divided by the US population in 2012, to calculate the per capita land, water, and energy used to produce food that is ultimately wasted at some point along the FSC. Table 4 shows the per capita resource use values, comparing them to the highest and lowest estimates that we found in the literature and reproduced in our synthesis paper.
Resource | Our estimate | Range of literature values | Percent of total FSC resource use
----------------------|--------------|----------------------------|----------------------------------
Land (m<sup>2</sup>) | 1800 | 400-1100 | 16%
Water (m<sup>3</sup>) | 71 | 40-350 | 17%
Energy (GJ) | 5.5 | 6-9 | 16%
Table: Baseline FLW impacts compared with values reproduced in synthesis paper
\newpage
## 5. Sensitivity analysis
Unfortunately, there are no formal uncertainty numbers given for any of the data we are using, including the FAO waste rate data, or any of the data compiled by EPA for the USEEIO model. Yang et al. (2017) extensively assess the quality of the data they used to build the USEEIO model, but the data quality scores are essentially ranks on a reliability scale of 1-5. Those scores would be difficult to incorporate into a quantitative uncertainty analysis. Currently, I believe the best we can do is the following:
* List all possible sources of data uncertainty.
* Determine which ones we want to include in a sensitivity analysis, since it is not possible to include all of them.
* Choose distributions for the uncertain data values, centered around the value we have.
* Run a Monte Carlo sensitivity analysis, meaning to draw a sample from each of the distributions, run the model using the sampled values, and repeat many times.
* Present the results of the sensitivity analysis with the two caveats that it only partially accounts for uncertainty and that the magnitudes of the uncertainty of the different outputs are only relative, not absolute, because we don't really know the true distributions for the underlying data.
### Sources of data uncertainty, and which will be included in sensitivity analysis
*Uncertainty in BEA input-output data.* The make and use tables from BEA consist of a mixture of measured and modeled values. Unfortunately the methods are fairly opaque so no quantitative uncertainty is available. It would be prohibitively complicated to account for this uncertainty so we are ignoring it.
*Uncertainty in EPA environmental impact data.* As mentioned above, the authors of the USEEIO model documented the quality/reliability of all their environmental data. Again, no quantitative uncertainty is available. The underlying data are fairly complex and it would be very difficult to account for its uncertainty. For now we are ignoring it as well.
*Uncertainty in FAO baseline waste rate data.* The FAO waste rate data come from many different sources without explicit uncertainty given. We are accounting for this uncertainty in the sensitivity analysis.
*Uncertainty in weighting parameters.* There are two types of weights being used. One is the proportion of each industry that is assigned to the FSC, and the other is the weight of each of the 13 food categories in each industry. These weights are derived from a variety of sources as described elsewhere in this document. It is likely that the food-nonfood proportion in each industry is much more important for the results than the relative proportions of food within each industry. Therefore, we are accounting for the uncertainty in the food-nonfood proportion weights but not the relative food category proportion weights.
### Distributions around parameter values
Both the FAO baseline waste rate data and the food-nonfood proportion data are proportions bounded between 0 and 1. A sensible distribution to use in this case is the beta distribution which is defined on the interval [0, 1]. The beta distribution has two parameters. We can write the beta distribution this way, which will have its mode at $p$. The value of $f$ determines the width of the peak; the higher $f$, the narrower the peak.
$$\mathrm{Beta}(fp, f(1-p))$$
I chose the value $f = 100$ for all distributions. Figure 6 shows beta distributions with $f = 100$ and modes of 0.1, 0.2, 0.4, 0.5, 0.6, 0.8, and 0.9. Modes close to 0 or 1 have narrower distributions than modes close to 0.5, which makes sense.
```{r echo = FALSE, message = FALSE, fig.cap = 'Beta distributions with a variety of modes', fig.height = 3, fig.width = 4}
library(ggplot2)
cols <- RColorBrewer::brewer.pal(8, 'Set3')[-2]
ps <- c(10,20,40,50,60,80,90)
distplot <- ggplot(data.frame(x=c(0,1)), aes(x)) +
scale_y_continuous(limits=c(0,15), expand=c(0,0)) +
theme_bw()
for (i in 1:length(ps)) distplot <- distplot + stat_function(fun = dbeta, args=list(shape1=ps[i], shape2=100-ps[i]), color = cols[i], size = 1)
distplot
```
### Monte Carlo sensitivity analysis
I ran a Monte Carlo sensitivity analysis for the portion of the results that ignore cost and just assess the relative changes to environmental impact that result from reducing waste rates at different stages of the FSC. I created 100 replicate parameter sets by taking a random draw from the beta distribution for each parameter value, for both the FAO-derived waste rates and the food-nonfood proportions. I ran the entire analysis for each of the 100 replicates. The error bars shown on the figures are the 2.5% and 97.5% quantiles of the outcomes from those replicates.
In addition to showing how much the results vary in magnitude when varying the input values using the chosen distributions, I also calculated how often the priority ranking swapped orders among the replicates.
\newpage
Table 5 shows the results of the sensitivity analysis, showing the mean priority ranking of the stages for each impact category, and the percentage of draws where each stage did not change its position. A high percentage means that the relative priority is not very sensitive to variation in the parameters. The mean ranks are not far from 1-6 and the percentages are all high indicating that the outcome is not too sensitive to the level of uncertainty that we set *a priori*.
```{r echo = FALSE, message = FALSE}
meanrank_allcats <- read.csv('Q:/scenario_results/sensitivity_grid_summarytable.csv')
meanrank_allcats$proportion_not_swapped <- paste0(meanrank_allcats$proportion_not_swapped, '%')
names(meanrank_allcats) <- c('Category', 'Stage', 'Mean Rank', 'Percent Not Swapped')
kable(meanrank_allcats, escape = TRUE, caption = 'Sensitivity analysis of waste reduction scenarios') %>%
column_spec(4, width = '2cm')
```
**Important note**: All sensitivity results are presented with the limitation that the uncertainty distributions are unknown. Therefore the error bars only show how much the outcome would vary if the input parameters vary within a fairly plausible range, not a true uncertainty of the outcome.
\newpage
# Optimal allocation of funds to reduce food loss and waste to minimize environmental impacts
## Form of waste abatement versus cost curves for each stage
As mentioned above, I used data from the ReFED report (ReFED 2016) to create curves for each stage. We are using the following equation to get the waste rate $W$ as a function of cost $C$ (amount invested in waste reduction). It is a curve that has a value of $W_0$ when $C = 0$, starts out decreasing, and then flattens out as cost increases, to a lower asymptote of $W_u$. The shape of the curve captures the diminishing returns when we invest progressively more money in a given strategy to reduce food waste. We achieve the most efficient reductions first then reach a level at which the intervention cannot be effective any more.
$$ W(C) = \frac{2(W_0 - W_u)}{e^{BC} + 1} + W_u $$
Here, $W_{0}$ is the baseline waste rate for the industry (rate of food waste if $C = 0$) and $W_{u}$ is the unavoidable waste rate for the industry (the lower asymptote of the abatement curve, or the amount that no FLW reduction efforts can eliminate). $B$ is a parameter associated with each industry. As $B$ increases, the slope of the abatement curve becomes steeper, indicating that there is a faster rate of return on investment in FLW reduction.
It would be possible to add another parameter to represent initial startup costs (a Z-shaped decreasing logistic function), but we do not have the data to address that, so we are assuming that the fastest rate of waste reduction (steepest part of the curve) is at $C = 0$.
## Using intervention cost and effectiveness estimates to find values for the parameters
The waste abatement cost curve has three parameters, $W_0$, $W_u$, and $B$. Here I describe the information I derived from the ReFED report and how I used it to find values for the parameters.
### Values taken from report
Most of the numbers we need to create the curves are provided for each intervention by ReFED. They are mostly produced by expert elicitation and will need to be taken with a big grain of salt. Also, we will need to test any and all assumptions with sensitivity analysis.
* $W_{0}$: Baseline waste rates for each of the industries, expressed as a percentage. **Source: FAO data.**
* $N$: Net waste in the entire food supply chain stage targeted by the intervention, expressed as a quantity in millions of tons. **Source: ReFED.**
* $A$: Addressable waste in the food supply chain stage, that could potentially be reduced if intervention is maximally effective, expressed as a quantity in millions of tons. **Source: ReFED.**
* $D$: Diversion potential of the intervention, or waste averted if the intervention is as effective as expected. **Source: ReFED.**
* $C_{1}$: Cost of reducing waste to the diversion potential level. This cost value is the total for each stage, so for each industry, the cost value is multiplied by the proportion output within that stage represented by the industry. **Source: ReFED.**
Table 6 shows the values derived from the report for net waste $N$, addressable waste $A$, diversion potential $D$, and cost of reducing waste to the diversion potential level $C_1$.
```{r echo = FALSE, message = FALSE}
suppressMessages(library(dplyr))
refedtab <- read.csv('Q:/crossreference_tables/refed_testvalues.csv')
names(refedtab) <- c('Intervention', 'Stage', 'Net waste (MT)', 'Addressable waste (MT)', 'Diversion potential (MT)', 'Cost (million $)')
refedtab <- refedtab %>% mutate_if(is.numeric, signif, digits = 2) # all to 3 sig figs.
kable(refedtab, caption = 'Intervention costs and effectiveness') %>%
column_spec(1, width = '3cm') %>%
column_spec(3:6, width = '2cm')
```
\newpage
### Calculation of parameters
We convert the unavoidable waste from a quantity in tons to a percentage which we call $W_{u}$:
$$ W_u = W_0(1 - \frac{A}{N})$$
We convert the expected diverted waste from a quantity in tons to a percentage which we call $W_{1}$:
$$ W_1 = W_0(1 - \frac{D}{N})$$
This gives us all the information shown in Figure 7.

Since we know the value of $W$ at $C = 0$, one point on the curve $(C_1, W_1)$, and the lower asymptote $W_u$, we can find the value of $B$ and put a curve through the points as shown in Figure 8. We find $B$ by evaluating the equation for the cost curve, $W(C) = \frac{2(W_0 - W_u)}{e^{bC} + 1} + W_u$, at $(C_1, W_1)$ and solving for $B$:
$$ B = \frac{1}{C_1} \log \bigg( 2\big( \frac{W_0 - W_u}{W_1 - W_u} \big) - 1 \bigg) $$

It would be desirable to have more data points for each intervention to get a better fit and also to estimate parameter uncertainty stemming from the data.
Separate values for each parameter are calculated for each of the many industries within each FSC stage. Figure 9 shows a representative cost curve for one industry from each food supply chain stage.
{ width=50% }
Figure 8 shows that for some of the stages, the waste rate is reduced after a small initial investment, but others do not see much reduction until a large amount of money has been invested in waste reduction. Clearly this has a significant influence on the result of the optimization (see below). In addition, waste reduction has a very different maximal effectiveness in the different stages, which will also determine prioritization of funding.
## Optimization procedure
I ran an optimization with an objective function representing the total environmental impact as a function of the vector $C = (C_1, C_2, C_3, C_4, C_5, C_6)$ where the six values are the amounts of money invested in FLW reduction at each of the supply chain stages. Each time the objective function is evaluated, the following happens:
1. The amount of money invested in each stage (6 stages) is divided proportionately by industry size among the industries making up each stage (around 10-30 industries per stage).
2. The waste rate for each individual industry is calculated using the cost curve. Each individual industry has its own values for $W_0$, $W_u$, and $B$, and the $C$ value used for the individual industry is the proportionally sized fraction of the total $C_i$ invested in that stage, as calculated in step 1.
3. The final and intermediate demand changes associated with the reduced waste rates for each industry are calculated.
4. The EEIO model is rebuilt with the new final and intermediate demands.
5. The EEIO model is evaluated and the environmental impact value for the chosen impact category across the entire food system is extracted.
The optimization is subject to the constraint that $\sum\limits_{i=1}^6 C_i = C_{total}$, representing the total amount of money available for FLW reduction.
I ran a separate optimization for four different values of $C_{total}$: 500, 1000, 2000, and 5000, which would be divided among the 6 FSC stages and then equally among the industries making up each stage. I corrected for industries that are only partially involved in the food supply chain (for example, food system industries account for about 12% of inputs to the amusement park industry. Making the simplifying assumption that this corresponds to 12% of final demand for the amusement park industry being food purchases, the final demand modification for the industry only modifies 12% of its total final demand.) For each value of $C_{total}$, I optimized for minimizing GHG emissions, land use, water use, and energy use, for a total of 16 optimizations.
## Results of optimization
Taking GHG emissions as an example, the optimal waste rate across all stages that is achieved with the cost allocation that minimizes emissions shows interesting patterns as total available FLW reduction funds change (Figure 10, top right-hand panel). For lower total investment in FLW reduction, the lowest total GHG emissions of the food system is achieved by investing most in FLW reduction at the food service and agricultural production stages, later followed by household and institutional food service stages, which are relatively more expensive to implement. The processing and retail stages are modeled as being cheap to implement but with relatively low waste reduction, so it is optimal to invest relatively less in FLW reduction in those stages.

The optimal solution for different values of $C_{total}$ is different depending on what environmental impact category we aim to minimize, particularly at lower values of $C_{total}$. For example, if land use is what we want to minimize, and we have $500 million to invest, waste reduction should target the agricultural production stage./ At higher levels of investment, household consumption overtakes agricultural production, according to this analysis.
### Low overall impact reduction values
Unfortunately, the absolute amount of environmental impact reduction estimated for even quite high levels of investment in FLW reduction is extremely anemic, according to this analysis. This is a result of the fairly low maximum waste reduction rate that I estimated from ReFED's numbers, as well as the fairly high cost of getting to that level. Figure 11 shows the reduction in the impact category that is targeted for minimization, relative to the baseline. Most of the reduction is achieved after investing only $500 million, with minimal additional reduction after that. The environmental impacts of the food system are less than 1% smaller in magnitude than the baseline. From this, we can either conclude that there is little realistic potential for reducing environmental impact of the food system by reducing food waste, or the weak result may be due mostly to overly pessimistic abatement cost curves. Increasing the realism of the cost curves will be a focus of work in the near future.
{ width=50% }
\newpage
## Sensitivity analysis of optimization
The results of the optimization analysis may be sensitive to uncertainty in all the parameter values mentioned in the first sensitivity analysis above, but also to uncertainty in the parameters of the cost curves. Therefore we need to add an additional layer to the sensitivity analysis of our optimization analysis.
### Uncertainty in cost curve parameters
In addition to the baseline waste rate parameter $W_0$ which is ultimately derived from FAO data, there are four other values currently derived from ReFED data that we are also incorporating into the sensitivity analysis. They are the three total waste quantity values for each intervention: net waste $N$, addressable waste $A$, diversion potential waste $D$, and $C_1$, the cost of reducing waste by the diversion potential amount.
All four are given triangular distributions with upper and lower bounds equal to $[\frac{1}{2}x, \frac{3}{2}x]$.
With each iteration, the parameters are used to calculate $W_u$, the unavoidable waste rate, $W_1$, the intermediate waste rate, and $B$, the cost curve slope parameter.
Because it is necessary that $N > A > D$ so that $W_0 > W_1 > W_u$, we used truncated triangular distributions to ensure that the inequality holds for each sample draw.
### Monte Carlo sensitivity analysis
As we did for the cost-free reduction scenarios above, we took 100 draws from the distributions for baseline waste rate, food-nonfood proportion for each industry, and all the cost curve parameter values derived from ReFED. We ran the entire set of optimizations 100 times with each of the replicate parameter sets. The error bars on the optimization figures are the 2.5% and 97.5% quantiles from the replicated optimization results.
### Results of sensitivity analysis
Currently, the sensitivity analysis is having problems and I am unable to get a good result from it. The issue is that quite a few of the 95% quantile intervals from the sensitivity analysis do not overlap with the point estimate. This could either be because of mistakes in the code or because the results are extremely sensitive to the parameter values. I will continue to work on this but for the moment I cannot really show the results from the sensitivity analysis.
\newpage
# Discussion and interpretation
These are current ideas for the general take-home messages or stories from each part of the analysis.
The first part of the analysis, in which we calculate the total impact of the food system on a variety of different environmental categories when food loss and waste decrease by 50% or 100% in one or more FSC stages has two main findings. First, it gives us an estimate of the maximum benefit we could possibly get if the U.S. relentlessly pursues FLW reduction as a policy goal. I believe that the result of approximately 20% reduction of all impact categories is fairly realistic. The second finding is that it identifies which stages have the highest possible impact reductions, namely food processing, foodservice, and household consumption. The primary agricultural production, institutional food service, and retail stages have little effect on total impact even when their waste is drastically reduced. This is a useful finding that can help target FLW reduction efforts. It emphasizes the major role of the food service industry. These results also somewhat provide a counterpoint to the consistent narrative that most food waste in developed nations occurs at the home. If our metric is environmental impact of waste, rather than sheer volume of waste, household food waste remains a big contributor but is rarely the worst offender. This could be used to send the message that hectoring individuals for their wasteful behavior is not necessarily the most effective means of reducing the food system's environmental burden. Finally, while the environmental benefit of FLW reduction could be high, it is bounded at ~20% of the food system's current impact. Clearly, FLW reduction is not a cure-all for the environmental ills inflicted by the food system in the United States. Other "harder" strategies, potentially including diet shifts or lifestyle changes, will need to accompany the "easy" fix of FLW reduction.
The second part of the analysis is somewhat more questionable in terms of the absolute value of the result, since the cost data for the interventions may not be of great quality. However, if we assume that we are at least somewhere in the right order of magnitude for what waste reductions can be achieved by implementing a single FLW reduction intervention, our results show that the ceiling of effectiveness of a single intervention is not too high. This makes sense because even within a single stage of the FSC, food loss and waste has a multitude of causes. Each single intervention usually only addresses one cause, so it can only address the (often small) proportion of the waste that is due to that cause. Therefore our take-home message could be that since we get diminishing returns from each single intervention, it will be necessary to take a "many-pronged" approach both within and among stages. If we can trust the prioritization shown in Figure 10, we can say more specifically that it is likely that investing in reduction in the agricultural production and food service stages will give a reasonably good return on investment. Contrastingly, consumer-facing campaigns to reduce household waste are quite expensive relative to other interventions and therefore might not be the best investment. The waste rates at the processing and retail stages is low enough that investing in FLW reduction at those stages does not promise to be cost-effective.
\newpage
# Code pipeline used for analysis
This is documentation of the scripts on the [FWE GitHub repository](https://github.com/qdread/fwe) that are needed to do this analysis. The underlying data is on the SESYNC server at `/nfs/qread-data/`.
* `create_2012_bea.r`: This script maps the 2007 industry codes from the BEA input-output benchmark table to the 2012 codes and retotals the make and use tables for 2012. In other words it creates 2012 make-use tables with 2007's industry classification. This calls some functions in `reaggregate_mat.r`.
* `partial_sector_proportions.r`, `susb_by_foodcategory.r`, `qcew_by_foodcategory.r`: These scripts find the proportion of demand for industries that are related to the food supply chain, for those industries that are only partially FSC. There are different data sources used for different industries.
* `load_scenario_data.r`: This script loads the baseline food waste rate data (currently sourced from FAO) and a table that contains the data for each of the BEA/NAICS industries including which FSC stage they are classified in, proportion of food outputs for industries that are only partially in the FSC, and what FAO categories each industry maps to. Later this should include which LAFA categories each industry maps to. This script also sources the R script to build the USEEIO model with modified intermediate and final demand, `USEEIO2012_buildfunction.R`, and the Python script that evaluates the model `eeio_lcia.py`, which is called from within R. It also loads the formatted make and use tables created in the previous script. Finally, it defines a function which accepts a vector of waste reduction values across all industries as input, modifies the make and use tables accordingly, builds the USEEIO model, runs it also with modified final demand, and returns the LCIA impact values as output.
* `sixstage_scenario.r`: This script runs the model for all 25% waste reduction increments, and it runs the nonlinear optimization using the R package `Rsolnp` using the fake cost curves shown above.
* `grid_sensitivity_parallel.r`: This script runs the sensitivity analysis for the 50% and 100% waste reductions.
* `opt_sensitivity_parallel.r`: This script runs the sensitivity analysis for the optimization. Because it takes so long to run, it is split among multiple tasks to run on the cluster.
* `opt_sensitivity_processoutput.r`: This script pulls values from the optimization sensitivity analysis results and writes them to CSVs.
* `sixstage_figs.r`, `sixstage_sens_figs.r`: These scripts include code to make all the figures shown here. The second script adds error bars from the sensitivity analysis.
# Works cited
Canning, P., Rehkamp, S., Waters, A. & Etemadnia, H. (2016). The Role of Fossil Fuels in the U.S. Food System and the American Diet (Economic Research Report No. 224). USDA Economic Research Service.
Gustavsson, J., Cederberg, C. & Sonesson, U. (2011). Global food losses and food waste: extent, causes and prevention; study conducted for the International Congress Save Food! at Interpack 2011, [16 - 17 May], Düsseldorf, Germany. Food and Agriculture Organization of the United Nations, Rome.
Gustavsson, J., Cederberg, C. & Sonesson, U. (2013). The methodology of the FAO study: “Global Food Losses and Food Waste - extent, causes and prevention”- FAO, 201, 70.
Rethink Food Waste Through Economics and Data (ReFED). (2016). A roadmap to reduce U.S. food waste by 20 percent.
Wiebe, K.S., Bjelle, E.L., Többen, J. & Wood, R. (2018). Implementing exogenous scenarios in a global MRIO model for the estimation of future environmental footprints. Economic Structures, 7, 20.
Yang, Y., Ingwersen, W.W., Hawkins, T.R., Srocka, M. & Meyer, D.E. (2017). USEEIO: A new and transparent United States environmentally-extended input-output model. Journal of Cleaner Production, 158, 308–318.