Research Article

Predicting Hate Crime Bias Using Machine Learning Based on Multidimensional Socio-demographic and Incident Features

Sophia Zhou*
Crean Lutheran

* Corresponding author: [email protected]

Abstract

This study applies a Random Forest classifier to the FBI's national Uniform Crime Reporting (UCR) dataset containing 218,069 single-bias hate crimes from 1991to 2020. Within the dataset, crimes were predicted based on bias-driven motives: race, sexual orientation, gender, religion, or disability. Thirteen incident features were analyzed to form the prediction. The primary model chosen for this study oversampled the two smallest categories and tuned hyperparameters. Ultimately, an accuracy of 68.7% with F1 = 0.80 and recall = 0.93 was achieved for the main prediction target: racial bias. Five trials were conducted with different configurations of the train/test model, compared across two metrics. It can be seen that there is a significant trade-off between total balance within all 5 categories versus overall accuracy. It was determined the incident year was the dominant predictive feature, likely due to FBI changes in definition and classification across the 1991-2020 period. Results demonstrate the predictability of indicators within official records and are limited to UCR metrics of data collection.

Keywords: Hate Crime Classification; Random Forest; Racial bias; Class imbalance; FBI Uniform Crime Reporting
Published: August 12, 2026
DOI: 10.54254/2755-2721/2026.AST35981
Volume: ACE Vol.255
pp. 42-48
Download PDF

References

  1. Pezzella, F. S., Fetzer, M. D., & Keller, T. (2019). The dark figure of hate crime underreporting.American Behavioral Scientist. Advance online publication.
  2. Hate Crime Statistics Act of 1990, Pub. L. No. 101-275, 28 U.S.C. ยง 534. https://www.congress.gov/bill/101st-congress/house-bill/1048
  3. Holder, E., Edwards, B., & Osborne, D. (2022). An exploratory study on the structural and demographic predictors of hate crime across the rural-urban divide.Victims & Offenders, 19(3).
  4. Salazar, A. O. (2024). Detecting hate crimes through machine learning and natural language processing.Police Practice and Research, 25(6), 746โ€“768.
  5. Davani, A. M., Yeh, L., Atari, M., Kennedy, B., Portillo-Wightman, G., Gonzalez, E., Delong, N., Bhatia, R., Mirinjian, A., Ren, X., & Dehghani, M. (2019). Reporting the unreported: Event extraction for analyzing the local representation of hate crimes. InProceedings of the 2019 Conference on Empirical Methods in Natural Language Processing and the 9th International Joint Conference on Natural Language Processing(pp. 5753โ€“5757).
  6. U.S. Department of Justice, Federal Bureau of Investigation. (2021). Hate crime data collection: Methodology.
  7. Breiman, L. (2001). Random forests.Machine Learning, 45(1), 5โ€“32.