Assessing response in endoscopy images of esophageal cancer treated with total neoadjuvant therapy via hybrid-architecture ensemble deep learning

Peng Yuan, Meichen Liu, Hangzhou He, Liang Dai, Ya-Ya Wu, Ke-Neng Chen, Qi Wu, Yen‐Zhen LuFrontiers in Oncology 2025

Abstract

Accurately evaluating the pathological complete response (pCR) in esophageal cancer (EC) patients following total neoadjuvant therapy (TNT) is critical for determining if a patient can safely avoid invasive surgery. We present EC-HAENet, a hybrid-architecture ensemble network designed to assist endoscopists in this evaluation. By integrating convolutional neural networks (CNNs) for local feature extraction and Transformers for global context, EC-HAENet achieves high diagnostic accuracy, significantly outperforming traditional endoscopic biopsies.

Introduction

For patients with locally advanced esophageal cancer, Total Neoadjuvant Therapy (TNT)—comprising chemotherapy, immunotherapy, and occasionally radiotherapy—is the standard precursor to surgery. A subset of these patients achieves a pathological complete response (pCR), where no viable tumor cells remain. For these individuals, a "Watch and Wait" strategy could preserve organ function and avoid the morbidity associated with esophagectomy.

However, current clinical tools lack the sensitivity to reliably identify pCR. Endoscopic "bite-on-bite" biopsies and PET-CT scans often yield false negatives due to the scattered or deep-seated nature of residual tumor cells. There is a pressing clinical need for non-invasive, high-precision diagnostic tools to guide treatment decisions post-TNT.

Methodology: The EC-HAENet Architecture

The proposed EC-HAENet (Esophageal Cancer Hybrid-Architecture Ensemble Network) leverages a dual-branch design to address the complexities of endoscopic imagery.

Study workflow and EC-HAENet architecture

Hybrid Feature Extraction

  1. Local Branch (DenseNet-121): Utilizes a CNN to capture fine-grained textures and local patterns, which are essential for identifying small, isolated tumor residues.
  2. Global Branch (Swin Transformer): Captures long-range spatial relationships and global context across the entire endoscopic frame, enhancing the model's robustness to variations in lighting and patient anatomy.

Training and Optimization

The model employs an ensemble strategy where features from both branches are concatenated. To ensure robust learning, auxiliary classifiers are used during training to supervise each branch independently. The network is optimized using Sharpness-Aware Minimization (SAM) to improve generalization and Focal Loss to address the inherent class imbalance between pCR and non-pCR cases.

Dataset and Experimental Setup

The study utilized the Beijing-EC-TNT dataset, comprising 7,359 endoscopic images from 300 patients at Beijing Cancer Hospital:

  • Cohort 1 (Internal Validation): 4,561 images from 209 patients (2018–2023) used for five-fold cross-validation.
  • Cohort 2 (Temporal Validation): 2,798 images from 91 patients (2023–2024) served as an independent test set.

Ground truth labels were established via postoperative pathology, the clinical gold standard.

Results and Discussion

EC-HAENet demonstrated exceptional performance at both the image and patient levels. In image-level testing, the model achieved an Area Under the Curve (AUC) of 0.98 in Cohort 1 and 0.99 in Cohort 2.

Comparison with Clinical Biopsy

The most significant finding was the model's superiority over traditional endoscopic biopsy. At the patient level, EC-HAENet achieved 93% accuracy in both cohorts. In a head-to-head comparison:

  • Cohort 1: AI (0.93) vs. Biopsy (0.78), $P < 0.0001$.
  • Cohort 2: AI (0.93) vs. Biopsy (0.71), $P < 0.0001$.

The AI's holistic analysis of the visual field appears to overcome the sampling limitations of physical biopsies, which only examine minute tissue fragments.

Interpretability and Failure Modes

Grad-CAM visualizations indicate that the model effectively targets suspicious regions. However, analysis of false positives revealed that the model occasionally confuses therapy-induced scarring with residual malignancy.

Grad-CAM visualization of residual tumor detection

Conclusion

EC-HAENet represents a significant advancement in the non-invasive assessment of treatment response in esophageal cancer. By outperforming traditional biopsies, it provides a viable path toward personalized "Watch and Wait" protocols. Future work will focus on multi-center validation and real-time integration into endoscopic workstations to support clinical decision-making during live procedures.

Summary updated

BibTeX
@inproceedings{yuan2025assessing,
  author = {Peng Yuan and Meichen Liu and Hangzhou He and Liang Dai and Ya-Ya Wu and Ke-Neng Chen and Qi Wu and Yen‐Zhen Lu},
  title = {{Assessing response in endoscopy images of esophageal cancer treated with total neoadjuvant therapy via hybrid-architecture ensemble deep learning}},
  booktitle = {Frontiers in Oncology},
  year = {2025},
  doi = {10.3389/fonc.2025.1590448},
}
Figure