{"id":240950,"date":"2022-10-24T16:18:27","date_gmt":"2022-10-24T14:18:27","guid":{"rendered":"https:\/\/www.myza.co.za\/artificial-intelligence-is-used-for-predictive-policing-in-the-us-and-uk-south-africa-should-embrace-it-too\/"},"modified":"2022-10-24T16:18:27","modified_gmt":"2022-10-24T14:18:27","slug":"artificial-intelligence-is-used-for-predictive-policing-in-the-us-and-uk-south-africa-should-embrace-it-too","status":"publish","type":"post","link":"https:\/\/www.myza.co.za\/press\/artificial-intelligence-is-used-for-predictive-policing-in-the-us-and-uk-south-africa-should-embrace-it-too\/","title":{"rendered":"Artificial intelligence is used for predictive policing in the US and UK \u2013 South Africa should embrace it, too"},"content":{"rendered":"<div><img decoding=\"async\" src=\"http:\/\/www.myza.co.za\/press\/wp-content\/uploads\/2022\/10\/artificial-intelligence-is-used-for-predictive-policing-in-the-us-and-uk-south-africa-should-embrace-it-too.jpg\" class=\"ff-og-image-inserted\"><\/div>\n<p>In the 2002 movie Minority Report (based on a <a href=\"https:\/\/www.goodreads.com\/book\/show\/581125.The_Minority_Report\">short story<\/a> by Philip K Dick), director Steven Spielberg imagined a future in which three psychics can \u201csee\u201d murders before they happen. Their clairvoyance allows Tom Cruise and his \u201cPrecrime\u201d police force to avert nearly all potential homicides.<\/p>\n<p>Twenty years on, in the real world, scientists and law enforcement agencies are using data mining and machine learning to mimic those psychics. Such \u201c<a href=\"https:\/\/www.science.org\/content\/article\/can-predictive-policing-prevent-crime-it-happens\">predictive policing<\/a>\u201d, as it is called, is based on the fact that many crimes \u2013 and criminals \u2013 have <a href=\"https:\/\/www.taylorfrancis.com\/chapters\/edit\/10.4324\/9780203118214-13\/crime-pattern-theory-paul-brantingham-patricia-brantingham\">detectable patterns<\/a>.<\/p>\n<p>Predictive policing has enjoyed some successes. In a <a href=\"https:\/\/www.tandfonline.com\/doi\/full\/10.1080\/01900692.2019.1575664\">case study<\/a> in the US, one police department was able to reduce gun incidents by 47% over the typically gun-happy New Year\u2019s Eve. <a href=\"https:\/\/www.ironsidegroup.com\/case-study\/predictive-policing-success-manchester-police-department\/\">Manchester police<\/a> in the UK were similarly able to predict and reduce robberies, burglaries and thefts from motor vehicles by double digits in the first 10 weeks of rolling out predictive measures.<\/p>\n<p>Predictive policing has improved in leaps and bounds. <a href=\"https:\/\/link.springer.com\/content\/pdf\/10.1007\/978-3-642-40994-3_33.pdf\">In the past<\/a>, humans had to manually pore over crime reports or filter through national crime databases. Now, in the age of <a href=\"https:\/\/www.igi-global.com\/book\/data-mining-trends-applications-criminal\/146986\">big data, data mining<\/a> and powerful computers, that process can be automated. <\/p>\n<p>But merely finding information is not enough to deter crime. The data needs to be analysed to detect underlying patterns and relationships. Scientists deploy algorithms and mathematical models such as machine learning, which imitates the way humans learn, to extract useful information and insights from existing data. <\/p>\n<p>Recently, we <a href=\"https:\/\/dl.acm.org\/doi\/fullHtml\/10.1145\/3488933.3488973\">turned to<\/a> a mathematical method conceived in the 18th century to refine our approach. By tweaking an existing algorithm based on this method, we significantly improved its crime prediction rates.<\/p>\n<p>This finding holds promise for applying predictive policing in under-resourced contexts like South Africa. This could help reduce crime levels \u2013 some of the highest in the world and <a href=\"https:\/\/www.dailymaverick.co.za\/article\/2022-06-03-crime-crisis-continues-in-first-quarter-of-2022-with-women-and-children-worst-affected\">rising<\/a>. It\u2019s a situation the country\u2019s police force seems <a href=\"https:\/\/africacheck.org\/infofinder\/explore-facts\/how-many-people-does-one-police-officer-serve-south-africa\">ill-equipped<\/a> to curb.<\/p>\n<h2>Marrying two different approaches<\/h2>\n<p>Thomas Bayes was a British mathematician. His famed <a href=\"https:\/\/www.mathsisfun.com\/data\/bayes-theorem.html\">Bayes\u2019 theorem<\/a> essentially describes the probability of an event occurring based on some prior knowledge of conditions that may be related to that event. Today, Bayesian analysis is commonplace in fields as diverse as artificial intelligence, astrophysics, finance, gambling and weather forecasting. We fine-tuned the Na\u00efve Bayes algorithm and <a href=\"https:\/\/dl.acm.org\/doi\/fullHtml\/10.1145\/3488933.3488973\">put it to the test<\/a> as a crime predictor. <\/p>\n<p>Bayesian analysis can use probability statements to answer research questions about unknown parameters of statistical models. For example, what is the probability that a suspect accused of a crime is guilty? But going deeper \u2013 like calculating how poker cards may unfold, or how humans (especially humans with criminal intent) will act \u2013 requires increasingly sophisticated technologies and algorithms. <\/p>\n<p><a href=\"https:\/\/dl.acm.org\/doi\/fullHtml\/10.1145\/3488933.3488973\">Our research<\/a> built on the Na\u00efve Bayes algorithm or classifier, a popular supervised machine learning algorithm, for <a href=\"https:\/\/dl.acm.org\/doi\/fullHtml\/10.1145\/3488933.3488973\">crime prediction<\/a>. <\/p>\n<p>Na\u00efve Bayes starts on the premise that features \u2013 the variables that serve as input \u2013 are conditionally independent, meaning that the presence of one feature does not affect the others.<\/p>\n<p>We fine-tuned the Na\u00efve Bayes algorithm by marrying it with another algorithm known as <a href=\"https:\/\/machinelearningmastery.com\/rfe-feature-selection-in-python\/\">Recursive Feature Elimination<\/a>. This tool assists in selecting the more significant features in a dataset and removing the weaker ones, with the objective of improving the results.<\/p>\n<p>We then applied our finessed algorithm to a popular experimental dataset extracted from the Chicago Police Department\u2019s <a href=\"https:\/\/home.chicagopolice.org\/services\/clearmap-application\/\">CLEAR<\/a> (Citizen Law Enforcement Analysis and Reporting) system, which has been used to predict and reduce crime in that American city. That dataset has been applied globally because of the rich data it contains: it provides incident-level crime data, registered offenders, community concerns, and locations of police stations in the city.<\/p>\n<p>We compared the results of our enhanced Na\u00efve Bayes against that of the original Na\u00efve Bayes, as well as against other predictive algorithms such as Random Forests and Extremely Randomized Trees (algorithms we have <a href=\"https:\/\/dl.acm.org\/doi\/fullHtml\/10.1145\/3488933.3488972\">also worked<\/a> on for crime prediction). We found that we could improve on the predictions of the Na\u00efve Bayes by about 30%, and could either match or improve on the predictions of the other algorithms.<\/p>\n<h2>Data and bias<\/h2>\n<p>While our model holds promise, there\u2019s one element that\u2019s sorely lacking in applying it to South African contexts: data. As the Chicago CLEAR system illustrates, predictive models work best when you have lots of relevant data to work with. But South Africa\u2019s police force has historically been very tight-fisted with its data, perhaps due to confidentiality issues. I ran into this problem in my <a href=\"https:\/\/open.uct.ac.za\/handle\/11427\/25319\">doctoral research<\/a> on detecting and mapping crime series.<\/p>\n<p>This is slowly shifting. We are currently running a small case study in Bellville, a suburb about 20km from Cape Town\u2019s central business district and the area in which our university is located, using the <a href=\"https:\/\/www.kaggle.com\/datasets\/slwessels\/crime-statistics-for-south-africa\">South African Police Service data<\/a> for predictive policing.<\/p>\n<p>None of this is to suggest that predictive policing alone will solve South Africa\u2019s crime problem. Predictive algorithms and policing are not without their flaws. Even the psychics in Minority Report, it turned out, were not error-free. Fears that these algorithms may simply reinforce racial biases, for instance, have been raised both in <a href=\"https:\/\/www.dailymaverick.co.za\/article\/2022-08-02-sa-police-may-be-jumping-the-gun-by-implementing-new-crimefighting-technologies\/\">South Africa<\/a> and <a href=\"https:\/\/www.science.org\/content\/article\/can-predictive-policing-prevent-crime-it-happens\">elsewhere<\/a>.<\/p>\n<p>But we believe that, with continuous technological improvement, predictive policing could play an important role in bolstering the police\u2019s responsiveness and may be a small step towards improving public confidence in the police.<\/p>\n<p><em>Dr Olasupo Ajayi of the Department of Computer Science at the University of the Western Cape and Mr Sphamandla May, a master\u2019s student in the department, co-authored this article and the research it\u2019s based on.<\/em><\/p>\n<p> <a href=\"https:\/\/theconversation.com\/africa\/\">Source: The Conversation<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In the 2002 movie Minority Report (based on a short story by Philip K Dick), director Steven Spielberg imagined a future in which three psychics can \u201csee\u201d murders before they happen. Their clairvoyance allows Tom Cruise and his \u201cPrecrime\u201d police force to avert nearly all potential homicides. Twenty years on, in the real world, scientists [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":240951,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_genesis_hide_title":false,"_genesis_hide_breadcrumbs":false,"_genesis_hide_singular_image":false,"_genesis_hide_footer_widgets":false,"_genesis_custom_body_class":"","_genesis_custom_post_class":"","_genesis_layout":"","ngg_post_thumbnail":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[4584],"tags":[3257],"class_list":{"0":"post-240950","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-africa-news-2","8":"tag-mypr","9":"entry"},"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/www.myza.co.za\/press\/wp-content\/uploads\/2022\/10\/artificial-intelligence-is-used-for-predictive-policing-in-the-us-and-uk-south-africa-should-embrace-it-too-scaled.jpg","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.myza.co.za\/press\/wp-json\/wp\/v2\/posts\/240950","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.myza.co.za\/press\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.myza.co.za\/press\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.myza.co.za\/press\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.myza.co.za\/press\/wp-json\/wp\/v2\/comments?post=240950"}],"version-history":[{"count":0,"href":"https:\/\/www.myza.co.za\/press\/wp-json\/wp\/v2\/posts\/240950\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.myza.co.za\/press\/wp-json\/wp\/v2\/media\/240951"}],"wp:attachment":[{"href":"https:\/\/www.myza.co.za\/press\/wp-json\/wp\/v2\/media?parent=240950"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.myza.co.za\/press\/wp-json\/wp\/v2\/categories?post=240950"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.myza.co.za\/press\/wp-json\/wp\/v2\/tags?post=240950"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}