Surgery's Rosetta Stone: Natural language processing to predict discharge and readmission after general surgery

Surgery. 2023 Dec;174(6):1309-1314. doi: 10.1016/j.surg.2023.08.021. Epub 2023 Sep 29.

Abstract

Background: This study aimed to examine the accuracy with which multiple natural language processing artificial intelligence models could predict discharge and readmissions after general surgery.

Methods: Natural language processing models were derived and validated to predict discharge within the next 48 hours and 7 days and readmission within 30 days (based on daily ward round notes and discharge summaries, respectively) for general surgery inpatients at 2 South Australian hospitals. Natural language processing models included logistic regression, artificial neural networks, and Bidirectional Encoder Representations from Transformers.

Results: For discharge prediction analyses, 14,690 admissions were included. For readmission prediction analyses, 12,457 patients were included. For prediction of discharge within 48 hours, derivation and validation data set area under the receiver operator characteristic curves were, respectively: 0.86 and 0.86 for Bidirectional Encoder Representations from Transformers, 0.82 and 0.81 for logistic regression, and 0.82 and 0.81 for artificial neural networks. For prediction of discharge within 7 days, derivation and validation data set area under the receiver operator characteristic curves were, respectively: 0.82 and 0.81 for Bidirectional Encoder Representations from Transformers, 0.75 and 0.72 for logistic regression, and 0.68 and 0.67 for artificial neural networks. For readmission prediction within 30 days, derivation and validation data set area under the receiver operator characteristic curves were, respectively: 0.55 and 0.59 for Bidirectional Encoder Representations from Transformers and 0.77 and 0.62 for logistic regression.

Conclusion: Modern natural language processing models, particularly Bidirectional Encoder Representations from Transformers, can effectively and accurately identify general surgery patients who will be discharged in the next 48 hours. However, these approaches are less capable of identifying general surgery patients who will be discharged within the next 7 days or who will experience readmission within 30 days of discharge.

MeSH terms

  • Artificial Intelligence*
  • Australia
  • Humans
  • Natural Language Processing
  • Patient Discharge*
  • Patient Readmission