City Crime Mapping Using Machine Learning Techniques

  • Nitish Yadav
  • Ashish KumarEmail author
  • Roheet Bhatnagar
  • Vivek Kumar Verma
Conference paper
Part of the Advances in Intelligent Systems and Computing book series (AISC, volume 921)


In order to prevent a crime it is very important to analyze and understand the patterns of criminal activity of that place. Police Department can work effectively and efficiently if the crime pattern is known to them. In this work, we attempted an exploratory analysis of a standard dataset in order to predict the resolution that was given for the crimes that occurred from 2003 to 2015. The dataset is obtained from San Francisco Police Department Crime Incident Reporting System. We used Machine Learning Algorithms like CART, K-NN, Gaussian Naive Bayes, and Multilayer Perceptron (MLP). Validation and cross validation were used to test the results of each technique. The experiment shows that we can obtains higher accuracy by using CART algorithm.


Crime classification CART K-NN Gaussian Naive Bayes 


  1. 1.
    San Francisco - crime rates and statistics.
  2. 2.
    Abdulrahman, N., Abedalkhader, W.: KNN classifier and naïve bayse classifier for crime prediction in San Francisco context (2017)Google Scholar
  3. 3.
    Abouelnaga, Y.: San Francisco crime classification. arXiv preprint arXiv:1607.03626 (2016)
  4. 4.
    Ang, S.T., Wang, W., Chyou, S.: San Francisco crime classification. University of California San Diego (2015)Google Scholar
  5. 5.
    Bogomolov, A., Lepri, B., Staiano, J., Oliver, N., Pianesi, F., Pentland, A.: Once upon a crime: towards crime prediction from demographics and mobile data. In: Proceedings of the 16th International Conference on Multimodal Interaction, pp. 427–434. ACM (2014)Google Scholar
  6. 6.
    Braithwaite, J.: Crime Shame and Reintegration. Cambridge University Press, Cambridge (1989)CrossRefGoogle Scholar
  7. 7.
    Breiman, L.: Classification and Regression Trees. Routledge, New York (2017)CrossRefGoogle Scholar
  8. 8.
    Ehrlich, I.: On the relation between education and crime. In: Education, Income, and Human Behavior, pp. 313–338. NBER (1975)Google Scholar
  9. 9.
    Freeman, R.B.: The Economics of Crime. Handbook of Labor Economics, vol. 3, pp. 3529–3571 (1999)Google Scholar
  10. 10.
    Hanley, J.A., McNeil, B.J.: The meaning and use of the area under a receiver operating characteristic (ROC) curve. Radiology 143(1), 29–36 (1982)CrossRefGoogle Scholar
  11. 11.
    Michalski, R.S., Carbonell, J.G., Mitchell, T.M.: Machine Learning: An Artificial Intelligence Approach. Springer, Heidelberg (2013)zbMATHGoogle Scholar
  12. 12.
    Patterson, E.B.: Poverty, income inequality, and community crime rates. Criminology 29(4), 755–776 (1991)CrossRefGoogle Scholar
  13. 13.
    Sadhana, C.: Survey on Predicting Crime Using Twitter Sentiment and Weather Data (2015)Google Scholar
  14. 14.
    Shojaee, S., Mustapha, A., Sidi, F., Jabar, M.A.: A study on classification learning algorithms to predict crime status. Int. J. Digital Content Technol. Appl. 7(9), 361 (2013)Google Scholar
  15. 15.
    Data Transformation: Learning with Counts. Microsoft Azure Machine (2015)Google Scholar
  16. 16.
    Wang, X., Gerber, M.S., Brown, D.E.: Automatic crime prediction using events extracted from twitter posts. In: International Conference on Social Computing, Behavioral-cultural Modeling, and Prediction, pp. 231–238. Springer (2012)Google Scholar
  17. 17.
    Witten, I.H., Frank, E., Hall, M.A., Pal, C.J.: Data Mining: Practical Machine Learning Tools and Techniques. Morgan Kaufmann (2016)Google Scholar

Copyright information

© Springer Nature Switzerland AG 2020

Authors and Affiliations

  • Nitish Yadav
    • 1
  • Ashish Kumar
    • 1
    Email author
  • Roheet Bhatnagar
    • 1
  • Vivek Kumar Verma
    • 2
  1. 1.Department of Computer Science and EngineeringManipal University JaipurJaipurIndia
  2. 2.Department of Information and TechnologyManipal University JaipurJaipurIndia

Personalised recommendations