Development and Validation of a Machine Learning Diagnostic Model Using Routine Clinical Data to Differentiate Malignant from Benign Pericardial Effusion
Objectives: This study aimed to develop and validate a machine learning model based on routine clinical data to provide real-time, accurate decision support for distinguishing malignant pericardial effusion (MPE) from benign pericardial effusion (BPE). Methods: In total, 296 patients were retrospectively enrolled, comprising 168 with BPE and 128 with MPE. The dataset was randomly divided into training and test sets in a 7:3 ratio. Six machine learning algorithms were trained to construct predictive models, with their predictive accuracy assessed using the Area Under the Curve (AUC) and Decision Curve Analysis (DCA). Furthermore, SHapley Additive exPlanations (SHAP) analysis was utilized to interpret model outputs and identify key predictive variables. Results: All six machine learning models achieved favorable diagnostic performance. Among them, the LightGBM (LGB) model demonstrated the highest predictive accuracy; the LGB test set under the receiver operating characteristic curve (AUC) was 0.930 (95% CI 0.871–0.979), with a sensitivity of 86.8%, a specificity of 94.0%, and an accuracy of 90.9%. XGBoost (XGB) had a lower score than LGB (0.111 versus 0.142). LGB calibration intercept and slope were 0.246 and 3.328. The combined serum D-dimer/carbohydrate antigen 125 (CA125) model had AUC 0.876; its difference from LGB was uncertain (ΔAUC 0.054, 95% CI −0.011 to 0.125; Holm-adjusted p = 0.382). Mean LGB out-of-fold AUC was 0.888 (SD 0.008). Fluid lactate dehydrogenase had the highest SHAP importance. Conclusions: This study developed and validated an interpretable machine learning model incorporating five readily available clinical indicators that enables accurate and rapid differentiation between MPE and BPE, enhancing diagnostic decision-making for pericardial effusion.
Authors
- Lin Pei (ORCID: https://orcid.org/0000-0003-4904-199X)
- Shuang Sun (ORCID: https://orcid.org/0000-0002-5737-3479)
- Jing Song (ORCID: https://orcid.org/0000-0002-8187-6324)
- Ziqi Song (ORCID: https://orcid.org/0009-0005-0837-7771)
- Chunying Zhang (ORCID: https://orcid.org/0000-0003-2721-7018)
- Junxian Song (ORCID: https://orcid.org/0000-0002-2982-5538)
- Mei Rong Zhao (ORCID: https://orcid.org/0000-0001-7962-2504)
- Jian Liu
Institutions
- Peking University People's Hospital (CN)
Publication Details
- Journal
- Journal of Clinical Medicine
- Published
- 2026-11-17
- DOI
- https://doi.org/10.3390/jcm15229012
- Primary Topic
- Pericarditis and Cardiac Tamponade
- Type
- article
- Field-Weighted Citation Impact
- 0.00