Skip to Content
Applied SciencesApplied Sciences
  • Article
  • Open Access

21 October 2025

18 Pages

SANet: A Pure Vision Strip-Aware Network with PSSCA and Multistage Fusion for Weld Seam Detection

,
,
,
,
and
1
School of Information Engineering, Shenyang University of Chemical Technology, Shenyang 110142, China
2
Shenyang Institute of Automation, Chinese Academy of Sciences, Shenyang 110016, China
*
Authors to whom correspondence should be addressed.
This article belongs to the Section Computing and Artificial Intelligence

Abstract

Weld seam detection is a fundamental prerequisite for robotic welding automation, yet it remains challenging due to the elongated shape of welds, weak contrast against metallic backgrounds, and significant environmental interference in industrial scenarios. To address these challenges, we propose a novel deep neural network architecture termed SANet (Strip-Aware Network). The model is constructed upon a U-shaped backbone and integrates strip-aware feature modeling with multistage supervision. It mainly consists of two complementary modules: the Paralleled Strip and Spatial Context-Aware (PSSCA) module and the Multistage Fusion (MF) module. The PSSCA module enhances the extraction of elongated strip-like features by combining parallel strip perception with spatial context modeling, thereby improving fine-grained weld seam representation. In addition, SANet integrates the StripPooling attention mechanism as an auxiliary component to enlarge the receptive field along strip directions and enhance feature discrimination under complex backgrounds. Meanwhile, the MF module performs cross-stage feature fusion by aggregating encoder and decoder features at multiple levels, ensuring accurate boundary recovery and robust global-to-local interaction. The weld seam detection task is formulated as a two-dimensional segmentation problem and evaluated on a self-built dataset consisting of over 4000 weld seam images covering diverse industrial scenarios such as pipe joints, trusses, elbows, and furnace structures. Experimental results show that SANet achieves an IoU of 96.23% and a Dice coefficient of 98.07%, surpassing all compared models and demonstrating its superior performance in weld seam detection. These findings validate the effectiveness of the proposed architecture and highlight its potential as a low-cost, flexible, and reliable pure vision solution for intelligent welding applications.

1. Introduction

Welding is one of the most critical joining technologies in modern manufacturing, with widespread applications in industries such as automotive, aerospace, shipbuilding, and energy equipment. The quality of weld seams directly affects the mechanical performance and structural safety of products. As a prerequisite for robotic welding, accurate seam detection is essential for automated path planning and high-precision welding operations. Therefore, developing reliable and efficient weld seam detection methods holds great significance for advancing intelligent manufacturing.
Currently, industrial seam detection primarily relies on structured light scanning or laser vision sensors. These methods project gratings or laser stripes onto the workpiece surface, capture the reflected signals with cameras, and reconstruct the geometric profile of the seam [1]. While structured-light-based methods achieve high precision, they face several limitations in practical applications: (1) High hardware costs—structured light sensors are expensive and demand strict calibration and maintenance, resulting in high overall costs [2,3]; (2) Limited robustness—variations in illumination, strong metal surface reflections, and smoke interference in industrial environments can easily disrupt light projection and signal acquisition [4]; (3) Restricted flexibility—structured light devices are often bulky and difficult to integrate into compact welding systems or adapt to complex workpiece geometries [4].
With the rapid development of computer vision and deep learning, image-based detection and recognition techniques have shown remarkable success in fields such as industrial quality inspection, defect detection, and object recognition [5,6,7]. However, in weld seam detection, both academic research and industrial applications remain largely dominated by structured-light or laser-based methods [1,8,9]. To date, there has been no systematic exploration of pure vision approaches that rely solely on conventional industrial cameras [1,10]. As a result, seam detection remains heavily dependent on costly optical devices, limiting scalability and adaptability in real-world applications [1,9].
To address this gap, we propose a pure vision-based seam detection framework termed SANet (Strip-Aware Network). Unlike structured light methods, SANet requires only standard industrial cameras, eliminating reliance on expensive optical sensors and reducing deployment and maintenance costs. Moreover, the absence of active projection improves robustness under complex industrial environments. SANet is lightweight, enabling easy integration into robotic welding systems or compact manufacturing platforms. Most importantly, to the best of our knowledge, SANet is the first attempt to introduce a pure vision approach to seam detection, thereby opening a new research direction and offering a promising pathway for low-cost, high-flexibility intelligent welding.
The proposed SANet is built upon the HCFNet [11] architecture, as illustrated in Figure 1. To enhance feature representation, we design three key modules. First, the Paralleled Strip and Spatial Context-Aware (PSSCA) module captures elongated seam structures and spatial context in parallel, improving fine-grained feature extraction. Second, the StripPooling attention mechanism, introduced from prior studies [12], expands the receptive field along strip directions to strengthen discriminative features of seam regions. Third, the Multistage Fusion (MF) module integrates features from different stages of the encoder and decoder, ensuring comprehensive interaction between global and local information and improving robustness and generalization under complex backgrounds. Together, these components enable SANet to effectively capture seam geometry and achieve superior detection performance.
Figure 1. SANet architecture.
Extensive experiments on a self-built weld seam dataset containing over 4000 images demonstrate the effectiveness of SANet. Results show that PSSCA improves strip-aware and context modeling, StripPooling enhances seam region discrimination under challenging backgrounds, and MF ensures robust cross-stage feature integration. Compared to structured-light-based methods, SANet offers clear advantages in terms of cost efficiency and deployment flexibility while maintaining competitive detection accuracy. Thus, SANet provides a practical and scalable pure vision solution for seam detection, offering both theoretical and application value for intelligent welding.
The main contributions of this work can be summarized as follows:
  • We formulate weld seam detection as an image segmentation problem and propose SANet (Strip-Aware Network), a U-shaped deep neural network with strip-aware and attention mechanisms, enabling accurate seam detection under pure vision conditions.
  • We design two novel modules: the PSSCA module, which enhances fine-grained strip feature extraction and contextual modeling; and the MF module, which integrates multistage features across the encoder and decoder to improve robustness and generalization.
  • We incorporate the StripPooling attention mechanism into SANet, leveraging its ability to strengthen strip-direction feature modeling and improve discriminative representation under complex backgrounds.
  • We construct a seven-channel input representation, combining RGB images with grayscale-blurred, thresholded, edge-detected, and morphologically processed images, thereby enriching texture, boundary, and salient features.
  • We build a self-collected weld seam dataset with over 4000 images across diverse industrial scenarios (e.g., pipe joints, trusses, elbows, furnaces) and conduct extensive evaluations. Experimental results demonstrate that SANet significantly outperforms baseline methods in IoU, Dice, and other metrics, providing a cost-effective and reliable pure vision solution for intelligent welding.

3. Materials and Methods

3.1. Dataset Description

Currently, there is no publicly available dataset specifically designed for pure vision-based weld seam detection. To support the training and evaluation of the proposed method, we constructed a self-collected dataset comprising more than 4000 weld seam images. All images were captured using conventional industrial cameras in real production environments, ensuring both scene diversity and application representativeness.
During data acquisition, we deliberately included a wide range of typical industrial welding scenarios, such as the following:
  • T-joint elbows—seams located at complex pipe junctions characterized by multi-directional intersections and curved surface transitions;
  • Pipe trusses—large-scale structural weld seams under cluttered backgrounds and varying illumination conditions;
  • Industrial furnaces—weld seams on high-temperature equipment surfaces, where imaging is often affected by strong reflections and noise interference;
  • Pipe butt joints—common linear or circular seams exhibiting representative elongated geometric structures.
These scenarios encompass the major types of welding processes in manufacturing and capture the diversity and complexity of seam geometries. Unlike datasets that rely on structured-light or laser-based imaging, this dataset is constructed entirely from pure vision images, thereby providing reliable support for the exploration of cost-effective and flexible seam detection approaches.
To ensure annotation accuracy, all images were carefully reviewed by domain experts, and weld seam regions were precisely labeled. This guarantees the scientific rigor and reproducibility of subsequent model training and evaluation. Beyond meeting the needs of this study, the dataset also serves as a valuable resource for future research on pure vision-based weld seam detection.

3.2. Data Preprocessing

To enhance the model’s ability to perceive seam-related features, we applied a series of preprocessing operations to the raw images, constructing multi-channel input data that enrich both seam morphology and boundary representation. The overall workflow is illustrated in Figure 3.
Figure 3. Preprocessing: Origin (3 channels) and other 4 channels.
The original input consists of RGB images with three channels, providing rich texture and color information as the baseline input to the network. However, weld seams in industrial environments often exhibit uneven illumination, blurred edges, and background clutter. To address these challenges, the following preprocessing steps were sequentially performed, generating additional feature channels (Figure 3):
  • Grayscale and Gaussian blurring: The RGB image was converted into grayscale and subsequently smoothed using a Gaussian filter. This reduces noise and irrelevant textures, thereby highlighting the global structural characteristics of weld seams. One additional channel was produced.
  • Thresholding: Adaptive thresholding was applied to the grayscale image to distinguish seams from their surrounding background regions. One additional channel was produced.
  • Edge detection: The Canny operator was employed to extract seam boundaries and contour information. One additional channel was produced.
  • Morphological closing: A closing operation was applied to the edge detection result to fill small gaps along the seam contours and preserve structural continuity. One additional channel was produced.
In total, a 7-channel input representation was constructed, consisting of the original RGB channels and four preprocessed feature maps. This design allows the network to jointly leverage global texture information from raw images and salient seam characteristics from preprocessing outputs, thereby improving seam discriminability and enhancing the robustness and generalization of the model under complex industrial conditions.

3.3. Network Architecture (SANet)

3.3.1. Overall Architecture

The proposed SANet (Strip-Aware Network) adopts a U-shaped architecture to effectively integrate global semantic information with local fine-grained details, thereby meeting the dual requirements of accuracy and robustness in weld seam detection. The network input consists of a 7-channel representation, including the original RGB channels and 4 additional single-channel maps obtained through grayscale–blur processing, thresholding, edge detection, and morphological closing. This design enables the integration of texture, boundary, and saliency information at the input stage, providing a solid foundation for subsequent feature extraction.
In the encoder, SANet improves upon the feature extraction units of HCFNet. While HCFNet employs a combination of PPA and max pooling, SANet replaces this structure with the proposed PSSCA (Paralleled Strip and Spatial Context-Aware) module, which transforms the original patch-aware design into a strip-aware mechanism. In addition, the StripPooling module is incorporated. Although named as a pooling operation, StripPooling essentially functions as an attention mechanism, enhancing strip-aware features through directional contextual modeling. Ultimately, the encoder’s feature extraction units are replaced with PSSCA, significantly strengthening the network’s ability to represent elongated seam structures.
In the decoder, SANet largely retains the HCFNet design, where feature maps are progressively upsampled and refined. Specifically, the PPA units in HCFNet are replaced with PSSCA, while StripPooling is not applied in the decoder in order to maintain lightweight design. This ensures that the decoder can fuse multi-scale semantic information while preserving computational efficiency during feature enhancement.
Furthermore, SANet introduces a Multistage Fusion (MF) module that spans the entire network. The MF module aggregates features across the channel dimension by combining (i) the max pooling outputs from the encoder, (ii) the decoder features before PSSCA, and (iii) the decoder features after PSSCA. This design ensures that features from different stages interact and complement one another at the same scale, thereby enhancing seam boundary representation and fine-grained structural modeling.
In summary, SANet achieves comprehensive strip-aware feature modeling through PSSCA and StripPooling in the encoder, PSSCA combined with upsampling in the decoder, and MF-based feature integration across the network. Together with the 7-channel input design, SANet demonstrates high accuracy and robustness in weld seam detection under pure vision conditions.

3.3.2. Paralleled Strip and Spatial Context-Aware (PSSCA) Module

Traditional U-shaped networks exhibit limitations when dealing with elongated objects. Although convolutional operations are effective for capturing local features, they lack sufficient capacity for modeling long-range dependencies along strip-like structures. This often leads to weakened representations and blurred boundaries of elongated targets such as weld seams, thereby reducing detection accuracy.
To address this issue, we propose the Paralleled Strip and Spatial Context-Aware (PSSCA) module, as illustrated in Figure 2. Serving as the core component of SANet, the PSSCA module is designed to enhance the feature extraction capability for elongated strip-like objects while improving network robustness in complex scenarios.
We let the input feature map be X ∈ R C × H × W , where C, H, and W denote the number of channels, height, and width, respectively.
First, the channel dimension is adjusted using a 1 × 1 convolution:
X ′ = f 1 × 1 ( X ) , X ′ ∈ R C ′ × H × W ,
where C ′ is the updated number of channels. The resulting feature X ′ is then divided into three parallel branches:
  • Residual branch: The input feature X ′ is directly preserved as a residual connection:
    F r e s = X ′ .
  • Strip partition branch (4 strips): The feature map X ′ is partitioned into 4 strips along either the row or column direction. Each strip is flattened and passed through a feed-forward network (FFN):
    F 4 = FFN ( Reshape ( X ′ , 4 ) ) .
  • Strip partition branch (8 strips): Similarly, X ′ is partitioned into 8 strips. To achieve this, the feature map is reshaped into a square, duplicated, and then divided along both row and column directions. The resulting strip vectors are processed by an FFN:
    F 8 = FFN ( Reshape ( X ′ , 8 ) ) .
All three outputs are aligned to the same shape, allowing channel-wise concatenation:
F c a t = Concat ( F r e s , F 4 , F 8 ) , F c a t ∈ R C ′ ′ × H × W .
Finally, the concatenated features are fed into an attention mechanism. Unlike the original design in HCFNet, we replace the attention module with the Spatial Context Aware Module (SCAM) [22], which jointly enhances spatial and channel representations:
F o u t = SCAM ( F c a t ) .
In summary, the PSSCA module employs a parallel design that integrates residual connections, multi-scale strip partitioning, and contextual modeling. This explicitly introduces directional dependencies along strip-like structures while retaining the local modeling capability of convolution. Combined with SCAM attention, the module achieves globally enhanced feature representations, thereby significantly improving the detection robustness and accuracy of weld seams.

3.3.3. Multistage Fusion (MF)

Although U-shaped networks employ skip connections to enable information flow between the encoder and decoder, the interactions across different stages remain insufficient. This limitation is particularly critical for weld seam detection, where fine-grained features and high-level semantic features exhibit strong complementarity. To address this issue, we propose the Multistage Fusion (MF) module, which enhances cross-level feature interaction and improves the modeling of seam boundaries and structural details. The architecture of the MF module is illustrated in Figure 4.
Figure 4. Structure of the MF module. “Dot” denotes the f 1 × 1 ( · ) operation (1×1 convolution for channel interaction), and “Weights” represent the learnable coefficients applied after the dot operation for adaptive feature reweighting.
In the MF module, three types of features are integrated:
-
Feature A: the outputs from max pooling layers in the encoder, providing multi-scale semantic features from the downsampling stage;
-
Feature B: the decoder features prior to PSSCA processing, which retain original spatial details;
-
Feature C: the decoder features after PSSCA, containing strip-enhanced and context-aware representations.
We let these features be denoted as
F A ∈ R C 1 × H × W , F B ∈ R C 2 × H × W , F C ∈ R C 3 × H × W ,
where C x , H, and W represent the number of channels, height, and width, respectively. The MF module concatenates these features along the channel dimension to obtain the fused representation:
F M F = Concat ( F A , F B , F C ) , F M F ∈ R ( C 1 + C 2 + C 3 ) × H × W .
To ensure that the fused features can be effectively utilized by subsequent layers, a 1 × 1 convolution is applied for channel compression and nonlinear transformation:
F o u t = f 1 × 1 ( F M F ) , F o u t ∈ R C × H × W .
Through this design, the MF module enables feature integration across multiple stages of the encoder and decoder, thereby facilitating the interaction between low-level fine-grained details and high-level semantic information. As a result, the network achieves improved accuracy and robustness in weld seam detection.

3.3.4. StripPooling Attention

To further enhance the discriminative features of weld seam regions, SANet incorporates the StripPooling attention mechanism. Originally introduced by Hou et al. [12], StripPooling aims to enlarge the receptive field and emphasize strip-like structures by applying pooling operations along strip directions. This allows the model to capture long-range dependencies aligned with elongated objects and strengthens its capability for strip-aware feature modeling.
In the context of weld seam detection, where seams inherently exhibit elongated geometries, traditional pooling strategies fail to adequately capture global contextual information along the strip direction. Embedding the StripPooling module into SANet effectively addresses this limitation: (i) pooling along strip directions increases the contrast between weld seams and their background, and (ii) when combined with convolutional features, it enhances boundary sharpness and overall recognition accuracy.
It should be emphasized that StripPooling is not an original contribution of this work. Rather, it is integrated into SANet as a mature attention mechanism to strengthen strip-specific feature representations. The core innovations of this paper lie in the design of the PSSCA module and the multistage fusion strategy, while StripPooling serves as a complementary component to further improve feature modeling effectiveness.

3.3.5. Loss Function

Unlike conventional semantic segmentation networks that apply supervision only to the final output, SANet introduces supervision at multiple stages of the decoder. This design leverages the hierarchical nature of the U-shaped architecture: during upsampling, intermediate decoder outputs progressively restore spatial resolution, and their accuracy directly affects higher-resolution feature reconstruction. By injecting supervision at each stage, the model is constrained to reconstruct features more accurately and stably throughout the decoding process.
Formally, we let the decoder produce L outputs at different stages. The prediction at stage i is denoted as Y ^ i , and its corresponding ground truth Y i is obtained by downsampling the original annotation Y to match the resolution of Y ^ i . The stage-wise loss L i is defined as
L i = CE ( Y ^ i , Y i ) + IoU ( Y ^ i , Y i ) ,
where CE ( · ) represents the cross-entropy loss and IoU ( · ) denotes the Intersection-over-Union loss.
The total loss is obtained as the weighted sum of stage-wise losses:
L t o t a l = ∑ i = 1 L w i L i ,
where w i denotes the weight assigned to stage i. In this work, the weights are set progressively from low to high resolution as w i = { 0.0625 , 0.125 , 0.25 , 0.5 , 1 } . This weighting strategy ensures that the final output plays a dominant role, while intermediate outputs still provide valuable supervisory signals.
By introducing supervision across multiple stages, SANet not only optimizes the final prediction but also encourages effective learning of intermediate feature representations. This multistage supervision alleviates gradient vanishing, stabilizes convergence, and improves detection performance under complex background conditions.

4. Results

4.1. Evaluation Metrics and Model Training

To comprehensively evaluate the performance of the proposed SANet on the self-constructed weld seam dataset, we adopted four widely used metrics: Intersection over Union (IoU), Sørensen–Dice coefficient (Dice), Sensitivity (Sens), and Specificity (Spec). These metrics provide an objective evaluation of the model’s overall performance from two complementary perspectives: region-level segmentation accuracy and boundary localization precision.
Model training and testing were conducted on four NVIDIA Tesla V100-SXM2-32 GB GPUs. Each input image had a resolution of 512 × 512 , represented as a seven-channel input consisting of RGB channels and four preprocessing channels. The total number of parameters in SANet is approximately 20.5 million. The dataset was randomly shuffled and then divided into training, validation, and test sets in a ratio of 7:2:1.
During training, the Stochastic Gradient Descent (SGD) optimizer was employed with a batch size of 6 and a total of 170 epochs. As shown in Figure 5, both the IoU and the total loss exhibited stable convergence in the later training stages, demonstrating the effectiveness and reliability of the chosen training parameters. To ensure training stability and reproducibility, SANet was trained for 170 epochs using the validation set for convergence monitoring rather than early stopping. The final reported results correspond to the model obtained after 170 training epochs. Moreover, all quantitative results presented in this paper are reported as the average of five independent experiments, which effectively mitigates the influence of random initialization and ensures the robustness of the conclusions.
Figure 5. (a) IoU curve over 170 epochs. (b) Total loss curve over 170 epochs. Training of the HintHCFNet diverged due to gradient explosion.

4.2. Comparison

To validate the effectiveness of SANet in weld seam detection, we conducted comparative experiments on the self-constructed weld seam dataset. SANet was compared against several widely adopted semantic segmentation networks, including U-Net [23], UIUNet (U-Net in U-Net) [24], HintUNet (a U-Net variant incorporating hint supervision), and HintHCFNet (an HCFNet variant incorporating hint supervision) [25]. These architectures have demonstrated strong performance across various segmentation tasks, thereby providing valuable benchmarks for assessing the performance of SANet. For a more intuitive comparison, Figure 6 presents visual examples of segmentation outputs, highlighting the superior seam localization ability of SANet over competing methods.
Figure 6. Model output comparison.
As shown in Table 1, SANet consistently achieves the best overall performance on the self-constructed weld seam dataset. SANet obtains an IoU of 0.9623 and a Dice coefficient of 0.9807, which are among the highest across all models. More importantly, SANet attains the lowest total loss (0.0435), indicating more stable convergence and superior optimization efficiency.
Table 1. Comparison with other models on the self-constructed weld seam dataset. The results are reported as the average of five independent experiments.
Additionally, the Sensitivity (Sens) and Specificity (Spec) metrics in this work were computed using soft differentiable formulations without applying a fixed threshold. Given that weld seam pixels are far fewer than background pixels, the absolute values of Sens appear relatively low, which is expected in this task setting. Therefore, these two metrics should be interpreted based on their relative rather than absolute values. Under this interpretation, SANet still outperforms the baseline models, achieving higher Sens (18.33%) and Spec (99.90%) simultaneously. This demonstrates that SANet not only captures the sparse seam pixels effectively but also maintains high accuracy on the background. These results clearly confirm the benefits of the proposed PSSCA and MF modules in enhancing elongated feature extraction and cross-stage feature fusion.
By contrast, HintUNet, although achieving similar IoU and Dice scores (0.9623 and 0.9807), was less stable during training, frequently encountering gradient explosion. Only after applying gradient clipping could HintUNet converge, which inevitably altered its learning dynamics and made the optimization process less reliable. The instability was even more severe for HintHCFNet: despite extensive use of gradient clipping, the model still failed to converge properly, reflected in its very high total loss (0.7843) and markedly inferior IoU (0.3782) and Dice (0.5281). This clearly shows that the heavy modifications in HintHCFUNet exacerbate training instability on this task.
In contrast, SANet converged stably under standard hyperparameter settings without the need for aggressive stabilization strategies such as strong gradient clipping. This robustness, together with its superior accuracy metrics, highlights SANet’s adaptability and suitability for complex industrial seam detection scenarios.

4.3. Ablation

To further evaluate the effectiveness of the key components in SANet, we performed ablation experiments focusing on the PSSCA and MF modules. IoU and Dice metrics were computed on the self-constructed dataset, and the results are summarized in Table 2.
Table 2. Ablation study of SANet on the self-constructed dataset. Baseline refers to a UNet-like backbone without PSSCA or MF.

4.4. Ablation Study

Table 2 reports the ablation study of SANet on the self-constructed dataset. Starting from the baseline UNet-like structure, we gradually introduce the proposed modules and evaluate their contributions.
The baseline model achieves an IoU of 0.9258 and a Dice coefficient of 0.9606, which provides a solid foundation but leaves room for improvement. When the PSSCA module is incorporated, both IoU and Dice increase to 0.9316 and 0.9651, respectively. This improvement verifies the effectiveness of parallel strip and spatial context awareness in enhancing feature extraction of elongated weld seams. Sensitivity and specificity also improve slightly, indicating more accurate recognition of the sparse seam pixels while maintaining high background accuracy.
When the MF module is further added on top of PSSCA, the full SANet achieves the best performance across all metrics, with an IoU of 0.9667, a Dice coefficient of 0.9829, Sensitivity of 0.1796, and Specificity of 0.9991. These results demonstrate that the MF module effectively strengthens cross-stage feature interactions, leading to better overall segmentation quality.
In summary, both PSSCA and MF contribute positively to model performance, and their combination yields the highest accuracy and robustness. This validates the design choice of integrating strip-aware feature modeling with multistage fusion in SANet.

5. Discussion

5.1. Innovations and Limitations

The proposed SANet (Strip-Aware Network) introduces a novel pure vision-based approach tailored for weld seams, which represent a typical elongated structure, and demonstrates several methodological innovations. First, the PSSCA (Paralleled Strip and Spatial Context-Aware) module extends the original PPA design in HCFNet and, combined with the StripPooling attention mechanism, explicitly strengthens strip-direction feature modeling, thereby improving weld seam recognition. Second, the Multistage Fusion (MF) module facilitates effective cross-level feature interaction, preserving global semantic information while enhancing local detail expression, which significantly improves boundary segmentation accuracy. Third, at the input level, SANet adopts an innovative seven-channel input design that integrates raw RGB images with multiple preprocessing results, providing richer texture, boundary, and saliency cues for the network. Collectively, these innovations enable SANet to achieve robust and accurate performance even under complex industrial conditions.
Despite the encouraging results, certain limitations remain. First, the parameter scale of the model is relatively large, which may limit deployment in resource-constrained environments and necessitates further optimization. Second, although the self-constructed dataset covers multiple typical industrial scenarios, its scale and diversity are still limited compared to larger public datasets. These constraints highlight directions for future improvement.
It is important to clarify that in some of the presented images, only partial welding has been performed along the detected seam. This is because the weld seam detection task in this study focuses on locating potential weld paths rather than evaluating completed welds. The actual welding process—including parameters such as coverage pattern (spot or continuous), torch trajectory, and motion speed—is defined by an independent “welding process package” used for robotic operation tuning. These parameters vary according to specific industrial requirements and are beyond the scope of this paper. The preliminary morphological results shown in Figure 3 further illustrate the necessity of the proposed deep learning framework, as conventional methods alone cannot provide reliable seam localization under complex industrial conditions.

5.2. Experimental Observations and Interpretations

During the training of comparative models, we observed distinct stability differences among network architectures. In particular, HintHCFNet exhibited frequent gradient explosion, which can be attributed to its recursive multi-scale hint feedback structure. This recursive coupling amplifies gradient variance when dealing with high-resolution weld textures and significant class imbalance between seam and background pixels. Even with gradient clipping and reduced learning rates, the model remained unstable, suggesting that its feedback-based mechanism is highly sensitive to noisy gradients in industrial data.
In contrast, UNet did not suffer from convergence issues but instead underfitted the task. Its relatively simple encoder–decoder design lacks sufficient contextual modeling and strip-aware feature perception, leading to weak activation in elongated or low-contrast weld regions. Consequently, the output masks appeared nearly blank rather than divergent, reflecting limited representational power rather than instability.
Although HintHCFNet failed to produce meaningful outputs, its inclusion in Figure 6 was intentional. It demonstrates that network complexity does not guarantee robustness and highlights SANet’s stable convergence and adaptability under the same training conditions.
Furthermore, considering the dataset’s diversity, SANet was evaluated across multiple weld categories, including pipe joints, trusses, elbows, and furnace seams. The consistent performance across these distinct geometries underscores its generalization capability. While the segmentation masks may still contain small discontinuities or voids, these artifacts are mainly confined to highly reflective surfaces and can be mitigated through post-processing techniques such as morphological closing and curve fitting.
Finally, we also compared SANet with traditional image-processing methods such as edge detection and adaptive thresholding. These methods can approximate seam contours under uniform illumination but fail in the presence of reflection, noise, or complex backgrounds. In contrast, SANet maintains high continuity and localization accuracy under such conditions, making it a more reliable and interpretable approach for robotic welding automation.

5.3. Future Directions

Building upon the contributions and limitations of this study, several promising directions for future research can be identified.
First, in terms of model efficiency and deployment, the current SANet has a relatively high parameter count. Future work could explore model compression techniques such as pruning, parameter sharing, and knowledge distillation to reduce model complexity and inference cost, enabling deployment on embedded or resource-limited industrial devices.
Second, regarding dataset expansion and diversity, although the proposed dataset encompasses multiple industrial scenarios, it remains insufficient to capture the full range of welding conditions. Future research will aim to enlarge the dataset scale, particularly by incorporating weld samples under different materials, illumination, and noisy environments, thereby improving generalization in real-world applications. Synthetic data generation and domain adaptation techniques may also be leveraged to alleviate the high cost of data collection and annotation.
Third, for adaptive modules and feature modeling, the current StripPooling design relies on fixed strip partitioning strategies. Future extensions may introduce dynamic strip partitioning or learnable geometric priors, allowing the model to adaptively adjust feature extraction to varying seam shapes and scales. Additionally, integrating multimodal information such as infrared or depth images may further enhance robustness under challenging industrial conditions.
Finally, in terms of practical applications and system integration, SANet can be incorporated into robotic welding systems to enable real-time seam detection and path planning, validating its value in actual production lines. By collaborating with industrial control systems, SANet holds promise as a foundational technology for advancing intelligent and automated welding.

Author Contributions

Conceptualization, L.Z. and G.S.; methodology, Z.Z., L.Z. and Q.W.; software, Z.Z.; validation, Z.Z.; investigation, Z.Z.; resources, G.S.; data curation, Z.Z., H.G. and Z.Y.; writing—original draft preparation, Z.Z.; writing—review and editing, Q.W.; visualization, Z.Z.; supervision, G.S. and Q.W.; project administration, G.S.; funding acquisition, G.S. and Q.W. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by the Youth Innovation Promotion Association CAS (Grant Y2023058) and the Natural Science Foundation of Liaoning Province (Grant 2025JH6/101100020).

Institutional Review Board Statement

Not applicable.

Data Availability Statement

The data are not publicly available due to privacy restrictions.

Acknowledgments

The authors received no external assistance during the preparation of this work. No generative AI tools were used for data generation, analysis, or manuscript writing.

Conflicts of Interest

The authors declare no conflicts of interest.

Abbreviations

The following abbreviations are used in this manuscript:
SANetStrip-Aware Network
PSSCAParalleled Strip and Spatial Context-Aware
MFMultistage Fusion
IoUIntersection over Union
DiceSørensen–Dice Coefficient
SensSensitivity
SpecSpecificity
SCAMSpatial Context Aware Module
RGBRed, Green, Blue (color channels)
SGDStochastic Gradient Descent
CNNConvolutional Neural Network
UNetU-shaped Network
UIUNetU-Net in U-Net

References

  1. Wang, J.; Li, L.; Xu, P. Visual Sensing and Depth Perception for Welding Robots and Their Industrial Applications. Sensors 2023, 23, 9700. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  2. Zhu, C.; Zhu, Z.; Ke, Z.; Zhang, T. Internal Parameters Calibration of Vision Sensor and Application of High Precision Integrated Detection in Intelligent Welding Based on Plane Fitting. Sensors 2022, 22, 2117. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  3. Huynh, C.T.; Phung, T.C. Research on welding seam tracking algorithm for automatic welding process of X-shaped tip of concrete piles using laser distance sensor. Robotica 2024, 42, 1796–1815. [Google Scholar] [CrossRef] [Scilit]
  4. Chen, G.; Zhang, Y.; Ai, Y.; Yu, B.; Xu, W. Real-Time Seam Extraction Using Laser Vision Sensing: Hybrid Approach with Dynamic ROI and Optimized RANSAC. Sensors 2025, 25, 3268. [Google Scholar] [CrossRef] [Scilit]
  5. Hütten, N.; Alves Gomes, M.; Hölken, F.; Andricevic, K.; Meyes, R.; Meisen, T. Deep Learning for Automated Visual Inspection in Manufacturing and Maintenance: A Survey of Open-Access Papers. Appl. Syst. Innov. 2024, 7, 11. [Google Scholar] [CrossRef] [Scilit]
  6. Shukla, V.; Shukla, A.; Surya Prakash, S.K.; Shukla, S. A systematic survey: Role of deep learning-based image anomaly detection in industrial inspection contexts. Front. Robot. AI 2025, 12, 1554196. [Google Scholar] [CrossRef] [Scilit]
  7. Bai, J.; Wu, D.; Shelley, T.; Schubel, P.; Twine, D.; Russell, J.; Zeng, X.; Zhang, J. A Comprehensive Survey on Machine Learning Driven Material Defect Detection. ACM Comput. Surv. 2025, 57, 275. [Google Scholar] [CrossRef] [Scilit]
  8. Yang, Y.; Yang, Y.; Shao, W. Micro-Gap Weld Seam Contrast Enhancement via Phase Contrast Imaging. Materials 2025, 18, 1281. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  9. Zhao, M.; Liu, X.; Wang, K.; Liu, Z.; Dong, Q.; Wang, P.; Su, Y. Welding Seam Tracking and Inspection Robot Based on Improved YOLOv8s-Seg Model. Sensors 2024, 24, 4690. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  10. Smith, J.; Liu, C. A Review of Machine Vision Systems for Real-Time Weld Seam Tracking in Robotic Environments; EasyChair Preprint 11767. 2024. Available online: https://easychair.org/publications/preprint/LgNn (accessed on 14 January 2024).
  11. Xu, S.; Zheng, S.; Xu, W.; Xu, R.; Wang, C.; Zhang, J.; Teng, X.; Li, A.; Guo, L. HCF-Net: Hierarchical Context Fusion Network for Infrared Small Object Detection. In Proceedings of the 2024 IEEE International Conference on Multimedia and Expo (ICME), Niagara Falls, ON, Canada, 15–19 July 2024; pp. 1–6. [Google Scholar] [CrossRef] [Scilit]
  12. Hou, Q.; Zhang, L.; Cheng, M.M.; Feng, J. Strip Pooling: Rethinking Spatial Pooling for Scene Parsing. In Proceedings of the 2020 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), Seattle, WA, USA, 13–19 June 2020. [Google Scholar]
  13. Yang, H.; Wang, J.; Liu, W.; Xu, Z.; Li, Z.; Yuan, Y.; Qin, J.; Chen, X.; Li, X. Weld Seam Tracking and Detection Method Based on Structured Light Vision. In Proceedings of the 2025 40th Youth Academic Annual Conference of Chinese Association of Automation (YAC), Zhengzhou, China, 17–19 May 2025; pp. 2114–2120. [Google Scholar] [CrossRef] [Scilit]
  14. Pham, D.A.; Bui, D.Q.; Le, T.D.; Tran, D.H.; Nguyen, T.H. Automatic welding seam tracking and real-world coordinates identification with machine learning method. Results Eng. 2024, 23, 102565. [Google Scholar] [CrossRef] [Scilit]
  15. Ali, R.; Sarmad, M.; Tayyub, J.; Vogel, A. Accurate detection of weld seams for laser welding in real-world manufacturing. AI Mag. 2023, 44, 431–441. [Google Scholar] [CrossRef] [Scilit]
  16. Li, W.; Mei, F.; Hu, Z.; Gao, X.; Yu, H.; Aldeen Housein, A.; Wei, C. Multiple weld seam laser vision recognition method based on the IPCE algorithm. Opt. Laser Technol. 2022, 155, 108388. [Google Scholar] [CrossRef] [Scilit]
  17. Zhang, Z.; Zhang, Y.; Chen, C.; Wang, X.; Li, J.; Xie, W. Seam detection method design and automatic calibration based on an active light coaxial visual sensor. Opt. Lasers Eng. 2023, 160, 107304. [Google Scholar] [CrossRef] [Scilit]
  18. Spruck, A.; Seiler, J.; Roll, M.; Dudziak, T.; Eckstein, J.; Kaup, A. Quality Assurance of Weld Seams Using Laser Triangulation Imaging and Deep Neural Networks. In Proceedings of the 2020 IEEE International Workshop on Metrology for Industry 4.0 & IoT, Roma, Italy, 3–5 June 2022. [Google Scholar] [CrossRef] [Scilit]
  19. Wang, Y.; Cao, Y.; Ye, B.; Zhang, H.; Fu, Y. Research on Detection Method for Welding Seam Defects in Ultrasonic TOFD Image Based on Mask R-CNN. J. Physics Conf. Ser. 2021, 1995, 012032. [Google Scholar] [CrossRef] [Scilit]
  20. Zhang, S.; Zhang, Y. Automated weld defect segmentation from phased array ultrasonic data based on U-net architecture. NDT E Int. 2024, 146, 103165. [Google Scholar] [CrossRef] [Scilit]
  21. Zhu, Z.; Wang, Q. Football Net: Leveraging the Structure of Truncated Icosahedron in Convolutional Neural Network Design. Appl. Sci. 2025, 15, 1369. [Google Scholar] [CrossRef] [Scilit]
  22. Zhang, Y.; Ye, M.; Zhu, G.; Liu, Y.; Guo, P.; Yan, J. FFCA-YOLO for Small Object Detection in Remote Sensing Images. IEEE Trans. Geosci. Remote Sens. 2024, 62, 5611215. [Google Scholar] [CrossRef] [Scilit]
  23. Ronneberger, O.; Fischer, P.; Brox, T. Segmentation. In Medical Image Computing and Computer-Assisted Intervention—MICCAI 2015; Navab, N., Hornegger, J., Wells, W.M., Frangi, A.F., Eds.; Series Title: Lecture Notes in Computer Science; Springer International Publishing: Cham, Switzerland, 2015; Volume 9351, pp. 234–241. [Google Scholar] [CrossRef] [Scilit]
  24. Wu, X.; Hong, D.; Chanussot, J. UIU-Net: U-Net in U-Net for Infrared Small Object Detection. IEEE Trans. Image Process. 2023, 32, 364–376. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  25. Quan, W.; Zhao, W.; Wang, W.; Xie, H.; Lee Wang, F.; Wei, M. Lost in UNet: Improving Infrared Small Target Detection by Underappreciated Local Features. IEEE Trans. Geosci. Remote Sens. 2025, 63, 5000115. [Google Scholar] [CrossRef] [Scilit]
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Article Metrics

Citations

Article Access Statistics

Multiple requests from the same IP address are counted as one view.