An ML-Powered Risk Assessment System for Predicting Prospective Mass Shooting
Abstract
:1. Introduction
2. Related Work
3. System Design
3.1. Dataset
Feature Selection
3.2. ML Models
3.2.1. Local Outlier Factor (LOF)
3.2.2. K-Means
4. Implementation
4.1. ML Models
4.2. Web-Based GUI Implementation
5. Experimental Evaluation
6. Conclusions
Author Contributions
Funding
Data Availability Statement
Conflicts of Interest
References
- Gun Violence Archive. Available online: https://www.gunviolencearchive.org/ (accessed on 14 December 2022).
- Wang, N.; Varghese, B.; Donnelly, P.D. A machine learning analysis of Twitter sentiment to the Sandy Hook shootings. In Proceedings of the 2016 IEEE 12th International Conference on e-Science (e-Science), Baltimore, MD, USA, 23–27 October 2016; pp. 303–312. [Google Scholar] [CrossRef] [Green Version]
- Bauchner, H.; Rivara, F.P.; Bonow, R.O. Death by Gun Violence—A Public Health Crisis. JAMA 2017, 318, 1763–1764. [Google Scholar] [CrossRef] [PubMed]
- Wheeler, A.; Worden, R.; Worden, R.; Silver, J. The Accuracy of the Violent Offender Identification Directive (VOID) Tool to Predict Future Gun Violence. SSRN 2018. [Google Scholar] [CrossRef]
- Liu, D.; Sasha Dong, Z.; Qiu, G. Exploring the contagion effect of social media on mass shootings. Comput. Ind. Eng. 2022, 172, 108565. [Google Scholar] [CrossRef]
- Ahmed, A.A.; Reddy, G.H. A Mobile-Based System for Detecting Plant Leaf Diseases Using Deep Learning. AgriEngineering 2021, 3, 478–493. [Google Scholar] [CrossRef]
- Ahmed, A.A. An Actor-Based Formal Model and Runtime Environment for Resource-Bounded IoT Services. Algorithms 2022, 15, 390. [Google Scholar] [CrossRef]
- Ahmed, A.A. A privacy-preserving mobile location-based advertising system for small businesses. Eng. Rep. 2021, 3, e12416. [Google Scholar] [CrossRef]
- Ahmed, A.A.; Echi, M. Hawk-Eye: An AI-Powered Threat Detector for Intelligent Surveillance Cameras. IEEE Access 2021, 9, 63283–63293. [Google Scholar] [CrossRef]
- Ahmed, A.A.; Agunsoye, G. A Real-Time Network Traffic Classifier for Online Applications Using Machine Learning. Algorithms 2021, 14, 250. [Google Scholar] [CrossRef]
- Cheng, Z.; Zou, C.; Dong, J. Outlier Detection Using Isolation Forest and Local Outlier Factor. In Proceedings of the Conference on Research in Adaptive and Convergent Systems, Chongqing, China, 24–27 September 2019; pp. 161–168. [Google Scholar] [CrossRef]
- Likas, A.; Vlassis, N.; Verbeek, J. The global k-means clustering algorithm. Pattern Recognit. 2003, 36, 451–461. [Google Scholar] [CrossRef] [Green Version]
- Guo, L.; Mays, K.; Zhang, Y.; Wijaya, D.; Betke, M. What Makes Gun Violence a (Less) Prominent Issue? A Computational Analysis of Compelling Arguments and Selective Agenda Setting. Mass Commun. Soc. 2021, 24, 651–675. [Google Scholar] [CrossRef]
- Pavlick, E.; Callison-Burch, C. The Gun Violence Database. arXiv 2016, arXiv:1610.01670. [Google Scholar]
- Xue, J.; Chen, J.; Chen, C.; Hu, R.; Zhu, T. The Hidden Pandemic of Family Violence During COVID-19: Unsupervised Learning of Tweets. J. Med. Internet Res. 2020, 22, e24361. [Google Scholar] [CrossRef]
- Heller, S.B.; Jakubowski, B.; Jelveh, Z.; Kapustin, M. Machine Learning Can Predict Shooting Victimization Well Enough to Help Prevent It; Working Paper 30170; National Bureau of Economic Research: Cambridge, MA, USA, 2022. [Google Scholar] [CrossRef]
- Roy, A.; Nikolitch, K.; McGinn, R.; Jinah, S.; Klement, W.; Kaminsky, Z. A machine learning approach predicts future risk to suicidal ideation from social media data. NPJ Digit. Med. 2020, 3, 78. [Google Scholar] [CrossRef] [PubMed]
- Saha, K.; De Choudhury, M. Modeling Stress with Social Media Around Incidents of Gun Violence on College Campuses. Proc. ACM Hum.-Comput. Interact. 2017, 1, 92. [Google Scholar] [CrossRef]
- Flask Framework: A Web-Based Framework Written in Python. Available online: https://flask.palletsprojects.com/en/1.1.x/ (accessed on 9 January 2023).
- Kaggle: Machine Learning and Data Science Community. Available online: https://www.kaggle.com/ (accessed on 9 January 2023).
- Google Web Scraper. Available online: https://chrome.google.com/webstore/detail/web-scraper/jnhgnonknehpejjnehehllkliplmbmhn?hl=en (accessed on 9 January 2023).
- Google Colab Development Environment. Available online: https://colab.research.google.com/ (accessed on 9 January 2023).
- TensorFlow: A Machine Learning Platform. Available online: https://www.tensorflow.org/ (accessed on 9 January 2023).
- McLachlan, G.J.; Rathnayake, S. On the number of components in a Gaussian mixture model. WIREs Data Min. Knowl. Discov. 2014, 4, 341–355. [Google Scholar] [CrossRef]
Category | Attributes |
---|---|
Crime Location | State *, Region *, Urban, suburban, or rural area * |
Background Information | Age *, Gender, Race *, Immigrant, Sexual orientation, Religion *, Education *, School performance *, Birth order *, Number of siblings *, Number of older siblings, Number of younger siblings, Relationship status *, Children *, Employment status *, Employment type *, Military service, Military branch *, Community involvement * |
Crime and Violence History | Criminal Record, Part 1 Crimes *, Part 2 Crimes *, Highest level of criminal justice involvement, Animal Abuse, History of Physical Altercations, History of domestic abuse, Domestic abuse specified *, History of sexual offenses, Gang association, Terror group association, Hate group association, Played violent video games, Bully |
Trauma and Adverse Childhood Experiences | Bullied, Raised by single parent, Parental separation or divorce, Suicide of parent, Death of parent, Childhood trauma, Physical Abuse, Sexual Abuse, Emotional Abuse, Neglect, Childhood socioeconomic status *, Mother was violently treated, Parent substance abuse, Parent criminal record, Family, member incarcerated, Adult trauma |
Signs of a Crisis | Recent stressor and triggering event *, Signs of being in crisis *, Timeframe of when signs of crisis began, Inability to perform daily tasks, Notably depressed mood, Unusually calm or happy, Rapid mood swings, increased agitation, Abusive behavior, Isolation, Losing touch with reality Paranoia |
Health Issues | Suicidality, Hospitalization for psychiatric reasons, Voluntary or involuntary hospitalization, Prior counseling, Voluntary or mandatory counseling, Prescribed psychiatric medication, Psychiatric medication specified, treatment, Mental illness, Known family history of mental health issues, Autism spectrum disorder, Substance use and abuse *, Health issues, Specify health issues, head injury or Possible brain injury |
Grievance and Motivation | Known prejudices *, Racism, Religious hate, Misogyny, Homophobia, Employment issue, Economic issue, Legal issue, Relationship issues, Interpersonal conflict, Fame-seeking |
Social Contagion | Social media use, Leakage prior to the shooting, Leakage—How? *, Leakage—Who? *, Leakage—Specific? *, Interest in past mass violence, Relationship with other shooting(s), Specify relationship to other shooting(s), Legacy token, Connection to pop culture, Specify pop culture, connection, Significant prior planning Performance |
Weapons | Notable or obsessive interest in firearms, Firearm proficiency, Other weapons or gear |
Resolution of case | On scene outcome, attempt to flee, Insanity defense at trial, Criminal sentence * |
Compound Attribute | Possible Values | Weight |
---|---|---|
Part 1 crimes | No evidence, Homicide, Forcible rape, Robbery, Aggravated Assault, Burglary, Larceny-Theft, Motor Vehicle Theft, Arson | 0–8 |
Part 2 crimes | No evidence, Simple assault, Fraud, forgery, stolen property, vandalism, weapons offenses, prostitution or other, drugs, Drugs, DUI and other | 0–9 |
Recent or Ongoing stressor | No evidence, Recent Break-up, Employment stressor, Economic stressor, Family issue, Legal issue, other | 0–6 |
Substance use and Abuse | No evidence, problem with alchohol, Marijuana, other drugs | 0–3 |
Known Prejudices | No evidence, Racism, Misogyny, Homophobia, Religious hatred | 0–4 |
Leakage-How? | In person, Letter, Other writing, Phone/text, Internet/social media, Other | 1–6 |
Leakage who? | Mental health professional, Immediate family, Wife/girlfriend, Police, Coworker/supervisor, Friend/neighbor, Classmate, Teacher/school staff, Waitress/Bartender/Clerk, Other | 1–10 |
Test Case | LOF | K-Means |
---|---|---|
1 | 87.00% | 88.00% |
2 | 91.00% | 92.00% |
3 | 15.00% | 71.00% |
4 | 100.00% | 100.00% |
5 | 71.00% | 71.00% |
6 | 75.00% | 82.00% |
7 | 100.00% | 100.00% |
8 | 90.00% | 90.00% |
9 | 80.00% | 85.00% |
10 | 100.00% | 100.00% |
11 | 82.00% | 82.00% |
12 | 100.00% | 100.00% |
13 | 100.00% | 100.00% |
14 | 87.00% | 87.00% |
15 | 100.00% | 100.00% |
16 | 77.00% | 77.00% |
17 | 100.00% | 100.00% |
18 | 63.00% | 63.00% |
19 | 88.00% | 88.00% |
20 | 100.00% | 100.00% |
21 | 100.00% | 100.00% |
22 | 100.00% | 100.00% |
23 | 100.00% | 100.00% |
24 | 95.00% | 95.00% |
25 | 71.00% | 82.00% |
26 | 82.00% | 82.00% |
27 | 100.00% | 100.00% |
28 | 100.00% | 100.00% |
29 | 100.00% | 100.00% |
30 | 100.00% | 100.00% |
31 | 58.00% | 77.00% |
32 | 92.00% | 92.00% |
33 | 89.00% | 89.00% |
34 | 100.00% | 100.00% |
35 | 91.00% | 91.00% |
36 | 80.00% | 80.00% |
37 | 100.00% | 100.00% |
38 | 87.00% | 87.00% |
39 | 100.00% | 100.00% |
40 | 94.00% | 94.00% |
41 | 95.00% | 95.00% |
42 | 100.00% | 100.00% |
43 | 82.00% | 82.00% |
44 | 88.00% | 88.00% |
45 | 86.00% | 88.00% |
46 | 90.00% | 90.00% |
47 | 74.00% | 74.00% |
48 | 91.00% | 91.00% |
49 | 91.00% | 91.00% |
50 | 98.00% | 98.00% |
51 | 100.00% | 100.00% |
52 | 100.00% | 100.00% |
53 | 94.00% | 94.00% |
54 | 100.00% | 100.00% |
55 | 82.00% | 82.00% |
Average | 89.38% | 91.24% |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2023 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).
Share and Cite
Ahmed, A.A.; Okoroafor, N. An ML-Powered Risk Assessment System for Predicting Prospective Mass Shooting. Computers 2023, 12, 42. https://doi.org/10.3390/computers12020042
Ahmed AA, Okoroafor N. An ML-Powered Risk Assessment System for Predicting Prospective Mass Shooting. Computers. 2023; 12(2):42. https://doi.org/10.3390/computers12020042
Chicago/Turabian StyleAhmed, Ahmed Abdelmoamen, and Nneoma Okoroafor. 2023. "An ML-Powered Risk Assessment System for Predicting Prospective Mass Shooting" Computers 12, no. 2: 42. https://doi.org/10.3390/computers12020042
APA StyleAhmed, A. A., & Okoroafor, N. (2023). An ML-Powered Risk Assessment System for Predicting Prospective Mass Shooting. Computers, 12(2), 42. https://doi.org/10.3390/computers12020042