Every time a company loses an employee, it costs 50–200% of their annual salary to replace them. HR teams often find out too late — after resignation, not before.
Most attrition tools give a binary answer: will leave or won't leave.
That's not useful. HR needs to know who is at risk, how much risk, and exactly why.
This is not a classifier. It's a decision-support system.
- Outputs a probability score (0–100% risk), not just yes/no
- Explains why each employee is flagged — using SHAP feature importance
- Lets HR simulate interventions — "what happens if we give a 10% raise?"
- Processes entire teams via CSV batch upload
- Generates downloadable prediction reports for HR review
Employee: John D.
Attrition Risk: 78%
| Feature | What it enables |
|---|---|
| Probability risk score | Flexible thresholds — HR sets their own alert level |
| SHAP explainability | Every prediction justified, not just flagged |
| What-If salary simulation | Test interventions before implementing them |
| Batch CSV prediction | Score entire departments at once |
| Downloadable report | Ready for HR review meetings |
- Algorithm: Random Forest Classifier
- Output: Attrition probability (0.0 – 1.0)
- Features: Overtime, job satisfaction, years since promotion, salary band, tenure, and more
- Explainability: SHAP values per prediction
- Deployment: Lightweight inference pipeline — training and deployment separated for speed
Python scikit-learn SHAP Streamlit Pandas NumPy Joblib
git clone https://github.com/AkashMs24/Employee-Attrition-Risk-Assessment-Using-Explainable-Machine-Learning.git
cd Employee-Attrition-Risk-Assessment-Using-Explainable-Machine-Learning
pip install -r requirements.txt
streamlit run app.py- Probability over binary — a 78% risk score is actionable; "will leave" is not
- SHAP over black-box — HR can challenge and verify every recommendation
- Simulation over prediction — what-if analysis turns insight into intervention
- Separated pipelines — model trained offline, deployed artifact is lightweight for fast inference
- Decision Intelligence System — ML + LLM business intelligence platform
- Fraud Detection System — XGBoost + SHAP + FastAPI
- FarmVoice AI — NLP + SHAP crop advisory
Built by Akash M S · Presidency University, Bengaluru
LinkedIn · GitHub · ms29akash@gmail.com