Clinically-applicable prediction of hospital stay and patient similarity retrieval in paediatric cardiology using machine learning

L Louise Rigny I Iona Biggart K Kimberley Zakka J Jingteng Li A Alexander Capstick S Sebin Sabu P Pavithra Rajendran S Shankar Sridharan S Sumera Farooq A Andrew Taylor J John Booth S Shiren Patel P Padmanabhan Ramnarayan N Neil Sebire C Cho Ng P Payam Barnaghi

Abstract

Abstract Paediatric cardiology presents challenges due to the rarity and complexity of conditions like congenital heart disease. Using retrospective electronic healthcare records from 1,522 Great Ormond Street Hospital cases, we benchmark machine learning models to predict length of stay and retrieve similar patient cases. BioClinical-BERT is used for embedding-based retrieval, while a Random Forest model achieves the best length of stay prediction accuracy (0.88  ± 0.02), outperforming clinicians. The Random Forest model shows mean precision and sensitivity of 0.77  ± 0.03 and 0.76  ± 0.04 during NHS silent deployment (1,052 admissions). K-means identifies three clinically distinct subgroups. Cosine similarity retrieval reveals diagnosis-driven top matches, while complications dominate broader sets. In a 25-case intensive care unit pilot, clinician-rated utility improves from 4.23  ± 2.42 to 4.41  ± 2.16 (scale 0-10). Our models surpass clinician performance in length of stay prediction and show promise for case retrieval, supporting data-driven decision-making in paediatric cardiology and beyond.

Article Details

Volume / Issue Vol. 17, Issue 1
Published May 13, 2026
ISSN 2041-1723
Publisher Nature Portfolio

Journal Info

Nature Communications

Nature Portfolio

ISSN: 2041-1723 Open Access Life Sciences

Authors (16)

L

Louise Rigny

I

Iona Biggart

K

Kimberley Zakka

J

Jingteng Li

A

Alexander Capstick

S

Sebin Sabu

P

Pavithra Rajendran

S

Shankar Sridharan

S

Sumera Farooq

A

Andrew Taylor

J

John Booth

S

Shiren Patel

P

Padmanabhan Ramnarayan

N

Neil Sebire

C

Cho Ng

P

Payam Barnaghi