Who are we & What did we work on
Amaia Imaz Blanco
Sean Aller (and Libby)
1
Data Wrangling
Processing and challenges of the Waiting List Minimum Dataset (WLMDS)
Data access and quality
Previous codebase
Complex logic
Dataset Size
Historical Data
Challenges
Data
Open referral pathways
Weekly data from July 2021
Processing
Cleaning, filtering and processing
Patient and treatment information
Outputs
Patient referrals
Single or multiple pathways
Assets for modelling
2
Patient Clustering
Identifying patient cohorts from our data
Cluster 3
Mixed genders
Under 61
Mix of ethnic backgrounds
Skewed to lower IMD deciles
Cluster 2
Females
Over 41
Predominately White
Range of IMD deciles
Cluster 1
Males
Over 41
Predominately White
Range of IMD deciles
Bisecting K-Means
Single pathways more common in cluster 1
Multiple pathways higher in clusters 2 and 3
Summary
3
Forecasting Pathway Demand
Prediction of future counts of single vs multiple patient pathways
Prophet
July 2021 – April 2025
12-week forecast
Single and multiple
Summary
4
Forecasting Pathway Demand
Prediction of future counts of single vs multiple patient pathways
Prophet
July 2021 – April 2025
12-week forecast
Single and multiple
Summary
Single
Multiple
5
Binary Classifiers
Identifying if we can predict classes of patients that are more likely to end up on multiple pathways
6
End slide
Thank You
@nhsengland
company/nhsengland
england.nhs.uk
7
Deep Dive – Python Module
HSMA Module for processing and analysis WLMDS data
hsma6_6048
analysis
Supporting functions for analytics, such as generating forecasting counts, transforming pathways data for clustering.
etl
Functions for extracting, transforming and loading the open referrals data from WLMDS.
main
Orchestration of the ETL processes for creating the analytical assets
model
Classes to define the clustering, binary classifiers and forecasting models
params
Module-level data class to define all the variables used in the codebase
pathway_similarity
Python adaptation of previous (R-based) pathway-processing code.
profiling
Collection of EDA functions to profile and understand the WLMDS data.
utils
Collection of generic utility functions to support the codebase.
8
Patient Clustering
Personas
Optimising
Figures
Breakdown
9
Patient Clustering
Breakdown of Cluster Groups
Model Summary
Bisecting K-Means
k = 3
Run on latest data
Cluster | Unique Patients | Percentage of Total Unique Patients | Percentage of Patients with Multiple Pathways |
1 | 2,019,493 | 39.9% | 22.9% |
2 | 1,646,827 | 32.6% | 32.1% |
3 | 1,390,091 | 27.5% | 30.8% |
Total | 5,056,411 | - | - |
Return
10
Patient Clustering
Creating patient cohorts from the cluster outputs
Model Summary
Bisecting K-Means
k = 3
Cluster | Gender | Age (Years) | Ethnicity | IMD Deciles |
1 | Male only | 41+ | Predominately White | Consistent across deciles |
2 | Female only | 41+ | Predominately White | Consistent across deciles |
3 | Mixed | < 61 | Predominately White (lower proportion than other clusters) | Distribution skewed to lower deciles |
Return
11
Patient Clustering
Deciding on Optimal k value
Metrics
Silhouette Score
Within-Cluster Sum of Squares (WCSS)
Return
12
Patient Clustering
Breakdown of each cluster
Cluster 1
Cluster 2
Cluster 3
Return
13
Patient Clustering
Breakdown of each cluster
Cluster 1
Cluster 2
Cluster 3
Return
14
Frequent Pattern Mining
Common sets of treatment function codes (TFC) in multiple pathways
Method Summary
Sequential Pattern Mining (PrefixSpan).
Percentage of all multiple pathways.
Top 20 common sets of TFCs.
15
Binary Classifiers - Details
Identifying if we can predict classes of patients that are more likely to end up on multiple pathways
16
XGBoost Feature Importance
17
Future Work – Binary Classifier
18
Single vs Multiple Referral to Treatment (RTT) Pathways
HSMA Project 6068
Presented by:�Amaia Imaz Blanco
Sean Aller
Outline
Presentation flow (~3 minutes)
General note
Today Requirements
Post-Presentation ⏱️
20
Data Wrangling
Processing and challenges of the Waiting List Minimum Dataset (WLMDS)
Data
Open referral pathways
Weekly data since July 2021
Processing
Cleaning, filtering and processing
Patient and treatment information
Outputs
Patient referral pathways
Single or multiple pathways
Assets for modelling
Challenges
21
Patient Clustering
Identifying patient cohorts from our data
Males
Over 41
Predominately White
Range of IMD deciles
Clusters Summary
Single pathways more common in cluster 1
Multiple pathways higher in clusters 2 and 3
CLUSTER 1
CLUSTER 3
CLUSTER 2
Females
Over 41
Predominately White
Range of IMD deciles
Mixed genders
Under 61
Mix of ethnic backgrounds
Skewed to lower IMD deciles
22