Pedestrian Safety in Greater Wilshire
Henry Kaplan
Hack for LA | Data Science
The Question
Can existing datasets help us identify the parts of the Greater Wilshire neighborhood that would most benefit from new road safety features for pedestrians and cyclists?
Sources of Data
Mapillary.com
Database API
City of LA
Traffic Accidents by Date
Link: Mapillary API Documentation
Mapillary collects street-level imagery of roads and programmatically extracts data about the road design and features. Mapillary has given us access to their database, and Hack For LA members have built tools for working with Mapillary data that we have built on.
Link: Traffic Accidents by date
The City of LA has public data on traffic incidents, including pedestrian and cyclist traffic collisions, extending back to 2010. The dataset includes the police “MO” code, giving us some information about the type of each traffic collision.
Collisions with Pedestrians and Cyclists
Gathering City Data
NC boundary source: Neighborhood Councils (Certified) | Los Angeles - Open Data Portal
The Resulting Dataset of Vehicle vs. Pedestrian & Cyclist Collisions
51k | 49k | 642 |
total records | records with an identifiable neighborhood council | records within Greater Wilshire Neighborhood Council borders |
Collisions By Neighborhood Council
We were curious how Greater Wilshire NC compares to other neighborhood councils.
In both total numbers and rates adjusted for geographic size, Greater Wilshire was far from the worst. It also did not stand out when compared to neighboring district.
Total Collisions in each Neighborhood Council District
Collisions per Square Mile
Greater Wilshire
Incidents by Time of Day
To see if more lighting could improve safety, we charted accidents by time of day.
But any effect darkness may have is dwarfed by rush hour. Accidents go down as traffic decreases at night.
So there’s no clear indication that more lighting is needed, and lighting wouldn’t target the times and places when most accidents occur.
Mapping Safety Features
Our First Attempt
We began by pulling all records from Mapillary of signs about pedestrians, crosswalks, flashing light warnings.
Categories:
We found that Mapillary’s sign database was not a good proxy for pedestrian safety features.
Mapping Crosswalks
Rather than mapping pedestrian warning signs, we next mapped crosswalks.
Using Mapillary’s separate “features” database, we looked at physical features catergorized as pedestrian lights or crosswalks.
Mapillary categories included:
object--traffic-light—pedestrians
marking--discrete--crosswalk-zebra
construction--flat--crosswalk-plain
Comparing Collision Locations to Crossing Locations
Overlaying Safety Features
With Collision History
To look for places with more collisions and fewer safety features, we created a graphic with three overlays:
🟢 A green heat map of pedestrian crossing elements.
🔴 A red heat map of recorded pedestrian and cyclist collisions.
⃝ A cluster analysis of pedestrian and cyclist collisions, to sum up the total number of collisions roughly at or near each intersection.
Clearing Unhelpful Information
To make it easier to spot patterns, we whittled away data that didn’t help us.
The Final Map
Standout area: Wilshire Blvd between Highland and Wilton
Takeaways
Possible Next Steps
Questions?
Thanks to:
Contributors:
Henry Kaplan�Derek Plemons
Sarah Nooravi
Sophia Alice
Ryan Swan
Data Science Leads
Sophia Alice & Ryan Swan
hackforla.org
Scripting and analysis notebooks available at: https://github.com/hackforla/data-science/tree/master/Pedestrian_Data