Employing a low-code machine learning approach to predict in-hospital mortality and length of stay in patients with community-acquired pneumonia.

Journal: Scientific reports
PMID:

Abstract

Community-acquired pneumonia (CAP) is associated with high mortality rates and often results in prolonged hospital stays. The potential of machine learning to enhance prediction accuracy in this context is significant, yet clinicians often lack the programming skills required for effective data mining. This study aimed to assess the effectiveness of a low-code approach for assisting clinicians with data mining for mortality and length of stay (LOS) prediction in patients with CAP. A retrospective study was conducted using a low-code platform and the PyCaret library in Google Colab on data from patients with community-acquired pneumonia (CAP) admitted between January 2013 and December 2021 to two medical facilities. Model performance was assessed using the area under the receiver operating characteristic curve (AUC) for mortality prediction and the R2 score for LOS prediction, with benchmarks set at AUC > 0.9 and R2 > 0.5. The Shapley Additive Explanations (SHAP) method was used for interpreting individual predictions. A total of 669 CAP patients were enrolled in the analysis.Fifteen models were evaluated for mortality prediction, and nineteen models were evaluated for LOS prediction utilizing the PyCaret library. The Light Gradient Boosting Machine model yielded the highest AUC (0.963) for mortality prediction. In predicting LOS, the Extratrees Regressor model achieved the highest R2 score of 0.585. Factors such as the severity of pneumonia and the Charlson Comorbidity Index (CCI) were significant factors influencing mortality. For the LOS, the CCI score, activities of daily living, and social support were significant predictors. The low-code approach enables medical professionals with limited technical expertise to effectively employ data science in their clinical decision-making process. This approach proved to be a valuable tool in the analysis of CAP patient data.

Authors

  • Hao Chen
    The First School of Medicine, Wenzhou Medical University, Wenzhou, China.
  • Shurui Zhang
    Scientific Research Department, Msunhealth.Co., LTD, Jinan, China.
  • Hiromi Matsumoto
    Department of Pulmonology, Yokohama City University, Yokohama, Japan.
  • Nanami Tsuchiya
    Department of Respiratory, Yokohama Minami Kyosai Hospital, Yokohama, Japan.
  • Chihiro Yamada
    Department of Respiratory, Yokohama Minami Kyosai Hospital, Yokohama, Japan.
  • Shunsuke Okasaki
    Department of Respiratory, Yokohama Minami Kyosai Hospital, Yokohama, Japan.
  • Atsushi Miyasaka
    Department of Respiratory, Yokohama Minami Kyosai Hospital, Yokohama, Japan.
  • Kentaro Yumoto
    Department of Respiratory, Yokohama Minami Kyosai Hospital, Yokohama, Japan.
  • Daiki Kanou
    Department of Respiratory, Yokohama Minami Kyosai Hospital, Yokohama, Japan.
  • Fumihiro Kashizaki
    Department of Respiratory, Yokohama Minami Kyosai Hospital, Yokohama, Japan.
  • Harumi Koizumi
    Department of Respiratory, Yokohama Minami Kyosai Hospital, Yokohama, Japan.
  • Kenichi Takahashi
    Tohoku Rosai Hospital, Sendai, Japan.
  • Masato Shimizu
    Department of Cardiology, Yokohama Minami Kyosai Hospital, Yokohama, Japan.
  • Nobuyuki Horita
    Chemotherapy Center, Yokohama City University Hospital, Yokohama, Japan.
  • Takeshi Kaneko
    Department of Pulmonology, Yokohama City University, Yokohama, Japan.