Hospital Bed Occupancy and Admissions Forecasting Dashboard
A final year project that builds a patient-flow analytics and forecasting dashboard for hospital operations teams. It turns admission, discharge and transfer records into daily bed occupancy by ward, forecasts admissions and occupancy for the next two weeks, and flags days when beds are likely to run out.
Intermediate
A small team, or one strong student willing to learn something new.2 semesters · 2 to 3 students
6 to ship
3 optional extrasSuggested stack
What you should ship
- A data model for admission, discharge and transfer events with a derived hourly and daily census per ward, tested against hand-calculated occupancy on sample days.
- A realistic dataset: synthetic patient records (for example from Synthea) tuned to match published aggregate statistics such as NHS England A&E attendances and bed availability, clearly documented.
- Operational metrics: occupancy by ward and hour, length of stay distribution, discharges by hour of day, emergency department admission conversion.
- Forecasts of daily emergency admissions and occupancy 1 to 14 days ahead with prediction intervals, compared against seasonal naive and ARIMA baselines.
- A dashboard with a 'next 14 days' view, red days where predicted occupancy passes a set threshold, and a what-if for earlier discharge times.
- A backtest and evaluation report plus feedback from at least one clinician or hospital manager.
If you have time left
- Weather and public holiday features, with a measured effect on forecast error.
- A simulation of ward flow (discrete-event) to test policies such as morning discharges.
- An HL7 FHIR import path for Encounter resources so a real hospital could connect later.
The problem hospitals face with bed pressure
When a hospital runs out of beds, patients wait in the emergency department, planned operations are cancelled and staff spend hours on the phone finding space. Much of this is predictable: Mondays are busy, winter is worse, discharges bunch up in the late afternoon. Yet in many hospitals, especially mid-sized private and public hospitals in developing countries, bed status lives on a whiteboard or in a spreadsheet updated twice a day. Nobody looks ahead more than a shift.
The raw data usually exists in the hospital information system: admission, discharge and transfer events. It is rarely modelled into a daily census, let alone forecast.
What already exists and the gap
- TeleTracking and Qventus sell patient-flow and capacity platforms to large hospital systems, mainly in the US and UK.
- Epic and other large electronic health record vendors include capacity dashboards for their own customers.
- Published research shows simple models work: a 2022 study of an NHS trust in Bristol found ARIMA models with day-of-week, holiday and weather inputs forecast admissions more accurately than the trust's existing method.
The gap: the research proves the idea, but mid-sized hospitals without an enterprise system have no affordable tool that turns their event data into occupancy history and a short-term forecast. This project builds that tool on open and synthetic data first, designed to connect to a real hospital system later.
What you build
Roles: bed manager (reads the forecast daily), ward in-charge (sees their ward), analyst (manages data and models).
Flows:
- Admission, transfer and discharge events are loaded daily into staging tables.
- dbt models build a census: which patient was in which ward at each hour.
- Metrics are computed and shown on the dashboard.
- Forecast models retrain weekly and publish 14-day predictions with intervals.
- The bed manager sees red days and tests "what if 30% of discharges happened before noon".
The technically interesting part
Two parts. Building a correct census from events is harder than it looks: transfers create overlapping intervals, events arrive late or out of order, and a patient discharged and readmitted the same day must not be double-counted. Write tests that check the census against hand-worked examples.
Forecasting with honest evaluation: use rolling-origin backtesting, compare every model against a seasonal naive baseline, and report interval coverage (do 80% intervals contain the actual value about 80% of the time?). Explain why a small, explainable model may beat a complex one here, which is what the NHS studies found.
How to evaluate it
- Census correctness: match hand-calculated occupancy on 20 sampled ward-days exactly.
- Forecast accuracy: MAE and MAPE for admissions and occupancy at 1, 7 and 14 days ahead, versus seasonal naive and ARIMA.
- Intervals: coverage of 80% and 95% prediction intervals.
- Red-day alerts: precision and recall of days where occupancy passed the threshold.
- Users: one or more clinicians or managers review the dashboard; record what they would act on.
Suggested plan
- Weeks 1 to 3: talk to a bed manager or nurse, read the published forecasting studies, design the event schema.
- Weeks 4 to 8: synthetic data generation and calibration to published aggregates.
- Weeks 9 to 12: census models and tests, operational metrics.
- Weeks 13 to 19: baselines, forecasting models, backtesting framework.
- Weeks 20 to 24: dashboard, red-day view, discharge what-if.
- Weeks 25 to 28: user feedback, evaluation report, write-up.
Path to a product
The first customer is a mid-sized private hospital or a hospital group with a basic information system but no capacity tool. Sell an annual licence per hospital with set-up, including a connector for their system. Health departments running several public hospitals are a second market for a regional view.
Scope warning
Do not build an electronic health record or clinical decision support. Do not use real patient data without formal approval; synthetic and aggregate open data is enough for the project. Do not forecast individual patients' discharge dates in the core scope.
Learn what you need on Sefism
- Data Analytics roadmap : SQL, metrics and time-series analysis in order.
- Machine Learning roadmap : model evaluation habits for the forecasting part.
- dbt Documentation : tested census and metric models.
- OpenIntro Statistics : intervals and error measures explained simply.
- Storytelling with Data : a dashboard a busy bed manager reads in seconds.
Get help with this idea
The key decisions are how to generate believable synthetic data and which baselines to beat. If you want a second opinion on scope, stack or how to evaluate it before you pitch it to your supervisor, a mentor can help you shape it. You still build it; the guidance is about making the plan realistic and the results defensible. New here? create a free account first.
Ideas and guidance, not finished projects
These are project ideas and scoping guidance, published free for students to use as a starting point. I do not build, write, or sell final-year projects, and I do not complete coursework for anyone. Take an idea, make it yours, and build it.
Not sure this one fits you?
I help students pick an idea that matches their skills and their deadline, then scope it down until it is finishable. Guidance only, never done for you.
Stuck on something specific?
Writing only gets you so far. If you want an answer to your situation rather than the general case, book a session and we will work through it together. Sessions are free for approved Sefism members, and a few slots open each week.
Follow along
New writing, resources and project ideas land here first.