Comparison of Random Forest and XGBoost for Lead Conversion Prediction to Improve Sales Forecasting Accuracy in CRM Systems
DOI:
https://doi.org/10.70356/jafotik.v4i2.132Keywords:
lead scoring, random forest, xgboost, machine learning, crmAbstract
This study aims to compare the performance of Random Forest and XGBoost algorithms for customer lead scoring classification within a Customer Relationship Management (CRM) system for a CCTV business in Palembang City. The dataset consisted of 500 customer records collected from 2023 to 2025 and classified into three lead-scoring categories: Hot, Warm, and Cold. The research process involved data preprocessing, an 80:20 training–testing split, model development, and performance evaluation using Accuracy, Precision, Recall, and F1-Score. The results showed that Random Forest achieved an Accuracy of 88.00%, Precision of 89.31%, Recall of 88.00%, and F1-Score of 87.68%. In comparison, XGBoost achieved superior performance, with an Accuracy of 90.00%, Precision of 90.48%, Recall of 90.00%, and F1-Score of 89.89%. These results indicate that XGBoost outperformed Random Forest in classifying customer lead scores and was therefore identified as the best-performing model for the dataset. In addition, product prediction analysis indicated that CCTV Outdoor had the highest predicted sales potential for 2026, with 112 predicted occurrences (22.4%). Overall, the findings demonstrate that machine learning can support customer prioritization, product potential analysis, and data-driven sales strategies within CRM systems.
Downloads
References
M. T. Hidayat and M. Sulistiyono, “Analisis Performa Algoritma XGBoost, GRU, dan Prophet dalam Peramalan Penjualan Obat untuk Optimasi Rantai Pasok Farmasi,” Jurnal Pendidikan dan Teknologi Indonesia, vol. 5, no. 1, pp. 65–73, 2025, doi: https://doi.org/10.52436/1.jpti.562.
S. Jafari, J. H. Yang, and Y. C. Byun, “Optimized XGBoost modeling for accurate battery capacity degradation prediction,” Results in Engineering, vol. 24, Dec. 2024, doi: https://doi.org/10.1016/j.rineng.2024.102786.
P. M. Izzati and F. Fitriyani, “Implementasi Algoritma XGBoost Untuk Prediksi Capaian Bulanan Pendapatan Daerah Kota Bandung,” Jurnal CoSciTech (Computer Science and Information Technology), vol. 6, no. 2, pp. 104–111, 2025, https://doi.org/10.37859/coscitech.v6i2.9578.
S. Sukarti and E. Ekastini, “Prediksi target pendapatan pajak daerah di Kabupaten Sumbawa menggunakan algoritma Extreme Gradient Boosting (XGBoost),” TEKNIMEDIA: Teknologi Informasi dan Multimedia, vol. 7, no. 1, 2026, doi: https://doi.org/10.46764/teknimedia.v7i1.366.
F. Pratama, E. Ali, Rahmaddeni, and W. Agustin, “Perbandingan Kinerja Xgboost Dan Lightgbm Dalam Klasifikasi Depresi Pada Mahasiswa Berdasarkan Faktor Demografi Dan Akademik,” Jurnal Algoritma, vol. 22, no. 2, pp. 53–64, Nov. 2025, doi: https://doi.org/10.33364/algoritma/v.22-2.2439.
A. Pratama, S. Assegaff, J. Jasmir, and N. Nurhadi, “Optimizing Heart Disease Classification Using C4. 5, Random Forest, and XGBoost with ANOVA, Chi-Square, and AdaBoost,” Jurnal Teknik Informatika (Jutif), vol. 7, no. 2, pp. 1072–1090, 2026, doi: https://doi.org/10.52436/1.jutif.2026.7.2.5430.
A. J. B. Nainggolan, Y. A. H. Hutajulu, K. Kevin, and M. N. K. Nababan, “Hybrid LSTM–XGBoost Model with Residual Error Correction for Multivariate Gold Price Forecasting Using Macroeconomic Indicators,” Research in Education, Technology, and Multiculture, vol. 5, no. 1, pp. 60–74, 2026, doi: https://doi.org/10.61436/rietm/v5i1.pp60-74.
A. Ashari, Z. Situmorang, and R. Rosnelly, “Long Short Term Memory and Gradient Boosting Model for One Day Ahead Forecasting of ANTAM Gold Bar Prices,” Jurnal Teknik Informatika (JUTIF), vol. 7, no. 2, pp. 1704–1713, 2026, doi: https://doi.org/10.52436/1.jutif.2026.7.2.5630.
F. A. Larasati, D. E. Ratnawati, and B. T. Hanggara, “Analisis Sentimen Ulasan Aplikasi Dana dengan Metode Random Forest,” Jurnal Pengembangan Teknologi Informasi Dan Ilmu Komputer, vol. 6, no. 9, pp. 4305–4313, 2022.
A. Aprianto et al., “Classifying heart disease through fusion of multi-source datasets: Integration of feature selection and explainable machine learning techniques,” IJCCS (Indonesian Journal of Computing and Cybernetics Systems).
R. C. Wang and R. P. Avrianto, “Improving Detection Accuracy of Network Intrusions Using a Hybrid Network Intrusion Detection System Based on Isolation Forest and Random Forest Algorithms,” vol. 6, no. 6, pp. 5371–5385, 2025, doi: https://doi.org/10.52436/1.jutif.2025.6.6.4694.
S. L. Sari, B. Rahmat, and K. Kartini, “Penerapan Algoritma Grid Search untuk Memprediksi Customer Churn pada Bank Menggunakan Perbandingan Optimasi Decision Tree dan Random Forest,” JATI (Jurnal Mahasiswa Teknik Informatika), vol. 10, no. 1, pp. 908–913, 2026, doi: https://doi.org/10.36040/jati.v10i1.16819.
A. Riansah, O. Nurdiawan, and R. Herdiana, “Penerapan Algoritma Random Forest Dan Decision Tree Untuk Meningkatkan Akurasi Klasifikasi Penjualan Pada Toko Bangunan,” JATI (Jurnal Mahasiswa Teknik Informatika), vol. 9, no. 3, pp. 4242–4249, 2025, doi: https://doi.org/10.36040/jati.v9i3.13622.
K. Inayah et al., “ANALISIS KINERJA INTRUSION DETECTION SYSTEM BERBASIS ALGORITMA PERFORMANCE ANALYSIS OF INTRUSION DETECTION SYSTEM BASED ON RANDOM FOREST ALGORITHM USING UNBALANCED HONEYNET BSSN,” vol. 4, no. 11, 2024, doi: https://doi.org/10.25126/jtiik.1148911.
W. A. Rahmat, S. M. Ladjamuddin, and D. T. Awaludin, “Perbandingan algoritma Decision Tree, Random Forest dan naive bayes pada prediksi penilaian kepuasan penumpang maskapai pesawat menggunakan dataset KAGGLE,” Jurnal Rekayasa Informasi, vol. 12, no. 2, pp. 150–159, 2023.
S. K. Kiangala and Z. Wang, “An effective adaptive customization framework for small manufacturing plants using extreme gradient boosting-XGBoost and random forest ensemble learning algorithms in an Industry 4.0 environment,” Machine Learning with Applications, vol. 4, p. 100024, 2021, doi: https://doi.org/10.1016/j.mlwa.2021.100024.
Downloads
Published
How to Cite
Issue
Section
License
Copyright (c) 2026 Muhammad Adreo Novriansyah, Ahmad Syazili

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








