SPARRA: Scottish Patients At Risk of Re-admission and Admission

Louis J. M. Aslett

Department of Mathematical Sciences

Durham University

1 December 2026

Introduction

Outline

  • Introduction
    • Overview of research interests, introduce team
  • SPARRA Project
    • Motivation, history, use in practice, data and methodological approach
  • Results
    • Highlights of performance and some insights provided by the model
  • Updating Paradox
    • Important theoretical challenge raised by SPARRA

Louis Aslett

Research Interests

  • Privacy & cryptography in statistics

  • Statistical & machine learning

    • Health applications
    • Privacy preservation
  • Computational statistics

    • Markov chain Monte Carlo
    • Multilevel Monte Carlo
    • High performance computing
  • Reliability theory

The team

Academic team

Alan Turing Institute · Durham · Edinburgh

  • James Liley
  • Gergo Bohner
  • Sam Emerson
  • Bilal Mateen
  • Ioanna Thoma
  • Nathan Cunningham
  • Chris Holmes
  • Katrina Payne
  • Sebastian Vollmer
  • Ioanna Manolopoulou

Co-leadsCatalina VallejosLouis Aslett

Public Health Scotland

with NHS National Services Scotland

  • Katie Borland
  • David Carr
  • Scott Heald
  • Sam Oduro
  • Jill Ireland
  • Keith Moffat
  • Rachel Porteous
  • Stephen Riddell
  • Simon Rogers (NSS)
  • Susan Frame

SPARRA Project

Background

“The NHS should work with other public services and with patients and carers to provide continuous, anticipatory care to ensure that, as far as possible, health care crises are prevented from happening.”

— Kerr Report, NHS Scotland, 2005

Admission to an emergency department (EA)

  • breakdown of health control
  • transition from primary (preventative) to secondary (curative) care
  • increased morbidity and mortality risk
  • more expensive and specialised healthcare services

SPARRA Motivation (Future Care Planning)

Source: NHS Scotland Anticipatory Care Planning and Polypharmacy Review

SPARRA History

SPARRA in practice

Sent to GPs monthly for ≈ 80% of Scotland. European Commission “innovative exemplar” (2013).


National policy

  • Polypharmacy guidance (2015): medicines review if 75+, 10+ medicines, SPARRA 40–60
  • Winter planning: high-risk patients flagged to out-of-hours services
  • Telecare: proportion /w SPARRA ≥ 40 quantify likely need in Local Authorities

Community care

  • Future care plans: Highland, West Dunbartonshire, Lothian, …
  • LTC case management: Lanarkshire, Glasgow, Fife, …
  • Community children's nursing (Inverclyde)
  • Local planning: GP practice & area-level profiles (Dumfries & Galloway, Highland)

Thresholds chosen locally: 40–60 · ≥ 50 · ≥ 60 · ≥ 80 · top 1% · tiered

Vallejos et al. (2026), SPARRA scoping review, in preparation

Concrete SPARRA impact evidence

2,969
high-risk patients given a medicines review: 11.4 → 10.5 medicines each, ≈ £90 saved per patient per year
NHS Lothian, 87 GP practices, 2013
−49%
emergency admissions (and −36% bed days) for high-SPARRA patients under community ward case management
NHS Ayrshire & Arran, first 6 months
+59%
emergency admissions (and +63% bed days) for SPARRA ≥ 50 patients without a care plan vs. with one
NHS Highland, 5,329 care plans by 2011
954
frequent A&E attenders with high score given a key worker:
fewer visits & admissions (sig)
≈ £2,900 saved per patient/yr (!sig)
NHS Lothian PACT, 2014–15

But: mostly local before/after or observational studies. Sadly no randomised trials of SPARRA yet. A Welsh trial of a similar tool found more admissions and higher costs.

Vallejos et al. (2026), SPARRA scoping review, in preparation.

Data sources

Target definition

SPARRA v3 details (I)

SPARRA v3 details (II)

SPARRA v3 details (III)

SPARRA v4 overview

SPARRA v4 cross-validation framework

Results

ROC and Calibration refresher

SPARRA v4 overall results

Where does the improvement come from?

  • v4’s features, linear model: 0.781 → 0.788
  • Non-linear trees (XGBoost): → 0.798
  • Ensemble: +0.0005; v3 gets weight 0
  • Topic-model features: +0.0004 AUROC,
    • ≈ 200 more EA found in top 500,000
    • but eg for skin-disease topic: v4 0.52, v3 0.40, observed 0.56
  • Separate weights per v3 cohort: +0.00004, so dropped

Liley et al. (2024), npj Digital Medicine, Table 2; Supp. Notes 1 and 3

SPARRA v4 challenging cohorts

SPARRA v3/v4 direct comparison

SPARRA v4 interpretable impacts (I)

SPARRA v4 recap so far …



In other words:

  • improvements to calibration, especially around 40–60% risk
  • higher accuracy in challenging cohorts
  • upon matching at-risk cohort size to SPARRA v3’s top 50,000:
    • recommended follow-up for an extra ≈ 4,000 patients who did later undergo emergency admission
    • i.e. also ≈ 4,000 fewer incorrect follow-up recommendations to GPs
    • significant opportunity for improved patient outcomes and NHS cost savings

SPARRA v4 effectiveness by admission type

SPARRA v4 imminence of admission

Time to first emergency admission, among people admitted within the year

  • The higher the score, the sooner the admission
  • For scores above 80%, admissions are concentrated in the first few months
  • A one-year score hides an imminent risk for the highest-risk patients
  • The window for anticipatory care is short for exactly the people the score flags first

Liley et al. (2024), npj Digital Medicine, Fig. 3c

SPARRA v4 Shapley values

SPARRA v4 age/deprivation equivalence

Some thoughts about these results …

  • Emergency admissions can be predicted to a potentially useful degree from routinely collected healthcare data on a population scale in Scotland.
  • Apparent opportunities for improved patient outcomes and NHS cost savings.
  • Contemporary machine learning methods enable meaningfully more accurate prediction on this scale.
  • Certain types of admissions can be predicted differentially well: mental health, endocrine and respiratory admissions are predicted well, eye/ear, traumatic and obstetric admissions poorly.
  • SIMD has a substantial effect on EA probability, with the difference between SIMD1 and SIMD10 equivalent to 10-40 additional years of age.

SPARRA v4 over time: fixed model, fresh scores

  • Model trained in 2014: no loss of accuracy up to 2017, if scores are recomputed
  • Score computed once: loses more AUROC in 2 years (0.789 → 0.760) than v3 → v4 gained (+0.018)

Liley et al. (2024), npj Digital Medicine, Fig. 4 and Supp. Fig. 4

SPARRA v4 deployment

  • Late 2025-present: ongoing live calculation and monitoring, without distributing scores, to evaluate model fit
  • Scores to be deployed nationwide to GPs and may be used to guide public health actions in 2027.
  • Reproducibility has been taken seriously throughout and code is open sourced

Updating Paradox

The setting

Model updating paradox: what’s happening?

Model updating paradox: why?

Model updating paradox: is it bad, really?

  • This effect has been observed in real life (Caruana, 2015)

  • Awareness seems to be lacking!

    USFDA 2019 working paper notes RCTs expensive: posits avoiding repeating each time a model is updated.

  • The more the score is used, the more it exacerbates the problem
  • Can prove the better the model is, the worse subsequent updates will perform!

Naïve model updating + updating framework

Results

Is equilibrium a bad thing?

Possible resolutions?

  • Model the causal structure of score-guided interventions
    • needs every intervention recorded: rarely possible!
    • risk under usual care is not identifiable from post-intervention data alone
  • Specify the intervention for each score (stacked interventions)
    • removes clinician autonomy => score definitely a regulated medical device
  • Max-of-two: what we did for SPARRA v4, \(\rho_4 = \max(\rho_3, \text{naïve refit})\)
    • fine for one update, but can over-estimate risk
    • beyond one update compounds, and would be exposed to drift
  • Holdout set: a random subset are not given scores; retrain only on them
    • the cost falls on a small set whilst everyone else keeps an accurate score

Haidar-Wehbe et al. (2025), Annals of Applied Statistics

Holdout sets for safe updating

  • A small, random holdout set receive usual care without a score; everyone else gets the score
  • Retrain on the holdout set only, so the model keeps estimating risk under usual care, not its own effect
  • Hold out late in each epoch, so the updated model has the freshest data

Holdout sets beat the alternatives

Theory: \(N\) patients per epoch, unpredictable drift, harm grows with the score’s error.

  • No update, naïve update, or any method left with some bias: total excess harm grows linearly in \(N\)
  • Holdout set with \(n \propto \sqrt{N}\), updating more often as \(N\) grows: sublinear growth (as low as \(O(N^{2/3})\))
  • Per patient, holdout cost \(\to\) oracle cost as \(N \to \infty\) (the absolute gap still grows, just more slowly)
  • So for a useful score, the updating paradox is unavoidable without holdout set

Simulation, redrawn from Haidar-Wehbe et al. (2025), Supp. Fig. S10.1

How big should the holdout set be?

\(\ell(n) =\)
\(k_1\, n\)
holdout set:
usual care
\(+\)
\(k_2(n)\,(N-n)\)
everyone else: score
trained on \(n\) patients
  • An optimal size exists under mild conditions on the learning curve \(k_2(n)\); typically \(n^\star \propto \sqrt{N}\)
  • If unsure, err large: cost rises only linearly above \(n^\star\)
  • Estimate \(k_2(n)\) by a power-law fit or Bayesian emulation
  • ASPRE (pre-eclampsia → aspirin):
    \(N \approx\) 400,000 pregnancies over 5 years
    • hold out ≈ 12,700 (3%)
    • risk 2.35% in holdout vs 2.03% with the score (after update)

Curve reconstructed from the ASPRE estimates in Haidar-Wehbe et al. (2025), §7

Caution: fewer admissions ≠ better care

  • SPARRA’s target is an emergency admission (or death) within a year
  • But lowering admission risk is not the same as benefiting the patient
    • e.g. long-term oral corticosteroids for mild asthma would cut emergency admissions, at an unacceptable cost in long-term side effects
  • The costs in the updating theory (\(k_1\), \(k_2\) in the holdout loss) are counted in admissions: a proxy for harm
  • So the score only informs GPs, it doesn’t direct them: decisions must be for clinicians and patients, weighing all the risks and benefits

Liley et al. (2024), npj Digital Medicine, Discussion; NICE asthma guideline (2017)

Is holding out ethical?

Not a trial: no equipoise. A holdout set keeps the score accurate for everyone, but some individuals go without it.

Simple random Cluster randomised Volunteers (consent)
StatisticalUnbiased model Yes If clusters are representative Volunteer bias
Ethical principlesBeneficence & non-maleficence Most accurate update Accurate update Less accurate score for all
Autonomy & consent No consent No consent; same care within cluster Consent; can withdraw
Justice No group singled out Postcode lottery Some groups bear more harm
Truth-telling Score withheld Score withheld Score on request

Chislett et al. (2025), AI and Ethics

It depends on the setting

SPARRA

  • Admission risk over a year: mostly not imminent, but sooner for the highest scores
  • Score is one small input to a GP's decision
  • Harm from withholding: mostly delayed and small

Holdout set defensible, even without consent

Epic Sepsis Model

  • Sepsis alert every 15 min: immediate threat to life
  • Inpatients: vulnerable, cannot meaningfully consent
  • Harm from withholding: missed sepsis

Holdout set not justifiable

No update, naïve update, or holdout: every option breaches some principle, so the risks must be weighed case by case.

References

SPARRA

  • Liley et al. (2024). Development and assessment of a machine learning tool for predicting emergency admission in Scotland. npj Digital Medicine. doi:10.1038/s41746-024-01250-1
  • Thoma et al. (2024). Differential behaviour of a risk score for emergency hospital admission by demographics in Scotland: a retrospective study. PLOS Digital Health. doi:10.1371/journal.pdig.0000675
  • Vallejos et al. (2026). SPARRA scoping review. In preparation.

Updating paradox