Sam-Guided Enhanced Fine-Grained Encoding with Mixed Semantic Learning for Medical Image Captioning
Zhenyu Zhang, Benlu Wang, Weijie Liang, Yizhi Li, Xuechen Guo, Guanhong Wang, Shiyan Li, Gaoang Wang
TL;DR
Medical image captioning requires detailed region-level descriptions that general multimodal pretraining often fails to provide. The paper introduces MSMedCap, a SAM-guided dual-encoder architecture that combines a CLIP-based encoder for global semantics with a SAM-based encoder for fine-grained details, connected via dual Q-Formers to an OPT LLM. A mixed semantic pre-training regime preserves both broad and fine-grained image-text alignments using ITM, ITG, and ITC objectives, with encoders frozen during captioning and only the Q-Formers and projection layers trained. Experiments on ROCO and MedICaT show MSMedCap outperforms BLIP2 and SAM-BLIP2 across standard metrics, validating the benefit of combining SAM-guided detail capture with general semantic knowledge for medically accurate captions. This approach offers a practical path to enhanced diagnostic captioning by marrying global context with precise anatomical or pathological details.
Abstract
With the development of multimodality and large language models, the deep learning-based technique for medical image captioning holds the potential to offer valuable diagnostic recommendations. However, current generic text and image pre-trained models do not yield satisfactory results when it comes to describing intricate details within medical images. In this paper, we present a novel medical image captioning method guided by the segment anything model (SAM) to enable enhanced encoding with both general and detailed feature extraction. In addition, our approach employs a distinctive pre-training strategy with mixed semantic learning to simultaneously capture both the overall information and finer details within medical images. We demonstrate the effectiveness of this approach, as it outperforms the pre-trained BLIP2 model on various evaluation metrics for generating descriptions of medical images.
