e-mission / e-mission-docs

Repository for docs and issues. If you need help, please file an issue here. Public conversations are better for open source projects than private email.
https://e-mission.readthedocs.io/en/latest
BSD 3-Clause "New" or "Revised" License
15 stars 34 forks source link

Use the metrics to calculate carbon footprint and calories burned #139

Open shankari opened 8 years ago

shankari commented 8 years ago

For calories burned, we need to use values from the "Compendium of Physical Activities". https://sites.google.com/site/compendiumofphysicalactivities/corrected-mets

We can calculate a default that is not personalized just based on the speed, and allow users to personalize it based on age, body mass, and sex. The raw METs and the personalization formula are available at the link above.

Recall that with d3, you can build the visualization using icons. Crazy idea - how about converting it to food instead? i.e. you biked so much this week that you can have an extra slice of chocolate cake, or something. http://well.blogs.nytimes.com/2016/07/18/an-app-to-deconstruct-your-food

For the carbon footprint calculation, we can just re-use what I did last time. https://github.com/e-mission/e-mission-server/blob/master/front/server/carbon_calc_details.html https://github.com/e-mission/e-mission-server/blob/master/emission/analysis/result/carbon.py

The range will be assuming (all IN_VEHICLE = train <-> all IN_VEHICLE = car)

Similar to the calorie counter, you can allow people to enter their make and model of car to compute their MPG. http://www.fueleconomy.gov/feg/ws/index.shtml which you can convert to GHG and use instead of the value for car.

The conversion is already in carbon.py.

shankari commented 8 years ago

@krisma this is all yours

shankari commented 8 years ago

wrt crazy idea, public source of information for calories in various food items is: https://ndb.nal.usda.gov/ndb/doc/index so you could ask the user to pick a favorite food equivalent instead of calories (like ice cream) then look up the calories for ice cream (say): https://ndb.nal.usda.gov/ndb/foods/show/202?manu=&fgcd=

and then show the calories in ice cream equivalents.

shankari commented 8 years ago

@krisma if you are doing the food equivalent, please let me know so that I can sign up for the API key. I want the API key to be registered to me for continuity.

shankari commented 8 years ago

also, @juemura, have you seen the "food equivalent" concept before? do you want to include it in the study (how many people choose the "food equivalent"? how much does it help?)

juemura commented 8 years ago

I have, though never thought much of it. Do you think this will be ready by Friday? If so, then yes. I can include a question in the pre-survey about whether they care to see calories/food equivalent info, or we can just leave it and ask about it at the end.

shankari commented 8 years ago

wrt the game, it seems like the idea of the "food equivalent" could also be thought of as a reward that you get for calories. Maybe you can earn an slice of cake by biking instead of driving?

The problem with that kind of reward based mechanism is that people tend to underestimate the calories eaten and overestimate the calories burned, so they actually end up gaining weight. So dunno if we want to go down that path.

What do people think?

shankari commented 8 years ago

Also, couple of other brain-dumped comments.

There are existing real-world goals that we can leverage. I am not sure whether we should visualize those goals or incorporate them into the game (or both).

I had some of these goals in the old carbon footprint calculator. They are also described in: https://github.com/e-mission/e-mission-server/blob/master/front/server/carbon_calc_details.html

Also for exercise, there are CDC recommendations (roughly 150 mins of walking or 75 mins of running). We might be able to find better metrics with speeds, or that correlate to calories if we look further. http://www.cdc.gov/physicalactivity/basics/index.htm

We should also plan on adding descriptions for how some of the metrics were calculated - e.g. calories burned, GHG, goals, etc.

One of the big differences between the commercial apps and us is that we have no secrets. You want to know how we calculate the metric - here it is.

And if you think that the calculation is wrong, and you have a better idea of how to do it, send us a pull request!!

shankari commented 8 years ago

The good thing about these goals is that they have some real world meanings, they are not just make believe. So for example, as a civilization, we really do need to get our GHG emissions down by 80% by 2050. The laws of physics are not amenable to argument :)

I am not sure exactly how to conceptualize that though.

juemura commented 8 years ago

You may be on to something big here. This reminds me of that conversation with David, and I think this is something that has a lot of potential. If we can provide this type of information with data and tools for people to learn more, engage, set personal and community goals, etc, that itself is a breakthrough if we can make it truly accessible and useful. It may be enough that we raise awareness and make it easy for individuals to take steps to participate in creating more sustainable transportation, but most likely that would be just the first step to the real breakthrough, which is to create a platform for individuals to start planning as a community things that have been historically thought of as individual. If you do get a class in the Fall, it may be worth spending a good amount of time exploring effective ways to create this type of communication and learning rather than focusing on engagement per se. Anyway, just random thoughts.

On Monday, July 18, 2016, shankari notifications@github.com wrote:

The good thing about these goals is that they have some real world meanings, they are not just make believe. So for example, as a civilization, we really do need to get our GHG emissions down by 80% by

  1. The laws of physics are not amenable to argument :)

I am not sure exactly how to conceptualize that though.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/e-mission/e-mission-phone/issues/80#issuecomment-233501873, or mute the thread https://github.com/notifications/unsubscribe-auth/ABJB3iV83ko7wIGH8GRLJOpL73iDIvdHks5qXCA6gaJpZM4JPNM9 .

shankari commented 8 years ago

for carbon footprint

must have:

nice to have:

shankari commented 8 years ago

MPG -> carbon footprint calculation is at: https://github.com/e-mission/e-mission-server/blob/9e5717e75d03c817f78c9699fd143416bfe67215/emission/core/wrapper/user.py#L8

shankari commented 8 years ago

If user does enter MPG, you could also add a new comparison against driving an SUV. So there would be "all drive" and "all drive (SUV)"

shankari commented 8 years ago

you could also add at the lower end, the most fuel efficient gasoline powered car. Smart For two? "all drive (super compact)"

shankari commented 8 years ago

EPA actually has a best and worst mileage estimator http://www.fueleconomy.gov/feg/best-worst.shtml

And it does have electric cars - it provides MPGe (MPG-equivalent) for them. Lots of the efficient cars are electric, as one might expect (not just because of the the no tailpipe emissions, but also because of the more efficient drivetrain).

shankari commented 8 years ago

@krisma, note that the Tesla is not the most efficient electric vehicle - the Leaf is more efficient than it :)

shankari commented 8 years ago

Initial implementation of calorie counter and carbon footprint calculator were in https://github.com/e-mission/e-mission-phone/pull/88. Leaving this open in case it is useful for #107, specially the carbon footprint calculation.

shankari commented 8 years ago

We should probably close after #107 is implemented.

fedpettinella commented 6 years ago

I think a part of this solution will be to allow users to categorise "incidents"* by method of transport. The average speed is a very good indicator but it doesn't seem to be implemented yet, at least not on the Android app that I'm using. And the app might confuse bus, train, and car if it were to use average speed so giving the user editing permissions for transport type would result in a higher degree of precision.

shankari commented 6 years ago

Or whatever you're calling a single start/stop movement of some kind. I think they're incidents.

No, they are trips. incidents are things that happen along a trip (e.g. people cutting you off, badly designed infrastructure, bumpy sidewalks, etc)

shankari commented 6 years ago

The average speed is a very good indicator but it doesn't seem to be implemented yet, at least not on the Android app that I'm using. And the app might confuse bus, train, and car if it were to use average speed so giving the user editing permissions for transport type would result in a higher degree of precision.

This is part of the cci branch (https://github.com/e-mission/e-mission-phone/pull/250, https://github.com/e-mission/e-mission-phone/pull/256), but they have not yet been merged to master.

shankari commented 6 years ago

but it doesn't seem to be implemented yet, at least not on the Android app that I'm using

There is some minimal automatic inference as part of the post-processing, but it does not distinguish between motorized modes. You should be able to see this once the pipeline starts up next week. More complex inference, distinguishing between motorized modes, is probably around next January.

Both of those can lower the burden for users of setting the mode for every trip. But it is impossible to have 100% accuracy for inference, we will retain the manual overrides and treat them as a source of ground truth.