RT Journal Article SR Electronic T1 A Deep Learning Method to Detect Opioid Prescription and Opioid Use Disorder from Electronic Health Records JF medRxiv FD Cold Spring Harbor Laboratory Press SP 2021.09.13.21263524 DO 10.1101/2021.09.13.21263524 A1 Kashyap, Aditya A1 Callison-Burch, Chris A1 Boland, Mary Regina YR 2021 UL http://medrxiv.org/content/early/2021/09/21/2021.09.13.21263524.abstract AB Objective As the opioid epidemic continues across the United States, methods are needed to accurately and quickly identify patients at risk for opioid use disorder (OUD). The purpose of this study is to develop two predictive algorithms: one to predict opioid prescription and one to predict OUD.Materials and Methods We developed an informatics algorithm that trains two deep learning models over patient EHRs using the MIMIC-III database. We utilize both the structured and unstructured parts of the EHR and show that it is possible to predict both of these challenging outcomes.Results Our deep learning models incorporate both structured and unstructured data elements from the EHRs to predict opioid prescription with an F1-score of 0.88 ± 0.003 and an AUC-ROC of 0.93 ± 0.002. We also constructed a model to predict OUD diagnosis achieving an F1-score of 0.82 ± 0.05 and AUC-ROC of 0.94 ± 0.008.Discussion Our model for OUD prediction outperformed prior algorithms for specificity, F1 score and AUC-ROC while achieving equivalent sensitivity. This demonstrates the importance of a.) deep learning approaches in predicting OUD and b.) incorporating both structured and unstructured data for this prediction task. No prediction models for opioid prescription as an outcome were found in the literature and therefore this represents an important contribution of our work as opioid prescriptions are more common than OUDs.Conclusion Algorithms such as those described in this paper will become increasingly important to understand the drivers underlying this national epidemic.Competing Interest StatementThe authors have declared no competing interest.Funding StatementGenerous funding from the Perelman School of Medicine at the University of PennsylvaniaAuthor DeclarationsI confirm all relevant ethical guidelines have been followed, and any necessary IRB and/or ethics committee approvals have been obtained.YesThe details of the IRB/oversight body that provided approval or exemption for the research described are given below:Institutional Review Board has approved this project.All necessary patient/participant consent has been obtained and the appropriate institutional forms have been archived.YesI understand that all clinical trials and any other prospective interventional studies must be registered with an ICMJE-approved registry, such as ClinicalTrials.gov. I confirm that any such study reported in the manuscript has been registered and the trial registration ID is provided (note: if posting a prospective study registered retrospectively, please provide a statement in the trial ID field explaining why the study was not registered in advance).YesI have followed all appropriate research reporting guidelines and uploaded the relevant EQUATOR Network research reporting checklist(s) and other pertinent material as supplementary files, if applicable.YesThis paper uses the MIMIC-III database that is publicly available at https://physionet.org/content/mimiciii/1.4/ provided users due requisite training and obtain Institutional Review Board approval for their project.