{
  "abstract": "We developed and deploy a real‑time, electronic health record‑integrated machine learning phenotype to identify emergency department patients with opioid use disorder for prospective clinical trial screening and buprenorphine initiation. We conducted a multi‑phase study across three emergency departments in a single United States health system from 2014 to 2025. Using visit‑level data available at or before triage, we trained a random‑forest classifier to estimate opioid use disorder risk and embedded scoring in the electronic health record to trigger point‑of‑care alerts for trial eligibility review. A high-specificity computable training label supported retrospective development, and a clinician gold-standard reference was established through structured chart review. Performance was summarized using discrimination, calibration, and threshold-based classification metrics; prospective validation used a stratified random sample of flagged and unflagged encounters. Retrospective discrimination compared to the high-specificity computable training label was high (area under the receiver operating characteristic curve, 0.99; 95% CI, 0.98–0.99; area under the precision-recall curve, 0.92; 95% CI, 0.90–0.94), and calibration plots informed operating‑point selection for real‑time use. In prospective gold‑standard validation (n = 217), 89.3% of model-positive encounters and 95.7% of model-negative encounters agreed with physician adjudication at the prespecified threshold. Because the sample was stratified on model prediction, these are within-stratum agreement estimates; weighting them by the source-population flag rate (28,284 of 866,569 eligible encounters, 3.26%) yields design-weighted estimates of population-level prevalence (7.1%), sensitivity (0.40, 95% CI 0.24-0.64), and specificity (0.996). An electronic health record‑embedded, machine learning phenotype can accurately and feasibly identify emergency department patients with opioid use disorder in real time, streamlining clinical trial enrollment and treatment initiation. Ongoing work will report operational metrics (e.g., alert volume and latency), monitor performance drift and equity across subgroups, and evaluate downstream clinical and trial outcomes. Author summary: In this study, we wanted to find a better way to identify people visiting the emergency department who may be living with opioid use problems. These patients are often hard to recognize quickly, even though timely support, including offering effective medications, can greatly improve their health and safety. Traditional approaches rely heavily on clinicians noticing certain patterns in real time, which can be challenging during busy emergency care. To address this gap, we examined over a decade of information from a large health system and developed a clinical decision support tool that reviews routine information collected at the start of an emergency visit. The tool gives clinicians a simple, real-time signal when a patient may benefit from additional evaluation or treatment. Our early experience shows that this approach can help teams identify patients more consistently and connect them to care more quickly. We hope this work will make it easier for hospitals to support people affected by opioid use and to run clinical studies that improve future treatment options.",
  "abstract_shown": true,
  "affiliations": [
    "Department of Emergency Medicine, Yale University School of Medicine, New Haven, Connecticut, United States of America",
    "Biomedical Informatics and Data Science, Yale University School of Medicine, New Haven, Connecticut, United States of America",
    "Department of Biostatistics, Yale School of Public Health, New Haven, Connecticut, United States of America",
    "Department of Emergency Medicine, University of Virginia, Charlottesville, Virginia, United States of America"
  ],
  "article_type": "Research Article",
  "arxiv": null,
  "author_total": 12,
  "authors": [
    {
      "affs": [
        0
      ],
      "name": "Huan Li"
    },
    {
      "affs": [
        1
      ],
      "name": "Mark Iscoe"
    },
    {
      "affs": [
        2
      ],
      "name": "John Lutz"
    },
    {
      "affs": [
        3
      ],
      "name": "Carolina Diniz Hopper"
    },
    {
      "name": "Sabrina Fried"
    },
    {
      "name": "Josue Minaya"
    },
    {
      "name": "Caroline Raymond King"
    },
    {
      "name": "Olga Reykhart"
    },
    {
      "name": "Hyung Paek"
    },
    {
      "name": "Daniella Meeker"
    },
    {
      "name": "Edward R. Melnick"
    },
    {
      "name": "R. Andrew Taylor"
    }
  ],
  "bibtex": "https://research.draconitic.com/paper/4j2q8pzfvmmvy.bib",
  "cited_by": 0,
  "doi": "10.1371/journal.pdig.0001140",
  "fulltext_url": "https://journals.plos.org/digitalhealth/article?id=10.1371/journal.pdig.0001140",
  "id": "4j2q8pzfvmmvy",
  "issns": [
    "2767-3170"
  ],
  "landing_url": "https://journals.plos.org/digitalhealth/article?id=10.1371/journal.pdig.0001140",
  "language": null,
  "licence": "CC-BY-4.0",
  "licence_label": "CC BY 4.0",
  "licence_source": "journal",
  "licence_url": "https://creativecommons.org/licenses/by/4.0/",
  "metadata_licence": null,
  "native_subjects": [
    [
      "openalex",
      "2739|Opioid Use Disorder Treatment"
    ],
    [
      "plos",
      "/Biology and life sciences/Genetics/Phenotypes"
    ],
    [
      "plos",
      "/Computer and information sciences/Data management/Data visualization/Infographics/Charts"
    ],
    [
      "plos",
      "/Computer and information sciences/Information technology/Health information technology/Electronic medical records"
    ],
    [
      "plos",
      "/Medicine and health sciences/Critical care and emergency medicine"
    ],
    [
      "plos",
      "/Medicine and health sciences/Epidemiology/Medical risk factors"
    ],
    [
      "plos",
      "/Medicine and health sciences/Health care/Health care providers/Physicians"
    ],
    [
      "plos",
      "/Medicine and health sciences/Health care/Health information technology/Electronic medical records"
    ],
    [
      "plos",
      "/Medicine and health sciences/Pain management/Analgesics/Opioids"
    ],
    [
      "plos",
      "/Medicine and health sciences/Pharmacology/Drugs/Analgesics/Opioids"
    ],
    [
      "plos",
      "/Medicine and health sciences/Pharmacology/Drugs/Opioids"
    ],
    [
      "plos",
      "/People and places/Population groupings/Professions/Medical personnel/Physicians"
    ],
    [
      "plos",
      "/Physical sciences/Mathematics/Statistics/Statistical methods/Forecasting"
    ],
    [
      "plos",
      "/Research and analysis methods/Mathematical and statistical techniques/Statistical methods/Forecasting"
    ]
  ],
  "openalex": "W7207596787",
  "pdf_url": "https://journals.plos.org/digitalhealth/article/file?id=10.1371/journal.pdig.0001140&type=printable",
  "pmcid": null,
  "pmid": null,
  "published": "2026-09-03",
  "publisher": "Public Library of Science",
  "ris": "https://research.draconitic.com/paper/4j2q8pzfvmmvy.ris",
  "sources": [
    {
      "first_seen": "2026-10-30T12:17:56Z",
      "native_id": "10.1371/journal.pdig.0001140",
      "source": "plos",
      "url": "https://journals.plos.org/digitalhealth/article?id=10.1371/journal.pdig.0001140"
    }
  ],
  "subjects": [
    {
      "field": "biology",
      "origin": "plos:genetics",
      "subfield": "genetics-genomics"
    },
    {
      "field": "mathematics",
      "origin": "plos:statistical methods",
      "subfield": "statistics"
    },
    {
      "field": "medicine",
      "origin": "plos:pharmacology",
      "subfield": "pharmacology-toxicology"
    }
  ],
  "title": "Implementation of an opioid use disorder (OUD) machine-learning phenotype in real-time for the ADAPT clinical trial",
  "title_text": "Implementation of an opioid use disorder (OUD) machine-learning phenotype in real-time for the ADAPT clinical trial",
  "type": "peer-reviewed",
  "updated_at": "2026-10-30T12:17:56Z",
  "url": "https://research.draconitic.com/paper/4j2q8pzfvmmvy",
  "venue": "PLOS Digital Health",
  "versions": []
}