MedElevator Войти в исследования
← Поиск публикаций

DOI 10.1002/2056-4538.70113

Медицинская библиотека · The journal of pathology. Clinical research · 2026

Artificial intelligence-assisted histopathological diagnosis of endocervical gastric-type adenocarcinoma: a multicenter model development and validation study.

Yang Jing, He Qiming, Peng Jing, Wang Yizhi, Li Jiawen, Li Haoxiang, Liu Yan, Wang Yuxiang, Hu Ajin, Ling Xitong, Zhang Yingwen, Ouyang Minxi, Chen Xinrui, Zhu Lianghui, Liu Yiqing, Zhang Yexing, Zeng Siqi, Huang Qiang, Wang Zihan, Guan Tian, Liu Yueping, Chen Ling, Ding Yan, He Yonghong, Liu Congrong

СтатьяМногоцентровое исследованиеВалидационное исследованиеПеревод в очереди

Аннотация

Endocervical gastric-type adenocarcinoma (GAS) is one of the most aggressive subtypes of cervical cancer and is frequently underdiagnosed due to morphological ambiguity, leading to delayed diagnosis. Despite the availability of molecular and genomic assays, their high cost, complexity, and limited reproducibility restrict clinical use. This study therefore proposes a highly sensitive artificial intelligence (AI)-assisted diagnostic system for GAS based exclusively on H&E-stained histopathological images. We included 309 slides from 96 GAS cases collected at Peking University Third Hospital from January 2018 to January 2025, representing the largest GAS cohort reported to date for AI research. In addition, we incorporated other morphologically analogous diseases, encompassing a total of 1,320 slides sourced from four categories: normal cervical mucosa (NORM), benign endocervical lesion entities (BELE), HPV-associated adenocarcinoma (HPVA), and endometrioid carcinoma with mucinous differentiation (ECMD). We developed GASPath, based on a novel multiple instance learning framework that efficiently captures fine-grained morphological variations from H&E-stained images. Beyond internal validation, GASPath was evaluated across 12 independent retrospective cohorts and further subjected to large-scale real-world validation on more than 7,000 samples from March 2024 to April 2025. Across three stages, GASPath demonstrated high performance. In internal validation (Stage I), it achieved an accuracy of 0.980 (95% CI 0.977-0.983) and an ROC-AUC of 0.995 (95% CI 0.994-0.997). In external validation (Stage II), the sensitivity reached 0.902 and improved to 0.968 with proposed strategies. For biopsy samples, GASPath achieved an ROC-AUC of 0.990 (95% CI 0.984-0.997). In large-scale real-world deployment (Stage III, n = 7,056), GASPath achieved a balanced accuracy of 0.953, with 100% sensitivity for GAS (45/45 cases correctly identified). The heatmaps highlight morphological features of GAS that are easily underestimated, such as irregular, angulated glands, subtle loss of nuclear polarity, and mild cytologic atypia, which show substantial morphological overlap with other diagnostic categories. GASPath enables high-sensitivity detection of GAS in routine H&E-stained slides, obviating the need for extensive auxiliary testing while preventing underdiagnosis and misdiagnosis. This advancement addresses a critical gap by streamlining diagnostic workflows without compromising accuracy. Its implementation could enable cost-effective, scalable AI-assisted diagnostics, potentially transforming the early detection and management of this aggressive cancer subtype.

Другие публикации по теме

Uterine Cervical NeoplasmsAdenocarcinomaArtificial IntelligenceReproducibility of Results
Для цитирования: Yang Jing, He Qiming, Peng Jing, Wang Yizhi, Li Jiawen, Li Haoxiang, Liu Yan, Wang Yuxiang, Hu Ajin, Ling Xitong, Zhang Yingwen, Ouyang Minxi, Chen Xinrui, Zhu Lianghui, Liu Yiqing, Zhang Yexing, Zeng Siqi, Huang Qiang, Wang Zihan, Guan Tian, Liu Yueping, Chen Ling, Ding Yan, He Yonghong, Liu Congrong. Artificial intelligence-assisted histopathological diagnosis of endocervical gastric-type adenocarcinoma: a multicenter model development and validation study.. The journal of pathology. Clinical research. 2026. DOI: 10.1002/2056-4538.70113.

Перевод полного текста: Перевод в очереди

Полный текст источника

This is an open access article under the terms of the http://creativecommons.org/licenses/by-nc-nd/4.0/ License, which permits use and distribution in any medium, provided the original work is properly cited, the use is non‐commercial and no modifications or adaptations are made.

Текст сохранён. Часть иллюстраций пока доступна только в первоисточнике; загрузка будет проверена повторно.

Introduction

Endocervical gastric‐type adenocarcinoma (GAS) is a highly aggressive subtype of cervical adenocarcinoma, with a 5‐year survival rate markedly lower than that of HPV‐related adenocarcinoma (42% versus 91%; Figure 1A1 ) [ 1 , 2 , 3 ]. GAS represents the most common subtype of non‐HPV‐associated cervical adenocarcinoma and the second most common cervical adenocarcinoma overall, accounting for approximately 10% of all adenocarcinomas in Western countries and up to 25% in Asian populations [ 4 ]. With the widespread adoption of HPV vaccination, the relative incidence of GAS is expected to increase (Figure 1A2 ) [ 5 , 6 , 7 ]. Diagnostic ambiguity is the central factor underlying GAS's clinical stealth (Figure 1A3 ), with 59% cases detected at stage II or later, leading to a substantial gap between its potential and actual clinical detection rate (Figure 1A4 ) [ 8 ]. Accurate and early pathological diagnosis of GAS is therefore essential for optimizing therapeutic decision‐making and improving patient survival [ 9 ].

Иллюстрация — в первоисточнике ↗

Figure 1 Overview of this study. (A) The motivation of this study. (B) The chain of diagnosis for GAS in routine practice. (C) The AI‐driven chain of diagnosis for GAS (biopsy and radical samples). GASPath inputs H&E‐stained whole‐slide images, processes them through a multi‐agent‐aware attention mechanism that jointly encodes local morphology and contextual dependencies, and outputs diagnostic probabilities with attention heatmaps highlighting regions of pathological interest for clinician review. (D) Overview of GASPath‐driven diagnosis. (E) Overview of stage I. (F) Overview of stage II. (G) Overview of biopsy‐based study. (H) Overview of stage III.

Morphology‐based histopathological evaluation remains the cornerstone of GAS diagnosis, yet several challenges persist (Figure 1B ). First, GAS comprises a histologic continuum extending from the deceptively bland morphology of minimal deviation adenocarcinoma (MDA) to more pronounced cytologic and architectural atypia, with MDA representing a well‐differentiated variant that is almost indistinguishable from normal tissue. Well‐differentiated GAS can closely mimic benign glandular lesions, whereas poorly differentiated GAS may resemble HPV‐associated adenocarcinomas [ 10 ]. Second, given that GAS has only recently been recognized as a distinct histological subtype of cervical adenocarcinoma in the World Health Organization classification of female genital tract tumors and remains relatively rare, its optimal clinical management has not yet been clearly defined, contributing to its underestimation in clinical practice [ 11 ]. Third, sampling limitations in colposcopy‐guided cervical biopsies often restrict tissue depth, failing to capture the infiltrative growth typical of GAS, which tends to extend inward rather than form exophytic surface lesions. Although molecular assays such as immunohistochemistry (IHC), HPV RNA in situ hybridization (ISH), and next‐generation sequencing (NGS) provide complementary information for GAS diagnosis [ 12 ], these methods are expensive, labor‐intensive, and often unavailable in low‐resource settings – and even then, they are not always conclusive.

Artificial intelligence (AI) has achieved major progress in augmenting histopathological diagnosis across diverse diseases [ 13 , 14 , 15 , 16 , 17 , 18 ]. Despite the rapid emergence of pathology‐specific foundation models [ 19 , 20 , 21 ] and their demonstrated success in prognosis prediction, therapeutic response modeling, and genomic status inference [ 22 ], their applicability to challenging morphologic diagnostic entities including GAS remains limited. This scarcity is primarily due to two major challenges: (1) the rarity of GAS limits the availability and morphological diversity of datasets; and (2) the pronounced histological heterogeneity requires more intrinsic, fine‐grained pathological representations for reliable clinical‐grade AI diagnosis.

To address these challenges, we developed GASPath, a multiple instance learning (MIL) framework capable of diagnosing GAS directly from hematoxylin and eosin (H&E)‐stained slides (Figure 1C ). GASPath integrates a multiagent attention mechanism that effectively encodes fine‐grained morphological and contextual information for highly sensitive subtype discrimination (Figure 1D ). In Stage I, GASPath was trained and evaluated on an internal retrospective cohort (Figure 1E ). In Stage II, its scalability was validated across 12 external retrospective cohorts (Figure 1F ). Additionally, we independently assessed its generalizability on biopsy‐based early screening (Figure 1G ). Finally, in Stage III, we performed a large‐scale real‐world validation using 7,056 minimally curated consultation slides, demonstrating its clinical‐grade applicability (Figure 1H ). Our findings show that GASPath achieves high diagnostic accuracy and sensitivity in histopathology‐based GAS recognition, with robust generalization to biopsy specimens. These results suggest that GASPath may serve as an effective assistive tool for early detection and screening, particularly in resource‐limited settings, thereby facilitating timely intervention and improving patient prognosis. This work lays the foundation for broader clinical translation of AI in rare cervical adenocarcinomas.

Materials and methods

Ethics approval

The study protocol for data collection and the use of histopathology images, pathology reports, and clinical information was approved by the Institutional Review Board of Peking University Third Hospital (IRB approval No. IRB00006761‐M20250615). The requirement for informed consent was waived for this retrospective analysis. All procedures were conducted in accordance with the principles of the Declaration of Helsinki.

Study design and population

A major challenge in AI research on GAS is the scarcity of data, owing to its low incidence and detection rate. To enable the development and validation of GASPath, we established three independent cohorts. First, a total of 1,629 histopathology slides – including 309 slides from 96 pathologically confirmed GAS cases – were collected from Peking University Third Hospital (PK3) from January 2018 to January 2025 for model training and internal validation. Multiple slides from the same case were obtained from distinct paraffin blocks to prevent data leakage during validation. Second, 249 GAS slides from 12 external medical centers were collected to assess cross‐center generalization. Finally, a large‐scale real‐world cohort comprising 7,056 cervical slides, including 45 GAS slides, was prospectively collected from PK3 consultations between March 2024 and April 2025. Together, these datasets provided a comprehensive foundation for evaluating GASPath's clinical‐level diagnostic performance.

Internal retrospective cohort

The internal cohort was constructed from PK3. It included 96 HPV‐negative, surgically confirmed GAS cases, representing the largest GAS cohort to date used for AI research. The dataset comprised 279 radical resection slides and 30 biopsy slides (supplementary material, Table S1 ). Clinicopathological features of this cohort were representative of real‐world GAS populations, with 80% of patients diagnosed at FIGO stage II–IV, 63% presenting with metastasis, 68% with recurrence, and nearly 70% under the age of 50 (supplementary material, Table S3 ).

To enhance the discriminative learning of GAS‐specific features, four additional categories totaling 1,320 slides were included for multi‐class differentiation (Figure 1E ; supplementary material, Table S2 ).

NORM: Well‐differentiated GAS – especially the minimal deviation subtype – may closely resemble normal glands, with mild atypia and abundant clear or eosinophilic cytoplasm, posing diagnostic challenges.

BELE: Tunnel cluster and microglandular hyperplasia were included in this category. Although morphologically distinct from GAS, certain subtypes (e.g. Type A tunnel cluster) may mimic well‐differentiated GAS and are useful for fine‐grained discrimination.

HPVA: Poorly differentiated gastric GAS may form solid nests or single‐cell infiltrations, exhibit a high nuclear‐to‐cytoplasmic ratio and active mitotic figures, and is often indistinguishable from HPVA.

ECMD: The mucinous component overlaps with GAS morphology and may appear in cervical specimens during differential diagnosis.

All slides were digitized using the SQS‐600P microscopy imaging system (Shenzhen Shengqiang Technology Co., Ltd., Shenzhen, PR China) at 80 × equivalent magnification (0.105 μm/pixel). The resulting whole‐slide images were stored in SDPC format.

External cohorts

To comprehensively assess the model's generalizability across institutions, additional GAS slides were collected from 12 independent hospitals, as detailed in supplementary material, Table S1 .

Large‐scale real‐world cohort

To evaluate the real‐world clinical utility of GASPath, all consultation cases from PK3 between March 2024 and April 2025 containing cervical tissue sections were included, regardless of diagnostic outcome. Slides containing normal cervical tissue in cases without cervical lesions were also included and labeled as NORM. This cohort contained 7,056 digitized slides, encompassing both the five diagnostic categories from the internal dataset and numerous additional unseen categories (supplementary material, Table S12 ; supplementary material, Section S2.2 ). The deployment cohort comprised 7,056 consecutive, unselected clinical specimens collected during routine diagnostic practice. Although detailed diagnostic distributions of all non‐GAS cases were not prospectively recorded, the cohort represented the full spectrum of cervical specimens encountered in real‐world clinical workflows, thereby providing substantial morphological diversity for deployment evaluation.

Diagnostic criteria

The diagnosis of GAS followed the morphological definitions established by the 2020 WHO Classification and the International Endocervical Adenocarcinoma Criteria and Classification system [ 11 ]. The hallmark feature is the presence of ‘gastric‐type’ glands resembling pyloric or fundic mucosa under low power, with confirmation at high magnification based on the cytoplasmic ‘gastric phenotype’ Typical characteristics include diffuse or angulated glands deeply infiltrating the cervical stroma, and abundant eosinophilic or foamy cytoplasm. Nuclear atypia is mild, with few mitoses, creating a paradoxical ‘well‐differentiated but deeply invasive’ appearance. It is important to emphasize that while a subset of GAS may exhibit morphological features overlapping with HPVA – such as absence of cytoplasmic mucin, significantly increased nuclear‐to‐cytoplasmic ratio, prominent nuclear atypia, elevated mitotic activity, and increased apoptotic bodies. All cases in the present study have been validated through IHC (e.g. p16, Claudin18.2, p53, MUC6) and HPV in situ hybridization testing. For the internal and real‐world cohorts, diagnoses were independently reviewed by three senior pathologists (JY, YXW, and CRL) using both H&E morphology and ancillary tests (IHC, ISH), and cases were included only upon consensus. For external cohorts, slides referred to PK3 were re‐evaluated by the same experts under identical criteria. Other histological categories in the internal cohort were similarly reviewed and confirmed through consensus based on retrospective reports.

Development of GASPath

GASPath consists of two main stages – pre‐embedding and aggregation – as illustrated in Figure 1C . Given a histopathological image, GASPath outputs two components: the predicted probabilities across five diagnostic categories and the global distribution of attention values.

Pre‐embedding

In the pre‐embedding stage, the process includes tiling and embedding (see supplementary material, Section S3.1 ). During tiling, the foreground tissue regions are divided into small patches (instances) at a fixed resolution (set as 0.84 μm/pixel) and patch size (224 × 224 pixels), aiming to simultaneously preserve fine‐grained, cell‐level features and contextual information of the tumor microenvironment. During embedding, GASPath employs an instance‐level encoder derived from the pathology foundation model Virchow2 [ 23 ] to extract discriminative features. This encoder can efficiently leverage the morphological priors acquired during large‐scale pathological image pretraining to capture the characteristics of H&E‐stained pathology images.

Feature aggregation

The aggregation stage integrates an agent‐aware attention mechanism to efficiently model long‐range contextual dependencies and achieve slide‐level representations (supplementary material, Section S3.2 ). The multi‐agent‐aware module introduces residual agents and a soft‐mask–based attention mechanism to enhance contextual interactions between instances. Agents replace the traditional queries, keys, and values as carriers for attention computation, enabling higher signal‐to‐noise ratio attention and refined instance features in a sparser feature space through additional, lower‐dimensional matrix transformations. Moreover, the soft‐mask–based filter further removes redundant information from local features, allowing the aggregation to overcome constraints imposed by semantic ambiguities in local feature representations. Compared with conventional attention aggregation, GASPath leverages agents for feature dimensionality reduction and attention value propagation, suppressing redundant signals inherent in standard self‐attention and highlighting salient pathological features, thereby providing more accurate representations for precise GAS diagnosis.

Following pre‐embedding and aggregation, the decision module (supplementary material, Section S3.3 ) maps the de‐redundant slide‐level embeddings to prediction probabilities across five classes: NORM, BELE, GAS, HPVA, and ECMD. During training, model convergence and parameter updates were optimized using the cross‐entropy loss (supplementary material, Section S3.4 ), and hyperparameters are detailed in supplementary material, Section S3.5 . During inference, attention maps were visualized using an agent‐based attention visualization strategy (supplementary material, Section S4.4 ). GASPath provides both diagnostic accuracy and interpretability through attention‐based visualization. For each stage of evaluation, attention maps were generated, allowing the attention value corresponding to each local instance to be superimposed on the original WSI, thus high‐lighting discriminative regions used by the model for diagnosis. Additionally, the top 10 patches with the highest attention scores were displayed for visual inspection. The computing hardware and software are detailed in supplementary material, Section S4.5 .

System evaluation

Comparison models

To demonstrate the superiority of GASPath, we compared it with several representative and well‐established MIL baselines – CLAM (supplementary material, Section S4.1.1 ), TransMIL (supplementary material, Section S4.1.2 ), and AB‐MIL (supplementary material, Section S4.1.3 ) – which are considered strong‐performing state‐of‐the‐art models.

Evaluation metrics

Model performance was comprehensively assessed using multiple metrics, including accuracy, F1 score, ROC‐AUC, PR‐AUC, and Cohen's κ . For the internal validation cohort, all metrics were calculated. For the external retrospective study, sensitivity was used as the primary metric, as only GAS cases were inferred. For the large‐scale real‐world study, the same metrics as in the internal validation were applied. The detailed computation of these metrics is provided in supplementary material, Section S4.3 .

Design of evaluation stages

For the internal retrospective study (Stage I), 10‐fold cross‐validation was conducted using the internal cohort. All data were split into training, validation, and testing sets with a 6:2:2 ratio, stratified by category. After each training epoch, validation performance was evaluated, and the checkpoint with the highest validation ROC‐AUC was selected for testing within that fold. Overall performance was obtained by averaging across all folds. For multi‐class metrics, average and overall corresponded to macro‐averaging and weighted‐averaging, respectively. All baseline models followed the same data split and experimental protocol for fair comparison.

To evaluate the generalization ability of GASPath, we conducted external multicenter readiness assessment (Stage II). For each model, the checkpoint with the best validation ROC‐AUC was used for inference, mimicking real‐world deployment. To explore threshold effects on model stability, three thresholding strategies were examined: default (argmax), sensitivity‐boosted, and sensitivity‐first. The default strategy classified a slide as GAS when its predicted probability was the maximum among the five classes, implying that probabilities above 0.2 were necessary and above 0.5 sufficient for diagnosis. The sensitivity‐boosted strategy fixed the GAS threshold at 0.2, achieving an ideal sensitivity and specificity of 0.951 and 0.984, respectively (Figure 2D,E ). The sensitivity‐first strategy adopted a more relaxed threshold of 0.06, resulting in an ideal sensitivity and specificity of 0.967 and 0.983, respectively. All baseline models were validated following the same protocol. Thresholds for sensitivity‐boosted (0.20) and sensitivity‐first (0.06) strategies were pre‐determined from internal validation and held constant across all external cohorts.

Иллюстрация — в первоисточнике ↗

Figure 2 Performance on internal retrospective study. (A–C) Accuracy, F1 score, and ROC‐AUC of GASPath on 10 folds. (D, E) Precision‐recall curves of GASPath on 10 folds for five‐category and two‐category tasks. (F) t‐SNE visualization of embeddings. (G–L) Normalized confusion matrix of GASPath prediction on 10 folds for five‐category and two‐category tasks (average, best validation fold, and best test fold). (M–Q) Visualization of attention maps of samples from each category, namely NORM, BELE, GAS, HPVA, and ECMD. Each subfigure consists of the original image and its heatmap (upper half), along with the patches corresponding to the top 10 attention values (lower half).

The large‐scale real‐world study (Stage III) aimed to evaluate the safety and sensitivity of GASPath in a true clinical deployment setting. This cohort comprised more than 7,000 slides containing numerous unseen or open categories. Accordingly, we performed two complementary analyses. First, overall performance – including GAS screening sensitivity across all slides – was assessed to evaluate GASPath's real‐world alerting capability. Second, we separately analyzed performance on the five internal categories to interpret how GASPath differentiates GAS from other entities in a broader and more complex distribution. Inference was conducted using the model weights that achieved the best validation ROC‐AUC. To inform clinical deployment, we additionally evaluated GASPath under alternative probability thresholds beyond the default argmax rule. All comparison models followed the same evaluation pipeline.

Additionally, to assess the unique diagnostic value of GASPath on biopsy samples, biopsy‐based early screening analyses were conducted on both internal and external datasets from Stage I and II. For the internal cohort, biopsy samples from each test fold were separately evaluated and aggregated for overall assessment. For the external cohort, biopsy slides from all 12 centers were evaluated using the best‐performing GASPath model from internal validation. Baseline models were tested under identical conditions.

Ablation study

To systematically evaluate the contribution of each module, we conducted a comprehensive ablation study from four perspectives. All hyperparameters were kept identical except for the component being ablated. Unless otherwise specified, the magnification (10 × ), encoder (Vir‐chow2), and dataset splitting ratio (6:2:2) were fixed. Ablations were performed on the internal cohort, comparing GASPath with the second‐best baseline (CLAM), including module ablation, magnification ablation, encoder ablation and data‐split ablation (supplementary material, Section S4.2 ). Each experiment was evaluated using 10‐fold cross‐validation.

Statistical analyses

For each model, 95% confidence intervals (CIs) for metrics (accuracy, F1 score, ROC‐AUC, PR‐AUC) were calculated using the Clopper–Pearson method. ROC curves were generated by varying probability thresholds, and AUC values were used to quantify diagnostic performance. Two‐sided unadjusted p values <0.05 were considered statistically significant. To compare the distribution of predicted GAS probabilities between true‐positive and false‐positive slides, we applied the Kolmogorov–Smirnov (K–S) test (scipy.stats.ks_2samp) and the Mann–Whitney U test (scipy.stats.mannwhitneyu), both with default parameters ( https://github.com/scipy/scipy ).

Results

Overview of the study

We evaluated the diagnostic performance of GASPath, an AI‐assisted model for differentiating GAS, across up to 13 hospitals in China. This study encompasses the largest GAS cohort to date in AI research (supplementary material, Table S1 ), conducted in three stages. In Stage I, we performed an internal retrospective analysis using a five‐category cohort from Peking University Third Hospital (PK3). The model was trained to discriminate among normal and chronic mucosal inflammation (NORM), tunnel cluster and microglandular hyperplasia (BELE), GAS, HPV‐associated endocervical adenocarcinoma (HPVA), and endometrioid carcinoma with mucinous differentiation (ECMD) (supplementary material, Table S2 ). In Stage II, we assessed cross‐center generalizability using an external retrospective GAS‐only cohort ( n = 249) collected from 12 independent medical centers across diverse regions. This step evaluated the robustness of the model against institutional and staining variability. We further examined model performance on biopsy samples ( n = 205 from PK3; n = 19 from external centers), demonstrating that GASPath effectively extends diagnostic capability to early‐stage specimens, suggesting its potential to advance diagnostic screening toward earlier detection. In Stage III, we deployed GASPath on real‐world clinical data collected between March 2024 and April 2025 ( n = 7,056), in which GAS represented only 0.6% of all cases ( n = 45). This large‐scale evaluation mirrors the natural prevalence of GAS in routine pathology practice and provides a stringent test of the model's sensitivity and reliability in real‐world screening. Baseline demographic characteristics of all cohorts are summarized in supplementary material, Table S3 .

Development of the GASPath system

To achieve clinical‐grade diagnosis of GAS solely from H&E slides, we constructed an internal retrospective dataset at the Department of Pathology, Peking University Third Hospital (PK3). We developed a multi‐agent‐aware multiple instance learning framework, which leverages a pathology‐specific foundation model to encode local morphological representations and employs a multi‐agent‐based attention mechanism to model contextual dependencies, enabling accurate slide‐level prediction on both surgical and biopsy specimens. Conceptually, this mechanism operates analogously to a panel of subspecialty pathologists: multiple ‘expert agents’ each attend to distinct morphological facets while residual connections allow iterative refinement of their assessments based on contextual feedback from neighboring regions, and a soft‐mask denoising filter suppresses irrelevant areas without discarding subtle diagnostic cues. Compared with conventional diagnostic approaches, GASPath provides a low‐cost and efficient solution that ensures high sensitivity in pathological diagnosis of GAS. Detailed model architecture is described in supplementary material: Section 3 .

Stage I: internal model validation

To evaluate the clinical applicability of GASPath, we curated an internal retrospective cohort at PK3 comprising 309 slides of GAS and four morphologically similar entities prone to diagnostic confusion (see supplementary material, Section S2 ). Results are summarized in Figure 2 .

Overall, GASPath achieved an accuracy of 0.980 (95% CI 0.977–0.983), F1 score of 0.935 (95% CI 0.923–0.946), and ROC–AUC of 0.995 (95% CI 0.994–0.997) on the internal cohort (Figure 2A–C ). Precision–recall curves for both the five‐category and GAS‐versus‐non‐GAS (two‐category) tasks demonstrated strong discriminative ability, with PR–AUCs of 0.978 (95% CI 0.968–0.988) and 0.989 (95% CI 0.983–0.994), respectively (Figure 2D,E ; supplementary material, Table S10 ). Across all categories, Cohen's κ reached 0.926 for the five‐category and 0.947 for the two‐category tasks (Figure 2G,H ). Most misclassifications occurred in HPVA, followed by NORM and BELE. GASPath achieved a sensitivity of 0.942 for detecting GAS and a specificity of 0.994 for excluding other categories (Figure 2F ). Performance varied slightly by category. The model performed best on ECMD, achieving accuracy 0.993 (95% CI 0.989–0.998), F1 = 0.944 (95% CI 0.911–0.978), and ROC–AUC = 0.995 (95% CI 0.994–0.997) (Figure 2A–C ). Nevertheless, 2.6% of ECMD cases were misclassified as GAS (Figure 2F ). In the best validation fold, Cohen's κ = 0.910 for the five‐category and 0.959 for the two‐category tasks (Figure 2I,J ). Interclass boundaries were clearly separated, and only one GAS case was misclassified as NORM (Figure 1F ). The upper‐bound performance reached κ = 0.977 and 0.970 for the respective tasks (Figure 2K,L ).

Visualization results of representative cases are shown in Figure 2M–Q . In Figure 2M (NORM), attention was concentrated on cervical mucinous glands and stroma characterized by single‐layer mucinous columnar epithelium with basal nuclear polarity, bland cytology, and stromal inflammatory infiltration. In Figure 2N (BELE), the model highlighted densely packed proliferative glands with glandular dilatation and round lumina, lined by columnar mucinous epithelium with preserved polarity and no nuclear atypia. In Figure 2O and supplementary material, Figure S2 (GAS), attention focused on irregular, angulated tumor glands within desmoplastic stroma, surrounded by fibroblastic reaction and inflammatory infiltration with loss of nuclear polarity. Tumor cells in Figure 2O exhibited high nuclear‐to‐cytoplasmic ratio and marked nuclear atypia, while those in supplementary material, Figure S2 displayed abundant clear or eosinophilic cytoplasm and distinct borders. Figure 2P (HPVA) highlighted papillary and tightly packed glandular structures with reduced mucin, prominent nuclear atypia, coarse chromatin, and frequent mitoses. Figure 2Q (ECMD) focused on cribriform and delicate papillary architectures with multilayered epithelium. Unlike GAS, ECMD glands retained smooth contours and mucin‐rich cytoplasm with vesicular nuclei and prominent nucleoli.

To benchmark GASPath, we compared it with state‐of‐the‐art MIL baselines, including CLAM [ 24 ], TransMIL [ 25 ], and AB‐MIL [ 26 ]. Details are provided in supplementary material, Table S1 . Across all metrics, GASPath consistently outperformed baselines in accuracy, F1 score, and ROC–AUC (supplementary material, Tables S4–S6 ). For the three‐class discrimination task involving GAS, GASPath achieved the highest per‐class accuracy, with a F1 score gain of +1.2 pp ( p = 0.018) and the greatest improvement for the BELE class (+3.5 pp, p = 0.014). While ROC–AUC values were numerically close, GASPath ranked first in four of five pairwise comparisons. Confusion matrix analyses (supplementary material, Figure S4 ) revealed balanced performance across all classes, whereas other models, especially TransMIL and AB‐MIL, exhibited pronounced degradation on BELE. Although some baselines achieved perfect sensitivity for GAS, this was at the cost of markedly reduced specificity for others. In contrast, GASPath maintained equilibrium, sustaining GAS sensitivity at 0.984 without compromising specificity. Representative visualizations are provided in supplementary material, Section S1.1 .

Stage II: external multicenter assessment

To evaluate the generalizability and deployment readiness of GASPath, we tested the model on 12 independent external cohorts collected from geographically and clinically diverse centers. These datasets encompassed variations in staining, scanning, and case composition, reflecting real‐world heterogeneity. GASPath maintained high diagnostic sensitivity and stable performance across centers, indicating strong cross‐institutional robustness and readiness for broader clinical application (supplementary material, Table S1 ; Figure 3 ).

Иллюстрация — в первоисточнике ↗

Figure 3 Performance on external retrospective study. (A) Comparison of sensitivity of different strategies. * indicates ideal performance. For example, sensitivity* refers to the theoretical sensitivity achieved under the specific strategy (i.e. the diagnostic threshold for GAS), calculated from the predicted probabilities across all folds in the internal validation, and can serve as a performance reference for the current strategy. (B) Sensitivity of GASPath on 12 external cohorts. Red bars, default argmax strategy; blue bars, sensitivity‐boosted strategy (threshold = 0.20); pink bars, sensitivity‐first strategy (threshold = 0.06). The black line with circles indicates the number of GAS cases (‘N’) in each cohort, plotted against the right y ‐axis. (C) Distribution of output probabilities of GASPath for GAS. (D–O) Visualization of attention maps of samples from each cohort, namely SDC, TJH, QSU, LPC, HMU, DWC, NWC, DMU, SDH, XPH, XMH, and XP4.

Across all evaluation strategies, GASPath consistently achieved a sensitivity exceeding 0.9 (Figure 3B ). Under the sensitivity‐boosted strategy (threshold = 0.200), GASPath achieved a sensitivity of 0.954 while maintaining a specificity of 0.984. When applying the sensitivity‐first strategy (threshold = 0.060), the model reached an ideal sensitivity of 0.967 (actual 0.968), with specificity reduced by only 0.1% compared with the sensitivity‐boosted setting. As shown in Figure 3B , under the default argmax strategy, GASPath achieved a sensitivity above 0.9 in seven centers and above 0.95 in five centers, with an average of 0.931 across the three largest cohorts. Notably, sensitivity was higher than that in internal validation in five external centers. Under the sensitivity‐boosted configuration, performance remained stable, with sensitivity exceeding 0.8 in all centers and above 0.95 in 8 of them (average 0.958 in the three largest centers). The sensitivity‐first configuration achieved over 0.95 sensitivity in 10 centers and reached 100% in more than half of them, averaging 0.988 across the three largest cohorts, while maintaining nearly identical specificity. Prediction probability distributions for all GAS cases are shown in Figure 3C . Most predictions (87.5%) were concentrated above 0.7, with fewer than 10% below 0.5 and only 3.63% below 0.1. These results collectively indicate that, despite substantial heterogeneity across centers and staining variations, GASPath maintains robust and transferable diagnostic performance.

Representative visualizations from different centers are shown in Figure 3D–O . GASPath demonstrated consistent interpretability across external datasets, focusing attention on disorganized glandular structures and fibroproliferative stromal regions characterized by irregular, angulated glands, fibroblastic proliferation, inflammatory infiltration, and loss of epithelial polarity. Most samples displayed abundant cytoplasm with clear or lightly eosinophilic appearance and distinct cell borders (e.g. SDC, TJH, QSU, LPC, HMU, DWC, NWC, DMU, XMU, XP4), whereas a subset showed higher nuclear‐to‐cytoplasmic ratios and marked nuclear atypia (e.g. SDH, XPH). These morphological patterns partially overlapped with those observed in HPVA.

To further verify generalizability, GASPath was benchmarked against representative MIL‐based models (supplementary material, Section S4.1 ). GASPath achieved the highest mean sensitivity (0.902), outperforming CLAM, TransMIL, and AB‐MIL by 5.41%, 2.17%, and 0.90%, respectively, and ranked first in 8 out of 12 centers. Although AB‐MIL slightly exceeded GASPath in overall sensitivity by 0.40%, this advantage was primarily driven by several large centers. To evaluate robustness, we compared the sensitivity decline from internal to external validation (supplementary material, Table S11 ). GASPath exhibited the smallest performance drop, 5.1% and 6.0% less than CLAM, whereas TransMIL showed a pronounced reduction, and AB‐MIL displayed weaker cross‐domain consistency relative to GASPath.

Evaluation of early diagnostic capability on biopsy samples

The early screening of GAS is of great clinical significance. However, it remains highly challenging to make a definitive diagnosis of GAS in clinical practice using biopsy specimens obtained by colposcopy‐guided cervical biopsy, since the extremely limited amount of tissue often leads to incomplete structural information. We evaluated the performance of GASPath in both internal and five external cohorts containing biopsy samples for early screening validation, with detailed data summarized in supplementary material, Table S1 .

Figure 4A–E shows the results of GASPath on the internal cohorts. Overall, GASPath achieved an accuracy of 0.963 (95% CI 0.945–0.981), an F1 score of 0.901 (95% CI 0.853–0.950), and an ROC‐AUC of 0.990 (95% CI 0.984–0.997) (Figure 4A–C ), which were close to those obtained on radical specimens [0.982 (95% CI 0.978–0.987), 0.939 (95% CI 0.921–0.956), and 0.996 (95% CI 0.995–0.998), respectively]. Figure 4D,E shows the PR curves for five‐category and two‐category classification, with PR‐AUCs of 0.965 (95% CI 0.941–0.989) and 0.970 (95% CI 0.944–0.996), respectively (Figure 2D,E ), only 1.6% and 2.1% lower than those on radical specimens. This demonstrates that GASPath can achieve nearly equivalent performance on limited biopsy tissues compared to complete specimens (supplementary material, Table S10 ). Figure 4F presents the results of GASPath on the external cohorts. Overall, the model achieved an overall sensitivity of 0.834 and an average sensitivity of 0.910 across biopsy samples. Specifically, GASPath maintained 100% sensitivity in the HMU, DWC, and NWC cohorts, while misclassifying only two and one samples in the SDC and LPC cohorts, respectively. By contrast, GASPath demonstrated more stable performance on radical specimens, with sensitivities approaching or exceeding 0.9 across most centers except HMU. The predicted probability distributions are shown in supplementary material, Figure S11 .

Иллюстрация — в первоисточнике ↗

Figure 4 Results on the biopsy samples. (A–C) Comparison of distributions of the model for biopsy diagnosis on multiple centers. (D, E) Precision‐recall curves of GASPath on 10 folds for five‐category and two‐category tasks. (F) Sensitivity of GASPath on five external cohorts (biopsy and radical samples). (G–L) Visualization of GASPath on biopsy samples, namely PK3, SDC, LPC, HMU, DWC, and NWC.

Figure 4G–L illustrates visualization results on biopsy samples. The results show that the attention primarily focuses on disorganized glandular architectures. The glands exhibit proliferation and dense arrangement, occasionally forming papillary structures. Fibroblastic stromal reaction and inflammatory cell infiltration are observed around the glands. The tumor epithelium shows disrupted polarity, with tumor cells exhibiting low nucleus‐to‐cytoplasm ratios, abundant cytoplasm that is clear, lightly eosinophilic, or foamy, and well‐defined cell borders. Some nuclei display significant atypia, and mitotic figures and apoptotic bodies can occasionally be observed.

We further compared the performance of different models on the internal cohort (supplementary material, Tables S7–S9 ). On biopsy samples, CLAM performed slightly better than GASPath. Compared with TransMIL and AB‐MIL, GASPath outperformed them by up to 1% in accuracy, 1% in F1 score, and 0.1% in ROC‐AUC. Benefiting from its comprehensive superiority on radical specimens, GASPath achieved the best overall performance among all models. For example, GASPath achieved up to a 2.7% improvement in F1 score for NOMR ( p = 0.045) and a 1.3% improvement in overall F1 score ( p = 0.013). Detailed comparisons are provided in supplementary material, Figures S6 and S7 . In the external validation, the limited sample sizes of individual cohorts introduced some constraints on comparing actual model performance on biopsies. Nonetheless, GASPath demonstrated comparable performance to CLAM and AB‐MIL, with overall and average sensitivities of 0.833 and 0.910, respectively (supplementary material, Figure S8 ). TransMIL, which failed to detect one positive case in the HMU cohort, showed the lowest numerical performance among models.

Stage III: large‐scale real‐world deployment and clinical evaluation

To further verify the generalization capability of the model, we collected 7,056 slides through the PK3 consultation workflow between March 2024 and April 2025 and comprehensively evaluated the performance of GASPath. The dataset construction and detailed descriptions are provided in supplementary material, Table S12 and Section S2.2 . The results of this large‐scale real‐world study are summarized in Figure 5 .

Иллюстрация — в первоисточнике ↗

Figure 5 Results of large‐scale real‐world study. (A) Confusion matrix of GASPath (Open categories, threshold = 0.95). (B) Confusion matrix of GASPath (Internal categories, threshold = 0.95). (C) Confusion matrix of GASPath (open categories, threshold = argmax). (D) Confusion matrix of GASPath (internal categories, threshold = argmax). (E) ROC curve of GASPath. (F) Comparison of distribution of the output probabilities of GASPath between TP and FP. (G) Confusion matrix of GASPath (internal categories, five‐category). (H, I) Accuracy and ROC‐AUC of GASPath on internal categories. (J–L) Visualization results of examples of GAS.

GASPath exhibited outstanding sensitivity for detecting GAS under complex real‐world conditions. Across all thresholds, it successfully identified all 45 GAS cases among 7,056 samples, achieving 100% sensitivity (Figure 5A–D ). Under both open‐ and internal‐category configurations that included unseen classes, GASPath achieved ROC‐AUCs of 0.991 and 0.995, respectively, suggesting that the heterogeneity inherent in real‐world data did not significantly affect its diagnostic reliability (Figure 5E ). The predicted probability distributions of true positives (TPs) and false positives (FPs) for GAS were clearly separable, showing significant differences under both the Mann–Whitney and Kolmogorov–Smirnov (K–S) tests (Figure 5F ). Regarding specificity, GASPath achieved 0.905 under the default argmax strategy for both settings. When applying a more stringent prediction threshold (0.95), the specificity increased to 0.956 and 0.964, respectively, providing a reliable foundation for safe, low‐cost, omission‐free screening.

Even under highly complex clinical conditions, GASPath maintained robust discrimination between GAS and other categories. Among the remaining four classes, 11.5% of NORM samples were misclassified as GAS, consistent with their morphological resemblance (Figure 5G ). Overall, the average accuracy across all categories reached 0.912, while the overall accuracy was slightly lower due to class imbalance (Figure 5H ). GASPath achieved accuracies exceeding 0.9 for all categories except NORM, peaking at 0.965 for BELE and 0.983 for ECMD. In terms of ROC‐AUC, GASPath achieved the highest score on GAS, reaffirming its strong discriminative capability (Figure 5I ).

Representative biopsy cases with varying prediction probabilities are shown in Figure 5J–L . GASPath's attention maps consistently highlighted tumor glandular structures. Specifically, Figure 5J exhibits typical GAS morphology – low nucleus‐to‐cytoplasm ratio, abundant mucinous cytoplasm, and clear cell borders. Figure 5K shows irregular angular glandular contours with fibroblastic stromal reactions, morphologically consistent with GAS though partially overlapping with HPVA features. Figure 5L displays active papillary glandular proliferation. Misclassifications were further analyzed to explore interpretability (supplementary material, Figure S9 ). Supplementary material, Figure S9A shows NORM samples with epithelial metaplasia and increased nuclear–cytoplasmic ratios, which may explain their misclassification. Supplementary material, Figure S9B shows that densely arranged proliferative glands led to BELE being predicted as GAS. In supplementary material, Figure S9C , mucin‐rich glandular regions atypical of HPVA resulted in false positives. Supplementary material, Figure S9D shows ECMD cases with dense cribriform glands, morphologically similar to GAS. Supplementary material, Figure S9E presents a lobular endocervical glandular hyperplasia (LEGH) lesion – a known precursor of GAS – misclassified as GAS, indicating that GASPath captures precursor‐like glandular features. However, due to the rarity of isolated LEGH, larger datasets are needed for better differentiation. Supplementary material, Figure S9F shows a SCC case misclassified as GAS owing to heterogeneity with little cellular atypia.

In this large‐scale real‐world validation, GASPath consistently outperformed other representative MIL‐based models (supplementary material, Tables S13–S15 , Figure S10 ). It achieved the highest balanced accuracy (0.953) and G‐mean (0.951), surpassing the second‐best CLAM by 3.3% and 3.2%, respectively, and exceeding Trans‐MIL by 5.3% and 5.2%. These margins were substantially greater than those observed in retrospective validation, confirming the strong generalization and clinical applicability of GASPath. Under the default argmax configuration, all other models missed 5 of 45 GAS cases (sensitivity = 0.889). Although their specificities were comparable (0.910–0.950 for open, 0.876–0.947 for internal), their ROC‐AUCs were consistently lower. GASPath achieved the highest ROC‐AUC, with CLAM reaching 0.984 as the next best. Across models, TP and FP distributions were significantly separated, though some TP samples exhibited lower prediction probabilities (¡0.9), aligning with their reduced sensitivities compared to GASPath.

Ablation study

To support clinical deployment, we developed GASPath based on a modular architecture optimized for diagnostic robustness. Model details and training configurations are provided in supplementary material, Sections 2.6 and 3 . We conducted ablation experiments to verify the effectiveness of the model components and configurations.

Module ablation

To further validate the contribution of each module to model performance, we compared GASPath, the vanilla agent‐aware MIL [ 27 ], and various combinations of modules on the internal cohort (supplementary material, Figure S12 ). The results demonstrate that incorporating R a and M s significantly enhanced performance over the baseline. Specifically, R a improved accuracy and F1 score by 0.6% and 1.2%, respectively, while adding M s increased accuracy, F1 score, and ROC‐AUC by 0.9%, 1.5%, and 0.1%, respectively. When both R a and M s were integrated, GASPath achieved even greater gains – improving accuracy by 1.0% and F1 score by 1.6% relative to the vanilla baseline.

Magnification ablation

To assess the effect of image magnification on performance, we conducted systematic experiments using GASPath and CLAM under different magnifications. As shown in supplementary material, Figure S13 , both models achieved consistently higher metrics at 10 × compared to 2.5 × . For accuracy, the high‐magnification gains were 0.6% for GASPath and 1.8% for CLAM ( p = 0.001, supplementary material, Table S23 ). For F1 score, the improvements were 0.2% and 1.6% ( p = 0.003, supplementary material, Table S24 ). For ROC‐AUC, CLAM achieved a 0.3% increase at 10 × ( p = 0.004; supplementary material, Table S25 ). When comparing the two models, GASPath performed as well as or better than CLAM at both magnifications. At 10 × , GASPath exceeded CLAM by 0.4% in both accuracy and F1 score. At 2 × , the advantage was even more pronounced, with gains of 1.6%, 1.8%, and 0.3% in accuracy, F1 score, and ROC‐AUC, respectively.

Instance‐level encoder ablation

To validate the superiority of using Virchow2 as the instance‐level encoder, we compared its performance with CONCH [ 28 ], PLIP [ 29 ], and ImageNet‐pretrained ResNet [ 30 , 31 ]. As shown in supplementary material, Tables S17–S22 , Virchow2 consistently outperformed other encoders across different MIL frameworks. For GASPath, Virchow2 achieved 0.9%, 1.0%, and 0.0% higher accuracy, F1 score, and ROC‐AUC than the next‐best encoder, and 8.62%, 8.66%, and 1.44% improvements ( p < 0.001) over the baseline ResNet (supplementary material, Tables S17–S19 ). For CLAM, the gains reached 6.4%, 7.2%, and 1.2% ( p = 0.002) over the next‐best encoder, and up to 22.7%, 25.3%, and 7.15% ( p < 0.001) over the baseline. Notably, GASPath consistently outperformed CLAM across all encoders, with maximum improvements of 14.4% in accuracy (ResNet, p < 0.001), 17.0% in F1 score (CONCH, p < 0.001), and 5.7% in ROC‐AUC (ResNet, p < 0.001). Category‐level performance (supplementary material, Tables S20–S22 ) revealed that Virchow2 achieved the best accuracy across all categories except ECMD, where PLIP slightly outperformed it in F1 score (by 2.8%). For GAS specifically, Virchow2 surpassed CONCH by 0.7%, 1.7%, and 0.1% in accuracy, F1, and ROC‐AUC, respectively, and outperformed the baseline by 4.2% ( p < 0.001), 10.6% ( p = 0.002), and 1.7% ( p = 0.003).

Data‐split ablation

To investigate the impact of dataset partitioning on model performance, we conducted cross‐validation experiments for GASPath and CLAM using training/validation/test ratios of 6:2:2 and 4:3:3. As shown in supplementary material, Figure S14 , a larger training proportion consistently improved performance, increasing accuracy, F1 score, and ROC‐AUC by up to 0.7%, 0.8%, and 0.2%, respectively. Across all splits, GASPath outperformed CLAM in every metric, with the advantage more pronounced when the training data was smaller – achieving gains up to 0.5%, 0.6%, and 0.1% in accuracy, F1 score, and ROC‐AUC, respectively (supplementary material, Tables S26–S28 ).

Discussion

In this study, we developed and validated GASPath, an AI‐based system designed to assist pathologists in achieving highly sensitive, accurate, and low‐cost diagnosis of GAS using only routine H&E‐stained slides. Through a three‐phase validation pipeline across 13 centers in China – covering radical resection specimens, biopsy samples, and large‐scale real‐world data – GASPath demonstrated consistent generalizability and sensitivity. These findings indicate that GASPath offers a promising solution to the long‐standing clinical challenges of underdiagnosis, poor prognosis, and rising incidence of GAS. Importantly, the agent‐aware attention mechanism embedded in GASPath enables accurate localization of GAS‐related morphological structures, ensuring interpretability necessary for clinical‐grade AI‐assisted diagnosis. GASPath provides several notable advantages: (1) Compared with manual diagnosis, GAS‐Path achieves clinical‐grade performance without the need for costly, time‐consuming, and technically demanding ancillary tests such as immunohistochemistry, HPV RNA in situ hybridization, or molecular profiling, relying solely on conventional H&E slides; (2) GASPath demonstrates exceptional sensitivity in biopsy specimens, which are often difficult to interpret even for expert pathologists. This high sensitivity substantially reduces the risk of delayed or missed diagnosis, enabling earlier intervention and improved patient management.

It is important to clarify how GASPath advances beyond both generic MIL frameworks and direct foundation‐model application. Recent transformer‐based MIL methods such as TransMIL model full pairwise instance dependencies, which are computationally expensive and prone to overfitting in rare‐disease settings with limited training samples. GASPath's agent‐aware mechanism instead employs a compact set of trainable agents to approximate global attention with linear complexity, while the residual connections and soft‐mask denoising are specifically designed to address GAS‐specific challenges: stabilizing training under data scarcity and preserving subtle glandular cues amid stromal noise. Furthermore, while Virchow2 provides powerful disease‐agnostic patch embeddings, GASPath's contribution lies in the aggregation stage – learning to compose these generic features into GAS‐specific diagnostic representations. Our ablation study demonstrates that Virchow2 with vanilla MIL falls substantially short of GASPath's performance, confirming that the foundation model alone is insufficient without the proposed specialized aggregation mechanism.

Previous studies have characterized the clinicopathologic, molecular, and imaging features of GAS, revealing its diagnostic complexity and poor outcomes [ 32 , 33 , 34 , 35 , 36 ]. However, due to its rarity and morphological heterogeneity, no prior AI system has been specifically tailored for the differential diagnosis of GAS. To address this gap, we established the largest GAS cohort reported to date and proposed a weakly supervised MIL framework – GASPath. During the pre‐embedding stage, a large‐scale self‐supervised contrastive encoder extracts disease‐agnostic morphological representations that capture subtle cues in epithelial, stromal, and epithelial–stromal interactions. During aggregation, the agent‐aware attention mechanism introduces trainable residual agents that adapt to contextual features while employing a soft‐mask denoising mechanism to suppress low‐contribution patches. These design elements collectively ensure that GASPath achieves high diagnostic sensitivity and robustness, while maintaining interpretability for clinical application.

Crucially, GASPath achieves safe, non‐omissive detection of GAS directly from H&E slides, addressing the long‐standing issue of low detection amid rising incidence and enabling early, individualized treatment. The multicenter validation emphasizes the diagnostic barriers in current practice: despite assembling one of the largest nationwide consultation datasets, GAS represented only approximately 0.6% of all real‐world cases – illustrating its rarity and diagnostic ambiguity. This rarity perpetuates a cycle of underdiagnosis and bias, as confirmatory assays remain costly and resource‐dependent [ 37 , 38 ]. By contrast, GASPath provides a low‐cost, interpretable safety net, capable of issuing early alerts without adding financial or procedural burden. In tertiary hospitals, it enhances diagnostic efficiency and reduces workload through reliable case flagging and telepathology support. In non‐tertiary hospitals, it can guide timely referral and confirmatory testing, improving diagnostic accessibility and equity.

The robust performance of GASPath across both radical and biopsy specimens underscores its clinical and public health value. Radical resection samples provide comprehensive morphologic context across cellular and architectural scales, where alerts from GASPath may also guide closer imaging follow‐up and adjuvant management to mitigate recurrence in hidden sites such as the peritoneum or ovaries [ 2 , 39 ]. In biopsy scenarios, its high sensitivity allows early identification of suspicious lesions, minimizing delayed diagnoses and supporting timely radical treatment such as hysterectomy or lymphadenectomy. Positive predictions from GASPath may also encourage ancillary molecular testing (e.g. HER2 amplification, Claudin18.2 expression), aiding individualized therapy with agents such as trastuzumab or zolbetuximab. Furthermore, reliable intraoperative identification can guide adjuvant radiotherapy strategies or stricter prognostic evaluation – critical given GAS's radio resistance and poor outcomes even within the same FIGO stage [ 40 , 41 ]. Given the frequent biopsy under‐sampling and misdiagnosis as benign or HPV‐related lesions [ 42 ], the real‐world validated high sensitivity of GASPath provides a potential solution for early recognition and surgical decision‐making. It may also integrate into China's national dual‐cancer screening programs, complementing HPV testing and cytology to enhance early detection of cervical adenocarcinomas, especially the underdiagnosed GAS subtype.

Despite its strong translational potential, several limitations should be noted. First, both the internal and external cohorts were retrospectively assembled, and the consultation‐based nature of some datasets may introduce selection bias toward challenging or ambiguous cases that do not fully represent routine screening populations. Second, GASPath was trained and validated using multicenter cohorts from China, and its generalizability across populations, ethnicities, and scanning protocols remains to be verified. While the 13‐center cohort encompasses substantial scanner and staining variability, no explicit domain adaptation techniques were applied; the observed cross‐center robustness thus reflects inherent model generalization rather than technical harmonization. Third, while prioritizing sensitivity, specificity may be further improved by incorporating clinical, radiologic, or immunohistochemical features, including recent advances in computational pathology that enable AI‐based inference of immune landscapes or spatial transcriptomic information directly from H&E images [ 43 , 44 ]. Fourth, although Stage III involved large‐scale real‐world data, the evaluation was conducted offline rather than within prospective diagnostic workflows; the impact of pathologist‐in‐the‐loop interaction, alert fatigue, and laboratory information system integration on diagnostic behavior and outcomes remains uncharacterized. Fifth, the real‐world clinical impact – on workflow efficiency, cost‐effectiveness, and patient outcomes – requires prospective quantification. We are initiating a multicenter randomized study to assess GASPath's influence on diagnostic timeliness, therapeutic decision‐making, and survival outcomes.

In conclusion, GASPath demonstrates high sensitivity, robustness, and interpretability in diagnosing GAS, overcoming the intrinsic limitations of manual pathology constrained by morphological ambiguity and interobserver variability. By providing a scalable, affordable, and clinically interpretable AI solution, GASPath has the potential to transform early diagnosis and individualized treatment of cervical adenocarcinomas. Its success across multicenter and real‐world evaluations exemplifies how integrating high‐quality pathology data with advanced AI frameworks can drive precise, equitable, and globally accessible cancer diagnosis.

Author contributions statement

JY and QH conceived the study. JY, JP, HL, YaL, YW, AH, YuL, LC, YD and CL curated the data. QH and JY performed the formal analyses. QH and JP developed the methodology. QH, JP, YW and JL validated the results. QH and JY wrote the original draft of the manuscript and reviewed and edited the manuscript. JP and XL prepared the visualizations. JP, XL, YZ, MO and XC developed the software. LZ, YuL, YZ, SZ, QH and ZW provided resources. QH, TG, YH and CL acquired funding. YuL, LC, YD, YH and CL supervised the work.

Supporting information

Section S1. For each model, 95% confidence intervals

Section S2. Supplementary description of study population

Section S3. Supplementary description of GASPath

Section S4. Supplementary description of system evaluation

Figure S1. Comparison of performance on the internal cohort across all the models. Column 1–3 refer to accuracy, F1 score, and ROC‐AUC respectively. Row 1–5 indicate each category

Figure S2. An example of GAS slides with a small nuclear‐cytoplasmic ratio

Figure S3. Comparison of visualization on the internal cohort across all the models. Row 1–6 indicate GAS (Radical), GAS (Biopsy), NORM, BELE, HPVA and ECMD respectively. Column 1–4 refer to GASPath, CLAM, TransMIL, and AB‐MIL respectively

Figure S4. Comparison of performance on the internal cohort across all the models. The first row corresponds to the average performance across 10‐fold cross‐validation, the second row corresponds to the best overall performance among the 10 folds, and the third row corresponds to the best performance of GAS among the 10 folds

Figure S5. Comparison of sensitivity on the external cohorts across all the models

Figure S6. Comparison of performance on the internal cohort across all the models (Biopsy). Row 1–5 refer to each category, and column 1–3 indicate accuracy, F1 score, and ROC‐AUC respectively

Figure S7. Comparison of performance on the internal cohort across all the models (Radical). Row 1–5 refer to each category, and column 1–3 indicate accuracy, F1 score, and ROC‐AUC respectively

Figure S8. Comparison of sensitivity on external cohorts across all the models. The subplots refer to different external cohorts

Figure S9. Examples of wrong prediction of GAS on large‐scale real‐world cohort. LEGH and SCC refer to Lobular Endocervical Glandular Hyperplasia and Squamous Cell Carcinoma respectively

Figure S10. The details of performance of CLAM, TransMIL, and AB‐MIL on large‐scale real‐world study

Figure S11. Distribution of output probabilities of biopsy samples across five external cohorts

Figure S12. Ablation study of modules. The subplots refer to different metrics

Figure S13. Ablation study of magnifications

Figure S14. Ablation study of dataset splits

Table S1. Details of GAS in internal and external cohorts

Table S2. Details of each category in the internal cohorts

Table S3. Clinicopathologic characteristics of cases with GAS in the internal cohort

Table S4. Comparison of accuracy across all the models on internal retrospective study (Mean values with 95% CI)

Table S5. Comparison of F1 score across all the models on internal retrospective study (Mean values with 95% CI)

Table S6. Comparison of ROC‐AUC across all the models on internal retrospective study (Mean values with 95% CI)

Table S7. Comparison of accuracy across all the models on internal retrospective study (Mean values with 95% CI)

Table S8. Comparison of F1 score across all the models on internal retrospective study (Mean values with 95% CI)

Table S9. Comparison of AUC across all the models on internal retrospective study (Mean values with 95% CI)

Table S10. PR‐AUC of GASPath on internal dataset (Mean values with 95% CI)

Table S11. Comparison of sensitivity between internal and external validation across all the models

Table S12. Details of the large‐scale real‐world cohort

Table S13. Comparison of accuracy on large‐scale real‐world cohort across all the models (Internal categories)

Table S14. Comparison of ROC‐AUC on large‐scale real‐world cohort across all the models (Internal categories)

Table S15. Comparison of overall performance on large‐scale real‐world cohort across all the models

Table S16. Comparison of performance of different modules (Mean values with 95% CI)

Table S17. Comparison of accuracy of different encoders on internal cohort (Mean values with 95% CI)

Table S18. Comparison of F1 score of different encoders on internal cohort (Mean values with 95% CI)

Table S19. Comparison of ROC‐AUC score of different encoders on internal cohort (Mean values with 95% CI)

Table S20. Comparison of accuracy of different encoders of GASPath on each category (Mean values with 95% CI)

Table S21. Comparison of F1 score of different encoders of GASPath on each category (Mean values with 95% CI)

Table S22. Comparison of ROC‐AUC of different encoders of GASPath on each category (Mean values with 95% CI)

Table S23. Comparison of accuracy of different magnification on internal cohort (Mean values with 95% CI)

Table S24. Comparison of F1 score of different magnification on internal cohort (Mean values with 95% CI)

Table S25. Comparison of ROC‐AUC of different magnification on internal cohort (Mean values with 95% CI)

Table S26. Comparison of accuracy of different splits on internal cohort (Mean values with 95% CI)

Table S27. Comparison of F1 score of different splits on internal cohort (Mean values with 95% CI)

Table S28. Comparison of ROC‐AUC of different splits on internal cohort (Mean values with 95% CI)

Acknowledgements

We gratefully acknowledge the support and contributions of the clinical and pathology teams involved in data collection and annotation for this work. This work was supported by the National Natural Science Foundation of China (82473150, 82430062, and 81500475), Key Clinical Projects of Peking University Third Hospital (BYSYDL2025003), National Key R&D Program of China (2023YFC270580‐5), Shenzhen Engineering Research Centre (XMHT20230115004), Government‐funded Training Program for Outstanding Clinical Medicine Talents (ZF2023045), Tsinghua Shenzhen International Graduate School Cross‐disciplinary Research and Innovation Fund Research Plan (JC2024002), Fuzhou University Research Start‐up Grant for Introduced Talents (XRC‐25119), Fujian Provincial Natural Science Foundation (2026 J008079), and Tianjin Natural Science Foundation Project (No. 23JCYBJC01850).

No conflicts of interest were declared.

Contributor Information

Yueping Liu, Email: liuyp@hebmu.edu.cn.

Ling Chen, Email: chenlingdoctor@126.com.

Yan Ding, Email: 47800847@hebmu.edu.cn.

Yonghong He, Email: heyh@sz.tsinghua.edu.cn.

Congrong Liu, Email: congrong_liu@hsc.pku.edu.cn.

Data availability statement

De‐identified data supporting the findings of this study are available from the corresponding author upon reasonable request, subject to institutional and ethical approval. Our codes are released on GitHub ( https://github.com/jiangnansss/GASPath ). Several major components of our work are available in open‐source repositories: PyTorch ( https://pytorch.org ) and MIL Baseline ( https://github.com/lingxitong/MIL_BASELINE ).

References

1. Stolnicu S, Hoang L, Chiu D, et al . Clinical outcomes of HPV‐associated and unassociated endocervical adenocarcinomas categorized by the International Endocervical Adenocarcinoma Criteria and Classification (IECC). Am J Surg Pathol 2019; 43: 466–474.

2. Ehmann S, Sassine D, Straubhar AM, et al . Gastric‐type adenocarcinoma of the cervix: clinical outcomes and genomic drivers. Gynecol Oncol 2022; 167: 458–466.

3. Nishio H, Matsuda R, Iwata T, et al . Gastric‐type adenocarcinoma of the uterine cervix: clinical features and future directions. Jpn J Clin Oncol 2024; 54: 516–520.

4. Turashvili G, Park KJ. Cervical glandular neoplasia: classification and staging. Surg Pathol Clin 2019; 12: 281–313.

5. Gargano JW, Stefanos R, Dahl RM, et al . Trends in cervical precancers identified through population‐based surveillance – human papillomavirus vaccine impact monitoring project, five sites, United States, 2008–2022. MMWR Morb Mortal Wkly Rep 2025; 74: 96–101.

6. Falcaro M, Soldan K, Ndlela B, et al . Effect of the HPV vaccination programme on incidence of cervical cancer and grade 3 cervical intraepithelial neoplasia by socioeconomic deprivation in England: population based observational study. BMJ 2024; 385: e077341.

7. Banerjee D, Mittal S, Mandal R, et al . Screening technologies for cervical cancer: overview. CytoJournal 2022; 19: 23.

8. Karamurzin YS, Kiyokawa T, Parkash V, et al . Gastric‐type endocervical adenocarcinoma: an aggressive tumor with unusual metastatic patterns and poor prognosis. Am J Surg Pathol 2015; 39: 1449–1457.

9. Wen X, Yu L, Liu X, et al . Gastric‐type endocervical adenocarcinoma: a case report and literature review. Front Oncol 2024; 14: 1341068.

10. Pirog EC, Park KJ, Kiyokawa T, et al . Gastric‐type adenocarcinoma of the cervix: tumor with wide range of histologic appearances. Adv Anat Pathol 2019; 26: 1–12.

11. Cree IA, White VA, Indave BI, et al . Revising the WHO classification: female genital tract tumours. Histopathology 2020; 76: 151–156.

12. Yang J, Peng Y, Ding Y, et al . The clinicopathological and molecular characteristics of endocervical gastric‐type adenocarcinoma and the use of Claudin18.2 as a potential therapeutic target. Mod Pathol 2024; 37: 100569.

13. El Nahhas OS, Treeck M, Wolflein G, et al . From whole‐slide image to biomarker prediction: end‐to‐end weakly supervised deep learning in computational pathology. Nat Protoc 2025; 20: 293–316.

14. Neidlinger P, El Nahhas OSM, Muti HS, et al . Benchmarking foundation models as feature extractors for weakly supervised computational pathology. Nat Biomed Eng 2025; 10: 1113–1123.

15. Campanella G, Kumar N, Nanda S, et al . Real‐world deployment of a fine‐tuned pathology foundation model for lung cancer biomarker detection. Nat Med 2025; 31: 3002–3010.

16. He Q, Xu Y, Huang Q, et al . Entity‐level multiple instance learning for mesoscopic histopathology images classification with Bayesian collaborative learning and pathological prior transfer. Comput Med Imaging Graph 2025; 121: 102495.

17. Mittmann G, Laiouar‐Pedari S, Mehrtens HA, et al . Pathologist‐like explainable AI for interpretable Gleason grading in prostate cancer. Nat Commun 2025; 16: 8959.

18. He Q, Ge S, Zeng S, et al . Global attention based GNN with Bayesian collaborative learning for glomerular lesion recognition. Comput Biol Med 2024; 173: 108369.

19. Ochi M, Komura D, Ishikawa S. Pathology foundation models. JMA J 2025; 8: 121–130.

20. Ma J, Guo Z, Zhou F, et al . A generalizable pathology foundation model using a unified knowledge distillation pretraining framework. Nat Biomed Eng 2025; 10: 545–564.

21. Yang Z, Wei T, Liang Y, et al . A foundation model for generalizable cancer diagnosis and survival prediction from histopathological images. Nat Commun 2025; 16: 2366.

22. Bilal M, Raza M, Altherwy Y, et al . Foundation models in computational pathology: a review of challenges, opportunities, and impact. arXiv 2025; 2502.08333.

23. Zimmermann E, Vorontsov E, Viret J, et al . Virchow2: scaling self‐supervised mixed magnification models in pathology. arXiv 2024; 2408.00738.

24. Lu MY, Williamson DF, Chen TY, et al . Data‐efficient and weakly supervised computational pathology on whole‐slide images. Nat Biomed Eng 2021; 5: 555–570.

25. Shao Z, Bian H, Chen Y, et al . Transmil: transformer based correlated multiple instance learning for whole slide image classification. Adv Neural Inf Proces Syst 2021; 34: 2136–2147.

26. Ilse M, Tomczak J, Welling M. Attention‐based deep multiple instance learning. In Proceedings of the 35th International Conference on Machine Learning, Dy J, Krause A (Eds). PMLR: Cambridge, 2018; 80: 2127–2136.

27. Ling X, Ouyang M, Wang Y, et al . Agent aggregator with mask denoise mechanism for histopathology whole slide image analysis. In Proceedings of the 32nd ACM International Conference on Multimedia, Luo Y, Do T, Yan Y (Eds). Association for Computing Machinery: New York, 2024; 2795–2803.

28. Lu MY, Chen B, Williamson DF, et al . A visual‐language foundation model for computational pathology. Nat Med 2024; 30: 863–874.

29. Huang Z, Bianchi F, Yuksekgonul M, et al . A visual–language foundation model for pathology image analysis using medical twitter. Nat Med 2023; 29: 2307–2316.

30. Deng J, Dong W, Socher R, et al . ImageNet: a large‐scale hierarchical image database. In 2009 IEEE Conference on Computer Vision and Pattern Recognition. IEEE: Piscataway, 2009; 248–255.

31. He K, Zhang X, Ren S, et al . Deep residual learning for image recognition. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, Agapito L, Berg T, Kosecka J, Zelnik‐Manor L (Eds). IEEE: Piscataway, 2016; 770–778.

32. Xi Y, Zhou F, Liu Y, et al . Clinical and pathological analyses of gastric‐type cervical adenocarcinoma and its prognostic relevance. Ther Adv Med Oncol 2025; 17: 17588359251361880.

33. Gao S, Song Y. Clinical pathological and molecular features of 100 patients with gastric‐type cervical adenocarcinoma. Diagn Pathol 2025; 20: 73.

34. Selenica P, Alemar B, Matrai C, et al . Massively parallel sequencing analysis of 68 gastric‐type cervical adenocarcinomas reveals mutations in cell cycle‐related genes and potentially targetable mutations. Mod Pathol 2021; 34: 1213–1225.

35. Turashvili G, Morency EG, Kracun M, et al . Morphologic features of gastric‐type cervical adenocarcinoma in small surgical and cytology specimens. Int J Gynecol Pathol 2019; 38: 263–275.

36. Kikkawa N, Sugawara H, Yoshida H, et al . Characteristics of the magnetic resonance imaging findings of cervical gastric‐type adenocarcinoma. Clin Radiol 2024; 79: 1189–1195.

37. Stolnicu S, Park KJ, Kiyokawa T, et al . Tumor typing of endocervical adenocarcinoma: contemporary review and recommendations from the International Society of Gynecological Pathologists. Int J Gynecol Pathol 2021; 40: 75–91.

38. Griesinger LM, Szczepanski JM, McMullen ER, et al . Uncommon cervical lesions: a review and discussion of the differential diagnosis. Arch Pathol Lab Med 2021; 145: 891–902.

39. Zhang S, Jin G, Ding F, et al . A case of endocervical adenocarcinoma of the gastric type that was repeatedly misdiagnosed: a case report and literature review. Medicine (Baltimore) 2023; 102: 33682.

40. Babloyan S, Hovsepyan L, Saradian A, et al . Gastric type endocervical adenocarcinoma. a case report. Int J Gynecol Cancer 2025; 35: 100495.

41. Radomska A, Lee D, Neufeld H, et al . A retrospective study on incidence, diagnosis, and clinical outcome of gastric‐type endocervical adenocarcinoma in a single institution. Diagn Pathol 2021; 16: 68.

42. Qian X‐q, Wang F‐f, Liang Y, et al . Gastric‐type mucinous carcinoma with an abnormal increase of CA199: a case report and literature review. Front Surg 2022; 9: 945984.

43. Valanarasu JMJ, Xu H, Usuyama N, et al . Multimodal AI generates virtual population for tumor microenvironment modeling. Cell 2026; 189: 386–400.e19.

44. Schroeder A, Loth ML, Luo C, et al . Scaling up spatial transcriptomics for large‐sized tissues: uncovering cellular‐level tissue architecture beyond conventional platforms with iSCALE. Nat Methods 2025; 22: 1911–1922.

Associated Data

Supplementary Materials

Section S1. For each model, 95% confidence intervals

Section S2. Supplementary description of study population

Section S3. Supplementary description of GASPath

Section S4. Supplementary description of system evaluation

Figure S1. Comparison of performance on the internal cohort across all the models. Column 1–3 refer to accuracy, F1 score, and ROC‐AUC respectively. Row 1–5 indicate each category

Figure S2. An example of GAS slides with a small nuclear‐cytoplasmic ratio

Figure S3. Comparison of visualization on the internal cohort across all the models. Row 1–6 indicate GAS (Radical), GAS (Biopsy), NORM, BELE, HPVA and ECMD respectively. Column 1–4 refer to GASPath, CLAM, TransMIL, and AB‐MIL respectively

Figure S4. Comparison of performance on the internal cohort across all the models. The first row corresponds to the average performance across 10‐fold cross‐validation, the second row corresponds to the best overall performance among the 10 folds, and the third row corresponds to the best performance of GAS among the 10 folds

Figure S5. Comparison of sensitivity on the external cohorts across all the models

Figure S6. Comparison of performance on the internal cohort across all the models (Biopsy). Row 1–5 refer to each category, and column 1–3 indicate accuracy, F1 score, and ROC‐AUC respectively

Figure S7. Comparison of performance on the internal cohort across all the models (Radical). Row 1–5 refer to each category, and column 1–3 indicate accuracy, F1 score, and ROC‐AUC respectively

Figure S8. Comparison of sensitivity on external cohorts across all the models. The subplots refer to different external cohorts

Figure S9. Examples of wrong prediction of GAS on large‐scale real‐world cohort. LEGH and SCC refer to Lobular Endocervical Glandular Hyperplasia and Squamous Cell Carcinoma respectively

Figure S10. The details of performance of CLAM, TransMIL, and AB‐MIL on large‐scale real‐world study

Figure S11. Distribution of output probabilities of biopsy samples across five external cohorts

Figure S12. Ablation study of modules. The subplots refer to different metrics

Figure S13. Ablation study of magnifications

Figure S14. Ablation study of dataset splits

Table S1. Details of GAS in internal and external cohorts

Table S2. Details of each category in the internal cohorts

Table S3. Clinicopathologic characteristics of cases with GAS in the internal cohort

Table S4. Comparison of accuracy across all the models on internal retrospective study (Mean values with 95% CI)

Table S5. Comparison of F1 score across all the models on internal retrospective study (Mean values with 95% CI)

Table S6. Comparison of ROC‐AUC across all the models on internal retrospective study (Mean values with 95% CI)

Table S7. Comparison of accuracy across all the models on internal retrospective study (Mean values with 95% CI)

Table S8. Comparison of F1 score across all the models on internal retrospective study (Mean values with 95% CI)

Table S9. Comparison of AUC across all the models on internal retrospective study (Mean values with 95% CI)

Table S10. PR‐AUC of GASPath on internal dataset (Mean values with 95% CI)

Table S11. Comparison of sensitivity between internal and external validation across all the models

Table S12. Details of the large‐scale real‐world cohort

Table S13. Comparison of accuracy on large‐scale real‐world cohort across all the models (Internal categories)

Table S14. Comparison of ROC‐AUC on large‐scale real‐world cohort across all the models (Internal categories)

Table S15. Comparison of overall performance on large‐scale real‐world cohort across all the models

Table S16. Comparison of performance of different modules (Mean values with 95% CI)

Table S17. Comparison of accuracy of different encoders on internal cohort (Mean values with 95% CI)

Table S18. Comparison of F1 score of different encoders on internal cohort (Mean values with 95% CI)

Table S19. Comparison of ROC‐AUC score of different encoders on internal cohort (Mean values with 95% CI)

Table S20. Comparison of accuracy of different encoders of GASPath on each category (Mean values with 95% CI)

Table S21. Comparison of F1 score of different encoders of GASPath on each category (Mean values with 95% CI)

Table S22. Comparison of ROC‐AUC of different encoders of GASPath on each category (Mean values with 95% CI)

Table S23. Comparison of accuracy of different magnification on internal cohort (Mean values with 95% CI)

Table S24. Comparison of F1 score of different magnification on internal cohort (Mean values with 95% CI)

Table S25. Comparison of ROC‐AUC of different magnification on internal cohort (Mean values with 95% CI)

Table S26. Comparison of accuracy of different splits on internal cohort (Mean values with 95% CI)

Table S27. Comparison of F1 score of different splits on internal cohort (Mean values with 95% CI)

Table S28. Comparison of ROC‐AUC of different splits on internal cohort (Mean values with 95% CI)

Data Availability Statement

De‐identified data supporting the findings of this study are available from the corresponding author upon reasonable request, subject to institutional and ethical approval. Our codes are released on GitHub ( https://github.com/jiangnansss/GASPath ). Several major components of our work are available in open‐source repositories: PyTorch ( https://pytorch.org ) and MIL Baseline ( https://github.com/lingxitong/MIL_BASELINE ).

Предметные рубрики MeSH

Подготовка и перевод публикации
Обработка статьи · этапы, ошибки и управление
Загрузка состояния…

История · было → стало

Состояние обновляется каждые 5 секунд, пока блок открыт. Процент показывается только там, где известен объём работы. Пауза останавливает продолжение этапа; текущий запрос к источнику может завершиться.

Тип публикации указан по данным источника. Уровень доказательности автоматически не присваивается.