Improving Employee Attrition Prediction with Cost-Sensitive XGBoost for Imbalanced HR Data

Employee attrition disrupts operations and raises costs, while class imbalance can mask missed departures. This study compares class-weighted XGBoost with five baseline models using 1,470 records and 30 predictors from IBM’s HR attrition dataset and a stratified 80/20 train–test split. Here, cost-sensitive XGBoost denotes class-weighted learning through scale_pos_weight = 5.1895, calculated from the training-class ratio rather than an observed monetary misclassification cost. By common threshold of 0.50, this model achieved the highest observed Recall (57.45%), F1-score (47.79%), Balanced Accuracy (70.83%) among the original evaluated configurations. It identified 27 of 47 employees who left, with 20 false negatives and 39 false positives; its Accuracy was 79.93% and ROC-AUC was 0.7767. Logistic Regression achieved higher Accuracy (86.39%), Precision (64.00%), ROC-AUC (0.8102), and PR-AUC (0.5927). A relative error-cost analysis favored the weighted model at assumed false-negative/false-positive cost ratios of 5 and 10, whereas Logistic Regression had lower estimated costs at error-cost ratios of 1 and 2. Weighted XGBoost detected more departures but generated more false alerts, with uncertain recall (95% CI: 43.28%–70.49%, based on 47 positive cases). Overall superiority, statistical significance, and actual savings remain unestablished. On F1 (50.39%), Weighted CatBoost dominated albeit on a different training regime, with the original baselines still not reproduced.

Authors

Publication Details

Journal
Iraqi Journal of Information and Technology Systems
Published
2026-12-03
DOI
https://doi.org/10.112222/ijits.v1.i2.25496
Primary Topic
AI and HR Technologies
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
article

Improving Employee Attrition Prediction with Cost-Sensitive XGBoost for Imbalanced HR Data

Saif Abdulhussein
Iraqi Journal of Information and Technology Systems
AI and HR Technologies
article

Improving Employee Attrition Prediction with Cost-Sensitive XGBoost for Imbalanced HR Data

Saif Abdulhussein
article en

Abstract

Employee attrition disrupts operations and raises costs, while class imbalance can mask missed departures. This study compares class-weighted XGBoost with five baseline models using 1,470 records and 30 predictors from IBM’s HR attrition dataset and a stratified 80/20 train–test split. Here, cost-sensitive XGBoost denotes class-weighted learning through scale_pos_weight = 5.1895, calculated from the training-class ratio rather than an observed monetary misclassification cost. By common threshold of 0.50, this model achieved the highest observed Recall (57.45%), F1-score (47.79%), Balanced Accuracy (70.83%) among the original evaluated configurations. It identified 27 of 47 employees who left, with 20 false negatives and 39 false positives; its Accuracy was 79.93% and ROC-AUC was 0.7767. Logistic Regression achieved higher Accuracy (86.39%), Precision (64.00%), ROC-AUC (0.8102), and PR-AUC (0.5927). A relative error-cost analysis favored the weighted model at assumed false-negative/false-positive cost ratios of 5 and 10, whereas Logistic Regression had lower estimated costs at error-cost ratios of 1 and 2. Weighted XGBoost detected more departures but generated more false alerts, with uncertain recall (95% CI: 43.28%–70.49%, based on 47 positive cases). Overall superiority, statistical significance, and actual savings remain unestablished. On F1 (50.39%), Weighted CatBoost dominated albeit on a different training regime, with the original baselines still not reproduced.

Iraqi Journal of Information and Technology Systems
AI and HR Technologies
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon