FairSHAP-XGBoost: A Fairness-Aware Explainable Model for Hospital Length of Stay Prediction
Predicting hospital Length of Stay (LOS) is critical for effective healthcare resource management, yet existing machine learning models often exhibit demographic biases that undermine fairness and trust in clinical decision-making. This study proposes a Fairness-Aware Explainable AI (FairSHAP-XGBoost) framework that integrates fairness constraints and interpretability techniques to produce equitable and transparent LOS predictions. Using 10,423 patient records from the MIMIC-IV database, multiple models were evaluated, with XGBoost demonstrating the best baseline accuracy (MAE = 2.76, R² = 0.66). To address demographic bias, fairness-aware methods including reweighting and adversarial debiasing were applied, resulting in substantial improvements in Statistical Parity Difference (SPD) and Equal Opportunity Difference (EOD) of up to 70%, with only a marginal loss in accuracy (3–6%). The proposed FairSHAP approach further enhanced interpretability by adjusting feature attributions to ensure equitable contributions across demographic groups, reducing the influence of non-clinical factors such as race and insurance type while preserving clinically relevant variables. Paired t-tests confirmed that fairness improvements were statistically significant (p < 0.05), whereas changes in predictive accuracy were not, validating the robustness of the fairness-aware approach. The findings demonstrate that fairness and explainability can coexist within a unified framework, offering a practical pathway toward ethical, transparent, and trustworthy AI systems in healthcare prediction and management.
Citation data is supplied by Dimensions. New or unindexed publications may not yet have citation metrics.
- Published 2026-08-31
- Issue Vol. 1 No. 2 (2026): Regular Issue: August 2026
- Section Articles
- DOI https://doi.org/10.63913/xaih.v1i2.6
- Keywords Fairness-Aware AI, Explainable Artificial Intelligence, FairSHAP, Hospital Length of Stay, Bias Mitigation, Ethical Machine Learning, Healthcare Prediction
This work is licensed under a Creative Commons Attribution 4.0 International License.
