The Segment Anything Model (SAM) has recently emerged as a groundbreaking model in the field of image segmentation. Nevertheless, both the original SAM and its medical adaptations necessitate slice-by-slice annotations, which directly increase the annotation workload with the size of the dataset. We propose MedLSAM to address this issue, ensuring a constant annotation workload irrespective of dataset size and thereby simplifying the annotation process. Our model introduces a few-shot localization framework capable of localizing any target anatomical part within the body. To achieve this, we develop a Localize Anything Model for 3D Medical Images (MedLAM), utilizing two self-supervision tasks: relative distance regression (RDR) and multi-scale similarity (MSS) across a comprehensive dataset of 14,012 CT scans. We then establish a methodology for accurate segmentation by integrating MedLAM with SAM. By annotating only six extreme points across three directions on a few templates, our model can autonomously identify the target anatomical region on all data scheduled for annotation. This allows our framework to generate a 2D bounding box for every slice of the image, which are then leveraged by SAM to carry out segmentations. We conducted experiments on two 3D datasets covering 38 organs and found that MedLSAM matches the performance of SAM and its medical adaptations while requiring only minimal extreme point annotations for the entire dataset. Furthermore, MedLAM has the potential to be seamlessly integrated with future 3D SAM models, paving the way for enhanced performance. Our code is public at https://github.com/openmedlab/MedLSAM.
翻译:Segment Anything Model(SAM)近期已成为图像分割领域的开创性模型。然而,原始SAM及其医学适配版本均需逐切片标注,导致标注工作量随数据集规模直接增加。为解决此问题,我们提出MedLSAM,确保标注工作量不随数据集规模变化,从而简化标注流程。本模型引入一种小样本定位框架,能定位体内任意目标解剖部位。为此,我们开发了面向3D医学图像的Locate Anything Model(MedLAM),采用两种自监督任务:相对距离回归(RDR)与多尺度相似性(MSS),基于包含14,012例CT扫描的综合性数据集进行训练。随后,我们通过融合MedLAM与SAM建立高精度分割方法。只需在少量模板上沿三个方向标注六个极值点,模型即可在待标注的全部数据上自主识别目标解剖区域,从而为图像每个切片生成2D边界框,供SAM执行分割。我们在覆盖38个器官的两个3D数据集上开展实验,发现MedLSAM在性能上与SAM及其医学适配版本相当,且仅需对全数据集进行极少量极值点标注。此外,MedLAM具备与未来3D SAM模型无缝集成的潜力,为性能提升奠定基础。我们的代码已开源至https://github.com/openmedlab/MedLSAM。