Machine Learning & Business Intelligence Case Study
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.
14,999 employee records from internal HR surveys and employment history
Python · Random Forest · XGBoost · SMOTE · Power BI · Tableau
Accuracy 98.3% · F1 0.95 · ROC-AUC 0.97 · Precision 0.98
Proactive risk flagging
20–30% projected turnover reduction in 6–12 months
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
Data Challenges
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.
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.
Conducted detailed EDA to understand attrition patterns — satisfaction, workload, and tenure were the strongest signals.
Encoded categorical variables and scaled numerical features for model input preparation.
Applied SMOTE (Synthetic Minority Oversampling) to address class imbalance in the attrition target variable.
Built and compared 4 classification models: Logistic Regression, Decision Tree, Random Forest, and XGBoost.
Evaluated on Accuracy, Precision, Recall, F1-score, and ROC-AUC — Random Forest selected as production-ready.
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 |
Final model evaluation on held-out test data.
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.
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.
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.
Actionable strategies for investors and decision-makers based on model outputs and dashboard analysis.
Apply these to acquisition screening and portfolio decisions.
Use renovation potential signals from the dashboard to identify undervalued properties before market correction.
Launch employee satisfaction improvement programs targeting employees with satisfaction scores below 0.4.
Implement workload balancing and manager oversight to address burnout signals in high-hours cohorts.
Review salary bands for high-risk mid-tenure employees — compensation is a primary attrition lever.
Introduce clear promotion and career progression paths for employees approaching the 3–4 year tenure mark.
Deploy weekly attrition risk scoring dashboards using the 0.35 probability threshold for proactive HR action.
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.