Detection of Breast Cancer Lumpectomy Margin with SAM-incorporated Forward-Forward Contrastive Learning

Complete removal of cancer tumors with a negative specimen margin during lumpectomy is essential in reducing breast cancer recurrence. However, 2D specimen radiography (SR), the current method used to assess intraoperative specimen margin status, has limited accuracy, resulting in nearly a quarter of patients requiring additional surgery. To address this, we propose a novel deep learning framework combining the Segment Anything Model (SAM) and its successor, SAM 2, with Forward-Forward Contrastive Learning (FFCL), a pre-training strategy leveraging both local and global contrastive learning for patch-level classification of SR images. After annotating SR images with regions of known malignancy, non-malignant tissue, and pathology-confirmed margins, we pre-train a ResNet-18 backbone with FFCL to classify margin status, then reconstruct coarse binary masks to prompt the SAMs for refined tumor margin segmentation. Our approach achieved an AUC of 0.8899 for margin classification and segmented margins with a drastic improvement in Dice similarity over baseline models, while reducing inference time to 47 milliseconds per image. Our code is available at https://github.com/tbwa233/FFCL-SAM.

Authors

Institutions

Publication Details

Journal
ACM Transactions on Computing for Healthcare
Published
2026-12-03
DOI
https://doi.org/10.1145/3872026
Citations
2
Primary Topic
AI in cancer detection
Type
article
Field-Weighted Citation Impact
1.93
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
article

Detection of Breast Cancer Lumpectomy Margin with SAM-incorporated Forward-Forward Contrastive Learning

Braxton J. McFarland, Md Atik Ahamed, Sahar Nozad, Tyler B. Ward et al.
2 citations
ACM Transactions on Computing for Healthcare
AI in cancer detection
1.93
article

Detection of Breast Cancer Lumpectomy Margin with SAM-incorporated Forward-Forward Contrastive Learning

Braxton J. McFarland, Md Atik Ahamed, Sahar Nozad, Tyler B. Ward, Hafsa Nebbache, Talal Arshad, Xiaoqin Wang, Chen Jin, Abdullah-Al-Zubaer Imran
article en
2 citations

Abstract

Complete removal of cancer tumors with a negative specimen margin during lumpectomy is essential in reducing breast cancer recurrence. However, 2D specimen radiography (SR), the current method used to assess intraoperative specimen margin status, has limited accuracy, resulting in nearly a quarter of patients requiring additional surgery. To address this, we propose a novel deep learning framework combining the Segment Anything Model (SAM) and its successor, SAM 2, with Forward-Forward Contrastive Learning (FFCL), a pre-training strategy leveraging both local and global contrastive learning for patch-level classification of SR images. After annotating SR images with regions of known malignancy, non-malignant tissue, and pathology-confirmed margins, we pre-train a ResNet-18 backbone with FFCL to classify margin status, then reconstruct coarse binary masks to prompt the SAMs for refined tumor margin segmentation. Our approach achieved an AUC of 0.8899 for margin classification and segmented margins with a drastic improvement in Dice similarity over baseline models, while reducing inference time to 47 milliseconds per image. Our code is available at https://github.com/tbwa233/FFCL-SAM.

ACM Transactions on Computing for Healthcare
University of Kentucky (US), Markey Cancer Center (US), University of Alabama at Birmingham (US), Morehead State University (US)
Good health and well-being
Openalex Percentile: Top 13%
AI in cancer detection
1.93
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.

Laika access coming soon