A machine learning model developed using routine clinical observations and routine laboratory data successfully identified community-acquired pneumonia in adult patients presenting with fever or respiratory symptoms. Researchers evaluated multiple algorithmic approaches to diagnose community-acquired pneumonia without depending on immediate chest radiography findings, which are frequently inaccessible in primary care settings and can lead to variable clinical diagnoses.
Currently, community-acquired pneumonia is diagnosed through an evaluation of clinical information, laboratory test results, and radiography findings. However, the existing medical literature has so far not revealed clear alternative approaches to chest radiography. To explore potential alternatives, the investigators sought to develop and validate a computational approach that relies solely on routinely available clinical measurements and laboratory values collected during routine patient intake.
The retrospective study analyzed a developmental cohort of 10,707 adult patients who presented with fever or respiratory symptoms at the outpatient clinic or emergency room of a single tertiary care center between January 2005 and July 2019. Within this broad clinical cohort, patients were assigned to a primary training set consisting of 7,515 individuals and a dedicated year-based holdout test set consisting of 3,192 individuals admitted during the year 2016.
The investigative team trained several machine learning architectures on the training set data and compared their diagnostic capability using the receiver operating characteristic curve on the year-based holdout test cohort. Among the tested algorithms, the eXtreme Gradient Boosting model, commonly known as XGBoost, demonstrated the highest diagnostic accuracy, achieving an area under the receiver operating characteristic curve of 0.9364, with a 95 percent confidence interval spanning 0.9241 to 0.9471.
The XGBoost framework outperformed comparative algorithmic approaches evaluated on the identical holdout test set. Specifically, standard gradient boosting models attained an area under the receiver operating characteristic curve of 0.9310, whereas random forest models demonstrated an area under the curve of 0.9257. Feature assessment revealed that cough, crackled lung sounds upon examination, and elevated C-reactive protein laboratory concentrations served as the most significant independent predictors for identifying pneumonia across the patient records.
To evaluate the model’s performance across time, the researchers examined a separate temporal validation cohort composed of 1,364 adult patients evaluated at the same institution between August 2019 and December 2020. When applied to this subsequent temporal cohort, the optimized XGBoost model retained good discriminatory performance, yielding an area under the receiver operating characteristic curve of 0.9092 with a confidence interval between 0.8848 and 0.9323.
Detailed diagnostic metrics within the temporal validation group demonstrated a clinical sensitivity of 82.30 percent, a specificity of 88.92 percent, and an overall diagnostic accuracy of 87.90 percent. These measured outcomes indicated that the algorithm maintained consistent predictive utility when assessing new patient admissions over an independent temporal period following the initial model development phase.
The study authors noted that their investigation is fundamentally limited by its single-center, retrospective design, which restricts immediate generalizability. Although the machine learning model demonstrated promising diagnostic discriminatory performance using routine information, the authors concluded that prospective validation within primary care populations is strictly required before the system can be deployed for routine clinical implementation in settings lacking immediate chest imaging access.
Subject of Research: Machine learning diagnosis of community-acquired pneumonia from routine clinical and laboratory data
Article Title: Machine learning to diagnose community-acquired pneumonia based on routine clinical and laboratory data
Article References: Lim, S. Y., Kim, T., Song, M. J., Lee, J., Kim, M., Yoo, S., Jung, S., Lee, J. Y., Nam, S., Kim, K., Cho, J., Lee, H., Lee, H. Y., & Kim, E. S. (2026). Machine learning to diagnose community-acquired pneumonia based on routine clinical and laboratory data. BMC Pulmonary Medicine. https://doi.org/10.1186/s12890-026-05067-4
Image Credits: AI Generated
DOI: 10.1186/s12890-026-05067-4
Keywords: community-acquired pneumonia, machine learning, XGBoost, gradient boosting, random forest, chest radiography, C-reactive protein, crackled lung sounds, cough, temporal validation, diagnostic accuracy, primary care, receiver operating characteristic, clinical decision support, retrospective study, tertiary care center, respiratory symptoms
Cite Scienmag News
Teresa Odom. (November 30, 2026). Machine Learning Model Diagnoses Community Acquired Pneumonia Using Routine Clinical Data. Scienmag. https://scienmag.com/machine-learning-model-diagnoses-community-acquired-pneumonia-using-routine-clinical-data/
Teresa Odom. "Machine Learning Model Diagnoses Community Acquired Pneumonia Using Routine Clinical Data." Scienmag, 30 November 2026, https://scienmag.com/machine-learning-model-diagnoses-community-acquired-pneumonia-using-routine-clinical-data/. Accessed 30 November 2026.
Teresa Odom. "Machine Learning Model Diagnoses Community Acquired Pneumonia Using Routine Clinical Data." Scienmag. November 30, 2026. https://scienmag.com/machine-learning-model-diagnoses-community-acquired-pneumonia-using-routine-clinical-data/








