This project focuses on predicting employee attrition using organizational data. We aim to build a predictive model to identify employees who are likely to leave the organization, allowing HR to intervene early with retention measures. The dataset used in this project is from Kaggle, titled "HR Analytics: Employee Attrition Prediction".
The project steps include:
- Data Cleaning
- Exploratory Data Analysis
- Feature Engineering
- Model Selection
- Model Evaluation
- Danish and Andrea equal in contribution as we have helped one another to complete the tasks given to us.
- Can we find the factors that contribute the most to attrition?
- Which machine learning model would be the best to predict employee attrition?
- Can we then predict employee attrition based on a dataset?
Our project is aimed at tackling the increasing rate of employee voluntary attrition. Using data analytics and machine learning techniques, we aim at predicting potential attrition cases beforehand so that the HR department can take proactive measures.
The machine learning problem is set up as a classification problem - Will an employee leave or stay? Our models predict the likelihood of employee attrition based on individual characteristics.
- SMOTE
- Logistic Regression
- Decision Tree Classifier
- Random Forest Classifier
- Feature Importance
- Factors influencing attrition include: overtime work, frequent business travel, years since last promotion, job roles (e.g. sales representatives, laboratory technician)
- Logistic Regression was chosen as the optimal model due to its balance between recall and precision.
- By using the Logistic Regression model, we can identify employees with higher chances of attrition and help HR to take appropriate action to retain valuable employees.
- Balancing imbalanced datasets with SMOTE
- Evaluate workload and overtime policies to reduce stress and improve work-life balance.
- Review business travel requirements to minimize work-life imbalance.
- Research reasons behind high attrition rates in specific job roles (e.g., Sales Representatives, Laboratory Technicians) to develop targeted retention programs.
- Implement programs for regular promotions and career growth opportunities.
- Recognize importance of supportive managers and encourage longer tenure with the same manager to improve retention.
- Exploratory data analysis and visualization techniques
- Handling imbalanced datasets using SMOTE resampling technique
- One-hot encoding for categorical variables
- Model selection based on accuracy, precision, recall, and F1-score
- Model training and evaluation using sklearn