Built an ML system that flags at-risk employees with 0.97 AUC — and translates each prediction into a concrete retention action for HR.
The HR department at Salifort Motors had a problem they couldn't see clearly. Good people were walking out the door, so HR surveyed their workforce and gathered data on thousands of employees — satisfaction, project loads, hours, tenure, promotions, salary bands.
And then they got stuck. The data sat in a spreadsheet, full of answers but speaking a language no one could read. They had the what, but not the why. So they came to me with a single, very human question:
My job was two-fold: understand the real drivers of attrition, and build a model that predicts — before it happens — whether an employee is likely to quit. Spot a flight risk early, and you can act early. Keeping a great employee who was about to leave is one of the highest-return moves an HR team can make.
Salifort loses roughly 1 in 6 employees, and replacing each is expensive. Using ~12,000 employee records, a tuned Random Forest flags at-risk employees with high accuracy — letting HR shift from reactive replacement to proactive retention.
| Metric | Score | What it means |
|---|---|---|
| AUC | 0.97 | Near-perfect ability to separate leavers from stayers |
| F1 | 0.90 | Strong balance of precision and recall |
| Precision | 0.91 | When it flags someone, it's right 91% of the time |
| Recall | 0.88 | Catches 88% of all actual leavers |
Project count + monthly hours is the single strongest predictor — splitting into burnout (6–7 projects, 175+ hrs/mo) and boreout (under-used on only 2 projects).
Attrition risk peaks sharply as employees approach their 4th and 5th years — a predictable window for intervention.
Staff in the "low" salary band leave at roughly 4× the rate of other bands — a clear, addressable driver.
High evaluation scores often correlate with higher departure risk — a signal of missing mobility or recognition.
The findings ship as a guided flow — Overview → Why They Leave → Predictive Model → Profiles & Actions — so a non-technical HR lead moves from the big picture to a specific action in minutes.
Trigger an HR review for anyone on 6+ projects or logging over 240 hours/month.
Identify low-satisfaction employees with little project exposure and assign meaningful work.
Schedule targeted pay, promotion, and growth conversations between years 4 and 5 — before exit interviews.
Reward business impact, not raw volume of hours worked.
Predictions drive supportive outreach only, with full transparency.
| Model | Accuracy | Precision | Recall | F1 | ROC-AUC |
|---|---|---|---|---|---|
| Logistic Regression | 0.835 | 0.505 | 0.185 | 0.271 | 0.831 |
| Decision Tree | 0.984 | 0.971 | 0.930 | 0.950 | 0.977 |
| Random Forest | 0.986 | 0.991 | 0.926 | 0.957 | 0.980 |
Cross-validated scores. Trained on 8,993 employees, evaluated on 2,998 held-out records.