A Machine Learning Diagnostic Model for Pneumocystis Jirovecii Pneumonia in Patients with Severe Pneumonia.

Xiaoqian Li,Xingyu Xiong,Zongan Liang,Yongjiang Tang
DOI: https://doi.org/10.1007/s11739-023-03353-1
2023-01-01
Internal and Emergency Medicine
Abstract:The diagnosis of Pneumocystis jirovecii pneumonia (PCP) in patients presenting with severe pneumonia is challenging and delays in treatment were associated with worse prognosis. This study aimed to develop a rapid, easily available, noninvasive machine learning diagnostic model for PCP among patients with severe pneumonia. A retrospective study was performed in West China Hospital among consecutive patients with severe pneumonia who had undergone bronchoalveolar lavage for etiological evaluation between October 2010 and April 2021. Factors associated with PCP were identified and four diagnostic models were established using machine learning algorithms including Logistic Regression, eXtreme Gradient Boosting, Random Forest (RF) and LightGBM. The performance of these models were evaluated by the area under the receiver operating characteristic curve (AUC). Ultimately, 704 patients were enrolled and randomly divided into a training set (n = 564) and a testing set (n = 140). Four factors were ultimately selected to establish the model including neutrophil, globulin, β-D-glucan and ground glass opacity. The RF model exhibited the greatest diagnostic performance with an AUC of 0.907. The calibration curve and decision curve analysis also demonstrated its accuracy and applicability. We constructed a PCP diagnostic model in patients with severe pneumonia using four easily available and noninvasive clinical indicators. With satisfying diagnostic performance and good clinical practicability, this model may help clinicians to make early diagnosis of PCP, reduce the delays of treatment and improve the prognosis among these patients.
What problem does this paper attempt to address?