Jurnal Teknik Informatika (JUTIF)
Vol. 6 No. 5 (2025): JUTIF Volume 6, Number 5, Oktober 2025

Enhancing Customer Purchase Behavior Prediction Using PSO-Tuned Ensemble Machine Learning Models

Kafilla, Princess Iqlima (Unknown)
Utomo, Fandy Setyo (Unknown)
Karyono, Giat (Unknown)



Article Info

Publish Date
16 Oct 2025

Abstract

Predicting customer purchase behavior remains a significant challenge in e-commerce and marketing analytics due to its complex and nonlinear patterns. This study introduces a machine learning framework that integrates ensemble learning models with Particle Swarm Optimization (PSO) for hyperparameter tuning to improve classification accuracy and class discrimination. Several ensemble algorithms, including CatBoost, XGBoost, LightGBM, AdaBoost, and Gradient Boosting, were compared against a baseline Logistic Regression model, both with default and PSO-optimized configurations. Experiments on a real-world e-commerce dataset containing behavioral and demographic variables showed that ensemble methods substantially outperformed traditional models across accuracy, F1-score, and ROC AUC metrics. Notably, the PSO-tuned Gradient Boosting model achieved the highest ROC AUC of 0.9547, improving the AUC by approximately 0.0076 compared to its default configuration, while CatBoost obtained the highest overall accuracy and F1-score. PSO optimization was especially effective in enhancing simpler models such as Logistic Regression but showed marginal gains and some convergence instability in more complex ensemble models. Feature importance analyses consistently identified variables such as time spent on the website, discounts availed, age, and income as key drivers of purchase intent. These findings demonstrate the benefit of combining ensemble learning with metaheuristic optimization, offering actionable insights for developing robust, data-driven marketing strategies.

Copyrights © 2025






Journal Info

Abbrev

jurnal

Publisher

Subject

Computer Science & IT

Description

Jurnal Teknik Informatika (JUTIF) is an Indonesian national journal, publishes high-quality research papers in the broad field of Informatics, Information Systems and Computer Science, which encompasses software engineering, information system development, computer systems, computer network, ...