Classifier-Dependent Effects of Principal Component Analysis on Multiclass Crime-Type Prediction

Oluwaseun Adewale Olubunmi

Abstract


Dimensionality reduction is commonly treated as a preprocessing step in studies that classify crimes rather than as an experimental variable. Here we quantify the impact of dimensionality reduction on multiclass crime-type classification. We collected 2,319 police reports from Ekiti State, Nigeria and divided the reports into 16 crime types. We used eleven predictor variables which included demographic, geographic and temporal information. These variables were encoded and resulted in 27 dimensions. We then conducted PCA on the training data alone which resulted in 12 principal components explaining 95.88% of the variance. We trained ten different machine learning classifiers on the original variables and on the PCA transformed variables using the same class imbalance ratio on the training set. We tested the models on an unseen test set and report the macro-F1 score as our evaluation metric. The results showed that PCA improved the performance of six models and degraded the performance of four models. On average, PCA improved the model performance by 0.0194. The most notable improvement in performance was seen in Decision Tree (0.0749), Naive Bayes (0.0638) and XGBoost (0.0460). Random Forest was the best performing model overall when PCA was applied to the dataset, with a macro-F1 score of 0.3410. The best performing model without PCA was K-Nearest Neighbours (0.3229). PCA had very little impact on the performance of K-Nearest Neighbours (0.3223). Overall, PCA has a positive effect on some machine learning algorithms and a negative effect on others. Therefore, the use of PCA should be investigated independently for each type of classifier. 


Full Text:

PDF

References


Ahmad, R., Nawaz, A., Mustafa, G., Ali, T., Tlija, M., El-Meligy, M. A., & Ahmed, Z. (2024). CHART: Intelligent crime hotspot detection and real-time tracking using machine learning. Computers, Materials & Continua, 81(3), 4171–4194. https://doi.org/10.32604/cmc.2024.056971

Apicella, A., Isgrò, F., & Prevete, R. (2024). Don't push the button! Exploring data leakage risks in machine learning and transfer learning (arXiv:2401.13796). arXiv.

Bouke, A. L., & Abdullah, A. (2023). An empirical study of pattern leakage impact during data preprocessing on machine learning-based intrusion detection models reliability. Expert Systems with Applications, 230, Article 120715. https://doi.org/10.1016/j.eswa.2023.120715

Chawla, N. V., Bowyer, K. W., Hall, L. O., & Kegelmeyer, W. P. (2002). SMOTE: Synthetic minority over-sampling technique. Journal of Artificial Intelligence Research, 16, 321–357.

He, H., & Garcia, E. A. (2009). Learning from imbalanced data. IEEE Transactions on Knowledge and Data Engineering, 21(9), 1263–1284.

Jenga, K., Catal, C., & Kar, G. (2023). Machine learning in crime prediction. Journal of Ambient Intelligence and Humanized Computing, 14(3), 2887–2913. https://doi.org/10.1007/s12652-023-04530-y

Jolliffe, I. T., & Cadima, J. (2016). Principal component analysis: A review and recent developments. Philosophical Transactions of the Royal Society A, 374(2065), Article 20150202. https://doi.org/10.1098/rsta.2015.0202

Kapoor, S., & Narayanan, A. (2023). Leakage and the reproducibility crisis in machine-learning-based science. Patterns, 4, Article 100804. https://doi.org/10.1016/j.patter.2023.100804

Kounadi, O., Ristea, A., Araujo, A., & Leitner, M. (2020). A systematic review on spatial crime forecasting. Crime Science, 9(1). https://doi.org/10.1186/s40163-020-00116-7

Liu, Z., Lin, H., He, Q., & Wang, Y. (2022). Temporal-spatial distribution of various types of crime in the special wards of Tokyo. Journal of Geodesy and Geoinformation Science, 5(2), 19–28. https://doi.org/10.11947/j.JGGS.2022.0203

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

Pala, A. E., Moses, J., Ahamed, S. S. Z., Kokatnoor, S. A., & Kumar, S. (2025). Prediction of crime hotspots using machine-learning techniques. In Data science and applications (Lecture Notes in Networks and Systems, Vol. 1263, pp. 549–560). Springer. https://doi.org/10.1007/978-981-96-2724-0_40

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, Article 9.

Stalidis, P., Semertzidis, T., & Daras, P. (2021). Examining deep learning architectures for crime classification and prediction. Forecasting, 3(4), 741–762. https://doi.org/10.3390/forecast3040046

Vieira, T., Paulino, T., Souza, J. M. S., & Lima da Silva Junior, E. (2022). Crime prediction and prevention using police patrolling data: Challenges and prospects. Anais Estendidos da Conference on Graphics, Patterns and Images (SIBGRAPI). https://doi.org/10.5753/sibgrapi.est.2022.23285

Walczak, S. (2021). Predicting crime and other uses of neural networks in police decision making. Frontiers in Psychology, 12, Article 587943. https://doi.org/10.3389/fpsyg.2021.587943

Yin, J. (2023). Crime prediction methods based on machine learning: A survey. Computers, Materials & Continua, 74(2), 4601–4629. https://doi.org/10.32604/cmc.2023.034190

Zheng, J., & Rakovski, C. (2021). On the application of principal component analysis to classification problems. Data Science Journal, 20, Article 26. https://doi.org/10.5334/dsj-2021-026.


Refbacks

  • There are currently no refbacks.