Skip to main content

Modeling Public Crime Type Using Multinomial Logistic Regression and K-Nearest Neighbor: Pre-and During-Pandemic COVID-19

  • Conference paper
  • First Online:
Recent Advances in Soft Computing and Data Mining (SCDM 2022)

Part of the book series: Lecture Notes in Networks and Systems ((LNNS,volume 457))

Included in the following conference series:

  • 262 Accesses

Abstract

There are common factors that characterize individuals who commit crime. Statistically, relationship between factors could be measured and formed using regression models. While modeling crime rates was widely approached using the ordinary regression model. However, this model is not much capable for categorical response variables such as crime type. In this paper, we are interested to classify crime type using some independent variables using multinomial logistic regression and \(K\)-Nearest Neighbor (\(K\)-NN) models. While both are powerful models for classification purposes. The secondary crime data was collected from 2019 (pre-pandemic) and 2020 (during a pandemic) in the police office of Payakumbuh Region, West Sumatra, Indonesia. The results indicate that the crime type was influenced by employment status (unemployed persons) and time occurring (daytime) for both years periods. In the testing data phase, the average of accuracy levels of ​​multinomial logistic regression and \(K\)-NN are 66.81% and 73.86%, respectively. In this case study, \(K\)-NN model is better approach to be used for the prediction and classification of crime type if compared with multinomial logistic regression. Both models could be considered for supporting the police divisions on decision making and prevention strategy.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 229.00
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 299.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info
Hardcover Book
USD 299.99
Price excludes VAT (USA)
  • Durable hardcover edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

References

  1. Wibowo, A.H., Wijaya, A.R.: Kajian awal profiling kejahatan dan strategi dalam usaha mencegah terjadinya tindak kriminalitas di Kabupaten Sleman. In: Proceeding of National Conference IDEC, pp. 1–8 (2018)

    Google Scholar 

  2. Putra, A.D., Martha, G.S., Fikram, M., Yuhan, R.J.: Faktor-faktor yang mempengaruhi tingkat kriminalitas di Indonesia tahun 2018. Indones. J. App. Stat. 3, 123–131 (2018)

    Article  Google Scholar 

  3. Wibowo, A.H., Oesman, T.I.: The comparative on the accuracy of K-NN, Naïve Bayes and decision tree algorithms in predicting crimes and criminal actions in Sleman regency. J. Phys. Conf. Ser. 1450, 012076 (2020)

    Article  Google Scholar 

  4. Kang, S.: K-nearest neighbor learning with graph neural network. Mathematics 9, 1–12 (2021)

    Google Scholar 

  5. Pednekar, V., Mahale, T., Gadhave, P., Gore, A.: Crime rate prediction using KNN. Int. J. Recent Innov. Trend Compt. Comm. 6, 124–127 (2018)

    Google Scholar 

  6. Mahmud, S., Nuha, M., Sattar, A.: Crime rate prediction using machine learning and data mining. In: Borah, S., Pradhan, R., Dey, N., Gupta, P. (eds.) Soft Computing Techniques and Applications, vol. 1248, pp. 59–69. Springer, Singapore (2021). https://doi.org/10.1007/978-981-15-7394-1_5

    Chapter  Google Scholar 

  7. Kumar, A., Verma, A., Shinde, G., Sukhdeve, Y., Lal, N.: Crime prediction using K-NN algorithm. In: Proceeding ic-ETITE (2020)

    Google Scholar 

  8. Agresti, A.: Categorical Data Analysis, 3rd edn. Wiley, Hoboken (2012)

    MATH  Google Scholar 

  9. El-Habil, A.M.: An application on multinomial logistic model. Pak. J. Stat. Oper. Res. 7, 271–291 (2012)

    Article  Google Scholar 

  10. Shah, N., Bhagat, N., Shah, M.: Crime forecasting: a machine learning and computer vision approach to crime prediction and prevention. Vis. Comput. Ind. Biomed. Art 4(1), 1–14 (2021). https://doi.org/10.1186/s42492-021-00075-z

    Article  Google Scholar 

  11. Kim, K.-S., Jeong, Y.-H.: A study on crime prediction to reduce crime rate based on artificial intelligence. Korea J. Art. Intel. 9, 15–20 (2021)

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Riswan Efendi .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2022 The Author(s), under exclusive license to Springer Nature Switzerland AG

About this paper

Check for updates. Verify currency and authenticity via CrossMark

Cite this paper

Efendi, R., Isnaini, Y., Rahayu, S.W., Masri, R., Samsudin, N.A., Rasyidah (2022). Modeling Public Crime Type Using Multinomial Logistic Regression and K-Nearest Neighbor: Pre-and During-Pandemic COVID-19. In: Ghazali, R., Mohd Nawi, N., Deris, M.M., Abawajy, J.H., Arbaiy, N. (eds) Recent Advances in Soft Computing and Data Mining. SCDM 2022. Lecture Notes in Networks and Systems, vol 457. Springer, Cham. https://doi.org/10.1007/978-3-031-00828-3_32

Download citation

Publish with us

Policies and ethics