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)
ISSN 2460-7258, 1978-1520
Published 2026-10-31
Publisher IndoCEISS in colaboration with Universitas Gadjah Mada, Indonesia.
Language eng
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.
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.
Different organisations
Same organisation
Affiliation unknown
Thicker line = more joint articles · bigger circle = more articles
Show as table
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>
Citations and indexing
OpenAlex
Indexed
via DOI
0 citations
Crossref
Not found
Counts as reported by each index on 7 Nov 2026; indexes count citations differently.
Cite this article
APA 7
Oktavia, A. B., Utomo, A. P., & Adiyono, S. (2026). Comparison of Random Forest and XGBoost for Impulsive Buying Prediction. IJCCS (Indonesian Journal of Computing and Cybernetics Systems), 20(4). https://doi.org/10.22146/ijccs.125433
Copy
IEEE
A. B. Oktavia, A. P. Utomo, and S. Adiyono, “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.
Copy
Generated from the journal's metadata; check author names before use.