Related Experiment Video
Updated: Sep 4, 2025

Machine Learning Algorithms for Early Detection of Bone Metastases in an Experimental Rat Model
Published on: August 16, 2020
Performance of Machine Learning Algorithms for Predicting Adverse Outcomes in Community-Acquired Pneumonia
Zhixiao Xu1, Kun Guo1, Weiwei Chu1
1Department of Pulmonary and Critical Care Medicine, The First Affiliated Hospital of Wenzhou Medical University, Wenzhou, China.
Abstract:
Background: The ability to assess adverse outcomes in patients with community-acquired pneumonia (CAP) could improve clinical decision-making to enhance clinical practice, but the studies remain insufficient, and similarly, few machine learning (ML) models have been developed. Objective: We aimed to explore the effectiveness of predicting adverse outcomes in CAP through ML models. Methods: A total of 2,302 adults with CAP who were prospectively recruited between January 2012 and March 2015 across three cities in South America were extracted from DryadData. After a 70:30 training set: test set split of the data, nine ML algorithms were executed and their diagnostic accuracy was measured mainly by the area under the curve (AUC). The nine ML algorithms included decision trees, random forests, extreme gradient boosting (XGBoost), support vector machines, Naïve Bayes, K-nearest neighbors, ridge regression, logistic regression without regularization, and neural networks. The adverse outcomes included hospital admission, mortality, ICU admission, and one-year post-enrollment status. Results: The XGBoost algorithm had the best performance in predicting hospital admission. Its AUC reached 0.921, and accuracy, precision, recall, and F1-score were better than those of other models. In the prediction of ICU admission, a model trained with the XGBoost algorithm showed the best performance with AUC 0.801. XGBoost algorithm also did a good job at predicting one-year post-enrollment status. The results of AUC, accuracy, precision, recall, and F1-score indicated the algorithm had high accuracy and precision. In addition, the best performance was seen by the neural network algorithm when predicting death (AUC 0.831). Conclusions: ML algorithms, particularly the XGBoost algorithm, were feasible and effective in predicting adverse outcomes of CAP patients. The ML models based on available common clinical features had great potential to guide individual treatment and subsequent clinical decisions.
Related Concept Videos
Pneumonia I: Introduction
Risk Factors
Various factors influence the likelihood of developing pneumonia. Age plays a crucial role, with infants, children under two, and individuals over 65 at increased risk due to their...
Pneumonia III: Complications and Assessment
Pneumonia IV: Management
Bacterial Pneumonia Treatment
For bacterial pneumonia, antibiotics serve as the cornerstone of therapy. Initial treatment often begins with empirical antibiotics, tailored to the anticipated causative organism and adjusted based on culture results. Key antibiotic choices include:
Steps in Outbreak Investigation
Pneumonia V: Nursing management and Prevention
The nurse must practice strict medical asepsis and adhere to infection control guidelines to minimize healthcare-associated infections.
Enhance airway patency
Position the patient correctly to facilitate drainage of the affected lung segments. Manual or mechanical percussion and vibration can also be employed....
Pneumonia II: Pathophysiology

