A threshold-based prompt generation method for segment anything model to identify fission gas bubbles
Purpose This study addresses the computational and accuracy limitations of the Segment Anything Model (SAM) by Meta AI in segmenting microscopic pores on irradiated nuclear fuel surfaces. It proposes an optimized framework combining adaptive prompts, boundary enhancement, and lightweight SAM variants to automate defect analysis—critical for evaluating nuclear fuel structural integrity and safety. Design/methodology/approach A three-stage approach improved SAM: (1) Sauvola-based adaptive thresholding for optimizing prompt ratios (2:1 positive/negative); (2) Gradient filtering to sharpen pore boundaries; (3) Evaluation of SAM variants (ViT-H(Huge)/L(Large)/B(Base), MobileSAM, EdgeSAM) for efficiency-accuracy trade-offs using F1 (a vital measure of classification problems) and Intersection over Union (IoU) metrics. Findings The 2:1 prompt ratio with gradient filtering boosted F1 by 6.3% and IoU by 7.7%. SAM ViT-H achieved peak accuracy (F1:82.84%, IoU:70.98%) but required the highest resources. MobileSAM balanced performance (F1:77.83%, IoU:60.36%) with lower GPU usage (778MB), while EdgeSAM prioritized efficiency (524MB) at reduced accuracy (F1:70.17%, IoU:54.87%). Originality/value This work uniquely integrates threshold-based prompts and gradient filtering to enhance SAM for nuclear fuel defect segmentation, enabling zero-shot adaptation to low-contrast microstructures. It provides actionable insights into model selection (accuracy vs efficiency) and advances automated structural integrity analysis, bridging traditional image processing with cutting-edge vision models for nuclear energy applications. Highlights (1) Developed a method for generating prompts that leverage the prior knowledge of “fuel pores having deeper grayscale” using Meta AI’s Segment Anything Model. (2) Applied this method to segment fuel pore images processed with image processing techniques and validated that this automatic segmentation method achieves better accuracy than traditional threshold segmentation methods. (3) Compared the inference efficiency of various base segmentation models, concluding that segmentation performance is generally proportional to the computing resource usage. Graphical abstract A flowchart shows image segmentation and encoding.
Authors
- Junnan Lv
- Daixin Fu (ORCID: https://orcid.org/0009-0008-2195-5611)
- Lin Mi (ORCID: https://orcid.org/0000-0002-7030-3520)
- Lang Li
- Qingyuan Wang (ORCID: https://orcid.org/0000-0002-3439-287X)
- Yongjie Liu (ORCID: https://orcid.org/0000-0001-7301-9501)
- Bo Kuang (ORCID: https://orcid.org/0000-0003-1595-6040)
Publication Details
- Journal
- International Journal of Structural Integrity
- Published
- 2025-05-30
- DOI
- https://doi.org/10.1108/ijsi-03-2025-0059
- Citations
- 1
- Primary Topic
- Nuclear Physics and Applications
- Type
- article
- Field-Weighted Citation Impact
- 1.88