Preprint
Article

This version is not peer-reviewed.

AI-Driven Employee Turnover Warning for Talent-Retention Decision Support in Finance and Taxation Education: Model Development and Comparison

Submitted:

03 August 2026

Posted:

03 August 2026

You are already at the latest version

Abstract
Employee-turnover warning in finance and taxation education must account for different job roles, repeated monthly records, rare departures, and uncertainty about when some fields became available. This study analyzed 1,397 de-identified employee records and reconstructed 6,935 monthly records for predicting voluntary turnover within 90 days. It compared 22 classifiers with the Hierarchical Risk Encoding XGBoost–CatBoost Ensemble (HRE-XCB), which combines Raw-XGB, HRE-XGB, and native CatBoost. Before model development, 278 employees were selected without reading their out comes. None of their earlier records entered feature screening, tuning, encoding, weighting, or cutoff selection. The search evaluated 152 base structures and selected weights of 0.65, 0.15, and 0.20. The June 2022 evaluation contained 278 separated employees and 24 departures. HRE-XCB achieved recall 0.7500, F1 0.3750, and PR-AUC0.3477. Among the equally tuned shortlist, random forest obtained the highest PR-AUC (0.3772), Extra Trees the highest F1 (0.4324), and histogram gradient boosting recall 0.7917 with the lowest Brier score (0.0752). A separate lower-tuning screen was led by preset gradient boosting (PR-AUC 0.4229). In 5,000 employee-cluster bootstrap samples, no tuned model had a PR-AUC difference from HRE-XCB whose 95% interval excluded zero. Component ablation showed that Raw-XGB alone had nearly the same PR-AUC as the complete ensemble (0.3481 versus 0.3477), while Raw-XGB plus HRE-XGB reached 0.3492. The study therefore supports employee-separated evaluation and decision-specific model choice, but not a universal-best algorithm or exact individual departure probabilities.
Keywords: 
;  ;  ;  ;  ;  ;  ;  ;  ;  

1. Introduction

Employee turnover interrupts client relationships, removes tacit knowledge, and increases recruitment and training costs. The problem is especially uneven in finance and taxation education and training. Instructors and curriculum researchers depend on professional knowledge; sales consultants work under performance pressure and frequent customer contact; operations and back-office employees follow different career paths. A single generic risk rule can therefore hide meaningful occupational differences.
Artificial intelligence can rank employees for supportive review, but administrative HR data impose hard limits. The study enterprise supplied one de-identified administrative export rather than versioned monthly snapshots. Employees recur across reconstructed monthly records, departures are uncommon, organizational categories are sparse, and some field values cannot be confirmed at every historical prediction date. Random row splitting would allow the same employee profile to enter both development and evaluation. Accuracy alone would reward majority prediction, while a high score obtained after extensive tuning could reflect selection noise rather than generalizable information.
The analysis addresses five questions:
  • How do widely used classifiers compare when they follow the same employee grouping and time rules?
  • Can one ensemble use standard fields, organizational hierarchy, and category-aware learning together?
  • How well do the models work for employees who took no part in model development?
  • Which measures describe risk ranking, the usefulness of the alert list, and the accuracy of probability scores?
  • How should uncertain field dates, small job-group counts, and responsible-use requirements limit the conclusions?
The proposed model is introduced at first mention as the Hierarchical Risk Encoding XGBoost–CatBoost Ensemble (HRE-XCB). HRE denotes hierarchical risk encoding, and XCB identifies its XGBoost and CatBoost foundations. It is a nonnegative weighted average of Raw-XGB, an XGBoost branch augmented with employee-excluding hierarchical risk encoding (HRE-XGB), and native CatBoost. The method is not assumed to be superior by design. It is evaluated alongside 22 general-purpose classifiers, with comparable tuning for the strongest baselines.
Four parts of the study are especially important. First, 278 employees are set aside before feature screening, encoding, tuning, weighting, or cutoff selection. Second, the method turns organizational hierarchy into smoothed summaries calculated without the employee being scored. It also keeps the original fields and CatBoost’s category-aware representation. Third, ranking, alert-list performance, probability error, component ablation, bootstrap intervals, and field-date checks are reported separately. Fourth, the model has one permitted use: confidential and supportive HR review. It cannot trigger dismissal, pay reduction, promotion restriction, or any other penalty. The remaining sections explain the theory, methods, results, and limits.

3. Research Methodology

3.1. Study Design, Prediction Target, and Notation

3.1.1. What the Model Predicts

This study uses de-identified operational employee data from an unnamed finance and taxation education and training enterprise. The practical question is simple: among employees who are still working on a given monthly observation date, who will voluntarily leave within the next 90 days? The task is binary because each monthly prediction record is labeled either as a voluntary departure within that window or as no observed voluntary departure within that window.
This task predicts behavior; it does not establish why the behavior occurs. Turnover theories discuss job satisfaction, organizational commitment, alternative opportunities, shocks, job embeddedness, job demands and resources, perceived organizational support, and psychological contracts [1,2,3,4,5,6,7,8,9,10,11,12]. The available administrative fields do not directly measure most of these concepts. Job family, tenure, department, and education may help prediction, but they are only observed characteristics or indirect signals. A statistical association with turnover is not evidence that the characteristic caused the departure.
The model is intended to order employees by risk for supportive review when HR staff cannot speak with everyone at once. It does not estimate the effect of a salary increase, reassignment, or other retention action. A feature that is important to prediction should not be treated as a lever that will necessarily change an outcome. Prediction and causal explanation answer different questions [34]. For this reason, the paper uses terms such as predictive association, risk signal, and information used by the model.
Let employees be indexed by i = 1 , , N , and let monthly observation points be indexed by t T . A record is created only when the employee has joined and has not already left by month t. The available predictors for that employee and month are written as x i t . The target is
y i t = I T i ( V ) > t , T i ( V ) t + 90 days ,
where T i ( V ) is the recorded voluntary-departure date and I { · } is an indicator that equals one when the condition is true. Thus, y i t = 1 means that employee i voluntarily leaves in the 90 days after monthly observation point t. A person who was dismissed or otherwise left involuntarily during the same period is excluded from that monthly comparison. Such a record should not be mislabeled as either a voluntary departure or a stable non-departure. An employee who had already left before the observation point is not eligible for that month’s prediction.
The predictive model f produces a score
p ^ i t = f ( x i t ) [ 0 , 1 ] .
The score becomes an HR alert only after applying an alert cutoff τ :
y ^ i t = I { p ^ i t τ } .
The score is bounded between zero and one, but it is first interpreted as a research risk score. A larger score should place an employee higher on the near-term risk list. Before the model is tested on genuinely future cohorts, the number should not be presented as a literal personal probability. The study therefore separates three questions: whether the model orders employees well, whether the chosen cutoff creates a useful alert list, and whether predicted values agree with observed group frequencies [24,25,27]. The last question is called probability reliability, or calibration, and is explained in Section 3.6.

3.2. General-Purpose Comparison Models

The experiment implements 22 general-purpose comparators under the same employee-group and time rules. They cover a no-information reference, linear and probabilistic models, neighborhood and margin methods, trees and ensembles, boosting, and a small neural network. The catalog is broad enough to test competing ways of learning from data, but it is not presented as every classifier ever published.

3.2.1. No-information, Linear, and Probabilistic Models

DummyPrior assigns the training prevalence to every record and exposes the majority-class accuracy trap. Logistic regression models a regularized linear function on the log-odds scale; SGDLogLoss optimizes the same loss incrementally and is more sensitive to scaling and step size. Shrinkage LDA estimates a linear discriminant while stabilizing the covariance matrix. GaussianNB models continuous predictors with class-specific Gaussian distributions, whereas BernoulliNB models binary indicators. Their low capacity is useful with limited data, although conditional-independence and distributional assumptions can miss HR interactions.

3.2.2. Neighborhood, Margin, and Neural Models

KNN predicts from nearby training records and therefore depends on scaling, distance, dimensionality, and local density [17]. Repeated monthly records make it especially vulnerable to recognizing employee profiles rather than learning patterns that transfer to different employees. LinearSVM estimates a maximum-margin linear boundary; RBFSVM adds a radial kernel and greater nonlinear flexibility [14]. The MLP learns nonlinear interactions through back-propagation [18], but its parameter count and flexible surface increase selection variance when independent employees are limited. These models are regularized and tuned only within the development protocol.

3.2.3. Trees, Bagging, and Imbalance-Aware Ensembles

A decision tree recursively selects splits that reduce node impurity. Its interpretability is offset by high variance. BaggingTree averages trees fitted to resampled data. RandomForest additionally randomizes candidate features [13], and ExtraTrees randomizes split selection more strongly. BalancedRandomForest trains trees on class-balanced samples; EasyEnsemble averages learners fitted to several balanced subsets. These two methods can raise minority recall, but changing the training class distribution may reduce precision and distort raw probability values.

3.2.4. Boosting Models

AdaBoost increases the influence of misclassified observations [16]. GradientBoosting fits successive trees to the loss gradient [15], and HistGradientBoosting bins continuous values for speed and regularization. XGBoost adds second-order loss information, explicit tree penalties, row and column sampling, and efficient construction [19]. LightGBM uses histogram-based, leaf-wise growth. CatBoost processes categories natively and uses ordered statistics to reduce target leakage. Comparative evidence shows that their relative performance remains data dependent [20]; library names do not determine the winner.
All 22 comparators use identical prediction-time feature restrictions, employee weighting, grouped folds, model-selection data, and alert-cutoff rules. Earlier attrition studies are used to motivate coverage, not to transfer their reported scores [50,51,52,53,54]. The unified protocol tests whether an apparent advantage survives the same business target and the same evaluation settings.

3.3. Proposed HRE-XCB Three-Branch Ensemble

3.3.1. Design Rationale

The proposed method is named the Hierarchical Risk Encoding XGBoost-CatBoost Ensemble (HRE-XCB). The formal name identifies how categories are summarized, which tree learners are used, and how their outputs are combined. It does not claim a newly invented boosting algorithm. The method combines established learners in a structure designed for the limited employee data of the study enterprise.
The design targets three sources of instability at once: sparse one-hot categories, noisy outcome summaries for small organizational groups, and optimistic category statistics computed with an employee’s own result. The branches address these problems differently, while the constrained weighted average limits the freedom of the final combination. This structure makes each claimed contribution testable through single-branch and partial-ensemble comparisons.
The central problem is how to express several types of HR information without fitting noise. The predictors include numeric values, stable labels, category fields with many distinct job or department names, and broad-to-specific business groups. One-hot encoding is transparent, but it treats every department or job as unrelated to every other one. An outcome-based category average, often called target encoding, can summarize risk but may give a rare category an extreme value after one departure. Calculating that average from all rows would also let an outcome help create its own predictor. CatBoost offers another category-handling method, but it does not guarantee the specific broad-to-narrow borrowing designed for this study. No single representation resolves all these problems.
HRE-XCB therefore uses three modeling branches built from the same permitted employee information:
  • Raw-XGB learns from filled, standardized, and one-hot-encoded fields.
  • HRE-XGB adds category risk summaries that exclude the employee’s own outcome and borrow strength from broader business groups.
  • CatBoost keeps the original category labels and calculates category summaries without using the current row’s outcome.
The branches use overlapping information but learn patterns differently. Raw-XGB finds nonlinear splits in the standard prepared matrix. HRE-XGB adds the planned business hierarchy. CatBoost handles fields with many distinct labels without manually creating a column for each one. When the branches make partly different errors, averaging may make the final score more stable near the alert cutoff. This possible benefit is tested through fixed weight selection and direct component comparison; it is not assumed from the architecture alone.

3.3.2. Branch I: Raw-XGB

Raw-XGB receives the permitted HR fields after training-only median and mode filling, missing-value flags, rare-category handling, standardization, and one-hot encoding. Its loss uses the employee-equal recency weight w i t and a positive-class scale computed from weighted class totals:
ρ = i , t : y i t = 0 w i t i , t : y i t = 1 w i t .
The class scale changes the relative influence of departures and non-departures during learning. Employee weights prevent repeated monthly records from increasing one person’s total influence. Candidate Raw-XGB settings vary tree depth, learning rate, tree count, minimum child weight, row and column sampling, L 1 regularization, L 2 regularization, and recency decay. The search favors shallow or strongly regularized trees because unrestricted boosting can divide small employee groups too precisely.
This branch serves two roles. First, it is a strong boosted-tree learner that can be compared with the general XGBoost baseline under a richer search. Second, it anchors the ensemble in fields prepared without using departure outcomes. If an outcome-based category summary reacts too strongly to a rare job, Raw-XGB can contribute a less outcome-sensitive score.

3.3.3. Business-Derived Categorical Structure

Before constructing the outcome-informed HRE branch, a small number of fixed business fields are derived. Continuous tenure is grouped into less than six months, six to twelve months, one to two years, two to three years, three to five years, and more than five years. Age is grouped into at most 25, 26-30, 31-35, 36-40, 41-50, and more than 50 years. The outcome does not determine these bands. They express understandable career stages and let the model combine nearby values.
A combined category allows the model to distinguish, for example, early-tenure sales advisers from early-tenure instructors. The implemented combinations are job family with tenure stage, job family with center type, job level with center type, education with major group, entry year with job family, and residential region with center type. The list is fixed as part of the model design. It is not created by searching every possible pair against the outcomes. This limits chance findings and keeps each combination understandable. Even so, the combination remains a predictive signal rather than proof of a behavioral mechanism.
The HRE branch also defines where a rare or new category should borrow information. Department borrows from center type; job and job level borrow from job family. Job-family interactions return to job family, job-level-by-center returns to job level, education-by-major returns to education, and residential-region-by-center returns to center type. A category without a sensible parent uses the overall departure rate in the development data. This is a practical representation of the business hierarchy. It is not a map of causal relationships.

3.3.4. Hierarchical Risk Encoding

Consider a specific category c, such as one job title, and its broader group g ( c ) , such as a job family. Within training data, let s c be the departure count, n c the record count, and μ g ( c ) the estimated risk of the broader group. The smoothing value α > 0 controls how much the specific category borrows from that group:
r c = s c + α μ g ( c ) n c + α .
The formula combines the category’s own history with the broader group’s history. In statistical terms, it is a simple beta-binomial posterior mean when α μ g ( c ) and α [ 1 μ g ( c ) ] are read as prior pseudo-counts. Here, prior means the rate supplied before the specific category has enough observations; it is learned from the development data, not imposed as a universal truth. A category without a defined broader group uses the overall training departure rate μ . Broader groups are also pulled toward μ . A rare job therefore first borrows from its job family, while an unseen family ultimately uses the overall rate.
The shrinkage has an intuitive sample-size effect:
r c = n c n c + α s c n c + α n c + α μ g ( c ) .
When n c α , the broader parent group has more influence. When n c α , the category’s own history has more influence. Candidate smoothing values are 12, 35, and 70. They range from lighter to stronger borrowing and are selected only through grouped development data. Results from later historical evaluations do not choose the smoothing value.
Three outputs are generated for every encoded feature:
R c = r c , L c = log r c 1 r c , Q c = log ( 1 + n c ) ,
Values are kept slightly above zero and below one so that the log-odds is defined. Here, n c is the raw category support count learned from the employee-excluding encoding-fit data. It is fixed after fitting and does not depend on the number of employees scored together. R c is the borrowed risk estimate. L c expresses it on the log-odds scale, which spreads out values near zero and one. Q c tells the model how much training support underlies the estimate. Two categories can have the same estimated risk but very different evidence, and the downstream tree can learn that distinction.
For an unseen node at transformation time, R c and L c are computed from its available parent estimate, and its support count is set to zero. Unknown values do not receive an arbitrary zero risk. This behavior matters operationally because new job titles or reorganized departments can appear after training.

3.3.5. Cross-Fitted Category Summaries That Exclude the Employee

An outcome-based category summary must not use the result of the employee it is describing. Removing only the current row is not enough because another monthly record of the same person can contain a closely related result. HRE therefore uses cross-fitted encoding that excludes all records of the employee being encoded.
Let employees be partitioned into K deterministic folds G 1 , , G K . For every employee in fold k, the encoding state Θ ( k ) is fitted using employees outside G k :
e i t CF = E ( x i t ; Θ ( k ) ) , i G k .
No month of employee i is allowed into Θ ( k ) . A stable hash of the employee identifier and random seed assigns the groups reproducibly. Five groups are used for the final encoding. Each training row first receives a summary built without that employee. A full training-only encoding table Θ ( a l l ) is then created for the model-selection period, later evaluations, and deployment records:
e j t new = E ( x j t ; Θ ( a l l ) ) .
This two-step procedure makes training resemble real use. During fitting, XGBoost sees category summaries that did not use the employee’s own outcome. During later scoring, it uses a encoding table learned from all permitted development employees, none of whom supplies the unknown future outcome of the person being scored. Excluding the whole employee is stronger than removing only one row and is central to preventing inflated results.

3.3.6. Branch II: HRE-XGB

HRE-XGB concatenates the conventional Raw-XGB matrix z i t and HRE vector e i t :
u i t = [ z i t ; e i t ] .
A regularized XGBoost learner then estimates p H = P ( y = 1 u ) . The same employee-equal, recency, and weighted class-ratio logic applies. Including the raw matrix prevents the risk encodings from becoming an information bottleneck. Numeric gradients and categories that do not benefit from supervised pooling remain available directly.
HRE-XGB is not assumed to be stronger on its own than Raw-XGB or CatBoost. Its purpose is to add a structured signal that may help only for certain employees or at a small ensemble weight. Direct component comparison must report weak performance if it occurs. The proposed contribution can lie in a tested combination and careful validation; every branch does not need to improve every measure by itself.

3.3.7. Branch III: CatBoost

The third branch keeps cleaned category labels and the fixed business combinations. Numeric columns remain numeric, while CatBoost is told which columns contain categories. Instead of calculating each category’s outcome average from the entire training set, CatBoost repeatedly places records in random orders. For the record at position k, its category summary can use only earlier positions in order π :
OTS π k , c = j < k I ( x π j = c ) y π j + a μ j < k I ( x π j = c ) + a .
Ordered boosting applies the same idea while fitting each new tree, so a row’s outcome has less opportunity to shape the prediction made for that row. Several random orders and CatBoost’s internal category combinations produce a representation different from the manually defined HRE hierarchy.
Candidate CatBoost settings vary ordered versus ordinary boosting, depth three to five, 360 to 520 iterations, learning rate 0.025 to 0.03, leaf regularization, random strength, and recency decay. The selected category branch uses CatBoost. Weighted class ratios and employee-equal sample weights are supplied. Shallow symmetric trees, L 2 leaf regularization, randomization, and slow learning limit complexity when employee data are limited.
CatBoost and HRE prevent self-use of outcomes in different ways. HRE builds an inspectable cross-fitted map that excludes the employee and borrows from broader business groups. CatBoost uses only earlier records within random orderings when it calculates category summaries. HRE follows the planned business hierarchy; CatBoost is more flexible when learning category combinations. The two branches therefore do not duplicate the same encoding method.

3.3.8. Nonnegative Probability Fusion

Let p R , p H , and p C be scores from Raw-XGB, HRE-XGB, and CatBoost. The final model takes a nonnegative weighted average whose weights sum to one. Mathematically, this is a weighted average:
p ^ HRE - XCB = w R p R + w H p H + w C p C , w R , w H , w C 0 , w R + w H + w C = 1 .
The employee-separated development procedure selected the weights
( w R , w H , w C ) = ( 0.65 , 0.15 , 0.20 ) .
Thus, Raw-XGB carries the largest development-selected weight, CatBoost provides a category-native view, and HRE-XGB contributes the explicit hierarchy experiment. Reporting the weights makes the role of each branch explicit; the ensemble is not an equal partnership.
The selected Raw-XGB uses 300 trees, learning rate 0.033333266, depth four, minimum child weight three, row subsampling 0.935770109, column subsampling 0.870363951, L 1 regularization 0.0659628, L 2 regularization 1.62984271, and recency decay 0.08. HRE-XGB uses 280 trees, learning rate 0.04, depth three, minimum child weight two, row and column subsampling 0.95, L 1 regularization 0.05, L 2 regularization 3.0, HRE smoothing 70, and recency decay 0.18. CatBoost uses 360 iterations, learning rate 0.03, depth five, leaf L 2 regularization 12, random strength 1.8, plain boosting, and recency decay 0.30. These settings are estimates for the development sample, not generic recommendations for another organization.
This simple weighted average is preferred to an unrestricted second-level model for three reasons. Its output remains within the range of the component scores. Only two weights are free after requiring the total to equal one, which limits instability. Every final score can also be rebuilt from three stored component scores. A more complex stacking model could learn nonlinear relationships among them, but limited employee data would make that extra layer easier to overfit. The formula reflects this study’s development evidence and is not presented as a universal weighting rule.

3.4. Two-Stage Model Search and Alert-Cutoff Selection

3.4.1. Candidate Space Defined before Later Evaluation

The search defines 152 base configurations before any later evaluation. Raw-XGB contributes 32 candidates: eight regularization and tree-shape profiles crossed with four recency-decay values. HRE-XGB contributes 96 candidates: the same eight profiles and four recency values crossed with three levels of borrowing from broader groups. Native CatBoost contributes 24 candidates: six CatBoost profiles crossed with four recency values. The saved experiment plan records this arithmetic, so the search can be checked and repeated.
Stage 1 uses three employee-based folds and seed 20260731 to screen all 152 candidates. Stage 2 retains six candidates from each modeling branch, producing 18 finalists. They are checked again with four employee-based folds and three seeds: 20260731, 20261728, and 20262725. Using several seeds reveals whether a result depends on a favorable split or initialization. Seven candidates are then fixed for the final comparison: selected single-branch models and a small set of nonnegative weighted averages. Only the model-selection period may rank them.
The two stages balance breadth and stability. Repeating the most expensive procedure for every configuration would increase computation without adding independent employees. Selecting directly from one three-fold run, however, could choose a lucky candidate. The second stage spends repeated evaluation only on a limited finalist set. Cross-validation can still look optimistic after many models have been compared [31,32]. Candidate selection therefore uses grouped performance across folds and seeds, while the records from employees kept out of model development remain outside every development decision.

3.4.2. Choosing an Alert Cutoff That Protects Recall

The alert cutoff is an HR decision setting, not an intrinsic property of XGBoost or CatBoost. For model-selection labels y i and scores p i , candidate cutoffs are taken from the precision-recall curve and limited to a prespecified range. Let R ( τ ) , F 1 ( τ ) , and A ( τ ) denote recall, F1, and accuracy. Given minimum acceptable values R m i n and F m i n , the rule is
τ * = arg max τ A ( τ ) : R ( τ ) R m i n , F 1 ( τ ) F m i n .
Ties are resolved by F1, precision, and then cutoff. If no cutoff satisfies these conditions, the development procedure falls back to a recall-oriented rule. In plain terms, the model must first find enough future leavers and maintain a minimum balance between missed and false alerts. It may then reduce total errors and HR workload. This order prevents accuracy from selecting an almost all-negative alert list.
The employee-separated search selected HRE-XCB weights of 0.65/0.15/0.20 for Raw-XGB, HRE-XGB, and CatBoost, respectively. After refitting the selected definitions with the fixed audit seeds, the May alert cutoff was 0.317443. The common development objective uses PR-AUC for ranking and requires recall of at least 0.80 and F1 of at least 0.55 before secondary criteria are considered.

3.5. Evaluation Metrics and Probability Interpretation

3.5.1. Measures for the Final Alert List

Let T P , F P , T N , and F N denote correct alerts, false alerts, correct non-alerts, and missed departures at the final chosen cutoff. The reported classification metrics are
Accuracy = T P + T N T P + F P + T N + F N ,
Precision = T P T P + F P , Recall = T P T P + F N ,
and
F 1 = 2 Precision · Recall Precision + Recall .
Balanced accuracy, the average of sensitivity and specificity, is used as a supplementary diagnostic during broad screening. Accuracy estimates the overall proportion of correct decisions, but it is not the primary indicator of attrition-warning utility. With a low event rate, a large number of correct negatives can conceal poor retrieval of future departures. Recall asks what proportion of employees who later leave were placed on the review list. Precision asks what proportion of alerts correspond to an observed departure and therefore describes review workload. F1 balances recall and precision and penalizes a model that improves one by sacrificing the other.
The business priority is stated before reading later evaluation results. Recall is the first alert-list safety measure because an employee missed by the model cannot receive a timely retention conversation. Precision and alert rate represent HR workload and the possible harm of unnecessary scrutiny. F1 summarizes this tension but does not assign a monetary value to every outcome. Accuracy is retained for completeness and comparison with earlier attrition studies. It is not used alone as proof that the model recognizes future leavers.

3.5.2. Ranking Measures Across Possible Cutoffs

Receiver operating characteristic area under the curve (ROC-AUC) is the probability that a randomly selected future leaver receives a larger score than a randomly selected non-leaver, with ties handled conventionally [26]. It evaluates pairwise ranking across all cutoffs. However, its false-alert rate is divided by the usually large number of non-leavers. ROC-AUC can therefore look favorable even when many employees on the alert list do not leave.
Precision-recall area under the curve (PR-AUC), implemented as average precision, focuses on the less common departure class. Its reference level depends on the departure rate, so values should be interpreted within each evaluation set. In an imbalanced problem, the precision-recall plot can be more informative than the ROC plot [25]. PR-AUC is therefore the main score for ranking quality across possible cutoffs, while ROC-AUC remains a useful supplement. Neither selects the final alert cutoff, and neither shows that a numeric score has a reliable probability meaning.

3.5.3. Reliability of the Numeric Risk Score

The Brier score gives a direct penalty when a predicted number is far from the observed result. It is the mean squared probability error:
Brier = 1 n i = 1 n ( p ^ i y i ) 2 .
It is a proper scoring rule, meaning that an honestly estimated conditional probability minimizes expected loss. The score reflects both reliability and the ability to separate risk levels, and it is affected by the event rate. Lower is better, but two evaluation sets with different departure rates are not directly interchangeable.
Expected calibration error (ECE) provides an easier group-level view. It places scores into bands B 1 , , B M and compares the mean prediction with the observed departure frequency:
ECE = m = 1 M | B m | n acc ( B m ) conf ( B m ) .
Here, acc ( B m ) is the observed event share and conf ( B m ) is the mean score in band m. ECE is intuitive but changes with the band definitions and is not itself a proper scoring rule. It is therefore reported with Brier score and reliability plots. Numeric probability quality is a known weak point of predictive analytics, especially after flexible model and cutoff selection [27].
These distinctions determine how individual scores are described. A high PR-AUC indicates useful ordering; it does not mean that a score of 0.70 is a proven 70% personal chance of leaving. A low ECE in one historical month may not persist after changes in management, labor markets, or data recording. Until a genuinely future group accumulates complete outcomes, HRE-XCB scores should support ranking, percentiles, and broad risk bands. Literal personal probabilities require future-data adjustment and continued monitoring.

3.6. Uncertainty, Model Explanation, and Job-Group Checks

3.6.1. Bootstrap Uncertainty

A single metric can exaggerate a small difference when few employees leave. The final model settings are therefore assessed with 5,000 bootstrap resamples in each evaluation. Bootstrap resampling means repeatedly drawing complete employee clusters with replacement to show how much a metric changes under similar samples. Departures and non-departures are drawn separately so that both outcomes remain present. Each draw uses the already fixed scores and cutoff. The 2.5th and 97.5th percentiles form a descriptive 95% interval.
For a metric M, replicate b gives M ( b ) , and the interval is
Q 0.025 { M ( b ) } b = 1 5000 , Q 0.975 { M ( b ) } b = 1 5000 .
When comparing an alternative setting with the selected research model, both are calculated on the same resampled employees. This paired comparison summarizes Δ M ( b ) and removes variation caused merely by drawing different records. A positive difference favors the alternative for higher-is-better measures. A negative difference favors it for Brier score or ECE. Overlap between two separate intervals is not treated as a formal paired comparison.
The intervals describe repeated sampling within the observed evaluation data. They do not include uncertainty from the single administrative snapshot, missing historical predictors, the number of models tried, a future economic change, or use in another enterprise. Grouping employees during development addresses only part of the dependence among repeated monthly records. A difference of one or two thousandths is therefore reported as a point-estimate difference unless its practical size and paired interval support a stronger statement. Guidance for limited prediction datasets likewise cautions against fine-grained claims [29,30].

3.6.2. Which Variables the Model Uses

The final HRE-XCB model is explained by asking how much ranking quality falls when one source variable is randomly rearranged. This method is called grouped permutation importance. Let S be the original ROC-AUC and let S j , r p e r m be ROC-AUC after predictor j is rearranged in repetition r. Importance is
I j = 1 R r = 1 R ( S S j , r p e r m ) .
Rearranging a source variable breaks its observed association with departure while leaving the fitted model unchanged. All derived columns from one source concept are treated together, so dozens of one-hot or HRE columns do not receive misleadingly separate credit. A larger decrease means that the fixed model relied more strongly on that variable to order employees in the current evaluation. It does not establish that the variable caused turnover.
Correlated predictors can share or mask permutation importance. For example, job, job family, department, and center overlap structurally. Permuting one while retaining the others may understate its total information, while an unrealistic permutation can create combinations absent from the organization. Importance is therefore a model-behavior diagnostic, not an estimate of a feature’s causal effect or managerial responsibility.
LIME approximates one prediction with a simple local model [21]. SHAP assigns additive contribution values based on Shapley-value theory, and tree-specific SHAP methods can summarize these local explanations [35]. Both can be useful, but each explanation must be linked to the model that produced it. A component-level SHAP value is not an explanation of the three-branch HRE-XCB score, particularly when categorical tree splits require a different explainer. The paper therefore uses grouped permutation importance for the ensemble and confines LIME or SHAP interpretation to the component actually analyzed. Reviews of explainable AI likewise stress that an explanation should match its user and decision context [36].

3.6.3. Job-Group and Sensitive-Feature Checks

Metrics are disaggregated by financially and operationally meaningful job families, including sales advisers, instructors and curriculum research, operations and service, comprehensive management, and back-office functions. Each cell reports its number of observations, positives, and negatives alongside recall, precision, and F1. A minimum of 20 observations, three positives, and three negatives is required for a metric cell to be shown as calculable. This is only a descriptive threshold; it does not guarantee adequate power or stable ranking. Groups with very few departures are explicitly marked as insufficient for comparative conclusions.
Protected or potentially sensitive attributes, such as sex, marital status, household registration, or residential region, require a separate governance review. The fact that a field predicts an outcome does not make its use legitimate. It may reflect social structure or historical organizational practice. The system must compare missed and false alerts across meaningful groups, document whether each sensitive field is necessary, and test a restricted model when legal or ethical review requires exclusion. No group result may become an automatic adverse-employment rule.

3.7. Data, Employee Separation, and Experimental Protocol

The source contained 1,397 de-identified employee records. Seven reference dates produced 6,935 reconstructed monthly records for voluntary turnover within 90 days. Reconstruction expresses how one administrative export would be queried at different dates; it does not turn that export into genuine historical snapshots. Missing values were retained through training-learned numeric medians and explicit categorical missing levels. No record was removed merely because a noncritical field was absent. Numeric transformations, category vocabularies, hierarchy summaries, and model parameters were learned inside the development data.
The employee, not the row, was the independent unit. Each source row had a unique internal identifier; names were never used as employee keys. Among 928 employees evaluable in June 2022, 278 were selected with seed 20261640 without reading outcomes. Every December–May record for those employees was excluded before feature screening, hierarchy encoding, hyperparameter tuning, ensemble weighting, and cutoff selection. Development contained 3,735 training rows from December 2021 through April 2022 and 710 May selection rows. The retrospective June evaluation contained 278 separated employees and 24 departures; employee overlap was zero. June outcomes were accessible during the research, so this evaluation is not described as blinded, prospective, external, or untouched.
The full catalog contained 22 general-purpose classifiers. Five strong baselines–logistic regression, random forest, Extra Trees, histogram gradient boosting, and XGBoost–received 40 randomized configurations each under four employee-group folds. The HRE-XCB search evaluated 152 base structures, then reevaluated 18 finalists across four employee-group folds and three seeds. Candidate selection used May data only. The selected weights were 0.65 for Raw-XGB, 0.15 for HRE-XGB, and 0.20 for CatBoost; after the selected component definitions were refitted with the fixed audit seeds, the May alert cutoff was 0.317443. All evaluation predictions were generated without retuning.
PR-AUC was the primary ranking endpoint because the evaluation positive rate was 8.63%. Recall, precision, F1, accuracy, and alert rate described the selected alert list. Brier score, expected calibration error, calibration intercept, calibration slope, and reliability curves assessed whether numeric scores resembled probabilities. Model differences were evaluated with 5,000 paired employee-cluster bootstrap resamples, stratified by outcome. Field-timing sensitivity held the fitted HRE-XCB structure fixed while masking organization fields whose historical values could not be confirmed. Forty-two voluntary departures without a departure date were excluded from monthly 90-day outcome reconstruction and are reported in the sample flow.
Figure 2. Time periods and employee-level separation.
Figure 2. Time periods and employee-level separation.
Preprints 226535 g002
Development uses December 2021 through April 2022 for training and May 2022 for model selection. The 278 evaluation employees contribute no December–May records to any development step. June 2022 contains 278 separated employees and 24 departures. June outcomes were available during the study, so this is a retrospective evaluation rather than a blinded, prospective, or external test.

3.8. Models Compared and Their Purpose

The broad screen covers different inductive biases. Its purpose is not to claim that every algorithm received an unlimited search budget. It establishes whether a linear boundary, local neighborhood, probabilistic independence assumption, margin, single tree, randomized ensemble, sequential booster, native-category learner, or neural interaction surface is plausible for the same target. The strongest families then enter the equal-budget comparison. This two-level design preserves breadth without allowing weak default settings to determine the final ranking.
Table 2. Classifiers compared and the purpose of each comparison.
Table 2. Classifiers compared and the purpose of each comparison.
Implemented classifier Main learning assumption Limited-data control Role in the study evidence
DummyPrior no feature information none required exposes majority-class accuracy
Logistic regression regularized linear log-odds L2 shrinkage and standardized numeric inputs tuned linear reference
SGDLogLoss linear log-odds learned incrementally regularization and controlled learning schedule optimization-sensitive linear check
Shrinkage LDA shared class covariance and linear separation covariance shrinkage low-variance discriminant check
GaussianNB conditionally independent Gaussian numeric variables small parameter count distributional probabilistic check
BernoulliNB conditionally independent binary indicators small parameter count sparse-indicator check
KNN nearby records share outcomes scaling and bounded neighborhood size tests local similarity and identity-recurrence risk
Linear SVM maximum-margin linear boundary margin penalty linear boundary without calibrated probability output
RBF SVM smooth nonlinear similarity penalty and kernel-width tuning flexible margin check
Decision tree recursive axis-aligned partitions depth and leaf-size limits interpretable high-variance reference
Bagged trees averaging reduces tree variance resampling and ensemble averaging isolates the value of bagging
Random forest bagging plus feature randomization minimum leaf size and feature subsampling tuned employee-separated-sample ranking reference
Extra Trees strongly randomized tree partitions depth, leaf size, and averaging alternative variance-reduction reference
Balanced Random Forest balanced subsamples per tree ensemble averaging imbalance-aware recall check
EasyEnsemble multiple balanced majority subsets aggregation across subsets under-sampling ensemble check
AdaBoost sequential emphasis on errors shallow weak learners and learning rate reweighting-based boosting check
Gradient boosting additive correction of loss gradients shallow trees and shrinkage classical boosting reference
Histogram gradient boosting binned additive trees leaf and L2 constraints tuned probability-error reference
XGBoost regularized second-order boosting depth, sampling, and L1/L2 penalties tuned general boosting reference
LightGBM histogram-based leaf-wise growth leaf-count and minimum-data limits efficient boosting check
CatBoost ordered categorical statistics and symmetric trees ordered boosting and leaf regularization category-native high-recall reference
MLP nonlinear interactions in hidden layers small network, weight decay, and early stopping flexible neural reference
Only logistic regression, random forest, Extra Trees, histogram gradient boosting, and XGBoost received the final equal budget of 40 randomized configurations because they represented strong distinct families under the common encoded pipeline. CatBoost was tuned in the category-native branch, and HRE-XCB was developed through the three-branch search. The main table separates these comparably developed candidates from the predefined 22-model screen. The full screen is reported in the supplement with its lower tuning status made explicit.

3.9. How Hierarchical Risk Encoding Stabilizes Rare Categories

For category c nested in parent group g, let n c be the number of development employees in the category, y ¯ c their observed event rate, μ g the parent estimate, and α the smoothing strength. HRE uses
r c = n c y ¯ c + α μ g n c + α = λ c y ¯ c + ( 1 λ c ) μ g , λ c = n c n c + α .
The estimator has three useful properties. It remains between the category and parent estimates; it approaches the parent when evidence is sparse; and it approaches the category rate as evidence grows. Unknown jobs first fall back to job family, unknown departments to center type, and insufficient parent groups continue toward the global prior. The parent-based default therefore degrades gradually rather than replacing every unseen category with an arbitrary zero or extreme code.
HRE outputs the smoothed rate, its log-odds transform, and log ( 1 + n c ) , where n c is the raw support count learned from the employee-excluding encoding-fit data. This support value is fixed after fitting and is independent of scoring-batch size. It distinguishes a well-observed rate from the same numerical value obtained mainly from a broader group. The downstream shallow XGBoost branch can learn whether to trust the rate conditionally on its support.
The essential leakage control operates at employee level. For grouped fold k, the encoding table Θ ( k ) is estimated without any monthly record from employees in that fold. All records of employee i are then transformed with the same outside-employee encoding table. Row-wise leave-one-out encoding is insufficient because another month from the same employee can contain the same stable categories and related outcome. During evaluation, the encoding table is fitted only from development employees and applied unchanged to the separated employee. Smoothing controls variance; employee exclusion controls self-information. They solve different problems.
Employee-equal weighting addresses repeated exposure. If employee i contributes m i monthly records, the base weight of each record is proportional to 1 / m i , so one employee’s total baseline contribution remains approximately one. Class weighting changes the cost of positive and negative errors, while recency decay changes the relative contribution of older months. These factors are multiplied only inside development and must not be estimated from strict outcomes.

3.10. Model Search, Selection, and Rejection Rules

The innovation search begins with 152 base structures: 32 Raw-XGB structures, 96 HRE-XGB structures, and 24 native CatBoost structures. The first stage uses employee-group folds to screen the full set. Six candidates per branch then form 18 finalists, which are reevaluated with four employee-group folds and three seeds. Nonnegative weighted averages preserve component-score bounds and add only two free weights. The selected combination assigns 0.65 to Raw-XGB, 0.15 to HRE-XGB, and 0.20 to CatBoost.
Candidate rejection is part of the method. A model is not retained merely because one metric rises. It must first meet the May recall requirement of 0.80 and F1 requirement of 0.55. PR-AUC then evaluates ranking, while accuracy, precision, alert rate, Brier score, fold dispersion, and model complexity provide secondary evidence. A change that raises recall by alerting almost everyone, improves Brier while weakening ranking, or wins only under one seed is recorded as a trade-off for one objective rather than a general improvement.
The same principle governs the evaluation comparison. Each candidate uses its development-selected cutoff on the same 278 employees. Paired resampling draws complete employee clusters within outcome class so that an interval describes the difference between two models on matched employees. This is more informative than comparing two independent confidence intervals. With 24 positive outcomes, however, intervals remain too wide to establish a permanent population order.
The implementation records the employee split, candidate identifier, random seed, model settings, and evaluation results. Figures and manuscript tables come from the same saved results. Reproducibility means that the stated procedure can reproduce the reported results for this sample. It does not turn a retrospective study into a prospective validation.

4. Results

4.1. Model Development Under Employee Separation

The protocol separated employees before candidate screening. Of 928 employees evaluable in June, 278 were sampled with a fixed seed without reading outcomes. Their December–May records were excluded from encoding, fitting, search, weighting, and cutoff selection. Development then used 3,735 training records and 710 May model-selection records. The June evaluation contained 278 separated employees and 24 departures, with zero employee overlap. June outcomes were available during the study, so the evidence is retrospective rather than prospective or external.
The HRE-XCB search covered 152 base structures and reevaluated 18 finalists with employee-group folds and three random seeds. After the selected definitions were refitted with the fixed audit seeds, HRE-XCB achieved May recall 0.8120, F1 0.6859, and PR-AUC 0.7576. Extra Trees achieved F1 0.7917 and PR-AUC 0.8445; native CatBoost achieved 0.7041 and 0.8069. The May period selected settings only and was not used as final evidence.
Figure 3. Model selection under common employee-separated development rules.
Figure 3. Model selection under common employee-separated development rules.
Preprints 226535 g003
Points compare F1 and PR-AUC in the May model-selection period. The highlighted ensemble is HRE-XCB. The chart describes development-stage selection and is not evidence of future superiority.

4.2. Results for Employees Kept Out of Model Development

Table 3 and Figure 4 report results for the separated employees. Among the equally tuned shortlist, random forest produced the highest PR-AUC (0.3772). Extra Trees produced the highest F1 (0.4324), precision (0.3200), and accuracy (0.8489). Histogram gradient boosting achieved recall 0.7917, F1 0.4270, and the lowest Brier score (0.0752). HRE-XCB achieved recall 0.7500, F1 0.3750, PR-AUC 0.3477, and Brier 0.1023. Native CatBoost reached recall 0.7917 but alerted 39.21% of employees. DummyPrior obtained 91.37% accuracy while detecting no departures, directly showing why accuracy cannot be the primary endpoint.
Table 3. Retrospective employee-separated performance under comparable development rules.
Table 3. Retrospective employee-separated performance under comparable development rules.
Model Accuracy Precision Recall F1 PR-AUC Brier
RF .8094 .2542 .6250 .3614 .3772 .1134
HistGB .8165 .2923 .7917 .4270 .3756 .0752
Extra Trees .8489 .3200 .6667 .4324 .3622 .1074
XGBoost .8022 .2615 .7083 .3820 .3611 .1305
HRE-XCB .7842 .2500 .7500 .3750 .3477 .1023
LR .7806 .2394 .7083 .3579 .3319 .1306
CatBoost .6583 .1743 .7917 .2857 .3127 .1684
Prior-only .9137 .0000 .0000 .0000 .0863 .1318
RF, HistGB, and LR denote tuned random forest, histogram gradient boosting, and logistic regression, respectively.
Figure 4. Retrospective employee-separated comparison under comparable tuning.
Figure 4. Retrospective employee-separated comparison under comparable tuning.
Preprints 226535 g004
Each cell prints the raw metric value. Color represents the within-metric rank, with Brier ordered in the lower-is-better direction. The different darkest cells show why the data do not support a universal winner.

4.3. HRE-XCB Component Ablation

The development procedure selected weights of 0.65 for Raw-XGB, 0.15 for HRE-XGB, and 0.20 for CatBoost. Raw-XGB alone achieved PR-AUC 0.3481 and F1 0.4091 on separated employees. Raw-XGB plus HRE-XGB achieved 0.3492 and 0.3871. The complete HRE-XCB achieved 0.3477 and 0.3750. These differences are too small and uncertain to establish a ranking advantage, and the full ensemble did not outperform Raw-XGB on F1 or PR-AUC. HRE remains a defined and reproducible representation, but the data do not establish incremental predictive value. A runtime audit also scored all 278 evaluation employees both together and one at a time; the maximum absolute probability difference was 0.0, confirming that HRE-XCB predictions no longer depend on scoring-batch size.
Figure 5. HRE-XCB structure selected within employee-separated development.
Figure 5. HRE-XCB structure selected within employee-separated development.
Preprints 226535 g005
The component experiment reports separated-employee PR-AUC and F1 for all single branches, pairwise combinations, and the complete ensemble. It rejects a claim that every added branch improved performance.

4.4. Decision-Specific Model Roles

The empirical results support several roles rather than one permanent ranking. Random forest is the ranking reference within the equally tuned shortlist. Extra Trees offers the highest observed F1 and the smallest review list among the higher-performing candidates. Histogram gradient boosting offers high recall and the lowest probability error. HRE-XCB remains a representation experiment, not the operational winner. These roles are provisional because their PR-AUC intervals overlap. The separate preset-model screen is reported independently and is not merged into this ranking.
Figure 6. Model roles under different human-resource decision objectives.
Figure 6. Model roles under different human-resource decision objectives.
Preprints 226535 g006
The four roles are conditional on the observed employee-separated sample. They do not constitute permanent rankings or authorization for automated employment action.

4.5. Paired Uncertainty

Five thousand paired employee-cluster bootstrap samples compared each candidate with HRE-XCB. Random forest differed by -0.0136 in F1 (95% interval -0.1078–0.0719), 0.0295 in PR-AUC (-0.0377–0.1061), and 0.0111 in Brier (0.0033–0.0187). Extra Trees differed by 0.0574 in F1 (-0.0375–0.1444) and 0.0145 in PR-AUC (-0.0709–0.0939). Histogram gradient boosting differed by 0.0520 in F1 (-0.0140–0.1235), 0.0278 in PR-AUC (-0.0250–0.0688), and -0.0271 in Brier (-0.0357 to -0.0187). No tuned candidate had a PR-AUC difference interval excluding zero. The Brier intervals show objective-specific differences: HRE-XCB had lower probability error than random forest, whereas histogram gradient boosting had lower error than HRE-XCB.
Figure 7. Paired bootstrap differences relative to HRE-XCB.
Figure 7. Paired bootstrap differences relative to HRE-XCB.
Preprints 226535 g007
Points are candidate-minus-HRE-XCB differences and bars are 95% employee-cluster bootstrap intervals. Positive favors the candidate for F1 and PR-AUC; negative favors the candidate for Brier score.

4.6. Feature Timing and Probability Calibration

The one-time administrative export could not confirm every field at each historical reference date. The uncertain fields were center, department, job, job family, job level, household registration, marital status, political affiliation, and residence. The sensitivity experiment fixed the architecture, hyperparameters, and ensemble weights, refitted the model after masking these fields in the development data, and selected a new cutoff on masked May data (0.314602). On the separated employees, PR-AUC fell from 0.3477 to 0.3120, recall from 0.7500 to 0.5417, and F1 from 0.3750 to 0.3095. Brier improved from 0.1023 to 0.0938. Lower probability error therefore did not imply better ranking or coverage.
Calibration was imperfect. HRE-XCB’s mean score was 0.2333 against an observed rate of 0.0863, with ECE 0.1470, calibration intercept -1.5976, and slope 0.8047. HistGB was closer, with mean score 0.1386, ECE 0.0627, intercept -0.7672, and slope 0.7344. Reliability curves support ranking or broad risk bands, not exact individual probabilities.
Figure 8. Feature-timing sensitivity and probability reliability.
Figure 8. Feature-timing sensitivity and probability reliability.
Preprints 226535 g008
The left panel compares the full-feature model with the restricted-feature refit under fixed architecture, hyperparameters, and weights; each uses a May-selected cutoff. The right panel compares predicted scores with observed rates in equal-count bins. Neither panel supports causal claims or exact personal probabilities.

4.7. Integrated Empirical Interpretation

Figure 9 integrates ranking with alert-list behavior. HRE-XCB detected 18 of 24 departures with 72 alerts. HistGB detected 19 with 65 alerts, while Extra Trees detected 16 with 50 alerts. The appropriate model depends on ranking, coverage, review capacity, and probability error; current intervals do not justify a permanent winner.
Figure 9. Integrated retrospective results for employees kept out of model development.
Figure 9. Integrated retrospective results for employees kept out of model development.
Preprints 226535 g009
The left panel orders models by PR-AUC. The right panel shows the recall–precision trade-off. The evaluation contains 278 separated employees and 24 departures and does not establish future, cross-job, or cross-enterprise superiority.

4.8. Full Algorithm Screen and Review Workload

All 22 predefined classifiers were also fitted under the same employee split and cutoff-selection rule. Gradient boosting had the highest screening PR-AUC (0.4229), followed by bagged trees (0.4015). These screening values are reported for coverage, not as a final ranking, because the models did not receive the same 40-trial search as the tuned shortlist. DummyPrior produced PR-AUC equal to prevalence (0.0863) and zero recall. The complete screen, including all threshold, ranking, and calibration measures, is supplied with the reproducibility files.
Table 4. Equal-budget tuning results for the five strong baselines.
Table 4. Equal-budget tuning results for the five strong baselines.
Tuned baseline Search trials Best grouped-CV PR-AUC Selected complexity control
Logistic regression 40 .5770 L1 penalty, C=.1473
Random forest 40 .6199 depth 8, minimum leaf size 4, square-root feature sampling
Extra Trees 40 .6195 unrestricted depth, minimum leaf size 5, square-root feature sampling
Histogram gradient boosting 40 .6296 17 leaf nodes, minimum leaf size 8, learning rate .0239, L2=.2206
XGBoost 40 .6142 depth 5, minimum child weight 3, row/column sampling, L1/L2 penalties
Alert counts make the management trade-off concrete. HRE-XCB detected 18 of 24 departures and issued 72 alerts. HistGB detected 19 with 65 alerts, while Extra Trees detected 16 with 50. Random forest detected 15 with 59 alerts. XGBoost and logistic regression each detected 17, with 65 and 71 alerts, respectively. CatBoost detected 19 with 109 alerts. No monetary cost score was calculated because the dataset contains no defensible cost for a missed departure or an unnecessary review.
Table 5. Departure coverage and review workload for separated employees.
Table 5. Departure coverage and review workload for separated employees.
Model True positives False negatives Total alerts False-positive alerts Alert rate
Random forest 15 9 59 44 21.22%
HistGB 19 5 65 46 23.38%
Extra Trees 16 8 50 34 17.99%
XGBoost 17 7 65 48 23.38%
HRE-XCB 18 6 72 54 25.90%
Logistic regression 17 7 71 54 25.54%
CatBoost 19 5 109 90 39.21%
The development-to-evaluation change was material. May prevalence was 16.48%, whereas the separated-employee prevalence was 8.63%. Precision, F1, alert volume, and probability calibration therefore changed even when cutoffs remained fixed. This result supports monitoring prevalence and workload together with predictive measures. It does not justify changing a cutoff after viewing employee identities or outcomes.

5. Discussion

5.1. Interpretation of the Empirical Evidence

The evidence supports decision-specific model choice. HRE-XCB was competitive in development, but its complete structure did not outperform Raw-XGB on separated employees. Random forest ranked best by tuned PR-AUC, Extra Trees by F1, and histogram gradient boosting by Brier score. Their PR-AUC intervals overlapped. The paper therefore treats the evaluation design, not universal ensemble superiority, as the primary contribution.
For risk ranking, PR-AUC is the primary endpoint because departures are uncommon. For an actionable alert list, recall measures missed high-risk employees, while precision and alert rate measure review burden. F1 is a secondary summary at one cutoff. Brier score and calibration diagnostics are required only when numeric scores are given probability meaning. Under the current evidence, scores should be reported as ranks, percentiles, or broad risk bands rather than exact personal departure probabilities.
The management contribution is similarly bounded. Administrative job and tenure fields do not measure job satisfaction, commitment, embeddedness, organizational support, psychological contract, or job demands and resources. Those theories identify plausible mechanisms and responsible interventions; they are not empirically tested by proxy fields in this study. The model supports confidential, non-punitive review. It cannot establish why an employee will leave or authorize dismissal, pay reduction, promotion restriction, or other adverse action.
The 24 positive outcomes remain insufficient for stable job-specific assessment. The study does not establish job-group fairness or justify job-specific cutoffs. Random forest, Extra Trees, and HistGB are the stronger candidates for ranking, alert efficiency, and probability error, respectively. HRE-XCB remains useful only as a reproducible test of organizational representation.
The study covers one enterprise, a short period, and one administrative export. Dates are missing for 42 voluntary departures, which were excluded from monthly outcome reconstruction, and the employee-separated evaluation contains only 24 positive outcomes. June outcomes were available during the study, and no external or prospective cohort was available. Further evidence requires genuine month-end snapshots, a protocol fixed before outcomes mature, an institutional ethics determination where required, and evaluation of fixed models in a future quarter or another enterprise.

5.2. Credibility, Scope, and Management Implications

The study distinguishes four limits. Employee separation and employee-excluding encoding strengthen internal predictive credibility. The timing-masked analysis shows that historical field availability is only partly established. Administrative fields do not directly measure satisfaction, commitment, embeddedness, support, psychological contract, or job demands and resources. One enterprise and one retrospective period cannot establish transport to another time, job mix, or organization.
The model comparison has a practical consequence: selection must follow the decision. PR-AUC is the primary ranking measure; recall, precision, and alert rate define the review list; Brier and calibration diagnostics govern probability language. The present scores are suitable for ranking, percentiles, or broad risk bands. They are not validated personal departure probabilities. No score may trigger dismissal, pay reduction, promotion restriction, or other adverse action.
Before operational use, the organization should freeze the data dictionary, model, cutoff, and review capacity; score a genuine future cohort; and wait for the 90-day outcomes. Monitoring should report prevalence, alert rate, recall, precision, PR-AUC, Brier, calibration, missingness drift, new categories, and subgroup event counts. The model should be paused when data definitions change, review capacity is exceeded, probability error deteriorates, or subgroup evidence shows a material coverage failure.
Future work should preserve genuine month-end snapshots and add validated measures of job demands, resources, support, embeddedness, and turnover intention. A prospective design can then separate prediction from administrative data, the incremental value of psychological measures, and the causal effect of retention actions. Those questions cannot be answered by the current retrospective data.

6. Conclusions

The study delivers a reproducible evaluation framework for 90-day voluntary-turnover warning in finance and taxation education. Employee separation, comparable tuning, full algorithm screening, component ablation, employee-cluster uncertainty, calibration, and field-time sensitivity provide the basis for interpretation. HRE-XCB is a testable representation, not an established improvement. Random forest, Extra Trees, and histogram gradient boosting led different observed endpoints.
These findings support risk ranking and supportive HR review, not automated employment action or exact individual probabilities. They also show why a later-month score or a large grid search cannot substitute for independent employees and genuinely historical features. Prospective and external evidence is still required before any model is treated as a validated organizational decision system.

Author Contributions

Conceptualization, methodology, software, validation, formal analysis, investigation, data curation, writing—original draft preparation, writing—review and editing, visualization, and project administration, H.W. The author has read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Institutional Review Board Statement

This study retrospectively analyzed internal operational data from a collaborating enterprise under formal authorization for academic research. Names, employee numbers, telephone numbers, national identification numbers, and other direct identifiers were removed before analysis. The remaining modeling fields were access-restricted, and employee-level data will not be released. No employee was contacted, intervened upon, or subjected to an employment action through this study. Based on its use of de-identified secondary data and its non-interventional design, the author considers the study eligible for ethics-review exemption; the final determination remains with the target journal and the competent ethics body. The enterprise authorization is retained for editorial review.

Data Availability Statement

Employee-level data are not publicly available because they contain confidential employment information. The accompanying research package provides computationally auditable code, aggregate experimental results, model specifications, and publication figures.

Acknowledgments

The author thanks the study enterprise for providing de-identified administrative data for research.

Conflicts of Interest

The author formerly worked for the data-providing enterprise. The enterprise did not fund this research. This former employment relationship and the enterprise data authorization are disclosed for transparency.

Use of Artificial Intelligence

AI-assisted tools were used for language editing, translation, and formatting support. The author reviewed and verified the research design, code, numerical results, interpretations, citations, and final manuscript and takes responsibility for the content.

Abbreviations

HRE-XCB Hierarchical Risk Encoding XGBoost–CatBoost Ensemble
PR-AUC Area under the precision–recall curve
ROC-AUC Area under the receiver operating characteristic curve
ECE Expected calibration error
HR Human resources

References

  1. Peter W. Hom; Thomas W. Lee; Jason D. Shaw; John P. Hausknecht. One hundred years of employee turnover theory and research. Journal of Applied Psychology, 102(3): 530-545, 2017. [CrossRef]
  2. Alex L. Rubenstein; Marion B. Eberly; Thomas W. Lee; Terence R. Mitchell. Surveying the forest: A meta-analysis, moderator investigation, and future-oriented discussion of the antecedents of voluntary employee turnover. Personnel Psychology, 71(1): 23-65, 2017. [CrossRef]
  3. Thomas W. Lee; Peter W. Hom; Marion B. Eberly; Terence R. Mitchell. On the Next Decade of Research in Voluntary Employee Turnover. Academy of Management Perspectives, 31(3): 201-221, 2017. [CrossRef]
  4. Julie I. Hancock; David G. Allen; Frank A. Bosco; Karen R. McDaniel; Charles A. Pierce. Meta-Analytic Review of Employee Turnover as a Predictor of Firm Performance. Journal of Management, 39(3): 573-603, 2011. [CrossRef]
  5. Tae-Youn Park; Jason D. Shaw. Turnover rates and organizational performance: A meta-analysis. Journal of Applied Psychology, 98(2): 268-309, 2013. [CrossRef]
  6. Brooks C. Holtom; Terence R. Mitchell; Thomas W. Lee; Marion B. Eberly. 5 Turnover and Retention Research: A Glance at the Past, a Closer Review of the Present, and a Venture into the Future. Academy of Management Annals, 2(1): 231-274, 2008. [CrossRef]
  7. T. R. Mitchell; B. C. Holtom; T. W. Lee; C. J. Sablynski; M. Erez. WHY PEOPLE STAY: USING JOB EMBEDDEDNESS TO PREDICT VOLUNTARY TURNOVER. Academy of Management Journal, 44(6): 1102-1121, 2001. [CrossRef]
  8. William H. Mobley. Intermediate linkages in the relationship between job satisfaction and employee turnover. Journal of Applied Psychology, 62(2): 237-240, 1977. [CrossRef]
  9. ROBERT P. TETT; JOHN P. MEYER. JOB SATISFACTION, ORGANIZATIONAL COMMITMENT, TURNOVER INTENTION, AND TURNOVER: PATH ANALYSES BASED ON META-ANALYTIC FINDINGS. Personnel Psychology, 46(2): 259-293, 1993. [CrossRef]
  10. Arnold B. Bakker; Evangelia Demerouti. Job demands–resources theory: Taking stock and looking forward. Journal of Occupational Health Psychology, 22(3): 273-285, 2017. [CrossRef]
  11. Robert Eisenberger; Robin Huntington; Steven Hutchison; Debora Sowa. Perceived organizational support. Journal of Applied Psychology, 71(3): 500-507, 1986. [CrossRef]
  12. Denise M. Rousseau. Psychological and implied contracts in organizations. Employee Responsibilities and Rights Journal, 2(2): 121-139, 1989. [CrossRef]
  13. Leo Breiman. Random Forests. Machine Learning, 45(1): 5-32, 2001. [CrossRef]
  14. Corinna Cortes; Vladimir Vapnik. Support-vector networks. Machine Learning, 20(3): 273-297, 1995. [CrossRef]
  15. Jerome H. Friedman. Greedy function approximation: A gradient boosting machine. The Annals of Statistics, 29(5), 2001. [CrossRef]
  16. Yoav Freund; Robert E Schapire. A Decision-Theoretic Generalization of On-Line Learning and an Application to Boosting. Journal of Computer and System Sciences, 55(1): 119-139, 1997. [CrossRef]
  17. T. Cover; P. Hart. Nearest neighbor pattern classification. IEEE Transactions on Information Theory, 13(1): 21-27, 1967. [CrossRef]
  18. David E. Rumelhart; Geoffrey E. Hinton; Ronald J. Williams. Learning representations by back-propagating errors. Nature, 323(6088): 533-536, 1986. [CrossRef]
  19. Tianqi Chen; Carlos Guestrin. XGBoost. Proceedings of the 22nd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining: 785-794, 2016. [CrossRef]
  20. Candice Bentéjac; Anna Csörgo; Gonzalo Martínez-Muñoz. A comparative analysis of gradient boosting algorithms. Artificial Intelligence Review, 54(3): 1937-1967, 2020. [CrossRef]
  21. Marco Tulio Ribeiro; Sameer Singh; Carlos Guestrin. "Why Should I Trust You?". Proceedings of the 22nd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining: 1135-1144, 2016. [CrossRef]
  22. N. V. Chawla; K. W. Bowyer; L. O. Hall; W. P. Kegelmeyer. SMOTE: Synthetic Minority Over-sampling Technique. Journal of Artificial Intelligence Research, 16: 321-357, 2002. [CrossRef]
  23. Haibo He; E.A. Garcia. Learning from Imbalanced Data. IEEE Transactions on Knowledge and Data Engineering, 21(9): 1263-1284, 2009. [CrossRef]
  24. Alexandru Niculescu-Mizil; Rich Caruana. Predicting good probabilities with supervised learning. Proceedings of the 22nd international conference on Machine learning - ICML ’05: 625-632, 2005. [CrossRef]
  25. Takaya Saito; Marc Rehmsmeier. The Precision-Recall Plot Is More Informative than the ROC Plot When Evaluating Binary Classifiers on Imbalanced Datasets. PLOS ONE, 10(3): e0118432, 2015. [CrossRef]
  26. Tom Fawcett. An introduction to ROC analysis. Pattern Recognition Letters, 27(8): 861-874, 2006. [CrossRef]
  27. Ben Van Calster; David J. McLernon; Maarten van Smeden; Laure Wynants; Ewout W. Steyerberg. Calibration: the Achilles heel of predictive analytics. BMC Medicine, 17(1): 230, 2019. [CrossRef]
  28. Gary S. Collins; Johannes B. Reitsma; Douglas G. Altman; Karel G.M. Moons. Transparent Reporting of a multivariable prediction model for Individual Prognosis Or Diagnosis (TRIPOD): The TRIPOD Statement. Annals of Internal Medicine, 162(1): 55-63, 2015. [CrossRef]
  29. Richard D Riley; Kym IE Snell; Joie Ensor; Danielle L Burke; Frank E Harrell Jr; Karel GM Moons; Gary S Collins. Minimum sample size for developing a multivariable prediction model: PART II - binary and time-to-event outcomes. Statistics in Medicine, 38(7): 1276-1296, 2018. [CrossRef]
  30. Andrius Vabalas; Emma Gowen; Ellen Poliakoff; Alexander J. Casson. Machine learning algorithm validation with a limited sample size. PLOS ONE, 14(11): e0224365, 2019. [CrossRef]
  31. Annette M. Molinaro; Richard Simon; Ruth M. Pfeiffer. Prediction error estimation: a comparison of resampling methods. Bioinformatics, 21(15): 3301-3307, 2005. [CrossRef]
  32. Sudhir Varma; Richard Simon. Bias in error estimation when using cross-validation for model selection. BMC Bioinformatics, 7(1): 91, 2006. [CrossRef]
  33. David R. Roberts; Volker Bahn; Simone Ciuti; Mark S. Boyce; Jane Elith; Gurutzeta Guillera-Arroita; Severin Hauenstein; José J. Lahoz-Monfort; Boris Schröder; Wilfried Thuiller; David I. Warton; Brendan A. Wintle; Florian Hartig; Carsten F. Dormann. Cross-validation strategies for data with temporal, spatial, hierarchical, or phylogenetic structure. Ecography, 40(8): 913-929, 2017. [CrossRef]
  34. Tal Yarkoni; Jacob Westfall. Choosing Prediction Over Explanation in Psychology: Lessons From Machine Learning. Perspectives on Psychological Science, 12(6): 1100-1122, 2017. [CrossRef]
  35. Scott M. Lundberg; Gabriel Erion; Hugh Chen; Alex DeGrave; Jordan M. Prutkin; Bala Nair; Ronit Katz; Jonathan Himmelfarb; Nisha Bansal; Su-In Lee. From local explanations to global understanding with explainable AI for trees. Nature Machine Intelligence, 2(1): 56-67, 2020. [CrossRef]
  36. Alejandro Barredo Arrieta; Natalia Díaz-Rodríguez; Javier Del Ser; Adrien Bennetot; Siham Tabik; Alberto Barbado; Salvador Garcia; Sergio Gil-Lopez; Daniel Molina; Richard Benjamins; Raja Chatila; Francisco Herrera. Explainable Artificial Intelligence (XAI): Concepts, taxonomies, opportunities and challenges toward responsible AI. Information Fusion, 58: 82-115, 2020. [CrossRef]
  37. Janet H. Marler; John W. Boudreau. An evidence-based review of HR Analytics. The International Journal of Human Resource Management, 28(1): 3-26, 2016. [CrossRef]
  38. Dana B. Minbaeva. Building credible human capital analytics for organizational competitive advantage. Human Resource Management, 57(3): 701-713, 2017. [CrossRef]
  39. R.H. Hamilton; William A. Sodeman. The questions we ask: Opportunities and challenges for using big data analytics to strategically manage human capital resources. Business Horizons, 63(1): 85-95, 2020. [CrossRef]
  40. Aizhan Tursunbayeva; Stefano Di Lauro; Claudia Pagliari. People analytics—A scoping review of conceptual boundaries and value propositions. International Journal of Information Management, 43: 224-247, 2018. [CrossRef]
  41. Aizhan Tursunbayeva; Claudia Pagliari; Stefano Di Lauro; Gilda Antonelli. The ethics of people analytics: risks, opportunities and recommendations. Personnel Review, 51(3): 900-921, 2021. [CrossRef]
  42. Prasanna Tambe; Peter Cappelli; Valery Yakubovich. Artificial Intelligence in Human Resources Management: Challenges and a Path Forward. California Management Review, 61(4): 15-42, 2019. [CrossRef]
  43. Katherine C. Kellogg; Melissa A. Valentine; Angéle Christin. Algorithms at Work: The New Contested Terrain of Control. Academy of Management Annals, 14(1): 366-410, 2020. [CrossRef]
  44. Ninareh Mehrabi; Fred Morstatter; Nripsuta Saxena; Kristina Lerman; Aram Galstyan. A Survey on Bias and Fairness in Machine Learning. ACM Computing Surveys, 54(6): 1-35, 2021. [CrossRef]
  45. Manish Raghavan; Solon Barocas; Jon Kleinberg; Karen Levy. Mitigating bias in algorithmic hiring. Proceedings of the 2020 Conference on Fairness, Accountability, and Transparency: 469-481, 2020. [CrossRef]
  46. Cynthia Rudin. Stop explaining black box machine learning models for high stakes decisions and use interpretable models instead. Nature Machine Intelligence, 1(5): 206-215, 2019. [CrossRef]
  47. Jeroen Meijerink; Mark Boons; Anne Keegan; Janet Marler. Algorithmic human resource management: Synthesizing developments and cross-disciplinary insights on digital HRM. The International Journal of Human Resource Management, 32(12): 2545-2562, 2021. [CrossRef]
  48. Xavier Parent-Rocheleau; Sharon K. Parker. Algorithms as work designers: How algorithmic management influences the design of jobs. Human Resource Management Review, 32(3): 100838, 2022. [CrossRef]
  49. Sunghoon Kim; Violetta Khoreva; Vlad Vaiman. Strategic Human Resource Management in the Era of Algorithmic Technologies: Key Insights and Future Research Agenda. Human Resource Management, 64(2): 447-464, 2024. [CrossRef]
  50. Francesca Fallucchi; Marco Coladangelo; Romeo Giuliano; Ernesto William De Luca. Predicting Employee Attrition Using Machine Learning Techniques. Computers, 9(4): 86, 2020. [CrossRef]
  51. Filippo Guerranti; Giovanna Maria Dimitri. A Comparison of Machine Learning Approaches for Predicting Employee Attrition. Applied Sciences, 13(1): 267, 2022. [CrossRef]
  52. Xinlei Wang; Jianing Zhi. A machine learning-based analytical framework for employee turnover prediction. Journal of Management Analytics, 8(3): 351-370, 2021. [CrossRef]
  53. Jungryeol Park; Yituo Feng; Seon-Phil Jeong. Developing an advanced prediction model for new employee turnover intention utilizing machine learning techniques. Scientific Reports, 14(1): 1221, 2024. [CrossRef]
  54. Aseel Qutub; Asmaa Al-Mehmadi; Munirah Al-Hssan; Ruyan Aljohani; Hanan S. Alghamdi. Prediction of Employee Attrition Using Machine Learning and Ensemble Methods. International Journal of Machine Learning and Computing, 11(2): 110-114, 2021. [CrossRef]
  55. Kang-Chul Kim; Hai-tong Wei. Development of a Face Detection and Recognition System Using a Raspberry Pi. The Journal of the Korea Institute of Electronic Communication Sciences, 12(5): 859-864, 2017. [CrossRef]
  56. Haitong Wei; Xinghai Wang. Financial Risk Management Early-Warning Model for Chinese Enterprises. Journal of Risk and Financial Management, 17(7): 255, 2024. [CrossRef]
  57. Haitong Wei. DecorPGNet: Functional Area Division and Layout Algorithm Model in Living Rooms of Chinese Apartment-Style Family Homes. Civil Engineering Research Journal, 15(1), 2024. [CrossRef]
  58. Haitong Wei. Exploring and Practicing the Quantification of Interior Design Colors from an IKEA Design Perspective. Journal of Sensor Networks and Data Communications, 4(2): 01-12, 2024. [CrossRef]
  59. Haitong Wei. Negative Indicators and Ordering Stability in Exploratory Factor Analysis: A Sign-Orientation Theory with Reproducible Simulation Evidence [Preprint]. Preprints.org, 2026. [CrossRef]
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.
Copyright: This open access article is published under a Creative Commons CC BY 4.0 license, which permit the free download, distribution, and reuse, provided that the author and preprint are cited in any reuse.
Prerpints.org logo

Preprints.org is a free preprint server supported by MDPI in Basel, Switzerland.

Subscribe

© 2026 MDPI (Basel, Switzerland) unless otherwise stated

Accessibility

Disclaimer

Terms of Use

Privacy Policy

Privacy Settings