Integrating machine learning and explainable AI for employee attrition prediction in HR analytics

Employee attrition poses significant challenges to organizations, impacting productivity, morale, and financial stability. Predicting attrition and understanding its underlying drivers are critical for implementing effective retention strategies. In this study, we propose a comprehensive framework that utilizes advanced machine learning techniques to predict employee attrition and job change likelihood. The framework integrates robust preprocessing pipelines, state-of-the-art predictive models, and explainability tools such as SHAP (SHapley Additive exPlanations) to ensure transparency and fairness in HR analytics. By addressing key challenges such as class imbalance, feature selection, and model interpretability, our approach provides actionable insights for proactive talent management. We evaluate the framework on multiple datasets (including the IBM HR Analytics Employee Attrition & Performance dataset and the HR Analytics: Job Change of Data Scientists dataset), achieving near-optimal performance metrics across diverse scenarios. Notably, the Adaptive Boosting (AB) and Histogram Gradient Boosting (HGB) models demonstrate superior performance, with high Precision, Recall, F1-score, and Accuracy. Global and local interpretability analyses using SHAP visualizations reveal critical predictors of attrition, such as OverTime, JobLevel, and JobSatisfaction, enabling targeted interventions. The results underscore the framework's adaptability, scalability, and potential for real-time deployment in organizational settings. This study contributes to advancing HR analytics by bridging gaps in predictive accuracy, interpretability, and generalizability; offering practical solutions for mitigating employee turnover and safeguarding human capital investments.

Authors

Institutions

Publication Details

Journal
Scientific Reports
Published
2026-02-12
DOI
https://doi.org/10.1038/s41598-026-36424-2
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
article

Integrating machine learning and explainable AI for employee attrition prediction in HR analytics

Hossam Magdy Balaha, Mahmoud Badawy, Majed Alwateer, Maytha AL-Ali et al.
Scientific Reports
AI and HR Technologies
article

Integrating machine learning and explainable AI for employee attrition prediction in HR analytics

Hossam Magdy Balaha, Mahmoud Badawy, Majed Alwateer, Maytha AL-Ali, Shatha Abed Alsaedi, Mostafa A. Elhosseini
article en

Abstract

Employee attrition poses significant challenges to organizations, impacting productivity, morale, and financial stability. Predicting attrition and understanding its underlying drivers are critical for implementing effective retention strategies. In this study, we propose a comprehensive framework that utilizes advanced machine learning techniques to predict employee attrition and job change likelihood. The framework integrates robust preprocessing pipelines, state-of-the-art predictive models, and explainability tools such as SHAP (SHapley Additive exPlanations) to ensure transparency and fairness in HR analytics. By addressing key challenges such as class imbalance, feature selection, and model interpretability, our approach provides actionable insights for proactive talent management. We evaluate the framework on multiple datasets (including the IBM HR Analytics Employee Attrition & Performance dataset and the HR Analytics: Job Change of Data Scientists dataset), achieving near-optimal performance metrics across diverse scenarios. Notably, the Adaptive Boosting (AB) and Histogram Gradient Boosting (HGB) models demonstrate superior performance, with high Precision, Recall, F1-score, and Accuracy. Global and local interpretability analyses using SHAP visualizations reveal critical predictors of attrition, such as OverTime, JobLevel, and JobSatisfaction, enabling targeted interventions. The results underscore the framework's adaptability, scalability, and potential for real-time deployment in organizational settings. This study contributes to advancing HR analytics by bridging gaps in predictive accuracy, interpretability, and generalizability; offering practical solutions for mitigating employee turnover and safeguarding human capital investments.

Scientific ReportsVol. 16(1)
Yanbu University College (SA), University of Louisville (US), Mansoura University (EG), Taibah University (SA), Bioengineering Center (RU), Zayed University (AE)
Decent work and economic growth
Openalex Percentile: Top 60%
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.