BPG is committed to discovery and dissemination of knowledge
Retrospective Cohort Study
Copyright: ©Author(s) 2026.
World J Gastrointest Surg. Nov 27, 2026; 18(11): 123786
Published online Nov 27, 2026. doi: 10.4240/wjgs.123786
Table 1 Cohort partition and analytical role
Cohort
Patients (n)
Events (n)
Non-events (n)
Event rate (%)
Analytical role
Overall analytic cohort3008221827.3Source population for development and internal validation
Development cohort2115815327.5Repeated nested-CV pipeline comparison and selection; full-development fitting of the selected pipeline; OOF threshold derivation
Validation cohort89246527.0Untouched until one-time evaluation of the locked model and threshold
Table 2 Clinically relevant characteristics according to residual-stone status, n (%)/median (interquartile range)
Item
Overall (n = 300)
Non-residual stone group (n = 218)
Residual stone group (n = 82)
P value
Baseline characteristics
Age (years)58.00 (51.00-66.00) 58.00 (52.00-66.00) 56.50 (50.00-65.00)0.401
Sex0.428
Male101 (33.67) 70 (32.11) 31 (37.80)
Female199 (66.33) 148 (67.89) 51 (62.20)
BMI22.04 (19.94-24.22) 22.22 (19.98-24.41) 21.34 (19.55-23.56)0.195
Symptoms
Abdominal pain 229 (76.33) 161 (73.85) 68 (82.93) 0.135
Nausea and vomiting 71 (23.67) 46 (21.10) 25 (30.49) 0.121
Fever 72 (24.00) 46 (21.10) 26 (31.71) 0.078
Jaundice 27 (9.00) 19 (8.72) 8 (9.76) 0.957
HBV infection34 (11.33) 23 (10.55) 11 (13.41) 0.622
Diabetes 43 (14.33) 24 (11.01) 19 (23.17) 0.013
Hypertension 49 (16.33) 39 (17.89) 10 (12.20) 0.311
Previous surgical history
Cholecystectomy 114 (38.00) 77 (35.32) 37 (45.12) 0.154
Choledochoscopy64 (21.33) 45 (20.64) 19 (23.17) 0.750
Cholangioenterostomy 19 (6.33) 14 (6.42) 5 (6.10) 1.000
Partial hepatectomy 14 (4.67) 8 (3.67) 6 (7.32) 0.304
Stone classification10.289
Type I 34 (11.33) 28 (12.84) 6 (7.32)
Type IIa 54 (18.00) 39 (17.89) 15 (18.29)
Type IIb 48 (16.00) 39 (17.89) 9 (10.98)
Type IIc10 (3.33) 7 (3.21) 3 (3.66)
Type E154 (51.33) 105 (48.17) 49 (59.76)
Disease duration (months)1.50 (0.50-12.00) 1.50 (0.50-12.00) 1.50 (0.50-21.00) 0.625
Imaging
Gallstones77 (25.67)58 (26.61)19 (23.17)0.646
Cholangitis117 (39.00)79 (36.24)38 (46.34)0.143
Liver abscess44 (14.67)27 (12.39)17 (20.73)0.101
Liver atrophy104 (34.67)74 (33.94)30 (36.59)0.770
Liver cirrhosis23 (7.67)12 (5.50)11 (13.41)0.040
Biliary stricture79 (26.33)33 (23.24)46 (29.11)0.307
Biliary dilation282 (94.00)205 (94.04)77 (93.90)1.000
Stone location< 0.001
Unilateral225 (75.00)183 (83.94)42 (51.22)
Bilateral75 (25.00)35 (16.06)40 (48.78)
Intraoperative characteristics
Surgical method0.486
OH142 (47.33)100 (45.87)42 (51.22)
LH158 (52.67)118 (54.13)40 (48.78)
Operative time (minutes)295.00 (230.75-335.00)280.00 (219.25-322.75)335.00 (305.50-404.00)< 0.001
Intraoperative blood loss (mL)300.00 (200.00-500.00)300.00 (200.00-500.00)400.00 (200.00-600.00)0.009
Intraoperative blood transfusion26 (8.67)17 (7.80)9 (10.98)0.521
ASA classification0.505
I205 (68.33)146 (66.97)59 (71.95)
II93 (31.00)71 (32.57)22 (26.83)
III2 (0.67)1 (0.46)1 (1.22)
Number of pringle maneuvers0.220
≤ 3215 (71.67)161 (73.85)54 (65.85)
> 385 (28.33)57 (26.15)28 (34.15)
Liver resection extent0.202
Left158 (52.67)118 (54.13)40 (48.78)
Left lateral71 (23.67)55 (25.23)16 (19.51)
Right34 (11.33)20 (9.17)14 (17.07)
Right posterior15 (5.00)8 (3.67)7 (8.54)
Left medial lobe + right anterior5 (1.67)4 (1.83)1 (1.22)
Right anterior3 (1.00)3 (1.38)0 (0.00)
Others214 (4.67)10 (4.59)4 (4.88)
Other related procedures
Cholecystectomy136 (45.33)97 (44.50)39 (47.56)0.730
Choledochoenterostomy90 (30.00)61 (27.98)29 (35.37)0.270
T-tube drainage210 (70.00)168 (77.06)42 (51.22)< 0.001
Postoperative complications
Anastomotic stenosis30 (10.00)16 (7.34)14 (17.07)0.022
Postoperative biliary stricture56 (18.67)20 (9.17)36 (43.90)< 0.001
Abdominal infection23 (7.67)17 (7.80)6 (7.32)1.000
Pulmonary infection93 (31.00)71 (32.57)22 (26.83)0.413
Incision infection12 (4.00)7 (3.21)5 (6.10)0.420
Abdominal hemorrhage8 (2.67)5 (2.29)3 (3.66)0.801
Intestinal obstruction6 (2.00)3 (1.38)3 (3.66)0.426
Positive pathogen culture
Bile57 (19.00)32 (14.68)25 (30.49)0.003
Peritoneal drainage fluid27 (9.00)14 (6.42)13 (15.85)0.020
Blood32 (10.67)21 (9.63)11 (13.41)0.462
Bile leakage38 (12.67)16 (7.34)22 (26.83)< 0.001
Intestinal leakage11 (3.67)4 (1.83)7 (8.54)0.016
Table 3 Comparative performance of the 12 candidate models based on development-cohort out-of-fold predictions
Candidate algorithm
AUC
Brier score
Log loss
Calibration intercept
Calibration slope
LASSO-LR0.8490.1380.4320.0221.748
XGBoost0.8170.1530.4690.2270.705
GBM0.8130.1500.4570.0760.938
RF0.8030.1540.4720.0161.085
CatBoost0.8010.1670.5180.5100.589
LDA0.7960.1710.5650.1220.434
NB0.7880.1870.6890.9370.334
RBF-SVM0.7850.1580.481-0.0550.939
PLSR0.7840.1750.535-0.5812.237
LightGBM0.7800.1830.6790.8550.338
ANN0.7570.1720.5680.0470.475
k-NN0.7430.1800.5960.7230.709
Table 4 Performance of the least absolute shrinkage and selection operator-logistic regression model in development and held-out validation cohorts
Metric
Development OOF estimate (95%CI)
Held-out validation estimate (95%CI)
AUC0.849 (0.794-0.904)0.877 (0.807-0.947)
Brier score0.138 (0.113-0.163)0.134 (0.098-0.171)
Log loss0.432 (0.375-0.492)0.417 (0.335-0.499)
Calibration intercept0.022 (-0.288 to 0.318)0.006 (-0.543 to 0.467)
Calibration slope1.748 (1.365-2.315)1.939 (1.353-3.107)
Table 5 Classification performance at the locked threshold of 0.270
Metric
Development OOF (95%CI)
Held-out validation (95%CI)
Sensitivity0.776 (0.661-0.882)0.875 (0.727-1.000)
Specificity0.784 (0.715-0.845)0.785 (0.677-0.879)
PPV0.577 (0.468-0.688)0.600 (0.440-0.759)
NPV0.902 (0.846-0.951)0.944 (0.873-1.000)
Accuracy0.782 (0.725-0.839)0.809 (0.719-0.888)
F1 score0.662 (0.563-0.750)0.712 (0.571-0.833)
Youden index0.560 (0.433-0.683)0.660 (0.470-0.820)


Write to the Help Desk