
Crime Prevention and Detection of Using Predictive Algorithms: A Case Study of Maiduguri Metropolis – Volume 12 Issue 5

International Journal of Computer Techniques
ISSN 2394-2231
Volume 12, Issue 5 | Published: September – October 2025
Author
Bassi Jeremiah Yusuf , Kile Awuna Samuel
Abstract
Crime prevention and detection are critical challenges for law enforcement globally. With increasing crime data and advancements in machine learning, predictive algorithms offer a promising solution. Maiduguri has experienced rising crime rates, yet lacks intelligent systems to aid security efforts. This study aims to model crime prevention and detection using predictive algorithms, specifically comparing Decision Trees (DT), Random Forest (RF), and Support Vector Machines (SVM). A quantitative approach was adopted, with data collected from Maiduguri security agencies and online sources. The algorithms were analyzed using Python, evaluating performance via accuracy, precision, recall, and F1-score. Results showed DT and RF excelled: DT achieved perfect scores (1.000) across all metrics, while RF scored highly (accuracy: 0.9950, precision: 0.9955, recall: 0.9950, F1-score: 0.9951). In contrast, SVM performed poorly (accuracy: 0.5075, precision: 0.5372, recall: 0.5075, F1-score: 0.4910), highlighting the importance of algorithm selection. Visualizations of crime frequency by location, time, and victim age distribution further aid law enforcement in resource allocation and targeted interventions. The study demonstrated that DT and RF are highly effective for crime prediction in Maiduguri, offering actionable insights for improving public safety. SVM’s limitations suggest it is less suitable for this task, emphasizing the need for appropriate algorithm choices in crime analytics.
Keywords
Crime, Detection, Machine learning, Model and Predictive algorithms.Conclusion
The study shows how well machine learning algorithms, in particular, decision trees and random forests predict and categorize events connected to crime. These models’ great accuracy and resilience make them appropriate for use in actual crime prevention and detection situations. Law enforcement organizations can more efficiently allocate resources and put targeted preventive measures into place with the aid of the visualizations’ insightful information about crime trends. Support vector machines’ (SVM) subpar performance raises the possibility that this approach is inappropriate for this kind of dataset or task, underscoring the significance of choosing the right models depending on the data’s characteristics and the issue at hand.
References
Akoglu, L., Tong, H., & Koutra, D. (2015). Graph-based anomaly detection and description: A survey. Data Mining and Knowledge Discovery, 29(3), 626-688. David, A. T., Donald, C. C., Ian, D. E., Thomas, J. B., & Antony, N. A. (Feb 20, 2025). Crime. Encyclopedia Britannica. https://www.britannica.com/topic/crime-law. Annie, S. S. H., Pathmanaban, J., Kingsley, S., Sriman, B., Suryaa, N., & Santhosh, E, K. (2022). Prediction and prevention analysis using machine learning algorithms for detecting the crime data. 2022 1st International Conference on Computational Science and Technology (ICCST), 986-991. https://doi.org/10.1109/ICCST55948.2022.10040370. Berman, D. S., Buczak, A. L., Chavis, J. S., & Corbett, C. L. (2019). A survey of deep learning methods for cyber security. Information, 10(4), 122. Chouldechova, A. (2017). Fair prediction with disparate impact: A study of bias in recidivism prediction instruments. Big Data, 5(2), 153-163. EUCPN (2022). Artificial intelligence and predictive policing: risks and challenges. Brussels: EUCPN. Hirithik, B., Aakash, S. B., Hariharan S. & Mathumathi, M. M.E. (2022). Crime prediction and analysis using multi-layer perceptron. International Journal of Advances in Engineering and Management (IJAEM), 4(4), 1061-1069. Ibrahim, A.M. & Mohammed, G. (2021). Influence of poverty on crime among youths in Maiduguri metropolis, Borno State, Nigeria. International Journal of Research (IJR). 8(11), 100-106. Jain, A. K., Ross, A., & Nandakumar, K. (2011). Introduction to biometrics. Springer Science & Business Media. Kang, H., & Kang, H. (2017). Prediction of crime occurrence from multi-modal data using deep learning. PLoS ONE, 12. https://doi.org/10.1371/journal.pone.0176244. Kaur, M. & Saini, M. (2024). Role of Artificial Intelligence in the crime prediction and pattern analysis studies published over the last decade: A scientometric analysis. Artif Intell Rev 57, 202. https://doi.org/10.1007/s10462-024-10823-1. Kou, Y., Lu, C. T., Sirwongwattana, S., & Huang, Y.-P. (2004). Survey of fraud detection techniques. IEEE Transactions on Systems, Man, and Cybernetics-Part C: Applications and Reviews, 42(6), 893-908. Li, S., Kuo, S., & Tsai, F. (2010). An intelligent decision-support model using FSOM and rule extraction for crime prevention. Expert Systems with Applications, 37(10):7108-711.9 DOI: 10.1016/j.eswa.2010.03.004 Los Angeles Police Department. (2020). Crime Data from 2020 to Present [Data set]. Kaggle. Retrieved November 10, 2024, from https://www.kaggle.com/datasets/lacity/crime-data-from-2020-to-present. Mandalapu, V., Elluri, L., Vyas, P., & Roy, N. (2023). Crime prediction using machine learning and deep learning: A systematic review and future directions. IEEE Access, 11, 60153-60170. https://doi.org/10.1109/ACCESS.2023.3286344. Mohler, G. O., Short, M. B., Brantingham, P. J., Schoenberg, F. P., & Tita, G. E. (2015). Randomized controlled field trials of predictive policing. Journal of the American Statistical Association, 110(512), 1399-1411. Perry, W. L., McInnis, B., Price, C. C., Smith, S. C., & Hollywood, J. S. (2013). Predictive policing: The role of crime forecasting in law enforcement operations. RAND Corporation. Saltos, G. & Cocea, M. (2017). An exploration of crime prediction using data Mining on open data. Available https://pure.port.ac.uk/ws/portalfiles/portal/7037487/ws_ijitdm_2.pdf. Retrieved 12/09/2024. Samtani, S., Chinn, R., Larson, C., & Chen, H. (2016). Exploring emerging hacker assets and key hackers for proactive cyber threat intelligence. Journal of Management Information Systems, 33(4), 1068-1094. Shah, N., Bhagat, N., & Shah, M. (2021). Crime forecasting: a machine learning and computer vision approach to crime prediction and prevention. Visual Computing for Industry, Biomedicine, and Art, 4. https://doi.org/10.1186/s42492-021-00075-z. Sridharan, S., Srish, N., Vigneswaran, S. & Santhi, P. (2024). Crime Prediction using Machine Learning. EAI Endorsed Transactions on Internet of Things, 10, 1-6. DOI: 10.4108/eetiot.5123 Ugwu, F. (2025 January, 13). Port Harcourt, Maiduguri, 6 others named most dangerous areas in Nigeria. Daily post. https://dailypost.ng/2025/01/13/port-harcourt-maiduguri-6-others-named-most-dangerous-areas-in-nigeria/. United Nations Office on Drugs and Crime (UNODC). (2022). United Nations Standards and Norms in Crime Prevention At your fingertips. Available at https://www.unodc.org/pdf/criminal_justice/UN_standards_and_norms_in_crime_prevention_at_your_fingertips.pdf. Accessed 8/9/2024. Van Brakel, R., & De Hert, P. (2011). Policing, surveillance and law in a pre-crime society: Understanding the consequences of technology-based strategies. International Journal of Law, Crime and Justice, 39(3), 202-215. Zhu, Q., Zhang, F., Liu, S. & Li, Y. (2022). An anticrime information support system design: application of K-means-VMD-BiGRU in the city of Chicago. Inf Manag.; 59(5): 103247. https://doi.org/10.1016/j.im.2019.103247
IJCT Important Links
© 2025 International Journal of Computer Techniques (IJCT).