Salifort Motors HR Project

Employee Attrition
Analytics

Machine Learning & Business Intelligence Case Study

Python Random Forest XGBoost SMOTE Power BI Tableau
15K
Employee Records
98.3%
Model Accuracy
0.97
ROC-AUC Score
0.95
F1 Score
20–30%
Projected Turnover Reduction

Project Overview

Salifort Motors is facing a high employee turnover rate (~17.5%), leading to increased recruitment costs, productivity loss, and operational instability. This project identifies the key drivers of attrition and builds a highly reliable ML model to proactively flag employees at risk of leaving.

The model enables targeted HR interventions — moving from reactive to predictive workforce management — with Power BI and Tableau dashboards translating predictions into leadership-ready insights.

Dataset

14,999 employee records from internal HR surveys and employment history

Tools Used

Python · Random Forest · XGBoost · SMOTE · Power BI · Tableau

Best Result

Accuracy 98.3% · F1 0.95 · ROC-AUC 0.97 · Precision 0.98

Business Value

Proactive risk flagging

20–30% projected turnover reduction in 6–12 months

Dataset & Features

Internal HR survey and employment history data capturing individual-level satisfaction, workload, salary, tenure, and performance metrics — with class imbalance requiring SMOTE balancing before modeling.

Key Features

Satisfaction level & last evaluation score Average monthly hours & number of projects Salary level & promotions history Tenure & department attributes Work accident history Target: left = 1, stayed = 0

Data Challenges

Strong class imbalance (fewer leavers) High correlation between workload & satisfaction Categorical variables requiring encoding Non-linear attrition patterns

EDA confirmed that satisfaction, workload, salary, and career stagnation are the strongest signals differentiating leavers from stayers. SMOTE was applied to address class imbalance before training classification models.

Modeling & Statistical Validation

Random Forest was selected as the final model for its best balance of precision, recall, and F1 score. Tree-based models outperformed logistic regression due to non-linear attrition patterns. SMOTE addressed class imbalance in the training set.

Modeling Approach

1

Conducted detailed EDA to understand attrition patterns — satisfaction, workload, and tenure were the strongest signals.

2

Encoded categorical variables and scaled numerical features for model input preparation.

3

Applied SMOTE (Synthetic Minority Oversampling) to address class imbalance in the attrition target variable.

4

Built and compared 4 classification models: Logistic Regression, Decision Tree, Random Forest, and XGBoost.

5

Evaluated on Accuracy, Precision, Recall, F1-score, and ROC-AUC — Random Forest selected as production-ready.

Models Compared

Winner row highlighted — XGBoost selected as final production model.

Model Role R² RMSE Notes
Logistic Regression Baseline — — Interpretable baseline; limited by non-linearity
Decision Tree Single tree benchmark — — Prone to overfitting on training data
XGBoost Gradient boosting — — Strong performance; slightly less balanced than RF
Random Forest Best Final production model 98.3% F1: 0.95 Best precision/recall balance; no overfitting; production-ready

Model Performance

Final model evaluation on held-out test data.

98.3%
Accuracy
Random Forest
0.95
F1 Score
Random Forest
0.97
ROC-AUC
Random Forest
0.98
Precision
Random Forest
Classification Report
Classification Report
Threshold Metrics Plot
Threshold Metrics Analysis

Interactive Power BI Analytics

Power BI dashboards translate model outputs into HR-friendly insights — enabling leadership to explore attrition risk interactively. ~83% of employees fall into a low-risk zone, supporting targeted retention strategies rather than blanket policies.

Attrition risk scoring by employee Department & salary band risk segmentation Turnover driver analysis Interactive risk band exploration
Power BI Overview Dashboard
Overview Dashboard
Tooltip Dashboard
Interactive Tooltips
Key Insights Dashboard
Key Insights
Turnover Driver Dashboard
Turnover Driver Analysis

Tableau – Model Validation

Tableau delivers an executive-level summary and workforce attrition risk analysis — enabling leadership to identify high-risk departments, salary bands, and satisfaction drivers, and validate model outputs against actual attrition patterns.

Executive Summary Dashboard
Executive Summary
Risk Analysis Dashboard
Risk Analysis Dashboard

Key Insights

Findings from EDA, model outputs, and dashboard exploration that inform investment decision-making.

Satisfaction level is the strongest single predictor of attrition — employees with satisfaction <0.4 have 4–6× higher risk.

Low salary sharply increases turnover risk, especially for mid-tenure employees (3–5 years in role).

High workload (monthly hours) is a strong burnout indicator — consistently elevated in the leaver cohort.

Tenure of ~3–4 years shows the highest attrition probability — this is the critical career stagnation phase.

Department has a minor impact compared to individual experience factors like satisfaction and salary.

Model predictions closely mirror actual attrition patterns on unseen data, confirming production reliability.

Business Recommendations

Actionable strategies for investors and decision-makers based on model outputs and dashboard analysis.

Investment Strategy Recommendations

Apply these to acquisition screening and portfolio decisions.

1

Use renovation potential signals from the dashboard to identify undervalued properties before market correction.

1

Launch employee satisfaction improvement programs targeting employees with satisfaction scores below 0.4.

2

Implement workload balancing and manager oversight to address burnout signals in high-hours cohorts.

3

Review salary bands for high-risk mid-tenure employees — compensation is a primary attrition lever.

4

Introduce clear promotion and career progression paths for employees approaching the 3–4 year tenure mark.

5

Deploy weekly attrition risk scoring dashboards using the 0.35 probability threshold for proactive HR action.

6

Focus retention efforts on the ~17% high-risk segment rather than blanket policies across all 15,000 employees.

Expected outcome: 20–30% reduction in employee turnover within 6–12 months through proactive, data-driven HR interventions.