Predicting Customer Satisfaction Under Severe Class Imbalance in Online Retail Data
DOI:
https://doi.org/10.54536/jcbmm.v2i1.6573Keywords:
Customer Satisfaction, E-Commerce Analytics, Imbalanced Classification, Logistic Regression, Random Forests, Support Vector MachinesAbstract
This study examines the prediction of post-purchase customer satisfaction in an e-commerce setting using order-level transactional and behavioral data. Customer ratings from one to five stars are grouped into three classes representing low, medium, and high satisfaction. The resulting classification task shows a strong skew toward high ratings. Three supervised learning models are evaluated: a support vector machine with a radial basis function kernel, multinomial logistic regression with spline-expanded numeric predictors, and a random forest classifier. Input variables include demographic attributes, order characteristics, browsing behavior, and delivery information. Model performance is assessed using accuracy, macro-averaged precision, recall, F1-score, ROC-AUC, and confusion matrices. The random forest achieves the highest accuracy by predicting the dominant class, while the support vector machine and spline-based logistic regression show lower accuracy with more balanced class-wise results. The findings indicate that distinguishing dissatisfied and moderately satisfied customers remains difficult with the available feature set and label design
References
Breiman, L. (2001). Random forests. Machine Learning, 45(1), 5–32. http://dx.doi.org/10.1023/A:1010933404324
Cortes, C., & Vapnik, V. (1995). Support-vector networks. Machine Learning, 20(3), 273–297. https://doi.org/10.1007/BF00994018
He, H., & Garcia, E. A. (2009). Learning from imbalanced data. IEEE Transactions on Knowledge and Data Engineering, 21(9), 1263–1284. https://doi.org/ 10.1109/TKDE.2008.239
Kotler, P., & Keller, K. L. (2016). Marketing management (15th ed.). Pearson Education.
Oliver, R. L. (1997). Satisfaction: A behavioral perspective on the consumer. McGraw-Hill.
Rust, R. T., Zeithaml, V. A., & Lemon, K. N. (2000). Driving customer equity. Free Press.
Verbeke, W., Martens, D., & Baesens, B. (2014). Social network analysis for customer churn prediction. Applied Soft Computing, 14, 431–446. https://doi.org/10.1016/j.asoc.2013.09.017
Downloads
Published
Issue
Section
License
Copyright (c) 2026 Felix Reichel

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