IDEAS home Printed from https://ideas.repec.org/a/plo/pmed00/1002701.html
   My bibliography  Save this article

Development and validation of machine learning models to identify high-risk surgical patients using automatically curated electronic health record data (Pythia): A retrospective, single-site study

Author

Listed:
  • Kristin M Corey
  • Sehj Kashyap
  • Elizabeth Lorenzi
  • Sandhya A Lagoo-Deenadayalan
  • Katherine Heller
  • Krista Whalen
  • Suresh Balu
  • Mitchell T Heflin
  • Shelley R McDonald
  • Madhav Swaminathan
  • Mark Sendak

Abstract

Background: Pythia is an automated, clinically curated surgical data pipeline and repository housing all surgical patient electronic health record (EHR) data from a large, quaternary, multisite health institute for data science initiatives. In an effort to better identify high-risk surgical patients from complex data, a machine learning project trained on Pythia was built to predict postoperative complication risk. Methods and findings: A curated data repository of surgical outcomes was created using automated SQL and R code that extracted and processed patient clinical and surgical data across 37 million clinical encounters from the EHRs. A total of 194 clinical features including patient demographics (e.g., age, sex, race), smoking status, medications, comorbidities, procedure information, and proxies for surgical complexity were constructed and aggregated. A cohort of 66,370 patients that had undergone 99,755 invasive procedural encounters between January 1, 2014, and January 31, 2017, was studied further for the purpose of predicting postoperative complications. The average complication and 30-day postoperative mortality rates of this cohort were 16.0% and 0.51%, respectively. Least absolute shrinkage and selection operator (lasso) penalized logistic regression, random forest models, and extreme gradient boosted decision trees were trained on this surgical cohort with cross-validation on 14 specific postoperative outcome groupings. Resulting models had area under the receiver operator characteristic curve (AUC) values ranging between 0.747 and 0.924, calculated on an out-of-sample test set from the last 5 months of data. Lasso penalized regression was identified as a high-performing model, providing clinically interpretable actionable insights. Highest and lowest performing lasso models predicted postoperative shock and genitourinary outcomes with AUCs of 0.924 (95% CI: 0.901, 0.946) and 0.780 (95% CI: 0.752, 0.810), respectively. A calculator requiring input of 9 data fields was created to produce a risk assessment for the 14 groupings of postoperative outcomes. A high-risk threshold (15% risk of any complication) was determined to identify high-risk surgical patients. The model sensitivity was 76%, with a specificity of 76%. Compared to heuristics that identify high-risk patients developed by clinical experts and the ACS NSQIP calculator, this tool performed superiorly, providing an improved approach for clinicians to estimate postoperative risk for patients. Limitations of this study include the missingness of data that were removed for analysis. Conclusions: Extracting and curating a large, local institution’s EHR data for machine learning purposes resulted in models with strong predictive performance. These models can be used in clinical settings as decision support tools for identification of high-risk patients as well as patient evaluation and care management. Further work is necessary to evaluate the impact of the Pythia risk calculator within the clinical workflow on postoperative outcomes and to optimize this data flow for future machine learning efforts. Leveraging a single-site surgical EHR data pipeline and repository, Kristin Corey and colleagues present a machine learning-based detection of high-risk surgical patients at their institution.Why was this study done?: What did the researchers do and find?: What do these findings mean?:

Suggested Citation

  • Kristin M Corey & Sehj Kashyap & Elizabeth Lorenzi & Sandhya A Lagoo-Deenadayalan & Katherine Heller & Krista Whalen & Suresh Balu & Mitchell T Heflin & Shelley R McDonald & Madhav Swaminathan & Mark , 2018. "Development and validation of machine learning models to identify high-risk surgical patients using automatically curated electronic health record data (Pythia): A retrospective, single-site study," PLOS Medicine, Public Library of Science, vol. 15(11), pages 1-19, November.
  • Handle: RePEc:plo:pmed00:1002701
    DOI: 10.1371/journal.pmed.1002701
    as

    Download full text from publisher

    File URL: https://journals.plos.org/plosmedicine/article?id=10.1371/journal.pmed.1002701
    Download Restriction: no

    File URL: https://journals.plos.org/plosmedicine/article/file?id=10.1371/journal.pmed.1002701&type=printable
    Download Restriction: no

    File URL: https://libkey.io/10.1371/journal.pmed.1002701?utm_source=ideas
    LibKey link: if access is restricted and if your library uses this service, LibKey will redirect you to where you can use your library subscription to access this item
    ---><---

    Citations

    Citations are extracted by the CitEc Project, subscribe to its RSS feed for this item.
    as


    Cited by:

    1. Danny J N Wong & Steve Harris & Arun Sahni & James R Bedford & Laura Cortes & Richard Shawyer & Andrew M Wilson & Helen A Lindsay & Doug Campbell & Scott Popham & Lisa M Barneto & Paul S Myles & SNAP-, 2020. "Developing and validating subjective and objective risk-assessment measures for predicting mortality after major surgery: An international prospective cohort study," PLOS Medicine, Public Library of Science, vol. 17(10), pages 1-22, October.
    2. Mark Sendak & Freya Gulamali & Suresh Balu, 2023. "Comment on "The Potential Impact of Artificial Intelligence on Health Care Spending"," NBER Chapters, in: The Economics of Artificial Intelligence: Health Care Challenges, pages 78-86, National Bureau of Economic Research, Inc.
    3. Jens Kjølseth Møller & Martin Sørensen & Christian Hardahl, 2021. "Prediction of risk of acquiring urinary tract infection during hospital stay based on machine-learning: A retrospective cohort study," PLOS ONE, Public Library of Science, vol. 16(3), pages 1-16, March.

    More about this item

    Statistics

    Access and download statistics

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:plo:pmed00:1002701. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    We have no bibliographic references for this item. You can help adding them by using this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: plosmedicine (email available below). General contact details of provider: https://journals.plos.org/plosmedicine/ .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.