Paromita Das
← ALL PROJECTS
Healthcare analytics

Healthcare Opioid Risk Prediction

Predictive models on de-identified healthcare claims that flag patients at elevated risk of long-term opioid therapy early enough for a provider or insurer to intervene. Built for the Humana–Mays Healthcare Analytics Case Competition.

Healthcare opioid risk prediction workflow
Role
Modeling and feature engineering
Stack
Python, Pandas, scikit-learn, Jupyter
Methods
Logistic regression, LASSO, elastic net, decision trees, Random Forest
Context
Humana–Mays Healthcare Analytics Case Competition, 2019
01 — The problem

By the time opioid use is chronic, the window has closed.

Long-term opioid therapy is far easier to prevent than to reverse, but the signals that predict it are buried across prescription history, medical events, provider interactions, and utilization patterns — thousands of event-level claim records per member.

The task was to turn that history into a patient-level risk score early enough to be clinically useful, and interpretable enough to be trusted.

02 — Approach

From claim events to a ranked risk list.

01
Patient-level restructuring

Event-level claims collapsed into one record per patient, with ratio-based variables to normalize differing history lengths.

02
Feature selection

210 engineered variables narrowed via stepwise regression, LASSO, and model-based importance.

03
Model comparison

Logistic regression, LASSO, elastic net, decision trees, and Random Forest evaluated on ROC-AUC, weighing accuracy against interpretability.

04
Risk scoring

Patient-level probabilities of progressing to long-term opioid therapy, ranked for early intervention review.

7,000
Patients modeled
210
Features engineered
0.89
Best AUC (Random Forest)
81.6%
Prediction accuracy
03 — What it enables

A signal clinicians can act on.

Earlier identification

Risk probabilities let clinicians and insurers prioritize members for review before use becomes chronic.

Decision support, not automation

An additional data-driven signal alongside clinical judgment — never a substitute for it.

Estimated cost savings

The case-study cost-benefit analysis estimated roughly $30,600 across a hypothetical 1,400-patient sample.

Interpretability weighed explicitly

Model selection balanced ROC-AUC against how well the drivers could be explained.

04 — What I'd carry forward

In healthcare, an unexplainable model is an unusable one.

Random Forest won on performance, but the selection process weighed sensitivity, specificity, and explainability together. That trade-off framing — accuracy against adoptability — is the part I carry into every model I build now.

View on GitHub Next project →
Let's connect

Have a problem your data hasn't answered yet?

Email me