Addressing class and demographic imbalance in e-commerce behavior prediction: a case study using resampling techniques

Mustakim, Nurul Ain and Abdul Aziz, Maslina and Abdul Rahman, Shuzlina and Rahmiati, Rahmiati (2026) Addressing class and demographic imbalance in e-commerce behavior prediction: a case study using resampling techniques. Malaysian Journal of Computing (MJoC), 11 (1): 1. pp. 2339-2347. ISSN 2600-8238
Identification Number (DOI): 10.24191/mjoc.vo11i1.8077
Abstract

In e-commerce predictive modeling, imbalanced data remains a critical challenge, particularly when both class labels and demographic attributes are unequally distributed. This study investigates a combined approach of Synthetic Minority Oversampling Technique (SMOTE) and demographic resampling to improve the performance of models predicting online purchasing behavior in Malaysia. Using a dataset of 1,126 survey responses, six classifiers (J48, Random Tree, REPTree, JRip, PART, and OneR) were evaluated under three conditions: unbalanced, after SMOTE, and after SMOTE with demographic balancing. The results displayed clear improvements in model performance. For example, J48’s accuracy increased from 62.85% (unbalanced) to 98.69% (fully balanced), while Random Tree achieved 99.29%. These results highlight the effectiveness of integrating class and demographic balancing, an approach seldom explored in e-commerce analytics. This study contributes by demonstrating how addressing both types of imbalances yields more reliable predictive model, offering practical insights for consumer segmentation, targeting, and personalization. Future work could extend this approach by balancing additional attributes and applying it to ensemble or deep learning models for improved robustness and interpretability.

Item Details
Edit Item
Edit Item
Downloads & Files
[thumbnail of 136297.pdf]
Text
136297.pdf
Download (260kB)
Indexing & Metrics