{
  "abstract": "Postoperative pneumonia (POP) remains one of the most common infectious complications following lung cancer surgery and is associated with substantial morbidity. Although several risk factors for POP have been identified, clinically applicable approaches for early individualized risk stratification remain limited. This study aimed to develop and internally validate machine learning models for early prediction of POP using routinely available perioperative variables. In this prospective single-center cohort study, 258 consecutive patients undergoing pulmonary resection for non-small cell lung cancer or pulmonary carcinoid tumors were screened, of whom 200 were included in the final study cohort. POP was defined by newly developed postoperative radiographic abnormalities accompanied by clinical signs of infection requiring antibiotic therapy. Machine learning models, including logistic regression (LR), Naïve Bayes (NB), random forest (RF), and XGBoost (XGB), were developed to predict POP using demographic, clinical, laboratory, surgical, and postoperative day 1 radiographic variables. Model performance was assessed using nested leave-one-out cross-validation and quantified by the area under the receiver operating characteristic curve (AUROC). A nomogram was constructed from the best-performing model to facilitate individualized risk estimation. Different decision thresholds were explored to evaluate clinically relevant trade-offs between sensitivity and specificity. POP occurred in 47 of 200 patients (23.5%), while no POP-related mortality was observed. LR demonstrated the best predictive performance (AUROC 0.701±0.070), followed by NB (0.698±0.103), RF (0.656±0.217), and XGB (0.589±0.179). The most influential predictors included advanced age, perioperative changes in C-reactive protein concentration (ΔCRP), elevated preoperative CRP levels, prolonged operative duration, and abnormal postoperative day 1 chest radiographic findings. At a decision threshold of 25%, the model correctly identified 25 of 47 POP cases (53.2%), whereas increasing the threshold to 32.5% reduced false-positive classifications from 42 to 24 at the expense of missing an additional four POP cases. Machine learning models based on routinely available perioperative variables enabled early individualized prediction of POP following lung cancer surgery. LR provided the best balance between predictive performance, stability, and interpretability, allowing the development of an interpretable nomogram for individualized risk estimation. The model may have potential to support risk-adapted postoperative surveillance and more efficient allocation of healthcare resources; however, external validation is required before clinical implementation.",
  "abstract_shown": true,
  "affiliations": [
    "Department of Surgery, Surgery Bitenc, Ljubljana, Slovenia.",
    "Faculty of Medicine, University of Ljubljana, Ljubljana, Slovenia.",
    "Faculty of Computer and Information Science, University of Ljubljana, Ljubljana, Slovenia.",
    "Department of Infectious Diseases, University Medical Centre Ljubljana, Ljubljana, Slovenia.",
    "Laboratory for Respiratory Microbiology, University Clinic Golnik, Golnik, Slovenia.",
    "Department of Internistic Oncology, University Clinic Golnik, Golnik, Slovenia."
  ],
  "article_type": "research article",
  "arxiv": null,
  "author_total": 10,
  "authors": [
    {
      "affs": [
        0,
        1
      ],
      "name": "Sabrina Petrovic",
      "orcid": "0000-0002-7015-764X"
    },
    {
      "affs": [
        2
      ],
      "name": "Tilen Gabršček"
    },
    {
      "affs": [
        3
      ],
      "name": "Bojana Beovic"
    },
    {
      "affs": [
        4
      ],
      "name": "Viktorija Tomič"
    },
    {
      "affs": [
        0
      ],
      "name": "Marko Bitenc"
    },
    {
      "affs": [
        5
      ],
      "name": "Ales Rozman"
    },
    {
      "affs": [
        5
      ],
      "name": "Mateja Marc Malovrh"
    },
    {
      "affs": [
        5
      ],
      "name": "Vladimir Dimitric"
    },
    {
      "affs": [
        0
      ],
      "name": "Tomaz Jensterle"
    },
    {
      "affs": [
        2
      ],
      "name": "Aleksander Sadikov"
    }
  ],
  "bibtex": "https://research.draconitic.com/paper/779kx1zt60fns.bib",
  "cited_by": 0,
  "doi": "10.21037/jtd-2026-1970",
  "fulltext_url": "https://europepmc.org/articles/PMC13740757",
  "id": "779kx1zt60fns",
  "issns": [
    "2072-1439",
    "2077-6624"
  ],
  "landing_url": "https://europepmc.org/article/MED/42996701",
  "language": "eng",
  "licence": "CC-BY-NC-ND",
  "licence_label": "CC BY-NC-ND",
  "licence_source": "article",
  "licence_url": "https://creativecommons.org/licenses/by-nc-nd/4.0/",
  "metadata_licence": null,
  "native_subjects": [
    [
      "openalex",
      "2740|Lung Cancer Diagnosis and Treatment"
    ]
  ],
  "openalex": "W7224095503",
  "pdf_url": "https://europepmc.org/articles/PMC13740757?pdf=render",
  "pmcid": "PMC13740757",
  "pmid": "42996701",
  "published": "2026-10-27",
  "publisher": null,
  "ris": "https://research.draconitic.com/paper/779kx1zt60fns.ris",
  "sources": [
    {
      "first_seen": "2026-11-09T15:20:34Z",
      "native_id": "MED:42996701",
      "source": "europepmc",
      "url": "https://europepmc.org/article/MED/42996701"
    }
  ],
  "subjects": [
    {
      "field": "medicine",
      "origin": "openalex:2740|Lung Cancer Diagnosis and Treatment",
      "subfield": "general"
    }
  ],
  "title": "From risk factors to individualized prediction: development and internal validation of a machine learning model for early identification of postoperative pneumonia after lung cancer surgery.",
  "title_text": "From risk factors to individualized prediction: development and internal validation of a machine learning model for early identification of postoperative pneumonia after lung cancer surgery.",
  "type": "peer-reviewed",
  "updated_at": "2026-11-09T15:20:34Z",
  "url": "https://research.draconitic.com/paper/779kx1zt60fns",
  "venue": "Journal of thoracic disease",
  "versions": []
}