TY - JOUR
T1 - Development and validation of random-forest based federated ensemble learning algorithms for delirium prediction using electronic medical records from eleven hospitals in Austria: a retrospective study
AU - Veeranki, Sai Pavan Kumar
AU - Hayn, Dieter
AU - Kramer, Diether
AU - Gampawar, Piyush Gajananrao
AU - Baumgartner, Martin
AU - Lorenzer, Lena Delia
AU - Schrempf, Michael
AU - Schreier, Günter
N1 - © The Author(s) 2026. Open Access This article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if changes were made. The images or other third party material in this article are included in the article’s Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article’s Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this licence, visit h t t p : / / c r e a t i v e c o m m o n s . o r g / l i c e n s e s / b y / 4 . 0 /.
PY - 2026/1/14
Y1 - 2026/1/14
N2 - Background Machine learning models have shown great potential in preventive medicine but require large datasets, which is a challenge due to strict privacy regulations in the healthcare sector. Federated learning is an approach that enables collaboration between institutions while preserving data privacy. The focus today in research is highly on developing federated learning methods using artificial neural networks. In this study, we aimed to contribute federated learning modelling methods applied for random forests with an use-case of predicting delirium in hospitalised patients using data from multiple hospitals. Methods We collected data from eleven hospitals, including 29,479 patients and 627 features. We developed individual random forest models for each hospital data and a general model using all data. We developed federated learning models by averaging the predictions of the individual hospital models, with different schemes based on the number of samples, positives cases, minority cases and maximum possible diversity and evaluated the models using area under the receiver operating characteristic curve (AUROC). Results The general model outperformed all the other models with an AUROC of 0.855 [0.845-0.865]. Models trained on data from single hospitals varied in performance with an AUROC ranging from 0.633 to 0.829. Models from hospitals with large datasets performed better than those of small hospitals. Federated learning models outperformed individual models. With an AUROC of 0.794 [0.782-0.806], unweighted averaging achieved the worst results. Among the weighting algorithms, the number of positive cases performed the best reaching an AUROC of 0.843 [0.832-0.854], followed by minority cases (AUROC = 0.841 [0.830-0.852]), maximum possible diversity (AUROC = 0.836 [0.825-0.847]) and number of samples (AUROC = 0.830 [0.819-0.841]). Conclusions Results show that federated learning models can perform better than hospital-specific models in some cases, especially hospitals with limited data. In case of datasets of different size, we suggest weighted averaging based on the number of samples. If the datasets are class imbalanced, minority cases or maximum possible diversity should also be considered. Additionally, federated learning models maintain consistency compared to hospital specific models. Clinical trial registration Not applicable.
AB - Background Machine learning models have shown great potential in preventive medicine but require large datasets, which is a challenge due to strict privacy regulations in the healthcare sector. Federated learning is an approach that enables collaboration between institutions while preserving data privacy. The focus today in research is highly on developing federated learning methods using artificial neural networks. In this study, we aimed to contribute federated learning modelling methods applied for random forests with an use-case of predicting delirium in hospitalised patients using data from multiple hospitals. Methods We collected data from eleven hospitals, including 29,479 patients and 627 features. We developed individual random forest models for each hospital data and a general model using all data. We developed federated learning models by averaging the predictions of the individual hospital models, with different schemes based on the number of samples, positives cases, minority cases and maximum possible diversity and evaluated the models using area under the receiver operating characteristic curve (AUROC). Results The general model outperformed all the other models with an AUROC of 0.855 [0.845-0.865]. Models trained on data from single hospitals varied in performance with an AUROC ranging from 0.633 to 0.829. Models from hospitals with large datasets performed better than those of small hospitals. Federated learning models outperformed individual models. With an AUROC of 0.794 [0.782-0.806], unweighted averaging achieved the worst results. Among the weighting algorithms, the number of positive cases performed the best reaching an AUROC of 0.843 [0.832-0.854], followed by minority cases (AUROC = 0.841 [0.830-0.852]), maximum possible diversity (AUROC = 0.836 [0.825-0.847]) and number of samples (AUROC = 0.830 [0.819-0.841]). Conclusions Results show that federated learning models can perform better than hospital-specific models in some cases, especially hospitals with limited data. In case of datasets of different size, we suggest weighted averaging based on the number of samples. If the datasets are class imbalanced, minority cases or maximum possible diversity should also be considered. Additionally, federated learning models maintain consistency compared to hospital specific models. Clinical trial registration Not applicable.
KW - Delirium prediction
KW - Electronic medical records
KW - Ensemble learning
KW - Federated learning
KW - Random forest
U2 - 10.1186/s12911-025-03322-y
DO - 10.1186/s12911-025-03322-y
M3 - Article
C2 - 41535830
SN - 1472-6947
VL - 26
SP - 1
EP - 15
JO - BMC Medical Informatics and Decision Making
JF - BMC Medical Informatics and Decision Making
IS - 1
M1 - 41
ER -