Pattern Analysis and Applications Computer Vision and Pattern Recognition
LKM-SAM: a skin lesion segmentation model based on low-rank adaptation fine-tuning of SAM
Abstract
The segmentation of lesions in dermoscopic images plays a crucial role in intelligent diagnosis. For issues such as varying sizes of skin lesion, blurred edges, complex boundaries, and low color contrast between the lesion and healthy skin, a model LKM-SAM was proposed for skin lesions segmentation. Firstly, fine-tuning the Segment Anything Model through Low-Rank Adaptation (LoRA), which involves freezing the parameters in the pre-trained model and using the trainable low-rank bypass matrices as the projection layer of Transformer block, enhances model performance in segmentation tasks while reducing training resources. Secondly, the convolution layers in the Neck layer of the image encoder is replaced by KAN convolutions, which extracts multi-scale global context information and compensates for the loss of local details. Finally, the mask decoder is replaced by Mask2fomer segmentation head. Mask2former can dynamically generate masks, thereby enhancing the model’s ability to perceive objects with different scales and low color contrast. Experimental results demonstrate that LKM-SAM achieves outstanding performance, with a Dice Similarity Coefficient (DSC) of 0.873, 0.881, and 0.934, and an Intersection over Union (IoU) of 0.931, 0.936, and 0.966 on the ISIC2017, ISIC2018 and PH^2 datasets, respectively. Compared with current mainstream segmentation models, the IoU increased by 0.270, 0.276, and 0.192, respectively, verifying the high efficiency and strong generalization ability of the proposed model.