Patient characteristics
A total of 302 retrospectively collected patients were included, consisting of a development cohort (n = 200) and a subsequent same-center temporal validation cohort (n = 102). Overall, 64 patients (21.2%) developed PPCs. In the combined cohort, the mean age was 60.3 ± 10.3 years, and 166 patients (55.0%) were male. Compared with the non-PPC group, patients with PPCs were older, were less frequently male, had a higher prevalence of smoking history, and had lower mean FEV1 % predicted (Table 1 A).
| A. Overall cohort |
| Variable | Total
(n = 302) | PPC group
(n = 64) | Non-PPC group (n = 238) | P value |
| Age (years), mean ± SD | 60.3 ± 10.3 | 65.3 ± 10.3 | 59.0 ± 9.8 | <0.001 |
| Male sex, n (%) | 166 (55.0) | 28 (43.8) | 138 (58.0) | 0.042 |
| BMI (kg/m²), mean ± SD | 24.7 ± 3.8 | 24.4 ± 3.3 | 24.8 ± 3.9 | 0.439 |
| Smoking history, n (%) | 130 (43.0) | 40 (62.5) | 90 (37.8) | <0.001 |
| COPD, n (%) | 58 (19.2) | 17 (26.6) | 41 (17.2) | 0.092 |
| ASA physical status ≥III, n (%) | 81 (26.8) | 20 (31.3) | 61 (25.6) | 0.368 |
| FEV₁ (% predicted), mean ± SD | 74.9 ± 11.5 | 71.6 ± 10.8 | 75.8 ± 11.5 | 0.007 |
| B. Development cohort |
| Variable | Total (n = 200) | PPC group
(n = 44) | Non-PPC group (n = 156) | P value |
| Age (years), mean ± SD | 60.1 ± 10.4 | 64.9 ± 10.1 | 58.8 ± 10.1 | 0.001 |
| Age ≥65 years, n (%) | 60 (30.0) | 22 (50.0) | 38 (24.4) | 0.001 |
| Male sex, n (%) | 103 (51.5) | 19 (43.2) | 84 (53.8) | 0.211 |
| BMI (kg/m²), mean ± SD | 24.7 ± 3.8 | 24.3 ± 3.4 | 24.8 ± 3.9 | 0.357 |
| Smoking history, n (%) | 90 (45.0) | 27 (61.4) | 63 (40.4) | 0.013 |
| COPD, n (%) | 39 (19.5) | 10 (22.7) | 29 (18.6) | 0.541 |
| ASA physical status ≥III, n (%) | 52 (26.0) | 10 (22.7) | 42 (26.9) | 0.575 |
| FEV₁ (% predicted), mean ± SD | 75.0 ± 11.7 | 72.6 ± 11.4 | 75.7 ± 11.7 | 0.119 |
| C. Temporal validation cohort |
| Variable | Total
(n = 102) |
| Age (years), mean ± SD | 60.7 ± 10.0 |
| Age ≥65 years, n (%) | 37 (36.3) |
| Male sex, n (%) | 63 (61.8) |
| BMI (kg/m²), mean ± SD | 24.6 ± 3.7 |
| Smoking history, n (%) | 40 (39.2) |
| COPD, n (%) | 19 (18.6) |
| ASA physical status ≥III, n (%) | 29 (28.4) |
| FEV₁ (% predicted), mean ± SD | 74.7 ± 11.2 |
Table 1: Baseline demographic and clinical characteristics. Baseline demographic and clinical characteristics are presented for (A) the overall cohort (n = 302), stratified according to the occurrence of postoperative pulmonary complications (PPCs); (B) the development cohort (n = 200); and (C) the temporal validation cohort (n = 102). Continuous variables are presented as mean ± standard deviation (SD) and categorical variables as n (%), as applicable. Between-group comparisons were performed using the statistical tests specified for the respective analyses. PPC, postoperative pulmonary complication; BMI, body mass index; COPD, chronic obstructive pulmonary disease; ASA, American Society of Anesthesiologists; FEV1, forced expiratory volume in 1 s.
Participant flow and missing data
Figure 1 summarizes cohort assembly. A total of 327 patients were screened. Twenty-five patients were excluded: 5 because of conversion to open thoracotomy, 17 because of incomplete clinical or perioperative records required for the prespecified analyses, and 3 because of concurrent major surgical procedures. The final analytic sample comprised 302 patients, with 200 assigned chronologically to the development cohort and 102 to the subsequent same-center temporal validation cohort. Among the 302 included patients, no missing values were present for the 18 variables contained in the final analytic dataset.

Figure 1. Participant flow diagram. Of 327 patients screened for eligibility, 25 were excluded, including 5 patients with conversion to open thoracotomy, 17 with incomplete clinical/perioperative records, and 3 who underwent concurrent major surgical procedures. A total of 302 patients were included in the final analysis and divided chronologically into the development cohort (n = 200; 44 PPC events, 22.0%) and the later-period same-center validation cohort (n = 102; 20 PPC events, 19.6%). No missing values were present for the 18 variables in the final analytic dataset. PPC, postoperative pulmonary complication. Please click here to view a larger version of this figure.
Baseline characteristics were also analyzed separately for the development cohort (n = 200) and the temporal validation cohort (n = 102). In the development cohort, PPCs occurred in 44 patients (22.0%), whereas 156 patients did not develop PPCs. Patients with PPCs were older (64.9 ± 10.1 vs. 58.8 ± 10.1 years, P = 0.001), were more frequently aged ≥65 years (50.0% vs. 24.4%, P = 0.001), and were more likely to have a smoking history (61.4% vs. 40.4%, P = 0.013). Sex, BMI, COPD, ASA class ≥III, and mean FEV1 % predicted did not differ significantly between groups. Detailed characteristics of the development cohort are summarized in Table 1 B, and those of the temporal validation cohort are summarized in Table 1 C.
Surgical data
Across the study population, mean operative time was 183.4 ± 36.4 min, mean anesthesia time was 222.6 ± 38.1 min, mean blood loss was 143.9 ± 63.5 mL, minimum postoperative SpO₂ was 91.2 ± 3.5%, and hospital stay was 6.6 ± 2.3 days. Operative time was longer in the PPC group than in the non-PPC group (190.8 ± 30.5 vs. 181.4 ± 37.6 min, P = 0.039), whereas the other perioperative variables did not differ significantly (Table 2).
| Parameter | Total
(n = 302) | PPC group
(n = 64) | Non-PPC group (n = 238) | P value |
| Operative time (min), mean ± SD | 183.4 ± 36.4 | 190.8 ± 30.5 | 181.4 ± 37.6 | 0.039 |
| Anesthesia time (min), mean ± SD | 222.6 ± 38.1 | 229.4 ± 33.8 | 220.8 ± 39.0 | 0.083 |
| Blood loss (mL), mean ± SD | 143.9 ± 63.5 | 146.0 ± 65.0 | 143.3 ± 63.2 | 0.767 |
| Minimum postoperative SpO₂ (%), mean ± SD | 91.2 ± 3.5 | 90.6 ± 3.9 | 91.3 ± 3.4 | 0.19 |
| Hospital stay (days), mean ± SD | 6.6 ± 2.3 | 6.3 ± 2.2 | 6.7 ± 2.4 | 0.268 |
Table 2: Intraoperative and postoperative variables. Intraoperative and postoperative variables are presented for the overall cohort (n = 302) and according to the occurrence of postoperative pulmonary complications (PPCs). Values are presented as mean ± standard deviation (SD), and comparisons between the PPC and non-PPC groups were performed using Welch’s t-test. SpO₂, peripheral oxygen saturation; PPC, postoperative pulmonary complication.
Incidence and distribution of pulmonary complications
Among the 64 patients with PPCs, respiratory infection was the most common recorded PPC type (22/64, 34.4%), followed by atelectasis (18/64, 28.1%), pleural effusion (12/64, 18.8%), respiratory failure (6/64, 9.4%), pneumothorax (3/64, 4.7%), aspiration pneumonitis (2/64, 3.1%), and bronchospasm (1/64, 1.6%); no persistent air leakage lasting more than 5 postoperative days was recorded. The analytic dataset contained one adjudicated PPC-type entry per PPC patient; therefore, patients were not double counted across categories. The counts totaled 64, and the percentages may total 100.1% because of rounding (Table 3).
| Complication | n (%) of PPC group | Total incidence (%) |
| Respiratory infection | 22 (34.4) | 7.3 |
| Atelectasis | 18 (28.1) | 6 |
| Pleural effusion | 12 (18.8) | 4 |
| Respiratory failure | 6 (9.4) | 2 |
| Pneumothorax | 3 (4.7) | 1 |
| Aspiration pneumonitis | 2 (3.1) | 0.7 |
| Bronchospasm | 1 (1.6) | 0.3 |
| Persistent air leakage | 0 (0.0) | 0 |
Table 3: Spectrum of postoperative pulmonary complications. The distribution of postoperative pulmonary complications (PPCs) is shown among the 64 patients classified as having a PPC and relative to the overall cohort of 302 patients. Each PPC case was assigned one primary PPC category in the analytic dataset; therefore, patients were not double counted across categories. Percentages in the PPC group were calculated using 64 PPC cases as the denominator, whereas total incidence percentages were calculated using all 302 patients as the denominator. PPC-category percentages may sum to 100.1% because of rounding. Persistent air leakage was defined as air leakage lasting more than 5 postoperative days.
Risk factor analysis
The three-variable logistic prediction model is summarized in Table 4. When age ≥65 years, smoking history, and FEV1 < 70% predicted were fitted together, age ≥65 years was significantly associated with PPCs (OR 2.72, 95% CI 1.33–5.56, P = 0.006), whereas smoking history (OR 1.87, 95% CI 0.91–3.82, P = 0.087) and FEV1 < 70% predicted (OR 1.54, 95% CI 0.76–3.15, P = 0.232) showed positive but non-significant associations. This three-variable model generated the predicted probabilities used for the model-performance analyses in Table 5 and the ROC analyses.
| Predictor | β coefficient | SE | OR | 95% CI for OR | P value |
| Intercept | −2.1114 | 0.3239 | — | — | <0.001 |
| Age ≥65 years | 1.0009 | 0.3649 | 2.72 | 1.33–5.56 | 0.006 |
| Smoking history | 0.625 | 0.3648 | 1.87 | 0.91–3.82 | 0.087 |
| FEV₁ <70% predicted | 0.435 | 0.3639 | 1.54 | 0.76–3.15 | 0.232 |
Table 4: Logistic regression estimates for the three-variable prediction model in the development cohort. The final prediction model was fitted in the development cohort (n = 200) with age ≥ 65 years, smoking history, and FEV1 < 70% predicted entered simultaneously. Each predictor was coded as 1 when present and 0 when absent. The reported β coefficients, including the intercept, define the final logistic regression prediction equation. OR, odds ratio; CI, confidence interval; SE, standard error; FEV1, forced expiratory volume in 1 s.
| Cohort | AUC (95% CI) | Sensitivity (%) | Specificity (%) | Hosmer–Lemeshow P value | Calibration intercept | Calibration slope |
| Development (n = 200) | 0.69 (0.60–0.78) | 70.5 | 67.3 | 0.49 | 0 | 1 |
| Temporal validation (n = 102) | 0.85 (0.76–0.92) | 90 | 67.1 | 0.059 | 0.97 | 2.09 |
Table 5: Predictive performance of the final three-variable model. Model performance is presented for the development cohort (n = 200) and the subsequent same-center temporal validation cohort (n = 102). Discrimination was assessed using the area under the receiver operating characteristic curve (AUC), with 95% confidence intervals (CIs) obtained by bootstrap resampling. Sensitivity and specificity were calculated using the development-cohort Youden-optimal probability threshold of 0.2478. Calibration was assessed using the Hosmer–Lemeshow goodness-of-fit test and the calibration intercept and slope, which were estimated by logistic recalibration of observed postoperative pulmonary complication (PPC) status on the model linear predictor. AUC, area under the receiver operating characteristic curve; CI, confidence interval; PPC, postoperative pulmonary complication.
Multivariable logistic regression model
The broader development-cohort multivariable risk-factor analysis is presented in Table 6. Variables with univariable P < 0.25 were entered into the multivariable model. Age ≥65 years had an adjusted OR of 2.65 (95% CI 1.29–5.44, P = 0.008), smoking history had an adjusted OR of 1.91 (95% CI 0.93–3.91, P = 0.079), and FEV1 < 70% predicted had an adjusted OR of 1.51 (95% CI 0.74–3.10, P = 0.259).
| Variable | Univariable OR
(95% CI) | P value | Entered model | Multivariable OR
(95% CI) | P value | Final status |
| Age ≥65 years | 3.11 (1.55–6.22) | 0.001 | Yes | 2.65 (1.29–5.44) | 0.008 | Retained |
| Smoking history | 2.34 (1.18–4.66) | 0.015 | Yes | 1.91 (0.93–3.91) | 0.079 | Not significant after adjustment |
| FEV₁ <70% predicted | 1.66 (0.84–3.29) | 0.148 | Yes | 1.51 (0.74–3.10) | 0.259 | Not significant after adjustment |
| Male sex | 0.65 (0.33–1.28) | 0.213 | Yes | 0.68 (0.34–1.37) | 0.278 | Not significant after adjustment |
| BMI ≥25 kg/m² | 0.85 (0.43–1.65) | 0.623 | No | — | — | Not entered |
| COPD | 1.29 (0.57–2.90) | 0.541 | No | — | — | Not entered |
Table 6: Univariable and multivariable logistic regression analysis for postoperative pulmonary complications in the development cohort. Univariable and broader multivariable risk-factor analyses were performed in the development cohort (n = 200). Variables with a univariable P value < 0.25 were entered into the multivariable logistic regression model. Age ≥ 65 years, smoking history, FEV1 < 70% predicted, and male sex met this criterion and were entered into the broader multivariable model. Age ≥ 65 years remained statistically significant after adjustment, whereas smoking history, FEV1 < 70% predicted, and male sex did not. This broader explanatory risk-factor analysis was distinct from the dedicated three-variable prediction model reported in Table 4. PPC, postoperative pulmonary complication; OR, odds ratio; CI, confidence interval; FEV1, forced expiratory volume in 1 s; BMI, body mass index; COPD, chronic obstructive pulmonary disease.
Age ≥65 years was the only one of these three variables that remained statistically significant after adjustment. Smoking history and FEV1 < 70% predicted were retained as components of the three-variable prediction model evaluated in Table 5 and are therefore described as model predictors rather than statistically significant independent predictors. The adjusted ORs and 95% CIs for these three model predictors are illustrated in Figure 2.

Figure 2. Forest plot of adjusted odds ratios for postoperative pulmonary complications in the development cohort. Adjusted odds ratios (ORs) and 95% confidence intervals (CIs) are shown for age ≥65 years, smoking history, and FEV1 < 70% predicted from the multivariable logistic regression analysis. Points represent adjusted ORs, and horizontal lines represent 95% CIs. The vertical reference line at OR = 1 indicates no association. Age ≥ 65 years was statistically significant after adjustment (OR, 2.65; 95% CI, 1.29–5.44; P = 0.008), whereas smoking history (OR, 1.91; 95% CI, 0.93–3.91; P = 0.079) and FEV1 < 70% predicted (OR, 1.51; 95% CI, 0.74–3.10; P = 0.259) were not statistically significant. FEV1, forced expiratory volume in 1 s; OR, odds ratio; CI, confidence interval. Please click here to view a larger version of this figure.
Nomogram construction and validation
A three-variable nomogram-based prediction model incorporating age ≥65 years, smoking history, and FEV1 < 70% predicted was fitted for individualized estimation of PPC risk following robotic-assisted anatomical segmentectomy. The coefficients from this model are reported in Table 4, and its predictive performance is summarized in Table 5. Smoking history and FEV1 < 70% predicted were not statistically significant in either the three-variable prediction model or the broader multivariable risk-factor analysis in Table 6.
Model discrimination was modest in the development cohort and higher in the temporal validation cohort. The AUC was 0.69 (95% CI 0.60–0.78) in the development cohort and 0.85 (95% CI 0.76–0.92) in the temporal validation cohort. Sensitivity and specificity were 70.5% and 67.3%, respectively, in the development cohort and 90.0% and 67.1%, respectively, in the temporal validation cohort. The corresponding Hosmer–Lemeshow P values were 0.490 and 0.059, and the calibration slopes were 1.00 and 2.09, respectively (Table 5). The corresponding ROC curves are shown in Figure 3 and Figure 4, and the overall-cohort ROC curve is shown in Figure 5. The nomogram for individualized estimation of PPC risk is shown in Figure 6.

Figure 3. Receiver operating characteristic curve for the development cohort. The receiver operating characteristic (ROC) curve shows the discrimination of the final three-variable prediction model in the development cohort. The area under the curve (AUC) was 0.69 (95% CI, 0.60–0.78), with a sensitivity of 70.5% and specificity of 67.3%. The diagonal reference line represents discrimination expected by chance. AUC, area under the curve; CI, confidence interval; ROC, receiver operating characteristic. Please click here to view a larger version of this figure.

Figure 4. Receiver operating characteristic curve for the later-period same-center validation cohort. The receiver operating characteristic (ROC) curve shows the discrimination of the final three-variable prediction model in the later-period same-center validation cohort. The area under the curve (AUC) was 0.85 (95% CI, 0.76–0.92), with a sensitivity of 90.0% and specificity of 67.1%. The diagonal reference line represents discrimination expected by chance. AUC, area under the curve; CI, confidence interval; ROC, receiver operating characteristic. Please click here to view a larger version of this figure.

Figure 5. Receiver operating characteristic curve for the overall cohort. The receiver operating characteristic (ROC) curve shows the discrimination of the final three-variable prediction model in the overall cohort (n = 302). The area under the curve (AUC) was 0.74 (95% CI, 0.67–0.80), with a sensitivity of 76.6% and specificity of 67.2%. The diagonal reference line represents discrimination expected by chance. AUC, area under the curve; CI, confidence interval; ROC, receiver operating characteristic. Please click here to view a larger version of this figure.

Figure 6. Nomogram for predicting postoperative pulmonary complications. The nomogram was derived from the final three-variable logistic regression model fitted in the development cohort and incorporated age ≥ 65 years, smoking history, and FEV1 < 70% predicted. Points assigned to each predictor are summed to obtain the total points, which correspond to the estimated probability of a postoperative pulmonary complication. FEV1, forced expiratory volume in 1 s; PPC, postoperative pulmonary complication. Please click here to view a larger version of this figure.
Model performance
Model performance in the development cohort:
The predictive performance of the nomogram was first evaluated in the development cohort (n = 200).
Discrimination: The model demonstrated modest discriminative ability in the development cohort, with an AUC of 0.69 (95% CI 0.60–0.78). Using the optimal cutoff determined by the Youden index, the model achieved a sensitivity of 70.5% and a specificity of 67.3%. The development-cohort ROC curve is shown in Figure 3, and the corresponding calibration plot is shown in Figure 7A. The performance estimates are summarized in Table 5.

Figure 7. Calibration plots for the final three-variable prediction model. Calibration of the final model is shown for (A) the development cohort and (B) the later-period same-center validation cohort. The x-axis represents model-predicted probability, and the y-axis represents observed postoperative pulmonary complication (PPC) probability. Points represent observed PPC proportions for groups sharing the same model-predicted probability, and the diagonal reference line represents perfect calibration. PPC, postoperative pulmonary complication. Please click here to view a larger version of this figure.
Calibration: Calibration assessment in the development cohort showed a calibration slope of 1.00 and a Hosmer–Lemeshow goodness-of-fit P value of 0.490. The non-significant Hosmer–Lemeshow test provided no evidence of gross lack of fit in the development cohort.
Model performance in the temporal validation cohort:
The final model derived from the earlier 200-patient development cohort was applied, without re-estimation of regression coefficients, to the subsequent same-center temporal validation cohort (n = 102).
Discrimination: The model showed higher discrimination in the temporal validation cohort than in the development cohort, with an AUC of 0.85 (95% CI 0.76–0.92). The ROC curve for the temporal validation cohort is shown in Figure 4. Figure 5 presents the ROC curve for the overall cohort, with an AUC of 0.74 (95% CI 0.67–0.80).
Calibration: Calibration assessment in the temporal validation cohort showed a calibration slope of 2.09 and a Hosmer–Lemeshow goodness-of-fit P value of 0.059. The Hosmer–Lemeshow P value did not indicate statistically significant lack of fit; however, the calibration slope of 2.09 indicated less ideal calibration in the temporal validation cohort than in the development cohort and should be interpreted cautiously. The corresponding calibration plot is shown in Figure 7B.
Persistent air leak
No cases of persistent air leakage lasting more than 5 days were observed in either the development cohort or the temporal validation cohort.
Final prediction model
The final prediction model incorporated age ≥65 years, smoking history, and FEV1 < 70% predicted. The fitted intercept and coefficients were derived from the three-variable prediction model summarized in Table 4, and the resulting predicted probabilities were used for the model-performance analyses reported in Table 5. In the broader development-cohort multivariable risk-factor analysis (Table 6), age ≥ 65 years remained statistically significant after adjustment (adjusted OR 2.65, 95% CI 1.29–5.44, P = 0.008), whereas smoking history and FEV1 < 70% predicted had adjusted ORs greater than 1 but did not reach statistical significance. Male sex also did not remain statistically significant after adjustment, whereas BMI ≥ 25 kg/m2 and COPD were not entered into the multivariable model according to Table 6. Clinical use of the prediction model requires external validation before implementation.
Data Availability:
The de-identified participant-level analytic dataset used in this study is provided as Supplementary File 1. The workbook contains the complete 302-patient analytic dataset used for the development and temporal validation cohorts, including predictor variables, perioperative variables, postoperative pulmonary complication status, PPC type, and a variable dictionary describing the principal binary variables and their coding. No missing values were present among the 18 variables in the final analytic dataset. Data supporting the reported tables and model analyses can therefore be reproduced from the supplied participant-level dataset.
Supplementary File 1. Participant-level analytic dataset and variable dictionary. The workbook contains the de-identified analytic dataset used for the study and an accompanying variable dictionary. The Data worksheet includes 302 patients, comprising 200 patients in the development cohort and 102 patients in the temporal validation cohort, with 18 recorded variables including demographic characteristics, pulmonary function, perioperative variables, postoperative pulmonary complication status, and PPC type. A total of 64 patients were classified as having a PPC. No missing values were present among the 18 variables in the analytic dataset. The Variable_Dictionary worksheet provides definitions and binary coding for age ≥65 years, smoking history, chronic obstructive pulmonary disease, ASA class ≥III, FEV₁ <70% predicted, and PPC status. ASA, American Society of Anesthesiologists; FEV₁, forced expiratory volume in 1 second; PPC, postoperative pulmonary complication. Please click here to download this file.