Article Text

Original research
Development and interpretation of a pathomics-driven ensemble model for predicting the response to immunotherapy in gastric cancer
  1. Zhen Han1,
  2. Zhicheng Zhang2,3,
  3. Xianqi Yang4,
  4. Zhe Li5,
  5. Shengtian Sang6,
  6. Md Tauhidul Islam7,
  7. Alyssa A Guo8,
  8. Zihan Li9,
  9. Xiaoyan Wang10,
  10. Jing Wang10,
  11. Taojun Zhang1,
  12. Zepang Sun1,
  13. Lequan Yu11,
  14. Wei Wang4,
  15. Wenjun Xiong12,
  16. Guoxin Li1,13 and
  17. Yuming Jiang14
  1. 1Department of General Surgery & Guangdong Provincial Key Laboratory of Precision Medicine for Gastrointestinal Tumor, Nanfang Hospital, The First School of Clinical Medicine,Southern Medical University, Guangzhou, Guangdong, China
  2. 2Department of Gastroenterology, The First Hospital of Jilin University, Changchun, Jilin, China
  3. 3JancsiLab, JancsiTech, Hongkong, China
  4. 4Department of Gastric Surgery, and State Key Laboratory of Oncology in South China, Collaborative Innovation Center for Cancer Medicine, Sun Yat-sen University Cancer Center, Guangzhou, Guangdong, China
  5. 5School of Computer Science and Engineering, Northwestern Polytechnical University, Xi'an, Shaanxi, China
  6. 6Department of Radiology, Stanford University School of Medicine, Stanford, California, USA
  7. 7Department of Radiation Oncology, Stanford University School of Medicine, Stanford, California, USA
  8. 8Department of Internal Medicine, Wake Forest University School of Medicine, Winston-Salem, North Carolina, USA
  9. 9Department of Bioengineering, University of Washington, Seattle, Washington, USA
  10. 10Department of Pathology, School of Basic Medical Sciences, Southern Medical University, Guangzhou, Guangdong, China
  11. 11Department of Statistics and Actuarial Science, The University of Hong Kong, Hong Kong, Hong Kong
  12. 12Department of Gastrointestinal Surgery, Guangdong Provincial Hospital of Chinese Medicine, The Second Affiliated Hospital of Guangzhou University of Chinese Medicine, Guangzhou, Guangdong, China
  13. 13School of Clinical Medicine, Tsinghua University, Beijing Tsinghua Changgung Hospital, Beijing, China
  14. 14Department of Radiation Oncology, Wake Forest University School of Medicine, Winston-Salem, North Carolina, USA
  1. Correspondence to Professor Yuming Jiang; yumjiang{at}wakehealth.edu; Dr Guoxin Li; gzliguoxin{at}163.com

Abstract

Background Only a subset of patients with gastric cancer experience long-term benefits from immune checkpoint inhibitors (ICIs). Currently, there is a deficiency in precise predictive biomarkers for ICI efficacy. The aim of this study was to develop and validate a pathomics-driven ensemble model for predicting the response to ICIs in gastric cancer, using H&E-stained whole slide images (WSI).

Methods This multicenter study retrospectively collected and analyzed H&E-stained WSIs and clinical data from 584 patients with gastric cancer. An ensemble model, integrating four classifiers: least absolute shrinkage and selection operator, k-nearest neighbors, decision trees, and random forests, was developed and validated using pathomics features, with the objective of predicting the therapeutic efficacy of immune checkpoint inhibition. Model performance was evaluated using metrics including the area under the curve (AUC), sensitivity, and specificity. Additionally, SHAP (SHapley Additive exPlanations) analysis was used to explain the model’s predicted values as the sum of the attribution values for each input feature. Pathogenomics analysis was employed to explain the molecular mechanisms underlying the model’s predictions.

Results Our pathomics-driven ensemble model effectively stratified the response to ICIs in training cohort (AUC 0.985 (95% CI 0.971 to 0.999)), which was further validated in internal validation cohort (AUC 0.921 (95% CI 0.839 to 0.999)), as well as in external validation cohort 1 (AUC 0.914 (95% CI 0.837 to 0.990)), and external validation cohort 2 (0.927 (95% CI 0.802 to 0.999)). The univariate Cox regression analysis revealed that the prediction signature of pathomics-driven ensemble model was a prognostic factor for progression-free survival in patients with gastric cancer who underwent immunotherapy (p<0.001, HR 0.35 (95% CI 0.24 to 0.50)), and remained an independent predictor after multivariable Cox regression adjusted for clinicopathological variables, (including sex, age, carcinoembryonic antigen, carbohydrate antigen 19-9, therapy regime, line of therapy, differentiation, location and programmed death ligand 1 (PD-L1) expression in all patients (p<0.001, HR 0.34 (95% CI 0.24 to 0.50)). Pathogenomics analysis suggested that the ensemble model is driven by molecular-level immune, cancer, metabolism-related pathways, and was correlated with the immune-related characteristics, including immune score, Estimation of STromal and Immune cells in MAlignant Tumor tissues using Expression data score, and tumor purity.

Conclusions Our pathomics-driven ensemble model exhibited high accuracy and robustness in predicting the response to ICIs using WSIs. Therefore, it could serve as a novel and valuable tool to facilitate precision immunotherapy.

  • Immune Checkpoint Inhibitor
  • Pathology
  • Gastric Cancer

Data availability statement

Data are available upon reasonable request.

http://creativecommons.org/licenses/by-nc/4.0/

This is an open access article distributed in accordance with the Creative Commons Attribution Non Commercial (CC BY-NC 4.0) license, which permits others to distribute, remix, adapt, build upon this work non-commercially, and license their derivative works on different terms, provided the original work is properly cited, appropriate credit is given, any changes made indicated, and the use is non-commercial. See http://creativecommons.org/licenses/by-nc/4.0/.

Statistics from Altmetric.com

Request Permissions

If you wish to reuse any or all of this article please use the link below which will take you to the Copyright Clearance Center’s RightsLink service. You will be able to get a quick price and instant permission to reuse the content in many different ways.

WHAT IS ALREADY KNOWN ON THIS TOPIC

  • The effectiveness of immune checkpoint inhibition is intricately influenced by the intricate interplay between tumor, microenvironment, and host factors, resulting in the overall treatment outcome. H&E-stained whole slide images contain valuable information about the tumor microenvironment. Previous studies have demonstrated the potential of using pathomics signatures to predict the effectiveness of immunotherapy. The main emphasis of these investigations was on establishing imaging substitutes for distinct molecular indicators, including but not limited to microsatellite instability, Epstein-Barr virus infection status, or programmed death ligand 1(PD-L1) expression. The primary objective, however, was not to explore the potential of pathomics features in augmenting the prediction of immunotherapy efficacy on their own.

WHAT THIS STUDY ADDS

  • we have developed and validated a pathomics-driven ensemble model for direct prediction of immunotherapy efficacy.

HOW THIS STUDY MIGHT AFFECT RESEARCH, PRACTICE OR POLICY

  • Through rigorous validation with data from multiple centers, the pathomics-driven ensemble model has shown its predictive value beyond traditional risk factors. Overall, the pathomics-driven ensemble model represents a novel and valuable tool for precision immunotherapy in gastric cancer.

Introduction

Gastric cancer (GC) is a commonly diagnosed malignancy and stands as the third most prevalent cause of cancer-associated death globally.1 Immune checkpoint inhibitors (ICIs) targeting programmed death (ligand) 1 (PD-(L)1) emerged as the primary treatment option for patients lacking targeted therapeutic alternatives.2–4 Despite the effectiveness of ICIs in numerous tumor types, patients with GC exhibit heterogeneous responses to ICIs.4 5 The durable response of ICIs continues to be limited to a small subset of patients.3 5 Effective predictive biomarkers play a crucial role in distinguishing patients who have a higher likelihood of benefiting from immunotherapy with ICIs, compared with those who may benefit more from alternative treatment modalities.

In GC, various molecular indicators such as tumor mutation burden (TMB), PD-L1 expression, microsatellite instability (MSI), and Epstein-Barr virus (EBV) infection status, have been proposed to identify susceptibility to PD-(L)1 inhibitors.6–8 However, these features are inadequate in capturing the full variability in outcomes, likely due to the complex nature of the immune response to cancer.8–10 For example, PD-L1 expression is currently the most commonly used indicator for predicting the efficacy of immune therapy in clinical practice, but studies have found that patients with low or no expression of PD-L1 can also benefit from anti-PD-(L)1 treatment, indicating the need for improved predictive value.8 Microsatellite instability-high (MSI-H) and TMB are also markers for immune therapy, but the proportion of MSI-H patients in advanced GC is only about 4%–7%.5 11 Additionally, there are limitations in MSI and TMB testing, such as high sample requirements, lack of standardized criteria, susceptibility to testing methods and analysis techniques, and high costs involved.11 12

The effectiveness of immune checkpoint inhibition is intricately influenced by the intricate interplay between tumor, microenvironment, and host factors, resulting in the overall treatment outcome.13–16 H&E-stained whole slide images (WSI) contain valuable information about the tumor microenvironment. Pathomics analyses hold potential in a range of tasks.17 18 These tasks include quantifying the tissue microenvironment, conducting comprehensive image-based omics analyses, identifying morphological features associated with prognosis, and establishing links between morphology and treatment response.17 18

Previous studies have demonstrated the potential of using pathomics signatures to predict the effectiveness of immunotherapy.19–21 Nevertheless, the main emphasis of these investigations was on establishing imaging substitutes for distinct molecular indicators, including but not limited to MSI, EBV infection status, or PD-L1 expression. The primary objective, however, was not to explore the potential of pathomics features in augmenting the prediction of immunotherapy efficacy on their own.20–22 While these studies emphasize the potential of pathomics in capturing significant biological information, their limitations lie in the fact that these molecular characteristics only act as partial indicators for predicting the efficacy of ICIs. Furthermore, previous studies have overlooked the interpretation of the complex pathomics models.20–22

In this study, we aimed to develop and validate a pathomics-driven ensemble model for direct prediction of immunotherapy efficacy and to interpret the ensemble model. We conducted a multicenter investigation to train and validate an ensemble model based on pathomics features, aiming to predict the therapeutic efficacy of immune checkpoint inhibition in GC. Furthermore, we employed SHAP (SHapley Additive exPlanations) analysis and pathogenomics analysis to interpret the predictions made by ensemble models from different perspectives.

Methods

Study design and participants

Within this multicenter study, clinical data and whole-slide H&E images from 584 patients were retrospectively gathered and analyzed (figure 1). To predict the response to ICIs, this study retrospectively included patients diagnosed with GC who underwent ICIs at Sun Yat-sen University Cancer Center (n=174), Nanfang Hospital of Southern Medical University (n=71), and Guangdong Provincial Hospital of Chinese Medicine (n=28) from January 2019 to December 2021. The patients from the three centers were divided into four cohorts: the training cohort (n=130) and internal validation cohort (n=44) from Sun Yat-sen University Cancer Center, and the external validation cohort 1 (n=71) and external validation cohort 2 (n=28) from Nanfang Hospital of Southern Medical University and Guangdong Provincial Hospital of Chinese Medicine, respectively. The online supplemental methods contain a comprehensive list of the primary criteria for inclusion and exclusion.

Supplemental material

Figure 1

Study design overview. In this multicenter study, a retrospective collection and analysis of whole-slide H&E images and clinical data were conducted for 584 patients. An ensemble learning model was developed and validated using pathomics features with the objective of predicting the therapeutic efficacy of immune checkpoint inhibition in gastric cancer. Model performance was assessed using metrics such as area under the curve, sensitivity, specificity, positive predictive value, and negative predictive value. Additionally, SHAP (SHapley Additive exPlanations) analysis was employed to explain the model’s predicted values as the sum of the attribution values for each input feature, and pathogenomics analysis was employed to explain the molecular mechanisms underlying the predictions made by the model. GSEA, Gene Set Enrichment Analysis; KEGG, Kyoto Encyclopedia of Genes and Genomes; KNN, k-nearest neighbors; LASSO, least absolute shrinkage and selection operator; pMENV, pathomics deep microenvironment features; pNUC, pathomics nucleus features; pSCSD, pathomics single-cell spatial distribution features; ROC curve, receiver operating characteristic curve; TCGA-STAD, The Cancer Genome Atlas-stomach adenocarcinoma.

Baseline information, such as age, sex, carcinoembryonic antigen (CEA) levels, tumor location, differentiation, carbohydrate antigen 19-9 (CA19-9) levels, PD-L1 expression, therapy regimen, ICI therapy line, and follow-up data was collected. The Combined Positive Score for PD-L1 expression was calculated by dividing the sum of PD-L1-positive tumor cells (showing either partial or complete membrane staining), lymphocytes, and macrophages (with either membrane staining or intracellular staining, or both) by the total number of viable tumor cells, and then multiplying the result by 100.3

After receiving immunotherapy, patients have regular follow-up appointments. Initially, visits are scheduled every 3 months for the first 2 years, then switch to every 6 months thereafter. During each visit, radiologists evaluate treatment response based on imaging studies, like abdominal enhanced CT scans, using the response evaluation criteria in solid tumours (RECIST) (V.1.1) criteria, which categorize the response as progressive disease (PD), stable disease (SD), partial response (PR), or complete response (CR). In this study, patients are categorized as responders (CR/PR) or non-responders (SD/PD) based on their treatment response.15 23–25 Patient survival is measured through both progression-free survival and overall survival. Progression-free survival is the time from starting immunotherapy to tumor progression or death from any cause. Overall survival is the time from starting immunotherapy to death from any cause.

In order to validate and interpret the pathomics-driven model at the molecular level, we assembled an independent cohort consisting of 416 patients with GC from The Cancer Genome Atlas (TCGA) database accessed through the Genomic Data Commons (https://gdc.cancer.gov/). The cohort was selected based on the inclusion of high-quality pathological images. Cases lacking image resolution or exhibiting suboptimal image quality (such as the presence of pen marks or inadequate staining) were excluded from the analysis. Ultimately, this data set included 311 patients with GC for validation (online supplemental figure 1).

Image acquisition and processing

The Aperio ScanScope Scanner system (Leica Biosystems) was used to scan all selected slides with the ×40 objective. The resulting images were then digitized and saved as svs. format files. To manage these files, the Aperio ImageScope software (V.12.4.6) was employed. To ensure adequate image quality, all WSIs were reviewed. WSIs captured at the 40× magnification (0.25 µm/pixel) were analyzed whenever available, while some slides were scanned at 20× and their corresponding images were used. The public clustering-constrained attention multiple instance learning (CLAM) repository was employed to perform automated tissue segmentation for each WSI.26 Subsequently, two expert pathologists meticulously examined and refined the regions of interest (ROIs) using the ImageScope software (online supplemental figure 2).

Extraction of pathomics features from images

To develop a model based on pathomics features, three types of quantitative pathomics features were extracted: pathomics nucleus feature, pathomics deep microenvironment features, and pathomics single-cell spatial distribution features. Three categories encompass information on individual cell morphology, cellular spatial distribution, and the overall microenvironment, providing a holistic insight into the tumor microenvironment (online supplemental figure 2).

First, pathomics tumor nucleus features were extracted. After segmenting tumor nuclei using a HoVer-Net model27 for each ROI, we extracted three categories of pathomics nucleus features, including nuclear intensity, morphology, and texture features, using the “MeasureObjectIntensity”, “MeasureObjectSizeShape”, and “Measure Texture” modules in the CellProfiler platform.28 The extracted features were aggregated by mean, median, SD, 25-quantiles, and 75-quantiles of the values for the ROI in each slide. In total, 525 pathomics nucleus features (pNUC) features were generated for each patient.

Next, deep microenvironment pathomics features were extracted. Image patches of size 256×256 were extracted, without overlap, from all identified tissue regions after segmentation. Subsequently, a pretrained ResNet50 model on ImageNet was used as an encoder to convert each 256×256 patch into a 1024-dimensional feature vector, using spatial average pooling after the third residual block.

Finally, single-cell spatial distribution pathomics features were extracted. A pretrained HoVer-Net model27 on the PanNuke data set29 was employed to segment and classify cells in the ROI as tumor cells, lymphocytes, stromal cells, dead cells, or non-neoplastic epithelial cells. To generate the

red, green, and blue (RGB) image, we calculated the quantity of tumor cells, lymphocytes, and stromal cells per square unit on a 16×16 µm2 grid. The resulting image consisted of density maps for tumor cells, lymphocytes, and stromal cells, represented by the red, green, and blue channels, respectively. Lastly, the same pretrained ResNet50 model used for feature extraction of the tumor microenvironment was applied to the RGB image to capture different cells and their spatial organization patterns.

Pathomics-driven ensemble model development and validation

This study employed an ensemble strategy to predict ICIs response. Specifically, the ensemble approach used several algorithms, including the least absolute shrinkage and selection operator, k-nearest neighbors, decision trees, random forests, and a voting regressor. The voting regressor, which is an ensemble meta-estimator, was fitted with the base regressors using the entire data set. The individual predictions from each base regressor were averaged using the voting regressor to generate the final prediction. For comparison purposes, a range of machine learning methods, such as logistic regression, support vector machine, were employed, using the scikit-learn libraries.

Interpretation of the model

The utilization of SHAP, a game theoretic technique, allows for the interpretation of results produced by various machine learning models.30–32 In order to address the challenge of black-box predictions in machine learning models, we used an explanatory model called SHAP to analyze the data produced by the ensemble model. This allowed us to gain insights into the decision-making process of the algorithm. Essentially, the SHAP explainer model calculates SHAP values to measure the impact of each input feature on the predicted output. These values were then employed to prioritize features and visually depict significant associations. A higher value indicates the significance of the predictor and its substantial influence on the prediction of therapeutic effectiveness in immune checkpoint inhibition. SHAP analysis were implemented using the shap libraries (V.0.42.1).

Molecular validation and interpretation of the model

We used the TCGA-stomach adenocarcinoma (STAD) data set, which comprises publicly accessible genomic/transcriptomic data along with corresponding WSIs, for conducting pathogenomics analysis. The gene expression data and WSIs from 311 patients in the TCGA-STAD cohort were used for analysis.

After processing the WSIs, we computed predicted classifications and performed Gene Set Enrichment Analyses to uncover the molecular pathways linked to the pathomics-driven ensemble model. Genes significantly correlated with the predicted classification were identified using the Spearman’s rank test. Correction for multiple testing was carried out using the Benjamini-Hochberg method. In order to elucidate the biological implications of the pathomics-driven ensemble model, Gene Set Enrichment Analysis33 34 and Kyoto Encyclopedia of Genes and Genomes35 analyses were performed, respectively. The default values were applied to all parameters, and a statistically significant adjusted p value of <0.05 was used. The association between the pathomics-driven ensemble model and immune-related features was additionally examined using gene expression data. The Estimation of STromal and Immune cells in MAlignant Tumor tissues using Expression data (ESTIMATE) score, immune score, stroma score, and tumor purity were calculated using the estimate package (V.17) in R.36 The ESTIMATE score, immune score, stroma score, and tumor purity were presented based on the distribution of samples.

Statistical analysis

Statistical analyses in this study were conducted using R (V.4.1.0), SPSS (V.26.0, IBM), or Python (V.3.6.5). A t-test was used to compare continuous variables, while a χ2 test or Fisher’s exact test was used to compare categorical variables, as appropriate. Univariate and multivariate Cox regression analyses were employed to investigate the effect of survival clinicopathological variables. The Pearson correlation coefficient was used to evaluate pairwise correlations among pathomics features. The survival times of patients in two groups were estimated using the Kaplan-Meier estimator and compared using the log-rank test. The DeLong test was used to estimate the performance of the model in predicting ICIs response. All statistical analyses were conducted using a two-sided approach, considering a p value<0.05 as indicative of statistical significance.

Results

Patient characteristics

A total of 584 eligible patients were enrolled in the retrospective studies. These comprised of 130 patients in the training cohort, 44 patients in the internal validation cohort, 71 patients in the external validation cohort 1, 28 patients in the external validation cohort 2, and 311 patients in the TCGA-STAD cohort. The training cohort (n=130) and internal validation cohort 1 (n=44) were obtained from Sun Yat-sen University Cancer Center (Guangzhou, China). The external validation cohort 1 (n=71) and external validation cohort 2 (n=28) were obtained from Nanfang Hospital of Southern Medical University (Guangzhou, China) and Guangdong Provincial Hospital of Chinese Medicine (Guangzhou, China), respectively. Comprehensive details regarding demographic and clinical characteristics can be retrieved from table 1. The distribution of treatment lines, ICI regimens, and tumor response evaluations according to RECIST (V.1.1) across different cohorts is presented in online supplemental figure 3.

Table 1

Patient characteristics in all cohorts

Out of the participants, 44 (34%) of the 130 in the training cohort, 21 (48%) of the 44 in the internal validation cohort, 36 (51%) of the 71 in the external validation cohort 1, and 12 (43%) of the 28 in the external validation cohort 2 were classified as responders (table 1). No significant differences were observed in the baseline characteristics between responders and non-responders, except for the line of ICI therapy in the external validation cohort 1, which was found to be statistically significant (p<0.05) (table 1).

Pathomics-driven ensemble model development and validation

For the purpose of this study, we extracted three types of quantitative pNUC, single-cell spatial distribution features (pSCSD), and deep microenvironment features (pMENV) from baseline H&E-stained slides. Then, we developed a pathomics-driven ensemble model (PDEM) to predict the response of patients with GC after ICIs treatment (figure 1). The ensemble model demonstrated favorable predictive accuracy for response to ICIs in the training cohort, with an area under the curve (AUC) of 0.985 (95% CI 0.971 to 0.999). Moreover, the ensemble model exhibited a remarkable sensitivity of 0.955 (95% CI 0.893 to 0.999) and specificity of 0.942 (95% CI 0.892 to 0.991) in the training cohort, as shown in table 2. Following successful development in the training cohort, the ensemble model exhibited high accuracy in predicting response to ICIs in the internal validation cohort (AUC 0.921 (95% CI 0.839 to 0.999)), as well as in external validation cohorts 1 (AUC 0.914 (95% CI 0.837 to 0.990)) and 2 (AUC 0.927 (95% CI 0.802 to 0.999)). The ensemble model maintained a high sensitivity (95% CI 0.857 to 0.917) and specificity (95% CI 0.78 to 0.938) in the three validation cohorts. The ensemble model demonstrated negative predictive value (NPV) greater than 0.87 in all cohorts, with a positive predictive value (PPV) surpassing 0.89 (table 2) (online supplemental figure 4).

Table 2

Prediction performance of pathomics-driven ensemble model versus individual prediction models and CPS in multiple cohorts

The four individual predictions from the least absolute shrinkage and selection operator (LASSO), k-nearest neighbors (KNN), decision trees (DT), and random forests (RF) are ultimately fused into the pathomics-driven ensemble model. Compared with individual predictions in the validation cohorts, the ensemble model exhibited superior performance in predicting response to ICIs (figure 2). In the training cohort, the DT model exhibited a slightly lower AUC (0.910 (95% CI 0.855 to 0.965)) compared with the ensemble model. However, in the validation cohorts, the DT model demonstrated significantly lower AUCs, ranging from 0.583 (95% CI 0.363 to 0.803) to 0.814 (95% CI 0.722 to 0.905). The RF model outperformed the other individual predictions with a higher AUC in the internal validation cohort (AUC 0.725 (95% CI 0.590 to 0.859)), as well as in the external validation cohorts 1 and 2 (AUC 0.859 (95% CI 0.777 to 0.941) and 0.688 (95% CI 0.510 to 0.865), respectively). However, its AUC was still lower compared with the PDEM (table 2). We compared three different combinations of ensemble models. The results indicate that there is no significant difference in the AUC of the ensemble models among the three combinations in the training set. However, in the validation sets, there is a difference in the AUC of the ensemble models among the three combinations, with the KNN+LASSO+DT+RF ensemble model demonstrating greater stability and generalization capability (online supplemental table 1).

Figure 2

Comparison of prediction performance between the pathomics-driven ensemble model and individual prediction models in the training and validation cohorts. The ensemble model integrated LASSO, KNN, decision trees, and random forests model. Receiver operating characteristic curves of predictive performance for immunotherapy effect in patients with gastric cancer among the four individual predictions (LASSO, KNN, decision trees, random forests) and the pathomics-driven ensemble model in the training cohort (A) internal validation cohort (B) external validation cohort 1 (C) and external validation cohort 2 (D). AUC, area under curve; DT, decision trees; KNN, k-nearest neighbors; LASSO, least absolute shrinkage and selection operator; PDEM, the pathomics-driven ensemble model; RF, random forests.

To delve deeper, a comparison was conducted between the PDEM and PD-L-1 expression level (Combined Positive Score (CPS)), as well as other commonly used models like support vector machine (SVM) and logistic regression (LR). The PDEM outperforms CPS and other modeling methods in predicting the efficacy of ICIs (online supplemental figure 5). In contrast to the PDEM, CPS exhibited significantly lower AUCs values ranging from 0.459 (95% CI 0.338 to 0.580) to 0.585 (95% CI 0.490 to 0.681) across all cohorts, accompanied by reduced sensitivity and specificity. Compared with the PDEM, the SVM model exhibited a lower AUC, ranging from 0.422 (95% CI 0.189 to 0.655) to 0.886 (95% CI 0.822 to 0.950), while the LR model demonstrated significantly inferior AUC values, ranging from 0.508 (95% CI 0.391 to 0.625) to 0.641 (0.566 to 0.716), across all cohorts (table 2). The DeLong test was used to examine the receiver operating characteristic curves, which demonstrated that the PDEM exhibited a substantial enhancement in the AUC for predicting the response to ICIs, surpassing both CPS and alternative modeling techniques (online supplemental table 2). Lastly, we compared the prediction performance between the PDEM and models based on individual types of pathomics features in both the training and internal validation cohorts. The results demonstrate that the model integrating the three types of pathological features outperforms the models based on single pathological features in predicting the efficacy of immunotherapy for GC (online supplemental figure 6).

Prognostic value of pathomics-driven ensemble model

The Kaplan-Meier analysis revealed that the responders predicted by the PDEM had a significantly better progression-free survival (PFS) and overall survival compared with the non-responders (all p<0.05, figure 3, online supplemental figure 7). This finding is consistent with the results observed in patients who actually responded to immune checkpoint inhibition (all p<0.05, online supplemental figures 8 and 9).

Figure 3

Progression-free survival Kaplan-Meier curve analysis of prediction populations. Patients identified as “predicted responders” by pathomics-driven ensemble model presented favorable progression-free survival than that of patients identified as “predicted nonresponders” in the training cohort (A) internal validation cohort (B) external validation cohort 1 (C) and external validation cohort 2 (D).

Univariate Cox regression analysis demonstrated that the prediction signature of PDEM was an independent prognostic factor for PFS in patients with GC who underwent immunotherapy (p<0.001, HR 0.35 (95% CI 0.24 to 0.50), online supplemental figure 10). Furthermore, in the multivariable Cox regression analysis adjusting for clinicopathological variables such as sex, age, CEA, CA19-9, therapy regime, line of therapy, differentiation, location, and PD-L1 expression, the prediction signature of the PDEM remained an independent prognostic factor for progression-free survival across all patients (p<0.001, HR 0.34 (95% CI 0.24 to 0.50), figure 4).

Figure 4

Forest plot for the multivariate cox regression analysis of progression-free survival. CA19-9, carbohydrate antigen 19-9; CEA, carcinoembryonic antigen; CPS, Combined Positive Score of PD-L1 expression;PD-L1, programmed death-ligand 1.

We evaluated the prognostic value of PDEM within each subgroup of patients as defined by clinicopathological variables. our findings revealed significant differences in PFS between patients in two predicted classifications in all subgroups defined by sex, age, CEA, CA19-9, therapy regime, line of therapy, differentiation, location and PD-L1 expression (all p<0.05, online supplemental figure 11). Taken together, these data suggest that the prediction signature of the PDEM is a robust independent prognostic factor in patients with GC who underwent immunotherapy.

Interpretation of pathomics-driven ensemble model

Complex models like ensemble models are not easily understandable. We cannot rely on the original model itself for its interpretation. Instead, it is imperative for us to employ a simplified interpretive framework, termed as an approximation of the primary model’s interpretation. In the interpretation of feature attribution, SHAP functions as an additive method, explaining the model’s predicted values as the cumulative sum of attribution values assigned to each input feature. A significant SHAP value indicates the significance impact of the predictor on predicting the effectiveness of immune checkpoint inhibition therapy.

First and foremost, we compute the feature importance and impact using SHAP. We rank the feature importance in descending order and identify 13 pathomics features that strongly influence the prediction of ICIs efficacy. The results are presented through beeswarm summary plot (figure 5A), feature importance plot (figure 5B), and heatmap plot (online supplemental figure 12). Both the feature importance plot and the beeswarm summary plot reveal that pSCSD-534 has a significant impact on the prediction of ICIs efficacy. A smaller value of pSCSD-534 indicates a higher probability of benefiting from ICIs for patients with GC (figure 5A,B, online supplemental figure 12). The mutual correlations among the important features were calculated using Pearson correlation coefficients (online supplemental figure 13).

Figure 5

Interpretation of pathomics-driven ensemble model by SHAP. (A) Beeswarm summary plot of feature importance from SHAP analysis. The beeswarm plot is designed to display an information-dense summary of how the top features in a data set impact the model’s output. Each observation in the data is represented by a single dot on each feature row. The vertical axis indicates the features, ordered from top to bottom, based on their importance as predictors. The placement of the dot along the feature row is dictated by the corresponding feature’s SHAP value, and the accumulation of dots within each feature row illustrates its density. The feature values determined the color of the dots, with pink representing a direct association with the response to immune checkpoint inhibitors, while blue indicating an inverse association with the response to immune checkpoint inhibitors. (B) Feature importance plot. Passing a matrix of SHAP values to the bar plot function creates a global feature importance plot, where the global importance of each feature is taken to be the mean absolute value for that feature across all the given samples. The model’s predictions of the response to immune checkpoint inhibitors are significantly influenced by predictors exhibiting large mean SHAP values. (C) SHAP force plots. The force plots show how the model arrived at its decision. The ensemble model predicts the probability of response to immune checkpoint inhibitors, with the bolded value indicating the likelihood. Pink represents predictors that are positively associated with response, while blue represents predictors that are negatively associated. Instance 1: the SHAP force plot reveals the identification of a “responder” case that was correctly predicted. Instance 2: the SHAP force plot reveals the identification of a case as “nonresponder” by pathomics-driven ensemble model. pMENV, pathomics deep microenvironment features; pNUC, pathomics nucleus features; pSCSD, pathomics single-cell spatial distribution features; SHAP, SHapley Additive exPlanations.

Furthermore, we visualized the prediction process using SHAP. SHAP provides explanations for individual instance predictions, and SHAP values can be combined for a global interpretation. The force plot (figure 5C) and the decision plot (online supplemental figure 14) effectively illustrate how the model reached its decision. In figure 5C, instance 1, SHAP values explain the predicted probability of ICIs efficacy for patient with GC as follows: the baseline is an average prediction probability of 0.29, the probability of predicting benefit from ICIs is 0.73. Notably, the main influential factors that force the patient’s potential benefit from ICIs are pSCSD-788 value of 0.076, pMENV-916 value of −0.138, and a pMENV-534 value of −1.219.

Molecular validation of pathomics-driven ensemble model

To explain the biological foundations of the PDEM, we conducted an in-depth analysis of pathogenomics. The WSIs were processed to determine the predicted classification, and Gene Set Enrichment Analyses were conducted to identify the molecular pathways linked to the pathomics-based ensemble model.

To investigate the transcriptional differences between responders and non-responders identified by the ensemble model, the differentially expressed genes between them were identified (figure 6A). Kyoto Encyclopedia of Genes and Genomes (KEGG) pathway enrichment analysis indicated that these differentially expressed genes were mainly enriched in categories associated with the immune system, cancer hallmarks, and metabolism-related pathways (figure 6B).

Figure 6

Pathogenomics analysis of the pathomics-driven ensemble model. (A) The differentially expressed genes between responders and non-responders. (B) Visualization of the top enriched KEGG pathways by gene counts along with p values in responders versus non-responders. (C) Gene Set Enrichment Analysis delineated the molecular pathways significantly associated with the pathomics-driven ensemble model. (D) Associations between the pathomics-driven ensemble model and immune-related characteristics. ESTIMATE score, immune score, stroma score, and tumor purity were presented in responders versus non-responders. ESTIMATE, Estimation of STromal and Immune cells in MAlignant Tumor tissues using Expression data; GSEA, Gene Set Enrichment Analysis; KEGG, Kyoto Encyclopedia of Genes and Genomes.

Further Gene Set Enrichment Analysis demonstrated that genes highly expressed in the predicted responders showed significant enrichment in immune-related pathways such as complement, interferon gamma response and inflammatory response pathway. Additionally, the predicted responders exhibited enrichment in tumor suppressor pathways, such as the G2M checkpoint and apoptosis pathway. Interestingly, we also observed the enrichment of several metabolism-related pathways. The galactose metabolism pathway was enriched in the predicted responders, whereas the cholesterol biosynthesis pathway was enriched in the predicted non-responders (figure 6C). In general, these results align with the favorable prognosis and response rates observed in the predicted responders, and could indicate potential targets for therapeutic intervention to overcome resistance ICIs in the predicted non-responders.

Subsequently, we investigated the associations between the PDEM and immune-related characteristics. Significant differences were observed in immune score, ESTIMATE score, and tumor purity between responders and non-responders identified by the ensemble model. The responders exhibited higher immune scores and lower ESTIMATE scores and tumor purity (figure 6D). These findings suggest that the ensemble model is driven by molecular-level immune cell infiltration, which holds promise for predicting the efficacy of ICIs.

Discussion

In this study, we developed a PDEM to predict response after immune checkpoint inhibition in patients with GC. Furthermore, we employed SHAP analysis and pathogenomics analysis to interpret the predictions made by ensemble models from diverse perspectives. The crucial role of predicting the potential benefits of ICIs treatment in patients can be effectively accomplished by utilizing the PDEM. The ensemble model demonstrates excellent performance in accurately distinguishing patients who are more likely to benefit from ICIs treatment, as evidenced by favorable AUC, high sensitivity, specificity, PPV, and NPV. Our study offers a dependable and reproducible tool for pretreatment prediction of ICIs response, thereby facilitating the clinical implementation of computer-assisted personalized management for patients diagnosed with GC.

In previous pathomics analyses, the main emphasis has been on establishing imaging surrogates for specific molecular biomarkers, such as MSI, EBV infection status, or PD-L1 expression.20–22 These studies aimed to predict the response to immune checkpoint inhibition by capturing relevant biological information. However, the limited scope of these efforts arises from the fact that these biological characteristics serve as incomplete predictors of ICI response, as they only capture a portion of the intricate and diverse molecular characteristics linked to responsiveness. As a result, the imaging surrogates for these molecular markers are unlikely to surpass the markers themselves, and relying solely on imaging does not contribute to improving prediction accuracy. To overcome this constraint, our goal is to fully exploit the capabilities of imaging through the utilization of an artificial intelligence framework designed for direct outcome prediction.

For the purpose of this study, we extracted three types of quantitative pathomics features: nucleus features, single-cell spatial distribution features, and deep microenvironment features. From a biological standpoint, these three types of pathological features hold distinct biological significance and complement each other. They encompass information on individual cell morphology, cellular spatial distribution, and the overall microenvironment, providing a comprehensive understanding of the tumor microenvironment. We explore three levels of complementary features to fully exploit the pathological image features associated with ICIs.

Another strength of our study is the utilization of pathogenomics analysis to investigate and validate the genetic components of our model. Through this analysis, we identified multiple immune-related pathways and confirmed their significance in the decision-making process of the model. The elucidation of these molecular mechanisms provides valuable insights for clinicians, aiding their understanding of the model and guiding fundamental research on the mechanisms underlying the efficacy of ICIs.

From a clinical perspective, the utilization of the pathomics-based ensemble model holds promise in facilitating personalized treatment decisions for individuals diagnosed with GC. Compared with several molecular predictors, the PDEM demonstrates superior predictive performance. Compared with the CPS, the PDEM shows higher AUC, sensitivity, and specificity. This model can identify potential responders to ICIs among patients with low CPS scores and identify individuals who may not benefit from ICIs within the high CPS score group.

With the increasing prevalence of gastroscopy, pathological examination has become a routine diagnostic procedure for diagnosing GC. Pathological image-based predictive models have a wide range of applications. The PDEM predicts the ICIs response in patients with postoperative GC but also shows potential for selecting candidates who may benefit from neoadjuvant ICIs. Furthermore, compared with conventional histopathological techniques, PDEM has exhibited promising prospects in enhancing the accuracy, repeatability, and efficiency of pathological diagnosis.

Our study has several significant limitations. These include potential bias due to the retrospective, multicenter nature of the study and heterogeneity in data sources. Although our putative model has been validated on two external cohorts, it requires further validation on larger prospective cohorts comprising homogeneous patient populations, treatments, and image modalities. Second, the ensemble model driven by pathomics features demonstrates the potential for predicting the efficacy of neoadjuvant ICIs based on gastric endoscopic pathological slides. However, the model was trained and validated using postoperative pathological slides. It is necessary to further validate the model in a GC cohort undergoing neoadjuvant immunotherapy. Third, efforts should be made to improve the interpretability of the ensemble model. We have conducted pathogenomics analysis pertaining to model predictions. However, we have not explored the correlation between pathomics features and molecular mechanisms. Future investigations aimed at comprehending the underlying mechanisms of these pathomics features and their performance will aid in establishing causal patho-immunogenomic relationships, thereby unraveling the biological intricacies that drive ensemble prediction. Additionally, H&E stained tissue section serves as the foundation of anatomical pathology diagnosis. the heterogeneity inherent in tumors and the limitations in sampling for pathological specimens, primarily due to the potential lack of representativeness in small biopsy specimens, should be taken into consideration.

In conclusion, we have developed and validated a PDEM to predict the effectiveness of immune checkpoint inhibition in patients with GC. Through extensive validation with data from multiple centers, our model has shown its predictive value beyond traditional risk factors. However, further research is needed to confirm these findings and evaluate the clinical applicability of our proposed pathological imaging-based biomarker. Large-scale prospective trials are necessary to refine our results and determine the usefulness of this biomarker in guiding personalized treatment selection for patients with GC.

Data availability statement

Data are available upon reasonable request.

Ethics statements

Patient consent for publication

Ethics approval

This study was approved by the Institutional Review Board of Nanfang Hospital of Southern Medical University (NFEC2023375), Guangdong Provincial Hospital of Chinese Medicine (BF2019-066), and Sun Yat-sen University Cancer Center (SL-B2022-751-02). Informed consent was waived since this was a retrospective study.

Acknowledgments

The authors would like to thank The Cancer Genome Atlas for providing the genomic and pathomics data used in this study.

References

Supplementary materials

  • Supplementary Data

    This web only file has been produced by the BMJ Publishing Group from an electronic file supplied by the author(s) and has not been edited for content.

Footnotes

  • ZH, ZZ and XY contributed equally.

  • Correction notice This article has been corrected since it was first published online. The affiliations for author Zhicheng Zhang have been updated to (2) Department of Gastroenterology, The First Hospital of Jilin University, Changchun, Jilin, China and (3) JancsiLab, JancsiTech, Hongkong, China.

  • Contributors YJ and GL conceived and designed the study. ZH, XY, XW, JW, TZ, WW, and WX acquired the data. ZZ, Zhe Li, SS, and MTI did the statistical analyses. ZZ, AAG, Zihan Li, and LY developed, trained, and applied the ensemble model. WW, WX, GL, and YJ verified the underlying raw data; all authors had access to the data presented in the manuscript; all authors analyzed and interpreted the data; ZH, TZ, and Zhe Li prepared the first draft of the manuscript; YJ conceived and oversaw the project, interpreted data, reviewed the manuscript, and acts as guarantor; and all authors contributed to manuscript preparation.

  • Funding This work was supported by China Postdoctoral Science Foundation (NO:2022M721497), Key-Area Research and Development Program of Guangdong Province (NO: 2021B0101420005), President Foundation of Nanfang Hospital, Southern Medical University (NO: 2023B058), National Natural Science Foundation of China (NO: 82102156), Guangzhou Basic and Applied Basic Research Foundation (NO:2023A04J0453), and Guangdong Provincial Hospital of Chinese Medicie Zhaoyang Talent Project (NO: ZY2022YL27).

  • Competing interests None declared.

  • Provenance and peer review Not commissioned; externally peer reviewed.

  • Supplemental material This content has been supplied by the author(s). It has not been vetted by BMJ Publishing Group Limited (BMJ) and may not have been peer-reviewed. Any opinions or recommendations discussed are solely those of the author(s) and are not endorsed by BMJ. BMJ disclaims all liability and responsibility arising from any reliance placed on the content. Where the content includes any translated material, BMJ does not warrant the accuracy and reliability of the translations (including but not limited to local regulations, clinical guidelines, terminology, drug names and drug dosages), and is not responsible for any error and/or omissions arising from translation and adaptation or otherwise.