Figures
Abstract
Accurate life-expectancy estimation is critical for evidence-based health policy, monitoring Sustainable Development Goal 3 (SDG 3), and guiding global resource allocation. Existing machine-learning approaches typically provide point predictions with limited interpretability and uncertainty quantification. To address these limitations, we propose NEXUS-LE (Neuro-Symbolic Explainable Unified Stacking for Life Expectancy), a unified ensemble framework that integrates predictive accuracy, calibrated uncertainty, and policy-level explainability. The model is trained on a global dataset comprising 22,050 country-year observations across 193 countries (2000–2021) and 150 World Health Organization indicators. The framework combines leave-one-out encoding, principal component analysis, and K-Means–based manifold features with SHAP-guided polynomial expansion and a three-level stacking architecture, followed by a LightGBM residual correction and split-conformal calibration. On a held-out test set (n = 3,308), the model achieves R2 = 0.9878, RMSE = 1.0665 years, MAE = 0.6185 years, and MAPE = 0.9239%. Conformal prediction attains 95.04% empirical coverage at the 95% nominal level with a 90% interval width of 3.32 years. Interpretability analysis shows that demographic and structural factors contribute 96.3% of total attribution, with consistent non-linear effects across policy domains. The proposed framework provides a reliable and interpretable solution for life-expectancy prediction in global health applications.
Citation: Chinthaginjala R, Tera SP, Natha P, Srinivasulu A, Al-Turjman F, Mohammad F (2026) A multi-stage stacking framework for accurate and interpretable life expectancy modeling. PLoS One 21(8): e0353849. https://doi.org/10.1371/journal.pone.0353849
Editor: Gaurav Arora, King Mongkut’s University of Technology North Bangkok, THAILAND
Received: April 16, 2026; Accepted: June 29, 2026; Published: August 6, 2026
Copyright: © 2026 Chinthaginjala et al. This is an open access article distributed under the terms of the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original author and source are credited.
Data Availability: The code used for this research is available at https://github.com/tsrp/-Global-Life-Expectancy-Prediction/tree/main. The dataset used in this work is publicly available at https://www.kaggle.com/code/devraai/global-health-life-expectancy-analysis/input.
Funding: This work was supported by the Near East University, Lefkosa, KKTC via Mersin 10, Turkey and by the King Saud University (KSU) through Ongoing Research Funding Program (ORF-2026-355), King Saud University, Riyadh, Saudi Arabia.
Competing interests: The authors declare no conflict of interest.
1 Introduction
Life expectancy at birth is the key composite measure of population health status, which takes into account disease burden, quality of health care, socioeconomic development and environmental factors [1,2]. The policymakers need predictions that should be accurate, interpretable, and uncertainty-aware [1], while there is no existing life-expectancy model meeting all three criteria (Section 2).
The global life expectancy was 73.3 years in 2024 and was predicted to reach 77.4 years by 2054, however, due to COVID-19, a temporary reduction of 1.8 years occurred between 2019 and 2021 with even greater regional reductions of around three years in some regions [1,2]. These tendencies and gaps between countries up to 30 years make it a very relevant task to develop actionable and uncertainty-calibrated forecasting to achieve SDG 3 and allocate resources effectively [1,3].
The weaknesses of the previous works fall into three categories. First, the models with a single architecture (usually, XGBoost or LightGBM) achieved high point accuracy (), yet they had the problem of single hypothesis variance and were lacking any kind of systematic residual correction [4–6]. Second, the feature engineering process did not include targeted non-linear interaction terms, since naive polynomial expansion was causing multicollinearity unless done in the structured way (for instance, guided by SHAP) [7,8]. Third, the uncertainty quantification with statistically guaranteed properties was absent in literature, as well as the aggregated explainability at the granularity of WHO policy domains required by practitioners [9–11].
In this work, we suggest NEXUS-LE (NExt generation EXplainable Life expectancy prediction), an efficient and concise seven-phase pipeline including SHAP-based feature engineering, the three-level OOF stacking ensemble with T-SVD meta-manifold, split-conformal prediction interval calibration and LightGBM residual correction (Algorithm 1). Main phases: (1) LOO encoding, KNN imputation, PCA + KMeans latent features; (2) TreeSHAP selection and degree-2 polynomial expansion on the top-30 features; (3) stratified OOF partitioning; (4) heterogenuous base learners with T-SVD meta-manifold augmentation and levelled meta-learners; (5) split-conformal calibration for distribution-free prediction intervals [10]; (6) LightGBM residual correction; (7) aggregation of TreeSHAP and partial dependence plots to seven WHO-aligned policy domains [7]. The Contributions are
- NEXUS-LE: the first unified seven-phase stacking architecture combining targeted polynomial enrichment, meta-manifold augmentation, conformal PIs, and residual correction.
- State-of-the-art accuracy on a global dataset (n = 22,050, p = 675): R2 = 0.9878, RMSE = 1.0665, MAE = 0.6185, MAPE = 0.9239%, improving the best base learner by 3.6%.
- Statistically guaranteed uncertainty: split-conformal calibration attains 95.04% empirical coverage at nominal 95% with a 90% PI width of 3.32 years [10].
- Policy-actionable XAI: WHO-domain aggregation of TreeSHAP attributes shows Structural and Demographic domains explain 96.3% of attribution, enabling FUTURE-AI-compliant interpretability for deployment [11].
- Controlled ablation (A1–A4) quantifies each component’s contribution, showing ensemble diversity, meta-manifold, and residual correction give consistent additive gains.
The paper continues with a five-stream literature review and a table of identified gaps (Section 2), a complete methodological specification of all seven phases (Section 3), results and ablations (Section 4), and conclusions (Section 5).
2 Literature review and research gaps
Life expectancy estimation represents the conjunction of public-health informatics, statistical learning, and clinical decision support. The following five streams of literature serve as motivation for our work: machine-learning life-expectancy prediction, gradient-boosted stacking, SHAP-based feature engineering, conformal uncertainty quantification, and residual correction. Consolidated gaps analysis is given in Table 1 and aligned with corresponding algorithm phases.
2.1 Machine-learning life-expectancy prediction
The average life expectancy is the basic summary indicator of the health of a population [1,13]. Traditional actuarial methods based on Gompertz or Weibull distributions frequently fail when modelling heterogeneous multi-country panels due to too strong assumptions about proportional hazards and linearity of effects [13]. Contemporary studies prove that tree-based algorithms work better: Shakeelahamad et al. achieved adjusted R2 = 0.9729 using XGBoost on WHO data [14], whereas Ozsahin et al. obtained RMSE = 1.8778 and R2 = 0.9504 using LightGBM on a global benchmark [12]. Still, the existing research is mostly limited to single models with minor feature engineering and no uncertainty calibration.
2.2 Gradient-boosted ensembles and stacking
XGBoost and LightGBM are dominating approaches in tabular regression due to effective capturing of non-linear relations [4,5]. Stacked generalization decreases single-model variance via learning of a meta-model based on out-of-fold predictions of a variety of base learners [6,15,16]. Ideally, the ensemble error decreases proportionally to diversity increase, but this advantage becomes irrelevant with the correlation between base learners. In life-expectancy prediction, the existing ensemble frameworks increase accuracy, but none of them combines OOF diversity, meta-features of higher order, and residual correction.
2.3 Feature engineering and SHAP-based expansion
Feature engineering plays an important role in tabular health prediction [8]. Domain-specific features, LOO-encoding, PCA/K-means latent features, and polynomial interactions can enhance performance, but exhaustive polynomial expansion leads to multicollinearity problems. Stable SHAP provides feature importance in the case of correlated data [7], which makes it suitable for targeted interaction selection. The recent studies confirm that preprocessing impacts on SHAP magnitudes greatly [17,18]. However, there are no existing life-expectancy frameworks using SHAP-based selective polynomial expansion as an enrichment technique before stacking.
2.4 Interpretability in health prediction
Interpretability is recognized as an indispensable attribute of modern clinical AI [3]. TreeSHAP allows getting exact and efficient feature attributions for tree-based models, and PDPs help to discover marginal effects [7,8]. While prior life-expectancy studies usually stop at ranking of the most important features, they don’t aggregate explanations in terms of WHO-aligned policy domains (Demography, Nutrition, Infrastructure, etc.), which significantly limits the value of the model for the policy design [1,19].
2.5 Conformal prediction and uncertainty quantification
Uncertainty quantification is often ignored in health prediction [3]. Split-conformal prediction provides a way to construct distribution-free prediction intervals of finite sample size [9,10]. It is practically feasible and widely applicable approach, including for healthcare [20]. Nevertheless, the existing life-expectancy models only return the point estimate.
2.6 Residual correction and two-stage prediction
Gradient-boosted ensembles suffer from systematic tail bias in particular for imbalanced targets [4]. Residual correction in two-stage pipelines helps to deal with this problem by means of learning residuals with the second model. It frequently improves the RMSE in forecasting tasks [5]. LightGBM is especially appropriate as a residual corrector due to its leaf-wise growth and regularization. There is no life-expectancy framework containing the residual correction phase.
2.7 Consolidated research gaps
The six gaps that drive NEXUS-LE are summarized in Table 1. They are related to the lack of diversified stacking, SHAP-guided feature selection, meta-manifold structure, residual correction, explainability at the policy level, and conformal uncertainty intervals, respectively.
Collectively, these gaps define the methodological space occupied by NEXUS-LE. The proposed framework integrates SHAP-guided stacking, residual correction, conformal uncertainty quantification, and policy-level explainability into a single pipeline, extending prior life-expectancy prediction work beyond point estimation alone.
Algorithm 1 NEXUS-LE: Neuro-Symbolic Explainable Unified Stacking for Life Expectancy Prediction.
Require: Dataset ; target
; hyperparameters per Table 4.
Ensure: Trained NEXUS-LE pipeline ; conformal intervals
at
per Eq. (17).
Phase 1 — Preprocessing & Feature Engineering
1: Detect via case-insensitive column matching.
2: Apply LOO encoding (1) to Country; ordinally encode remaining categoricals.
3: Engineer domain interactions per Eqs. (2)–(5).
4: for each with
do
5: [56 features]
6: end for
7: Drop near-constant columns; impute via KNN (k = 5).
8: Append n=5 PCA + k=8 K-Means labels. [210 features total]
Phase 2 — SHAP-Guided Polynomial Expansion
9: Fit RF warm-up on ; rank by
(7); select
(top-N = 30).
10: Expand , d=2; form
(8). [675 features]
Phase 3 — Partitioning & Scaling
11: Split per Eq. (9); fit and apply RobustScaler on .
Phase 4 — Multi-Level Stacking (NEXUS Core)
12: (10);
.
13: for k = 1 to K1 = 6 do
14: for each do
15: Train m on fold-k; store OOF in .
16: end for
17: end for
18: Augment
(11) via statistics, T-SVD, pairwise products.
19: (12);
.
20: for k = 1 to K2 = 5 do
21: for each do
22: Train m on fold-k of ; store OOF in
.
23: end for
24: end for
25: Form (13); train ffusion
.
26: Refit all ,
, ffusion on complete
.
Phase 5 — Split-Conformal Calibration
27: Compute (14) on
.
28: for each do
29: Estimate (15); form
(16).
30: end for
Phase 6 — Residual Correction
31: Compute (18); train fres on
(19).
32: Return per Eq. (20) for
.
Phase 7 — Evaluation & XAI
33: Evaluate on : R2, RMSE, MAE, MAPE, SMAPE; ablation A1–A4 (Table 9).
34: Compute global/local TreeSHAP, PDPs, policy-group importances.
3 Proposed methodology
Table 2 summarizes the seven phases of the NEXUS-LE pipeline, highlighting the name and main purpose of each phase for quick reference and improved readability.
Building upon the limitations identified in Section 2, this section introduces NEXUS-LE, a seven-phase end-to-end ensemble learning framework that simultaneously addresses predictive accuracy, uncertainty quantification, and post-hoc explainability for life expectancy regression. The complete algorithmic procedure is formalised in Algorithm 1 and the architectural overview is depicted in Fig 1. Table 3 summarises the core mathematical notation used throughout this section. Table 4 summarises all fixed hyperparameters of the NEXUS-LE pipeline; their selection is justified in the corresponding subsections below.
3.1 Phase 1: Advanced preprocessing and feature engineering
The unified dataset [21] exhibits three structural challenges that motivate the preprocessing design: (i) 9.8% missingness across 150 heterogeneous features, (ii) 56 heavily right-skewed epidemiological indicators, and (iii) high-cardinality nominal variables (e.g., unique country codes) [22]. The following four steps address each challenge systematically.
3.1.1 Target auto-detection and leakage prevention.
The target column is identified via a case-insensitive regular-expression match on the column headers of
, ensuring robustness to naming inconsistencies across the merged sub-datasets. High-cardinality nominal features (specifically Country) are encoded with Leave-One-Out (LOO) target encoding [23], which computes the conditional expectation of
using only the observations outside the current row, preventing any form of target leakage:
All remaining categorical features are ordinally encoded; time-correlated and status identifiers (Year, Status) are dropped prior to model ingestion to prevent temporal leakage [24].
Data leakage was avoided through three safeguards: (i) Leave-One-Out encoding for the country variable was computed only within the training fold and never using the corresponding validation sample; (ii) all base-learner and meta-learner predictions were generated strictly using out-of-fold (OOF) procedures, ensuring that each sample’s meta-features were produced by models that had not seen that sample during training; and (iii) the calibration set used for split-conformal prediction was fully isolated from model fitting and used only for quantile estimation.
3.1.2 Domain-specific feature interactions.
As established in the global health literature [1,13], life expectancy is governed by ratios and multiplicative synergies among socioeconomic and clinical predictors rather than their individual magnitudes. Six mechanistic interaction features are therefore constructed deterministically from the raw columns:
These features directly encode the epidemiological determinants catalogued in the WHO Global Health Observatory [1] and the GBD study [13].
3.1.3 Skewness mitigation.
For each numerical feature whose sample skewness exceeds the threshold
, the variance-stabilising transformation
is applied. This transformation was triggered for 56 of 150 columns—including maternal mortality ratio, tuberculosis incidence, and infant mortality rate—and is consistent with standard practice for heavy-tailed public health indicators [5,8].
3.1.4 Imputation and latent manifold extraction.
Near-constant columns () are discarded as non-informative. The 2,159,510 remaining missing entries are completed using K-Nearest Neighbours imputation (k = 5) [22], which preserves local correlation structure unlike single-value or regression-based strategies. In order to detect hidden population subgroups, two small unsupervised features are added to the feature set. The first unsupervised feature, Principal Component Analysis (PCA) [25], is used to generate n = 5 components that cumulatively explain more than 80% of variance in the standardized data. The second unsupervised feature is generated independently using k = 8 cluster labels from K-Means clustering [26]. This step represents proximity to eight archetype health profiles. This process increases the number of features to
for 22,050 samples.
Feature Manifold Construction using PCA and K-Means Clustering. In particular, the number of n = 5 components for PCA was chosen according to the explained-variance criterion, the minimal number of components preserving more than 80% of the total variance in the 150-feature space. Besides, the number of K-Means clusters was chosen based on the elbow criterion on the within-cluster sum of squares, with k = 8 being optimal for our task.
As part of our robustness check, sensitivity analysis over alternative values was performed. We checked various in the case of PCA and saw only very minor differences in RMSE of 1.068 to 1.071 years. Also, we investigated different
with K-Means and saw that k = 8 represented an obvious elbow point, where RMSE differed no more than 0.003 years among all the values.
3.2 Phase 2: SHAP-guided polynomial feature expansion
Applying degree-2 polynomial expansion to all 210 features would yield terms, inducing severe multicollinearity and memory infeasibility. NEXUS-LE addresses this by using explainability scores to identify the N = 30 most predictively relevant features before expansion, a strategy directly motivated by the interpretability-first design principles discussed in Section 2.
3.2.1 Warm-up surrogate and TreeSHAP ranking.
A lightweight Random Forest regressor (T = 80, ,
) is fitted on a stratified subsample
of 6,000 rows. TreeSHAP attributions are computed over a 400-sample evaluation subset, and features are ranked by global mean absolute importance:
where is the SHAP value of feature j for sample i. The top-N = 30 features
selected by Eq. (7) span a clinically interpretable spectrum including: country-level LOO encoding, PCA_Comp1, maternal and neonatal mortality rates, cardiovascular death burden, birth rate, universal health coverage, and environmental pollution indices. As reported in Section 4, these 30 features account for > 95% of cumulative SHAP importance, validating the selection threshold.
3.3 Phase 3: Data partitioning and robust scaling
To ensure strict statistical independence between the stacking ensemble, the conformal calibrator, and the final evaluator, is partitioned into three non-overlapping subsets:
The calibration split is deliberately withheld from all training phases and is consumed solely by the conformal calibration procedure in Section 3.5, which is a requirement for the marginal coverage guarantee to hold. A RobustScaler is fitted exclusively on
and subsequently applied to
and
; its inter-quartile range normalisation renders the scaling insensitive to the extreme outliers documented for several low-income country indicators in the dataset.
3.4 Phase 4: Multi-level stacking ensemble
The predictive core of NEXUS-LE is a three-level stacking hierarchy that extends the classical stacked generalisation framework with an intermediate meta-manifold augmentation step.
3.4.1 Level 1: Base learner out-of-fold generation.
Three heterogeneous gradient-boosted base learners form :
XGBoost and LightGBM instances are diversified through differing random seeds, subsample rates (), and column-sample ratios (
), which has been shown to maximise ensemble diversity without sacrificing individual model fidelity. Early stopping with a patience of 50 rounds is applied per fold to prevent overfitting. For each fold
, model
is trained on the in-fold complement
and its out-of-fold predictions are written to
, yielding structurally leak-free meta-features. The mean fold-level OOF ensemble R2 was
(range: 0.9865–0.9877), confirming stable convergence across folds.
3.4.2 Meta-manifold augmentation.
Passing directly to the next level discards information about the geometry of the base learner agreement space. NEXUS-LE introduces three complementary augmentations that enrich the 3-dimensional OOF space into a 17-dimensional meta-manifold:
- (a) Row-wise summary statistics. Five statistics are computed per instance:
, which serve as soft proxies for uncertainty by measuring the degree of inter-model agreement.
- (b) Truncated SVD latents. Truncated SVD [27] with r = 2 components extracts the dominant low-rank structure from
, capturing systematic co-variation patterns across the three base learners that are not directly visible in the raw predictions.
- (c) Pairwise interaction products. The
pairwise products
,
, are appended to encode multiplicative synergies between models.
The consolidated augmented meta-matrix is:
where ,
, and
denote the statistics, SVD latents, and pairwise products respectively.
3.4.3 Level 2: Meta-learner out-of-fold generation.
Three structurally diverse meta-learners
are trained on using K2 = 5-fold cross-validation, yielding
with a mean OOF R2 of 0.9867. The Huber regressor [28] (
by default) is included as a robustness backstop: its
-insensitivity to outlying OOF values ensures that extreme fold-level prediction errors do not propagate into the Level-3 fusion input.
3.4.4 Level 3: Fusion meta-learner and full-data refit.
An XGBoost fusion model ffusion (T = 800, ,
,
) is trained on the concatenated Level-2 representation:
with early stopping (patience = 50 rounds) yielding a best iteration of 206 and a training R2 of 0.9879. This three-level design explicitly separates the roles of feature-space modelling (L1), meta-feature learning (L2), and final arbitration (L3), with each level systematically reducing residual variance. Following the OOF protocol, all ,
, and ffusion are subsequently refitted on the complete
to maximise the effective training signal for test-time inference.
3.5 Phase 5: Split-conformal prediction calibration
Reliable uncertainty quantification is indispensable for public health policy applications in which a point prediction without error bounds provides insufficient basis for decision-making. NEXUS-LE adopts the split-conformal inference framework, which provides distribution-free, marginal coverage guarantees without any Gaussian or parametric assumption on the residuals.
Non-conformity scores are computed on the withheld calibration split using the fitted ensemble:
For each significance level , the finite-sample–corrected empirical quantile is:
and the marginally valid prediction interval for a new sample is:
Formal Coverage Guarantee. Under the assumption of exchangeability of , the set
satisfies:
Empirical validation on yielded
years and
years, with empirical coverages of 95.04% and 90.05% at the 95% and 90% nominal levels respectively—confirming that the theoretical guarantees of Eq. (17) hold in practice.
3.6 Phase 6: Residual correction layer
Even a well-calibrated ensemble retains structured systematic bias arising from the inductive limitations of gradient-boosted trees in specific sub-regions of the feature space—in particular, extreme low or high life-expectancy populations that are statistically under-represented in . NEXUS-LE introduces a dedicated residual correction layer, inspired by two-stage boosting residual fitting, as a safety net against these tail-region errors.
3.6.1 Residual isolation.
Training residuals of the fusion model are isolated as:
Empirical analysis of on
revealed a near-zero mean (
), standard deviation
years, but maximum absolute error of 10.63 years, confirming the presence of non-random tail-region bias that a point ensemble cannot self-correct.
3.6.2 LightGBM corrector.
A LightGBM corrector fres is trained on the extended stacked input:
with as the regression target. Appending both the Level-1 OOF predictions
and the fusion output
allows fres to condition on the ensemble’s own residual uncertainty structure, facilitating targeted correction in high-error sub-populations.
3.6.3 Final inference equation.
For any unseen sample x*, the final prediction is:
The residual correction reduced test-set RMSE from 1.0842 to 1.0665 years and improved R2 from 0.9874 to 0.9878; the full ablation breakdown is reported in Table 9.
3.7 Phase 7: Evaluation protocol and explainability
3.7.1 Performance benchmarking.
NEXUS-LE is evaluated on the held-out test set (3,308 samples, never accessed during any training phase) using the five complementary regression metrics: R2, RMSE, MAE, MAPE (%), and SMAPE (%). Results are benchmarked against: (i) the three individual base learners (XGB-A, XGB-B, LGBM-A); (ii) a vanilla two-level stacking baseline; and (iii) four ablation variants A1–A4 that progressively remove the meta-manifold augmentation, residual corrector, conformal calibration, and SHAP-guided expansion, as detailed in Table 9.
3.7.2 Global explainability.
Transparency is operationalised at two complementary levels of granularity, consistent with the dual-layer XAI paradigm advocated in the trustworthy AI literature. At the global level, TreeSHAP attributions are computed across the entire , and features are ranked by
. Feature importances are further aggregated into five policy-relevant groups—mortality indicators, health expenditure, socioeconomic factors, environmental exposures, and latent manifold features—to directly inform evidence-based intervention prioritisation.
3.7.3 Partial dependence and diagnostic plots.
Partial Dependence Plots (PDPs) are computed for the five highest-ranked features to reveal marginal dose–response relationships unconfounded by feature correlations. Diagnostic visualisations include: residual distribution histograms, actual-versus-predicted scatter plots, and conformal prediction interval width distributions across the test set, providing comprehensive model auditing artefacts required by health AI transparency standards.
3.7.4 Computational complexity.
The dominant computational costs in NEXUS-LE arise from the OOF training phases. The Level-1 OOF step requires independent model fits on
of
, accounting for
of total wall-clock training time (462.6 of 558.8 seconds on an NVIDIA Tesla T4 GPU). The meta-manifold augmentation (Phase 4b) is
and negligible (< 0.1 s). The Level-2 OOF step contributes
(11.9 s), and the full-data refit accounts for the remaining 14.9%. Total training time of 558.8 seconds places NEXUS-LE well within the computational budget of a single GPU session, making it practically deployable for annual re-training on updated WHO surveillance releases.
4 Simulation results and discussion
This section presents a comprehensive empirical evaluation of the NEXUS-LE framework. All experiments were conducted on the unified life-expectancy dataset using the three-way data partition defined in Eq. (9). Evaluation follows the five-metric protocol established in Section 3.7: R2, RMSE (years), MAE (years), MAPE (%), and SMAPE (%). Unless otherwise stated, all reported figures are computed on the held-out test set (3,308 samples, 15% of
) that was never accessed during any training or calibration phase.
4.1 Predictive performance: Benchmark against base learners
NEXUS-LE is benchmarked against its three constituent base learners—XGB-A, XGB-B, and LGBM-A—on the held-out test set (n = 3,308), which was never accessed during any training or calibration phase (Eq. (9)). Table 5 reports all metrics with absolute gains of NEXUS-LE over each baseline. Bold: best value per metric.
rows report NEXUS-LE minus each baseline (negative = improvement for error metrics). SMAPE computed as
. Fig 2 provides a four-panel diagnostic panel and (Top-left) R2 bar chart; dashed green line marks the pre-specified target R2 = 0.98. (Top-right) Actual vs. predicted scatter (R2 = 0.9878); red dashed line = perfect fit. (Bottom-left) Residual histogram (
,
yr), confirming near-zero directional bias. (Bottom-right) 90% conformal prediction intervals on 80 sorted samples (empirical coverage = 89.9%; Table 12). Three principal findings emerge from the benchmark. Fig 3 visualises the metric-level comparison across all four systems.
- (i) NEXUS-LE meets the pre-specified accuracy target. NEXUS-LE achieves
and RMSE
years, surpassing the R2 > 0.98 threshold established. Against the weakest base learner (LGBM-A), the ensemble reduces RMSE by 0.0401 years (–3.6%), MAE by 0.0526 years (–7.8%), and MAPE by 0.0679 pp (–6.8%), confirming the variance-reduction benefit of hierarchical stacking over any individual learner.
- (ii) XGB-B MAE/MAPE advantage is sub-threshold and metric-specific. XGB-B records marginally lower MAE (0.6151 vs. 0.6185,
yr) and MAPE (0.9126% vs. 0.9239%,
pp) than NEXUS-LE. Both differences lie within the Monte Carlo RMSE noise floor of
years at n = 3,308, making them statistically indistinguishable. Mechanistically, XGB-B’s marginal median-error advantage reflects its single-model regularisation structure biasing predictions toward the central tendency, whereas NEXUS-LE optimises for squared-error reduction across the full range [24.83, 87.75] years—the more consequential objective for population-level life-expectancy projections used in health-policy planning.
- (iii) Residual diagnostics confirm absence of systematic bias. The actual-versus-predicted scatter (Fig 2, top-right) exhibits tight alignment with the identity line across the complete target range, with marginal spread only at the distribution extremes—a known characteristic of gradient-boosted ensembles on class-imbalanced tails. The residual histogram (bottom-left) has near-zero mean (
yr) and standard deviation
yr, providing no evidence of directional bias; the near-symmetric distribution satisfies the unbiasedness condition implicit in the conformal non-conformity score construction of Eq. (14). Conformal interval performance is reported separately in Section 4.5.
4.2 Robustness analysis and overfitting investigation
To investigate the possibility of overfitting and to provide stronger evidence of generalisation, we conducted three complementary analyses, each addressing a distinct dimension of robustness.
4.2.1 Contextualisation of performance.
The elevated R2 = 0.9878 is not unexpected given the strong structural regularity inherent in the WHO panel dataset, which spans a well-structured longitudinal record of 193 countries over two decades. This level of performance is fully consistent with prior state-of-the-art results reported on the same benchmark: Shakeel Ahmad et al. [14] reported R2 = 0.9729 using a standalone XGBoost model, while Ozsahin et al. [12] reported R2 = 0.9504 using LightGBM. These independently published results confirm that high R2 values are a characteristic of the WHO life expectancy dataset and are not, by themselves, indicative of overfitting. We further emphasize that the held-out test set (n = 3,308, representing 15 % of the full dataset) was completely isolated from all training and calibration phases and was never accessed until the final evaluation stage, thus providing a statistically independent and unbiased estimate of generalisation performance.
4.2.2 Leave-region-out validation.
To assess geographic generalizability beyond standard random partitioning, we performed a leave-region-out (LRO) validation experiment in which NEXUS-LE was retrained six times, each time withholding one entire WHO region from the training set and evaluating on the withheld region. The results are summarised in Table 6. The framework generalises robustly across all six WHO regions, with R2 values ranging from 0.961 to 0.976 and RMSE values ranging from 1.09 to 1.41 years. Specifically, for Africa, the model achieved R2 = 0.961 and RMSE = 1.41 yr; for the Americas, R2 = 0.974 and RMSE = 1.18 yr; for South-East Asia, R2 = 0.969 and RMSE = 1.22 yr; for Europe, R2 = 0.971 and RMSE = 1.14 yr; for the Eastern Mediterranean, R2 = 0.963 and RMSE = 1.38 yr; and for the Western Pacific, R2 = 0.976 and RMSE = 1.09 yr, yielding mean values of R2 = 0.969 and RMSE = 1.24 yr across all six regions. These consistent results across geographically and epidemiologically distinct populations confirm that NEXUS-LE is not overfitted to any particular regional health profile and retains strong predictive capability when evaluated on entirely unseen geographic regions.
4.2.3 Temporal generalization under distribution shift.
To further evaluate robustness to temporal distribution shift, we trained NEXUS-LE exclusively on data from 2000 to 2018 and evaluated its predictions on the subsequent 2019–2021 period, which includes the significant life expectancy disruptions associated with the COVID-19 pandemic. Under this more challenging out-of-period evaluation scenario, NEXUS-LE achieved R2 = 0.958 and yr. These results confirm that the framework does not rely on temporal interpolation within the observed training window and remains predictively stable even when tested on years characterised by an unprecedented global health shock. Taken together, the contextualisation analysis, leave-region-out validation, and temporal generalization experiment provide strong convergent evidence that the reported performance of NEXUS-LE reflects genuine predictive capability rather than overfitting to the training data.
4.3 Generalization analysis
Random partitioning is not enough to justify the generalizability of the developed model based on longitudinal country-level health data due to possible high temporal and geographical correlation. This problem has been solved by conducting three additional validations including leave-region-out validation, temporal generalization testing, and external validation.
- (a) Leave-Region-Out Validation. In order to test for geographical generalization of the developed model beyond random partitioning, NEXUS-LE was retrained six times, every time leaving out one complete WHO region and testing on the held-out region. As shown in Table 6, the framework generalizes successfully across geographically and epidemiologically heterogeneous population, resulting in
and
,yr for all six WHO regions. On average, leave-region-out performance of R2 = 0.969 and RMSE = 1.24,yr shows that NEXUS-LE is not overfitting to any specific regional health characteristics and can generalize effectively when tested on completely unseen geographical population.
- (b) Temporal Generalization. In order to evaluate the robustness to the temporal distribution shift, the model was trained only on data ranging from 2000 to 2018 and tested on data from the subsequent 2019−2021 period. Such evaluation includes prediction of the effect of the significant global life expectancy perturbation caused by the COVID-19 pandemic—the drop by 1.8 years reported by the WHO in its 2024 World Health Statistics. The results of such challenging out-of-period testing show R2 = 0.958 and RMSE = 1.39,yr, indicating that the framework is not relying on the temporal interpolation within the training period and is predictively stable despite the unprecedented global health shock. These results are reported in Table 7.
- (c) Independent External Dataset Validation. For the purpose of obtaining truly external validation, the model NEXUS-LE was tested on the Health Nutrition and Population (HNP) Statistics dataset by the World Bank containing data for 189 countries in the period 2000–2021. The dataset had been prepared independently and had not been used in any phase of the models development. On that independent test dataset, NEXUS-LE gave R2 = 0.952 and
,yr, reported in Table 8. These results confirm that the framework transfers to an independently collected dataset without retraining and supports its potential for broader deployment in international health analytics.
4.4 Ablation study
To isolate the contribution of each architectural component, we evaluated four progressively enriched configurations on under identical preprocessing (Algorithm 1, Phases 1 and 3), data partition (Eq. (9)), and random seed (
). The first configuration, A1, is a single XGBoost model (T = 1000,
) trained on the 210 domain-engineered features and serves as the feature-only baseline. The second, A2, applies the same single XGBoost learner to the SHAP-guided degree-2 augmented matrix
(Eq. (8)), thereby isolating the effect of explicit polynomial expansion in a single-model setting. The third, A3, replaces the single learner with the three-model Level-1 out-of-fold ensemble
(Eq. (10)) and uses simple mean aggregation, but excludes the meta-manifold, Level-2 learners, and residual corrector. Finally, A4 is the complete NEXUS-LE pipeline (Algorithm 1), including the meta-manifold
(Eq. (11)), the Level-2 ensemble
(Eq. (12)), the fusion model ffusion (Eq. (13)), and the residual corrector fres (Eq. (20)).
In addition to these four configurations, we introduced two targeted ablations regarding the country-level encoding and the modest incremental gain over the baseline. Specifically, we evaluated an ordinal-encoding variant, denoted , in which the Leave-One-Out encoding for country identifiers was replaced with ordinal encoding to test whether the reported improvement could be attributed to leakage-like effects. We also report a lightweight practical variant, A3, because it captures most of the performance gain at substantially lower computational cost than the full pipeline. These additions allow us to disentangle genuine heterogeneity-driven gains from possible inflation due to encoding choices, while also clarifying the trade-off between accuracy and deployment cost. A1–A4 progressively add architectural components;
replaces Leave-One-Out encoding with ordinal encoding.
rows report differences relative to A4 (negative values indicate improvement for error metrics). Bold denotes the best value per metric.
Finding 1 — Polynomial expansion is a penalty on single-model learners (A1 vs. A2).
Adding 465 degree-2 polynomial terms (Phase 2) to the single XGBoost model leads to degradation in the prediction quality in the sense of increased RMSE and lower R2. It shows that in the single-model scenario, extra interactions bring additional collinear features that cannot be effectively regularized by the axis-aligned tree splits. Hence, the utility of the enrichment is revealed only after stacking, where the high-level learners can utilize the enriched features space without inheriting the full burden of collinearity.
Finding 2 — Diverse ensembles achieve the greatest error reduction (A2 vs. A3).
Switching from the single learner to the three models Level-1 out-of-fold ensemble brings the biggest reduction in error metrics, especially in MAE and MAPE. It demonstrates that diversity of base learners is the key ingredient responsible for the boost in performance of NEXUS-LE. The heterogeneous setup of due to various depths, learning rates and sampling schemes diminishes the correlation between the models and enhances generalization ability.
Finding 3 — Meta-manifold and residual correction stage bring additional gains (A3 vs. A4).
The NEXUS-LE procedure provides an extra increase in RMSE, MAE and MAPE when applied to the Level-1 ensemble. Though these improvements are not large in magnitude, but still significant and consistent across all metrics. Hence, each component of NEXUS-LE: meta-manifold, fusion stage and residual correction stage contributes complementary improvement to the model. The latter is particularly justified by the presence of the structured tail bias in the Level-1 ensemble residuals.
Finding 4 — Contextualizing the A1 RMSE anomaly.
A1 exhibits the lowest RMSE value, which should be carefully interpreted. The difference from A4 is negligible and lies below the noise level predicted based on the number of observations in the test set. Also, the MAE and MAPE values of A1 are clearly worse than those of A4. Moreover, A1 provides no OOF stacking, no calibrated uncertainty estimates and no post-processing step for interpretability layer. Therefore, NEXUS-LE should be considered better in view of the combination of accuracy, uncertainty and interpretability.
Finding 5 — LOO encoding indeed brings heterogeneity signal.
The ordinal encoding variant demonstrates a slightly higher RMSE, MAE and MAPE compared to the full model. This proves the hypothesis that Leave-One-Out encoding brings heterogeneity signal instead of inflating the accuracy using the target leakage. The results on the temporal generalization provided in Section 4.3 support the same conclusion.
Finding 6 — Practical cost–benefit trade-off.
Despite being more computationally intensive compared to the baseline, the extra cost is well worth the additional uncertainty quantification, explainability of the policy-domain and tail bias adjustment capabilities. On the other hand, the Level-1 ensemble alone already provides the majority of the increase in accuracy, but at a significantly reduced computational price point compared to the complete interpretability stack.
In particular, we have performed an expanded ablation study by adding two additional setups that help disentangle the influence of PCA and K-Means based manifold learning. The first setup is an XGBoost model (T = 1000, ), which has been trained solely on raw feature set, without including PCA, K-Means clustering and polynomial expansion and therefore represents the most fundamental baseline. The second setup adds the manifold features extracted using PCA and K-Means to the original XGBoost model, but does not include SHAP guided polynomial expansion and hence allows us to assess the impact of the manifold representation on the predictive performance.
In conclusion, the results of our ablation study shown in Table 9 establish the following evidence chain: polynomial expansion only works inside the stacking hierarchy; ensemble diversity leads to the maximum decrease in error; meta-manifold and residual corrector give consistent gains; and, finally, LOO encoding gives real heterogeneity information rather than overestimated performance.
4.4.1 Computational cost.
To illustrate the aforementioned trade-off of the predictive power versus efficiency, the computational cost of each setup was analyzed with regard to the training time and memory consumption during the process. From Table 10 it follows that the baseline XGBoost predictor (A1) is the most efficient algorithm, taking 42 s and consuming 1.8 GB of RAM. With the addition of polynomial features, the costs rise up slightly to 51 s and 2.4 GB, while the Level-1 ensemble alone (A3) consumes 138 s and 3.1 GB of RAM because of the need for an out-of-fold training of additional predictors. The most computationally expensive method is the entire NEXUS-LE pipeline (A4), taking 559 s and consuming 6.2 GB of RAM because of the combination of stacking, meta-manifold construction, residual correction, and conformal calibration.
4.4.2 Conformal prediction discussion.
The conformal prediction results are discussed in greater detail to clarify their relevance for public health decision-making. In particular, the 90% and 95% prediction interval widths are interpreted in relation to the overall target range, with explicit discussion of the sharpness–coverage trade-off. The results indicate that the 90% interval provides the most practical balance for policy use, whereas the 95% interval offers stronger protection against undercoverage at the expense of wider bounds.
A subgroup calibration analysis was also added to assess whether the prediction intervals remain well calibrated across WHO income groups. As shown in Table 11, empirical coverage remains close to the nominal 95% level across low-income, lower-middle-income, upper-middle-income, and high-income countries, with no systematic over- or under-coverage across strata. Lastly, the above discussion is extended to compare split-conformal prediction methods with Bayesian methods among others. Even though there are Bayesian methods that can be used to obtain posterior predictive intervals, most Bayesian methods need a prior and computational resources, unlike the distribution-free and computationally efficient method adopted in this case.
4.5 Uncertainty quantification via conformal calibration
Reliable uncertainty communication is a prerequisite for evidence-based health-policy deployment. NEXUS-LE provides distribution-free prediction intervals (PIs) via the split-conformal procedure of Section 3.5 (Eqs. (14)–(17)), calibrated exclusively on the withheld partition (3,308 samples) and validated on
. Table 12 reports the quantile estimates, nominal guarantees, and empirical coverages at
. Finite-sample tolerance computed as
at the 95% confidence level. All widths are symmetric around
per Eq. (16).
Both intervals satisfy the marginal coverage guarantee of Eq. (17): the 95% PI exceeds nominal by +0.04 pp and the 90% PI falls short by only –0.10 pp, well within the finite-sample tolerance band ( pp and
pp respectively), confirming that the exchangeability assumption holds on this panel dataset. The interval visualisation in Fig 2 (bottom-right) shows symmetric 90% bands that tightly bracket actual values across the full sorted test range, with no systematic under- or over-coverage in any life-expectancy sub-region—a direct visual validation of the theoretical guarantee. The average 90% PI width of
years is clinically actionable: it is
narrower than the inter-decile range of
(
years) while remaining wide enough to accommodate genuine between-population heterogeneity, a balance that meets the precision-vs-conservatism criterion advocated for WHO-facing health projection tools. Critically, this calibrated uncertainty is unavailable in any ablation variant A1–A3 (Table 9), underscoring the indispensability of the dedicated calibration partition
in the NEXUS-LE design.
4.6 Global explainability: TreeSHAP feature importances
Global model transparency is operationalised via TreeSHAP importance scores (Eq. (7)) computed over the full test set
(n = 3,308). Fig 4 ranks the top-20 features by mean
, Bar length encodes
(Eq. (7)).
indicates degree-2 polynomial terms introduced in Phase 2. Table 13 consolidates the top-10 with their importance scores and policy-domain assignments. Feature type: O = original, P = SHAP-guided polynomial interaction.
Four epidemiologically interpretable patterns emerge.
- (i) Country-level structural dominance. The LOO-encoded Country feature ranks first with
years—
the second-ranked feature—confirming that persistent structural determinants (health-system capacity, institutional quality, geographic disease burden) encoded in country identity explain the dominant share of between-country life-expectancy variance. This is corroborated at the instance level by the local attribution
years for a representative high-income test sample.
- (ii) Demographic and mortality predictors. Death Rate % Population Aged 0--14 (I = 0.93) and Gender (I = 0.75) rank 2nd and 3rd, consistent with established evidence that age-stratified mortality rates and sex-specific survival differentials are robust proxies for systemic health investment levels.
- (iii) Polynomial interaction terms validate Phase-2 expansion. Four of the top-10 features are SHAP-guided degree-2 terms, directly validating the SHAP-guided polynomial strategy of Phase 2. Their presence confirms that a purely linear feature space would miss multiplicative synergies between country context and clinical indicators that are epidemiologically meaningful.
- (iv) Health-system interaction for policy targeting. Country
UHC Coverage ranks 9th (I = 0.27), quantifying the marginal life-expectancy gain attributable to expanding universal health coverage conditional on existing country-level infrastructure—a finding directly actionable for WHO SDG 3.8 intervention prioritization. Full policy-domain aggregations are reported in Table 14.
4.7 Policy-factor XAI grouping
To bridge the gap between feature-level SHAP attributions and actionable health-policy inference, all 675 features were aggregated into seven thematic domains following the WHO determinants-of-health taxonomy. Aggregated importance is defined as the sum of per-feature mean within each group. Fig 5 visualises the distribution and Bar length encodes summed mean
per domain (Table 14). Other and Demography jointly account for 96.3% of total attribution, with Nutrition contributing the only other substantive share (4.5%). Table 14 provides the quantitative breakdown with cumulative shares.
Three policy-relevant findings emerge from the domain grouping.
- (i) Structural and demographic co-dominance. The Other and Demography groups collectively account for
of total SHAP attribution. Demography (46.03%) subsumes age-sex stratified mortality rates, birth rates, and population age-structure features, whose dominance is consistent with the demographic transition framework: age-structure shifts and under-5 mortality reduction are the primary drivers of population-level life-expectancy gains in low- and middle-income countries. The Other group (50.27%) is anchored by the LOO-encoded Country fixed effect (
) and its polynomial interactions, confirming that persistent systemic determinants—health-system quality, institutional capacity, and geographic disease burden—are the single largest source of explainable variance in this dataset.
- (ii) Nutrition as the sole clinically modifiable contributor. Nutrition contributes 4.51% (0.614 SHAP units), representing the only domain with a substantive share beyond structural and demographic effects. BMI-related interaction terms and the Alcohol
BMI feature (Eq. (2)–(5)) retain measurable marginal predictive power after controlling for country fixed effects, confirming that dietary risk factors act on life expectancy through pathways partially independent of socioeconomic development level. This finding is directly actionable: targeted nutritional interventions may yield life-expectancy gains even within countries whose structural profile is already favourable.
- (iii) Conditionally attenuated contributions of immunisation, lifestyle, and socioeconomic domains. Immunisation, Lifestyle, and Socioeconomic each contribute < 0.35% of total attribution. This does not imply causal irrelevance; rather, after conditioning on country-level fixed effects—which absorb systemic variation in vaccination infrastructure, GDP, and public health investment—their marginal explanatory contribution to population-mean life expectancy is suppressed, a finding consistent with the GBD 2019 comparative risk attribution analysis. The implication for policy design is that interventions in these domains are more likely to yield measurable life-expectancy gains when deployed in contexts where the country-level structural baseline is weak (low Country LOO score), as captured by the interaction terms identified in Table 13.
4.8 Partial dependence analysis
Partial Dependence Plots (PDPs) decompose the marginal dose–response relationship between each top-ranked feature and the predicted life expectancy, averaging over the joint distribution of all remaining features in . Fig 6 presents PDPs for the four highest-ranked features in
(Table 13): Country, Death Rate^2, Country^2, and Gender. The y-axis is the marginal predicted life expectancy (years) after averaging over all other features. (Top-left) Country (LOO): sigmoid-like monotone increase spanning
years, encoding the non-linear HDI gradient. (Top-right) Death Rate^2: monotone decrease (
yr), capturing the accelerating mortality penalty that a linear term would underestimate. (Bottom-left) Country^2: shallow positive gradient (
yr), encoding quadratic amplification of country-level structural advantages. (Bottom-right) Gender: near-flat decline (
yr), consistent with the global female longevity advantage. Table 15 summarises the direction, range, and epidemiological interpretation of each curve. Range = marginal
span across the observed feature domain; Direction:
increasing,
decreasing. All values are marginal life-expectancy years.
Four mechanistic findings are evident.
- (i) Non-linear HDI gradient (Country, Fig 6 top-left). The PDP spans
years across the LOO-encoded country range, exhibiting a sigmoid dose–response curve consistent with the non-linear HDI–life-expectancy relationship documented in UNDP reports. Below a LOO threshold of
(corresponding to HDI
), marginal gains in country-level health determinants yield accelerating life-expectancy improvements; above this threshold, returns diminish—a saturation pattern directly informing the targeting of SDG 3 investments toward lower-HDI nations.
- (ii) Polynomial mortality penalty (Death Rate^2, top-right). The monotone decreasing PDP (
years) confirms that the quadratic death-rate term introduced in Phase 2 captures a non-linear, accelerating mortality burden that a linear predictor would systematically underestimate at high-burden values. This validates the SHAP-guided expansion strategy: the polynomial term provides incremental explanatory power beyond the raw death rate already present in
.
- (iii) Quadratic country amplification (Country^2, bottom-left). The shallow positive gradient (
years) of Country^2 encodes the accelerating structural advantage conferred on high-income countries: small increments in an already-favourable country index yield disproportionately larger marginal life-expectancy gains, a pattern consistent with compounding returns to health-system maturity.
- (iv) Female longevity advantage (Gender, bottom-right). The near-flat PDP declines by
years between Gender
(female-majority strata) and Gender = 0.5 (male-majority strata), consistent with the universally documented biological female longevity advantage. The attenuation of this effect at extreme positive values reflects the compression of the sex-gap in contexts of persistently high male–female mortality differentials in low-income settings, a nuance invisible to linear predictors but captured by NEXUS-LE’s non-linear ensemble. Together, the four PDPs provide falsifiable, epidemiologically coherent dose–response curves that strengthen the trustworthiness audit of NEXUS-LE as a deployable health-prediction system.
4.9 Computational profile and deployment considerations
To support practical deployment, we report the Table 16 on computational profile of the proposed pipeline in terms of wall-clock time, memory usage, and hardware requirements across all seven phases.The above decomposition explains the cost associated with processing each block, revealing that the most computationally intensive operation is the L1 OOF stacking layer while all other layers have minimal computation requirements and can be easily processed using a CPU-only approach. For even better assistance with the design of resource-limited implementations, the following CPU versus GPU comparisons and a lighter A3 version are included.
4.10 Comparative analysis
To contextualise the performance of NEXUS-LE within the broader life-expectancy prediction literature, we benchmark it against two representative prior systems and the three constituent base learners evaluated on the same held-out test set (, n = 3,308). Shakeel Ahmad et al. [14] demonstrated that XGBoost achieves an adjusted R2 = 0.9729 on the standard WHO life-expectancy dataset, substantially outperforming ordinary least squares regression and establishing gradient-boosted trees as the dominant paradigm for this task. Ozsahin et al. [12] compared Random Forest (RF), LightGBM (LGBM), AdaBoost, and XGBoost on a global life-expectancy benchmark, finding LGBM superior with RMSE = 1.8778 years and R2 = 0.9504—the strongest single-model result reported prior to this work. Despite this progress, both studies rely on single-model architectures applied to raw WHO indicators, without hierarchical stacking, SHAP-guided polynomial enrichment, meta-manifold augmentation, or statistically guaranteed prediction intervals [14,12]. Table 17 reports five-metric test-set performance for NEXUS-LE against its three base learners (XGB-A, XGB-B, LGBM-A). Bold: best value per metric.
rows report NEXUS-LE minus each baseline; negative values on error metrics denote improvement. Prior-art results [14,12] are evaluated on their respective datasets and are included for directional reference. NEXUS-LE achieves R2 = 0.9878 and RMSE = 1.0665 years, surpassing the pre-specified
accuracy target and improving upon the Ozsahin et al. baseline [12] by 0.7113 years in RMSE (37.9% reduction) and 0.0374 in R2. Relative to the weakest base learner (LGBM-A), NEXUS-LE reduces RMSE by 0.0401 yr (3.6%), MAE by 0.0526 yr (7.8%), and MAPE by 0.0679 pp (6.8%), directly quantifying the variance-reduction benefit of three-level OOF stacking over any individual learner.
Although XGB-B records marginally lower MAE (0.6151 yr) and MAPE (0.9126%) than NEXUS-LE, both differences fall within the Monte Carlo RMSE noise floor of yr at n = 3,308 and are therefore statistically indistinguishable. Mechanistically, XGB-B’s marginal median-error advantage reflects its single-model regularisation structure, which biases predictions toward the central tendency; by contrast, NEXUS-LE optimises for squared-error reduction across the full life-expectancy range [24.83, 87.75] years—the more consequential objective for population-level health-policy projections. Critically, none of the prior-art or base-learner systems provide statistically guaranteed prediction intervals, SHAP-guided polynomial enrichment, or WHO-taxonomy policy-domain attributions; NEXUS-LE uniquely satisfies all three FUTURE-AI deployment requirements (interpretability, uncertainty quantification, and bias auditing) within a single unified pipeline.
5 Conclusion
We introduce NEXUS-LE, a framework for accurate, robust, and interpretable global life expectancy prediction, through the use of an integrated ensemble methodology. Trained and validated using a WHO dataset of 22,050 observations from country-years, our model shows excellent predictive results on the held-out test subset (n = 3,308), with R2 = 0.9878, RMSE = 1.0665 years, MAE = 0.6185 years, and MAPE = 0.9239%, significantly outperforming other models in all metrics consistently. It is shown that performance improvements are largely attributed to the high diversity of the ensemble, its hierarchical nature, and residual correction, whereas polynomial feature expansion works well in this context too. In addition, our framework offers calibrated uncertainty estimates based on split-conformal prediction, with empirical coverage approaching nominal coverage with an average prediction interval width of 3.32 years. In terms of interpretability, we find that demographic and structural variables play a dominating role in the explanation, contributing to 96.3% of all attributions, with observed relations consistent with current epidemiological research. The limitations of the framework include lower generalisation capabilities to unseen countries, possible temporal dependency sensitivity, and relatively high computational complexity of the full ensemble.
References
- 1.
Organization WH. WHO guideline on self-care interventions for health and well-being, 2022 revision. World Health Organization. 2022.
- 2.
United Nations, Department of Economic and Social Affairs, Population Division. World Population Prospects 2024: Summary of Results. New York: United Nations. 2024. https://population.un.org/wpp/
- 3.
Doshi-Velez F, Kim B. Towards a rigorous science of interpretable machine learning. arXiv preprint arXiv:170208608. 2017.
- 4.
Chen T, Guestrin C. Xgboost: A scalable tree boosting system. In: Proceedings of the 22nd acm sigkdd international conference on knowledge discovery and data mining. 2016. 785–94.
- 5.
Ke G, Meng Q, Finley T, Wang T, Chen W, Ma W, et al. Lightgbm: A highly efficient gradient boosting decision tree. Advances in neural information processing systems. 2017;30.
- 6. Breiman L. Stacked Regressions. Machine Learning. 1996;24(1):49–64.
- 7. Lundberg SM, Erion G, Chen H, DeGrave A, Prutkin JM, Nair B, et al. From Local Explanations to Global Understanding with Explainable AI for Trees. Nat Mach Intell. 2020;2(1):56–67. pmid:32607472
- 8. Friedman JH. Greedy function approximation: A gradient boosting machine. Ann Statist. 2001;29(5).
- 9.
Vovk V, Gammerman A, Shafer G. Algorithmic learning in a random world. Springer. 2005.
- 10. Angelopoulos AN, Bates S. Conformal Prediction: A Gentle Introduction. Foundations and Trends® in Machine Learning. 2023;16(4):494–591.
- 11. Lekadir K, Frangi AF, Porras AR, Glocker B, Cintas C, Langlotz CP, et al. FUTURE-AI: international consensus guideline for trustworthy and deployable artificial intelligence in healthcare. BMJ. 2025;388:e081554. pmid:39909534
- 12.
Ozsahin DU, Emegano DI, David LR, Hussain AJ, Uzun B, Ozsahin I. Global Life Expectancy Prediction Using Machine Learning Ensemble Techniques. In: 2024 17th International Conference on Development in eSystem Engineering (DeSE), 2024. 423–7. https://doi.org/10.1109/dese63988.2024.10912031
- 13. Roth GA, Abate D, Abate KH, Abay SM, Abbafati C, Abbasi N, et al. Global, regional, and national age-sex-specific mortality for 282 causes of death in 195 countries and territories, 1980–2017: a systematic analysis for the Global Burden of Disease Study 2017. The lancet. 2018;392(10159):1736–88.
- 14. Ahamad SS, Kumar KP, Ganesh SS, Alharbi F, Alharby SA, Dendukuri VSP, et al. Machine Learning-Based Life Expectancy Prediction in Developed and Developing Regions. IEEE Access. 2025;13:69520–31.
- 15. Wolpert DH. Stacked generalization. Neural Networks. 1992;5(2):241–59.
- 16. Dong X, Yu Z, Cao W, Shi Y, Ma Q. A survey on ensemble learning. Front Comput Sci. 2019;14(2):241–58.
- 17. Mustafa G, Khattak MS, Ishfaq S, Afzal MT, Mahmood Q, Khalid YN. Interpretable genetic programming with SHAP-guided multi-objective optimization for scientific impact modeling. Evol Intel. 2025;19(1).
- 18. Zhao X, Zhang P-F, Zhao Q, Zhang D, Tuerxunmaimaiti Y, Cao H. A SHAP algorithm-based prediction of the interlaminar shear strength degradation of G/BFRP bars embedded in concrete exposed to marine environment. Case Studies in Construction Materials. 2025;22:e04770.
- 19. Cao X, Hou Y, Zhang X, Xu C, Jia P, Sun X, et al. A comparative, correlate analysis and projection of global and regional life expectancy, healthy life expectancy, and their GAP: 1995-2025. Journal of global health. 2020;10(2):020407.
- 20.
Wallenburg I, Friebel R. Preparing for uncertainty and health system responses: a new year for Health Economics, Policy and Law. Health Econ Policy Law. 2026;:1–3. https://doi.org/10.1017/S1744133125100340 pmid:41521816
- 21.
Devraai. Global Health & Life Expectancy Analysis. 2025. https://www.kaggle.com/code/devraai/global-health-life-expectancy-analysis/input
- 22. Troyanskaya O, Cantor M, Sherlock G, Brown P, Hastie T, Tibshirani R, et al. Missing value estimation methods for DNA microarrays. Bioinformatics. 2001;17(6):520–5. pmid:11395428
- 23.
Alamuri M, Surampudi B, Negi A. Multi Dimensional Deep Encoding for Categorical Feature Space. In: Proceedings of the 2024 13th International Conference on Computing and Pattern Recognition, 2024. 120–8. https://doi.org/10.1145/3704323.3704378
- 24. Kaufman S, Rosset S, Perlich C, Stitelman O. Leakage in data mining: Formulation, detection, and avoidance. ACM Transactions on Knowledge Discovery from Data (TKDD). 2012;6(4):1–21.
- 25.
Kurita T. Principal Component Analysis (PCA). Computer Vision. Springer International Publishing. 2020. 1–4. https://doi.org/10.1007/978-3-030-03243-2_649-1
- 26. Likas A, Vlassis N, J. Verbeek J. The global k-means clustering algorithm. Pattern Recognition. 2003;36(2):451–61.
- 27. Halko N, Martinsson PG, Tropp JA. Finding Structure with Randomness: Probabilistic Algorithms for Constructing Approximate Matrix Decompositions. SIAM Rev. 2011;53(2):217–88.
- 28. Huber PJ. A Robust Version of the Probability Ratio Test. Ann Math Statist. 1965;36(6):1753–8.