Real-time landmark detection for precise endoscopic submucosal dissection via shape-aware relation network

Jiacheng Wang, Yueming Jin, Shuntian Cai, Hongzhi Xu, Pheng-Ann Heng, Jing Qin, Liansheng Wang

TL;DR

This paper introduces a novel shape-aware relation network designed for real-time landmark detection during Endoscopic Submucosal Dissection (ESD) surgery. By forcing the model to learn the geometric relationships (curve shapes) between surgical landmarks during training, the network overcomes severe visual disruptions like bleeding and glare. Crucially, these relational constraints are discarded during inference, allowing the model to achieve state-of-the-art accuracy without sacrificing the real-time processing speeds required in the operating room.

What Problem Does This Paper Address?

Endoscopic Submucosal Dissection (ESD) is a surgical technique used to remove gastrointestinal lesions, such as early-stage esophageal cancer. To guide the excision, surgeons first burn a series of "landmarks" (dots) into the tissue around the lesion to outline the cutting boundary.

However, during the actual cutting phase, the surgical field becomes incredibly chaotic. Bleeding, severe glare from water jets, and camera motion blur frequently obscure these landmarks. If a surgeon loses track of the boundary, they risk incomplete tumor removal or damaging healthy tissue.

While standard object detection models (like YOLO or EfficientDet) exist, they struggle here because the landmarks look very similar to random background tissue burns or reflections. Models that do try to understand the spatial relationships between objects usually rely on computationally heavy feature aggregation (like graph convolutional networks), which are too slow for real-time surgical video feeds. The authors needed a way to make a detector "shape-aware" without slowing it down.

Methods

The authors build their solution on top of an anchor-free object detector (CenterNet) and introduce a clever training paradigm that uses the spatial geometry of the landmarks as a "free" supervisory signal.

  1. Relation Heatmap Generation: Because the landmarks form a boundary around a lesion, they naturally create a curve. The authors designed an algorithm that automatically connects adjacent landmarks and calculates their midpoints ("relation keypoints"). This generates a ground-truth "relation heatmap" without requiring any extra human annotation.
  2. Pixel-Level Regularization (Multi-Task Learning): During training, the network is split into branches. It must simultaneously predict the locations of the landmarks and the locations of the relation keypoints. This forces the shared layers of the network to learn the underlying curve structure.
  3. Global-Level Regularization (Grouped Consistency Evaluator - GCE): To ensure the predicted landmarks actually make sense globally, the authors introduce an adversarial discriminator (the GCE). The GCE looks at the predicted landmark heatmap and the predicted relation heatmap together, scoring them on how consistent they are with a realistic surgical boundary. The detection network is trained to fool this evaluator.
  4. Zero-Cost Inference: The most elegant part of the method is that the relation prediction branch and the GCE are only used during training. During live surgery, the network simply runs the optimized landmark detection branch, resulting in zero extra computational overhead.

Datasets

Because computer-assisted ESD is a highly unexplored area, there were no publicly available datasets. The authors constructed a large in-house ESD dataset consisting of:

  • 11 full ESD surgery videos for esophageal cancer from clinical centers.
  • Downsampled to 5 frames per second to reduce redundancy, yielding 3,697 frames.
  • 10,861 bounding boxes of landmarks, annotated and verified by three experienced surgeons.
  • The dataset was evaluated using 5-fold cross-validation.

Key Insights and Ideas

  • Geometry as a Prior: The physical reality of the surgery—that landmarks form a closed loop—provides a massive hint to the neural network. By forcing the network to understand this shape, it can effectively "hallucinate" or infer the location of a landmark even if it is completely covered by blood.
  • Adversarial Consistency is Cheaper than Graph Networks: Using a discriminator to judge the global consistency of heatmaps is a brilliant workaround. It enforces global structural logic without the massive inference-time latency associated with Non-Local blocks or Graph Convolutional Networks.
  • Decoupling Training Complexity from Inference Speed: By pushing all the heavy relational reasoning into auxiliary loss functions, the deployment model remains a lightweight, standard anchor-free detector. This is a highly reusable design pattern for edge AI applications.

Key Results

  • Accuracy: The proposed method (using a DLA34 backbone) achieved 58.1% AP50 and 74.1% Recall, significantly outperforming baseline models. High recall is particularly vital here, as missing a landmark is more dangerous than a false positive.
  • Speed: The model runs at 27ms per frame (~37 FPS). This is well within the requirements for real-time surgical guidance and is more than twice as fast as YOLOv3 (70ms) and EfficientDet (68ms) baselines.
  • Qualitative: Visualizations demonstrate that the shape-aware network successfully ignores false positives (like random tissue reflections) that easily confuse standard detectors, and reliably tracks landmarks through heavy bleeding and blur.

Limitations and Future Work

  • Lack of Temporal Dynamics: The current model treats every frame as an isolated static image. It does not use the temporal sequence of the video, which could help track landmarks across highly obscured frames.
  • 2D vs. 3D Geometry: The algorithm generates relation keypoints based on 2D pixel distances. However, the surgical field is a deformable 3D surface, meaning 2D distance doesn't always perfectly represent the true physical distance between landmarks.
  • Future Work: The authors plan to integrate efficient temporal modules (like LSTMs or memory networks) that can leverage video continuity without being derailed by "hard frames" (moments of total visual occlusion). They also aim to improve the relation generation algorithm to account for 3D spatial deformations.

Summary updated

BibTeX
@article{wang2022real,
  author = {Jiacheng Wang and Yueming Jin and Shuntian Cai and Hongzhi Xu and Pheng-Ann Heng and Jing Qin and Liansheng Wang},
  title = {{Real-time landmark detection for precise endoscopic submucosal dissection via shape-aware relation network}},
  journal = {Medical Image Analysis},
  year = {2022},
  doi = {10.1016/j.media.2021.102291},
}

Loading related content...

Figure