Title: FairMed-XGB: A Bayesian-Optimised Multi-Metric Framework with Explainability for Demographic Equity in Critical Healthcare Data

Abstract: Background:Machine learning models in emergency medicine often exhibit demographic biases, particularly gender disparities, which can compromise fairness, clinical trust, and decision-making reliability. Existing mitigation approaches typically optimise isolated fairness metrics, failing to address the multi-dimensional nature of bias while maintaining predictive performance and interpretability. Methods: We propose FairMed-XGB, a Bayesian-optimised, multi-metric fairness framework integrated into an XGBoost classifier. The model incorporates a composite fairness-aware loss function combining Statistical Parity Difference, Theil Index, and Wasserstein Distance. Bayesian optimisation is used to balance fairness and predictive accuracy. The framework is evaluated on seven cohorts derived from the MIMIC-IV-ED and eICU datasets. SHAP-based explainability is employed to analyse feature contributions and identify bias-related patterns. Results: FairMed-XGB significantly reduces gender-based disparities across all cohorts. Statistical Parity Difference decreases by 40-51% on MIMIC-IV-ED and 10-19% on eICU datasets. Theil Index values reduce by four to five orders of magnitude, approaching near-zero levels, while Wasserstein Distance decreases by 20-72%. These improvements are achieved with minimal impact on predictive performance (AUC-ROC reduction <0.02). SHAP analysis demonstrates reduced dependence on gender-proxy features and improved distributional fairness. Conclusions: FairMed-XGB provides a robust and interpretable framework for mitigating demographic bias in emergency medicine prediction models. By jointly optimising multiple fairness objectives and preserving model performance, it enables equitable and trustworthy AI deployment in high-stakes clinical settings. The integration of explainability further supports transparency and clinical adoption.
Subjects:Machine Learning (cs.LG) ; Artificial Intelligence (cs.AI)
Journal reference:Artificial Intelligence in Emergency Medicine 4 (2026) 100040
Cite as: arXiv:2603.14947 [cs.LG]

cs.LG recent