A Blockchain-Enabled Federated Ensemble Framework for Privacy-Preserving Mortality Prediction Across Heterogeneous Healthcare Systems

Read the full article See related articles

Listed in

This article is not in any list yet, why not save it to one of your lists.
Log in to save this article

Abstract

Objective

To test whether a smart contract that admits hospital-trained models to a shared mortality model only after peer hospitals verify their performance can exclude poisoned or substituted models, and at what cost.

Design

Retrospective simulation study of a federated learning protocol.

Methodology

In the Blockchain-Enabled Federated Ensemble (BFE), hospitals committed SHA-256 digests of locally trained XGBoost and random-forest models to a Solidity contract; peers posted digest-bound validation AUROCs, and the contract admitted models with a median peer AUROC of at least 0.70. Admitted models were pooled by weighted logit averaging (BFE-PW) or stacking (BFE-Stack) with federated recalibration. Code and drafts were produced with an AI coding assistant under the authors’ supervision.

Setting

Four hospitals simulated from one academic centre with age, renal case-mix and laboratory-availability skew; a data-scarce regime keeping 5–20% of each hospital’s training and validation patients; and a natural partition by care era.

Participants

425,215 adult admissions (186,103 patients; 2.35% in-hospital mortality) in MIMIC-IV v3.1, with predictors from the first 24 hours.

Interventions

BFE against centralised, local-only, FedAvg, FedProx, median and Multi-Krum FedAvg and federated logistic regression, under seven attacks on training, attestation, recalibration and model delivery.

Main outcome measures

AUROC and AUPRC (joint patient-clustered bootstrap), calibration, attack effects, gas and transactions.

Results

Under gross label flipping, FedAvg lost 29% of its AUPRC while the contract excluded the poisoned models in every seed (Multi-Krum FedAvg was equally protected); all substituted models were detected, and collusion blocked release. A targeted flip of female deaths passed the gate and lowered sensitivity for deaths in women from 32.8% to 27.5%; poisoned recalibration inverted BFE-PW (AUROC 0.098) unless a median-of-sites recalibration was used (0.902). With large hospitals, BFE-PW matched FedAvg in AUROC (0.902) and BFE-Stack matched FedProx (0.907 and 0.906), below local-only (0.910) and centralised XGBoost (0.915), with lower AUPRC; with 5% of the data, BFE-PW exceeded local models (0.866 against 0.844). Pooled calibration hid two-fold under-prediction at one hospital (observed-to-expected ratio 2.13), which a local intercept corrected (0.93). One aggregation used 37 transactions and 3.3 million gas, rising roughly quadratically with consortium size.

Conclusions

Contract-enforced peer attestation gave auditable, automatic exclusion of grossly poisoned and substituted models at a small accuracy cost, but did not detect attacks that preserve validation discrimination. It is most useful for consortia of small hospitals that need a verifiable record of which models entered a shared tool.

Plain language summary

Hospitals can build better risk-prediction tools by learning from each other’s patients, but privacy rules make pooling records hard. Federated learning lets each hospital train on its own data and share only the model. A hospital could, however, contribute a bad model by error or on purpose, and no one can later check which models went into the shared tool. In our design each hospital records a digital fingerprint of its model on a blockchain, other hospitals test the model and record their scores, and a program on the blockchain lets the model in only if it scored well enough. We simulated groups of hospitals using 425,215 hospital stays.

Key findings

  • The shared tool was almost as accurate as standard federated learning, and better than each hospital alone when hospitals were small.

  • Models trained on completely falsified outcomes were always kept out, and swapped models were always caught.

  • Subtler sabotage got through: hiding deaths in women made the tool miss more deaths in women, and falsifying the final adjustment step could reverse its predictions unless a robust adjustment was used.

  • At one hospital that measured fewer laboratory tests, the shared tool underestimated risk by about half; a simple local adjustment, made by that hospital alone, fixed it.

  • Recording everything on a blockchain had a measurable cost that grows quickly as more hospitals join.

The design makes the shared tool auditable, but it must be tested next on real data from separate hospitals.

Article activity feed