Fine-Tuned Segment Anything Model with Low-Rank Adaptation for Chest X-Ray Images
<b>Background:</b> This paper investigates the use of the Segment Anything Model (SAM) for chest X-ray (CXR) image segmentation, with a focus on improving its performance using low-rank adaptation (LoRA). <b>Methods:</b> We evaluate three versions of SAM: two zero-shot methods (using coordinate and bounding box prompts) and a fine-tuned SAM using LoRA. To support these approaches, we also trained two standard convolutional neural networks (CNNs), U-Net and DeepLabv3+, to generate draft lung segmentations that serve as input prompts for the SAM methods. Our fine-tuning approach uses LoRA to add lightweight trainable adapters within the Transformer blocks of the SAM, allowing only a small subset of parameters to be updated. The rest of the SAM remains frozen, helping preserve its pre-trained knowledge while reducing memory and computational needs. We tested all models on a dataset of CXR images labeled for COVID-19, viral pneumonia, and normal cases. <b>Results:</b> Results show that fine-tuned SAM with LoRA outperforms zero-shot SAM methods and CNN baselines in terms of segmentation accuracy and efficiency. <b>Conclusions:</b> This demonstrates the potential of combining LoRA with SAM for practical and effective medical image segmentation.
Authors
- Tawfiq Salem (ORCID: https://orcid.org/0000-0001-6232-0542)
- Saeed Alahmari (ORCID: https://orcid.org/0000-0001-7344-9448)
- Sultan Alqahtani (ORCID: https://orcid.org/0000-0002-8761-9513)
- Michael Ryan Gardner
Institutions
- Purdue University West Lafayette (US)
- King Faisal University (SA)
- Najran University (SA)
- King Khalid University (SA)
Publication Details
- Journal
- Diagnostics
- Published
- 2026-03-12
- DOI
- https://doi.org/10.3390/diagnostics16060847
- Primary Topic
- COVID-19 diagnosis using AI
- Type
- article
- Field-Weighted Citation Impact
- 0.00