Classifying and predicting active pharmaceutical ingredient shortages
Bernhard Konrad
Insight Data Science
Distributor
Manufacturer
Pharmacies, Hospitals
The classification problem
Distributor
Manufacturer
Pharmacies, Hospitals
The classification problem
?
/
$
$
Predicting upcoming shortages
Time-series analysis looking for leading indicators
Past
Future
?
Today
Will be short in the near future?
Time-series analysis looking for leading indicators
Past
Future
2 weeks
2 weeks
2 weeks
Today
Predicting upcoming shortages
Impact:
Potential in savings and increase in revenue:
+$4.5M
3 correctly predicted new shortages in January 2015 watch list
(0.8 expected matches if watch list is chosen randomly)
Predicting upcoming shortages
Verification:
Action:
Check internal supply, demand and price
Bernhard Konrad
Mathematical Biology
Data from Distributor
(historic)
Data from ASHP
(current)
classes balanced
classes unbalanced
#51
#409
#594
85% of current shortages correctly classified
Before balancing
After balancing
<
| precision | recall | |
| MS | 1.00 | 0.14 |
| IW | 0.77 | 1.00 |
| precision | recall | |
| MS | 0.46 | 0.81 |
| IW | 0.91 | 0.67 |
1:3 ratio of manufacturer:industry-wide on ASHP
Logistic Regression
Random Forest
>
Important features
Less important
B today
A in future
From historical time series data