ADDRESSING CLASS AND DEMOGRAPHIC IMBALANCE IN E-COMMERCE BEHAVIOR PREDICTION: A CASE STUDY USING SMOTE AND RESAMPLING TECHNIQUES
DOI:
https://doi.org/10.24191/mjoc.vo11i1.8077Keywords:
Classification, Consumer Behavior, Data Imbalance, Demographic Resampling, E-Commerce, SMOTEAbstract
In e-commerce predictive modeling, imbalanced data is a common challenge especially when both class and demographic attributes are unequally distributed. This study explores the combination of Synthetic Minority Oversampling Technique (SMOTE) and demographic resampling to improve the performance of models predicting online purchasing behavior in Malaysia. The first step is to use SMOTE to handle class imbalance in the five-point purchase intention scale classification. The second step is followed by gender imbalance, which is caused by a higher number of female respondents than male, this problem is solved through a combination of down-sampling and up-sampling. Further adjustments were made to balance other demographic factors such as age, employment status, and ethnicity. For this study the dataset, encompassing 1,126 survey responses, was analyzed using WEKA tools with six classifiers: J48, Random Tree, REPTree, JRip, PART, and OneR. Each classifier was evaluated in three stages: original data, after SMOTE, and after both SMOTE and demographic balancing. The results displayed clear improvements in model performance. For example, J48’s accuracy increases from 62.85% (unbalanced) to 98.69% (fully balanced), while Random Tree reached 99.29%. These results highlight the importance of addressing both class and demographic imbalances to develop better and more reliable models. The study improves to the limited research that combines SMOTE with demographic resampling in Malaysian e-commerce and offers practical insights for building better predictive models to support customer segmentation, targeting, and personalization. Future work could explore balancing more attributes and applying the method to ensemble or deep learning models for improved performance and interpretability.
References
Abdul Wadud Sorker, M., Siddika, A., Abedin Titly, T., Jueal Mia, M., & Hasan Imam Bijoy, M. (2022). Online Consumer Alignment using Supervised Machine Learning Technique. 2022 13th International Conference on Computing Communication and Networking Technologies, ICCCNT 2022, 1–7. https://doi.org/10.1109/ICCCNT54827.2022.9984234
Carvalho, M., Pinho, A. J., & Brás, S. (2025). Resampling approaches to handle class imbalance: a review from a data perspective. Journal of Big Data, 12(1). https://doi.org/10.1186/s40537-025-01119-4
Cheng, K., Zhang, C., Yu, H., Yang, X., Zou, H., & Gao, S. (2019). Grouped SMOTE with Noise Filtering Mechanism for Classifying Imbalanced Data. IEEE Access, 7, 170668–170681. https://doi.org/10.1109/ACCESS.2019.2955086
Diwandari, S., Permanasari, A. E., & Hidayah, I. (2024). Comparative Evaluation of Resampling Techniques on Machine Learning for Predicting Customer Purchasing Behavior. 8th International Conference on Information Technology 2024, InCIT 2024, 103–108. https://doi.org/10.1109/InCIT63192.2024.10810628
Fitriyani, A., Priatna, W., Lestari, T. S., Handayani, D., Munandar, T. B. A., & Amri. (2022). Data Balance Optimization of Fraud Classification for E-Commerce Transaction. 2022 7th International Conference on Informatics and Computing, ICIC 2022, 1–4. https://doi.org/10.1109/ICIC56845.2022.10007028
Grina, F., Elouedi, Z., & Lefevre, E. (2020). A Preprocessing Approach for Class-Imbalanced Data Using SMOTE and Belief Function Theory. Lecture Notes in Computer Science (Including Subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics), 12490 LNCS, 3–11. https://doi.org/10.1007/978-3-030-62365-4_1
Hairani, H., Widiyaningtyas, T., & Prasetya, D. D. (2024). Addressing Class Imbalance of Health Data: a Systematic Literature Review on Modified Synthetic Minority Oversampling Technique (SMOTE) Strategies. International Journal on Informatics Visualization, 8(3), 1310–1318. https://doi.org/10.62527/joiv.8.3.2283
Husain, G., Nasef, D., Jose, R., Mayer, J., Bekbolatova, M., Devine, T., & Toma, M. (2025). SMOTE vs. SMOTEENN: A Study on the Performance of Resampling Algorithms for Addressing Class Imbalance in Regression Models. Algorithms, 18(1), 1–16. https://doi.org/10.3390/a18010037
Ibrahim, N., Ishak, U. M., Ali, N. N. A., & Shaadan, N. (2024). Machine Learning-Based Approaches for Credit Card Debt Prediction. Malaysian Journal of Computing (Mjoc), 9(1), 1722–1733. https://doi.org/10.24191/mjoc.v9i1.25656
Khamsan, M. M., & Maskat, R. (2019). Handling Highly Imbalanced Output Class Label: a Case Study on Fantasy Premier League (Fpl) Virtual Player Price Changes Prediction Using Machine Learning. Malaysian Journal of Computing, 4(2), 304–316. https://www.calculator.net/standard-deviation-calculator.html
Rachmatullah, M. I. C. (2022). The Application of Repeated SMOTE for Multi Class Classification on Imbalanced Data. MATRIK : Jurnal Manajemen, Teknik Informatika Dan Rekayasa Komputer, 22(1), 13–24. https://doi.org/10.30812/matrik.v22i1.1803
Rakib Mollah, M. A., Jahangir Kabir, M. M., Reza, M. S., & Kabir, M. (2024). Adapting Contextual Embedding to Identify Sentiment of E-commerce Consumer Reviews with Addressing Class Imbalance Issues. 2024 International Conference on Advances in Computing, Communication, Electrical, and Smart Systems: Innovation for Sustainability, ICACCESS 2024, 1–6. https://doi.org/10.1109/iCACCESS61735.2024.10499554
Selvalakshmi, V., Sree, T. M. U., Saranya, S., Devi, A. U., & Basha, M. S. A. (2025). Enhancing Customer Personality Prediction using Advanced Machine Learning Techniques and Data Balancing Strategies: A Comprehensive Approach to Addressing Imbalanced Datasets in Marketing Analytics. International Conference on Intelligent Systems and Computational Networks, ICISCN 2025, 1–7. https://doi.org/10.1109/ICISCN64258.2025.10934379
Shafie, S., Peng Ooi, S., & Khaw, K. W. (2023). Prediction of Employee Promotion Using Hybrid Sampling Method With Machine Learning Architecture. Malaysian Journal of Computing, 8(1), 1264–1286. https://doi.org/10.24191/mjoc.v8i1.18456
Zhang, W., & Zeng, N. (2024). An explainable hybrid model of Tourism User Behavior prediction based on SMOTE-XGBoost. ACM International Conference Proceeding Series, 406–410. https://doi.org/10.1145/3696500.3696567
Downloads
Published
Issue
Section
License
Copyright (c) 2026 NURUL AIN BINTI MUSTAKIM, Maslina Abdul Aziz, Shuzlina Abdul-Rahman, Rahmiati Rahmiati

This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.




