EMA-SAM: Exponential Moving-average for SAM-based PTMC Segmentation
Preprint
Abstract
Papillary thyroid microcarcinoma (PTMC) is increasingly managed with radio-frequency ablation (RFA), yet accurate lesion segmentation in ultrasound videos remains difficult due to low contrast, probe-induced motion, and heat-related artifacts. The recent Segment Anything Model 2 (SAM-2) generalizes well to static images, but its frame-independent design yields unstable predictions and temporal drift in interventional ultrasound. We introduce \textbf{EMA-SAM}, a lightweight extension of SAM-2 that incorporates a confidence-weighted exponential moving average pointer into the memory bank, providing a stable latent prototype of the tumour across frames. This design preserves temporal coherence through probe pressure and bubble occlusion while rapidly adapting once clear evidence reappears. On our curated PTMC-RFA dataset (124 minutes, 13 patients), EMA-SAM improves \emph{maxDice} from 0.82 (SAM-2) to 0.86 and \emph{maxIoU} from 0.72 to 0.76, while reducing false positives by 29\%. On external benchmarks, including VTUS and colonoscopy video polyp datasets, EMA-SAM achieves consistent gains of 2--5 Dice points over SAM-2. Importantly, the EMA pointer adds \textless0.1\% FLOPs, preserving real-time throughput of $\sim$30\,FPS on a single A100 GPU. These results establish EMA-SAM as a robust and efficient framework for stable tumour tracking, bridging the gap between foundation models and the stringent demands of interventional ultrasound. Codes are available here \hyperref[code {https://github.com/mdialameh/EMA-SAM}.Keywords
All Related Versions
This publication has 14 references indexed in Scilit:
- SAM2-UNet: segment anything 2 makes strong encoder for natural and medical image segmentationVisual Intelligence, 2026
- Novel adaptation of video segmentation to 3D MRI: efficient zero-shot knee segmentation with SAM2 (Conference Presentation)2025
- Medical SAM adapter: Adapting segment anything model for medical image segmentationMedical Image Analysis, 2025
- RoFormer: Enhanced transformer with Rotary Position EmbeddingNeurocomputing, 2023
- Radiofrequency ablation and related ultrasound-guided ablation technologies for treatment of benign and malignant thyroid disease: An international multidisciplinary consensus statement of the American Head and Neck Society Endocrine Surgery Section with the Asia Pacific Society of Thyroid Surgery, Associazione Medici Endocrinologi, British Association of Endocrine and Thyroid Surgeons, European Thyroid Association, Italian Society of Endocrine Surgery Units, Korean Society of Thyroid Radiology, Latin American Thyroid Society, and Thyroid Nodules Therapies AssociationHead & Neck, 2021
- Inflammation induced by incomplete radiofrequency ablation accelerates tumor progression and hinders PD-1 immunotherapyNature Communications, 2019
- Which papillary thyroid microcarcinoma should be treated as “true cancer” and which as “precancer”?World Journal of Surgical Oncology, 2019
- Road Extraction by Deep Residual U-NetIEEE Geoscience and Remote Sensing Letters, 2018
- WM-DOVA maps for accurate polyp highlighting in colonoscopy: Validation vs. saliency maps from physiciansComputerized Medical Imaging and Graphics, 2015
- Towards automatic polyp detection with a polyp appearance modelPattern Recognition, 2012