ANALISIS PREDIKTIF EMPLOYEE ATTRITION MENGGUNAKAN XGBOOST, BAYESIAN TUNING, DAN SHAP

Authors

  • Nikko Riestian Putra Wardoyo Universitas PGRI Jombang
  • Anisah Nabilah Universitas PGRI Jombang
  • Siti Dinarti Universitas PGRI Jombang
  • Tito Dwi Saputro Universitas PGRI Jombang

DOI:

https://doi.org/10.36595/jire.v9i2.2147

Keywords:

employee attrition, XGBoost, SMOTE, bayesian tuning, SHAP

Abstract

Perputaran karyawan (employee attrition) merupakan tantangan strategis yang berdampak pada inefisiensi operasional perusahaan. Penelitian ini bertujuan mengembangkan model klasifikasi prediktif untuk mendeteksi attrition secara dini dan transparan menggunakan algoritma Extreme Gradient Boosting (XGBoost). Dataset IBM HR Analytics berisiko ketidakseimbangan kelas ekstrem, yang ditangani secara efektif melalui teknik Synthetic Minority Over-sampling Technique (SMOTE). Untuk menghindari inefisiensi pencarian parameter, optimasi diimplementasikan menggunakan Bayesian Tuning melalui kerangka kerja Optuna. Evaluasi komputasi menunjukkan model teroptimasi mencapai nilai Recall 34% dan F1-Score 40%. Meskipun capaian metrik ini merepresentasikan batasan empiris dari data tabular dalam memetakan kompleksitas sentimen manusia, angka tersebut secara operasional dinilai proporsional untuk mereduksi risiko False Negative pada deteksi kelas minoritas tanpa mengorbankan ketepatan prediksi secara drastis. Selain performa metrik, penelitian ini memecahkan masalah black-box pada algoritma pohon keputusan dengan mengintegrasikan Explainable AI berbasis SHapley Additive exPlanations (SHAP). Ekstraksi nilai SHAP mengungkapkan bahwa ketiadaan alokasi opsi saham (StockOptionLevel), penempatan di luar departemen riset, kepuasan kerja yang rendah, dan tingginya frekuensi lembur merupakan empat anomali utama pemicu pengunduran diri. Hasil penelitian ini tidak sekadar memberikan model prediktif, tetapi juga menghasilkan sistem diagnostik berbasis data yang dapat diinterpretasikan secara langsung oleh manajemen HR untuk merumuskan strategi retensi sumber daya manusia yang presisi.

Downloads

Download data is not yet available.

References

[1] P. Ajit, “Prediction of employee turnover in organizations using machine learning algorithms,” Algorithms, vol. 4, no. 5, p. C5, 2016.

[2] T. Akiba, S. Sano, T. Yanase, T. Ohta, and M. Koyama, “Optuna: A next-generation hyperparameter optimization framework,” in Proceedings of the 25th ACM SIGKDD international conference on knowledge discovery & data mining, 2019, pp. 2623–2631.

[3] M. Al-Ali, M. Alwateer, S. A. Alsaedi, H. M. Balaha, M. Badawy, and M. A. Elhosseini, “Integrating machine learning and explainable AI for employee attrition prediction in HR analytics: M. AL-Ali et al.,” Sci. Rep., vol. 16, no. 1, p. 6344, 2026.

[4] A. B. Arrieta et al., “Explainable Artificial Intelligence (XAI): Concepts, taxonomies, opportunities and challenges toward responsible AI,” Inf. fusion, vol. 58, pp. 82–115, 2020.

[5] J. Bergstra, R. Bardenet, Y. Bengio, and B. Kégl, “Algorithms for hyper-parameter optimization,” Adv. Neural Inf. Process. Syst., vol. 24, 2011.

[6] N. V Chawla, K. W. Bowyer, L. O. Hall, and W. P. Kegelmeyer, “SMOTE: synthetic minority over-sampling technique,” J. Artif. Intell. Res., vol. 16, pp. 321–357, 2002.

[7] T. Chen and C. Guestrin, “Xgboost: A scalable tree boosting system,” in Proceedings of the 22nd acm sigkdd international conference on knowledge discovery and data mining, 2016, pp. 785–794.

[8] D. Chung, J. Yun, J. Lee, and Y. Jeon, “Predictive model of employee attrition based on stacking ensemble learning,” Expert Syst. Appl., vol. 215, p. 119364, 2023.

[9] U. Fayyad, G. Piatetsky-Shapiro, and P. Smyth, “From data mining to knowledge discovery in databases,” AI Mag., vol. 17, no. 3, p. 37, 1996.

[10] P. I. Frazier, “A tutorial on Bayesian optimization,” arXiv Prepr. arXiv1807.02811, 2018.

[11] S. Garg, S. Sinha, A. K. Kar, and M. Mani, “A review of machine learning applications in human resource management,” Int. J. Product. Perform. Manag., vol. 71, no. 5, pp. 1590–1610, 2022.

[12] M. Haris, “Analysis of The Application Of Hyperparameter Tuning in Machine Learning to Increase The Accuracy of Sales-Level Prediction,” J. Inform. Rekayasa Elektron., vol. 7, no. 1, pp. 98–106, 2024.

[13] S. M. Lundberg and S.-I. Lee, “A unified approach to interpreting model predictions,” Adv. Neural Inf. Process. Syst., vol. 30, 2017.

[14] W. Narkbunnum and K. Hinthaw, “Interpretable gradient boosted modeling of employee attrition: A SHAP-based framework for HR analytics,” Int. J. Anal. Appl., vol. 23, p. 236, 2025.

[15] M. I. Rifatama, M. R. Faisal, R. Herteno, I. Budiman, and M. I. Mazdadi, “Optimasi Algoritma K-Nearest Neighbor Dengan Seleksi Fitur Menggunakan Xgboost,” J. Inform. dan Rekayasa Elektron., vol. 6, no. 1, pp. 64–72, 2023.

[16] C. Rudin, “Stop explaining black box machine learning models for high stakes decisions and use interpretable models instead,” Nat. Mach. Intell., vol. 1, no. 5, pp. 206–215, 2019.

[17] D. Taye and B. Getnet, “The Impact of Employee Turnover on Organizational Performance: A Case Study of Mada Walabu University, Bale Robe, Ethiopia,” Am. J. Pure Appl. Biosci., vol. 2, no. 3, pp. 51–63, 2020.

[18] N. R. P. Wardoyo, B. C. Perdana, and A. Nabilah, “KLASIFIKASI TINGKAT STRES PADA DATASET AFFECTNET MENGGUNAKAN HOG, SVM, DAN PSO,” J. Manaj. Inform. dan Sist. Inf., vol. 9, no. 2, pp. 248–261, 2026.

[19] N. R. P. Wardoyo, J. Santoso, and E. I. Setiawan, “Klasifikasi Micro-Expression Menggunakan K-Nearest Neighbors Menggunakan Fitur CAS dan HOG,” J. Intell. Syst. Comput., vol. 5, no. 2, pp. 96–103, 2023.

[20] J. Wu, X.-Y. Chen, H. Zhang, L.-D. Xiong, H. Lei, and S.-H. Deng, “Hyperparameter optimization for machine learning models based on Bayesian optimization,” J. Electron. Sci. Technol., vol. 17, no. 1, pp. 26–40, 2019.

Downloads

Published

2026-11-25

How to Cite

1.
Wardoyo NRP, Nabilah A, Dinarti S, Saputro TD. ANALISIS PREDIKTIF EMPLOYEE ATTRITION MENGGUNAKAN XGBOOST, BAYESIAN TUNING, DAN SHAP. JIRE [Internet]. 2026 Nov. 25 [cited 2026 Nov. 25];9(2):296-303. Available from: http://e-journal.stmiklombok.ac.id/index.php/jire/article/view/2147