Melola Discovery

← Melola Discovery

Open access Journal SINTA 2

Comparison of Random Forest and XGBoost for Impulsive Buying Prediction

IJCCS (Indonesian Journal of Computing and Cybernetics Systems) · Vol. 20 No. 4 (2026)

DOI
10.22146/ijccs.125433
ISSN
2460-7258, 1978-1520
Published
2026-10-31
Publisher
IndoCEISS in colaboration with Universitas Gadjah Mada, Indonesia.
Language
eng
License
creativecommons.org/licenses/by-sa/4.0

Abstract

This study compares Random Forest and XGBoost for predicting impulsive buying among mobile marketplace users using historical data from 2022 and questionnaire data from 2026. The research stages include preprocessing, feature and target construction, stratified data splitting, class imbalance handling using SMOTE within a pipeline, and model evaluation using Accuracy, Precision, Recall, F1-Score, and Area Under the Curve (AUC). GridSearchCV with five-fold cross-validation was used for model selection, while SHAP was employed to interpret feature contributions to predictions. On the 2022 historical data, Random Forest achieved an F1-Score of 0.8129 and an AUC of 0.8260, outperforming XGBoost, which obtained an F1-Score of 0.7922 and an AUC of 0.7933. On the 2026 questionnaire data, both algorithms achieved an F1-Score of 0.9279, while Random Forest obtained an AUC of 0.8724 compared with 0.8432 for XGBoost. SHAP analysis identified Hedonic Browsing as the feature with the greatest predictive contribution in both datasets. Overall, Random Forest achieved a higher mean cross-validation F1-Score on both datasets.

Keywords

Collaboration network of the authors

5 authors · 6 co-authorship links

Hover or tap a name to highlight its co-authors. Double-click to open the author's page.

  • Muria Kudus University
  • Different organisations
  • Same organisation
  • Affiliation unknown
  • Thicker line = more joint articles · bigger circle = more articles
Show as table
Co-authorOrganisationJoint articles
noor latifahMuria Kudus University1
imelda annas fatiaMuria Kudus University1

Affiliations come from OpenAlex; journal OAI-PMH metadata carries none. Authors without an OpenAlex ID are matched by name, which can merge or split people.

Metadata source: OAI-PMH (metadata jurnal) https://journal.ugm.ac.id/ijccs/oai, first harvested 1 Nov 2026, last seen 22 Nov 2026.
Original metadata (oai_dc)
<oai_dc:dc xmlns="http://www.openarchives.org/OAI/2.0/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:oai_dc="http://www.openarchives.org/OAI/2.0/oai_dc/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.openarchives.org/OAI/2.0/oai_dc/  http://www.openarchives.org/OAI/2.0/oai_dc.xsd">
	<dc:title xml:lang="en-US">Comparison of Random Forest and XGBoost for Impulsive Buying Prediction</dc:title>
	<dc:creator>Oktavia, Adinda Bintang</dc:creator>
	<dc:creator>Utomo, Andy Prasetyo</dc:creator>
	<dc:creator>Adiyono, Soni</dc:creator>
	<dc:subject xml:lang="en-US"></dc:subject>
	<dc:subject xml:lang="en-US">Impulsive Buying, Mobile Marketplace; Random Forest; XGBoost; SHAP</dc:subject>
	<dc:description xml:lang="en-US">This study compares Random Forest and XGBoost for predicting impulsive buying among mobile marketplace users using historical data from 2022 and questionnaire data from 2026. The research stages include preprocessing, feature and target construction, stratified data splitting, class imbalance handling using SMOTE within a pipeline, and model evaluation using Accuracy, Precision, Recall, F1-Score, and Area Under the Curve (AUC). GridSearchCV with five-fold cross-validation was used for model selection, while SHAP was employed to interpret feature contributions to predictions. On the 2022 historical data, Random Forest achieved an F1-Score of 0.8129 and an AUC of 0.8260, outperforming XGBoost, which obtained an F1-Score of 0.7922 and an AUC of 0.7933. On the 2026 questionnaire data, both algorithms achieved an F1-Score of 0.9279, while Random Forest obtained an AUC of 0.8724 compared with 0.8432 for XGBoost. SHAP analysis identified Hedonic Browsing as the feature with the greatest predictive contribution in both datasets. Overall, Random Forest achieved a higher mean cross-validation F1-Score on both datasets.</dc:description>
	<dc:publisher xml:lang="en-US">IndoCEISS in colaboration with Universitas Gadjah Mada, Indonesia.</dc:publisher>
	<dc:contributor xml:lang="en-US"></dc:contributor>
	<dc:date>2026-10-31</dc:date>
	<dc:type>info:eu-repo/semantics/article</dc:type>
	<dc:type>info:eu-repo/semantics/publishedVersion</dc:type>
	<dc:type xml:lang="en-US"></dc:type>
	<dc:format>application/pdf</dc:format>
	<dc:identifier>https://journal.ugm.ac.id/ijccs/article/view/125433</dc:identifier>
	<dc:identifier>10.22146/ijccs.125433</dc:identifier>
	<dc:source xml:lang="en-US">IJCCS (Indonesian Journal of Computing and Cybernetics Systems); Vol 20, No 4 (2026): October</dc:source>
	<dc:source>2460-7258</dc:source>
	<dc:source>1978-1520</dc:source>
	<dc:language>eng</dc:language>
	<dc:relation>https://journal.ugm.ac.id/ijccs/article/view/125433/45924</dc:relation>
	<dc:rights xml:lang="en-US">Copyright (c) 2026 IJCCS (Indonesian Journal of Computing and Cybernetics Systems)</dc:rights>
	<dc:rights xml:lang="en-US">http://creativecommons.org/licenses/by-sa/4.0</dc:rights>
</oai_dc:dc>