Skip to main content
Sensors (Basel, Switzerland) logoLink to Sensors (Basel, Switzerland)
. 2026 May 3;26(9):2861. doi: 10.3390/s26092861

Real-Time Lightweight Weld Seam Keypoint Detection and Tracking via an Improved SimCC with a Unified Three-Keypoint Formulation

Shenkuo Wang 1, Xiangjie Huang 2, Ang Gao 1, Chao Chen 1,2,3, Fuxin Du 1,*
Editor: Qiwu Luo
PMCID: PMC13165752  PMID: 42122583

Abstract

Reliable weld seam perception remains challenging in industrial environments, where arc light, spatter, smoke, and varying seam geometries can seriously degrade visual sensing. These disturbances make it difficult to achieve a unified representation, accurate localization, and real-time inference at the same time. To address this problem, this paper presents an end-to-end lightweight framework for weld seam keypoint detection and tracking based on an improved SimCC. A unified three-keypoint formulation is introduced to represent different weld geometries by using one seam center point and two orientation reference points, thereby supporting a perception-to-control mapping in which position control and orientation control are decoupled. In addition, a lightweight C3k2-based backbone is designed, and a non-parametric log-domain quadratic peak-refinement decoder is proposed to alleviate the discretization-induced quantization error of SimCC classification distributions without adding model parameters. Experiments show that the proposed model contains only 1.4 M parameters, achieves 17.01 ms CPU inference latency, and obtains a detection accuracy of 1.89 px MAE. In curved weld seam tracking experiments with the integrated robotic system, it further achieves an average trajectory tracking error as low as 0.159 mm and an average orientation error of 3.738°, demonstrating its real-time accuracy and robustness for industrial welding applications.

Keywords: weld seam, keypoint detection, SimCC, sub-pixel localization, log-domain quadratic peak refinement, lightweight network

1. Introduction

In high-end equipment manufacturing, welding is a fundamental process for joining steel structures, ship components, and key automotive parts [1,2]. Weld formation quality directly affects structural integrity and service life [3]. As intelligent manufacturing places increasing demands on flexibility and consistency, line-laser active structured-light vision has gradually replaced traditional teach-and-playback procedures. Owing to its non-contact measurement capability, rich geometric information, and stronger resistance to ambient-light interference, this technique has been widely used for weld-seam deviation correction and robotic guidance [4]. Although sensing hardware and optical components have become relatively mature, welding scenes are still affected by arc glare, spatter, smoke, surface reflections, and variations in seam geometry. Under real-time constraints, extracting weld features from images with both robustness and accuracy therefore remains a major barrier to engineering deployment.

Early studies used traditional digital image processing techniques (DIPT) [5,6,7] to extract laser center lines, relying on filtering, threshold segmentation and morphological operations, the process is relatively simple and can be explained; however, the thresholds adjusted by manual clues and experience are easily affected by changes in operating conditions and sudden noise fluctuations. In recent years, deep learning has made weld perception more adaptable to appearance variations. Existing methods mainly include object-detection models that localize the Region of Interest (ROI) to suppress background clutter [8,9], semantic-segmentation methods that densely label laser-stripe pixels [10,11], and Generative Adversarial Networks (GANs) for image enhancement and denoising [12,13]. Although these methods have improved weld perception, they usually output bounding boxes, masks, or enhanced images rather than the geometric points directly required for robot control.

In practical applications, these methods are often used in cascaded hybrid pipelines that combine deep models with traditional post-processing. A typical workflow first uses a network to generate bounding boxes, masks, or enhanced images, and then computes the final coordinates through conventional procedures such as geometric-center estimation or skeleton extraction [14,15]. Cheng and Jin [16] evaluated this type of hybrid pipeline for weld feature extraction. Their YOLOv8n+DIPT detection scheme achieved an RMSE of 11.489 px with a latency of 79.2 ms, while the Fast-SCNN+DIPT segmentation scheme reduced the RMSE to 4.786 px but still required 56.5 ms. These results suggest that improving the upstream detection or segmentation stage does not necessarily remove the accuracy and latency limits introduced by cascaded coordinate extraction. This indirect pipeline has several limitations. Error accumulation is difficult to avoid because uncertainty from deep predictions and errors from post-processing are combined, which increases the final localization error and makes deployment more complicated. The computation is also not well matched to the tracking task. When a network regresses many bounding-box parameters, performs pixel-wise classification over the whole image, or generates high-fidelity images, it learns a large amount of texture or region-level information. Weld tracking, however, usually requires only a small number of geometric keypoint coordinates, so part of the computation is spent on details that are only weakly related to the control objective [17]. Moreover, when the final coordinates are obtained through non-differentiable traditional operations, the coordinate error cannot be backpropagated through the whole pipeline. As a result, the model cannot be directly optimized for geometric localization accuracy.

To solve the problem, researchers used the idea of pose estimation, and also introduced a key point detection model. They restated the task as directly performing weld key point prediction, reducing the reliability problem of post-processing, and allowing the network to learn the geometric topology of welds. Heatmap-based regression is relatively common in existing weld key point methods. Zou et al. [12] combined a generative adversarial network (GAN) with a U-shaped architecture to generate probability heatmaps to suppress strong arc light interference. Even so, resolution recovery often relies on complex upsampling structures, which leads to large computational overhead, and the positioning accuracy is also limited by discrete grids. Deng et al. [18] proposed a real-time extraction method based on CenterNet. This method combines Gaussian heatmaps with an offset branch and a weld type classification branch. This method has 99.359% weld type classification accuracy, 1.754 pixel average extraction error and 32.186 millisecond average processing time on three typical welds.The results show that key point detection related to heat maps for weld feature extraction is effective. And its output structure is related to predefined weld categories, while the number of feature points varies with the weld type. An offset branch is also needed to calculate the downsampled discrete residuals. Mobaraki et al. [19] adopted stacked hourglass networks for key point localization. Multi-level cascading can improve robustness, but the computational burden is difficult to bear on low-power personal terminals, and the rough output resolution also limits the positioning accuracy. The heatmap paradigm has ongoing trade-offs among output resolution, structural complexity, and coordinate accuracy.

Beyond the trade-off between accuracy and speed, geometric differences among weld seams also limit algorithm generalization. Zou and Zeng [10] proposed a lightweight SOLOv2-based segmentation method combined with ECO tracking, achieving a CPU latency of 34.2 ms and a mean absolute welding error of about 0.20–0.21 mm with only 0.224 M parameters and 0.391 G FLOPs. However, the network still outputs masks rather than coordinates. As a result, the final seam feature point must be obtained through skeletonization and tracking, which prevents direct end-to-end optimization with respect to the control coordinates. Gao et al. [20] adopted a “case-by-case” strategy that divides welds into multiple categories for detection. Although this strategy can handle multi-shape recognition, overly fine category partitioning increases the annotation burden and disrupts the shared geometric relations among welds, thereby increasing the difficulty of classification prediction. Zhao et al. [21] proposed the DeepKP framework to improve keypoint extraction under multiple arc-light interference, reporting an average WSKP locating error of 1.75 px and an average seam tracking error of 0.336 mm. However, its core module still follows a “classify-first, regress-later” logic: it must explicitly recognize weld semantic categories to generate specific prior regions, and then extract coordinates within those regions. This strong coupling to class priors implies that a unified annotation and geometric representation system across weld types has not yet been established. The model generalization is therefore constrained by predefined training categories, and it is prone to failure for non-standard or hybrid weld geometries. Consequently, establishing a unified geometric representation that can be shared across weld types, and completing end-to-end detection and optimization within a single standardized model, remains an open problem.

Simple Coordinate Classification (SimCC) reformulates keypoint localization by replacing direct coordinate regression or dense two-dimensional (2D) heatmap estimation with two one-dimensional coordinate classification tasks [22]. This heatmap-free formulation is well suited to lightweight weld feature extraction because it avoids high-resolution heatmaps, produces sparse coordinate distributions for the required keypoints, and preserves fine-grained coordinate discrimination under limited computational resources. However, SimCC alone is not sufficient for robotic weld tracking. Heterogeneous seams require semantically consistent keypoints, the perception output must be easily converted into trajectory and torch-pose commands, and the detector must remain lightweight enough for CPU-side industrial deployment.

To meet these requirements, this paper proposes an end-to-end framework that combines a unified three-keypoint formulation with an improved lightweight SimCC detector. Each weld is represented by one seam center point for trajectory tracking and two orientation reference points for local cross-sectional pose estimation, forming a fixed-dimensional, control-oriented output across weld types. A compact C3k2-based backbone is used to reduce computational cost, while a non-parametric log-domain quadratic peak-refinement decoder refines coordinates from SimCC distributions without introducing trainable parameters.

The main contributions are summarized as follows:

  • (1)

    Unified control-oriented three-keypoint formulation: We introduce a fixed three-keypoint representation, composed of one seam center point and two orientation reference points, to describe heterogeneous weld seams with consistent semantics. By decoupling trajectory-position correction from orientation estimation, this formulation directly connects visual perception with robot control.

  • (2)

    Lightweight SimCC with non-parametric coordinate refinement: Using a lightweight C3k2-based backbone, we train SimCC with Gaussian soft labels and KL-divergence supervision, and propose a non-parametric log-domain quadratic peak-refinement decoder. This design enables sub-pixel coordinate decoding and reduces discretization-induced coordinate bias without increasing the parameter budget, while preserving an end-to-end pipeline suitable for real-time CPU-side deployment.

  • (3)

    System-level validation for industrial closed-loop control: We implement an integrated welding setup that couples visual perception with robot control, and conduct trajectory-tracking and orientation-adjustment tests on representative planar curved welds. The experiments verify that the proposed framework achieves a practical balance among model size, CPU latency, pixel-level localization accuracy, and closed-loop tracking performance.

2. Experimental Platform

To evaluate the proposed algorithm under practical operating conditions, we developed an integrated robotic welding vision system. The platform comprises a robotic subsystem, a vision sensing subsystem, a welding subsystem, and a central control computer. The corresponding hardware configuration is summarized in Table 1. The vision module employs a custom-developed structured-light sensor assembly, as shown in Figure 1. The sensor mainly includes a HIK board-level industrial camera, a 660 nm narrow-band filter, a laser projector that emits a single 660 nm laser line, and a control circuit for adjusting the laser intensity. The camera is equipped with a 25 mm industrial lens, and the acquired images used in this study have a resolution of 1280×1080 pixels. During image acquisition, the exposure setting and laser brightness were adjusted according to the welding conditions to obtain a clear laser stripe and reduce saturation caused by arc glare.

Table 1.

Detailed hardware configuration of the experimental platform.

Equipment Model/Specification
Robot SIASUN SR12A-12/1.46
Vision Sensor Custom-developed structured-light sensor
Robot Controller SIASUN SRC E5
Welding Machine AOTAI NBC-500RP Plus
Welding Feeder AOTAI CS-501-500
Shielding Gas CO2

Figure 1.

Figure 1

Line-laser structured-light sensor prototype used in the experiments.

During welding, the structured-light sensor projects the laser line onto the workpiece surface, forming stripe information that represents the surface profile. The sensor simultaneously captures laser images, and the algorithm then computes the weld seam pixel coordinates in the 2D image coordinate system. Based on optical triangulation, the detected 2D keypoints are first converted into 3D points in the sensor coordinate system using the calibrated camera parameters and structured-light plane. Then, with the hand–eye calibration result and the robot pose, the weld seam position is transformed into the robot base frame for trajectory tracking and pose adjustment [23]. In this study, camera calibration was performed using checkerboard images, the structured-light plane was obtained by fitting the extracted laser centerline points, and the hand–eye transformation was calibrated before the welding experiments.

The platform implements the complete execution chain for closed-loop tracking, covering image acquisition, visual inference, coordinate transformation, controller communication, and robot motion updating. The system was tested under practical welding conditions, where arc glare, spatter, smoke, surface reflection, and local laser-stripe occlusion may interfere with structured-light imaging.

3. Unified Three-Keypoint Formulation and Dataset Construction

3.1. Unified Three-Keypoint Formulation

To accommodate the morphological diversity of heterogeneous weld seams in industrial practice, support unified modeling across different weld types, and meet the real-time control requirements of robotic systems, we propose a unified three-keypoint formulation with a standardized annotation scheme. Inspired by the work of Yu et al. [24], the weld seam geometry is abstracted into three keypoints: one seam center point (Pc) and two orientation reference points (Pl and Pr).

Pc denotes the seam center point and serves as the target point followed by the robot Tool Center Point (TCP). Pl and Pr are typically placed on the two sides of the weld profile; together with Pc, they provide local orientation cues for the cross-section. The geometric relationship among Pl, Pc, and Pr is used to compute the normal information of the weld cross-section, thereby providing a stable basis for welding torch pose estimation. With this definition, weld perception is formulated at the network level as a sparse keypoint localization problem with a fixed output size, while the resulting standardized output can be directly used in a perception-to-control mapping for position and orientation control.

This formulation differs from existing weld-feature representations in its fixed semantics and control orientation. Instead of using weld-category-dependent feature points, bounding boxes, segmentation masks, or hand-crafted geometric rules, the proposed formulation assigns the same physical meaning to a fixed-dimensional keypoint triplet across weld types. Thus, the perception output becomes a compact geometric state that can be directly mapped to trajectory correction and torch-pose estimation, rather than an intermediate visual description requiring additional post-processing.

Based on the above definition, we formulate standardized three-point annotation rules for five typical joint types (see Figure 2):

Figure 2.

Figure 2

Unified three-keypoint annotation scheme for representative weld types: (a) Fillet weld; (b) Lap weld; (c) Butt-I weld; (d) Butt-V weld; (e) Butt-Y weld.

In this formulation, Pc is referred to as the seam center point, and Pl/Pr are referred to as the left/right orientation reference points.

  • Fillet Weld: Pc is defined as the root vertex of the groove. Pl and Pr are located at a preset pixel distance e (set to 300 pixels in this study) extending from Pc along both sides of the laser stripe profile.

  • Lap Weld: Pc is defined as the inner corner of the step, and Pl is the outer corner. Pr is obtained by extending the same distance e from Pc along the laser stripe on the opposite side.

  • Butt-I Weld: Pl and Pr are defined as the two endpoints on the upper surface of the weld seam. Pc is the midpoint of the line connecting the two bottom endpoints of the weld seam.

  • Butt-V Weld: Pc is defined as the valley vertex of the “V” shape. Pl and Pr are the two intersections between the upper edge of the groove and the laser stripe.

  • Butt-Y Weld: Pl and Pr are defined as the two outermost endpoints on the upper edge of the groove. Pc is the intersection of the extended lines from the two sloped sections in the middle area of the groove, representing the theoretical “V-shaped” root.

The preset distance e used for the Fillet and Lap welds is an empirical task-related hyperparameter rather than an arbitrary constant. When e is too small, the two orientation reference points lie close to Pc, making the estimated local orientation more susceptible to laser-stripe noise, arc-induced halo, or minor annotation deviations. If e is too large, the reference points may fall outside the stable local weld structure, where they can be affected by irrelevant surface variations or partial stripe occlusion. Under the current camera field of view, image resolution, and typical weld scale, e=300 pixels provides a sufficiently long and stable orientation baseline while keeping the reference points within the local weld profile in most samples. For different sensors, fields of view, or weld sizes, this parameter should be re-tuned according to the corresponding imaging scale.

Compared with conventional approaches, this unified feature representation reduces the recognition of multiple weld types to a single sparse keypoint localization task with a fixed output dimension. As a result, one deep learning model can handle all weld types without redesigning the model structure for each heterogeneous geometry, which improves universality and generalization. The control requirements are reflected in the definitions of Pc, Pl, and Pr: Pc is used as the trajectory-tracking reference to guide TCP position correction, whereas Pl and Pr constrain the local cross-sectional direction and provide explicit cues for estimating the torch normal and the feeding pose. Since the keypoint semantics are anchored in joint structures rather than merely in geometric corners, the proposed annotation is easier to interpret and tends to yield more consistent labels. At the same time, the network is encouraged to focus on control-relevant geometric semantics, instead of relying on redundant appearance variations.

3.2. Dataset Construction

Following the unified three-keypoint formulation, we carried out purpose-oriented data collection in a real industrial welding setting. The recorded scenes include common welding disturbances, such as intense arc light, spatter, smoke, surface reflection, and local laser-stripe occlusion, and cover the five joint types described above. In total, 6671 grayscale images at a resolution of 1280×1080 pixels were acquired.

Keypoint annotation strictly followed the unified three-keypoint rules defined in Section 3.1 and was completed frame by frame with pixel-level precision using the open-source tool LabelMe. Before annotation, the keypoint definitions and the ordering of Pl, Pc, and Pr were standardized to reduce operator-dependent ambiguity. For keypoints partially occluded by arc light, spatter, smoke, or local stripe saturation, annotators inferred their positions according to laser-stripe continuity, local geometric context, and visible structural edges. For Fillet and Lap welds, where the orientation reference points are defined by the preset distance e, the reference direction was estimated from the visible stripe branch when the nominal point was locally occluded, and the point was then determined by extending from Pc along that branch by e. After annotation, all labels were checked for consistency with the predefined rules. This strategy helps preserve the complete weld geometry under harsh imaging conditions, although a small amount of annotation uncertainty may remain in severely occluded cases.

After quality control, the 6671 images were randomly divided into a training set of 5364 images and a validation set of 1307 images at an 8:2 ratio. The per-type distribution is reported in Table 2: Fillet (train 1039, val 251), Lap (train 1001, val 251), Butt-I (train 1140, val 274), Butt-V (train 1172, val 282), and Butt-Y (train 1012, val 249). During training, online data augmentation was employed to enhance robustness against practical industrial disturbances, including varying seam orientations and rotating workpieces.

Table 2.

Distribution of weld seam images in the dataset.

Dataset Split Fillet Lap Butt-I Butt-V Butt-Y Total
Training Set 1039 1001 1140 1172 1012 5364
Validation Set 251 251 274 282 249 1307
Total 1290 1252 1414 1454 1261 6671

4. Lightweight Weld Seam Detection Network Based on Improved SimCC

To satisfy the real-time response and localization accuracy required in robotic welding, we design an end-to-end keypoint detection pipeline based on an improved SimCC framework. Unlike conventional two-stage methods, the proposed pipeline removes the post-processing steps that are typically applied after visual prediction. It combines temporally guided adaptive ROI cropping, a compact feature-extraction backbone, and a non-parametric peak-refinement decoder, enabling efficient weld-feature localization while maintaining high coordinate precision.

4.1. Overall Network Structure and Temporal Keypoint-Guided Adaptive ROI Cropping

As shown in Figure 3, the network performs end-to-end keypoint inference through full-frame initialization, ROI-based tracking, and sub-pixel decoding.

Figure 3.

Figure 3

Overview of the proposed pipeline: ROI cropping, lightweight backbone, SimCC prediction, and non-parametric log-domain quadratic peak-refinement decoding.

To reduce interference from complex industrial backgrounds and lower the computational cost, the network uses a temporally guided adaptive ROI cropping scheme based on the detected keypoints. The weld keypoints consist of the seam center point Pc, the left orientation reference point Pl, and the right orientation reference point Pr. The specific rules for ROI extraction are as follows:

  • Initial Frame Processing (Full-frame initialization): For the first frame of the welding sequence, due to the lack of prior positional information, the system inputs the full-frame image into the network for global detection to obtain the initial keypoint coordinates.

  • Subsequent Frame Tracking (Temporal tracking): During the welding process, leveraging the spatial continuity of the weld seam, the ROI bounding box is calculated based on the three keypoint coordinates Kt1={Pc,Pl,Pr}t1 detected in the previous frame (t1):
    xmin=max0,min(xct1,xlt1,xrt1)δ,xmax=minW01,max(xct1,xlt1,xrt1)+δ (1)
    ymin=max0,min(yct1,ylt1,yrt1)δ,ymax=minH01,max(yct1,ylt1,yrt1)+δ (2)

where δ is a preset margin (set to 80 pixels in this study), and W0, H0 denote the original image width and height. All coordinates in Kt1 are defined in the original image coordinate system. The cropped ROI region has a width of wroi=xmaxxmin+1 and a height of hroi=ymaxymin+1, which is subsequently resized to the fixed network input size Win×Hin (set to 256×256 in this study) before being fed into the feature extraction network. The boundary clamping keeps the cropped ROI within the valid image extent. The ROI cropping procedure is shown in Figure 4.

Figure 4.

Figure 4

Schematic of temporally guided adaptive ROI cropping based on previous-frame keypoints.

The temporal ROI strategy uses the spatial continuity of robotic welding sequences, in which the inter-frame seam displacement is limited by the welding speed, camera frame rate, and robot motion constraints. Thus, the keypoints detected in the previous frame usually provide a reliable prior for locating the weld region in the current frame. The margin pixels adds contextual information around the three keypoints, tolerates moderate localization errors from the preceding frame, and reduces the risk of excluding the laser stripe or weld structure from the crop. However, the strategy may become unreliable when the previous frame is severely misdetected, when transient spatter or arc glare is strong, when the seam geometry changes abruptly, or when the target lies close to the image boundary. In practical deployment, the ROI can be enlarged, or full-frame re-initialization can be triggered, once abnormal geometry, low confidence, or boundary-near predictions are observed. Long-sequence drift and failure-recovery behavior will be further quantified in future work.

The cropped ROI image is fed into the feature extraction network to generate deep feature maps. Subsequently, the SimCC classification head decouples these features into 1D coordinate classification distributions for the horizontal (X) and vertical (Y) axes. Finally, log-domain quadratic peak-refinement decoding is applied to recover sub-pixel coordinates from the classification distributions and map them back to the original image coordinate system. After inference on the resized ROI, the predicted coordinates (x^in,y^in) in the network input coordinate system are mapped back to the original image by applying the inverse scaling and the ROI origin offset:

x^=xmin+x^in·wroiWin,y^=ymin+y^in·hroiHin (3)

where (x^in,y^in) are the decoded keypoint coordinates in the Win×Hin input space, wroi=xmaxxmin+1 and hroi=ymaxymin+1 are the pixel dimensions of the cropped ROI in the original image, and Win,Hin are the fixed network input dimensions.

4.2. Lightweight Feature Extraction Backbone Based on C3k2 Modules

In the feature extraction stage, High-Resolution Networks (HRNet [25]) are often used in original SimCC implementations for their ability to preserve spatial geometry through parallel multi-resolution sub-streams. However, their complex cross-layer connections and large parameter count result in excessive computational costs, making them unsuitable for the millisecond-level real-time inference required by industrial embedded devices. Similar efficiency-oriented designs have also been emphasized in other real-time applied vision tasks, where lightweight feature extraction and attention mechanisms are used to preserve structural details while reducing computational cost [26]. To significantly improve inference speed while maintaining accuracy, this paper does not directly employ the complete YOLOv11 detector. Instead, it borrows the lightweight backbone design philosophy and several efficient feature-extraction components from YOLOv11 [27], including C3k2, SPPF, and C2PSA, while removing the object-detection head, bounding-box regression branch, objectness prediction, and other detection-specific structures. The resulting network is therefore redesigned as a compact feature extractor followed by SimCC coordinate-classification heads for sparse weld keypoint localization. The detailed backbone architecture is depicted in Figure 5.

Figure 5.

Figure 5

Architecture of the lightweight feature extraction backbone.

The backbone is constructed using C3k2 (Cross Stage Partial (CSP) 3-convolution with K2 enhancement) modules and the C2PSA (C2 Position-Sensitive Attention) mechanism, which jointly form the feature extraction path. The C3k2 module can be regarded as a refined version of the preceding C2f structure. Within the CSP bottleneck, more compact convolutional operations and configurable kernel sizes are introduced to perform “split–merge” feature-map processing. This arrangement smooths gradient propagation and, meanwhile, suppresses redundant gradient responses while reducing the model’s floating-point operations (FLOPs).

SPPF (Spatial Pyramid Pooling - Fast) and C2PSA are further placed at the end of the deep feature extractor. With position-aware attention, C2PSA emphasizes responses in key weld regions, such as groove edges, laser-stripe intersections, and seam-center regions, without adding substantial computation, thereby weakening background interference caused by strong arc light and spatter.

Compared with HRNet, the C3k2-stacked lightweight backbone provides considerably higher computational efficiency. HRNet preserves high-resolution representations through parallel branches, whereas the proposed design relies on efficient downsampling, deeper semantic abstraction, and attention mechanisms to compensate for the loss of spatial detail. This structure is suitable for weld keypoint detection because the task mainly depends on sparse local geometric structures, such as groove edges, stripe intersections, and seam-center cues, rather than dense region-level prediction. The lightweight backbone encodes multi-scale texture and geometric semantics for heterogeneous welds, while the attention mechanism helps suppress disturbances caused by arc glare, spatter, and reflections. Experimental results indicate that this structure retains multi-scale feature extraction capability for heterogeneous welds, including extremely narrow butt seams and wide V-grooves, while reducing model weights by several-fold. The smaller model footprint improves memory efficiency and increases the frame rate, providing a reliable computational basis for high-frequency real-time tracking in complex welding environments.

4.3. SimCC Coordinate-Classification Head and Log-Domain Peak-Refinement Decoding

SimCC [22] formulates keypoint localization as two one-dimensional coordinate classification tasks along the horizontal and vertical axes, rather than using direct coordinate regression or dense two-dimensional heatmap estimation. This formulation is well matched to the proposed weld perception task, where only three sparse geometric keypoints need to be predicted. Compared with dense heatmap prediction, SimCC avoids high-resolution 2D response maps and is therefore more efficient for low-resolution inputs and CPU-side inference. It also preserves fine-grained coordinate discrimination, which is important for robotic welding because small pixel deviations may lead to measurable trajectory errors. Based on this property, we introduce an improved decoding strategy to reduce discretization-induced quantization errors.

4.3.1. Coordinate-Classification Formulation

Many existing keypoint localization methods rely on 2D heatmap-based representations, such as FasterPose [28] and HRNet [25]. They typically generate a 2D Gaussian response centered at the ground-truth coordinate. To improve accuracy, upsampled heatmaps are often required [29], which increases computational cost. In addition, when the heatmap resolution differs from the original image resolution, quantization errors may occur.

In contrast, SimCC decouples localization into two independent classification tasks along the horizontal and vertical axes. By replacing 2D heatmap regression with dense one-dimensional bins, it provides fine-grained coordinate discrimination with a more compact output representation.

Specifically, SimCC first extracts keypoint feature representations via the backbone network. The subsequent classification head discretizes the continuous coordinate xin[0,Win1] in the resized network input space into classification labels cx{0,1,,Win·k1}. Here, k is the split factor, which controls the number of classification bins assigned to each input pixel. In all experiments, k=2, meaning that each pixel is subdivided into two coordinate bins. For an input of size Win×Hin, SimCC uniformly divides each axis into Win·k or Hin·k bins, respectively:

binsx={0,1,,Win·k1},binsy={0,1,,Hin·k1} (4)

where k1. This means each input pixel is further subdivided into k sub-pixel grids. The model predicts the probability vectors Px and Py for the horizontal and vertical directions, respectively, using two simple linear layers.

4.3.2. Non-Parametric Log-Domain Quadratic Peak-Refinement Decoding

Although SimCC reduces the learning difficulty by converting coordinate regression into classification, its localization accuracy is still affected by the granularity of the discretized bins. To reduce this quantization error, we propose a non-parametric decoding strategy that is aligned with the training objective. The SimCC formulation and the proposed log-domain refinement are illustrated in Figure 6.

Figure 6.

Figure 6

SimCCcoordinate classification and the proposed non-parametric log-domain quadratic peak-refinement decoding.

  • Label Smoothing and Distribution Prior

    During training data preprocessing, we adopt the SA-SimDR (Soft-Argmax SimDR) strategy to reduce the overfitting risk of one-hot hard labels and preserve the spatial semantics of adjacent grids. For the x-axis, let xgt denote the ground-truth coordinate in the resized network input coordinate system, where the ROI has been resized to Win×Hin. Thus, xgt[0,Win1]. The y-axis is handled in the same way. The target probability distribution Tx(n) is defined as a normalized discrete Gaussian centered at xgt, as given in Equation (5):
    T˜x(n)=exp(nxgt·k)22σ2,Tx(n)=T˜x(n)m=0Win·k1T˜x(m) (5)
    where Win is the network input width after ROI resizing, the x-axis classification length is Win·k, n{0,1,,Win·k1} is the bin index, xgt is the ground-truth coordinate in pixels, k is the split factor defined above, and σ is the standard deviation of the Gaussian soft label. In all experiments, k=2 and σ=4.0 are used; k controls the bin density along each axis, while σ controls the smoothness of the target probability distribution around the ground-truth coordinate. The explicit summation ensures that Tx is a valid discrete probability distribution. This encourages the output distribution of the trained network to present a locally smooth peak around the target coordinate. However, standard Argmax decoding only selects the bin index n^ with the maximum probability and ignores the intra-bin sub-pixel information. Since each bin spans 1/k pixel, the worst-case quantization error of simple Argmax decoding is bounded by 1/(2k) pixel under an ideal noiseless setting.
  • Log-Domain Quadratic Peak Refinement

    The proposed refinement does not require the predicted distribution to follow a strict Gaussian form over the entire axis. It only assumes that the neighborhood around the dominant peak is locally smooth and approximately unimodal under Gaussian soft-label supervision. Therefore, the decoder performs a local second-order approximation around the Argmax bin rather than fitting the whole distribution. When the distribution is multi-modal or severely corrupted by noise, the refinement gain may decrease; in such cases, the numerical protection described below makes the decoder fall back to a conservative Argmax-like estimate.

    Based on this local assumption, we propose a non-parametric log-domain quadratic peak-refinement decoding strategy to recover the continuous peak location near the maximum response.

    Under a local Gaussian approximation around the peak bin index n^ and its neighbors {n^1,n^,n^+1}, taking the natural logarithm of the Gaussian form yields Equation (6):
    ln(f(n))=(nμ)22σ2+ln12πσ (6)
    Let a=12σ2; then the equation can be viewed as a quadratic function (parabola) with respect to the bin position n:
    lnf(n)=an2+bn+d (7)

    The true center μ of the Gaussian distribution corresponds to the vertex of this parabola, which, by the vertex formula, is μ=b2a.

  • Implementation Details for Peak-Refinement Decoding

    In the inference code, to reduce computation and concentrate on the most informative local neighborhood, we estimate the sub-pixel coordinate using only the peak bin and its immediate left and right neighbors. The steps are as follows:

    • (1)

      Peak Localization: Find the integer index n^{0,1,,Win·k1} corresponding to the maximum probability via Argmax.

    • (2)
      Logarithmic Transformation: Extract the probability values of the peak and its immediate neighbors, q^n^1,q^n^,q^n^+1, and convert them to the logarithmic domain:
      Li=ln(q^i+ϵ),i{n^1,n^,n^+1} (8)
      where ϵ is a small constant (e.g., 106) used to prevent ln(0) and the associated numerical instability when q^i0.
    • (3)
      Sub-pixel Offset Calculation: A local parabola is fitted to these three points using finite differences, and the vertex offset Δx is then obtained. In the implementation, the offset is computed by Equation (9):
      Δx=Ln^1Ln^+12(Ln^12Ln^+Ln^+1) (9)

      The denominator is the discrete second derivative, which represents the local curvature of the fitted parabola, while the numerator corresponds to the first-derivative term. In practice, if |Ln^12Ln^+Ln^+1|<τ with τ=104, the offset is clamped to zero. This safeguard prevents numerical instability when the local distribution is flat or abnormal, allowing the decoder to fall back to a conservative Argmax-like estimate in extreme cases rather than producing an unreliable large offset.

    • (4)
      Coordinate Recovery: The final sub-pixel coordinate is recovered by Equation (10):
      x^final=xmin+n^+Δxk·wroiWin (10)
      where xmin is the left boundary of the ROI crop (Equation (1)), wroi and Win are the ROI width and network input width as defined in Equation (3). For the global-search mode (first frame), xmin=0 and wroi/Win=W0/Win.

By using Gaussian soft labels during training and applying log-domain quadratic peak-refinement decoding during inference, the proposed method reduces the grid quantization error introduced by SimCC discretization without increasing model complexity. Under low-resolution inputs such as 256×256, conventional Argmax decoding only returns the discrete bin center and ignores the intra-bin offset. In contrast, the proposed decoder estimates this local offset by fitting the probability curve around the maximum response, thereby improving localization precision at a low computational cost.

4.3.3. Loss Function

Since the SimCC adopted in this paper reformulates keypoint localization as a classification task, the model outputs probability responses on discretized grids rather than a single coordinate value. To effectively supervise the network in learning the soft labels generated by the SA-SimDR strategy, we select Kullback-Leibler (KL) divergence as the training loss function [30]. Compared with standard cross-entropy, which is commonly used with hard one-hot targets, KL divergence is more suitable for Gaussian soft labels because it measures the discrepancy between complete probability distributions. Therefore, it not only encourages the predicted peak to be close to the ground-truth coordinate, but also constrains the probability decay around the peak. This distribution-level supervision is consistent with the subsequent log-domain peak-refinement decoder, which relies on the local probability morphology near the maximum response.

Specifically, the network outputs predicted probability distributions Q^x and Q^y (obtained after softmax normalization) in the horizontal and vertical directions, which are aligned with the ground-truth Gaussian distribution labels Tx and Ty. The total loss function Ltotal is defined as the weighted sum of the KL divergences for the two independent axes:

Ltotal=1Ni=1NλiDKL(TxiQ^xi)+DKL(TyiQ^yi) (11)

where N is the number of keypoints per sample (i.e., N=3 in this work), λi is the visibility weight of the i-th keypoint, and the loss is further averaged over the mini-batch during training. For any direction, taking the x-axis as an example, the single-item KL divergence is calculated as:

DKL(TQ^)=nT(n)·logT(n)Q^(n) (12)

Here, n represents the grid index. This function forces the model output to be accurate not only at the peak position but also to possess reasonable confidence decay in distribution morphology by minimizing the asymmetric difference between the predicted distribution and the Gaussian ground truth, thereby providing a high-quality probabilistic basis for subsequent sub-pixel decoding.

5. Experiments and Results

To evaluate the proposed lightweight weld seam keypoint detection network under consistent conditions, all experiments were conducted on a workstation equipped with an Intel Xeon Gold 6133 CPU @ 2.50 GHz. The software environment was Ubuntu 20.04.5 LTS with PyTorch 2.0.0. Because industrial sites commonly deploy low-cost and low-power embedded computers, all inference latency results reported in this section were measured under CPU-only settings, with the number of threads fixed to 8 and without GPU acceleration. The training configuration and key hyperparameters are provided in Table 3.

Table 3.

Training settings and hyperparameters for the proposed network.

Hyperparameter Value
Optimizer Adam
Base learning rate 5×104
Weight decay 1×105
Batch size 32
Training epochs 400
LR schedule Multi-Step
LR decay steps [350, 380]
Sigma (σ) 4.0
Split factor (k) 2
Input size 256×256

In this section, model size and computational complexity are characterized by the number of parameters and floating-point operations (FLOPs), while localization accuracy is quantified by pixel-distance errors between predicted and ground-truth keypoints. For a visible keypoint instance i, let the ground-truth coordinate be pi=(xi,yi) and the prediction be p^i=(x^i,y^i) (both in pixels). We define the Euclidean pixel-distance error as

ei=pip^i2=(xix^i)2+(yiy^i)2. (13)

We compute the metrics over all visible keypoint instances in the evaluation set. Let V denote the set of visible instances and let N=|V|. The metrics are computed as

MAE=1NiVei,RMSE=1NiVei2. (14)

We report errors for the seam center point (Pc), denoted as SC-MAE/SC-RMSE, and for the two orientation reference points (Pl and Pr), denoted as Ref-MAE/Ref-RMSE.

It should be noted that the above pixel-space errors quantify the visual keypoint localization accuracy in the image domain. They do not have a one-to-one linear correspondence with the final task-space error of robotic welding, because the latter is also affected by camera calibration accuracy, structured-light triangulation error, hand–eye calibration, mechanical execution error, and control latency. Therefore, pixel-level metrics are used in this section to evaluate the perception module itself, while the practical robot-level performance is further assessed through millimeter-level trajectory tracking errors and angular pose errors in the integrated closed-loop experiments.

5.1. Detection Performance on Heterogeneous Weld Seams

To select an input resolution suitable for industrial deployment while balancing accuracy against speed, we benchmarked the model’s overall performance across multiple input scales. Table 4 summarizes the comprehensive metrics at 256, 384, and 512.

Table 4.

Performance comparison at different input resolutions (ROI input).

Input Size Params
(M)
Latency
(ms)
FLOPs
(G)
SC-MAE
(px)
SC-RMSE
(px)
Ref-MAE
(px)
Ref-RMSE
(px)
256×256 1.4 17.01 0.24 1.89 2.44 1.66 2.25
384×384 1.6 21.29 0.55 1.71 2.32 1.48 2.06
512×512 1.9 26.32 0.98 1.58 2.21 1.38 1.95

As the input resolution increases, the localization accuracy improves accordingly: the seam-center-point MAE decreases from 1.89 px to 1.71 px and further to 1.58 px. This improvement, however, is accompanied by additional computational cost, as the FLOPs grow with the input scale and the CPU inference latency rises from 17.01 ms to 21.29 ms and 26.32 ms. Since industrial closed-loop control places a stronger emphasis on update frequency, and the 256×256 setting already provides a center-point MAE of 1.89 px with adequate localization precision for the subsequent closed-loop experiments, 256×256 is adopted as the default resolution for the remaining experiments and system integration.

Using the 256×256 input setting, we then examine the detection performance on the five heterogeneous weld types. The corresponding keypoint localization metrics are reported in Table 5.

Table 5.

Detailed detection metrics across different weld types (Input: 256×256).

Metric Fillet Lap Butt-I Butt-V Butt-Y Average
SC-MAE (px) 1.48 2.64 1.69 1.71 1.99 1.89
SC-RMSE (px) 1.65 3.26 2.27 2.42 2.39 2.44
Ref-MAE (px) 1.32 2.48 1.43 1.66 1.47 1.66
Ref-RMSE (px) 1.61 3.10 2.07 2.34 1.88 2.25

Across the five weld categories, the center-point MAE is maintained at 1.89 px, while the reference-point MAE reaches 1.66 px, suggesting reliable generalization under the tested low-resolution setting. The errors are lower for Fillet and Butt-I welds because their groove roots, stripe intersections, and upper-surface endpoints provide relatively clear geometric cues. Lap welds, by comparison, are more affected by strong reflections and by local contour ambiguity around the step. These factors make the semantic boundary between the seam center point and the orientation reference points less distinct, thereby increasing both center-point and reference-point errors. Nevertheless, the center-point MAE of Lap welds remains at a practical level of 2.64 px. This result indicates that the unified three-keypoint formulation is effective across heterogeneous welds, but it also suggests that scenes with locally ambiguous geometry and severe reflection remain more challenging for precise keypoint localization. These results also suggest that combining the unified three-point representation with the proposed network enables a single model to meet fine-grained localization requirements across multiple weld morphologies.

5.2. Global Initialization Performance Verification

During the “cold-start” stage, namely the first frame of an automated welding sequence, temporal keypoint priors are not yet available and therefore cannot be used for ROI cropping. This setting is different from subsequent ROI-based tracking frames, where the previous-frame keypoints provide a spatial prior for narrowing the search region. Consequently, the first frame must be initialized by global detection over the input image, and slight differences in accuracy and latency compared with ROI-assisted tracking are expected. Table 6 reports the global initialization performance without ROI assistance.

Table 6.

Global initialization performance without ROI assistance at different input resolutions.

Input Size Params
(M)
Latency
(ms)
FLOPs
(G)
SC-MAE
(px)
SC-RMSE
(px)
Ref-MAE
(px)
Ref-RMSE
(px)
256×256 1.4 17.47 0.24 2.38 3.21 2.75 3.78
384×384 1.6 22.19 0.55 2.14 2.81 2.52 3.60
512×512 1.9 27.53 0.98 2.09 2.78 2.50 3.54

The results indicate that as the input resolution decreases, the computational cost drops significantly. With 256 × 256 input, FLOPs are 0.24 G and CPU inference latency is about 17 ms, which satisfies the requirements on startup speed and response frequency in industrial settings. Although higher resolutions provide certain accuracy gains (e.g., a center-point MAE of 2.09 px at 512 × 512), latency increases to 27.53 ms, which is more likely to become a real-time bottleneck on low-compute platforms. Since global initialization is only required at the cold-start frame, its role is to provide a reliable initial keypoint state for subsequent ROI tracking rather than to replace the closed-loop tracking process. Considering the trade-off between accuracy and latency, 256 × 256 is a more suitable default setting for industrial startup response in the global-search initialization stage.

5.3. Ablation Studies

To verify the effectiveness of the proposed key modules and to clarify their impact on accuracy and speed, ablation studies were conducted under different input resolutions. The baseline is the original SimCC network. We then (i) replace the backbone with the lightweight design, (ii) introduce the log-domain quadratic peak-refinement decoding strategy, and (iii) combine both to form the final model. The results are summarized in Table 7.

Table 7.

Ablation study results of different improvement modules (ROI input).

Method Input
Size
Params
(M)
Latency
(ms)
FLOPs
(G)
SC-MAE
(px)
SC-RMSE
(px)
Ref-MAE
(px)
Ref-RMSE
(px)
Baseline 256×256 67.8 207.19 21.00 3.12 3.75 2.95 3.66
384×384 77.8 315.54 47.27 1.94 2.50 1.71 2.13
512×512 97.2 510.18 84.06 1.80 2.48 1.63 2.01
+Backbone 256×256 1.4 16.82 0.24 2.09 2.68 1.76 2.44
384×384 1.6 21.18 0.55 1.72 2.32 1.56 2.09
512×512 1.9 26.50 0.98 1.62 2.25 1.40 1.98
+Log-Domain
Peak-Refinement
256×256 67.8 218.15 21.00 2.10 2.62 1.84 2.28
384×384 77.8 320.59 47.27 1.92 2.49 1.55 2.09
512×512 97.2 511.06 84.06 1.72 2.33 1.55 1.96
Ours 256×256 1.4 17.01 0.24 1.89 2.44 1.66 2.25
384×384 1.6 21.29 0.55 1.71 2.32 1.48 2.06
512×512 1.9 26.32 0.98 1.58 2.21 1.38 1.95

Note: Bold values indicate the best performance for the same input size.

After introducing the C3k2-based backbone, at 256×256 resolution the parameter count drops sharply from 67.8 M to 1.4 M, and CPU inference latency decreases from 207.19 ms to 16.82 ms. This demonstrates that the lightweight architecture substantially removes redundant computation while preserving key geometric information, benefiting from an efficient downsampling design and attention enhancement that improve robustness. In addition to reducing computation, the redesigned backbone also improves the coarse feature representation for sparse weld keypoints, as reflected by the lower localization errors compared with the original SimCC baseline at the same resolution.

A direct comparison between “+Backbone” and “Ours” indicates that log-domain quadratic peak-refinement decoding improves keypoint accuracy while introducing virtually no extra runtime overhead. The gain is more evident at lower input resolutions. For the 256×256 input, the center-point MAE decreases from 2.09 px to 1.89 px, with almost no change in inference latency. As the input resolution increases, the effect becomes weaker. At 512×512, the classification bins are already dense enough to reduce much of the quantization error, and the remaining localization error is more likely caused by annotation uncertainty and fluctuations in the laser-stripe halo. This leaves little room for further improvement from coordinate refinement, so the MAE decreases by only 0.04 px at 512×512.

The two modules therefore play complementary roles. The lightweight backbone mainly reduces the parameter count and inference latency while improving coarse feature extraction, whereas the log-domain peak-refinement decoder improves fine localization at a low computational cost by correcting discretization-induced bias. The final “Ours” configuration reflects the combined effect of the lightweight backbone and the proposed decoder. Overall, the 256×256 input with log-domain quadratic peak-refinement decoding provides the best balance between cost and performance, requiring only 0.24 G FLOPs while maintaining practical accuracy and computational efficiency.

5.4. Comparative Experiments

For reproducibility and consistent interpretation, we grouped the compared methods into four representative categories. Traditional digital image processing (DIPT) [8,31] was implemented following established pipelines, adapted to our platform, and mainly used for Butt-V weld detection. The distribution-based regression method RLE [32] represents the coordinate-regression paradigm with a relatively high computational cost. YOLOv11 [27] and YOLOv26 [33] were included as object detection methods based on box regression and adapted to weld scenes. The original SimCC was used as the coordinate-classification baseline without the proposed lightweight redesign. Together, these baselines cover the main solution paradigms for weld localization, including traditional image processing, coordinate regression, object detection, and coordinate classification, which enables a representative comparison across different modeling families.

For the YOLO-based annotation scheme, the three keypoints are converted into bounding-box labels. Specifically, a fixed-size 64×64 pixel box is generated around each keypoint, reformulating keypoint localization into a three-class object detection problem. The center of each predicted box is then used as the corresponding keypoint coordinate. The overall comparison results are reported in Table 8.

Table 8.

Comparison with representative methods under different input resolutions (ROI input).

Method Input Size Params
(M)
Latency
(ms)
FLOPs
(G)
SC-MAE
(px)
SC-RMSE
(px)
Ref-MAE
(px)
Ref-RMSE
(px)
DIPT 489.26 5.73 8.46 4.62 5.85
RLE 256×256 23.58 50.50 5.36 2.19 3.25 2.41 3.00
384×384 23.58 83.53 12.08 2.10 2.99 2.01 2.73
512×512 23.58 139.22 21.47 2.07 2.86 1.88 2.62
YOLOv11 256×256 2.590 31.97 0.515 2.41 3.15 2.75 3.64
384×384 2.590 40.60 1.160 2.23 3.15 2.46 3.51
512×512 2.590 53.49 2.062 2.19 3.01 2.36 3.23
YOLOv26 256×256 2.505 29.04 0.462 2.43 3.23 2.74 3.59
384×384 2.505 38.75 1.040 2.18 2.96 2.48 3.60
512×512 2.505 49.60 1.848 2.18 2.95 2.31 3.11
SimCC 256×256 67.8 207.19 21.00 3.12 3.75 2.95 3.66
384×384 77.8 315.54 47.27 1.94 2.50 1.71 2.13
512×512 97.2 510.18 84.06 1.80 2.48 1.63 2.01
Ours 256×256 1.4 17.01 0.24 1.89 2.44 1.66 2.25
384×384 1.6 21.29 0.55 1.71 2.32 1.48 2.06
512×512 1.9 26.32 0.98 1.58 2.21 1.38 1.95

Note: Bold values indicate the best performance for the same input size.

Overall, DIPT shows limited robustness to strong noise and complex reflections, with the largest error and the longest runtime, making it unsuitable for real-time closed-loop control. Compared with YOLOv11 and YOLOv26, the detection frameworks are more versatile, but their box-regression-based localization is less stable for weld seams that are slender and exhibit strong local shape variations. RLE provides reasonable accuracy, yet its much heavier FLOPs burden increases the deployment cost on low-compute devices. Considering accuracy, latency, and computational cost together, the proposed method achieves the most favorable balance at 256 × 256 among the tested settings, indicating practical potential for deployment on low-cost industrial computing platforms. The latency–accuracy trade-off across all methods and input sizes is visualized in Figure 7. Qualitative detection results on five weld types are provided in Figure 8.

Figure 7.

Figure 7

Latency–MAE trade-off across methods and input sizes: (a) seam center points; (b) orientation reference points.

Figure 8.

Figure 8

Qualitative comparison across weld types and methods. Columns: Fillet, Lap, Butt-I, Butt-V, Butt-Y. Rows: (a) original image; (b) ROI; (c) DIPT; (d) RLE; (e) YOLOv11; (f) YOLOv26; (g) SimCC; (h) Ours.

5.5. System Integration and Experimental Verification

To validate the effectiveness of the proposed detection network based on the unified three-keypoint formulation in real industrial applications, we built a robotic welding experimental platform and conducted trajectory tracking and pose adjustment experiments. The pixel-level errors reported in the preceding subsections characterize the visual localization accuracy of the perception module, whereas the millimeter-level tracking errors and pose angular errors in this subsection characterize the task-space control accuracy of the robotic welding system. This subsection focuses on how the perception output is converted into robot motion commands through a unified perception-to-control mapping, and on the overall closed-loop accuracy of the system.

In the integrated system, each visual feedback cycle includes image acquisition, ROI-based keypoint inference, coordinate transformation from the image frame to the robot base frame, controller communication, and robot motion update. At the default input size, the proposed model achieves a CPU inference latency of 17.01 ms, corresponding to a visual inference rate of more than 50 Hz. Given that the actual welding speed in the tracking experiments was set to 2.5 mm/s, this inference speed is compatible with the closed-loop tracking requirement of the present robotic welding system.

Three typical industrial weld workpieces were selected: Butt-V weld, Butt-I weld, and Fillet weld. The selected workpieces are shown in Figure 9. The robot teaching speed was set to 6 mm/s, and the actual welding speed was set to 2.5 mm/s. The system adopts a geometry-based keypoint-to-command mapping to convert the three predicted keypoints into robot control signals [15], as follows:

  • Trajectory Control (Position): The seam center point (Pc) is used as the trajectory reference. The robot TCP is guided to follow the 3D point associated with Pc, so that the welding torch remains aligned with the seam center.

  • Orientation Control (Pose): The left orientation reference point (Pl), seam center point (Pc), and right orientation reference point (Pr) jointly provide local geometric cues. The vectors PcPl and PcPr define the cross-sectional normal plane, from which the target torch attitude, namely roll, pitch, and yaw, is computed to maintain perpendicularity or conform to preset process angles.

Figure 9.

Figure 9

Curved weld workpieces used for closed-loop experiments (before welding): (a) Butt-I; (b) Butt-V; (c) Fillet.

To comprehensively evaluate tracking accuracy, tests were performed on three planar curved weld plates. The CAD theoretical trajectory (blue), teaching trajectory (green), and tracking trajectory (red) were compared. The CAD, teaching, and tracking trajectories are compared in Figure 10. The tracking trajectory closely matches the theoretical trajectory, indicating strong path-following capability.

Figure 10.

Figure 10

Trajectory comparison among CAD reference, teaching, and vision-based tracking: (a) Butt-I weld (3D); (b) Butt-V weld (3D); (c) Fillet weld (3D); (d) Butt-I weld (xy projection); (e) Butt-V weld (xy projection); (f) Fillet weld (xy projection).

For quantitative analysis, the relationship between sequence index and tracking error was recorded. The per-sequence tracking errors are plotted in Figure 11. The statistics show that the average tracking error for the Butt-I weld is 0.159 mm with a maximum error of 0.384 mm; for the Butt-V weld, the average error is 0.232 mm with a maximum error of 0.377 mm; and for the Fillet weld, the average error is 0.224 mm with a maximum error of 0.354 mm. All tracking errors remain in the sub-millimeter range, which satisfies engineering tolerances for weld-path accuracy and, in turn, supports the use of Pc as a reliable position-feedback signal.

Figure 11.

Figure 11

Per-frame trajectory tracking error: (a) Butt-I weld; (b) Butt-V weld; (c) Fillet weld.

The temporal behavior of the tracking errors also provides an initial indication of tracking stability. In the proposed system, the keypoints are re-estimated from the current image at every visual feedback cycle, rather than being obtained by integrating historical motion as in odometry- or SLAM-like estimation. The previous-frame prediction is only used to define the ROI search region and is not directly accumulated as the current coordinate output. Therefore, the system is less prone to monotonic drift caused by coordinate integration. As shown in Figure 11, the per-frame errors fluctuate within a bounded range and do not exhibit an obvious monotonically divergent trend in the tested sequences. Nevertheless, long-duration drift benchmarking over longer welding sequences and more diverse disturbances has not yet been systematically conducted, which remains a limitation of the present evaluation.

Actual Welding Results

Additional pose-adaptation tests were carried out on fillet-weld workpieces. Because manual teaching cannot ensure that the torch pose stays perfectly aligned with the theoretical normal direction over the entire process, we primarily examine the deviation between the designed nominal pose and the pose executed in practice. As the seam proceeds along the arc, the estimated pose vector varies smoothly and continuously, while maintaining good consistency with the weld normal plane. The pose vectors and the corresponding angular errors along the trajectory are presented in Figure 12. The mean angular error is 3.738°, and the maximum error is 7.955°. This accuracy is sufficient for arc-welding operations, as it helps stabilize the molten pool and supports consistent bead formation. It also indicates that the proposed three-keypoint formulation provides useful pose cues for robotic control.

Figure 12.

Figure 12

Pose adaptation results on a fillet weld: (a) 3D tracking trajectory with estimated pose vectors; (b) per-frame angular error.

To further evaluate the overall control performance, Gas Metal Arc Welding (GMAW) trials were conducted after the tracking experiments. The appearances of the three workpieces before and after welding are shown in Figure 13. At the macroscopic level, the welded seams show continuous and uniform ripples, with no evident defects such as undercutting or seam deviation. These results indicate that the proposed framework, which integrates deep-learning-based perception with control, can maintain stable welding quality under strong visual disturbances.

Figure 13.

Figure 13

Macroscopic appearance of workpieces for welding validation: (a) Butt-I weld (pre-weld); (b) Butt-V weld (pre-weld); (c) Fillet weld (pre-weld); (d) Butt-I weld (post-weld); (e) Butt-V weld (post-weld); (f) Fillet weld (post-weld).

6. Conclusions

This paper presents an end-to-end lightweight framework for weld seam keypoint detection and robotic tracking in industrial welding scenarios affected by arc glare, spatter, smoke, surface reflection, and heterogeneous seam geometries. By formulating weld perception as a sparse three-keypoint localization task, the proposed framework produces a compact perception output that can be directly used for trajectory correction and torch-pose estimation.

The proposed method has three main characteristics. First, a unified control-oriented three-keypoint formulation is introduced, in which one seam center point and two orientation reference points describe different weld geometries with consistent semantics and decouple position control from orientation estimation. Second, a lightweight SimCC-based pipeline is developed by replacing the heavy original backbone with a compact C3k2-based feature extractor, thereby reducing computational cost while preserving weld-related geometric cues. Third, a non-parametric log-domain quadratic peak-refinement decoder refines continuous coordinates from SimCC classification distributions and mitigates discretization-induced coordinate bias without adding trainable parameters. Combined with temporally guided ROI tracking, these designs support efficient closed-loop weld tracking.

Experiments show that, with an input size of 256×256, the proposed model contains only 1.4 M parameters, requires 0.24 G FLOPs, and achieves a CPU inference latency of 17.01 ms. On the validation set covering five representative weld types, it obtains a seam-center-point MAE of 1.89 px and a reference-point MAE of 1.66 px. In the integrated robotic welding experiments, the framework achieves sub-millimeter trajectory tracking accuracy, with the lowest mean tracking error of 0.159 mm obtained on the Butt-I weld, and obtains an average orientation error of 3.738° in the fillet-weld pose-adaptation experiment.

Several limitations remain. The current evaluation is mainly based on a self-built dataset and a specific structured-light robotic welding platform, and cross-platform generalization under different cameras, laser configurations, welding parameters, and workpiece materials still requires further validation. The temporally guided ROI strategy may also fail under severe occlusion, abrupt seam-position changes, abnormal robot motion, or strong transient disturbances, while long-sequence drift and failure recovery have not yet been systematically quantified. In addition, the preset distance e=300 pixels for Fillet and Lap welds is tied to the current imaging scale and may need re-tuning for different sensors or weld sizes. Future work will focus on external validation, robust ROI failure recovery, automatic re-initialization for long-duration tracking, and adaptive keypoint definitions for non-standard or severely deformed weld seams.

Acknowledgments

The authors would like to thank all the participants who contributed to this research.

Author Contributions

Conceptualization, S.W. and F.D.; methodology, S.W.; software, S.W.; validation, S.W., X.H. and A.G.; formal analysis, S.W.; investigation, S.W.; resources, F.D.; data curation, S.W.; writing—original draft preparation, S.W.; writing—review and editing, F.D. and C.C.; visualization, S.W.; supervision, F.D.; project administration, F.D.; funding acquisition, F.D. All authors have read and agreed to the published version of the manuscript.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

The data presented in this study are available on request from the corresponding author due to privacy and ethical restrictions.

Conflicts of Interest

Xiangjie Huang was employed by Shantui Construction Machinery Co., Ltd. Chao Chen was employed by Shantui Construction Machinery Co., Ltd. The authors Shenkuo Wang, Ang Gao, and Fuxin Du declare no conflicts of interest. The authors declare no other potential conflicts of interest relevant to this article.

Funding Statement

This research was funded by Central Funds Guiding Local Science and Technology Development (Grant No. YDZX2024115), the Key Research and Development Program of Shandong Province (Grant No. 2020CXGC010206), and the Shandong Provincial Natural Science Foundation (Project Nos. ZR2024QE326).

Footnotes

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.

References

  • 1.Xu F., Xu Y., Zhang H., Chen S. Application of sensing technology in intelligent robotic arc welding: A review. J. Manuf. Process. 2022;79:854–880. doi: 10.1016/j.jmapro.2022.05.029. [DOI] [Google Scholar]
  • 2.Kahnamouei J.T., Moallem M. Advancements in control systems and integration of artificial intelligence in welding robots: A review. Ocean Eng. 2024;312:119294. doi: 10.1016/j.oceaneng.2024.119294. [DOI] [Google Scholar]
  • 3.Liao H., Zhang W., Xie H., Li X., Zhang Q., Wu X., Tian J., Wang Z. Effects of welding speed on welding process stability, microstructure and mechanical performance of SUS304 welded by local dry underwater pulsed MIG. J. Manuf. Process. 2023;88:84–96. doi: 10.1016/j.jmapro.2023.01.047. [DOI] [Google Scholar]
  • 4.Chen X., Chen S., Lin T., Lei Y. Practical method to locate the initial weld position using visual technology. Int. J. Adv. Manuf. Technol. 2006;30:663–668. doi: 10.1007/s00170-005-0104-z. [DOI] [Google Scholar]
  • 5.Fan J., Jing F., Fang Z., Tan M. Automatic recognition system of welding seam type based on SVM method. Int. J. Adv. Manuf. Technol. 2017;92:989–999. doi: 10.1007/s00170-017-0202-8. [DOI] [Google Scholar]
  • 6.Zou Y., Chen T. Laser vision seam tracking system based on image processing and continuous convolution operator tracker. Opt. Lasers Eng. 2018;105:141–149. doi: 10.1016/j.optlaseng.2018.01.008. [DOI] [Google Scholar]
  • 7.Yang L., Li E., Fan J., Long T., Liang Z. Automatic extraction and identification of narrow butt joint based on ANFIS before GMAW. Int. J. Adv. Manuf. Technol. 2019;100:609–622. doi: 10.1007/s00170-018-2732-0. [DOI] [Google Scholar]
  • 8.Xiao R., Xu Y., Hou Z., Chen C., Chen S. An adaptive feature extraction algorithm for multiple typical seam tracking based on vision sensor in robotic arc welding. Sens. Actuators A Phys. 2019;297:111533. doi: 10.1016/j.sna.2019.111533. [DOI] [Google Scholar]
  • 9.Gao A., Li A., Su F., Yang X., Liu W., Du F., Chen C. WeldLight: A Lightweight Weld Classification and Feature Point Extraction Model for Weld Seam Tracking. Sensors. 2025;25:5761. doi: 10.3390/s25185761. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 10.Zou Y., Zeng G. Light-weight segmentation network based on SOLOv2 for weld seam feature extraction. Measurement. 2023;208:112492. doi: 10.1016/j.measurement.2023.112492. [DOI] [Google Scholar]
  • 11.Chen J., Wang C., Shi F., Kaaniche M., Zhao M., Jing Y., Chen S. DSNet: A dynamic squeeze network for real-time weld seam image segmentation. Eng. Appl. Artif. Intell. 2024;133:108278. doi: 10.1016/j.engappai.2024.108278. [DOI] [Google Scholar]
  • 12.Zou Y., Wei X., Chen J., Zhu M., Zhou H. A high-accuracy and robust seam tracking system based on adversarial learning. IEEE Trans. Instrum. Meas. 2022;71:5014913. doi: 10.1109/TIM.2022.3186085. [DOI] [Google Scholar]
  • 13.Xu F., Zhang H., Xiao R., Hou Z., Chen S. Autonomous weld seam tracking under strong noise based on feature-supervised tracker-driven generative adversarial network. J. Manuf. Process. 2022;74:151–167. doi: 10.1016/j.jmapro.2021.12.004. [DOI] [Google Scholar]
  • 14.Chen S., Yang D., Liu J., Tian Q., Zhou F. Automatic weld type classification, tacked spot recognition and weld ROI determination for robotic welding based on modified YOLOv5. Robot. Comput.-Integr. Manuf. 2023;81:102490. doi: 10.1016/j.rcim.2022.102490. [DOI] [Google Scholar]
  • 15.Ma Y., Fan J., Yang H., Wang H., Xing S., Jing F., Tan M. An efficient and robust complex weld seam feature point extraction method for seam tracking and posture adjustment. IEEE Trans. Ind. Inform. 2023;19:10704–10715. doi: 10.1109/TII.2023.3241595. [DOI] [Google Scholar]
  • 16.Cheng J., Jin H. A lightweight deep learning method for real-time weld feature extraction under strong noise. Signal Image Video Process. 2024;18:8169–8184. doi: 10.1007/s11760-024-03459-9. [DOI] [Google Scholar]
  • 17.Yang G., Wang Y., Zhou N. Detection of weld groove edge based on multilayer convolution neural network. Measurement. 2021;186:110129. doi: 10.1016/j.measurement.2021.110129. [DOI] [Google Scholar]
  • 18.Deng L., Lei T., Wu C., Liu Y., Cao S., Zhao S. A weld seam feature real-time extraction method of three typical welds based on target detection. Measurement. 2023;207:112424. doi: 10.1016/j.measurement.2022.112424. [DOI] [Google Scholar]
  • 19.Mobaraki M., Ahani S., Gonzalez R., Yi K.M., Van Heusden K., Dumont G.A. Vision-based seam tracking for GMAW fillet welding based on keypoint detection deep learning model. J. Manuf. Process. 2024;117:315–328. doi: 10.1016/j.jmapro.2024.03.006. [DOI] [Google Scholar]
  • 20.Gao A., Fan Z., Li A., Le Q., Wu D., Du F. YOLO-weld: A modified YOLOv5-based weld feature detection network for extreme weld noise. Sensors. 2023;23:5640. doi: 10.3390/s23125640. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 21.Zhao S., Ma Y., Fan J., Zhou Z., Wang H., Jing F., Tan M. DeepKP: A robust and accurate framework for weld seam keypoint extraction in welding robots. IEEE Trans. Instrum. Meas. 2024;73:1–10. doi: 10.1109/TIM.2024.3381689. [DOI] [Google Scholar]
  • 22.Li Y., Yang S., Liu P., Zhang S., Wang Y., Wang Z., Yang W., Xia S.T. Computer Vision—ECCV 2022, Proceedings of the 17th European Conference, Tel Aviv, Israel, 23–27 October 2022. Springer; Berlin/Heidelberg, Germany: Simcc: A simple coordinate classification perspective for human pose estimation; pp. 89–106. [Google Scholar]
  • 23.Nguyen Q.C., Hua H.Q.B., Pham P.T. Development of a vision system integrated with industrial robots for online weld seam tracking. J. Manuf. Process. 2024;119:414–424. doi: 10.1016/j.jmapro.2024.03.090. [DOI] [Google Scholar]
  • 24.Yu S., Guan Y., Hu J., Hong J., Zhu H., Zhang T. Unified seam tracking algorithm via three-point weld representation for autonomous robotic welding. Eng. Appl. Artif. Intell. 2024;128:107535. doi: 10.1016/j.engappai.2023.107535. [DOI] [Google Scholar]
  • 25.Sun K., Xiao B., Liu D., Wang J. Deep high-resolution representation learning for human pose estimation; Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition; Long Beach, CA, USA. 15–20 June 2019; pp. 5693–5703. [Google Scholar]
  • 26.Hayat M., Izhar R., Nadeem M., Anjum H., Muhammad A., Bhattacharjee S. Proceedings of the 2025 5th International Conference on Digital Futures and Transformative Technologies (ICoDT2) IEEE; Piscataway, NJ, USA: 2025. HAMSRNet-Hybrid Attention Multiscale Super-Resolution Network for Endoscopic Images; pp. 1–6. [Google Scholar]
  • 27.Jocher G., Qiu J. Ultralytics YOLO11. 2024. [(accessed on 25 July 2025)]. Available online: https://docs.ultralytics.com/models/yolo11/
  • 28.Dai H., Shi H., Liu W., Wang L., Liu Y., Mei T. FasterPose: A faster simple baseline for human pose estimation. ACM Trans. Multimed. Comput. Commun. Appl. (TOMM) 2022;18:1–16. doi: 10.1145/3503464. [DOI] [Google Scholar]
  • 29.Xiao B., Wu H., Wei Y. Simple baselines for human pose estimation and tracking; Proceedings of the European Conference on Computer Vision (ECCV); Munich, Germany. 8–14 September 2018; pp. 466–481. [Google Scholar]
  • 30.Kullback S., Leibler R.A. On information and sufficiency. Ann. Math. Stat. 1951;22:79–86. doi: 10.1214/aoms/1177729694. [DOI] [Google Scholar]
  • 31.Fan J., Deng S., Ma Y., Zhou C., Jing F., Tan M. Seam feature point acquisition based on efficient convolution operator and particle filter in GMAW. IEEE Trans. Ind. Inform. 2020;17:1220–1230. doi: 10.1109/TII.2020.2977121. [DOI] [Google Scholar]
  • 32.Li J., Bian S., Zeng A., Wang C., Pang B., Liu W., Lu C. Human pose regression with residual log-likelihood estimation; Proceedings of the IEEE/CVF International Conference on Computer Vision; Montreal, BC, Canada. 11–17 October 2021; pp. 11025–11034. [Google Scholar]
  • 33.Jocher G., Qiu J. Ultralytics YOLO26. 2026. [(accessed on 15 January 2026)]. Available online: https://docs.ultralytics.com/models/yolo26/

Associated Data

This section collects any data citations, data availability statements, or supplementary materials included in this article.

Data Availability Statement

The data presented in this study are available on request from the corresponding author due to privacy and ethical restrictions.


Articles from Sensors (Basel, Switzerland) are provided here courtesy of Multidisciplinary Digital Publishing Institute (MDPI)

RESOURCES