Manuscript Offprint

arXiv:2610.17265

Protocol Choices Matter More Than the Aggregation Algorithm: Federated Learning for In-Hospital Mortality Prediction in Care-Unit and Multi-Hospital Federations

Rodrigo Tertulino, Ricardo Almeida, Laércio Alencar

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Federated learning allows hospitals to train a shared mortality model without pooling their records, but published comparisons of aggregation strategies rarely control the evaluation protocol. This study compared seven strategies (FedAvg, FedProx, SCAFFOLD, FedAdagrad, FedAdam, FedYogi and FedCluster) on two federations built with one pipeline: 12 care units of a hospital in MIMIC-IV and 49 hospitals in eICU-CRD. Each strategy was tuned and selected on validation data by the same rule, and every comparison was repeated across 10 seeds with Friedman and Holm-corrected tests. SCAFFOLD ranked first in both federations (AUC-ROC 0.886 and 0.819) and in 17 of 18 variants, but its margin over the runner-up never exceeded 0.008, and a control sharing its local optimizer attributed most of its margin over FedAvg to drift correction. On the multi-hospital federation, federated training matched centralized training. In the care-unit federation, three protocol choices changed discrimination by more than the choice of strategy did: discharge-coded predictors (+0.038 in AUC-ROC), client-level SMOTE (up to -0.074), and evaluating the last instead of the best validation round (up to -0.084). Platt scaling on validation data repaired the risks distorted by imbalance corrections without loss of discrimination. Studies should therefore fix the protocol before ranking algorithms.

Keywords: Federated learning; Aggregation strategies; In-hospital mortality; Electronic health records; Evaluation protocol; Calibration

1 Introduction

Early prediction of in-hospital mortality from electronic health records (EHR) is one of the most studied tasks in clinical machine learning, both because it supports triage and resource allocation and because it serves as a standard benchmark for new methods [1]. Models of this kind improve with the amount and diversity of the data they learn from, yet the records that would provide that diversity are spread across hospitals that cannot pool them. Privacy regulation, institutional policy, and the cost of building central repositories all stand in the way. Federated learning addresses this obstacle by training a shared model while the records stay where they were collected: each institution trains on its own data, and only model updates are sent to a server that aggregates them [2, 3].

How the server aggregates the updates is the central design choice of a federated system, and a family of aggregation strategies has been proposed for the situation that hospitals typify, in which clients differ in size and case mix [4]. Practitioners who must choose among these strategies depend on empirical comparisons on clinical data, but the available comparisons were not designed to isolate the effect of the strategy. The most comprehensive comparison on EHR mortality prediction found small differences between six strategies on a federation of hospitals [5]; it used shared hyperparameters whose values were not reported, took the federated models at the last round but the centralized model at its best validation epoch, and evaluated a single run of each method. Other common practices add further uncertainty:

oversampling the rare outcome inside each client distorts the predicted risks [6], and predictors that are recorded only after the prediction time inflate performance [7]. In this situation, it is unclear whether a reported ranking reflects the aggregation strategies or the protocol used to evaluate them. It is also unclear whether conclusions drawn from federations simulated by splitting one hospital into care units, a common shortcut, carry over to federations of independent hospitals.

This study addresses these questions with a controlled comparison. It asks, first, which aggregation strategy performs best under a protocol that treats every strategy alike, and whether the answer depends on the kind of federation (RQ1); second, how close federated training comes to centralized training once the protocol is controlled (RQ2); and third, how much common protocol choices change the conclusions (RQ3). To answer them, seven strategies (FedAvg, FedProx, SCAFFOLD, FedAdagrad, FedAdam, FedYogi and FedCluster) were trained with the same pipeline and predictors on two federations: 12 care units of one hospital in MIMIC-IV and 49 hospitals in eICU-CRD. Each strategy's hyperparameters were tuned on validation data; every model was selected by the same validation rule; every comparison was repeated over 10 seeds and tested with procedures designed for several methods; and calibration was assessed alongside discrimination.

The study makes four contributions. It provides a controlled comparison of seven aggregation strategies on an intra-hospital and an inter-hospital federation built with a single pipeline, a design that separates the effect of the federation structure from that of data preparation. It quantifies the effect of four protocol choices, namely discharge-coded predictors, client-level oversampling, the round at which the model is evaluated, and the tuning of hyperparameters, and shows that three of them change discrimination by more than the choice of strategy does in the care-unit federation, and one of them in both federations. It identifies SCAFFOLD, absent from previous clinical comparisons, as the most accurate strategy in both federations, together with the condition under which it works, plain local gradient descent with a tuned learning rate, and uses a control strategy to show that its advantage comes mainly from its drift correction rather than from that change of optimizer. Finally, it shows that federated training matches centralized training on the multi-hospital federation and that a simple recalibration step repairs the risk estimates distorted by imbalance corrections. The remainder of the paper reviews related work (Section 2), describes the methods (Section 3), presents the results (Section 4), discusses them (Section 5), and concludes (Section 6).

References (39)