Autonomous labeling of surgical resection margins using a foundation model

Abstract Assessing resection margins is central to pathological specimen evaluation and has profound implications for patient outcomes. Failure to achieve clear margins significantly increases the risk of local recurrence and may necessitate adjuvant therapies such as chemotherapy or radiotherapy. However, margin assessment faces multiple procedural challenges, including human error during manual tissue margin labeling (physical inking), tissue shrinkage and distortion from fixation and processing, and thermal damage from cautery that obscures cellular features, all of which can compromise accurate margin identification. We demonstrate a virtual inking network (VIN) that localizes the resection margin on whole-slide images (WSIs), producing a standardized, ink-free margin map that helps mitigate limitations of physical inking and enables accurate and reproducible margin measurements. 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. Our results suggest that VIN is capable of capturing cautery-related histomorphology, offering a potential ink-free margin delineation for digital pathology workflows. These proof-of-concept results warrant further validation of VIN as a tool for margin localization in larger, clinically representative cohorts.

Authors

Institutions

Publication Details

Journal
Scientific Reports
Published
2026-10-16
DOI
https://doi.org/10.1038/s41598-026-74284-y
Primary Topic
AI in cancer detection
Type
article
Field-Weighted Citation Impact
0.00

Funders

Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Autonomous labeling of surgical resection margins using a foundation model

Tal Keidar Haran, Aydogan Özcan, Şahan Yoruç Selçuk, Bijie Bai et al.
Scientific Reports
AI in cancer detection
article

Autonomous labeling of surgical resection margins using a foundation model

Tal Keidar Haran, Aydogan Özcan, Şahan Yoruç Selçuk, Bijie Bai, Andrew C. Birkeland, Yuhong Lu, Katjana Ehrlich, Julien Bec, Laura Marcu, Nir Pillar, Atlan Karine, Musa Aydın, Xilin Yang, Yijie Zhang
article en

Abstract

Abstract Assessing resection margins is central to pathological specimen evaluation and has profound implications for patient outcomes. Failure to achieve clear margins significantly increases the risk of local recurrence and may necessitate adjuvant therapies such as chemotherapy or radiotherapy. However, margin assessment faces multiple procedural challenges, including human error during manual tissue margin labeling (physical inking), tissue shrinkage and distortion from fixation and processing, and thermal damage from cautery that obscures cellular features, all of which can compromise accurate margin identification. We demonstrate a virtual inking network (VIN) that localizes the resection margin on whole-slide images (WSIs), producing a standardized, ink-free margin map that helps mitigate limitations of physical inking and enables accurate and reproducible margin measurements. 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. Our results suggest that VIN is capable of capturing cautery-related histomorphology, offering a potential ink-free margin delineation for digital pathology workflows. These proof-of-concept results warrant further validation of VIN as a tool for margin localization in larger, clinically representative cohorts.

Scientific Reports
California NanoSystems Institute (US), University of California, Los Angeles (US), Hadassah Medical Center (IL), Fatih Sultan Mehmet Waqf University (TR), University of California, Davis (US)
Pharmaceutical Research and Manufacturers of America Foundation, National Institutes of Health
Good health and well-being
Openalex Percentile: Top 98%
AI in cancer detection
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.