Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Safety-enabled apps: using Boston crime data to make Pokemon Go a safer space

253 views

Published on

Governments are increasingly making their data available freely in machine-readable format, which is great. A drawback, however, is that government data is organized and produced in a way that’s most useful to government operations, and it's not offered in an app-developer or data scientist friendly way. I talk about a project to harvest crime data daily and make it available for web apps and analytics as part of a larger effort to deliver ready-to-use open data sets on the cloud. The importance of adding contextual data to apps -- whether it be crime or weather or something else -- is underscored by recent news that thieves have been "luring" Pokemon Go players into secluded areas.

Published in: Technology
  • Be the first to comment

  • Be the first to like this

Safety-enabled apps: using Boston crime data to make Pokemon Go a safer space

  1. 1. IBM Cloud Data Services open crime data making pokémon go a safer space Raj Singh, PhD Developer Advocate: Geo | Open Data rrsingh@us.ibm.com http://ibm.biz/rajrsingh twitter: @rajrsingh
  2. 2. @rajrsingh IBM Cloud Data Services Read my newsletter on open data! http://opendatamag.rajsingh.org Some background Developer Advocate, Geo + open data IBM Analytics MCP, Ph.D. Urban Studies & Planning
  3. 3. @rajrsingh IBM Cloud Data Services Agenda • Finding and harvesting open crime data • Data wrangling & schema reconciliation • Products • data service • safety app
  4. 4. @rajrsingh IBM Cloud Data Services Architecture
  5. 5. @rajrsingh IBM Cloud Data Services Harvesting Crime Data
  6. 6. @rajrsingh IBM Cloud Data Services Open data is on the rise open data? Technology maturity curve
  7. 7. @rajrsingh IBM Cloud Data Services Where to find data https://data.cityofboston.gov/Public-Safety/Crime-Incident-Reports-August-2015-To-Date-Source-/fqn4-4qap
  8. 8. @rajrsingh IBM Cloud Data Services The Socrata API
  9. 9. @rajrsingh IBM Cloud Data Services Data Wrangling Gaucho Data Wrangler. Picture by Dave Werkley, http://compendiumofcountries.org/wiki/index.php?title=File:Data_Wrangler_-_Gaucho.png
  10. 10. @rajrsingh IBM Cloud Data Services Data wrangling crime codes
  11. 11. @rajrsingh IBM Cloud Data Services Querying Socrata for Boston Crimes • https://data.cityofboston.gov/resource/29yf-ye7n.json? $where= occurred_on_date>=“2016-08-23” AND occurred_on_date<“2016-08-24” • Then run it every day…
  12. 12. @rajrsingh IBM Cloud Data Services Boston crime data query response
  13. 13. @rajrsingh IBM Cloud Data Services Crime reconciliation • CDSNV: non-violent • CDSDV: domestic violence • CDSSTREET: street crime
  14. 14. @rajrsingh IBM Cloud Data Services Data Products & Offerings By Patrick Denker from Athens, GA - DSC04878, CC BY 2.0, https://commons.wikimedia.org/w/index.php?curid=37301184
  15. 15. @rajrsingh IBM Cloud Data Services REST API & Mapping
  16. 16. @rajrsingh IBM Cloud Data Services Cloudant / CouchDB replication
  17. 17. @rajrsingh IBM Cloud Data Services Then this happened…
  18. 18. @rajrsingh IBM Cloud Data Services The danger zone
  19. 19. @rajrsingh IBM Cloud Data Services Safety app architecture 1. Built using Ionic framework 2. Cloudant -> mobile replication 3. Safety rating decision 4. Notification https://github.com/ibm-cds-labs/crionic | by Jason Smith
  20. 20. @rajrsingh IBM Cloud Data Services Safety app phase 2 • Add Census demographics • Population: crimes per capita • Housing quality • Add Points of Interest • Commercial activity: busy areas are safer
  21. 21. IBM Cloud Data Services Raj Singh Developer Advocate: Geo | Open Data rrsingh@us.ibm.com http://ibm.biz/rajrsingh Twitter: @rajrsingh LinkedIn: rajrsingh Thanks • REST API • http://ibm.biz/opencrimes • Crime code reconciliation tables • https://github.com/ibm-cds-labs/open-data/tree/master/crime • Harvesting service code • https://github.com/ibm-cds-labs/crimeharvest • IBM Cloud Data Services on GitHub • https://ibm-cds-labs.github.io/ • IBM Cloud Data Services on Bluemix • http://www.ibm.com/cloud-computing/bluemix/solutions/data-analytics/

×