Long Stayer Risk Stratification

Machine learning using historical data from Gloucestershire Hospitals NHS Foundation Trust to predict how long a patient will stay in hospital upon admission.

length of stay
neural network
risk model

Long Stayer Risk Stratification screenshot

As the successful candidate from the AI Skunkworks problem-sourcing programme, Long Stayer Risk Stratification was first picked as a pilot project for the AI Skunkworks team in April 2021.


A proof-of-concept demonstrator written in Python (machine learning model and backend), and HTML/CSS/JavaScript (frontend).

Open Source Code & DocumentationGithub
Case StudyCase Study
Technical reportOn request: ai-skunkworks@nhsx.nhs.uk
© Copyright 2021-2023 NHS AI Lab
All content is available under the Open Government Licence v3.0, except where otherwise stated.