Early short-term prediction of emergency department length of stay using natural language processing for low-acuity outpatients

Am J Emerg Med. 2020 Nov;38(11):2368-2373. doi: 10.1016/j.ajem.2020.03.019. Epub 2020 Mar 10.

Abstract

Background: Low-acuity outpatients constitute the majority of emergency department (ED) patients, and these patients often experience an unpredictable length of stay (LOS). Effective LOS prediction might improve the quality of ED care and reduce ED crowding.

Objective: The objective of this study was to explore the potential of natural language processing (NLP) of the first ED physicians' clinical notes and to evaluate NLP-based short-term prediction models based on mixed-type clinical data.

Methods: A retrospective study was conducted at an ED of a tertiary teaching hospital in Taiwan from January 2017 to June 2017. In total, 12,962 low-acuity outpatients were enrolled. Using structured data (e.g., demographic variables and vital signs) and different sections of the first SOAP notes as predictors, we developed six NLP-based prediction models (i.e., term frequency-inverse document frequency (TF-IDF) and truncated singular value decomposition (SVD)) to predict LOS. The metric for model evaluation is the mean squared error (MSE).

Results: Of the six NLP-based models, the model using structured data and all the sections of the first SOAP notes processed by the TF-IDF and truncated SVD method performed the best, with an MSE of 3.00 [95% CI: 2.94-3.06]. In addition, ten important topics extracted by the TF-IDF and truncated SVD method had significant effects on the LOS (p < 0.001).

Conclusion: NLP-based models can be used as an early short-term prediction of LOS and have the potential for mixed-type clinical data analysis. The proposed models would likely aid ED physicians' decision-making processes and improve ED quality of care.

Keywords: Emergency department; Length of stay; Low acuity; Natural language processing; SOAP.

MeSH terms

  • Adult
  • Aged
  • Clinical Decision Rules*
  • Crowding
  • Emergency Service, Hospital*
  • Female
  • Humans
  • Length of Stay / statistics & numerical data*
  • Male
  • Middle Aged
  • Natural Language Processing*
  • Outpatients
  • Patient Acuity
  • Retrospective Studies
  • Taiwan
  • Vital Signs