Article

Data Science And Analytics For Operations

November 19, 2026

Turnover Prediction with Machine Learning in People Analytics

Gabriel Vasconcelos Costa Valério; Mayara Rohenkohl Ricci

DOI: 10.22167/2675-6528-202603856

Article derived from a Final Course Work (TCC), with content based on the student’s original work and adapted to the editorial format of the E&S Magazine with the support of the ResumeAI tool, an artificial intelligence solution developed by Instituto Pecege for textual synthesis and organization.

Summary

Voluntary employee turnover represents a recurring strategic challenge in organizations, with costs estimated between 50% and 200% of the annual salary of each replaced employee. The study aimed to develop, validate, and interpret a predictive turnover model based on machine learning algorithms, evaluating its technical feasibility using a public reference database. The IBM HR Employee Attrition dataset, of a synthetic nature, was used, comprising 1,470 records and 35 demographic, professional, and behavioral variables. Three supervised classification algorithms (Logistic Regression, Random Forest, and XGBoost) were implemented and compared, with class imbalance treatment by the SMOTE technique applied exclusively to the training set. The XGBoost model with hyperparameters optimized by RandomizedSearchCV and five-fold stratified cross-validation showed the best performance, with an AUC-ROC of 0.8651 on the test set and a Recall of 84.4% on the positive class with an optimized decision threshold. Interpretability analysis using the SHAP framework identified overtime, monthly compensation, and tenure as the main predictors of departure, results consistent with the people management literature. An illustrative financial impact simulation suggested potential economic return, conditioned on validation with real data and calibration of assumptions. The results confirmed the technical feasibility of the approach and its potential value as a decision support tool in People Analytics.

Keywords: Supervised classification; Algorithmic interpretability; Human resources; Talent retention; Voluntary turnover.

1. Introduction

Voluntary employee turnover represents a recurring strategic challenge for modern organizations. This phenomenon directly impacts operational costs, productivity, organizational climate, and business competitiveness. The unexpected departure of qualified professionals can generate a series of losses that affect the sustainability and growth of businesses.

Studies in the area of people management estimate that the costs associated with replacing an employee can range between 50% and 200% of the annual salary of the departing employee, encompassing expenses for termination, recruitment, training, and the loss of institutional knowledge (Punnoose; Ajit, 2016). In addition to direct financial impacts, turnover also causes strategic disruptions in specialized teams, compromising project continuity and the effective transfer of organizational knowledge.

Scientific literature has shown that inadequate turnover management can become a competitive vulnerability. Organizations that do not understand the predictive factors of attrition face difficulties in retaining critical talent, especially in markets with high demand for qualified professionals (Tan, Kamaruzzaman, and Kamaruzzaman, 2021). In a scenario of increasing digital transformation and data-driven decision-making, it becomes essential not only to identify the factors that influence attrition but also to anticipate at-risk behaviors sufficiently in advance for the implementation of preventive actions.

In this context, predictive human resource models based on machine learning have been widely discussed as tools for managerial support and strategic decision-making in People Analytics (Setiawan et al., 2018). Supervised machine learning techniques allow for the analysis of complex historical patterns and the estimation of turnover risk, surpassing traditional approaches based on managerial intuition (Nimmagadda et al., 2017). Previous research has already demonstrated the effectiveness of algorithms such as Random Forest and Gradient Boosting in predicting voluntary turnover (Punnoose and Ajit, 2016), as well as the utility of Logistic Regression in identifying critical variables, such as job satisfaction and tenure (Nimmagadda et al., 2017).

Despite methodological advances, a gap persists in the literature regarding the contextualized application of predictive turnover models with advanced interpretability. Most studies focus on maximizing predictive performance, with few integrating deep exploratory analyses with techniques like SHAP (SHapley Additive exPlanations). Understanding the mechanisms underlying predictions is an essential dimension for the organizational adoption of these solutions, allowing people managers to make more informed and strategic decisions.

Without robust predictive tools, Human Resources areas remain largely reactive, carrying out retention actions only after explicit signs of dissatisfaction, which results in avoidable costs and knowledge loss. Faced with this problem, the present work aims to develop, validate, and interpret a turnover prediction model through machine learning algorithms, evaluating its technical feasibility based on a public reference database. It is noteworthy that the scope of this study is the methodological demonstration of technical feasibility, and not the proposal of a directly generalizable solution to specific organizations, since the database used is synthetic in nature and requires future validation with real data.

2. Material and Methods

The research was characterized as applied, with a quantitative approach and exploratory-descriptive nature, focusing on the implementation of a predictive model. The study applied a machine learning pipeline to a public reference database, aiming to evaluate the technical feasibility of the approach for turnover prediction.

The unit of analysis consisted of the IBM HR Employee Attrition dataset, a synthetic database artificially created by IBM for study and demonstration purposes. This dataset was obtained on the Kaggle platform, used as a benchmark in People Analytics studies (Punnoose; Ajit, 2016; Setiawan et al., 2018). The choice of the synthetic database was motivated by its consolidation in the literature and the infeasibility of accessing real anonymized data, which would require formal approval from legal departments and ethics committees (LGPD).

The analyses were performed in the Google Colaboratory environment, using Python (version 3.10) and libraries such as Pandas, NumPy, Scikit-learn (1.3), XGBoost (2.0), imbalanced-learn, and SHAP. The reproducibility of the study was ensured by fixing the random seed (random_state = 42) in all stochastic steps of the pipeline, including data splitting, SMOTE application, model training, and hyperparameter search.

The dataset comprised 1,470 records and 35 variables. In preprocessing, three variables (EmployeeCount, StandardHours, and Over18) were removed due to zero variance. The target variable, Attrition, was converted from categorical (Yes/No) to binary (1/0). The remaining categorical variables were transformed into numerical representation using One-Hot Encoding, with the first category of each group removed to avoid multicollinearity. After these transformations, the dataset concluded with 46 predictor variables.

The data were divided into training (70%, 1,029 records) and test (30%, 441 records) sets, with stratification by the target variable, maintaining the original proportion of 16.1% of outputs. Class imbalance was addressed using the SMOTE (Synthetic Minority Over-sampling Technique) method, proposed by Chawla et al. (2002). SMOTE was applied exclusively to the training set, increasing the minority class from 165 to 864 samples, thus avoiding data leakage and preserving the validity of evaluation metrics on the test set.

For the training, three supervised classification algorithms were implemented: Logistic Regression, Random Forest, and XGBoost. Logistic Regression had its variables normalized via StandardScaler. Random Forest was configured with two hundred trees. XGBoost was subjected to hyperparameter optimization via RandomizedSearchCV, evaluating thirty random combinations by five-fold stratified cross-validation (StratifiedKFold), seeking to maximize the average AUC-ROC. The search space included number of trees, maximum depth, learning rate, and fractions of samples and features per tree (Bergstra; Bengio, 2012).

The performance evaluation of the models prioritized AUC-ROC as the main metric, due to its robustness in imbalanced class scenarios and its ability to measure model discrimination. Complementarily, Precision, Recall, and F1-Score were analyzed, focusing on the positive class (output). The decision threshold was adjusted by maximizing the F1-Score, obtained from Scikit-learn’s precision_recall_curve function, considering the cost asymmetry of the business problem.

Model interpretability was conducted using the SHAP framework (Lundberg; Lee, 2017), which decomposes each individual prediction into marginal contributions per variable. Additionally, a strictly illustrative financial simulation was performed to contextualize the model’s potential business value. The assumptions for this simulation were based on literature benchmarks (SHRM, 2022), with the purpose of demonstrating the economic feasibility of the approach, without quantifying effective return.

3. Results and Discussion

The research results are presented and discussed in a sequence of analytical axes ranging from the characterization of the data to the financial impact simulation of the predictive model. Initially, exploratory analysis allowed for the identification of relevant patterns in the explanatory variables and the distribution of the target variable. Subsequently, the treatment of class imbalance, a crucial methodological step for model robustness, was detailed. Later, the performance of machine learning algorithms was compared, focusing on optimization and cross-validation, and the optimization of the decision threshold, fundamental for practical application in the business context, was analyzed. Model interpretability, through the SHAP framework, revealed the main predictors of turnover, and an illustrative financial impact simulation demonstrated the potential strategic value of the predictive approach. Finally, the study’s limitations and practical implications are discussed, outlining the next steps for research and application.

Exploratory Analysis and Factors Associated with Turnover

The initial exploratory data analysis did not identify the presence of missing values in any of the dataset variables. However, the target variable, which indicates the occurrence of turnover, showed significant imbalance. It was observed that 1,233 records corresponded to employees who remained with the company (83.9%), while 237 records represented departures (16.1%). This distribution pattern is consistent with what has been reported in previous studies on turnover, such as Punnoose and Ajit (2016), which indicate typical departure proportions between 10% and 20% in similar databases. Such an imbalance justifies the inadequacy of accuracy as the primary performance metric, as a trivial classifier that always predicted retention would achieve 83.9% accuracy without any real predictive capability, as warned by Setiawan et al. (2018) for problems with asymmetric classes.

The investigation of explanatory variables revealed several patterns consistent with the people management literature. Regarding departments, the Sales sector presented the highest turnover rate, with 20.6%, followed by Human Resources (19.1%) and Research & Development (13.9%). This differentiation can be associated with the pressure for results, a factor that Tan et al. (2021) point to as influential in turnover. The analysis also indicated that employees who work overtime showed a departure rate of 30.7%, approximately triple the rate observed among those without overtime (10.5%). This finding aligns with the Job Demands-Resources model, which suggests that excessive work demands can lead to burnout and intention to leave.

Company tenure proved to be a critical factor, with employees who had up to two years of tenure showing the greatest vulnerability to turnover, with a rate of 32.9%. This rate decreased progressively as company tenure increased, a phenomenon that can be explained by the theory of organizational socialization, which describes the individual’s adaptation and engagement to the organization over time. Nimmagadda et al. (2017) also identified this trend of higher turnover in the initial years of employment. Regarding remuneration, employees who left were concentrated in lower salary ranges, a finding that corroborates Adams’ Equity Theory (1963), which postulates that perceptions of salary inequity can drive employee departures.

Job satisfaction also proved to be a relevant predictor, with the lowest satisfaction level (level 1) associated with a 22.6% exit rate, reinforcing Setiawan et al.’s (2018) observations on the importance of satisfaction for retention. Finally, the age group of professionals revealed that those between 18 and 25 years old presented the highest turnover rate, reaching 35.7%. This data reflects the greater mobility and search for new opportunities that are typical characteristics of the initial years of a career. The consistency of these patterns with theoretical references in people management will be subsequently compared with the analysis of variable importance by SHAP, allowing for an evaluation of the internal coherence of the findings.

Class Balancing with SMOTE

To mitigate the impact of class imbalance on the predictive capability of the models, the SMOTE (Synthetic Minority Over-sampling Technique) technique was applied exclusively to the training set. This approach, proposed by Chawla et al. (2002), consists of generating synthetic samples of the minority class (output) through interpolation between real instances and their nearest neighbors. Before applying SMOTE, the training set contained 165 samples of the minority class (16.0%) and 864 of the majority class (84.0%). After balancing, the representation of the minority class was increased to 864 samples, matching that of the majority class and resulting in a 50.0% distribution for each class in the training set. This strategy avoids overfitting to the minority class that would occur with simple sample duplication and preserves statistical variation.

The restriction of applying SMOTE only to the training set is a fundamental methodological requirement to avoid data leakage. If SMOTE were applied to the test set, the model would be evaluated on artificial instances, which would compromise the validity of performance metrics and the model’s generalization ability to unseen data. Thus, the test set fully maintained the real distribution of the turnover phenomenon, ensuring an impartial and representative evaluation of the model’s performance in a practical scenario. Chawla et al. (2002) demonstrated that SMOTE consistently improves minority class Recall without significantly compromising Precision, a result replicated in this work and essential for the business problem at hand.

Model Comparison, Tuning, and Cross-validation

The performance evaluation of the models was carried out on the test set, composed of 441 stratified samples to preserve the original proportion of the target variable. Three algorithms were compared in increasing order of complexity: Logistic Regression, Random Forest, and XGBoost. Logistic Regression, used as a baseline, achieved an AUC-ROC of 0.7821 on the test set and an average of 0.7706 in cross-validation, with a standard deviation of 0.0121. This result confirmed the presence of predictive signal in the data, being in a range compatible with that reported by Nimmagadda et al. (2017) for linear models in People Analytics. The Precision for the output class was 0.531, the Recall 0.621, and the F1-Score 0.572.

The Random Forest algorithm, a bagging ensemble method, demonstrated superior performance to the baseline, achieving an AUC-ROC of 0.8312 on the test set and an average of 0.8292 in cross-validation, with a standard deviation of 0.0089. This advancement indicates the Random Forest’s capability to capture non-linear relationships between variables, converging with the findings of Punnoose and Ajit (2016) on the superiority of ensemble methods in predicting turnover. For the output class, the Random Forest obtained a Precision of 0.621, a Recall of 0.673, and an F1-Score of 0.646, evidencing an improvement in all metrics compared to Logistic Regression.

The XGBoost algorithm, a sequential Gradient Boosting technique, was evaluated in two configurations: default and tuned. The default XGBoost version presented an AUC-ROC of 0.8467 on the test set and an average of 0.8476 in cross-validation, with a standard deviation of 0.0074. Its metrics for the output class were Precision of 0.643, Recall of 0.699, and F1-Score of 0.670. However, the tuned XGBoost model, with hyperparameters optimized by RandomizedSearchCV and five-fold stratified cross-validation, achieved the best overall performance. This model obtained an AUC-ROC of 0.8651 on the test set and an average of 0.8490 in cross-validation, with a standard deviation of 0.0071.

The difference of 0.016 between the test AUC-ROC and the cross-validation mean of the tuned XGBoost, which is below the threshold of 0.05 conventionally associated with overfitting, indicates a good generalization capacity of the model, an aspect particularly relevant considering the moderate size of the dataset. This finding is in line with Tan et al. (2021), who consistently point out the superiority of Gradient Boosting models over Random Forest and Logistic Regression in turnover prediction tasks. The metrics for the output class of the tuned XGBoost were Precision of 0.590, Recall of 0.844, and F1-Score of 0.695, highlighting the high Recall, which is crucial for the business problem.

Error Analysis and Decision Threshold Optimization

The analysis of model error types is fundamental for its practical application, especially in problems with asymmetric costs, such as turnover. Probabilistic classifiers generally use a threshold of 0.5 to convert probabilities into binary decisions, but this value is rarely ideal in imbalanced class scenarios. The optimization of the decision threshold was performed by maximizing the F1-Score, which seeks a balance between Precision and Recall, crucial metrics for the problem at hand. With the standard threshold of 0.50, the confusion matrix revealed 27 false negatives, i.e., employees who left but were not correctly flagged as at risk, and 46 false positives, which are employees who remained but were erroneously flagged as at risk. In this scenario, the Recall was 62.1%.

Optimizing the threshold to 0.36 resulted in a significant reduction in false negatives to 17, raising the Recall to 84.4%. This means the optimized model was able to anticipate most of the actual outcomes, failing to predict only about 16% of them, in contrast to the 38% not anticipated with the standard threshold. However, this improvement in Recall was accompanied by an increase in false positives to 64 and a reduction in Precision from 64.1% to 59.0%. This configuration is deliberate and aligned with business logic: in the context of talent retention, the cost of a false negative (an unpredicted departure and its replacement costs) is substantially higher than the cost of a false positive (an unnecessary retention action). Prioritizing Recall, therefore, directly reflects the cost structure of the problem, rather than an arbitrary technical choice.

It is important to highlight the complementarity between the ROC and Precision-Recall curves in model evaluation. The ROC curve synthesizes the global discriminatory capacity of the model, being robust to the chosen decision threshold, providing an overview of performance. On the other hand, the Precision-Recall curve is particularly informative in unbalanced scenarios, as it highlights the trade-off between the ability to capture true positives (Recall) and the reliability of the alerts issued (Precision). This information is operationally more actionable for sizing a retention program. The combination of these two perspectives offers a more complete and nuanced evaluation of the model’s performance than either one in isolation, providing insights into both general discriminatory capacity and the practical implications of threshold decisions.

Interpretability with SHAP and Implications for Management

Model interpretability was conducted using the SHAP (SHapley Additive exPlanations) framework, as proposed by Lundberg and Lee (2017). This technique allows for the decomposition of each individual prediction into marginal contributions per variable, starting from a base value that corresponds to the average output probability in the database. The global variable importance analysis, calculated as the mean of the absolute SHAP values on the test set, revealed that the three variables with the greatest predictive impact were OverTime_Yes (overtime performance), MonthlyIncome (monthly remuneration), and YearsAtCompany (company tenure).

The OverTime_Yes variable emerged as the predictor of greatest global importance, with a mean SHAP value of 0.1823. This finding is theoretically coherent and aligns with the Job Demands-Resources model, which posits that excessive work demands deplete individuals’ psychological resources, increasing turnover intention. The direct managerial implication is the need to monitor and, if necessary, redistribute workloads, as well as investigate the structural causes leading to overtime. MonthlyIncome, with a mean SHAP value of 0.1412, was the second most relevant predictor. The weight of remuneration empirically confirms Adams’ Equity Theory (1963), which suggests that perceptions of salary inequity can drive turnover. This implies the need to review remuneration policies and ensure internal equity as a retention action.

Company tenure (YearsAtCompany), with a mean SHAP value of 0.1205, was the third most important predictor. This result corroborates organizational socialization theory, which points to the greater vulnerability of employees in the early years of their tenure. The managerial implication is the importance of structured onboarding and monitoring programs, especially in the initial years of the contract, to increase retention. The convergence between the predictors identified by SHAP and the patterns observed in the initial exploratory analysis reinforces the study’s internal consistency, validating the relevance of these variables for predicting turnover. This consistency facilitates the communication of results to managers without in-depth technical training in data science.

It is crucial, however, to distinguish predictive association from causal relationship. The high importance of overtime as a predictor does not imply that its simple elimination would automatically result in reduced turnover, as the variable may be a symptom of deeper dissatisfactions, such as structural overload or management problems. The managerial implications derived from SHAP should, therefore, be treated as intervention hypotheses to be investigated qualitatively, rather than established causal relationships, a limitation inherent in any correlation-based approach, as highlighted by Lundberg and Lee (2017). At the individual level, SHAP allows for personalized explanations: for a high-risk employee identified in the test set, the three largest contributions to their probability of leaving were performing overtime (+0.18), salary below the job average (+0.14), and low satisfaction level (+0.09). This information is directly actionable by the manager before the termination occurs, allowing for targeted interventions.

Illustrative Simulation of Financial Impact

In order to contextualize the business potential value of the predictive model, a strictly illustrative financial simulation was performed. It is essential to emphasize that the values presented do not constitute proof of actual return, but rather an estimate conditioned by the adopted premises and the synthetic nature of the database. The premises were based on literature benchmarks, such as the cost of replacing an employee, estimated at 150% of annual salary (SHRM, 2022), a conservatively estimated retention program success rate of 40%, and an operational cost of the program at 10% of the annual salary per employee approached. The simulation considered a universe of 1,470 employees, corresponding to the size of the dataset used in the study.

Under these premises, the predictive model would identify 109 collaborators as being at high risk of leaving. Of these 109, approximately 65 would be those who would actually leave. With a 40% success rate in the retention program, it was estimated that 26 collaborators could be retained. Retaining these 26 employees would avoid replacement costs, which, in the simulation, would result in a return on investment (ROI) of around 200%. The illustrative simulation of financial impact demonstrated a potential cost reduction of approximately USD 1.05 million, with an estimated ROI of -21% in the scenario without the model, and a positive ROI in the scenario with the model, considering replacement costs and retention program costs. It is important to reiterate that this number is an illustrative estimate and sensitive to each premise adopted.

In a real application, all premises, including replacement cost, retention success rate, and intervention program cost, should be calibrated with internal data from the specific organization. This would make the estimate more precise and auditable. The simulation, therefore, serves the purpose of demonstrating the economic potential of the People Analytics approach, without the pretense of quantifying an effective and generalizable return. Punnoose and Ajit (2016) emphasize that translating a model’s technical performance into business value is an essential condition for the organizational adoption of this type of solution, justifying the inclusion of this analysis, even in an exploratory capacity, to highlight the technical feasibility and strategic potential of the tool.

Study Limitations

The results obtained in this study should be interpreted in light of four main limitations that delimit the scope of the conclusions and guide future research. The first and most relevant limitation is the synthetic nature of the database used. The IBM HR Employee Attrition dataset, although widely recognized as a benchmark in the turnover prediction literature, does not fully reproduce the complexity of real corporate data, which often include measurement noise, seasonalities, recording inconsistencies, and cultural particularities of each organization. Consequently, the performance values achieved may differ from those that would be observed in a real database, and the generalization of the findings to specific organizational contexts cannot be guaranteed without empirical validation.

The second limitation lies in the correlational nature of the analysis. Machine learning models are designed to identify predictive associations between variables and the outcome, but they do not establish causal relationships. Variables such as overtime, for example, may be mediated by factors not captured in the database, such as organizational culture or management effectiveness. Thus, the managerial implications derived from the analysis should be treated as hypotheses to be investigated through qualitative and experimental studies, rather than as causal certainties. This distinction is fundamental to avoid implementing interventions based on incorrect causal assumptions, which could lead to ineffective or even harmful outcomes.

The third limitation refers to the phenomenon of concept drift, which describes the degradation of a model’s predictive performance over time. Turnover patterns can change due to macroeconomic shifts, labor market dynamics, organizational cultural transformations, or new internal policies. A model in production, therefore, would require continuous monitoring of its performance and periodic re-training to preserve its validity and accuracy. Without this maintenance, the model’s predictive capability can significantly diminish, rendering it obsolete and ineffective for decision support. The implementation of an automated re-training pipeline is, therefore, an essential requirement for the sustainability of such solutions in dynamic environments.

The fourth limitation involves the ethical and data governance dimensions. The use of predictive models in decisions that directly affect people’s professional lives requires caution regarding algorithmic fairness. It is necessary to verify, through fairness audits, whether the model presents systematically different error rates among demographic groups, such as gender, age group, or ethnicity, which could amplify historical biases present in the data. Furthermore, the transition to real corporate data would require the formalization of a governance protocol aligned with the General Data Protection Law (LGPD), including data anonymization, purpose of use, and formal approval. It should be reinforced that the model’s purpose is strictly for retention support, never for subsidizing termination decisions, which must be ensured by appropriate and transparent governance.

Practical Application and Future Work

From an applied point of view, the machine learning pipeline developed in this work can be incorporated into a People Analytics flow as a robust tool for supporting managerial decision-making. It has the potential to periodically generate a prioritized list of employees at high risk of leaving, accompanied by detailed individual explanations provided by the SHAP framework. Each case flagged by the model could support a retention action guided by the specific risk factors identified, such as a structured conversation about workload, a compensation review, or the implementation of personalized follow-up programs, according to each employee’s profile. This proactive approach allows Human Resources areas to act strategically, anticipating problems and implementing interventions before the departure materializes.

As future work, several research and development fronts can be explored to enhance and validate the proposed approach. Firstly, validating the model with real, anonymized data from a partner organization is a crucial step to confirm its applicability in a practical context and overcome the limitation of the synthetic dataset. Secondly, comparing SMOTE with alternative class imbalance treatment approaches, such as class weighting, can reveal more effective or efficient methods. Thirdly, implementing an automated retraining pipeline with continuous concept drift monitoring is essential to ensure the model’s validity in production over time, adapting it to changes in turnover patterns.

Additionally, the development of an intuitive visualization dashboard for Human Resources managers would be fundamental to facilitate the interpretation and use of the model’s predictions and explanations in daily operations. Finally, conducting an algorithmic fairness audit is an indispensable step before any production use, ensuring that the model does not present discriminatory biases and that its decisions are fair and ethical for all employee groups. These work fronts aim not only to enhance the model’s technical capabilities but also to ensure its responsible and effective adoption in real organizational environments, transforming technical potential into strategic and sustainable value for people management.

In summary, the study demonstrated the technical feasibility of developing, validating, and interpreting a predictive turnover model using machine learning algorithms on a public reference database. The tuned XGBoost model presented the best performance, with an AUC-ROC of 0.8651 and a Recall of 84.4% on the positive class after threshold optimization, which allows anticipating most of the departures. Interpretability analysis by SHAP identified overtime, monthly salary, and tenure as the main predictors, corroborating the people management literature and the patterns observed in the exploratory analysis. Although the financial simulation is illustrative, it suggests a potential for significant economic return, reinforcing the value of the predictive approach as a decision support tool in People Analytics, provided it is validated with real data and calibrated assumptions.

4. Conclusion

This study sought to develop, validate, and interpret a predictive turnover model using machine learning algorithms, evaluating its technical feasibility from a public reference database. It was found that the XGBoost algorithm, after hyperparameter optimization and stratified cross-validation, presented the best performance, achieving an AUC-ROC of 0.8651 on the test set. With the optimization of the decision threshold, the model obtained a Recall of 84.4% on the positive class, demonstrating its ability to anticipate most actual departures and significantly reduce unforeseen terminations. Interpretability analysis, conducted by the SHAP framework, identified overtime, monthly remuneration, and company tenure as the main predictors of departure, findings that were consistent with the people management literature and with the patterns observed in exploratory analysis. An illustrative financial impact simulation suggested the potential economic return of the predictive approach. This integration of high-performance prediction, individual interpretability, and translation into business value constitutes a relevant practical and technical contribution to the field of People Analytics, offering a robust tool for managerial decision support for proactive talent retention actions.

However, the results should be interpreted in light of important limitations, such as the synthetic nature of the database, which restricts direct generalization to real organizational contexts without empirical validation. The correlational nature of the analysis also prevents the assertion of causality, suggesting that managerial implications should be treated as intervention hypotheses to be investigated. Furthermore, the risk of concept drift and the ethical and data governance dimensions, including algorithmic fairness and LGPD compliance, represent challenges for production implementation. For future work, it is recommended to validate the model with real, anonymized data from partner organizations, implement an automated retraining pipeline with continuous performance monitoring, develop an intuitive visualization dashboard for managers, and conduct algorithmic fairness audits. These research fronts aim not only to enhance the model’s technical capabilities but also to ensure its responsible and effective adoption, transforming the demonstrated technical potential into strategic and sustainable value for people management.

Bibliographic References

ADAMS, J. S. Inequity in social exchange. Advances in Experimental Social Psychology, New York, v. 2, p. 267-299, 1963.

BERGSTRA, J.; BENGIO, Y. Random search for hyper-parameter optimization. Journal of Machine Learning Research, Cambridge, v. 13, p. 281-305, 2012.

CHAWLA, N. V.; BOWYER, K. W.; HALL, L. O.; KEGELMEYER, W. P. SMOTE: Synthetic Minority Over-sampling Technique. Journal of Artificial Intelligence Research, [s. I.], v. 16, p. 321-357, 2002.

LUNDBERG, S. M.; LEE, S. I. A unified approach to interpreting model predictions. In: CONFERENCE ON NEURAL INFORMATION PROCESSING SYSTEMS, 31., 2017, Long Beach. Advances in Neural Information Processing Systems. [s. I.]: Curran Associates, 2017. v. 30, p. 4765-4774.

NIMMAGADDA, S.; RAMAKRISHNA, V.; SURAPANENI, R. K. HR analytics for predicting employee attrition with logistic regression. International Journal of Engineering Research and Technology, [s. I.], v. 6, n. 5, p. 1-5, 2017.

PUNNOOSE, R.; AJIT, P. Prediction of employee turnover in organizations using machine learning algorithms. International Journal of Advanced Research in Artificial Intelligence, [s. I.], v. 5, n. 9, p. 22-26, 2016.

SETIAWAN, I.; SUPRIHANTO, S.; NUGRAHA, A. C.; HUTAHAEAN, J. HR analytics: employee attrition analysis using logistic regression. IOP Conference Series: Materials Science and Engineering, Bristol, v. 407, p. 012102, 2018.

SOCIETY FOR HUMAN RESOURCE MANAGEMENT (SHRM). The cost of employee turnover. Alexandria: SHRM, 2022. Disponível em: https://www.shrm.org. Acesso em: 6 jun. 2025.

ΤΑΝ, Y. P.; KAMARUZZAMAN, Z. A.; KAMARUZZAMAN, Z. A. Predicting the employee turnover intention: how organizations leverage data-driven HR predictive analytics for talent management decision-making. International Journal of Business and Society, Sarawak, v. 22, n. 3, p. 1277-1294, 2021.

Article originating from the Final Course Work of the Specialization in Data Science and Analytics of the MBA USP/Esalq

To learn more about the course, click here and access the MBX Academy platform

You may also like

Data Science And Analytics For Operations

November 19, 2026

Polyp-YOLO: an efficient, low-latency detector for polyps in colonoscopies

The early detection of colorectal polyps is crucial for the prevention of colorectal cancer, and real-time computer-aided detection (CADe) systems have shown gains in endoscopic practice. The objective was to develop and validate a lightweight colorectal polyp detector, based on the YOLO architecture, capable of operating on restricted hardware with high precision and low latency. The methodology used public datasets of endoscopic images, partitioning the Kvasir-SEG dataset for training and internal validation, and CVC-ClinicDB and ETIS-Larib Polyp DB for cross-dataset evaluation. Lightweight variants of the YOLOv8, YOLO11, and YOLO26 families with 640×640 pixel input were evaluated. A grid search tested 70 combinations of optimizers and activation functions, and identified AdaBelief and LeakyReLU as the configuration with the best generalization. The optimization pipeline applied unstructured pruning, knowledge distillation, and fine-tuning. The optimized YOLO11n-seg model outperformed the higher-capacity architecture (YOLO26m-seg) in mAP50 and showed similar performance in F1-Score, operating with approximately seven times fewer parameters. It achieved an mAP50 of 0.7929 and an F1-Score of 0.7514 on the ETIS-Larib dataset, and fast inference was demonstrated in different formats, with real-time latencies. The explainability of predictions was validated by Grad-CAM activation maps. The proposed solution demonstrated itself to be a promising experimental tool for diagnostic support, with technical feasibility for integration into environments with reduced computational power, although it requires future clinical validation.

Keywords: Computer-aided detection; Edge computing; Hyperparameter optimization; Endoscopic image segmentation; Medical computer vision.

Data Science And Analytics For Operations

November 19, 2026

Multi-touch Attribution in E-commerce: A Comparison between Markov Chains and Last-Click

The research investigated Multi-touch Attribution (MTA) Models in e-commerce, seeking to overcome the limitations of the Last-Click model, widely used in the market. The objective was to compare the performance of first-order Markov Chains with Last-Click and Position-Based approaches, identifying the value of assistance channels frequently ignored. To this end, Markov Chain algorithms were applied to a large volume of purchase journey data from the Google Merchandise Store, extracted via BigQuery. The study probabilistically mapped the purchase journey and calculated the Removal Effect to quantify channel relevance. The results demonstrated that data-driven models identified the strategic role of discovery (awareness) and assistance channels, which Last-Click neglected in 65% of complex journeys. Simulated financial analysis indicated an approximate 28% hidden efficiency in Cost Per Acquisition (CPA) for Paid Search, compared to the Last-Click model. It was concluded that Markov Chains allowed for a more accurate mapping of purchase journeys, validating the technical feasibility of the modeling and providing evidence for more efficient budget allocation in digital media, mitigating the risk of early divestment in crucial channels.

Keywords: Assistance channels; Data science; E-commerce; Digital marketing; Media optimization.

Data Science And Analytics For Operations

November 19, 2026

Predictive Analysis Methodology for Performance Optimization in E-commerce: Correlation between Public Data and Paid Media

A predictive analysis methodology was developed for e-commerce, integrating transactional data and public search trends. The objective was to develop and validate a predictive model, based on machine learning algorithms, capable of correlating organic search trends with sales performance and paid media costs in the Beauty and Health category of Brazilian e-commerce. The Brazilian E-Commerce Public Dataset by Olist and data from Google Trends were used, processed in Python with the Random Forest Regressor algorithm. A moderate inverse correlation (r = -0.43) with a seven-day lag was identified between organic search volume and purchase. Initial models, based solely on behavioral variables, presented insufficient metrics (R² = -0.47; MAE of R$ 2,120.54). The incorporation of microeconomic (average ticket and shipping) and macroeconomic (exchange rate and Ibovespa index) variables raised the R² of the final model to 0.29, with an MAE of R$ 1,489.63, representing a 24.7% reduction in error compared to the baseline. Temporal cross-validation showed that, in periods of mature operation (2018), the model achieved an R² of 0.42. It was concluded that isolated search volume explains the moment of consumer interest, but not the financial magnitude of sales, making the fusion with transactional and economic data mandatory for predictive viability.

Keywords: Beauty and Health; Consumer Behavior; Google Trends; Machine Learning; Time Series.

Data Science And Analytics For Operations

November 19, 2026

Supply chain risk index for predictive analysis of delays in industrial supply chain

This study addressed the development of a Supply Risk Index (SRI) to predict delays in purchase orders from a multinational company in the pulp and paper equipment sector, aiming to support the prioritization of expediting in the supply area. The objective was to estimate in advance the probability and duration of delays in purchase orders, increasing supply chain risk visibility. The methodology employed machine learning techniques, notably the LightGBM algorithm, applied to a historical database of over 150,000 orders extracted from an ERP system. This database contained information on suppliers, material groups, order value, planned delivery time, and open order load. A classification model was developed, with class balancing via SMOTE, to estimate the probability of delay, and a regression model to predict the number of days of delay. Model evaluation used metrics such as F1-score, area under the ROC curve, Brier score, MAE, and RMSE. Interpretability was achieved through SHAP values. The results indicated that the SRI adequately discriminated orders with a higher propensity for delay and provided explanations aligned with the literature on data-driven supply chain risk management. The integration of these components into an automated production workflow allowed for the generation, for each open order, of the probability of delay, a risk score, and the main explanatory factors, supporting the prioritization of supplier expediting.

Keywords: Predictive analytics; Machine learning; Supply chain; Purchase order expediting; LightGBM.

Data Science And Analytics For Operations

November 19, 2026

Event-Driven Distributed Cloud Architecture for Bank Credit Contracting

Digital transformation in the banking sector required the modernization of credit flows that were still dependent on legacy systems and manual activities. These generated high operational costs, inconsistency risks, and contracting times of up to 72 hours for the FINIMP product in a large Brazilian bank. Given this scenario, the study aimed to demonstrate that the adoption of a cloud-based microservices-oriented and event-driven architecture could significantly reduce total processing time and operational costs, through the integral automation of the flow and the elimination of manual steps. The research was characterized as applied, with a mixed approach, structured as action research and a single case study. It involved semi-structured interviews, direct observation of the process, documentary analysis, collection of SLA metrics, and the iterative development of a prototype in .NET Core and Angular, executed in a containerized local environment, with scaling designed for AWS. The solution was modeled with strategic Domain-Driven Design, definition of bounded contexts, and application of the Saga pattern for distributed transactional coordination. The results indicated the technical feasibility of the proposed architecture, with a reduction in the estimated timeframe to approximately two hours, improvement in p95 latency of critical steps, increased throughput under controlled load, and an estimated reduction in cost per 1,000 operations processed. There was also a strengthening of security and traceability controls. It was concluded that the proposed approach delivered measurable gains in efficiency, scalability, and operational governance.

Keywords: FINIMP; Idempotence; Microservices; Cost optimization; Distributed systems.

Data Science And Analytics For Operations

November 19, 2026

Assessment of the technical and behavioral viability of residential flexibility in a pilot project of Virtual Power Plant (VPP) in Brazil

The flexibility of electricity consumption in Brazilian households was evaluated. The study assessed the technical and behavioral viability of this flexibility in a pilot project of a Virtual Power Plant (VPP) in Brazil. 10 Demand Response (DR) events were conducted with 30 measured consumer units, between January and March 2026, using quantitative analysis of real smart metering data. The k-means algorithm was applied to segment behavioral profiles and a final evaluation survey was conducted to collect perceptions. The average acceptance rate was 70.6% and the average delivery rate reached 80.1%, with a verified load reduction of 99.3 kWh. Three behavioral engagement profiles were identified, with the full engagement group responsible for 61% of the generated flexibility. The hybrid remuneration model achieved the highest delivery rate (90.4%) and the lowest cost per kWh. The correlation between incentive and percentage reduction was significant in the hybrid phase. The final survey indicated a 96.7% intention to re-participate and a preference for the hybrid model. The results confirmed the technical and behavioral viability of residential flexibility in Brazil as a component of a VPP, demonstrating that consumers respond to DR events when adequately communicated and incentivized.

Keywords: Consumer engagement; Residential flexibility; Smart metering; Demand Response; Virtual Power Plant.