IDEAS home Printed from https://ideas.repec.org/a/nat/natcom/v14y2023i1d10.1038_s41467-023-43715-z.html
   My bibliography  Save this article

TransformEHR: transformer-based encoder-decoder generative model to enhance prediction of disease outcomes using electronic health records

Author

Listed:
  • Zhichao Yang

    (University of Massachusetts Amherst)

  • Avijit Mitra

    (University of Massachusetts Amherst)

  • Weisong Liu

    (University of Massachusetts Lowell
    VA Bedford Health Care System)

  • Dan Berlowitz

    (VA Bedford Health Care System
    University of Massachusetts Lowell)

  • Hong Yu

    (University of Massachusetts Amherst
    University of Massachusetts Lowell
    VA Bedford Health Care System
    University of Massachusetts Lowell)

Abstract

Deep learning transformer-based models using longitudinal electronic health records (EHRs) have shown a great success in prediction of clinical diseases or outcomes. Pretraining on a large dataset can help such models map the input space better and boost their performance on relevant tasks through finetuning with limited data. In this study, we present TransformEHR, a generative encoder-decoder model with transformer that is pretrained using a new pretraining objective—predicting all diseases and outcomes of a patient at a future visit from previous visits. TransformEHR’s encoder-decoder framework, paired with the novel pretraining objective, helps it achieve the new state-of-the-art performance on multiple clinical prediction tasks. Comparing with the previous model, TransformEHR improves area under the precision–recall curve by 2% (p

Suggested Citation

  • Zhichao Yang & Avijit Mitra & Weisong Liu & Dan Berlowitz & Hong Yu, 2023. "TransformEHR: transformer-based encoder-decoder generative model to enhance prediction of disease outcomes using electronic health records," Nature Communications, Nature, vol. 14(1), pages 1-10, December.
  • Handle: RePEc:nat:natcom:v:14:y:2023:i:1:d:10.1038_s41467-023-43715-z
    DOI: 10.1038/s41467-023-43715-z
    as

    Download full text from publisher

    File URL: https://www.nature.com/articles/s41467-023-43715-z
    File Function: Abstract
    Download Restriction: no

    File URL: https://libkey.io/10.1038/s41467-023-43715-z?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
    ---><---

    References listed on IDEAS

    as
    1. Takaya Saito & Marc Rehmsmeier, 2015. "The Precision-Recall Plot Is More Informative than the ROC Plot When Evaluating Binary Classifiers on Imbalanced Datasets," PLOS ONE, Public Library of Science, vol. 10(3), pages 1-21, March.
    2. William Yuan & Brett K. Beaulieu-Jones & Kun-Hsing Yu & Scott L. Lipnick & Nathan Palmer & Joseph Loscalzo & Tianxi Cai & Isaac S. Kohane, 2021. "Temporal bias in case-control design: preventing reliable predictions of the future," Nature Communications, Nature, vol. 12(1), pages 1-10, December.
    3. Sonia A. Melo & Linda B. Luecke & Christoph Kahlert & Agustin F. Fernandez & Seth T. Gammon & Judith Kaye & Valerie S. LeBleu & Elizabeth A. Mittendorf & Juergen Weitz & Nuh Rahbari & Christoph Reissf, 2015. "Glypican-1 identifies cancer exosomes and detects early pancreatic cancer," Nature, Nature, vol. 523(7559), pages 177-182, July.
    4. Nicholas R. Powell & Tiebing Liang & Joseph Ipe & Sha Cao & Todd C. Skaar & Zeruesenay Desta & Hui-Rong Qian & Philip J. Ebert & Yu Chen & Melissa K. Thomas & Naga Chalasani, 2023. "Clinically important alterations in pharmacogene expression in histologically severe nonalcoholic fatty liver disease," Nature Communications, Nature, vol. 14(1), pages 1-16, December.
    Full references (including those not matched with items on IDEAS)

    Most related items

    These are the items that most often cite the same works as this one and are cited by the same works as this one.
    1. Christopher J Greenwood & George J Youssef & Primrose Letcher & Jacqui A Macdonald & Lauryn J Hagg & Ann Sanson & Jenn Mcintosh & Delyse M Hutchinson & John W Toumbourou & Matthew Fuller-Tyszkiewicz &, 2020. "A comparison of penalised regression methods for informing the selection of predictive markers," PLOS ONE, Public Library of Science, vol. 15(11), pages 1-14, November.
    2. Le, Hong Hanh & Viviani, Jean-Laurent, 2018. "Predicting bank failure: An improvement by implementing a machine-learning approach to classical financial ratios," Research in International Business and Finance, Elsevier, vol. 44(C), pages 16-25.
    3. João Chang Junior & Fábio Binuesa & Luiz Fernando Caneo & Aida Luiza Ribeiro Turquetto & Elisandra Cristina Trevisan Calvo Arita & Aline Cristina Barbosa & Alfredo Manoel da Silva Fernandes & Evelinda, 2020. "Improving preoperative risk-of-death prediction in surgery congenital heart defects using artificial intelligence model: A pilot study," PLOS ONE, Public Library of Science, vol. 15(9), pages 1-21, September.
    4. Arthur De Sá Ferreira & Ney Meziat-Filho & Ana Paula Antunes Ferreira, 2021. "Double threshold receiver operating characteristic plot for three-modal continuous predictors," Computational Statistics, Springer, vol. 36(3), pages 2231-2245, September.
    5. Fan, Xudong & Wang, Xiaowei & Zhang, Xijin & ASCE Xiong (Bill) Yu, P.E.F., 2022. "Machine learning based water pipe failure prediction: The effects of engineering, geology, climate and socio-economic factors," Reliability Engineering and System Safety, Elsevier, vol. 219(C).
    6. Zhang, Han, 2021. "How Using Machine Learning Classification as a Variable in Regression Leads to Attenuation Bias and What to Do About It," SocArXiv 453jk, Center for Open Science.
    7. Masabho P Milali & Samson S Kiware & Nicodem J Govella & Fredros Okumu & Naveen Bansal & Serdar Bozdag & Jacques D Charlwood & Marta F Maia & Sheila B Ogoma & Floyd E Dowell & George F Corliss & Maggy, 2020. "An autoencoder and artificial neural network-based method to estimate parity status of wild mosquitoes from near-infrared spectra," PLOS ONE, Public Library of Science, vol. 15(6), pages 1-16, June.
    8. Daniel R Jeske, 2018. "Metrics Used When Evaluating the Performance of Statistical Classifiers," Biostatistics and Biometrics Open Access Journal, Juniper Publishers Inc., vol. 8(1), pages 7-9, August.
    9. Juliet Chebet Moso & Stéphane Cormier & Cyril de Runz & Hacène Fouchal & John Mwangi Wandeto, 2021. "Anomaly Detection on Data Streams for Smart Agriculture," Agriculture, MDPI, vol. 11(11), pages 1-17, November.
    10. Kajal Lahiri & Cheng Yang, 2023. "ROC and PRC Approaches to Evaluate Recession Forecasts," Journal of Business Cycle Research, Springer;Centre for International Research on Economic Tendency Surveys (CIRET), vol. 19(2), pages 119-148, September.
    11. Tzu-Hsuan Lin & Jehn-Ruey Jiang, 2021. "Credit Card Fraud Detection with Autoencoder and Probabilistic Random Forest," Mathematics, MDPI, vol. 9(21), pages 1-16, October.
    12. Robert A. Blair & Nicholas Sambanis, 2021. "Is Theory Useful for Conflict Prediction? A Response to Beger, Morgan, and Ward," Journal of Conflict Resolution, Peace Science Society (International), vol. 65(7-8), pages 1427-1453, August.
    13. Mieke Deschepper & Willem Waegeman & Dirk Vogelaers & Kristof Eeckloo, 2020. "Using structured pathology data to predict hospital-wide mortality at admission," PLOS ONE, Public Library of Science, vol. 15(6), pages 1-11, June.
    14. Alfred Krzywicki & David Muchlinski & Benjamin E. Goldsmith & Arcot Sowmya, 2022. "From academia to policy makers: a methodology for real-time forecasting of infrequent events," Journal of Computational Social Science, Springer, vol. 5(2), pages 1489-1510, November.
    15. Falco J. Bargagli-Dtoffi & Massimo Riccaboni & Armando Rungi, 2020. "Machine Learning for Zombie Hunting. Firms Failures and Financial Constraints," Working Papers 01/2020, IMT School for Advanced Studies Lucca, revised Jun 2020.
    16. Joshua D. Spitzberg & Scott Ferguson & Katherine S. Yang & Hannah M. Peterson & Jonathan C. T. Carlson & Ralph Weissleder, 2023. "Multiplexed analysis of EV reveals specific biomarker composition with diagnostic impact," Nature Communications, Nature, vol. 14(1), pages 1-12, December.
    17. Marco Due~nas & V'ictor Ortiz & Massimo Riccaboni & Francesco Serti, 2021. "Assessing the Impact of COVID-19 on Trade: a Machine Learning Counterfactual Analysis," Papers 2104.04570, arXiv.org.
    18. Jianyuan Deng & Zhibo Yang & Hehe Wang & Iwao Ojima & Dimitris Samaras & Fusheng Wang, 2023. "A systematic study of key elements underlying molecular property prediction," Nature Communications, Nature, vol. 14(1), pages 1-20, December.
    19. Kwanda Sydwell Ngwenduna & Rendani Mbuvha, 2021. "Alleviating Class Imbalance in Actuarial Applications Using Generative Adversarial Networks," Risks, MDPI, vol. 9(3), pages 1-33, March.
    20. Stéphane Crépey & Lehdili Noureddine & Nisrine Madhar & Maud Thomas, 2022. "Anomaly Detection on Financial Time Series by Principal Component Analysis and Neural Networks," Working Papers hal-03777995, HAL.

    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:nat:natcom:v:14:y:2023:i:1:d:10.1038_s41467-023-43715-z. 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.

    If CitEc recognized a bibliographic reference but did not link an item in RePEc to it, you can help with 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: Sonal Shukla or Springer Nature Abstracting and Indexing (email available below). General contact details of provider: http://www.nature.com .

    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.