ORIGINAL RESEARCH article

Front. Oncol., 08 September 2025

Sec. Gastrointestinal Cancers: Gastric and Esophageal Cancers

Volume 15 - 2025 | https://doi.org/10.3389/fonc.2025.1606938

Development and validation of a machine learning model to predict postoperative complications following radical gastrectomy for gastric cancer

  • 1. Department of Gastrointestinal Surgery, Clinical Oncology School of Fujian Medical University and Fujian Cancer Hospital, Fuzhou, China

  • 2. Department of Anesthesiology, Clinical Oncology School of Fujian Medical University and Fujian Cancer Hospital, Fuzhou, China

  • 3. Department of Gastrointestinal Surgery, The First Hospital of Putian City, Putian, China

Abstract

Objective:

Postoperative complications significantly adversely affect recovery and prognosis following radical gastrectomy for gastric cancer. We developed and validated machine learning (ML) models to predict these complications and constructed a clinically applicable dynamic nomogram.

Methods:

Using a prospectively maintained database, we conducted a retrospective analysis of 1,486 patients from Fujian Cancer Hospital (training cohort) and 498 from the First Hospital of Putian City (validation cohort). Feature selection integrated Lasso regression, the Boruta algorithm, and Recursive Feature Elimination (RFE). Six ML models were developed and evaluated: TreeBagger (TB), Random Forest (RF), Support Vector Machine (SVM), Extreme Gradient Boosting (XGBoost), Gaussian Naïve Bayes (GNB), and Artificial Neural Network (ANN). The significant predictors identified were incorporated into a logistic regression model to determine independent risk factors, which then formed the basis of a dynamic nomogram deployed as an interactive web application for clinical use.

Results:

RF demonstrated numerically superior performance among the evaluated models in both cohorts. Independent risk factors included age, BMI, diabetes mellitus, ASA grade, operative time, and surgical approach. The dynamic nomogram achieved AUCs of 0.805 (training) and 0.856 (validation), with calibration curves and decision curve analysis confirming its reliability. DeLong’s test revealed no significant difference in AUC between the RF model and nomogram in either cohort (training: Z = -0.385, p = 0.701; validation: Z = -1.756, p = 0.058).

Conclusion:

While the RF model provided optimal predictive accuracy among ML algorithms, the interpretable nomogram offers comparable discrimination and clinical accessibility. Both tools facilitate the early identification of high-risk patients, enabling personalized interventions to optimize postoperative recovery.

Introduction

Gastric cancer ranks as the fifth most common cancer globally and is the fourth leading cause of cancer-related death (1). Surgery remains the primary curative treatment; however, it poses significant challenges due to the complex anatomy of the stomach, its rich vascular supply, and the technical difficulty of lymph node dissection. Furthermore, reconstruction of the digestive tract alters normal anatomy, increasing both the likelihood and complexity of postoperative complications (2, 3).

Although perioperative mortality rates for gastric cancer have declined in recent decades, the incidence of postoperative complications remains substantial, ranging from 11.0% to 40.1% (4–8). These complications can significantly delay recovery, prolong hospitalization, increase healthcare costs, diminish quality of life, and adversely impact long-term survival (9, 10). Consequently, accurate preoperative risk assessment and early intervention represent a critical strategy for mitigating postoperative complications.

Machine learning (ML), a subset of artificial intelligence, leverages algorithms to uncover complex relationships within large datasets. Within healthcare, ML is increasingly employed to predict disease outcomes, personalize treatments, and enhance clinical decision-making, ultimately aiming to improve patient outcomes and optimize healthcare delivery (11, 12). However, existing predictive tools face significant limitations. Traditional scoring systems often oversimplify non-linear relationships, while many ML-based models exhibit methodological shortcomings, including reliance on small single-center cohorts, lack of external validation, and suboptimal handling of high-dimensional data during feature selection (13–17). Recent efforts to enhance clinical utility focus on ensemble methods (e.g., Random Forest, XGBoost) and interpretable nomograms. Nevertheless, comprehensive comparisons of multiple algorithms integrated with robust hybrid feature selection strategies remain lacking specifically for predicting complications following gastric cancer surgery. To address these critical gaps, we developed and validated six distinct ML models using a large multicenter cohort. Our approach integrates hybrid feature selection, rigorous external validation, and the development of a clinically accessible dynamic nomogram for practical implementation.

Methods

Patients

We performed a retrospective analysis using data from a prospectively maintained database. The analysis included 1,486 gastric cancer patients who underwent radical gastrectomy at Fujian Cancer Hospital between January 2020 and March 2024, constituting the training cohort. Inclusion criteria were: (1) age ≥ 18 years; (2) histologically confirmed gastric adenocarcinoma; and (3) radical gastrectomy. Exclusion criteria comprised: (1) incomplete clinical or pathological data; (2) emergency surgery; (3) intraoperative peritoneal dissemination; and (4) receipt of neoadjuvant chemotherapy with immunotherapy (NCI; excluded due to limited case numbers precluding meaningful subgroup analysis). An independent cohort of 498 patients from the First Hospital of Putian City, meeting identical inclusion criteria, served as the validation cohort. Figure 1 illustrates the patient selection flowchart.

Figure 1

Definitions and outcome measures

The severity of postoperative complications was assessed using the Clavien-Dindo classification system (18, 19), the standard grading system for surgical complications.

Age ≥ 65 was used as the threshold to define elderly patients, in line with previous clinical conventions (20, 21). Anemia was defined as hemoglobin <110 g/L in females and <120 g/L in males (22). Preoperative hypoalbuminemia was defined as serum albumin <35 g/L, a validated threshold associated with increased complication risk (23–25). and this threshold is commonly regarded as indicative of hypoalbuminemia. Body mass index (BMI) was categorized per WHO criteria: BMI < 18.5 kg/m² is underweight, BMI between 18.5 and 24.9 kg/m² is normal weight, and BMI ≥ 25 kg/m² is overweight (26–28). Tumor location is categorized into three regions—upper, middle, and lower third—based on the Japanese Gastric Cancer Treatment Guidelines (29).

Implementation of machine learning models

All six models were implemented in Python 3.10 using scikit-learn (v1.3.0) and XGBoost (v1.7.5) with the following specifications:

TreeBagger (TB): 500 decision trees, bootstrap sampling, Gini impurity for splitting, and default scikit-learn parameters for other settings.

Random Forest (RF): 500 trees, Gini impurity criterion, max depth=10, min samples split=5.

Support Vector Machine (SVM): Radial basis function kernel (C = 1.0, gamma=‘scale’).

XGBoost: 300 estimators, learning rate=0.05, max depth=4, subsample=0.8.

Gaussian Naïve Bayes (GNB): Default scikit-learn parameters (priors adjusted to class distribution).

Artificial Neural Network (ANN): Single hidden layer (32 neurons), ReLU activation, Adam optimizer (learning rate=0.001).

All models underwent 5-fold stratified cross-validation on the training cohort.

Statistical analysis

Categorical variables are presented as frequencies (percentages), with between-group comparisons using chi-square tests. Continuous variables are expressed as mean ± standard deviation (SD) or median [interquartile range, IQR] based on distribution normality, compared using independent t-tests or Mann-Whitney U tests as appropriate. Feature selection identified predictive variables through intersection analysis of three methods: Lasso regression, Boruta algorithm, and Recursive Feature Elimination (RFE). Model performance evaluation included: Receiver operating characteristic (ROC) curves with area under curve (AUC); Calibration curves; Decision curve analysis (DCA). Quantitative metrics: accuracy, sensitivity, specificity, positive predictive value (PPV), negative predictive value (NPV), and F1-score. Statistical significance was defined as P < 0.05.

Results

Patient characteristics and feature selection

In the training cohort, the overall incidence of postoperative complications was 20.5% (304/1,486), with 9.3% (138/1,486) classified as Clavien–Dindo grade ≥ IIIa; in the validation cohort, these rates were 23.9% (119/498) and 11.6% (58/498), respectively (Supplementary Table 1, 2). The specific types and frequencies of postoperative complications are detailed in Table 1. Baseline characteristics were comparable between cohorts except for sex, drinking history, dyslipidemia, and CA19-9 levels (Table 2).

Table 1

Complication TypeTraining cohort (n=1486)Validation cohort (n=498)p
Overall complication304 (20.5)119 (23.9)0.105
Pulmonary infection176 (11.8)59 (11.8)0.998
Surgical incision infection11 (0.7)7 (1.4)0.175
Anastomotic leakage68 (4.6)33 (6.6)0.072
Anastomotic stricture29 (2.0)11 (2.2)0.724
Intestinal obstruction75 (5.0)29 (5.8)0.501
Abdominal infection86 (5.8)34 (6.8)0.399
Hemorrhage27 (1.8)18 (3.6)0.020
Lymphorrhea48 (3.2)11 (2.2)0.246
Urinary tract infection6 (0.4)0 (0)0.156
Other38 (2.6)11 (2.2)0.665

Types and incidence of postoperative complications in the training and validation cohorts.

Table 2

VariableTraining cohort (n=1486)Validation cohort (n=498)p
Age (years)0.471
 <65854 (57.5)277 (55.6)
 ≥65632 (42.5)221 (44.4)
Sex0.018
 Male986 (66.4)359 (72.1)
 Female500 (33.6)139 (27.9)
BMI (kg/m2)0.519
 underweight92 (6.2)38 (7.6)
 normal1017 (68.4)338 (67.9)
 overweight377 (25.4)122 (24.5)
Previous abdominal surgery0.174
 Yes261 (17.6)101 (20.3)
 No1225 (82.4)397 (79.7)
Drinking history0.022
Yes412 (27.7)112 (22.5)
No1074 (72.3)386 (77.5)
Smoking history0.610
 Yes365 (24.6)128 (25.7)
 No1121 (75.4)370 (74.3)
Diabetes mellitus0.284
 Yes1191 (80.1)388 (77.9)
 No295 (19.9)110 (22.1)
Hypertension0.366
 Yes387 (26.0)140 (28.1)
 No1099 (74.0)358 (71.9)
Dyslipidemia0.029
 Yes354 (23.8)143 (28.7)
 No1132 (76.2)355 (71.3)
Tumor location0.296
 Upper-third392 (26.4)146 (29.3)
 Middle-third464 (31.2)159 (31.9)
 Lower-third630 (42.4)193 (38.8)
FEV1/FVC, %, median (IQR)72.00 [69.00, 73.00]72.00 [69.00, 74.00]0.108
Tumor size (cm)0.545
 <5808 (54.4)263 (52.8)
 ≥5678 (45.6)235 (47.2)
ASA grade0.235
 I1050 (70.7)334 (67.1)
 II291 (19.6)104 (20.9)
 III145 (9.8)60 (12.0)
Neoadjuvant chemotherapy0.126
 Yes395 (26.6)150 (30.1)
 No1091 (73.4)348 (69.9)
Multivisceral resection0.399
 Yes86 (5.8)34 (6.8)
 No1400 (94.2)464 (93.2)
Preoperative anemia0.255
 Yes461 (31.0)141 (28.3)
 No1025 (69.0)357 (71.7)
Preoperative hypoalbuminemia0.236
 Yes346 (23.3)129 (25.9)
 No1140 (76.7)369 (74.1)
Preoperative WBC,×109/L, median (IQR)6.50 [5.40, 7.50]6.30 [5.30, 7.30]0.193
Preoperative BUN, mg/dl, median (IQR)6.45 [5.67, 7.34]6.67 [5.75, 7.34]0.323
Preoperative total bilirubin, mg/dl, median (IQR)12.90 [9.90, 16.90]13.50 [10.80, 17.30]0.089
CEA, ng/ml0.243
 <51191 (80.1)387 (77.7)
 ≥5295 (19.9)111 (22.3)
CA19-9, U/ml0.036
  <301270 (85.5)406 (81.5)
 ≥30216 (14.5)92 (18.5)
Surgical approach0.828
 Open437 (29.4)149 (29.9)
 Laparoscopic1049 (70.6)349 (70.1)
Operation time (h)0.604
 <3754 (50.7)246 (49.4)
 ≥3732 (49.3)252 (50.6)
Estimated blood loss (ml)0.505
  <200679 (45.7)219 (44.0)
 ≥200807 (54.3)279 (56.0)
Histological type0.333
 Well/Moderately363 (24.4)111 (22.3)
 Poorly/Undifferentiated1123 (75.6)387 (77.7)
Type of operation0.175
 Distal gastrectomy849 (57.1)307 (61.6)
 Proximal gastrectomy76 (5.1)26 (5.2)
 Total gastrectomy561 (37.8)165 (33.1)
Extent of lymph node dissection0.092
 <D2175 (11.8)45 (9.0)
 ≥ D21311 (88.2)453 (91.0)
Intraoperative blood transfusion0.250
 Yes260 (17.5)76 (15.3)
 No1226 (82.5)422 (84.7)
Reconstruction method0.610
 Intracorporeal155 (10.4)56 (11.2)
 Extracorporeal1331 (89.6)442 (88.8)
Number of removed lymph nodes, mean (SD)33.1 ± 13.032.3 ± 12.60.269
Pathological stage0.587
 I349 (23.5)113 (22.7)
 II251 (16.9)76 (15.3)
 III886 (59.6)309 (62.0)

Comparison of clinicopathological characteristics between training and validation cohorts.

BMI, body mass index; ASA, American society of anesthesiologists classification; WBC, white blood cell; BUN, blood urea nitrogen; CEA, carcinoembryonic antigen; CA19-9, cancer antigen 19-9; IQR, interquartile range; SD, standard deviation.

Through intersection analysis of three feature selection methods (Lasso regression, Boruta algorithm, and RFE), we identified eight factors associated with postoperative complications in the training cohort: age, BMI, diabetes mellitus, ASA grade, neoadjuvant chemotherapy, multivisceral resection, operative time, and surgical approach (Figure 2).

Figure 2

Establishment and comparison of machine learning models

Six distinct ML models (TB, RF, SVM, XGBoost, GNB, ANN) were developed using the training cohort to predict postoperative complications. Model performance was rigorously assessed via five-fold cross-validation. Among the evaluated models, RF demonstrated superior predictive performance in the training cohort across key metrics including AUC, sensitivity, and NPV (Table 3; Supplementary Figure 1; Figures 3A–C). This performance advantage was maintained in the independent validation cohort (Supplementary Table 3; Supplementary Figure 2; Figures 4A–C), establishing RF as the optimal model among the tested algorithms.

Figure 3

Figure 4

Table 3

ModelAUC (95%CI)Accuracy (95%CI)Sensitivity (95%CI)Specificity (95%CI)PPV (95%CI)NPV (95%CI)F1 score (95%CI)
TB0.787
(0.754-0.819)
0.773
(0.731-0.807)
0.674
(0.632-0.711)
0.798
(0.767-0.829)
0.462
(0.433-0.489)
0.905
(0.872-0.938)
0.548
(0.540-0.581)
RF0.827
(0.798-0.857)
0.779
(0.739-0.809)
0.770
(0.738-0.803)
0.781
(0.748-0.814)
0.475
(0.429-0.519)
0.930
(0.894-0.970)
0.588
(0.531-0.628)
SVM0.796
(0.762-0.830)
0.845
(0.803-0.882)
0.622
(0.583-0.672)
0.903
(0.868-0.949)
0.622
(0.573-0.668)
0.903
(0.853-0.942)
0.622
(0.587-0.653)
XGBoost0.711
(0.675-0.747)
0.787
(0.761-0.813)
0.500
(0.437-0.539)
0.860
(0.832-0.895)
0.479
(0.432,0.520)
0.870
(0.834-0.902)
0.490
(0.449-0.528)
GNB0.759
(0.724-0.793)
0.779
(0.748-0.816)
0.628
(0.592-0.661)
0.817
(0.787-0.841)
0.469
(0.428-0.503)
0.895
(0.863-0.923)
0.536
(0.507-0.567)
ANN0.709
(0.675-0.743)
0.680
(0.638-0.710)
0.641
(0.606-0.679)
0.690
(0.653-0.721)
0.348
(0.309-0.397)
0.882
(0.838-0.908)
0.452
(0.421-0.478)

Performance of ML models in training cohort.

Nomogram construction and validation

The eight factors identified via intersection analysis of three feature selection methods (Lasso regression, Boruta algorithm, and RFE) were incorporated into a multivariable logistic regression model to screen for independent risk factors for postoperative complications, which revealed that age, BMI, diabetes mellitus, ASA grade, operative time, and surgical approach were independently associated with postoperative complications (Figure 5). A nomogram and its dynamic version were developed to facilitate clinical application, with the dynamic tool accessible via a web application (https://lzmdoc123456789.shinyapps.io/pcingc) (Figures 6). Internal validation of the nomogram demonstrated excellent calibration, as evidenced by the calibration curve showing close alignment between predicted and observed outcomes.

Figure 5

Figure 6

Additionally, DCA confirmed its clinical utility, with favorable net benefits across threshold probabilities ranging from 0.06 to 0.95 (Figure 7).

Figure 7

External validation was performed using the validation cohort. ROC curve analysis yielded an AUC of 0.856 (95% CI: 0.817-0.895), indicating excellent discriminatory ability. The calibration curve further confirmed the model’s accuracy, with predicted outcomes closely aligning with observed results. Moreover, DCA demonstrated favorable net benefits across a broad range of threshold probabilities (0.04 to 0.97), supporting the nomogram’s clinical value (Figure 8).

Figure 8

Comparison of predictive performance between RF model and nomogram

To compare the optimal ML model (RF) with the nomogram, DeLong’s test was used to analyze their ROC curves. The RF model showed marginally higher AUCs than the nomogram in both cohorts (training: 0.827 vs. 0.805; validation: 0.871 vs. 0.856), but these differences were not statistically significant (training: Z = -0.385, p = 0.701; validation: Z = -1.756, p = 0.058).

Discussion

Postoperative complications following gastric cancer surgery pose substantial threats to patient recovery and long-term survival. These adverse events significantly elevate mortality risk, prolong hospitalization duration, escalate healthcare expenditures, and impair quality of life - particularly concerning for cancer patients requiring adjuvant therapy. Such complications may also compromise functional recovery and nutritional status, creating barriers to timely oncological treatment (30, 31). In this study, the incidence of postoperative complications was 20.5% in the training cohort and 23.9% in the validation cohort, which aligns with findings from previous studies on gastric cancer surgery. Kanda et al. (32) reported a postoperative complication rate of 22.5%. Similarly, a study analyzing 663 gastric cancer patients found that 20.8% experienced postoperative complications (7). Data from the National Clinical Database, which includes over 33,917 Japanese patients, also supports this finding, showing a complication rate of 18.3% (33). However, other studies report higher complication rates. A European observational, retrospective trial indicated that 33% of patients experienced at least one postoperative complication (34), and a randomized controlled trial (JCOG1001) found a complication rate of 34.3% (4). The variation in postoperative complication rates may be attributed to differences in the definition of complications, patient population characteristics (such as age and comorbidities), surgical techniques, the experience of the surgical team, and postoperative care protocols.

ML has proven valuable for improving predictive accuracy in clinical settings (35–37). In the present study, among the six evaluated machine learning algorithms, the RF model showed numerically superior performance, achieving the highest AUC in both cohorts. However, DeLong’s test revealed no statistically significant difference in discriminative ability between the optimal RF model and the logistic regression-based nomogram. This comparable predictive performance, combined with the nomogram’s visual interpretability and user-friendly design, underscores its value as a pragmatic clinical tool. The dynamic nomogram facilitates rapid point-of-care risk stratification without requiring computational expertise, enabling clinicians to intuitively assess risk factors and implement personalized preventive strategies for high-risk patients. Our findings support a dual-model approach: the RF model serves as a high-performance reference standard in settings with adequate computational resources, while the dynamic nomogram offers an immediately deployable alternative with preserved discriminative power. This strategy balances algorithmic performance with real-world applicability across diverse healthcare contexts.

In this study, elderly patients were found to be more prone to postoperative complications. As individuals age, various physiological changes occur, including a decline in organ function, slower wound healing, and a weakened immune response, all of which complicate recovery. Moreover, elderly patients often have multiple comorbidities, which further delay the recovery process. Additionally, aging is frequently associated with sarcopenia, frailty, and a reduction in muscle mass and strength, all of which diminish the body’s ability to tolerate surgical and anesthetic stressors (38–40).

Consistent with previous studies (41–43), our study confirmed overweight as an independent risk factor for postoperative complications. Excess body weight contributes to increased intra-abdominal pressure, leading to impaired tissue oxygenation and impaired wound healing (44). Furthermore, individuals with higher body weight are more likely to develop comorbid conditions (e.g., diabetes mellitus), thereby exacerbating the risk of complications. Additionally, adiposity is associated with a chronic inflammatory state, which may compromise immune function and predispose patients to infections and prolonged inflammation (45). Lastly, overweight patients often undergo longer operative times and more complex surgical procedures—both well-established factors that increase the likelihood of postoperative complications (46).

Our study corroborates previous findings that diabetes mellitus significantly increases the risk of postoperative adverse events (13, 47). Hyperglycemia in diabetic patients impairs immune function by disrupting neutrophil chemotaxis and phagocytosis (48). Elevated blood glucose levels also impair collagen synthesis and extracellular matrix remodeling, both crucial to tissue repair, thereby contributing to poor wound healing (49). Moreover, diabetes is often associated with microvascular changes (e.g., impaired circulation), which can further compromise tissue oxygenation and delay healing (50).

The ASA physical status classification system is a widely utilized tool for evaluating preoperative patient health status (51). In our study, patients classified as ASA III had a higher likelihood of developing adverse postoperative outcomes relative to those with lower ASA grades. Severe comorbidities commonly observed in ASA III patients—such as cardiovascular disease, diabetes, and respiratory disorders—reduce their physiological reserves, thereby impairing tolerance to surgical stress. Furthermore, such patients with severe systemic diseases are at increased risk of infection due to impaired immune function, as these conditions often induce a chronic inflammatory state and impair immune responses (18, 52).

Our study confirmed operative time as an independent risk factor for postoperative complications. Prolonged operative time is frequently linked to more complex surgical procedures, increased tissue trauma, and extended anesthesia exposure—all of which increase the incidence of complications, including infections, bleeding, and delayed recovery (53, 54).

We identified total gastrectomy as a significant risk factor for postoperative complications. Total gastrectomy entails more extensive lymph node dissection and removal of a larger volume of tissue, rendering it a more invasive procedure that often results in greater surgical trauma and a higher risk of postoperative complications. Esophagojejunal anastomosis, a key step in gastrointestinal reconstruction after total gastrectomy, involves deep anastomosis in a confined surgical space, making it both complex and challenging. Specifically, in patients with excessive visceral fat, tension or stretching of the anastomosis may induce serosal tears and bleeding (19, 55).

This study has several limitations. First, despite using a prospectively maintained database, it is a retrospective analysis, and certain parameters (e.g., preoperative nutritional status) that may influence postoperative complications (56–58), were not available. Second, the role of NCI in gastric cancer is under active investigation and has shown promising results (59–61); however, due to the limited number of cases at our center, NCI was excluded from this study. Third, external validation was performed at only one hospital, which could restrict the generalizability of our findings.

Conclusions

This study developed and validated ML models to predict postoperative complications in gastric cancer patients undergoing radical gastrectomy. Among the six evaluated models, RF model demonstrated numerically superior performance, while a logistic regression-based nomogram-incorporating key predictors including age, BMI, diabetes mellitus, ASA grade, operative time, and surgical approach-exhibited comparable discriminative ability and clinical practicability. Both tools facilitate the identification of high-risk patients and can guide clinical decision-making to optimize postoperative outcomes.

Statements

Data availability statement

The original contributions presented in the study are included in the article/Supplementary Material. Further inquiries can be directed to the corresponding author.

Ethics statement

All procedures in this study were conducted in accordance with ethical standards and the principles outlined in the Declaration of Helsinki. The study was approved by the Ethics Committee of Fujian Cancer Hospital. The studies were conducted in accordance with the local legislation and institutional requirements. Due to the retrospective nature of the study and the use of data compiled from electronic medical records, the Ethics Committee waived the requirement for informed consent.

Author contributions

ZL: Conceptualization, Funding acquisition, Investigation, Writing – original draft. MY: Formal analysis, Funding acquisition, Writing – review & editing. HC: Data curation, Formal analysis, Writing – review & editing. SW: Investigation, Writing – review & editing. YL: Investigation, Writing – review & editing. JJ: Formal analysis, Investigation, Writing – review & editing.

Funding

The author(s) declare financial support was received for the research and/or publication of this article. This work was supported by the Startup Fund for scientific research, Fujian Medical University(2022QH1158); Natural Science Foundation of Fujian Province (2024J011094, 2024J011083); Fujian Cancer Hospital Project (2024YN01); and Fujian Provincial Health Technology Project (2024QNA055).

Acknowledgments

We express our sincere gratitude to all the investigators for their invaluable contributions to this study.

Conflict of interest

The authors declare that the research was conducted in the absence of any commercial or financial relationships that could be construed as a potential conflict of interest.

Generative AI statement

The author(s) declare that no Generative AI was used in the creation of this manuscript.

Any alternative text (alt text) provided alongside figures in this article has been generated by Frontiers with the support of artificial intelligence and reasonable efforts have been made to ensure accuracy, including review by the authors wherever possible. If you identify any issues, please contact us.

Publisher’s note

All claims expressed in this article are solely those of the authors and do not necessarily represent those of their affiliated organizations, or those of the publisher, the editors and the reviewers. Any product that may be evaluated in this article, or claim that may be made by its manufacturer, is not guaranteed or endorsed by the publisher.

Supplementary material

The Supplementary Material for this article can be found online at: https://www.frontiersin.org/articles/10.3389/fonc.2025.1606938/full#supplementary-material

References

  • 1

    SungHFerlayJSiegelRLLaversanneMSoerjomataramIJemalAet al. Global cancer statistics 2020: GLOBOCAN estimates of incidence and mortality worldwide for 36 cancers in 185 countries. CA Cancer J Clin. (2021) 71:209–49. doi: 10.3322/caac.21660

  • 2

    TerashimaM. The 140 years’ journey of gastric cancer surgery: From the two hands of Billroth to the multiple hands of the robot. Ann Gastroenterol Surg. (2021) 5:270–7. doi: 10.1002/ags3.12442

  • 3

    PolkowskiWPGęcaKSkórzewskaM. How to measure quality of surgery as a component of multimodality treatment of gastric cancer. Ann Gastroenterol Surg. (2024) 8:740–9. doi: 10.1002/ags3.12833

  • 4

    TokunagaMKurokawaYMachidaRSatoYTakiguchiSDokiYet al. Impact of postoperative complications on survival outcomes in patients with gastric cancer: exploratory analysis of a randomized controlled JCOG1001 trial. Gastric Cancer. (2021) 24:214–23. doi: 10.1007/s10120-020-01102-3

  • 5

    KurokawaYDokiYMizusawaJTerashimaMKataiHYoshikawaTet al. Bursectomy versus omentectomy alone for resectable gastric cancer (JCOG1001): a phase 3, open-label, randomised controlled trial. Lancet Gastroenterol Hepatol. (2018) 3:460–8. doi: 10.1016/S2468-1253(18)30090-6

  • 6

    LeeJHParkDJKimHHLeeHJYangHK. Comparison of complications after laparoscopy-assisted distal gastrectomy and open distal gastrectomy for gastric cancer using the Clavien-Dindo classification. Surg Endosc. (2012) 26:1287–95. doi: 10.1007/s00464-011-2027-0

  • 7

    YuFHuangCChengGXiaXZhaoGCaoH. Prognostic significance of postoperative complication after curative resection for patients with gastric cancer. J Cancer Res Ther. (2020) 16:1611–6. doi: 10.4103/jcrt.JCRT_856_19

  • 8

    NakazawaNSohdaMYamaguchiAWatanabeTSaitoHUbukataYet al. Preoperative risk factors and prognostic impact of postoperative complications associated with total gastrectomy. Digestion. (2022) 103:397–403. doi: 10.1159/000525356

  • 9

    YuHXuLYinSJiangJHongCHeYet al. Risk factors and prognostic impact of postoperative complications in patients with advanced gastric cancer receiving neoadjuvant chemotherapy. Curr Oncol. (2022) 29:6496–507. doi: 10.3390/curroncol29090511

  • 10

    HanWHOhYJEomBWYoonHMKimYWRyuKW. Prognostic impact of infectious complications after curative gastric cancer surgery. Eur J Surg Oncol. (2020) 46:1233–8. doi: 10.1016/j.ejso.2020.04.032

  • 11

    PainuliDBhardwajSKöseU. Recent advancement in cancer diagnosis using machine learning and deep learning techniques: A comprehensive review. Comput Biol Med. (2022) 146:105580. doi: 10.1016/j.compbiomed.2022.105580

  • 12

    SinghAKLingJMalviyaR. Prediction of cancer treatment using advancements in machine learning. Recent Pat Anticancer Drug Discov. (2023) 18:364–78. doi: 10.2174/1574892818666221018091415

  • 13

    LiuZKMaWXZhangJJLiuSDDuanXLWangZZ. Risk factor analysis and establishment of a predictive model for complications of elderly advanced gastric cancer with Clavien-Dindo classification ≥ II grade. BMC Cancer. (2024) 24:1185. doi: 10.1186/s12885-024-12965-5

  • 14

    LanQGuanXLuSYuanWJiangZLinHet al. Radiomics in addition to computed tomography-based body composition nomogram may improve the prediction of postoperative complications in gastric cancer patients. Ann Nutr Metab. (2022) 78:316–27. doi: 10.1159/000526787

  • 15

    ChenXZhangWSunXShiMXuLCaiYet al. Metabolic syndrome predicts postoperative complications after gastrectomy in gastric cancer patients: Development of an individualized usable nomogram and rating model. Cancer Med. (2020) 9:7116–24. doi: 10.1002/cam4.3352

  • 16

    LuSYanMLiCYanCZhuZLuW. Machine-learning-assisted prediction of surgical outcomes in patients undergoing gastrectomy. Chin J Cancer Res. (2019) 31:797–805. doi: 10.21147/j.issn.1000-9604.2019.05.09

  • 17

    HongQQYanSZhaoYLFanLYangLZhangWBet al. Machine learning identifies the risk of complications after laparoscopic radical gastrectomy for gastric cancer. World J Gastroenterol. (2024) 30:79–90. doi: 10.3748/wjg.v30.i1.79

  • 18

    LianBChenJLiZJiGWangSZhaoQet al. Risk factors and clavien-dindo classification of postoperative complications after laparoscopic and open gastrectomies for gastric cancer: A single-center, large sample, retrospective cohort study. Cancer Manag Res. (2020) 12:12029–39. doi: 10.2147/CMAR.S275621

  • 19

    LinZYanMLinZXuYZhengHPengYet al. Short-term outcomes of distal gastrectomy versus total gastrectomy for gastric cancer under enhanced recovery after surgery: a propensity score-matched analysis. Sci Rep. (2024) 14:17594. doi: 10.1038/s41598-024-68787-9

  • 20

    YanMLinZZhengHLaiJLiuYLinZ. Development of an individualized model for predicting postoperative delirium in elderly patients with hepatocellular carcinoma. Sci Rep. (2024) 14:11716. doi: 10.1038/s41598-024-62593-z

  • 21

    NiuPZhangFMaDZhouXZhuYLuanXet al. Trends of older gastric cancer incidence, mortality, and survival in the highest gastric cancer risk area in China: 2010-2019 and prediction to 2024. BMC Public Health. (2024) 24:2449. doi: 10.1186/s12889-024-19944-2

  • 22

    Society of Chemotherapy CAACommittee of Neoplastic Supportive-Care CAA. Consensus on the clinical diagnosis, treatment, and prevention of cancer related anemia in China (2023 edition). Zhonghua Zhong Liu Za Zhi. (2023) 45:1032–40. doi: 10.3760/cma.j.cn112152-20230711-00289

  • 23

    KangBZhaoZQLiuXYChengYXTaoWWeiZQet al. Effect of hypoalbuminemia on short-term outcomes after colorectal cancer surgery: A propensity score matching analysis. Front Nutr. (2022) 9:925086. doi: 10.3389/fnut.2022.925086

  • 24

    HaskinsINBaginskyMAmdurRLAgarwalS. Preoperative hypoalbuminemia is associated with worse outcomes in colon cancer patients. Clin Nutr. (2017) 36:1333–8. doi: 10.1016/j.clnu.2016.08.023

  • 25

    HuWHEisensteinSParryLRamamoorthyS. Preoperative malnutrition with mild hypoalbuminemia associated with postoperative mortality and morbidity of colorectal cancer: a propensity score matching study. Nutr J. (2019) 18:33. doi: 10.1186/s12937-019-0458-y

  • 26

    ZengQLiNPanXFChenLPanA. Clinical management and treatment of obesity in China. Lancet Diabetes Endocrinol. (2021) 9:393–405. doi: 10.1016/S2213-8587(21)00047-4

  • 27

    XueZYuJHigashikuchiTCompherC. Does low body mass index predict mortality in asian hospitalized patients. JPEN J Parenter Enteral Nutr. (2020) 44:722–8. doi: 10.1002/jpen.1708

  • 28

    WangLZhouBZhaoZYangLZhangMJiangYet al. Body-mass index and obesity in urban and rural China: findings from consecutive nationally representative surveys during 2004-18. Lancet. (2021) 398:53–63. doi: 10.1016/S0140-6736(21)00798-4

  • 29

    Japanese Gastric Cancer Association. Japanese gastric cancer treatment guidelines 2021 (6th edition). Gastric Cancer. (2023) 26:1–25. doi: 10.1007/s10120-022-01331-8

  • 30

    LiJZhangYHuDMGongTPXuRGaoJ. Impact of postoperative complications on long-term outcomes of patients following surgery for gastric cancer: A systematic review and meta-analysis of 64 follow-up studies. Asian J Surg. (2020) 43:719–29. doi: 10.1016/j.asjsur.2019.10.007

  • 31

    ObanaAIwasakiKSuwaT. Impact of postoperative complications on gastric cancer survival. Surgery. (2025) 178:108873. doi: 10.1016/j.surg.2024.09.031

  • 32

    KandaMItoSMochizukiYTeramotoHIshigureKMuraiTet al. Multi-institutional analysis of the prognostic significance of postoperative complications after curative resection for gastric cancer. Cancer Med. (2019) 8:5194–201. doi: 10.1002/cam4.2439

  • 33

    KuritaNMiyataHGotohMShimadaMImuraSKimuraWet al. Risk model for distal gastrectomy when treating gastric cancer on the basis of data from 33,917 Japanese patients collected using a nationwide web-based data entry system. Ann Surg. (2015) 262:295–303. doi: 10.1097/SLA.0000000000001127

  • 34

    GogliaMPepeSPaceMFattoriLMinerviniAGiulittiDet al. Complication of gastric cancer surgery: A single centre experience. In Vivo. (2023) 37:2166–72. doi: 10.21873/invivo.13315

  • 35

    LeeCSLeeAY. Clinical applications of continual learning machine learning. Lancet Digit Health. (2020) 2:e279–279e281. doi: 10.1016/S2589-7500(20)30102-3

  • 36

    De BruyneSSpeeckaertMMVan BiesenWDelangheJR. Recent evolutions of machine learning applications in clinical laboratory medicine. Crit Rev Clin Lab Sci. (2021) 58:131–52. doi: 10.1080/10408363.2020.1828811

  • 37

    ZhangY. Machine learning for health and clinical applications. Methods. (2022) 206:56–7. doi: 10.1016/j.ymeth.2022.08.004

  • 38

    LiZBaiBZhaoYYuDLianBLiuYet al. Severity of complications and long-term survival after laparoscopic total gastrectomy with D2 lymph node dissection for advanced gastric cancer: A propensity score-matched, case-control study. Int J Surg. (2018) 54:62–9. doi: 10.1016/j.ijsu.2018.04.034

  • 39

    LiPHuangCMTuRHLinJXLuJZhengCHet al. Risk factors affecting unplanned reoperation after laparoscopic gastrectomy for gastric cancer: experience from a high-volume center. Surg Endosc. (2017) 31:3922–31. doi: 10.1007/s00464-017-5423-2

  • 40

    TangWZTanZKQiuLYChenJQJiaK. Prevalence and unfavorable outcome of frailty in older adults with gastric cancer: a systematic review and meta-analysis. Support Care Cancer. (2024) 32:115. doi: 10.1007/s00520-024-08306-8

  • 41

    YangSJLiHRZhangWHLiuKZhangDYSunLFet al. Visceral fat area (VFA) superior to BMI for predicting postoperative complications after radical gastrectomy: a prospective cohort study. J Gastrointest Surg. (2020) 24:1298–306. doi: 10.1007/s11605-019-04259-0

  • 42

    Bacoeur-OuzillouOVoronTLambertCFuksDPiessenGManceauGet al. Impact of obesity on outcomes following surgery for gastric adenocarcinoma: A European multi-institutional study. Eur J Surg Oncol. (2024) 51:109518. doi: 10.1016/j.ejso.2024.109518

  • 43

    ChenHNChenXZZhangWHYangKChenXLZhangBet al. The impact of body mass index on the surgical outcomes of patients with gastric cancer: A 10-year, single-institution cohort study. Med (Baltimore). (2015) 94:e1769. doi: 10.1097/MD.0000000000001769

  • 44

    TakeuchiMIshiiKSekiHYasuiNSakataMShimadaAet al. Excessive visceral fat area as a risk factor for early postoperative complications of total gastrectomy for gastric cancer: a retrospective cohort study. BMC Surg. (2016) 16:54. doi: 10.1186/s12893-016-0168-8

  • 45

    MatsuiRInakiNTsujiTKokuraYMomosakiR. Preoperative High Visceral Fat Increases Severe Complications but Improves Long-Term Prognosis after Gastrectomy for Patients with Advanced Gastric Cancer: A Propensity Score Matching Analysis. Nutrients. (2022) 14:4236. doi: 10.3390/nu14204236

  • 46

    ShinHJSonSYCuiLHByunCHurHLeeJHet al. Is there any role of visceral fat area for predicting difficulty of laparoscopic gastrectomy for gastric cancer. J Gastric Cancer. (2015) 15:151–8. doi: 10.5230/jgc.2015.15.3.151

  • 47

    MikiYMakuuchiRTokunagaMTanizawaYBandoEKawamuraTet al. Risk factors for postoperative pneumonia after gastrectomy for gastric cancer. Surg Today. (2016) 46:552–6. doi: 10.1007/s00595-015-1201-8

  • 48

    CillonizCTorresA. Diabetes mellitus and pneumococcal pneumonia. Diagn (Basel). (2024) 14:859. doi: 10.3390/diagnostics14080859

  • 49

    JahanIPandyaJMunshiRSenS. Glycocalyx disruption enhances motility, proliferation and collagen synthesis in diabetic fibroblasts. Biochim Biophys Acta Mol Cell Res. (2021) 1868:118955. doi: 10.1016/j.bbamcr.2021.118955

  • 50

    HortonWBBarrettEJ. Microvascular dysfunction in diabetes mellitus and cardiometabolic disease. Endocr Rev. (2021) 42:29–55. doi: 10.1210/endrev/bnaa025

  • 51

    MayhewDMendoncaVMurthyB. A review of ASA physical status - historical perspectives and modern developments. Anaesthesia. (2019) 74:373–9. doi: 10.1111/anae.14569

  • 52

    NishibeppuKSakuramotoSMatsuiKEbaraGFujitaSFujihataSet al. Dismal prognosis of elderly gastric cancer patients who underwent gastrectomy with American Society of Anesthesiologists (ASA) 3. Langenbecks Arch Surg. (2022) 407:3413–21. doi: 10.1007/s00423-022-02672-9

  • 53

    ParkSHEomSSEomBWYoonHMKimYWRyuKW. Postoperative complications and their risk factors of completion total gastrectomy for remnant gastric cancer following an initial gastrectomy for cancer. J Gastric Cancer. (2022) 22:210–9. doi: 10.5230/jgc.2022.22.e19

  • 54

    GeroinCWeindelmayerJCamozziSLeoneBTuroloCHetojaSet al. Clinical predictors of postoperative complications in the context of enhanced recovery (ERAS) in patients with esophageal and gastric cancer. Updates Surg. (2024) 76:1855–64. doi: 10.1007/s13304-023-01739-6

  • 55

    JiangYYangFMaJZhangNZhangCLiGet al. Surgical and oncological outcomes of distal gastrectomy compared to total gastrectomy for middle-third gastric cancer: A systematic review and meta-analysis. Oncol Lett. (2022) 24:291. doi: 10.3892/ol.2022.13411

  • 56

    HuangDDWuGFLuoXSongHNWangWBLiuNXet al. Value of muscle quality, strength and gait speed in supporting the predictive power of GLIM-defined malnutrition for postoperative outcomes in overweight patients with gastric cancer. Clin Nutr. (2021) 40:4201–8. doi: 10.1016/j.clnu.2021.01.038

  • 57

    XuLBShiMMHuangZXZhangWTZhangHHShenXet al. Impact of malnutrition diagnosed using Global Leadership Initiative on Malnutrition criteria on clinical outcomes of patients with gastric cancer. JPEN J Parenter Enteral Nutr. (2022) 46:385–94. doi: 10.1002/jpen.2127

  • 58

    HuangDDYuDYWangWBSongHNLuoXWuGFet al. Global leadership initiative in malnutrition (GLIM) criteria using hand-grip strength adequately predicts postoperative complications and long-term survival in patients underwent radical gastrectomy for gastric cancer. Eur J Clin Nutr. (2022) 76:1323–31. doi: 10.1038/s41430-022-01109-2

  • 59

    LinGTHuangJBLinJLLinJXXieJWWangJBet al. Body composition parameters for predicting the efficacy of neoadjuvant chemotherapy with immunotherapy for gastric cancer. Front Immunol. (2022) 13:1061044. doi: 10.3389/fimmu.2022.1061044

  • 60

    WangXHuangJHuangHLiuYJiCLiuJ. Safety and efficacy of immunotherapy plus chemotherapy as neoadjuvant treatment for patients with locally advanced gastric cancer: a retrospective cohort study. Invest New Drugs. (2023) 41:579–86. doi: 10.1007/s10637-023-01379-y

  • 61

    ZhangXZhangCHouHZhangYJiangPZhouHet al. Neoadjuvant PD-1 blockade plus chemotherapy versus chemotherapy alone in locally advanced stage II-III gastric cancer: A single-centre retrospective study. Transl Oncol. (2023) 31:101657. doi: 10.1016/j.tranon.2023.101657

Summary

Keywords

gastric cancer, postoperative complications, machine learning, dynamic nomogram, surgery

Citation

Lin Z, Yan M, Chen H, Wei S, Li Y and Jian J (2025) Development and validation of a machine learning model to predict postoperative complications following radical gastrectomy for gastric cancer. Front. Oncol. 15:1606938. doi: 10.3389/fonc.2025.1606938

Received

06 April 2025

Accepted

25 August 2025

Published

08 September 2025

Volume

15 - 2025

Edited by

Wencai Liu, Shanghai Jiao Tong University, China

Reviewed by

Chao Li, Autonomous University of Madrid, Spain

Wenjia Wang, First Affiliated Hospital of Zhengzhou University, China

Updates

Copyright

*Correspondence: Jinliang Jian,

†These authors have contributed equally to this work

Disclaimer

All claims expressed in this article are solely those of the authors and do not necessarily represent those of their affiliated organizations, or those of the publisher, the editors and the reviewers. Any product that may be evaluated in this article or claim that may be made by its manufacturer is not guaranteed or endorsed by the publisher.

Outline

Figures

Cite article

Copy to clipboard


Export citation file


Share article

Article metrics