Design and development of a machine-learning-driven opioid overdose risk prediction tool integrated in electronic health records in primary care settings

Khoa A. Nguyen, Debbie L. Wilson, Julie Diiulio, Bradley R. Hall, Laura G. Militello, Walid F. Gellad, Christopher A. Harle, Motomori O. Lewis, Siegfried Schmidt, Eric I. Rosenberg, Danielle Nelson, Xing He, Yonghui Wu, Jiang Bian, Stephanie A. S. Staras, Adam J. Gordon, Jerry Cochran, Courtney C. Kuza, Seonkyeong Yang, Wei‐Hsuan Lo‐CiganicBioelectronic 2024

Abstract

The final backend process for our Clinical Decision Support (CDS) alert aligns with primary care physician (PCP) needs and UF Health standards. Integrating feedback from PCPs in the early development phase of our machine learning (ML)-driven CDS tool helped identify barriers and facilitators in the CDS integration process. This collaborative approach yielded a refined prototype aimed at minimizing unintended consequences and enhancing usability.

Introduction

Machine learning (ML) models offer the potential to predict opioid overdose risk with significantly higher accuracy than traditional risk-factor checklists, which often fail to identify 70-80% of at-risk individuals. However, transitioning these models from a "lab setting" into functional clinical tools remains a significant challenge. This "implementation gap" is often caused by clinician alert fatigue, the "black box" nature of ML models, and poorly designed interfaces that may lead to unintended clinical consequences.

This paper details the development of an actionable, interruptive CDS alert within a live Electronic Health Record (EHR) system, utilizing a user-centered design (UCD) approach to ensure the tool supports primary care workflows effectively.

Methods

The researchers employed a multi-disciplinary, iterative UCD framework, divided into two primary tracks: backend integration and frontend user interface (UI) development.

Backend Integration

The team established a robust pipeline to move data between research environments and clinical systems. The ML algorithm runs on a local University of Florida (UF) Health Linux server, pulling data biweekly from the Integrated Data Repository (IDR). Risk scores are then pushed into the Epic EHR system as flowsheet values using HL7 standards.

System architecture for the ML-driven CDS tool integration.

Frontend UI Development

The UI was developed through two iterative stages:

  1. Formative Interviews: Five PCPs evaluated initial concepts based on the "CDS Five Rights" (right information, right person, right format, right channel, and right time).
  2. Usability Testing: Eight PCPs participated in "think-aloud" sessions using a clickable prototype to simulate real-world prescribing scenarios.

Datasets

The ML algorithm was developed and validated using the OneFlorida+ Clinical Research Network (PCORnet) dataset, which covers over 50% of Floridians across 22 hospitals (2017-2022). Further refinement and validation were conducted using UF Health EHR data to ensure the model's performance within the local patient population. The eligible cohort included patients aged 18 and older with at least one outpatient visit and an opioid prescription within the prior year.

Key Insights and Design Evolution

Direct clinician feedback led to several critical design shifts:

  • Timing of Alerts: PCPs preferred an interruptive Best Practice Alert (BPA) triggered at the moment of signing an order rather than placing it, to avoid disrupting the workflows of support staff.
  • Risk Communication: Clinicians found frequency statements (e.g., "1 in 125 patients identified... will experience an overdose") more concrete and motivating than abstract percentages.
  • Explainability: To build trust, the tool includes a "Why was this patient identified?" link that displays top predictors, such as high morphine milligram equivalents or concurrent benzodiazepine use.
  • Terminology: To reduce stigma and prevent knee-jerk patient dismissals, the team transitioned from "High Risk" labels to "Elevated Risk," focusing on mitigation strategies like Naloxone prescription.

Key Results

The iterative process resulted in a finalized CDS tool integrated into the Epic environment. The alert logic was optimized to fire only for the top risk tier (~1 in 5000) if Naloxone had not been ordered in the last year and the clinician had not seen the alert for that patient in the last 12 months.

Finalized prototype (UI Design 3.0) of the interruptive Best Practice Alert (BPA).

The final UI provides clear, actionable recommendations: assessing treatment, closer monitoring, and offering Naloxone (including a "30-second script" to facilitate patient communication).

Discussion and Limitations

While the UCD process successfully created a usable tool, the study is limited by a small sample size of 13 PCPs from a single health system. Additionally, the technical resources required for EHR integration are substantial. Future work will involve a pilot rollout to measure clinical outcomes, such as changes in Naloxone prescribing rates, and "silent testing" to monitor alert performance before full-scale implementation.

Summary updated

BibTeX
@inproceedings{nguyen2024design,
  author = {Khoa A. Nguyen and Debbie L. Wilson and Julie Diiulio and Bradley R. Hall and Laura G. Militello and Walid F. Gellad and Christopher A. Harle and Motomori O. Lewis and Siegfried Schmidt and Eric I. Rosenberg and Danielle Nelson and Xing He and Yonghui Wu and Jiang Bian and Stephanie A. S. Staras and Adam J. Gordon and Jerry Cochran and Courtney C. Kuza and Seonkyeong Yang and Wei‐Hsuan Lo‐Ciganic},
  title = {{Design and development of a machine-learning-driven opioid overdose risk prediction tool integrated in electronic health records in primary care settings}},
  booktitle = {Bioelectronic},
  year = {2024},
  doi = {10.1186/s42234-024-00156-3},
}
Figure