All Projects → CivicScape → Civicscape

CivicScape / Civicscape

Licence: other
A new standard for real-time policing.

Labels

Projects that are alternatives of or similar to Civicscape

Pg
PostgreSQL experiments
Stars: ✭ 60 (-40.59%)
Mutual labels:  plpgsql
Openquerystore
OpenQueryStore
Stars: ✭ 75 (-25.74%)
Mutual labels:  plpgsql
Pg Semver
A semantic version data type for PostgreSQL
Stars: ✭ 91 (-9.9%)
Mutual labels:  plpgsql
Code Or Die
Code or Die: A Game for Galactical Domination
Stars: ✭ 63 (-37.62%)
Mutual labels:  plpgsql
Pg bitemporal
Bitemporal tables in Postgres
Stars: ✭ 70 (-30.69%)
Mutual labels:  plpgsql
Ssis Queries
A set of queries useful to easily extract monitoring and package performance data from SSISDB database
Stars: ✭ 79 (-21.78%)
Mutual labels:  plpgsql
Synapse scripts
Tools for maintaining a matrix synapse chat server // SEEKING MAINTAINERS
Stars: ✭ 58 (-42.57%)
Mutual labels:  plpgsql
Totp
RFC6238 TOTP implementation in pure PostgreSQL plpgsql
Stars: ✭ 98 (-2.97%)
Mutual labels:  plpgsql
Openmaptiles
OpenMapTiles Vector Tile Schema Implementation
Stars: ✭ 1,175 (+1063.37%)
Mutual labels:  plpgsql
Postgresql Anyarray
PostgeSQL extension adding highly desirable, data-type independent array functionality.
Stars: ✭ 91 (-9.9%)
Mutual labels:  plpgsql
Basketball
Public subset of my basketball github
Stars: ✭ 65 (-35.64%)
Mutual labels:  plpgsql
Postgrest Example
Migrations for an example conference API
Stars: ✭ 69 (-31.68%)
Mutual labels:  plpgsql
Evergreen
Evergreen ILS
Stars: ✭ 85 (-15.84%)
Mutual labels:  plpgsql
Docker Postgis
This repository contains Docker image builds for PostgreSQL / PostGIS
Stars: ✭ 62 (-38.61%)
Mutual labels:  plpgsql
Pg permission
A simple set of views to see ALL permissions in a PostgreSQL database
Stars: ✭ 92 (-8.91%)
Mutual labels:  plpgsql
Pg Clone Schema
Postgres clone schema utility without need of going outside of database. Makes developers life easy by running single function to clone schema with all objects. It is very handy on Postgres RDS. Utility is sponsored by http://elephas.io/
Stars: ✭ 59 (-41.58%)
Mutual labels:  plpgsql
R Server Hospital Length Of Stay
Hospital length of stay prediction solution with Microsoft R Server
Stars: ✭ 76 (-24.75%)
Mutual labels:  plpgsql
Periods
PERIODs and SYSTEM VERSIONING for PostgreSQL
Stars: ✭ 101 (+0%)
Mutual labels:  plpgsql
Qt Client
This repository contains the source code for the Desktop client. The Desktop client is built using the Qt framework for C++. The client can be extended or customized using JavaScript. This client is used by all editions of xTuple ERP.
Stars: ✭ 93 (-7.92%)
Mutual labels:  plpgsql
Cartodb Postgresql
PostgreSQL extension for CartoDB
Stars: ✭ 90 (-10.89%)
Mutual labels:  plpgsql

Civicscape Logo

Understanding the CrimeScape data and model

What is this page?

CivicScape is dedicated to using data and evidence-based research to help police increase both the safety and trust of the communities they serve. A key component of this commitment is making our analysis open and transparent, to enable trust and encourage constructive scrutiny where we can do better. CivicScape's tool, CrimeScape, is the only product with this level of transparency and accuracy.

Our methodology and code are available here on our Github page. To understand our analytics you can follow the steps in our Training_and_Testing code and accompanying README. We invite and encourage feedback on the model and process at any stage. You can weigh in here.

We also share our interactive iPython Notebooks, where we aim to make it easy for you to find answers to the following questions:

Data Input Audit NotebookModel Metrics Notebook Bias in Crime Data NotebookPolice Deployment Notebook

Data

CrimeScape generates its risk assessments using data that is open and available to the public whenever possible. Though some jurisdictions choose to not make their crime data publicly available, all CrimeScape data sources that are public can be accessed below:

Example Dataset; Variables used; Source

Recent Crime Activity Recent Crime Activity

Violent Crime: Robbery, assault, homicide, shooting events comprise violent crime. Property crime: motor vehicle theft and burglary; Open data portals by city; crime data provided by jurisdictions.

Community Input Community Input

Different communities have different 311 or community input lines and categories, for example include 311 reports for street light outages and abandoned building reports; Open data portals by city; provided by jurisdiction.

Event Date and Time Event Date and Time

Date and time of the crime or 311 event; Open data portals by city; provided by jurisdiction.

Event Census Tracts Event Census Tracts

Census tract of the crime or call for service event location; Open data portals by city; U.S. Census Bureau shapefiles.

Weather Forecasts Weather Forecasts

Temperature, precipitation, relative humidity, wind speed, change in all of these conditions; National Oceanic and Atmospheric Administration (NOAA) and forecast.io.

Data Input Audit Notebook: How does CivicScape check for data quality?

CivicScape evaluates all data regularly before it is deployed in the model. Poor quality data, meaning data that is systematically missing observations or important categories, such as the date or time of an event, can inject bias into a model and result in inaccurate predictions. Our forthcoming working whitepaper on bias in crime data will provide an overview of research about bias in crime data and the resulting implications for its use.

Our audits of all input data can be replicated by running our Data Input Audit Notebook available here on our Github page.

Civicscape Map

Model

Currently, CrimeScape uses an ensemble of feed-forward neural network models tuned to the specific nature of crime data to understand patterns of crime across a city over time. Every model generates risk assessments for every area (roughly 3 block radius) of a jurisdiction at any a given hour, updated regularly based on slightly different initial conditions. The final risk assessment for each area that we use in CrimeScape is a weighted average based on recent historical performance. A patent is pending on this work.

Our Model Differs from Previous Crime Models in Several Key Ways:

  1. We focus our model on the information most useful for deployment. CivicScape calculates not just the absolute chance of crime, but the relative chance for a given area at a given time compared to the rest of the city, so that officers are able to easily understand how to act on the information in real time.

  2. CrimeScape analytics are trained to recognize how quickly the landscape can change. Our model has the unique capacity to analyze changes in crime risk through time, from one hour to the next. This is in part because we leverage information on how changes in the environment over a specific time period, such as the speed of changes in temperature, can impact the risk at any given area of the city.

  3. We employ cutting edge science to manage the sparsity of crime events. In the eyes of an analyst, crime is a relatively rare event, and the model used to analyze it should be specifically tuned to this fact in order to perform accurately. CrimeScape creates a dataset with a more balanced distribution of instances of crime and no-crime to allow for better understanding of the conditions under which crime does occur. This technique of decreasing the sampling rate of no-crime occurrences at an optimal rate is called sometimes called “downsampling”.

  4. CrimeScape models only use reliable raw data. Alongside our input data evaluation that checks for missing or biased data outlined in our code supplied, the model also employs numerous random subsets of the crime data that are then each trained in a separate neural network. This decreases the influence that problematic outliers or errors in the raw data may have on the neural network performance.

Model Evaluation Metrics Notebook: How do CrimeScape Models perform?

We evaluate our models using several different metrics. To start, we examine the relationship between recent crime events recorded and how often our model correctly anticipates or misses these events. These include (but are not limited to):

  • True Positive Rate: When a crime does happen, the percent of the time the model correctly anticipates it.
  • True Negative Rate: When a crime does not happen, percent of the time the model correctly anticipates that a crime would not happen.
  • False Positive Rate: When a crime does not happen, percent of the time the model incorrectly anticipates that an event would occur.
  • False Negative Rate: When a crime does happen, the percent of the time the model misses it.

To maintain usefulness of this evaluation in the field, all of our evaluation metrics are based on events and risk assessments for a one hour and roughly three-block radius unit of analysis.

Keeping with our commitment to transparency, in our Model Evaluation Metrics notebook, we make available the model metrics detailed here and more, in addition to a comparison of all metrics to a baseline model that mimics those employed today in many departments.

Evaluation

At CivicScape, we’re thinking hard about algorithms and how we evaluate their impact beyond simply how accurately our models perform.

Police Deployment Evaluation Notebook: How does CrimeScape make police more efficient?

Analytics can have substantial positive impact in making police deployment more efficient. Though every police department deploys officers in a different way, we make some assumptions that allow us to visualize and quantify the improvements in crime prevention that police in the right place at the right time can attain through the use of CivicScape.

Bias Evaluation Notebook: How does CrimeScape think about bias in crime prediction?

We’re concerned not only with how well CivicScape anticipates crime, but also about how bias in crime data can result in disparate public safety outcomes within a community. The notebook Preventing Bias is an overview of bias in crime data and an evaluation the how CrimeScape aims to measure and does its best to remove problematic bias that could drive incorrect risk assessments.

We are constantly adding new work as we develop it. Please weigh in, watch our code on this page as we push out new information, or contact us here.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].