# Multi-attention cross-scanning VM-UNet for X-ray welding defect detection of steel pipeline

**Authors:** Ting Zhang, Dengwu Wang, Shanwen Zhang

PMC · DOI: 10.1371/journal.pone.0341805 · PLOS One · 2026-02-06

## TL;DR

A new model called MACVM-UNet improves the detection of welding defects in steel pipelines using X-ray images, offering better accuracy and efficiency.

## Contribution

The MACVM-UNet introduces a novel architecture combining cross-scanning, channel attention, and multi-scale feature aggregation for improved defect detection.

## Key findings

- MACVM-UNet outperforms state-of-the-art models in welding defect detection with mAcc of 86.03%.
- The model achieves mPre of 86.14% and mF1 of 84.6% with lower computational complexity.
- It maintains a training time of 1.61 hours, making it efficient for real-world applications.

## Abstract

Welding defect detection of steel pipelines (SPWDD) is critical for ensuring the safe use of oil/gas pipelines. Due to the complex morphology of welding defect X-ray images (WDXI) in steel pipes and the/low contrast between the defects and the background, SPWDD is an important and challenging topic. To address these challenges, a Multi-Attention Cross-scanning VM-UNet (MACVM-UNet) for SPWDD is constructed. This model adopts the cross-Scanning Visual State Space Model (CVSS) to capture the local features and long-range dependencies, introduces channel attention skip connections (CASC) instead of the conventional skip connections to enhance the performance of globally and locally feature fusion, and employes the multi-scale Attention Feature Aggregation (MSAFA) module to fuse the multi-scale features. The combination of CVSS, CASC and MSAFA can effectively enhance the performance to extract the global-local features of small-sized and large-sized WDXIs. The experimental results on the WDXI dataset validate that the proposed MACVM-UNet outperforms the state-of-the-art models with superior SPWDD performance while maintaining low computational complexity. It achieves the mAcc 86.03%, mPre of 86.14% and mF1 of 84.6% with lower training time of 1.61 h. The proposed method provides an efficient and feasible solution for non-destructive SPWDD of oil/gas pipelines.

## Full-text entities

- **Diseases:** RIWD (MESH:C564543), cracks (MESH:D003387), Welding Defects (MESH:D000013), DL (MESH:C537113), CVSS (MESH:C000722495)
- **Chemicals:** CS2D (-), oil (MESH:D009821)

## Full text

_Full body text omitted from this summary view._ Fetch the complete paper as Markdown: https://tomesphere.com/paper/PMC12880722/full.md

## Figures

8 figures with captions in the complete paper: https://tomesphere.com/paper/PMC12880722/full.md

## References

27 references — full list in the complete paper: https://tomesphere.com/paper/PMC12880722/full.md

---
Source: https://tomesphere.com/paper/PMC12880722