Homework: Cataloging Google's Self-Driving Car Accidents

Let’s build our own dataset of Google self-driving accidents, even if it means reading each of their monthly reports and manually recording the accident information into a spreadsheet.

Table of contents
Deadline
Thursday, September 29 at 1:30 PM
Points
10 Homework points
Deliverables
  • Assuming this is the first assignment we do for PADJO2016, please login to your Google Drive (your Stanford or your personal Google account is fine) and create a new folder named padjo-2016

  • Set the padjo-2016 folder’s sharing settings so that read-only access is given to the user: dun@stanford.edu

  • In your padjo-2016 folder on Google Drive, create a new spreadsheet named: google-auto-accidents (exact spelling and capitalization). By default, it should be accessible to me since it’s in your padjo-2016 folder.

  • Email me at dun@stanford.edu with a URL to your padjo-2016 folder. The easiest way to get this URL is to right-click the folder to bring up the pop-up menu, then “Get a shareable link”.

Requirements
  • The google-auto-accidents spreadsheet should be named exactly that: google-auto-accidents

  • Read every PDF as included in the reports list at the bottom of this page. Some PDFs have no accidents.

  • The google-auto-accidents spreadsheet should contain a single sheet with at least these fields:

    • narrative (optional, but highly recommended)
    • year
    • month
    • day, e.g. 1, 31
    • mode, e.g. each incident should either have a mode of "auto" or "manual"
  • The google-auto-accidents spreadsheet should have at least 3 more columns of your choosing that you think would be useful when analyzing the accident data, such as the nearest city where the accident took place.

Background

Just a few days ago, a Google autonomous Lexus was reportedly involved in one of the self-driving program's worst accidents yet.

But when we read the actual article, the damage doesn't live up to the title. The Google car's door is caved in, but no injuries were reported. So if that is Google's "worst" crash, then what were its other accidents like? And if none of them are bad, then maybe we have little to fear. A Google spokesperson told 9To5Google that not only was the wreck the fault of the other driver, the vast majority of urban crashes are through human error.

OK…but now we need to know how many accidents period there have been, and then, how many were the fault of the autonomous vehicle's algorithm.

The California DMV requires drivers to report accidents. But Google goes a step further and provides a page of reports:

https://www.google.com/selfdrivingcar/reports/)

The plural of anecdote is data

Unfortunately, while there is data, it's not structured data. It's just a bunch of narrative prose:

april-2016-narratives-pdf.png

So we have to crawl through more than a dozen PDFs to read every incident. And then we have to manually enter each attribute/column value for every accident.

Heck, even before that, we have to know the data well enough to know what's worth recording.

So For our first assignment, we tackle the hardest kind of problem: extracting data manually, and counting what's important to us. That's a romantic way of describing the fun of data entry, but it will be good practice while also introducing us to the hardest concepts of data journalism.

Why can't Google just make it easy? Maybe they have and I haven't seen it. But as you get more comfortable with data, you'll understand that data isn't just born. Someone has to want to count it. Just be relieved that there are only about 30 things to count here…

More setup instructions

Assuming the battery of requirements and deliverables above is confusing, here's some pictures and more narrative.

Check out my Google Drive and how I have a folder named padjo-2016:

padjo-2016-folder.png

Inside that folder, I've made a new Google Spreadsheet named exactly google-auto-accidents:

google-auto-accidents-list.png

And here's what part of my spreadsheet looks like:

google-auto-accidents.png

You can copy the structure that I have, but keep in mind you need 3 more columns, i.e. 3 more observations about each accident.

What columns are worth recording?

If this is confusing to you, then don't feel bad: this is deliberately the hardest part of the exercise and is representative of the hardest concepts in this entire course: There is no one way to count and observe something.

Mostly, it's hard because a computer can't solve it for you. So, to solve it for yourself, consider:

  • What attributes (i.e. column values) are easy to extract and write down?
  • What attributes are most common across all the accidents?

In general, the most interesting attributes are also the hardest to quantify. As for which attributes are most relevant to the most accident events, it's worth reading a few of them to see how consistent and inconsistent the Google report writer is.

Questions to have in mind

The goal of this assignment is to not write a news story…but what if it were the requirement? Think of the kinds of things the reader would want to know about the data. Obviously, how many accidents Google has had is key, and you get that as just filling out the rows.

What about the incident with the most damage? That means creating a column in which you list the damage reported (and note that it's Google's choice on how to describe the damage). Injuries? Same thing. Plenty of readers probably want to know, "So how many orphans have Google's Skynet cars crippled this year?"

What you believe is important to answer is what you will take the time to track.

Example of articles about the Google self-driving accident data

The reports

Here are all the reports to read. There's a lot of them, so aim for efficiency.

How to be efficient

My advice is to do one thing at a time, and the most important thing you need to do is get all the narratives in one place. I started off by creating a column for "narrative". Then I switched back to the PDF, mouse-drag-highlighted the text of each narrative:

april-2016-narratives-highlight-pdf.png

Then, with the magic of Command-C, copied the text to clipboard. Switched back to my spreadsheet. Double-clicked an empty narrative cell, and hit Command-V to paste,

I took the time to record the year, month, and if possible, the day, from each incident, since it's simple enough and the narrative text may not itself contain the year and month. And since it's easy enough, I recorded the mode that the car was in during the accident:

google-auto-accidents.png

Then I started recording the year, month, and day, as separate columns, and finally, a column for the mode: e.g. auto or manual: