DOI: 10.3390/app16126214 ISSN: 2076-3417

Research on Pipeline Magnetic Flux Leakage Testing Defect Classification Based on Generate Expansion and Dual-Channel Vision Transformer

Xulai Zhu, Yuxiang Zhang, Qiansheng Fang, Jin Jiang, Nana Zhang, Shiheng Tang, Gongquan Zhang

Magnetic flux leakage (MFL) testing is a vital non-destructive testing method used to identify defects in oil and gas pipelines and critical components. However, variations in defect geometry and testing conditions can lead to inaccurate data and imbalanced feature distributions, which compromise detection outcomes. To address these challenges, this paper presents a defect classification approach for MFL testing based on generating expansion and the Dual-Channel Vision Transformer (DC-ViT). First, COMSOL finite element software (version 6.1) was used to simulate magnetic flux leakage for different types of pipeline defects. Axial and radial dual-channel signals were extracted to create the initial dataset. Next, a Conditional Variational Autoencoder (CVAE) was used for Generate Expansion to effectively mitigate sample scarcity and defect category imbalance. Finally, the DC-ViT model was constructed and trained using the Generate Expansion dataset as input to achieve multidimensional feature fusion and classification prediction for defects. Experimental results demonstrate 97.97% detection accuracy. The DC-ViT model outperforms traditional convolutional neural networks and single-channel models in terms of accuracy, precision, recall, and F1-score. These results validate the method’s effectiveness and robustness in complex defect scenarios and offer a novel approach to magnetic leakage signal detection.

More from our Archive