Application of K-Means, Random Forest, and Linear Regression to Improve the Accuracy of Kaggle E-Commerce Shopping Behavior Analysis
Journal of Sustainable Software Engineering and Information Systems · 04.05.2026 · 2 (1) · 41-53
DOI: 10.58723/jsseis.v2i1.175 ↗Kurz gefasst
Fachartikel in der Zeitschrift Journal of Sustainable Software Engineering and Information Systems, online erschienen am 04.05.2026. Verfasst von Azzahra Risa Putri und 2 weiteren Autor:innen. Gefördert von: #.
Abstract (Originalsprache)
Background
Analyzing customer shopping behavior is essential for improving e-commerce marketing strategies. The use of machine learning enables the identification of purchasing patterns and enhances predictive accuracy in understanding customer preferences.
Aims
This study aims to improve model accuracy and classification performance in analyzing customer shopping behavior using the shopping_behavior_updated.csv dataset from Kaggle. The scope includes the application of both supervised and unsupervised learning techniques for segmentation, classification, and prediction tasks.
Methods
Three machine learning algorithms were applied: K-Means for customer segmentation, Random Forest Classifier for product category prediction, and Linear Regression for estimating purchase amounts. The research involved systematic preprocessing steps, including data cleaning, encoding, scaling, and feature engineering to enhance data quality and model interpretability.
Result
The results show that the optimized Random Forest model achieved 100% accuracy. K-Means clustering produced five distinct customer segments with an inertia value of 41,928.17 and a silhouette score of 0.065. However, the Linear Regression model demonstrated poor performance with an R² value of -0.02.
Conclusion
The findings indicate that integrating supervised and unsupervised learning methods is effective in identifying customer purchasing patterns and can contribute to improving e-commerce marketing strategies, although not all predictive models yield optimal performance.
Förderung
- #
Zitieren
APA
Putri, A. R., Olivia, A. D., & Josica, V. C. (2026). Application of K-Means, Random Forest, and Linear Regression to Improve the Accuracy of Kaggle E-Commerce Shopping Behavior Analysis. Journal of Sustainable Software Engineering and Information Systems, 2(1), 41-53. https://doi.org/10.58723/jsseis.v2i1.175
Vancouver
Putri AR, Olivia AD, Josica VC. Application of K-Means, Random Forest, and Linear Regression to Improve the Accuracy of Kaggle E-Commerce Shopping Behavior Analysis. Journal of Sustainable Software Engineering and Information Systems. 2026;2(1):41-53. doi:10.58723/jsseis.v2i1.175
BibTeX
@article{Putri2026,
author = {Putri, Azzahra Risa and Olivia, Anggraini Dwi and Josica, Virha Charoline},
title = {Application of K-Means, Random Forest, and Linear Regression to Improve the Accuracy of Kaggle E-Commerce Shopping Behavior Analysis},
journal = {Journal of Sustainable Software Engineering and Information Systems},
year = {2026},
volume = {2},
number = {1},
pages = {41--53},
doi = {10.58723/jsseis.v2i1.175}
}
EUVIMED