Performance Evaluation of a Hyperparameter Tuned Random Forest Algorithm Based on Artificial Bee Colony for Improving Accuracy and Precision of Crime Prediction Model


Authors : Hauwa Abubakar; Souley Boukari; Abdulsalam Ya’u Gital; Fatima Umar Zambuk

Volume/Issue : Volume 10 - 2025, Issue 6 - June


Google Scholar : https://tinyurl.com/yf8m2ezm

DOI : https://doi.org/10.38124/ijisrt/25jun1821

Note : A published paper may take 4-5 working days from the publication date to appear in PlumX Metrics, Semantic Scholar, and ResearchGate.

Note : Google Scholar may take 30 to 40 days to display the article.


Abstract : Crime prediction is a crucial application of machine learning, enabling law enforcement to make proactive decisions. This research presents a novel crime prediction model that leverages a hybrid approach by tuning the hyperparameters of Random Forest (RF) classifier using the Artificial Bee Colony (ABC) optimization algorithm. The model was developed to improve the prediction accuracy and reliability of crime prediction systems by enhancing the performance of traditional machine learning classifiers. To validate the effectiveness of the proposed RF-ABC model, a comparative analysis against Decision Trees (DT), k-Nearest Neighbors (KNN), and the existing untuned Random Forest model was conducted. Experimental results demonstrate that the proposed RF-ABC model significantly outperforms the baseline models across multiple performance metrics. Specifically, the RF-ABC achieved an accuracy of 95%, precision of 90%, recall of 93%, and an F1-score of 90%. In comparison, the existing RF model yielded an accuracy of 81%, precision of 87%, recall of 84%, and an F1-score of 83%, while DT and KNN models recorded notably lower scores. DT obtained a PEI of 0.6900, PAI of 0.669 and RRI of 0.5200, while KNN has a PEI of 0.9647, PAI of 0.8670 and RRI of 0.5267, RF-ABC had the best result. PEI of 0.9800, PAI of 0.9000 and RRI of 0.7200. Crime prediction metrics show that These findings confirm that the integration of ABC with RF not only fine-tunes the hyperparameters efficiently but also enhances the model's predictive capabilities. The proposed hybrid approach shows promising potential for real-world crime analytic and decision support systems in law enforcement.

Keywords : Crime Prediction, Hyperparameter, Artificial Bee Colony (ABC), Random Forest.

References :

  1. Adeyemi, R. A., Mayaki, J., Zewotir, T. T., & Ramroop, S. (2021). Demography and Crime: A Spatial analysis of geographical patterns and risk factors of Crimes in Nigeria. Spatial Statistics, 41, 100485.
  2. Zhang, H., GAO, Y., Yao, D., & Zhang, J. (2023). Interaction of Crime Risk across Crime Types in Hotspot Areas. ISPRS International Journal of Geo-Information, 12(4), 176.
  3. Bischl, B., Binder, M., Lang, M., Pielok, T., Richter, J., Coors, S., & Lindauer, M. (2023).         Hyperparameter optimization: Foundations, algorithms, best practices, and open challenges. Wiley Interdisciplinary Reviews:Data Mining and Knowledge Discovery, 13(2), e1484.
  4. Zhao, C., & Cao, H. (2022). Risk Evaluation of the Destination Port Logistics based on Self-               Organizing Map Computing. In 2022 IEEE 22nd International Conference on Software Quality, Reliability, and Security Companion (QRS-C) (pp. 746-751). IEEE.
  5. Ganesh, M. S. S., Sujith, M. B. R. P., Aravindh, K. V., & Durgadevi, P. (2023). Crime Prediction Using Machine Learning Algorithms. Advances in Science and Technology, 124, 457-461.
  6. Plevris, V., Solorzano, G., Bakas, N. P., & Ben Seghier, M. E. A. (2022). Investigation of performance metrics in regression analysis and machine learning-based prediction models. In 8th European Congress on Computational Methods in Applied Sciences and     Engineering (ECCOMAS Congress 2022). European Community on Computational Methods in Applied Sciences.
  7. Yin, J. (2023). Crime Prediction Methods Based on Machine Learning: A Survey. Computers, Materials & Continua, 74(2).
  8. Alsayadi, H. A., Khodadadi, N., & Kumar, S. (2022). Improving the regression of communities and crime using ensemble of machine learning models. J. Artif. Intell. Metaheuristics, 1(1), 27-34.
  9. Campedelli, G. M. (2022). Machine Learning for Criminology and Crime Research: at the crossroads. Routledge.
  10. Herzog, C. (2022). On the risk of confusing interpretability with explicability. AI and Ethics, 2(1), 219-225.
  11. Ahamad, G. N., Shafiullah, Fatima, H., Imdadullah, Zakariya, S. M., Abbas, M., & Usman, M. (2023). Influence of optimal hyperparameters on the performance of machine learning algorithms for predicting heart disease. Processes, 11(3), 734.
  12. Omotehinwa, T. O., & Oyewola, D. O. (2023). Hyperparameter optimization of ensemble models for spam email detection. Applied Sciences, 13(3), 1971.
  13. Anyanwu, G. O., Nwakanma, C. I., Lee, J. M., & Kim, D. S. (2023). Novel hyper-tuned          ensemble random forest algorithm for the detection of false basic safety messages in internet of vehicles. ICT Express, 9(1), 122-129
  14. Wubineh, B. Z. (2024). Crime analysis and prediction using machine-learning approach in   the case of Hossana Police Commission. Security Journal, 1-16.
  15. Wheeler, A. P., &Steenbeek, W. (2021). Mapping the risk terrain for crime using machine learning. Journal of Quantitative Criminology, 37, 445-480.
  16. Liao, M., Wen, H., Yang, L., Wang, G., Xiang, X., & Liang, X. (2024). Improving the model   robustness of flood hazard mapping based on hyperparameter optimization of random         forest. Expert Systems with Applications, 241, 122682.
  17. Watts, D., Moulden, H., Mamak, M., Upfold, C., Chaimowitz, G., & Kapczinski, F. (2021). Predicting offenses among individuals with psychiatric disorders-A machine learning approach. Journal of Psychiatric Research138, 146-154.
  18. Rodrigues, A., González, J. A., & Mateu, J. (2023). A conditional machine learning classification approach for spatio-temporal risk assessment of crime data. Stochastic Environmental Research and Risk Assessment37(7), 2815-2828.
  19. Abubakar, H., Boukari, S., Gital, A. Y., & Zambuk, F. U. (2024). A hyper-parameter tuned Random Forest algorithm-based on Artificial Bee Colony for improving accuracy, precision and interpretability of crime prediction. Dutse Journal of Pure and Applied Sciences, 10(4a), 371-381
  20. Adorada, A., Permatasari, R., Wirawan, P. W., Wibowo, A., &Sujiwo, A. (2018, October).        Support vector machine-recursive feature elimination (svm-rfe) for selection of Micro RNA expression features of breast cancer. In 2018 2nd international conference on informatics and computational sciences (ICICoS) (pp. 1-4). IEEE.
  21. Awad, M., &Fraihat, S. (2023). Recursive feature elimination with cross-validation with decision tree: Feature selection method for machine learning-based intrusion detection       systems. Journal of Sensor and Actuator Networks, 12(5), 67.
  22. Van Patten, I. T., McKeldin-Coner, J., & Cox, D. (2009). A microspatial analysis of robbery: Prospective hot spotting in a small city. Crime Mapping: A journal of research and practice, 1(1), 7-32.

Crime prediction is a crucial application of machine learning, enabling law enforcement to make proactive decisions. This research presents a novel crime prediction model that leverages a hybrid approach by tuning the hyperparameters of Random Forest (RF) classifier using the Artificial Bee Colony (ABC) optimization algorithm. The model was developed to improve the prediction accuracy and reliability of crime prediction systems by enhancing the performance of traditional machine learning classifiers. To validate the effectiveness of the proposed RF-ABC model, a comparative analysis against Decision Trees (DT), k-Nearest Neighbors (KNN), and the existing untuned Random Forest model was conducted. Experimental results demonstrate that the proposed RF-ABC model significantly outperforms the baseline models across multiple performance metrics. Specifically, the RF-ABC achieved an accuracy of 95%, precision of 90%, recall of 93%, and an F1-score of 90%. In comparison, the existing RF model yielded an accuracy of 81%, precision of 87%, recall of 84%, and an F1-score of 83%, while DT and KNN models recorded notably lower scores. DT obtained a PEI of 0.6900, PAI of 0.669 and RRI of 0.5200, while KNN has a PEI of 0.9647, PAI of 0.8670 and RRI of 0.5267, RF-ABC had the best result. PEI of 0.9800, PAI of 0.9000 and RRI of 0.7200. Crime prediction metrics show that These findings confirm that the integration of ABC with RF not only fine-tunes the hyperparameters efficiently but also enhances the model's predictive capabilities. The proposed hybrid approach shows promising potential for real-world crime analytic and decision support systems in law enforcement.

Keywords : Crime Prediction, Hyperparameter, Artificial Bee Colony (ABC), Random Forest.

CALL FOR PAPERS


Paper Submission Last Date
30 - November - 2025

Video Explanation for Published paper

Never miss an update from Papermashup

Get notified about the latest tutorials and downloads.

Subscribe by Email

Get alerts directly into your inbox after each post and stay updated.
Subscribe
OR

Subscribe by RSS

Add our RSS to your feedreader to get regular updates from us.
Subscribe