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
- Braxton J. McFarland (ORCID: https://orcid.org/0009-0009-5069-2387)
- Md Atik Ahamed (ORCID: https://orcid.org/0000-0002-7746-4247)
- Sahar Nozad
- Tyler B. Ward (ORCID: https://orcid.org/0000-0003-0669-1407)
- Hafsa Nebbache (ORCID: https://orcid.org/0009-0008-4108-7751)
- Talal Arshad
- Xiaoqin Wang (ORCID: https://orcid.org/0000-0003-4404-0082)
- Chen Jin (ORCID: https://orcid.org/0000-0002-1621-7744)
- Abdullah-Al-Zubaer Imran (ORCID: https://orcid.org/0000-0001-5215-339X)
Institutions
- University of Kentucky (US)
- Markey Cancer Center (US)
- University of Alabama at Birmingham (US)
- Morehead State University (US)
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