Autonomous labeling of surgical resection margins using a foundation model

Xilin Yang, Musa Aydin, Yuhong Lu, Sahan Yoruc Selcuk, Bijie Bai +7 more
11/27/2025
cs.CVcs.LGphysics.med-ph

No confident code implementation found for this paper.

Abstract

Assessing resection margins is central to pathological specimen evaluation and has profound implications for patient outcomes. Current practice employs physical inking, which is applied variably, and cautery artifacts can obscure the true margin on histological sections. We present a virtual inking network (VIN) that autonomously localizes the surgical cut surface on whole-slide images, reducing reliance on inks and standardizing margin-focused review. VIN uses a frozen foundation model as the feature extractor and a compact two-layer multilayer perceptron trained for patch-level classification of cautery-consistent features. The dataset comprised 120 hematoxylin and eosin (H&E) stained slides from 12 human tonsil tissue blocks, resulting in ~2 TB of uncompressed raw image data, where a board-certified pathologist provided boundary annotations. In blind testing with 20 slides from previously unseen blocks, VIN produced coherent margin overlays that qualitatively aligned with expert annotations across serial sections. Quantitatively, region-level accuracy was ~73.3% across the test set, with errors largely confined to limited areas that did not disrupt continuity of the whole-slide margin map. These results indicate that VIN captures cautery-related histomorphology and can provide a reproducible, ink-free margin delineation suitable for integration into routine digital pathology workflows and for downstream measurement of margin distances.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{yang2025autonomous,
  title  = {Autonomous labeling of surgical resection margins using a foundation model},
  author = {Xilin Yang and Musa Aydin and Yuhong Lu and Sahan Yoruc Selcuk and Bijie Bai and Yijie Zhang and Andrew Birkeland and Katjana Ehrlich and Julien Bec and Laura Marcu and Nir Pillar and Aydogan Ozcan},
  year   = {2025},
  eprint = {2511.22131},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2511.22131v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2511.22131.svg)](https://codeofpaper.com/paper/2511.22131)

Discussion