Live data from Hacker News

Ask HN: Any open source code/materials on predicting future crimes based on data?

news.ycombinator.com

11–20 of 61 posts

Re: Ask HN: Any open source code/materials on predicting future crimes based on data?

#12
post #10

You need to watch Person of Interest and Minority Report.

I watched POI. I also heard cops using ML to predict crime locations. I am trying to find and reuse some existing code for a different project.

Don't be surprised if those predictions are heavily biased against minorities and poor people. Do you care if they do?

It's a similar problem to using ML to give people credit scores.

If the training data includes a lot of minorities and poor people breaking laws / delinquent payments, then your ML will simply key on race/economic status as a predictor.

So you've built a system that simply targets those groups.

But you might object and say that this race/economic status targeting gives the highest accuracy! It was only learned in the training data, after all. You can make a great classifier that is extremely unfair.

So you have to realize there is a conflict here between accuracy and fairness. This means there is a conflict between observational data (training), and using that data to produce decisions/outcomes.

If you make decisions/outcomes that reinforce the training data, you do not give racial groups/low economic status people a chance to improve their lives.

That is extremely inhuman, predatory, and unfair.

Re: Ask HN: Any open source code/materials on predicting future crimes based on data?

#14

I am currently writing my master thesis on predictive policing using machine learning. Working with local police in Norway. Got a bunch of papers and articles you might find interesting. Hit me up: michaedm@stud.ntnu.no

Thanks, Just shot an email.

Re: Ask HN: Any open source code/materials on predicting future crimes based on data?

#15
post #12
post #10

Earlier quoted context omitted.

I watched POI. I also heard cops using ML to predict crime locations. I am trying to find and reuse some existing code for a different project.

Don't be surprised if those predictions are heavily biased against minorities and poor people. Do you care if they do? It's a similar problem to using ML to give people credit scores. If the training data includes a lot of minorities and poor people breaking laws / delinquent payments, then your ML will simply key on race/economic status as a predictor. So you've built a system that simply targets those groups. But y…

All I want to predict is time periods/locations which are vulnerable. Nothing more than that.

Re: Ask HN: Any open source code/materials on predicting future crimes based on data?

#16
In any case, you shouldn't neglect the subtle but important sources of bias those pre-crime models can have. Here's an interesting talk about it:

https://www.youtube.com/watch?v=MfThopD7L1Y

Basically, one instance of bias is the fact that many crime-prediction models are trained on police data, which means they will predict crime in places more often targeted by the police anyway. Then the model predictions even amplify that effect, since more training data may be generated from the places now more often policed, etc.

There's lots of resources out there on AI fairness these days. I think everyone who tries stuff like crime prediction should read up on that topic.

Re: Ask HN: Any open source code/materials on predicting future crimes based on data?

#17
Any such system is/would be potentially very dangerous. Crime data is not the same thing as crime. Populations that are over-policed are be disproportionately represented in any such data set, leading to higher prediction of crime, leading in turn more over-policing (feedback loop). I implore anyone attempting to build such a system to consider the serious issue of machine bias and it's implications in the real world.

See this tutorial given at this years NIPS machine learning conference: http://mrtz.org/nips17/#/

Re: Ask HN: Any open source code/materials on predicting future crimes based on data?

#18

Any such system is/would be potentially very dangerous. Crime data is not the same thing as crime. Populations that are over-policed are be disproportionately represented in any such data set, leading to higher prediction of crime, leading in turn more over-policing (feedback loop). I implore anyone attempting to build such a system to consider the serious issue of machine bias and it's implications in the real world…

[deleted]

Re: Ask HN: Any open source code/materials on predicting future crimes based on data?

#19
post #16

In any case, you shouldn't neglect the subtle but important sources of bias those pre-crime models can have. Here's an interesting talk about it: https://www.youtube.com/watch?v=MfThopD7L1Y Basically, one instance of bias is the fact that many crime-prediction models are trained on police data, which means they will predict crime in places more often targeted by the police anyway. Then the model predictions even ampl…

We must ensure police are continuously allocated to crime-ridden areas, with or without AI, fair or not.

If you are hinting at sending fewer police to black neighborhoods, you can bet that will never happen.

Post reply on HN