PulseExploreJournal ClubDebatesTrendingResearchersJournals
Instagram
HomeExploreJournal ClubTrending
Synapse
⌘+K
Synapse
June 1, 2026BMC Medical Informatics and Decision Making0 citationsOpen Access

Machine learning prediction of long-term postoperative pneumonia risk: a retrospective cohort study

CLCheng-An LinKSKuan‐Lin SungCLChun Lee

Key Result

A random forest machine learning model predicted the one-year risk of postoperative pneumonia with an area under the receiver operating characteristic curve of 0.886, sensitivity of 85.4%, and specificity of 77.4%.

Key Points

  • To develop and validate a machine-learning model predicting postoperative pneumonia risk for up to one year following surgery.
  • Retrospective cohort study analyzing 11,655 surgical encounters at a tertiary hospital.
  • Multiple machine learning algorithms were compared, including random forest and extreme gradient boosting, using 5-fold cross-validation.
  • Class imbalance was managed through random oversampling and undersampling.
  • Postoperative pneumonia occurred in 238 encounters (2.04%) within 365 days, with a peak in the second postoperative month.
  • The random forest model with random oversampling achieved an AUC of 0.886, sensitivity of 85.4%, and specificity of 77.4%.
  • Key predictors identified include preoperative hemoglobin and European Society of Cardiology surgical risk.

Study Design

Type

Cohort (n=11,655)

Multicenter

No

Structured PICO

Can machine learning models accurately predict the risk of postoperative pneumonia up to one year after surgery?

P
Population
11,655 surgical encounters at a tertiary hospital
I
Intervention
Machine-learning-based prognostic framework (including random forest, extreme gradient boosting, support vector machine, multilayer perceptron, and penalized logistic regression)
O
Outcome
Postoperative pneumonia within 365 days

A machine learning model using preoperative variables can effectively predict long-term postoperative pneumonia risk, allowing clinicians to rule out low-risk patients and focus surveillance on high-risk individuals.

Limitations

  • Retrospective design
  • Single-center study
  • 12-month pneumonia is multifactorial and influenced by post-discharge behaviors and chronic disease progression

Abstract

Postoperative pneumonia is a significant complication, highlighting a patient’s ongoing vulnerability. While traditional tools focus on short-term outcomes, the perioperative period offers a unique “stress test” window to identify high-risk patients. This study developed and validated a machine-learning-based prognostic framework to predict pneumonia risk up to one year after surgery. This retrospective study examined 11,655 surgical encounters at a tertiary hospital. Multiple machine learning algorithms, including random forest (RF), extreme gradient boosting, support vector machine, multilayer perceptron, and penalized logistic regression, were compared using 5-fold cross-validation. Class imbalance was handled using random oversampling (ROS) and undersampling. Models were tested on a separate set, and Shapley additive explanation (SHAP) analysis identified key predictors to improve clinical understanding. Postoperative pneumonia occurred in 238 encounters (2.04%) within 365 days, peaking in the second postoperative month. The RF model with ROS (1:4 ratio) achieved the highest performance with an area under the receiver operating characteristic curve of 0.886, sensitivity of 85.4%, specificity of 77.4%, positive predictive value of 7.4%, and negative predictive value of 99.6%. SHAP analysis identified preoperative hemoglobin, European Society of Cardiology surgical risk, age, American Society of Anesthesiologists Physical Status class, and estimated glomerular filtration rate as key predictors of long-term vulnerability. Machine learning facilitates prognostic stratification of patients at high risk of long-term vulnerability. By functioning as a high-sensitivity secondary screening tool, this model allows clinicians to safely “rule out” low-risk individuals and concentrate intensive surveillance and resources on the high-risk cohort, thereby improving long-term outcomes.

Ask AI
Helpful
Bookmark
Share
View Full Paper

Cite This Study

Lin et al. (2026) conducted a cohort in Postoperative pneumonia (n=11,655). Random forest machine learning model vs. ASA-PS score was evaluated on Prediction of postoperative pneumonia within 365 days (AUC). A random forest machine learning model predicted the one-year risk of postoperative pneumonia with an area under the receiver operating characteristic curve of 0.886, sensitivity of 85.4%, and specificity of 77.4%.

synapsesocial.com/papers/6a1d22f702fbce913063895chttps://doi.org/10.1186/s12911-026-03604-z
Ask AI
Helpful
Bookmark
Share
View Full Paper