Three-threshold Image Segmentation of Welding Defects Based on Improved Particle Swarm Algorithm

Wei LUO , Chao-hua WU , Jun XIAO , Shu CAI , Xiao-liang SHI

Science Technology and Engineering ›› 2025, Vol. 25 ›› Issue (22) : 9463 -9470.

PDF
Science Technology and Engineering ›› 2025, Vol. 25 ›› Issue (22) : 9463-9470 DOI: 10.12404/j.issn.1671-1815.2404720
research-article
Three-threshold Image Segmentation of Welding Defects Based on Improved Particle Swarm Algorithm
Author information +
History +
PDF

Abstract

To address the issues of distortion and poor segmentation results in weld defect image segmentation, the crack and porosity welding defect images in the rim production process were taken as the research object. An improved particle swarm optimization algorithm based on simulated annealing is proposed for the three-threshold image segmentation of welding defects. First, a three-dimensional Otsu model is constructed using the grayscale value, average grayscale value, and median grayscale value of the image. Next, an adaptive inertia weight and asymmetric learning factor were introduced and integrated into the SA strategy to enhance the algorithm's solving efficiency and ability to escape local optima. Finally, the SA-IPSO algorithm was used to optimize the three-dimensional Otsu model to obtain the optimal threshold and corresponding defect segmentation image. Various algorithms and models are employed to segment welding defect images. The results show that for crack and porosity defect images, the proposed improved algorithm outperforms the comparison algorithms in terms of peak signal-to-noise ratio and structural similarity evaluation metrics. The proposed method accelerates algorithm convergence while preventing distortion in segmentation results, thereby improving segmentation accuracy.

Keywords

threshold segmentation / three-dimensional Otsu / particle swarm optimization algorithm / simulated annealing strategy / welding defects

Cite this article

Download citation ▾
Wei LUO, Chao-hua WU, Jun XIAO, Shu CAI, Xiao-liang SHI. Three-threshold Image Segmentation of Welding Defects Based on Improved Particle Swarm Algorithm. Science Technology and Engineering, 2025, 25(22): 9463-9470 DOI:10.12404/j.issn.1671-1815.2404720

登录浏览全文

4963

注册一个新账户 忘记密码

References

Funding

PDF (5736KB)

20

Accesses

0

Citation

Detail

Sections
Recommended

/

〈 〉