Manuscript Offprint

arXiv:2608.29419

Scalable Clinical Data Infrastructure and Comparative ML Evaluation for Hospitalisation Risk Prediction in Elderly Patients with Multiple Long-Term Conditions using CPRD

Asra Aslam, Volodymyr Chapman, Maurice M. O'Connell, Aseel S. Abuzour, Michael Abaho, Danushka Bollegala, Gary Leeming, Eduard Shantsila, Andrew Clegg, Lauren E. Walker, Iain Edward Buchan, Samuel D. Relton

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

Asra Aslam 1^{1}, Volodymyr Chapman 2^{2}, Maurice M. O'Connell 3^{3}, Aseel S. Abuzour 4^{4}, Michael Abaho 5^{5}, Danushka Bollegala 5^{5}, Gary Leeming 5^{5}, Eduard Shantsila 5^{5}, Andrew Clegg 4^{4}, Lauren E. Walker 5^{5}, Iain Edward Buchan 5^{5}, Samuel D. Relton 2^{2}

1^{1}School of Information, University of Sheffield, Sheffield, United Kingdom

2^{2}School of Medicine, Faculty of Medicine and Health, University of Leeds, Leeds, United Kingdom

3^{3}Division of Informatics, University of Manchester, Manchester, United Kingdom

4^{4}Academic Unit for Ageing & Stroke Research, University of Leeds, Leeds, United Kingdom

5^{5}Institute of Population Health, University of Liverpool, Liverpool, United Kingdom

a.aslam@sheffield.ac.uk, V.Chapman@leeds.ac.uk, maurice.oconnell@manchester.ac.uk, A.S.M.Abuzour@leeds.ac.uk, micheal.abaho@liverpool.ac.uk, danushka@liverpool.ac.uk, gary.leeming@liverpool.ac.uk, Eduard.Shantsila@liverpool.ac.uk, A.P.Clegg@leeds.ac.uk, md0u10pc@liverpool.ac.uk, buchan@liverpool.ac.uk, S.D.Relton@leeds.ac.uk

Abstract

Deep learning architectures are increasingly proposed for patient trajectory modeling in electronic health records (EHRs), yet their advantage over simpler, more interpretable models is rarely subjected to rigorous empirical scrutiny in real-world clinical settings. We present a comprehensive patient timeline pipeline applied to elderly patients in CPRD Aurum, incorporating 260 clinical conditions classified via a three-tier automated framework including specialised detection logic for 17 complex conditions. Using this infrastructure, we benchmark Temporal Graph Convolutional Neural Networks (TG-CNN) against Logistic Regression with LASSO regularisation and Random Forests for predicting 12-month all-cause emergency hospitalisation risk, motivated by (but not filtered to) the elevated risk of adverse drug reactions. Under cross-validation, TG-CNN achieves a marginally higher mean AUC-ROC than LASSO (0.712 vs. 0.705), whereas on the held-out test set LASSO achieves the highest discrimination of three models (AUC-ROC 0.733, versus 0.710 for Random Forest and 0.702 for TG-CNN). We show, that discrimination alone is an incomplete criterion for clinical deployment: after Platt calibration, LASSO is the only model with an acceptable calibration slope (0.817), while Random Forest (0.759) and, TG-CNN (0.391) remain substantially miscalibrated. We argue that LASSO, not the highest-discriminating model, is the model best suited to direct clinical deployment. We present lessons for the machine learning and healthcare community regarding data infrastructure, model selection, and value of calibration and interpretability in high-stakes decision support.

Preprint.

1 Introduction

Patients with multiple long-term conditions (MLTCs) face elevated treatment burden and heightened risk of harm through complex drug-drug and drug-disease interactions [Dumbreck et al., 2015, Osanlou et al., 2022]. Managing polypharmacy in this population is one of the most pressing challenges facing modern healthcare systems, with adverse drug reactions (ADRs) leading to hospitalisation estimated to cost the UK National Health Service £2.21 billion per year [Chapman et al., 2026]. Structured Medication Reviews (SMRs) offer a mechanism for medicines optimisation, but patient selection for these reviews remains subjective and inconsistent [Agwunobi et al., 2025, Abuzour et al., 2024].

Electronic health records (EHRs) capture rich longitudinal patient data spanning diagnoses, prescriptions, laboratory tests, and clinical measurements. Yet systematic approaches to synthesising conditions, test results, and interventions over time remain limited. Health-AI Research [Walker et al., 2022] addresses this gap developing AI-based dynamic risk prediction and prescribing optimisation tools for patients with MLTCs, drawing on the Clinical Practice Research Datalink (CPRD), one of the world's largest primary care databases with records from over 60 million UK patients [NHS England, 2025] with approximately 19 million in Aurum [Wolf et al., 2019]. A central hypothesis motivating AI applications in this domain is that deep learning architectures capable of representing temporal sequences will outperform traditional statistical models, because the order and timing of clinical events carry prognostic information that regression-based approaches cannot fully exploit. Long Short-Term Memory (LSTM) networks [Hochreiter and Schmidhuber, 1997] and graph neural network architectures have shown promise in benchmark tasks on EHR data. Temporal Graph Convolutional Neural Networks (TG-CNN) [Hancox and Relton, 2022, Aslam and Relton, 2025] extend these ideas by explicitly modelling the elapsed time between events through a 3D tensor representation with exponential decay weighting, offering a theoretically compelling mechanism for learning clinically meaningful temporal patterns.

In this work we put this hypothesis to an empirical test. We apply TG-CNN to the CPRD elderly cohort, predicting all-cause hospitalisation within 12 months, and compare its performance against LASSO Logistic Regression [Tibshirani, 1996] and Random Forests [Breiman, 2001], two well-understood, interpretable baselines. We define the prediction target as 12-month all-cause emergency hospitalisation, excluding planned or elective admissions. This single outcome definition is used consistently across data labelling, model training, and evaluation. Elderly patients on complex polypharmacy are at elevated risk of hospitalisation due to adverse drug reactions, which motivates the clinical use case of structured medication review; however, adverse drug reactions are not used to filter or define the outcome label at any stage of the analysis. Our results reveal that the simpler models outperform TG-CNN on discrimination, and that the best-discriminating model fails on calibration. These investigations constitute clinically and scientifically important findings with direct implications for how the community should select and evaluate models for clinical deployment. The contributions of this research include:

• Scalable CPRD infrastructure. A reusable patient timeline pipeline for CPRD Aurum incorporating clinical conditions classified via a three-tier automated framework, with specialised detection logic for 17 complex conditions using validated clinical thresholds.

• Large-scale benchmark. A rigorous empirical comparison of temporal deep learning against interpretable baselines at a scale not previously reported in UK primary care EHR (570,125 training patients), with cross-validation for models.

• Multi-criteria model evaluation framework. Empirical evidence that AUC-ROC alone is an insufficient criterion for clinical model selection: we demonstrate that best-discriminating model requires post-hoc recalibration before deployment, while the most interpretable model does not, and propose a three-criteria evaluation standard.

References (29)