Evaluating the impact of class imbalance severity on data balancing techniques and perceived household crime safety machine learning classifiers
Author : Prof Tlhalitshi Volition Montshiwa, Ms Reatlegile Aobakwe Korogo, Ms Boitumelo Kobone
Abstract : This research investigates machine learning (ML) classifiers for predicting crime-related variables, specifically addressing class imbalance, where models favour the majority class and hinder minority class detection. Using the South African Victims of Crime Survey (2017–2018) to predict perceived household safety, the study evaluates how varying imbalance rates affect Random Oversampling (ROS), Random Under sampling (RUS), and Synthetic Minority Oversampling Technique (SMOTE) across Logistic Regression (LR), Support Vector Machines (SVM), Decision Trees (DT), and Random Forests (RF). Performance was assessed using accuracy, sensitivity, specificity, and F1-score. The results showed that DT and RF reliably maintain minority-class sensitivity under severe imbalance. In contrast, LR and SVM bias towards the majority class, producing biased high accuracy. Overall, ROS combined with Random Forest (ROS-RF) emerged as the best approach for predicting household safety perception, achieving superior accuracy, specificity, and F1-score, while RUS-RF yielded the highest sensitivity. The study demonstrates that overall accuracy is misleading when evaluating classifiers trained on imbalanced datasets. Instead, the F1-score provides a more reliable performance metric by balancing sensitivity and specificity. Therefore, the authors recommend implementing an automated pipeline to select the optimal data-balancing technique for a given classifier from a grid of balancing methods using the F1-score. Future research should explore advanced balancing strategies and ML algorithms as well as hybrid models to further explore their performance in complex imbalanced classification scenarios.
Keywords : Logistic Regression, Support Vector Machine, Decision Trees, Random Forest, data balancing techniques.
Conference Name : International Conference on Big Data Analytics and Statistical Modeling (ICBDASM - 26)
Conference Place : Cape Town, South Africa
Conference Date : 30th Nov 2026