Adapting Segment Anything Model (SAM) to Experimental Datasets via Fine-Tuning on GAN-based Simulation: A Case Study in Additive Manufacturing
Anika Tabassum, Amirkoushyar Ziabari
TL;DR
This work tackles semantic segmentation of XCT imagery from additive manufacturing parts, where noise, sparse views, and domain shift hinder standard models. It presents a domain-adaptation pipeline that fine-tunes SAM using Conv-LoRa (a parameter-efficient MoE-based approach) and augments training with GAN-generated XCT volumes. Across InD and OoD scenarios, SAM-GAN improves segmentation metrics over a CycleGAN-trained 2.5D U‑Net, while real-data re-finetuning can recover some OoD performance but may cause catastrophic forgetting and reduced InD accuracy. The study highlights the potential and limitations of large foundational models for domain-specific materials imaging, pointing to future work in robust multi-class, 3D-capable, few-shot segmentation strategies for industrial inspection.
Abstract
Industrial X-ray computed tomography (XCT) is a powerful tool for non-destructive characterization of materials and manufactured components. XCT commonly accompanied by advanced image analysis and computer vision algorithms to extract relevant information from the images. Traditional computer vision models often struggle due to noise, resolution variability, and complex internal structures, particularly in scientific imaging applications. State-of-the-art foundational models, like the Segment Anything Model (SAM)-designed for general-purpose image segmentation-have revolutionized image segmentation across various domains, yet their application in specialized fields like materials science remains under-explored. In this work, we explore the application and limitations of SAM for industrial X-ray CT inspection of additive manufacturing components. We demonstrate that while SAM shows promise, it struggles with out-of-distribution data, multiclass segmentation, and computational efficiency during fine-tuning. To address these issues, we propose a fine-tuning strategy utilizing parameter-efficient techniques, specifically Conv-LoRa, to adapt SAM for material-specific datasets. Additionally, we leverage generative adversarial network (GAN)-generated data to enhance the training process and improve the model's segmentation performance on complex X-ray CT data. Our experimental results highlight the importance of tailored segmentation models for accurate inspection, showing that fine-tuning SAM on domain-specific scientific imaging data significantly improves performance. However, despite improvements, the model's ability to generalize across diverse datasets remains limited, highlighting the need for further research into robust, scalable solutions for domain-specific segmentation tasks.
