1. Background
Rectal cancer remains a major global health burden and contributes substantially to cancer-related morbidity and mortality worldwide [
1,
2]. With the increasing use of screening programs, colonoscopy, high-resolution pelvic imaging, and standardized pathological assessment, more patients are diagnosed at an early stage [
3]. Stage I rectal cancer is generally defined as pathological T1–T2, N0, M0 rectal adenocarcinoma after curative-intent resection. Although this subgroup usually has favorable long-term outcomes, prognosis is not completely uniform [
4,
5]. Some patients still experience recurrence, disease progression, or death after surgery. Therefore, conventional TNM staging alone may not fully capture prognostic heterogeneity among patients with early-stage rectal cancer.
Refined risk stratification is clinically meaningful in this setting. Current postoperative management for stage I rectal cancer is generally less intensive than that for locally advanced disease [
6,
7]. However, patients with higher predicted risk may benefit from individualized follow-up, geriatric or comorbidity assessment, nutritional evaluation, perioperative optimization, and closer monitoring. Identifying additional prognostic markers that are inexpensive, reproducible, and available before surgery may help improve individualized risk assessment.
Tumor progression is influenced not only by tumor-related characteristics but also by host systemic conditions. Inflammation, immune status, nutritional reserve, coagulation activity, liver function, and lipid metabolism are increasingly recognized as components of the host-tumor interaction [
8,
9]. Peripheral blood-derived indices are attractive because they can be obtained from routine preoperative tests and may reflect systemic biological processes that are not captured by anatomical staging alone [
9,
10].
Several inflammation-based and nutrition-based prognostic indices have been studied in colorectal cancer and other malignancies. The neutrophil-to-lymphocyte ratio reflects the balance between neutrophil-mediated inflammation and lymphocyte-mediated antitumor immunity [
9]. The platelet-to-lymphocyte ratio may capture platelet-related inflammatory and prothrombotic activity [
10]. The lymphocyte-to-monocyte ratio reflects adaptive immune competence relative to monocyte/macrophage-associated inflammation [
11]. The systemic immune-inflammation index incorporates neutrophils, lymphocytes, and platelets [
12]. The prognostic nutritional index combines albumin and lymphocyte count and reflects nutritional and immune status [
13]. The albumin-to-alkaline phosphatase ratio has also been investigated as a composite marker of nutritional reserve, systemic inflammation, hepatic function, and metabolic burden [
14].
Despite these previous studies, most available evidence has focused on mixed-stage colorectal cancer or locally advanced rectal cancer. Less is known about whether preoperative inflammation–nutrition indices can help stratify overall survival among patients with primary pathological stage I rectal cancer. In addition, many candidate indices share overlapping laboratory components, and their relative contribution may vary across different populations. Therefore, a data-driven feature selection strategy may help identify a parsimonious subset of informative markers in this specific clinical setting.
Traditional Cox proportional hazards regression has been widely used in survival analysis, but conventional linear models may have limited ability to capture nonlinear relationships and complex interactions among predictors. Machine learning-based survival models offer a flexible approach for modeling complex prognostic patterns [
15]. However, their clinical implementation is often limited by interpretability concerns. SHapley Additive exPlanations (SHAP) can quantify the contribution of each predictor to model output and improve transparency at both global and individual levels [
16].
Therefore, this study aimed to explore the prognostic value of preoperative inflammation–nutrition indices in patients with primary pathological stage I rectal cancer and to develop an interpretable, internally validated machine learning-based survival prediction model for overall survival.
2. Methods
2.1. Study Population
This retrospective cohort study included patients with pathologically confirmed primary stage I rectal adenocarcinoma who underwent curative-intent radical surgery at Sichuan University West China Hospital between January 2018 and December 2021. Rectal cancer was defined as rectal adenocarcinoma located within 12 cm from the anal verge. Pathological tumor stage was determined according to the 8th edition of the American Joint Committee on Cancer staging system, with reference to the corresponding Union for International Cancer Control TNM 8th edition anatomical classification [
17]. Stage I rectal cancer was defined as pathological T1–T2, N0, M0 disease after curative-intent resection.
The study period was selected to ensure adequate follow-up for evaluating 60-month overall survival, as the last follow-up date was 31 March 2026. Including more recent patients would have resulted in insufficient follow-up for 5-year outcome assessment. In addition, staging and treatment practices during this period were relatively consistent at our institution, and electronic medical records and preoperative laboratory data were relatively complete and standardized.
Between January 2018 and December 2021, a total of 5216 patients underwent surgery for rectal cancer at Sichuan University West China Hospital. Among them, 866 patients had postoperative pathological stage I rectal cancer. Patients who underwent local transanal excision without lymph node dissection were excluded because pathological nodal status could not be adequately assessed. Patients who were downstaged to stage I after neoadjuvant therapy were also excluded because ypStage I disease after neoadjuvant treatment may not represent primary untreated stage I disease. After excluding 98 patients who underwent local transanal excision without lymph node dissection and 293 patients who were downstaged to stage I after neoadjuvant therapy, 475 patients were included in the final analysis. These patients accounted for 9.1% of all rectal cancer surgeries and 54.8% of postoperative pathological stage I rectal cancer cases during the study period. The patient selection process is shown in
Supplementary Figure S1.
Eligible patients were required to have pathologically confirmed rectal adenocarcinoma, primary pathological stage I disease after curative-intent radical surgery, available preoperative laboratory data, and complete survival follow-up information. Patients were excluded if they had a history of other malignant tumors, received neoadjuvant therapy before surgery, had active infection, hematological disease, autoimmune disease, or severe inflammatory disease before surgery, had incomplete key laboratory or survival data, underwent local transanal excision or other local procedures without lymph node dissection, or were lost to follow-up.
This study was conducted in accordance with the Declaration of Helsinki and was approved by the Ethics Committee of Sichuan University West China Hospital. The requirement for informed consent was waived due to the retrospective nature of the study. Clinical trial registration was not applicable.
2.2. Outcome Definition
The primary endpoint was overall survival, defined as the time from surgery to death from any cause or the last follow-up. Patients who were alive at the last follow-up were censored. Follow-up information was obtained from medical records, outpatient visits, telephone interviews, and/or institutional follow-up databases. The last follow-up date was 31 March 2026.
2.3. Candidate Predictors and Inflammation–Nutrition-Related Indices
Demographic, clinicopathological, and laboratory variables were collected from the electronic medical record system. Candidate predictors included age, sex, carcinoembryonic antigen, and preoperative inflammation–nutrition-related indices. Laboratory tests were performed within 3 days before surgery. Inflammation–nutrition-related indices were calculated from routine blood count, coagulation, liver function, lipid, and biochemical parameters.
The candidate indices included commonly investigated inflammatory and nutritional markers such as neutrophil-to-lymphocyte ratio (NLR), lymphocyte-to-monocyte ratio (LMR), platelet-to-lymphocyte ratio (PLR), and additional composite indices reflecting immune-inflammatory balance, coagulation, nutritional reserve, liver function, and lipid metabolism. All continuous laboratory variables and derived indices were analyzed as continuous predictors without categorization to avoid information loss and arbitrary threshold selection.
2.4. Data Preprocessing
Continuous variables were summarized as median with interquartile range, and categorical variables were summarized as frequencies and percentages. Missing data were handled using complete case analysis. Candidate predictors were standardized when required by specific algorithms. Because no universally accepted normal ranges or clinically validated thresholds exist for composite indices such as LWR, FLR, AAPR, and NHR in stage I rectal cancer, these variables were modeled continuously rather than dichotomized.
2.5. Feature Selection Using Least Absolute Shrinkage and Selection Operator Cox (LASSO-Cox) Regression
LASSO-Cox regression was used for feature selection because the primary endpoint was time-to-event overall survival with censored observations [
18]. The dataset was not high-dimensional in the strict sense that the number of predictors exceeded the number of patients. However, only 30 deaths occurred during follow-up, and the number of candidate clinical and inflammation–nutrition-related variables was relatively large compared with the number of outcome events. Moreover, several derived indices were correlated because they shared common laboratory components, such as neutrophils, lymphocytes, platelets, albumin, fibrinogen, and lipid parameters. Therefore, LASSO-Cox regression was applied to shrink regression coefficients, reduce multicollinearity, and obtain a parsimonious predictor subset before model development.
All continuous laboratory variables and derived inflammation–nutrition indices were entered into the LASSO-Cox model as continuous predictors without categorization. Continuous predictors were standardized before model fitting. The penalty parameter lambda was selected using 50-fold cross-validation, and the lambda.1se criterion was used to obtain a parsimonious model and reduce overfitting. Variables with nonzero coefficients at the selected lambda were retained for subsequent model development.
2.6. Model Development
Using the predictors retained by LASSO-Cox regression, six survival prediction models were developed, including XGBoost-Cox, CoxBoost, Ridge-Cox, ElasticNet-Cox, gradient boosting machine Cox model (GBM-Cox), and random survival forest (RSF).
These models were selected to represent commonly used and methodologically distinct approaches for time-to-event prediction. Ridge-Cox and ElasticNet-Cox were included as penalized Cox regression models and served as regularized linear benchmarks [
19]. CoxBoost was included as a boosting-based Cox model designed for survival outcomes [
20]. GBM-Cox and XGBoost-Cox were selected to represent gradient boosting survival models capable of capturing nonlinear relationships and potential interactions under a Cox proportional hazards objective [
20]. Random survival forest was included as a nonparametric ensemble survival model that can accommodate complex predictor effects without requiring a strict proportional hazards assumption [
20].
The same LASSO-selected predictor subset was used across all candidate models. This design was chosen to reduce overfitting risk in the setting of only 30 deaths and to ensure that differences in model performance were mainly attributable to modeling algorithms rather than different input variables.
For model development, conservative hyperparameter settings were used to reduce overfitting because only 30 deaths occurred during follow-up. For Ridge-Cox and ElasticNet-Cox, the penalty parameter lambda was selected using 5-fold cross-validation within the bootstrap training sample, and lambda.1se was used. ElasticNet-Cox used alpha = 0.5. For CoxBoost, the optimal number of boosting steps was selected using 5-fold cross-validation with maxstepno = 100 and penalty = 100. For random survival forest, 500 trees were grown with terminal node size = 10 and mtry = max(1, floor(sqrt(p))), where p was the number of predictors. For GBM-Cox, 300 trees were fitted with interaction depth = 1, shrinkage = 0.01, minimum terminal node size = 10, and bag fraction = 0.8. For XGBoost-Cox, the Cox proportional hazards objective was used with eta = 0.03, max_depth = 1, subsample = 0.8, colsample_bynode = 0.8, lambda = 1, alpha = 0.5, and nrounds = 100. The hyperparameter settings and tuning strategy are summarized in
Supplementary Table S2.
2.7. Model Performance Evaluation
Model performance was evaluated using 1000 bootstrap resamples with out-of-bag assessment. In each bootstrap iteration, patients were sampled with replacement to form a bootstrap training set, and patients not selected into that bootstrap sample were used as the out-of-bag validation set. Each model was refitted in the bootstrap training set and evaluated in the corresponding out-of-bag sample. Bootstrap iterations were excluded from model-specific performance calculation if the out-of-bag sample contained fewer than 30 patients, fewer than two death events, fewer than two death events before 60 months, or non-informative risk predictions.
Performance was assessed at 60 months using the time-dependent area under the receiver operating characteristic curve, concordance index, and inverse probability of censoring weighted Brier score. The 95% confidence intervals were estimated from the empirical distribution of bootstrap out-of-bag performance measures.
Calibration was assessed using both graphical and quantitative approaches. For each model, 60-month predicted mortality risks were compared with observed outcomes using bootstrap out-of-bag predictions. Calibration intercept and calibration slope were calculated by fitting a weighted logistic calibration model for 60-month mortality using inverse probability of censoring weighting. An intercept close to 0 and a slope close to 1 were considered to indicate better calibration.
Decision curve analysis (DCA) was performed to explore the potential clinical utility of the final model. Considering the low 60-month mortality risk in this stage I rectal cancer cohort, net benefit was calculated across threshold probabilities from 1% to 20% and compared with the treat-all and treat-none strategies. DCA was interpreted as an exploratory assessment of potential clinical usefulness rather than evidence of immediate clinical applicability.
2.8. SHAP-Based Model Interpretation
SHAP values quantify the contribution of each predictor to the model-derived mortality risk score. Positive SHAP values indicate that a predictor increases the predicted mortality risk score, whereas negative SHAP values indicate that a predictor decreases the predicted mortality risk score.
Mean absolute SHAP values were calculated to quantify global feature importance. SHAP beeswarm plots were used to visualize the distribution, magnitude, and direction of each predictor’s effect on model output. SHAP dependence plots were further generated to explore the relationship between predictor values and their corresponding SHAP values, thereby assessing potential nonlinear effects.
2.9. Statistical Analysis
All statistical analyses were performed using R software version 4.5.3. A two-sided p value < 0.05 was considered statistically significant where applicable. LASSO-Cox, Ridge-Cox, and ElasticNet-Cox models were implemented using the glmnet package version 4.1-10. XGBoost-Cox was implemented using the xgboost package version 3.2.1.1 with a Cox proportional hazards objective. CoxBoost was implemented using the CoxBoost package version 1.5.1. Random survival forest was implemented using the randomForestSRC package version 3.6.2. Gradient boosting machine Cox models were implemented using the gbm package version 2.2.3. Time-dependent AUC was calculated using the timeROC package version 0.4.1. Prediction error and censoring-related estimation were supported by survival version 3.8-6 and pec version 2025.06.24 where applicable. SHAP-based interpretation was performed using shapviz version 0.10.3 and custom model interpretation functions. Data manipulation and visualization were performed using dplyr version 1.2.1, tidyr version 1.3.2, ggplot2 version 4.0.2, patchwork version 1.3.2.9000, and related R packages.
This study was reported with reference to the Transparent Reporting of a multivariable prediction model for Individual Prognosis Or Diagnosis statement (TRIPOD) [
21]. A completed TRIPOD checklist is provided in
Supplementary Table S1.
4. Discussion
This exploratory retrospective study evaluated the prognostic value of routinely available preoperative inflammation–nutrition indices in patients with primary pathological stage I rectal cancer and developed an interpretable machine learning-based survival model for overall survival. LASSO-Cox regression retained age, LWR, FLR, AAPR, and NHR as predictors. Among the evaluated algorithms, XGBoost-Cox showed the highest, although only modestly higher, internally validated discrimination. SHAP analysis provided insight into the relative contribution of each predictor, and decision curve analysis suggested potential clinical utility within a low-to-moderate threshold probability range. Importantly, because only 30 deaths occurred and no external validation was performed, the model should be interpreted as exploratory and hypothesis-generating rather than ready for clinical implementation.
Although stage I rectal cancer is generally associated with favorable survival, prognosis is not completely homogeneous. Conventional TNM staging classifies patients according to anatomical tumor extent but may not fully reflect host-related prognostic heterogeneity. Established pathological factors, including lymphovascular invasion, perineural invasion, tumor budding, tumor differentiation, margin status, and depth of invasion, are important determinants of prognosis in early rectal cancer [
22,
23]. However, these variables are obtained after surgical resection and mainly reflect local tumor aggressiveness. In contrast, preoperative inflammation–nutrition indices can be obtained before surgery and may reflect systemic host conditions, including immune function, inflammatory burden, nutritional reserve, coagulation status, hepatic function, and metabolic alterations [
13]. Therefore, these indices should be viewed as complementary markers rather than substitutes for conventional pathological assessment.
The selected inflammation–nutrition indices may reflect different but partially overlapping host biological pathways. LWR represents the proportion of lymphocytes within the total white blood cell population. A lower LWR may indicate relative lymphopenia or predominance of non-lymphocyte inflammatory cells, suggesting impaired adaptive antitumor immune surveillance in the context of systemic inflammatory activation [
24]. Although NLR is one of the most widely studied inflammatory biomarkers in colorectal cancer, LWR may provide a broader measure of lymphocyte abundance relative to the total leukocyte pool. Because NLR and LWR share overlapping blood cell components, the exclusion of NLR by LASSO-Cox does not imply that NLR lacks prognostic value. Rather, LWR may have provided more stable or non-redundant information in this low-event cohort.
FLR integrates fibrinogen and lymphocyte count. Fibrinogen is both a coagulation factor and an acute-phase reactant [
25]. Elevated fibrinogen may facilitate tumor cell adhesion, platelet-tumor interaction, angiogenesis, extracellular matrix remodeling, and immune evasion [
25,
26]. Conversely, lymphocytes are central to antitumor immunity. Therefore, a higher FLR may reflect a biological state characterized by coagulation-inflammatory activation and weakened adaptive immune competence [
27]. This may partly explain why fibrinogen-based indices have been associated with adverse outcomes in colorectal cancer and other malignancies [
28].
AAPR combines albumin and alkaline phosphatase. Albumin reflects nutritional reserve, hepatic synthetic function, systemic inflammatory burden, and overall physiological resilience. Lower albumin levels may indicate malnutrition, chronic inflammation, or frailty. Alkaline phosphatase may be related to hepatobiliary function, metabolic stress, bone turnover, and systemic disease burden. A lower AAPR may therefore indicate poorer nutritional status and greater inflammatory or metabolic disturbance [
14]. In the present study, AAPR should be interpreted as a composite marker of host reserve rather than a tumor-specific biomarker.
NHR integrates neutrophil-mediated inflammation and HDL-C-related lipid metabolism. Neutrophils can promote cancer progression through cytokine release, reactive oxygen species, neutrophil extracellular traps, angiogenesis, and suppression of cytotoxic immune responses [
29]. HDL-C has anti-inflammatory, antioxidant, and immunomodulatory properties and may reflect metabolic health [
30]. A higher NHR may therefore indicate heightened neutrophil-driven inflammation combined with reduced HDL-C-associated anti-inflammatory reserve. Although NHR is less established than NLR, PLR, or LMR, it may capture the interaction between systemic inflammation and lipid metabolism, an emerging area of interest in cancer prognosis.
These selected indices likely reflect both distinct and overlapping mechanisms. LWR primarily reflects immune-inflammatory balance, FLR links coagulation and immune status, AAPR reflects nutritional and hepatic-metabolic reserve, and NHR integrates inflammation and lipid metabolism. However, systemic inflammation may simultaneously influence lymphocyte count, neutrophil count, fibrinogen, albumin, lipid metabolism, and liver enzymes. Therefore, the model should be interpreted as capturing a composite host-response phenotype rather than isolated causal pathways.
Previous studies have reported associations between inflammation-based or nutrition-based indices and outcomes in colorectal cancer. NLR, PLR, LMR, SII, PNI, AAPR, and fibrinogen-based markers have been investigated in different colorectal cancer populations, including mixed-stage colorectal cancer, colon cancer, rectal cancer, and patients receiving neoadjuvant or adjuvant therapy [
14,
31,
32]. Many of these studies suggested that systemic inflammatory activation, lymphopenia, hypoalbuminemia, hypercoagulability, and impaired nutritional status are associated with worse prognosis. However, direct comparison with our findings is difficult because most previous studies included heterogeneous stages, different endpoints, variable treatment strategies, and different biomarker cut-offs. Our study differs by focusing specifically on primary pathological stage I rectal cancer and by modeling the selected indices as continuous variables in an interpretable survival machine learning framework.
Age was identified as the most influential predictor in the final model. This finding should be interpreted cautiously because the endpoint was overall survival, which includes death from any cause. Older age is a well-established risk factor for all-cause mortality irrespective of rectal cancer [
33]. Older patients may have reduced physiological reserve, more comorbidities, frailty, impaired immune function, and lower tolerance to postoperative complications or subsequent treatments [
34]. Therefore, the contribution of age in this model may reflect not only cancer-related prognosis but also competing risks from comorbidities and non-cancer death. Future studies using cancer-specific survival, disease-free survival, recurrence-free survival, or competing-risk methods are needed to clarify whether these predictors are specifically associated with tumor-related outcomes.
XGBoost-Cox achieved the highest discrimination among the candidate models, although its advantage over CoxBoost was modest in bootstrap out-of-bag internal validation. Compared with conventional penalized Cox models, XGBoost-Cox may capture nonlinear relationships and interactions among predictors. SHAP dependence plots also suggested that the effects of selected predictors on the model-derived mortality risk score were not necessarily linear. Nevertheless, because the number of outcome events was limited, algorithm ranking should be interpreted cautiously. The apparent superiority of one flexible algorithm over another may be unstable in small-event datasets.
A major challenge in applying machine learning models to clinical medicine is limited interpretability. To address this issue, we used SHAP analysis to explain the final XGBoost-Cox model. SHAP values quantified the contribution of each predictor to the model output and allowed visualization of both global feature importance and predictor effects [
16]. However, SHAP analysis explains model predictions and does not establish causal relationships. In addition, SHAP patterns may be unstable when the model is trained on a small number of outcome events.
Clinical usefulness also requires cautious interpretation. Decision curve analysis suggested potential net benefit across part of the 1% to 20% threshold probability range. However, no predefined clinical decision pathway was available in this retrospective study. Therefore, DCA should be interpreted as exploratory. If externally validated, a high predicted all-cause mortality risk might support closer follow-up, geriatric or comorbidity assessment, nutritional evaluation, and optimization of systemic inflammatory or metabolic conditions. However, the model should not currently be used to determine adjuvant treatment, imaging frequency, or surveillance intensity in routine practice.
The lack of clinically interpretable cut-offs is another practical limitation. In this study, LWR, FLR, AAPR, and NHR were modeled as continuous predictors to avoid information loss and arbitrary dichotomization. There are no universally accepted normal ranges or clinically validated thresholds for these composite indices in stage I rectal cancer. Therefore, we did not define cut-offs for clinical decision-making. Future studies should identify reproducible thresholds and evaluate whether threshold-based risk groups can guide surveillance, nutritional intervention, supportive care, or perioperative optimization.
This study has several strengths. First, it focused on primary pathological stage I rectal cancer, a subgroup generally considered to have favorable prognosis but still showing clinically meaningful heterogeneity. Second, the model was based on routinely available preoperative clinical and laboratory indicators. Third, multiple survival models were compared using the same LASSO-selected predictor subset. Fourth, bootstrap out-of-bag internal validation was used to provide more conservative performance estimates. Finally, SHAP analysis was used to improve model interpretability.
Several limitations should be acknowledged. First, this was a retrospective single-center study, and selection bias could not be completely avoided. Second, only 30 deaths occurred during follow-up, which is the most important methodological limitation. Although we used LASSO-based feature selection, conservative model complexity settings, and bootstrap out-of-bag internal validation, the small number of events may still lead to unstable feature selection, overfitting, wide uncertainty intervals, limited calibration reliability, and unstable algorithm ranking. Therefore, the model should be considered exploratory and hypothesis-generating. Third, the model was evaluated using internal validation only. External validation in independent multicenter cohorts is essential before clinical application. Fourth, the endpoint was overall survival rather than cancer-specific survival or disease-free survival. In stage I rectal cancer, non-cancer mortality is clinically relevant, especially among older patients. Therefore, the model may primarily predict all-cause mortality rather than rectal cancer-specific prognosis. Fifth, detailed pathological variables such as lymphovascular invasion, perineural invasion, tumor budding, tumor differentiation, margin status, and depth of invasion were not consistently available. Therefore, we could not determine whether preoperative inflammation–nutrition indices provide incremental prognostic value beyond established pathological risk factors. Sixth, inflammation–nutrition indices may be influenced by infection, chronic inflammatory disease, metabolic disorders, liver function, medication use, BMI, nutritional interventions, comorbidities, frailty, and other unmeasured confounders. Although patients with active infection, hematological disease, autoimmune disease, or severe inflammatory disease were excluded, detailed information on BMI, comorbidity burden, sarcopenia, medication use, and nutritional interventions was not consistently available. Finally, the proposed model should be compared with previously published prognostic models in future studies. Many existing models for rectal or colorectal cancer incorporate clinicopathological variables, radiological features, molecular markers, treatment factors, or mixed-stage cohorts. Our model used only age and preoperative blood-derived indices in primary pathological stage I rectal cancer. Direct performance comparison is difficult because of differences in populations, endpoints, follow-up duration, event rates, and validation strategies. Future studies should incorporate conventional pathological, radiological, molecular, treatment-related, and host-related variables to develop more comprehensive and externally validated prognostic models.