Next Article in Journal
Instability Assessment and Control of Floor Abandoned Roadways During Longwall Mining: Coupling of Floor Failure Depth and Plastic Zone Evolution
Previous Article in Journal
Characterization of Mammaliicoccus vitulinus Strains from Slovak Raw Goat Milk and Their In Vitro Susceptibility to Nisin and Postbiotic Substances
Previous Article in Special Issue
A Defect Detection Method for Rail Ultrasonic B-Scan Images Based on a Multi-Scale Dense Attention Network
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Hierarchical Point Cloud Analysis for 3D Defect Detection of Annular Welds

1
School of Mechanical and Electrical Engineering, North University of China, Taiyuan 030051, China
2
Shanxi Key Laboratory of High-End Equipment Reliability Technology, Taiyuan 030051, China
*
Author to whom correspondence should be addressed.
Appl. Sci. 2026, 16(18), 8987; https://doi.org/10.3390/app16188987
Submission received: 25 July 2026 / Revised: 6 September 2026 / Accepted: 6 September 2026 / Published: 10 September 2026
(This article belongs to the Special Issue Defect Evaluation and Nondestructive Testing)

Abstract

Annular fillet welds on guide rods lie in stress concentration zones and are susceptible to fatigue failure under dynamic suspension loads, necessitating accurate quality inspection. However, their complex three-dimensional topography makes it difficult for conventional methods to balance detection accuracy and efficiency. This paper presents a geometry-driven 3D point-cloud analysis framework integrating weighted geometric template matching, unified height referencing, and decoupled dual-branch defect discrimination. The framework first locates the weld region via weighted template matching with a dynamic early-termination strategy and establishes a unified height datum through multi-stage filtering and RANSAC plane fitting. Defects are then decoupled by height characteristics: extreme height screening isolates oxide inclusions (ISO 6520-1 No. 303), while quantile dual-threshold layered analysis distinguishes insufficient throat thickness (ISO 6520-1 No. 5213) and excessive convexity (ISO 6520-1 No. 503). Experiments on 100 welds sampled across five production batches, evaluated under EN ISO 5817 quality level C, achieve zero false positives for oxide inclusions and insufficient-throat cases and an 88.2% detection rate for excessive convexity, delivering robust performance under the tested conditions.

1. Introduction

The guide rod serves as an essential component for force transmission and positioning between the suspension system and the vehicle body [1]. The annular welds at both its sides connecting the guide rod body and the bushing function as a stress-concentrated region where loads in three directions are primarily transmitted. These annular joints are circumferential fillet welds (FW), and their quality assessment is governed by international standards: EN ISO 6520-1 [2] for the classification of geometric imperfections and EN ISO 5817 [3] for the specification of quality levels and acceptance limits. However, improper welding parameters (e.g., heat input or wire feed speed) [4] and environmental disturbances (e.g., humidity, temperature fluctuations, surface contamination) can lead to defects such as depressions, undercutting, pores, solid inclusions, and insufficient weld dimensions. These defects not only diminish the strength of the weld connection and induce stress concentration but also increase the risk of weld cracking and failure of the guide rod connection under prolonged alternating loads [5]. In severe instances, this may result in loss of wheel control, potentially leading to traffic accidents [6,7].
Automated weld inspection must contend with multiple sources of uncertainty, including variable part positioning, specular reflections from metallic surfaces, and low-contrast boundaries arising from complex illumination conditions [8,9]. Intelligent visual inspection has thus become the predominant approach for nondestructive weld evaluation, with extensive research devoted to defect segmentation, classification, and quantitative characterization [10]. Significant progress has been made in two-dimensional image-based analysis of segmentation. Wang et al. [11] combined Otsu thresholding, edge detection, and density clustering to robustly isolate defect regions in high-noise X-ray weld radiographs. Tang et al. [12] developed MCFNet, a hybrid CNN-Transformer architecture designed to suppress heavy noise and scanning interference fringes in TOFD imagery. Yang et al. [13] proposed CvT-UNet, integrating CNN and Transformer components to address indistinct weld pool boundaries under dynamic lighting and impurity interference.
Concurrent advances have also been reported in defect classification and quantitative characterization. For defect classification, a CNN-based method utilizing three-directional weld images was applied to identify penetration defects in robotic arc-welded aluminum alloys [14]. Shu et al. [15] employed a stacked autoencoder to rapidly filter defect-free weld regions, then combined this with an improved SCS-Vibe background extraction algorithm to achieve efficient and accurate detection of typical aluminum alloy surface defects such as porosity, arc craters, and undercut. YOLOv5 was also leveraged for weld type classification and localization [16], followed by key feature point extraction via a spatial distance method for quantitative evaluation of weld geometry and imperfections [17].
Reconstructing weld and defect morphology overcomes the inherent limitations of planar image-based detection, specifically, the inability to capture depth, volumetric data, or curved-surface topography. Ou et al. [18] achieved accurate weld seam localization and boundary extraction via region-growing point cloud segmentation combined with point cloud normal filtering, reducing the average boundary extraction error by 0.263 mm compared to conventional methods in remanufacturing blade weld inspection. Wang et al. [19] employed the CIICEA algorithm for laser centerline extraction and the K-QCBFA algorithm for spatial curve fitting. Utilizing a defect detection criterion based on height-difference curves, their approach attained a recognition accuracy of 97.44% and enabled the classification of both convex and concave defects. Liu et al. [20] developed a 3D vision measurement method based on structured light reconstruction and a custom-designed GRP-PTv2 point cloud semantic segmentation network. Integrating a slicing algorithm with farthest-point sampling for high-precision weld toe localization, this method allows quantitative measurement of key weld dimensions (width and reinforcement height) with dimensional deviations consistently within 0.2 mm. Ji et al. [21] adopted an improved lightweight Transformer segmentation network for accurate laser stripe extraction and 2D weld region segmentation, supplementing the detection results with auxiliary geometric verification and 3D morphological reconstruction via structured-light depth calibration.
Furthermore, complementary 2D and 3D information further improves efficiency and precision [22,23]. Parikh et al. obtained full-scale depth morphology data of FSW weld surfaces using a 3D optical microscope, extracted defect contours from the depth data via morphological operations, and further conducted micro-scale quantification of geometric features including effective length, width, average depth and effective volume of defects based on the depth information, thus realizing the detection of surface defects such as groove-like depressions and surface underfill [24]. Hu et al. [25] integrated CBAM-enhanced YOLOv8n seg for 2D instance segmentation, aligned 3D point clouds via camera projection, and achieved pixel-level point cloud segmentation of irregular weld ROIs (Region of Interest). Liu et al. [26] detected pores, bulges, and humps by analyzing 2D height profile curvature and 3D surface curvature, then reconstructed nominal bead contours for full-dimensional defect evaluation.
Collectively, 2D methods perform effectively for localization and recognition on planar or near-planar weld surfaces, but lack depth quantification [27]; 3D reconstruction provides precise geometric measurement yet struggles with multi-class defect identification, and real-time processing [28]. By contrast, 2D/3D fusion frameworks exploit complementary modal cues to enable simultaneous defect detection and quantitative characterization for three-dimensional weld geometries. This paper presents a multi-stage framework for defect detection on automotive guide rod annular welds, integrating template matching, 3D point cloud processing, and decoupled feature extraction. A weighted similarity metric is introduced to optimize template matching, facilitating rapid and accurate localization of the weld region through a dynamic threshold strategy combined with an image pyramid scheme. Following the location of the region, the acquired 3D point cloud undergoes multi-stage filtering and RANSAC plane fitting to achieve high-fidelity 3D reconstruction, which provides precise weld height information. Building on the reconstructed geometry, a dual-branch detection algorithm is developed that incorporates decoupled defect features to enhance discriminability. One branch focuses on height extraction to identify oxide inclusions that protrude above the part surface, while the other employs quantile double-thresholding to separate morphological features from lower weld layers.

2. Methods

2.1. System Process

During acquisition, the guide rod is clamped at its middle to ensure stable orientation and parallel alignment with the test bench. A Shensight SR7140 3D laser profilometer (Shenzhen Shensight Technology Co., Ltd., Shenzhen, China; 405 nm blue Class 2M laser, 0.5 μm Z-repeatability, 8 μm X-resolution, 2500–8000 Hz, 3200 profiles/frame) captures the surface data [29,30]. Data were acquired at 4000 profiles/s with a robotic scanning velocity of 60 mm/s and a nominal stand-off distance of 140 mm. The spatial sampling interval is 8 μm along the laser line (X-axis, native sensor resolution) and 15 μm along the scanning direction (Y-axis, computed as scanning velocity divided by acquisition frequency).
Prior to each session, hand-eye calibration establishes the sensor-to-robot coordinate transformation. The laser beam is projected vertically onto the guide rod surface, with the laser line aligned perpendicular to the weld circumference. Two guide rods are clamped side by side with their longitudinal axes parallel to the robotic scanning direction, and a belt-driven transverse mechanism perpendicular to the rod axis transfers the sensor between the front and rear weld sides. For each pair of workpieces, the robotic arm first scans the front weld side of the first guide rod, then the belt mechanism moves the sensor to its rear side to complete the second scan. The same front-to-rear scanning sequence is then repeated for the second guide rod. The robotic arm moves it along a straight path parallel to the rod axis at constant velocity, stacking successive cross-sections to reconstruct the complete front and back weld morphologies under identical geometric conditions. The active 405 nm laser and a narrow-band optical filter reject ambient light without auxiliary illumination.
All acquisitions are performed in fixed single-exposure mode to ensure consistent intensity response. Before each session, the sensor is calibrated using a traceable gauge block (Z-axis) and a precision flat plate (plane), while RANSAC plane fitting serves as an in-situ correction to compensate for residual tilt and fixture misalignment. The full pipeline takes 200 ms per weld on an industrial PC (Intel Core i7 CPU, 64 GB RAM, Windows 11, no GPU acceleration); missing points in Figure 1 are due to fixture occlusion. The guide rods are welded via GMAW (ISO 4063 [31], process 135) with 1.2 mm low-silicon wire and pure CO2 shielding at 160–220 A, 15–21 V, and ~60 cm/min. The CO2-rich atmosphere promotes discrete Si/Mn deoxidation products protruding above the weld surface. These discrete Si/Mn deoxidation products are classified as oxide inclusions (No. 303) under EN ISO 6520-1. The subsequent processing pipeline employs feature-enhanced template matching for precise localization, followed by multi-stage filtering and RANSAC height referencing. Decoupled dual-branch feature extraction and hierarchical analysis then effectively discriminate insufficient throat thickness and excessive convexity.

2.2. Rapid and Accurate Localization of Welding Area

Edge point positions and gradient directions, derived from an enhanced Canny operator, serve as matching features for similarity calculations. This approach facilitates the rapid acquisition of accurate gradient directions and sub-pixel edge coordinates. To satisfy real-time processing requirements, a search strategy is implemented that integrates dynamic threshold judgment with an image pyramid algorithm to ascertain precise coordinates and rotation angles. Furthermore, weld seam area is rapidly extracted by a rectangular bounding box.

2.2.1. Improved Canny Edge Extraction

A Canny edge detection operator is adopted for gradient extraction, with the original 2 × 2 template replaced by a 3 × 3 template. In addition to the horizontal and vertical templates of the Sobel operator, gradient templates at 45° and 135° are incorporated [32]. The resulting gradient magnitude ti and gradient argument ui are defined by Equations (1) and (2):
t i = t x 2 ( i , j ) + t y 2 ( i , j ) + t 45 ° 2 ( i , j ) + t 135 ° 2 ( i , j )
u i = arctan t y ( i , j ) t x ( i , j )
where tx(i, j), ty(i, j), t45(i, j), t135(i, j) are the gradient magnitudes at pixel (i, j) in the corresponding directions.
Non-maximum suppression (NMS) is then applied to refine the gradient magnitude of each pixel. For any given pixel, its gradient direction serves as the reference to determine whether its gradient magnitude is the maximum within the corresponding neighborhood. For instance, when a pixel exhibits 45° gradient, its magnitude is compared with the adjacent pixels along the diagonal, and only the one with the greatest magnitude is preserved. By assigning zero gray values to non-maximum pixels, the wide edges of the guide rod are narrowed down to single-pixel edges, successfully eradicating edge blurring during the subsequent template matching phase.
On this basis, an adaptive dual threshold algorithm based on gradient statistical characteristics is applied to enhance edge detection and connectivity, thereby reducing the false edge detection rate of the traditional Canny algorithm. Since the standard deviation of an image quantifies the dispersion of gray values around the mean, the gradient mean M and standard deviation σ of the processed NMS gradient image are calculated to determine the adaptive double thresholds. The high threshold is defined as H = M + σ, which amplifies the gradient difference using variance to reflect the gray contrast characteristics of the guide rod surface. The low threshold is set as L = 0.4H, a ratio that balances edge detection integrity with the suppression of false edges.
Finally, a guide rod standard template is processed using the above Canny operator, converting the edge-detected image into a point set of edge points pi = (xi, yi)T,i = 1, 2, 3,…,n, each associated with a unique gradient direction vector di = (ti, ui)T.

2.2.2. Similarity Measure Function

Geometric template matching computes a similarity measure using edge information from both the template and the target image [33], as defined in Equation (3).
s 0 = 1 n i = 1 n < d i , e q + p > = 1 n i = 1 n ( t i v x + x i , y + y i + u i w x + x i , y + y i )
Here, n denotes the total number of valid edge points extracted from the template image after edge detection. The vector di = R(θ)di represents the gradient direction of the i-th template edge point after rigid rotation, where ti and ui are its horizontal and vertical components, respectively. The vector eq+p is the gradient direction at the corresponding position in the sub-image centered at position q = [x, y]T in the target image, with v x + x i , y + y i and w x + x i , y + y i as its horizontal and vertical components. This metric quantifies the average consistency of gradient directions between the transformed template and the target sub-image. The similarity function for the sub-image at this position is illustrated in Figure 2.
To reduce the computational cost of square root operations, the gradient vectors of the template and the target image are first normalized to unit vectors, transforming Equation (3) into Equation (4). This normalization is equivalent to the normalized cross-correlation (NCC) measure widely used in robust template matching [34]:
s 1 = 1 n i = 1 n < d ¯ i , e ¯ q + p >
However, the original similarity measure adopts an equal weight summation and fails to distinguish the importance of edge points. Thus, optimization is performed to introduce a weighting mechanism as:
s 2 = 1 n i = 1 n w i < d ¯ i , e ¯ q + p > = 1 n i = 1 n w i ( t ¯ i v ¯ x + x i , y + y i + u ¯ i w ¯ x + x i , y + y i )
where wi = exp(−i2), with the subscript i indexing the i-th valid Canny edge point in the template image. This weighting strategy follows the principle of stability-weighted feature matching, as discussed in [35], wherein edge points with higher local stability are assigned greater contribution to the overall similarity measure. Each edge point pi is associated with a unique gradient direction vector, and its weight coefficient wi is independently calculated via the gradient variance σi2 within its local neighborhood. This strategy incorporates local edge stability into the similarity computation.
k = 1 n i = 1 n σ i 2 1 is set as the reciprocal of the mean gradient variance among all template edge points, as indicated in Equation (5). Accordingly, an edge point whose gradient variance equals the global average variance yields a weight coefficient wi = e−1 ≈ 0.3679. The weight decays exponentially with increasing gradient variance and converges to 1 for edge points with smaller variance. This adaptive formulation enables the weight scaling to spontaneously fit the inherent noise level of images, and eliminates manual presetting of fixed constants. Edge points with low gradient variance in smooth continuous edges, exhibit higher stability. Assigning greater weights to these points amplifies their contribution to feature extraction. Conversely, edge points with elevated gradient variance, typically arising in noise-affected regions, are more prone to introduce errors. Suppressing their weights mitigates interference and enhances matching accuracy. This weighting mechanism preserves the original algorithm’s invariance to illumination changes.

2.2.3. Stopping Criterion and Image Pyramid

A full-image traversal search incurs extremely high computational overhead. To accelerate the algorithm and satisfy the real-time inspection requirements, the early termination of similarity calculation for non-candidate regions is combined with an image pyramid strategy, thereby improving computational efficiency. Owing to its poor anti-interference and low generalizability, the traditional fixed-threshold termination method cannot handle complex conditions in circumferential weld seam detection. Therefore, a dynamic threshold mechanism T is introduced to optimize the termination criterion, as shown in Equation (6).
T = T 0 mean ( d i , e q + p i n i t )
s acc = j = m + 1 n w j d j e q + j ( s acc < T )
where T0 = 1.2 is adopted as a conservative engineering choice that provides a 20% safety margin relative to the mean partial similarity of the most stable template points, consistent with the early-termination principle in branch-and-bound template matching [33].The termination threshold T = T0·mean (·) can adapt to varying working conditions, where the mean term is calculated from the five most stable template edge points (i.e., the top 5 points with the highest weight coefficients), as defined in Equation (6).
Template edge points are traversed in descending order of weight, prioritizing high-weight stable points with higher reliability during similarity calculation. The variable sacc denotes the accumulated weighted similarity score of the traversed points, which is calculated incrementally point by point as shown in Equation (7). If sacc remains below the dynamic threshold T after partial traversal, the traversal and calculation for the current sub-image are terminated immediately without processing all edge points, as the remaining low-weight points cannot make the total similarity reach the qualified threshold. Conversely, if sacc is consistently above T after all edge points have been traversed, the sub-image is classified as the target matching region. The template matching and positioning process for circumferential weld seam detection of the guide rod is shown in Figure 3, where Figure 3a is a schematic diagram of template matching and positioning of the guide rod, and Figure 3b displays the sub-pixel edge extraction result obtained by the improved Canny operator.
To fulfill real-time inspection requirements, a coarse-to-fine hierarchical search strategy based on an image pyramid is employed to decrease algorithm complexity. This strategy facilitates coarse target positioning in low-resolution images and precise matching in high-resolution images. The image pyramid is generated by assigning the gray mean of each 3 × 3 pixel neighborhood from the original image to the corresponding pixel position in the subsequent low-resolution layer. To efficiently position the weld seam region, a fixed-size rectangular bounding box is applied to encompass both the core weld seam area and the transition zone. This method effectively prevents the omission of edge features and the inclusion of irrelevant backgrounds, such as fixtures and non-welded components. Consequently, this operation swiftly extracts the effective weld seam region, accurately defines the region of interest (ROI), eliminates background interference, and significantly reduces the computational cost associated with subsequent 3D information extraction in Figure 3c.

2.3. Point Cloud Filtering and Height Map Generation

To establish the reference datum for the guide rod, random sample consensus (RANSAC) plane fitting is employed, and principal component analysis (PCA) is utilized to estimate the normal vector. The relative height of each point is calculated by integrating the reference plane information with the normal vector. This method effectively mitigates background point interference, reduces point cloud noise, and addresses issues related to non-uniform height references. Consequently, it provides accurate three-dimensional height data that is crucial for reliable identification of weld defects in subsequent analyses.

2.3.1. Preprocessing

Preprocessing is a crucial initial step in RANSAC datum fitting, aiming to remove noise points, reduce redundancy in the point cloud, and improve the accuracy and efficiency of subsequent RANSAC fitting. First, the original point cloud in Figure 4a undergoes pass-through (straight-through) filtering, with coordinate limits X ∈ [−30, +30] mm, Y ∈ [−30, +30] mm, and Z ∈ [−2, +8] mm relative to the weld-ROI centre, to remove extreme noise points that fall outside the effective spatial range of the weld, yielding the filtered point set Pmin. Next, radius outlier removal is applied to Pmin to eliminate isolated noise points, yielding the refined point set Pradius, as defined in Equation (8):
P r a d i u s = { p i P min k c a r d { p i P min p i p j 2 < r } }
where ‖pipj2 denotes the Euclidean distance between points pi and pj, r represents the search radius (set to 0.1 mm), k is the minimum required number of neighbors (set to 5). The function card(·) counts the elements in the set [36]. Here, Pmin denotes the point set after pass-through filtering, and Pradius denotes the point set after radius outlier removal. As illustrated in Figure 4b, point A is retained because its average distance to its neighbors is below the threshold, while point B is removed as an outlier.
Voxel-based uniform downsampling reduces point cloud density and lowers the computational cost of RANSAC iterations while preserving the geometric integrity of weld features [37], as shown in Figure 4c. The voxel grid size is set to 0.05 mm × 0.05 mm × 0.05 mm, and the resulting point set is given in Equation (9).
P s a m p l e = 1 N v p V v p V v V , N v = c a r d V v
where V is the set of voxel grids, Vv denotes a single voxel grid, Nv is the number of points within a voxel, and the arithmetic mean of all points’ coordinates in that voxel is adopted as the representative sampling point.

2.3.2. RANSAC and Normal Vector Estimation

Three points are sufficient to define a plane; however, to enhance fitting robustness, six points are randomly sampled from the outer ring of the annular welds in Figure 4d. A distance threshold dt = 0.02 mm is defined. Points whose distance di to the fitted plane satisfies the condition didt are classified as inliers, while the remaining points are considered outliers. The procedure is executed iteratively, retaining the current plane model whenever the number of inliers meets a predefined criterion, with a maximum of 1000 iterations. Whenever the inlier count of the current model exceeds the previously recorded maximum, the model parameters are updated. Iteration continues until the specified limit is reached, at which point the model with the highest inlier count is selected as the final plane.
Accurate estimation of surface normal vectors, essential for point cloud feature extraction, surface segmentation, and various geometric analyses, can be achieved through local plane fitting. Accordingly, local neighborhood normal vector estimation is performed on the weld point cloud corresponding to the reference plane of the guide rod’s base material. For each point pi, a KD-tree is used to identify the k = 10 nearest neighbor points, and a local plane is fitted to these neighbor points via least squares, as defined in Equation (10):
T ( n , d ) = argmin i = 1 k n p i d T 2
Here, n is the unit normal vector of the local plane T, and pi = (xi,yi,zi) is the i-th point within the local neighborhood of the current point. The distance from the coordinate origin to the plane T is denoted by dT.
To solve this optimization problem efficiently, principal component analysis (PCA) is adopted for surface normal estimation, following the classical robust framework in [38]. The key principle is as follows: for a set of 3D points approximately distributed on a local plane in Figure 4e, the point cloud exhibits minimum variance along the normal direction of the plane, and maximum variance along the two orthogonal directions within the plane. This distribution characteristic is accurately quantified by eigenvalue decomposition of the local covariance matrix of the point set.
First, a 3 × 3 covariance matrix M is constructed from the local neighborhood point set for the current point pi, as defined in Equation (11):
M = 1 k i = 1 k ( p i p ¯ ) ( p i p ¯ ) T
where is the centroid of the k neighboring points. Centroid subtraction eliminates the translation offset of the point set, and retains only the spatial distribution characteristics of the point cloud relative to its geometric center.
Then, eigenvalue decomposition is performed on the symmetric positive semi-definite covariance matrix M, as shown in Equation (12):
M v j = λ j v j , j 0 , 1 , 2
where λj is the j-th eigenvalue of the covariance matrix M, sorted in non-decreasing order as 0 ≤ λ0λ1λ2; vj is the unit eigenvector corresponding to λj, and the three eigenvectors are mutually orthogonal.
The eigenvalue λj directly quantifies the variance of the point cloud distribution along the direction of its corresponding eigenvector vj. The smallest eigenvalue λ0 corresponds to the direction of the minimum variance, which is exactly the normal direction of the local least-squares fitted plane. Therefore, the unit eigenvector v0 associated with λ0 is taken as the unit normal vector n of the local plane. To eliminate the direction ambiguity of the normal vector (two opposite directions obtained from decomposition), all normal vectors are uniformly oriented toward the 3D structured-light camera coordinate system in this work, ensuring consistency in subsequent height calculations.
Figure 5 presents simulated point cloud datasets with varying outlier levels for plane fitting in low-profile narrow workspaces. The benchmark dataset in Figure 5a comprises 300 inliers uniformly distributed on an ideal plane within X ∈ [0, 1] mm, Y ∈ [0, 1] mm and Z ∈ [0, 0.2] mm, with Gaussian noise (σ = 0.01 mm) added to simulate practical measurement errors; datasets in Figure 5b–d are constructed by adding 300, 500, and 700 outliers respectively to the benchmark to mimic gradually aggravated contamination, where all outliers share the same X–Y range as inliers with Z-values following a Gaussian distribution (μ = 0.1 mm, σ = 0.05 mm) to replicate clustered noise highly overlapping with valid signals in narrow spaces. In all panels, inliers identified by the proposed RANSAC algorithm are marked in navy blue, while rejected outliers are in brick red. Quantitative results show that the proposed method achieves a root mean square error (RMSE) of 0.010 mm and an angular deviation of 0.14° against the theoretical ground truth in the outlier-free scenario, which matches the preset noise level and verifies its intrinsic fitting accuracy; even in challenging outlier-contaminated scenarios, it maintains excellent performance with RMSE stably controlled within 0.015 mm and a maximum angular deviation of only 0.36°, and the negligible performance degradation across all test cases fully validates the good robustness and stability of the proposed method.
The standard deviation of point-to-plane distances, denoted RMSE, is adopted as the metric for evaluating plane fitting accuracy, as defined in Equation (13). This metric directly quantifies the dispersion of the point cloud along the normal direction of the plane, and provides an accurate assessment of reference plane flatness and height measurement reliability, compared with conventional coordinate standard deviation.
RMSE = 1 n in i = 1 n in d i 2
where nin is the number of inliers, and di represents the distance from the i-th inlier to the fitted plane.

2.3.3. Height Measurement

To enable precise quantitative analysis of the three-dimensional weld morphology, the guide rod surface beneath the weld is selected as the height reference. This reference plane is established through point cloud preprocessing and RANSAC-based fitting, and is expressed as Ax + By + Cz + D = 0. The coefficients A, B, and C correspond to the three components of the reference plane’s normal vector n, while D denotes the plane intercept in Figure 4f. In this study, the plane coefficients (A, B, C) are normalized to unit norm (A2 + B2 + C2 = 1) after RANSAC fitting, so that the point-to-plane distance is directly given by the numerator. Using the point-to-plane distance formula from analytic geometry, the height hi of a point Pi(xi, yi, zi) relative to the reference plane Sfinal is computed in Equation (14), where the normalization term A 2 + B 2 + C 2 equals unity because (A, B, C) is a unit normal vector:
h i = A x i + B y i + C z i + D A 2 + B 2 + C 2
Figure 6 presents the multi-stage hierarchical preprocessing, RANSAC robust plane fitting, and PCA-SVD based local surface normal estimation performed on the simulated point cloud data of the guide rod annular weld. The original noisy weld point cloud containing valid planar inliers and massive random outliers is displayed in Figure 6a. Boundary invalid points are pruned via pass-through filtering in Figure 6b to remove edge interference points. On this basis, isolated discrete noise is further eliminated in Figure 6c, and a uniformly density-simplified point cloud is obtained by voxel downsampling in Figure 6d. After the completion of multi-step point cloud preprocessing, a stable robust reference plane is fitted and constructed by the RANSAC algorithm, as shown in Figure 6e. The directional ambiguity of eigen-decomposed normal vectors is resolved by unifying their orientations against the normal vector of the RANSAC-fitted reference plane, so that height calculation errors are avoided. In addition, sparse sampling with uniformly scaled arrows is adopted for the clear visualization of normal vectors in Figure 6f. By this series of operations, point cloud denoising and redundancy compression are achieved while the weld geometric topology is preserved, a robust height reference plane is established, and high-precision 3D geometric information is obtained to support subsequent weld inspection tasks.

3. Results

3.1. Defect Type

In this experiment, 50 groups of guide rod workpieces, each containing two annular welds on the upper and lower surfaces, are randomly sampled across five production batches as test samples and subsequently independently examined by two qualified welding inspectors strictly following the ISO 17637 standard for visual testing [39]. Each inspector classifies all 100 annular welds independently without knowledge of the other inspector’s results. The two inspectors reach agreement on 94 of the 100 welds (94.0% raw agreement; Cohen’s κ = 0.88); the six remaining cases are adjudicated by an independent senior inspector (ISO 9712 [40] Level 3), whose re-examination with a calibrated digital fillet-weld gauge is adopted as the final ground truth. The dataset is divided into a calibration set and an independent test set. The calibration set comprises five normal guide-rod workpieces sourced from one production batch each, providing a total of ten annular weld height distributions. The repeatability of the height measurement was first verified on these same workpieces through three independent scanning trials with full re-clamping and re-acquisition per trial. This procedure was subsequently extended to all detected defective welds for classification repeatability assessment. The system was additionally deployed in a second installation environment equipped with different sensor units and fixturing hardware, where five normal guide rods were scanned to verify the consistency of the height measurement. The measured height profiles in this second environment were consistent with those obtained from the primary setup. These workpieces are used solely to derive the normal-weld height statistics and determine the detection thresholds; no defective specimen is used, and all class-specific thresholds are derived exclusively from these normal-weld data. The test set comprises the remaining 100 annular welds, which are completely independent of the calibration set and are not involved in any threshold determination. All performance metrics are computed on this independent test set, eliminating calibration-test data leakage. This study focuses on surface geometric defects; therefore, visual inspection results are adopted as the ground truth, and complementary volumetric NDT methods are not included. The morphology and geometric characteristics of different weld types can be clearly distinguished, shown in Figure 7.
The annular joint examined in this work is a circumferential fillet weld (FW) produced by metal active gas (MAG) welding, designated process 135 (GMAW) under ISO 4063. Imperfection classification and acceptability assessment follow established international welding standards. First, all detected indications are identified and named in accordance with EN ISO 6520-1, which standardises the nomenclature and reference codes for geometric imperfections in fusion-welded metallic materials. Acceptability is then evaluated against EN ISO 5817, a standard defining three quality levels (B, C and D) for fusion-welded joints, with level B setting the tightest acceptance limits. For this study, quality level C is adopted as the acceptance benchmark, consistent with baseline quality screening requirements for dynamically loaded chassis components. An imperfection is categorised as a defect, and thus unacceptable, only when its magnitude exceeds the corresponding limits specified in EN ISO 5817 level C; otherwise it is treated as an acceptable imperfection. This framework ensures that all inspection results are fully traceable to international welding standards.
Normal weld (Figure 7a): Smooth contour with natural transition to the base metal, no abrupt dimensional deviation, intact overall structure. The weld profile satisfies the EN ISO 5817 level C requirements for fillet weld geometry.
Oxide inclusions (Figure 7b) correspond to oxide inclusions (No. 303) as defined in EN ISO 6520-1. They appear as irregular point-like, strip-like or block-shaped solid particles embedded in the weld or protruding from its surface. In solid-wire MAG/GMAW, these discrete oxide particles form from deoxidation products such as silicates and manganese oxides, combined with CO2-induced surface oxidation. They differ from the continuous flux-derived slag layer typical of SMAW or FCAW processes. The resulting bulge usually exceeds the nominal reinforcement height and may rise above the workpiece surface, providing the primary height-based feature for defect detection [41]. Per EN ISO 5817 level C, such protrusions beyond the permitted excess metal limit are classified as defects.
Excessive convexity (Figure 7c) is listed as imperfection No. 503 in EN ISO 6520-1. This imperfection arises from excessive molten metal outflow during welding, presenting as a localised build-up of deposited metal above the nominal weld face. The boxed area marks the protruding region [42], where reinforcement height deviates from the intended weld profile and produces an irregular cross-section. The fillet-weld dimensions were measured with a calibrated digital fillet weld gauge (display resolution 0.01 mm, maximum indication error ±0.03 mm) during visual testing. Repeated readings were taken at no fewer than five equally spaced cross-sections around the circumference and arithmetically averaged, yielding a mean leg length z = 2.75 mm. For an equal-leg 45° fillet weld in accordance with ISO 2553 [43], the nominal theoretical throat thickness is a = 0.707, z = 1.94 mm and the weld-face width between the two toes is b = 2 z = 3.89 mm. Under EN ISO 5817 quality level C, the permissible excessive convexity of a fillet weld is h ≤ 1 mm + 0.15b = 1.58 mm (maximum 4 mm), with a smooth transition required at the weld toe; the gauge-measured protrusion height exceeds 1.58 mm, and this indication is therefore classified as an unacceptable defect.
Insufficient throat thickness (Figure 7d) corresponds to imperfection No. 5213 in EN ISO 6520-1. It appears as a local reduction in the actual weld throat below the nominal value, caused by insufficient deposited metal or improper welding parameter settings. In the 3D point cloud, such features show a local drop in height below the weld threshold and a break in the connected domain of the core weld bead. EN ISO 5817 quality level C evaluates a fillet weld against its nominal throat thickness a rather than the base-material thickness. For imperfection No. 5213, a short reduction in the actual throat thickness A below the nominal throat a is permitted up to h ≤ 0.3 mm + 0.1a; substituting the digital-gauge nominal throat a = 1.94 mm gives the permissible reduction h = 0.49 mm (maximum 2 mm). Repeated digital-gauge readings confirm that the actual local throat reduction exceeds 0.49 mm, and this indication is therefore classified as unacceptable. Imperfections of this type are particularly harmful to critical load-bearing components [44].

3.2. Weld Seam Hierarchical Extraction

The height of the upper plane Hmax of the annular guide rod component is determined from the RANSAC fitted reference height H0 and the statistical upper bound of the normal weld height distribution. It serves as the nominal height of the component body and the critical threshold for identifying oxide inclusion defects, and also acts as the upper height benchmark for hierarchical extraction of weld point clouds.
First, the abnormal height points caused by oxide inclusions are removed to reduce their interference with the subsequent weld height statistics and point cloud filtering. Based on the height distribution histogram of normal welds after outlier removal, the lower and upper bounds of the normal weld height distribution are denoted as Plow and Phigh respectively, defining the effective statistical interval [Plow, Phigh]. Since the weld height data do not follow a normal distribution, parametric thresholding methods are inapplicable. A non-parametric quantile method is therefore adopted within the interval [Plow, Phigh] to set dual thresholds, ensuring full coverage of the effective height range of all normal welds while meeting the requirements of accurate defect identification. Finally, point cloud filtering is performed using the derived dual thresholds to achieve hierarchical extraction of the 3D weld contour.

3.2.1. Low Threshold Hlow: Complete Extraction of Full Weld Features

A low threshold Hlow is designed to maximize the retention of valid normal weld point clouds while fully suppressing background noise from the guide rod reference plane. By preserving points with height between Hlow and the upper plane of the guide rod workpiece, the complete weld point cloud Pweld is extracted encompassing the core weld fusion zone and edge transition zone. This point cloud accurately captures the full-dimensional morphology of the weld, including key geometric attributes such as weld width, edge contour, and base metal transition, thereby providing comprehensive data support for weld conformance inspection.

3.2.2. High Threshold Hhigh: Enhanced Extraction of Defect Features in the Core Zone

An upper threshold Hhigh is crucial for isolating the core deposited-metal layer that determines the effective weld throat, thereby providing the geometric basis for throat-thickness quality assessment. By setting directional thresholds, it not only ensures the consistent height of weld reinforcement in typical welds but also enhances the contrast of insufficient-throat defects. In cases of insufficient throat thickness, there is a noticeable break in the point cloud connectivity within the core region of the weld. Selecting point clouds with heights between Hhigh and the upper plane of the guide rod workpiece extracts the core weld point cloud Pcore, focusing on the core zone of the deposited metal. This extraction yields high signal-to-noise ratio feature data essential for subsequent quantitative identification of weld continuity defects.
H low = P 0.03 , P 0.03 [ P low , P high ] H high = H low + ( P high P low ) / 3 P weld = { H i H low H i < H max } P core = { H i H high H i < H max }  
In Equation (15), P0.03 denotes the value below which 3% of the normal weld point cloud height data fall. The one-third proportional placement of Hhigh above Hlow is derived from the cross-sectional geometry of a triangular fillet weld. For such a profile, the upper one-third of the weld height encloses approximately half of the total cross-sectional area. Extruding this area along the circumferential weld length yields the effective volume of deposited metal that sustains the throat thickness, thereby establishing the geometric basis for the threshold selection. The principle of height hierarchical extraction of annular weld point cloud is shown in Figure 8.
The numerical thresholds were derived solely from the five normal calibration guide rods (ten annular welds, one rod from each batch). After discarding residual points above 5.5 mm, the 0.5th and 99.5th percentiles of the pooled normal-weld heights define the effective interval [Plow, Phigh] = [0.12, 4.98] mm. The low threshold Hlow = P0.03 ≈ 0.35 mm retains at least 97% of normal-weld points while suppressing reference-plane noise. The high threshold Hhigh ≈ 1.97 mm, which isolates the core deposited-metal layer; this value lies within 0.1 mm of the nominal theoretical weld throat (a = 1.94 mm), ensuring that connected-domain continuity within Pcore directly reflects local throat integrity. The upper-plane threshold Hmax = 5.05 mm bounds the normal upper-plane confidence interval [4.85, 5.05] mm. All thresholds are fixed before test-set evaluation, with no test-set data used in calibration.
The point cloud of the target weld region is obtained by screening with the preset height thresholds and then inversely converted into depth image pixels. Initially, points within the specified height range are isolated in Figure 9a. Subsequently, the point cloud of interest with pixel coordinates is extracted, encompassing all point data in Ptarget = {(ui, vi, xi, yi, zi)| hi ∈ [hmin, hmax]}. This hierarchically extracted annular weld point cloud is then correlated with the corresponding pixels, forming a pixel set U = {(u1,v1), (u2,v2), …, (uk,vk)}, as depicted in Figure 9b.

3.3. Defect Detection Analysis

In the 3D quantitative evaluation of annular weld quality, the volume parameter is commonly used to represent the total amount of deposited metal. However, this metric has inherent limitations: a single volume index reflects only the overall deposited metal quantity, but cannot resolve the local forming quality across different weld regions. It fails to capture composite defects where local excess metal accumulation coexists with local throat reduction elsewhere under the same total volume.
A stepwise defect discrimination framework with decoupled feature extraction is constructed based on the unified height reference and the extracted weld point cloud, as illustrated in Figure 10. One branch identifies oxide inclusions through extreme height screening, while insufficient throat thickness and excessive convexity are discriminated using images generated from the unfolded weld point cloud at different height thresholds.

3.3.1. Defect Discrimination

Figure 11 presents a three-dimensional morphological comparison of weld specimens, with Figure 11a–d depicting a normal weld, oxide inclusion, excessive convexity, and insufficient throat thickness, respectively. Marked differences in surface contour and height distribution across weld categories demonstrate that height features constitute the primary basis for differentiating defective welds from normal samples.
Oxide inclusion defects are identified as follows. First, the height distributions of multiple normal welds are statistically analyzed to determine the concentration range of their maxima. The analysis yields a confidence interval of 4.85 mm to 5.05 mm for the upper plane of normal welds. As shown in Figure 12a, the point cloud above Hmax forms a smooth ring corresponding to the upper plane of the guide rod. If the extreme height exceeds this normal range and the abnormality persists, the oxide inclusion defect can be identified by quickly screening the height extreme value Pmax (mm). As depicted in Figure 12b, the tested weld exhibits an extreme height of 7.15 mm, substantially above the component upper plane, and is therefore classified as an oxide inclusion defect. The height characteristics of the oxide inclusions are consistent with the two-dimensional representation after point cloud conversion, corroborating the recognition result.
To address the technical limitation that the inherent curvature of closed annular welds renders excessive convexity detection prone to misjudgment or missed detection, the extracted weld point cloud Pweld is projected onto a 2D reference plane and unwrapped into a rectangular representation. This unwrapping linearizes the curved weld path, enabling direct connected-domain analysis on a flattened geometry where excess metal accumulations manifest as distinct, isolated regions. The transformation is achieved via polar-to-Cartesian coordinate mapping combined with bilinear interpolation [45]. A morphological closing operation using a 3 × 3 circular structuring element with one iteration is then applied to the unfolded image to separate the excessive-convexity region from the main weld body, ensuring that the protruding metal forms a distinct connected component for reliable detection. For a normal weld, the core region contains a single connected domain (C1 = 1), as shown in Figure 13a. Excessive convexity produces an elevated bulge due to localized metal accumulation, forming an independent additional connected domain in the flattened image. Consequently, when C1 ≥ 2, the defect is reliably identified as excessive convexity, thereby circumventing the accuracy loss and computational overhead inherent in conventional volume-based methods, as illustrated in Figure 13b.
To overcome this, the core-weld point cloud Pcore extracted by the proposed high-threshold hierarchical extraction method is used as the primary data foundation. Two indicators are then calculated: the number of connected domains C2 and the area ratio R = Smax/Stotal, where Smax denotes the area of the largest connected domain and Stotal is the total area of the standard core weld. This yields a dual-index discrimination framework based on connected-domain count and area proportion. Specifically, if C2 = 1, the core-weld connected domain remains continuous, and no local throat-thickness fracture is detected regardless of minor area-ratio fluctuations. Conversely, when C2 ≥ 2, connectivity breakage within the core layer indicates insufficient throat thickness (No. 5213). The area ratio R = Smax/Stotal quantifies the severity of material loss once a connectivity break has been identified, with R < 0.9 serving as a reference marker for pronounced throat reduction; however, R alone is not used as a defect-triggering threshold. This approach markedly improves the identification accuracy and robustness for marginal insufficient-throat defects, as illustrated in Figure 13c.

3.3.2. Statistics of Overall Inspection Results

Among the 100 annular welds, 33 are defective and 67 are normal. The defective samples include 5 oxide inclusions, 11 insufficient-throat cases, and 17 cases of excessive convexity, with one composite defect (combining excessive convexity and insufficient throat thickness, designated Type 3, 4) on the upper weld of workpiece No. 49. In binary classification, this composite defect is counted as one defective weld (one true positive); in multi-class evaluation, it is treated as a positive sample for both the excessive-convexity class and the insufficient-throat class under a multi-label counting rule. The method correctly detected both components; it is therefore counted as a true positive for both excessive convexity and insufficient throat thickness. The proposed method achieves zero false positives overall, missing only two minor excessive convexity defects.
Defect types are classified as follows: normal welds (Type 1), oxide inclusions (Type 2), excessive convexity (Type 3), and insufficient throat thickness (Type 4). As shown in Table 1, the upper weld of workpiece No. 4 (C1 = 2) is classified as excessive convexity, and the upper weld of workpiece No. 37 (C2 = 2, R = 0.85) meets the criterion for insufficient throat thickness. For the composite-defect specimen No. 49, although its area ratio R = 0.93 does not fall below 0.9, the connected-domain count C2 = 2 indicates a connectivity break in the high-threshold core layer; it is therefore classified as insufficient throat thickness under the C2 ≥ 2 criterion, while C1 = 2 simultaneously indicates excessive convexity.
Defect detection performance is evaluated using five metrics: precision (Pr), recall (Re), F-measure (Fβ), accuracy (Ac), and false detection rate (Fd). All metrics are derived from the confusion matrix (TP, FN, FP, TN) and are formally defined in Equations (16)–(20).
P r = T P T P + F P
R e = T P T P + F N
F β = ( 1 + β 2 ) P r R e β 2 P r + R e
A c = T P + T N T P + T N + F P + F N
F d = F P T P + T N + F P + F N
Here, TP, TN, FP, and FN denote the numbers of true positives, true negatives, false positives, and false negatives, respectively. The weighting factor β balances precision Pr and recall Re, which is set to 1 in this work. Accuracy Ac represents the overall proportion of correctly classified samples. Precision Pr measures the fraction of predicted defective samples that are truly defective, while recall Re quantifies the fraction of actual defective samples successfully detected. With the exception of the false detection rate Fd, higher values of all metrics indicate better detection performance.
In binary classification experiments, positive examples refer to defective welds, and negative examples denote normal welds. Accuracy represents the ratio of correctly identified defective welds to all welds, while recall represents the ratio of correctly identified defective welds to all welds with defects. Evaluated on the entire test set, the method achieves an accuracy of 98.0% and a recall of 93.9%, as shown in Table 2.
In multi-class experiments, positive examples correspond to welds containing a specific defect type, while negative examples refer to welds with other defect types. All defect evaluation metrics exceed 88%, with accuracy (Ac), recall (Re), and F-measure (Fβ) reaching 100% for oxide inclusions and insufficient throat thickness, as shown in Table 3.
95% confidence intervals for the reported proportions are computed using the Wilson score method. For binary classification: recall = 93.9% (31/33, 95% CI: 80.4–98.3%), false-positive rate = 0% (0/67, 95% upper bound: 5.4%). For multi-class metrics, the intervals vary by class frequency and are discussed in Section 4.4.
To verify the reproducibility of the detection workflow, all specimens are scanned three times with full re-clamping and independent data processing per trial. Trial-specific detection counts and consistency metrics are summarized in Table 4.
Only one marginal excessive-convexity case at the decision boundary shows inter-trial variation; the second missed excessive-convexity case is consistently undetected across all three trials. The inter-trial Cohen’s κ coefficient for binary classification reaches 0.96, indicating almost perfect agreement. These results confirm stable and reproducible detection performance.

4. Discussion

4.1. Limitations of Data-Driven Approaches for Small-Sample Weld Inspection

Deep learning has driven notable progress in automated weld inspection. Two-dimensional convolutional architectures have demonstrated strong defect recognition capability on curated X-ray and optical weld datasets [15,16], and active-passive vision fusion frameworks have improved the robustness of weld seam region segmentation [25]. For volumetric defect characterization, 3D point cloud networks paired with multimodal data fusion have further expanded the dimensionality and granularity of inspection information [22,26,46].
However, such reported performance relies heavily on large, well-annotated training datasets, which are rarely available in high-mix, low-volume manufacturing. Label scarcity remains a core barrier to industrial deployment. For rare defects like oxide inclusions with incidence below 5% in stable production, building balanced, large-scale datasets is prohibitively costly for small-batch components. 3D point cloud models face further constraints. Their irregular, unordered structure requires more training data to learn robust geometric features than standard 2D grids. Expert-dependent 3D defect annotation is also far more labor-intensive [47], exacerbating class imbalance. Moreover, models trained on limited data perform poorly against sensor noise and domain shift in real production settings.
Few-shot and zero-shot methods reduce annotation requirements but have critical limitations for structured-light weld inspection. Zero-shot anomaly detectors fail to identify subtle topological defects within normal feature ranges; pre-trained foundation models lack calibrated 3D geometric inductive bias and suffer severe domain shift on metrology data [48]; few-shot metric learning degrades sharply when inter-class feature similarity is high. However, to circumvent the inherent limitations of the above data-driven paradigms, this work develops a geometry-driven weld defect inspection framework. It exploits the well-defined geometric properties of weld defects via calibrated 3D height measurement and physically interpretable statistical thresholding, requiring only five normal guide-rod calibration workpieces (one from each of five production batches; ten normal welds in total), from which all class-specific thresholds are derived, while delivering performance that warrants further investigation for industrial deployment, subject to validation on different workpiece types and operating conditions.
It should be noted that a direct quantitative comparison with existing weld inspection methods is not feasible in this study, as publicly available weld defect datasets are predominantly 2D X-ray or planar optical images, and no comparable 3D point-cloud dataset for annular fillet welds currently exists. Furthermore, the proposed method is a geometry-driven, rule-based approach requiring only minimal calibration samples, which is fundamentally different in paradigm from data-driven deep learning methods that require large annotated training sets. The internal ablation study (Table 4) therefore serves to quantify the independent contribution of each module within the proposed framework.

4.2. Ablation Studies and Module Contribution

Ablation experiments were conducted on the 100-weld dataset to quantify each module’s independent contribution. Results are summarized in Table 5, with detection counts verified against ground truth.
The full pipeline correctly identifies 31 of 33 defective welds with zero false positives. All oxide inclusions and insufficient-throat cases are detected, with only two marginal excessive convexity cases at the decision boundary missed, yielding a per-class recall of 88.2% for excessive convexity.
Replacing the proposed 3 × 3 multi-directional Canny operator with a standard 2 × 2 Sobel Canny increases mean localization error from 1.2 to 3.7 pixels, resulting in 5 false negatives, 4 false positives, and an overall recall of 84.8%. Removing the local-variance-weighted similarity metric degrades localization accuracy to 2.1 pixels, introduces 4 false negatives and 2 false positives, and reduces recall to 87.9%.
The dynamic early-stopping strategy primarily improves computational efficiency. Substituting a fixed threshold and disabling early termination has negligible impact on detection performance (90.9% recall, 3 false negatives from marginal excessive convexity, no false positives) but increases average matching time from 82 ms to 217 ms, a 165% rise in computational overhead.
RANSAC-based reference plane fitting is the most critical module for height measurement accuracy. Without robust plane fitting, raw Z-coordinate height values show a 7.3-fold rise in RMSE (0.087 mm vs. 0.012 mm) due to workpiece tilt and fixture misalignment, leading to 8 false negatives, 8 false positives, 75.8% recall, and a 12% false positive rate.
The dual-threshold hierarchical discrimination strategy decouples defect features across height scales. A single global threshold fails to resolve defects at different height layers, producing the lowest recall of 69.7% with 10 false negatives and 6 false positives. Compared with the proposed connected-domain topological analysis, global volume metrics cannot detect localized anomalies in composite defects with normal total volume, achieving only 78.8% recall with 7 false negatives and 4 false positives.
A measurement uncertainty budget is compiled following the Guide to the Expression of Uncertainty in Measurement (GUM), combining sensor repeatability (0.5 μm), the RANSAC plane-fitting residual (RMSE = 0.012 mm, Section 2.3.2), fixturing repeatability from the three-trial re-clamping tests (0.03 mm, Section 3.1), and quantile threshold statistical uncertainty (0.02 mm). The expanded uncertainty (k = 2) is ~0.08 mm, over 60 times smaller than the normal-weld height interval (PhighPlow ≈ 4.86 mm), ensuring robust height-based layering and classification under typical operating conditions.

4.3. Industrial Implications

In industrial defect recognition scenarios involving three-dimensional workpieces, relying solely on 2D image annotations often fails to reliably distinguish defect types that arise from spatial location variations. Our algorithm, by contrast, operates without requiring highly reflective workpiece reference surfaces. It employs a spatial layering strategy to progressively extract defects at different height levels, enabling stable and accurate identification of various defect types. This approach demonstrates strong engineering robustness in practical inspection environments. In addition, the proposed 2D-to-3D-to-2D processing philosophy strikes a pragmatic balance between depth-limited 2D vision methods and data-hungry 3D deep networks: it uses 2D analysis for fast localization and topological characterization, 3D structured-light reconstruction for calibrated height metrology, and unfolded 2D profile analysis for final defect classification. This geometry-driven paradigm eliminates the need for large annotated datasets while maintaining inspection efficiency and accuracy, demonstrating the feasibility of a geometry-driven quality-control approach for annular welds under the tested conditions.
A key practical advantage of the quantile-calibrated height-threshold framework is its inherent tolerance against moderate variations in point-cloud density and surface imaging conditions. The large statistical margin between the normal-weld height interval and the expanded measurement uncertainty ensures that threshold-based layering remains stable even under reduced sampling density.
Full interpretability of decision logic further facilitates industrial deployment and operator acceptance, as all classification results are traceable to physically defined quantitative metrics: oxide inclusions via extreme height Pmax outside the normal upper-plane confidence interval, excessive convexity via additional connected domains (C1 ≥ 2) in the low-threshold unfolded profile, and insufficient throat thickness via core connectivity breaks (C2 > 1) and reduced area ratio (R < 0.9) in the high-threshold core layer. This rule-based transparency enables straightforward on-site verification, threshold recalibration and root-cause analysis—advantages beyond the reach of black-box deep learning models without dedicated explainability frameworks.

4.4. Limitations and Future Work

All specimens share the same component type and are acquired within a fixed welding-parameter window. Aalidation across different component geometries and a wider range of operating environments remains to be conducted.
Oxide inclusion detection follows a deterministic height-threshold principle, whereby an inclusion is flagged only when its protrusion exceeds the upper bound of the normal weld height distribution; oxide particles flush with or below the weld surface would evade this height-based criterion. Conversely, local surface depressions or underfill may produce height profiles comparable to excessive convexity in certain cross-sections, potentially leading to misclassification between these two defect types.
Finally, although 95% Wilson-score confidence intervals and a measurement uncertainty budget have now been provided, the sample size remains modest.
Future work will address these limitations through extended cross-batch and cross-condition validation on different workpiece types, expansion of the dataset to narrow the confidence intervals for rare defect classes, refinement of the uncertainty budget for stricter quality levels (e.g., EN ISO 5817 Grade B), and benchmarking against established inspection methods, along with the integration of deeper geometric features for more subtle defect characterization.

5. Conclusions

This paper presents a full-process method for fast localization, three-dimensional point cloud processing, feature extraction, and defect evaluation of annular weld seams on automotive guide rods, in which weld imperfections are identified per EN ISO 6520-1 and evaluated against EN ISO 5817 quality level C acceptance limits. The main contributions are summarized as follows:
An improved geometric template matching method is developed, incorporating a weighted similarity metric and a dynamic threshold strategy. This approach addresses the challenge of simultaneously achieving high localization accuracy, real-time performance, and robustness to interference in annular weld inspection. It enables rapid and accurate weld region localization, thereby providing reliable spatial constraints for subsequent 3D point cloud analysis and defect detection.
A unified height reference is constructed through multi-stage point cloud preprocessing, RANSAC plane fitting and PCA-based normal estimation. A dual-branch decoupling strategy is then employed: one branch uses extreme height analysis to identify oxide inclusions that protrude above the part surface, while the other employs quantile dual-threshold layered analysis and connected-domain counting to discriminate excessive convexity and insufficient throat thickness. The proposed method achieves accurate localization and reliable defect classification for annular welds.
A dual-branch architecture with decoupled feature extraction is combined with a quantile-driven dual threshold strategy for hierarchical point-cloud characterization. Polar-to-Cartesian unwrapping linearizes the curved weld path, enabling connected-domain analysis to discriminate excessive convexity and insufficient throat thickness without resorting to computationally intensive 3D volume calculations. The results confirm the feasibility and potential of the method under controlled acquisition conditions, while further validation on larger multi-batch and multi-condition datasets is needed to establish industrial readiness.
Experimental evaluation on 100 annular welds sampled across five production batches demonstrates that the proposed method achieves zero false positives and high overall detection performance within the tested conditions. Oxide inclusions and insufficient-throat cases are detected with 100% recall, and excessive convexity with 88.2% recall, with only two marginal cases at the decision boundary missed. The method provides a transparent, geometry-driven alternative to data-hungry deep learning approaches for small-batch weld quality inspection under test conditions.

Author Contributions

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

Funding

This research was funded by the Fundamental Research Program of Shanxi Province, No. 202503021211118, and the Shanxi Key Laboratory of High-end Equipment Reliability Technology, No. GDZBKKX-202501.

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. The data are not publicly available due to significant investment of time and money in data acquisition.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Xu, L.; Zhai, W.A. Three-Dimensional Dynamic Model for Train-Track Interactions. Appl. Math. Model. 2019, 76, 443–465. [Google Scholar] [CrossRef] [Scilit]
  2. Ratnayake, R.M.C.; Vik, K.T. Quality Surveillance Methodology for Pipe Welding: An Industrial Case Study. Int. J. Perform. Eng. 2012, 8, 635–643. [Google Scholar]
  3. Hobbacher, A.; Kassner, M. On Relation Between Fatigue Properties of Welded Joints, Quality Criteria and Groups in Iso 5817. Weld. World 2012, 56, 153–169. [Google Scholar] [CrossRef] [Scilit]
  4. Shajan, N.; Das, I.M.; Arora, K.S.; Paliwal, M.; Shome, M. Investigating the Effect of Chemistry on the Flash Butt Weldability of Steels through a Combination of Experiments and Modeling. Weld. World 2021, 65, 405–414. [Google Scholar] [CrossRef] [Scilit]
  5. Emon, S.H.; Nellikode, S.; Lee, J.H.; Kim, M.H.; Ku, N.; Park, S.Y.; Kim, D.; Park, Y.-D. A Comparative Study on Complete and Partial Slot Filling in Automotive Chassis Welding for Fatigue Life Enhancement. Weld. World 2025, 69, 2921–2939. [Google Scholar] [CrossRef] [Scilit]
  6. Baskutis, S.; Baskutiene, J.; Dragašius, E.; Kavaliauskiene, L.; Keršiene, N.; Kusyi, Y.; Stupnytskyy, V. Influence of Additives on the Mechanical Characteristics of Hardox 450 Steel Welds. Materials 2023, 16, 5593. [Google Scholar] [CrossRef] [Scilit]
  7. Gadallah, R.; Shibahara, M. Effects of Weld Strength Mismatch and Cyclic Loading Patterns on Crack Driving Force in Ultra-High-Strength Steel Fillet-Welded Lap Joints. Thin-Walled Struct. 2025, 208, 112808. [Google Scholar] [CrossRef] [Scilit]
  8. Zhang, S. Automated Weld Defect Segmentation from Phased Array Ultrasonic Data Based on U-Net Architecture. NDT E Int. 2024, 146, 103165. [Google Scholar] [CrossRef] [Scilit]
  9. Wang, P.E.; Ghassemi-Armaki, H.; Pour, M.; Zhao, X.; Ma, J.; Sattari, K.; Carlson, B. Applicable and Generalizable Machine Learning for Intelligent Welding in Automotive Manufacturing. Weld. World 2025, 69, 1349–1384. [Google Scholar] [CrossRef] [Scilit]
  10. Say, D.; Zidi, S.; Qaisar, S.M.; Krichen, M. Automated Categorization of Multiclass Welding Defects Using the X-Ray Image Augmentation and Convolutional Neural Network. Sensors 2023, 23, 6422. [Google Scholar] [CrossRef] [Scilit]
  11. Wang, Z.; Lei, X.; Gao, W. Study on SDR Extraction of Ring Weld Defects of Pipeline. Weld. World 2022, 66, 1645–1652. [Google Scholar] [CrossRef] [Scilit]
  12. Tang, D.; Zhang, J.; Wang, P.; He, Y. Weld TOFD Defect Classification Method Based on Multi-Scale CNN and Cascaded Focused Attention. J. Manuf. Process. 2025, 138, 157–168. [Google Scholar] [CrossRef] [Scilit]
  13. Yang, L.; Wang, H.; Meng, W.; Pan, H. CvT-UNet: A Weld Pool Segmentation Method Integrating a CNN and a Transformer. Heliyon 2024, 10, e34738. [Google Scholar] [CrossRef] [Scilit]
  14. Zhang, Z.; Wen, G.; Chen, S. Weld Image Deep Learning-Based on-Line Defects Detection Using Convolutional Neural Networks for Al Alloy in Robotic Arc Welding. J. Manuf. Process. 2019, 45, 208–216. [Google Scholar] [CrossRef] [Scilit]
  15. Shu, L.; Zou, G.; Meng, Z.; Wang, Y. An Online Surface Defect Detection Method for Weld Seam Based on SAE Model and Background Extraction Method. Opt. Laser Technol. 2025, 187, 112791. [Google Scholar] [CrossRef] [Scilit]
  16. Zhang, R.; Liu, D.; Bai, Q.; Fu, L.; Hu, J.; Song, J. Research on X-Ray Weld Seam Defect Detection and Size Measurement Method Based on Neural Network Self-Optimization. Eng. Appl. Artif. Intell. 2024, 133, 108045. [Google Scholar] [CrossRef] [Scilit]
  17. Wang, H.; Fang, R.; Jiang, H.; Liu, Y.; Zhao, X.; Chen, C. Structured Light Vision-Based Online Quality Inspection of Weld Formation for Arc-Welded Joints in Steel. Opt. Lasers Eng. 2025, 191, 108991. [Google Scholar] [CrossRef] [Scilit]
  18. Ou, J.; Zou, L.; Wan, Q.; Liu, X.; Li, Y. Weld-Seam Identification and Model Reconstruction of Remanufacturing Blade Based on Three-Dimensional Vision. Adv. Eng. Inform. 2021, 49, 101300. [Google Scholar] [CrossRef] [Scilit]
  19. Wang, H.; Qi, S.; Zang, T.; Chen, C.; Zhao, X.; Liu, Y. In-Situ Surface Inspection for Wire-Arc Directed Energy Deposition Integrating 3D Topography Reconstruction, Defect Detection and Roughness Measurement. Opt. Laser Technol. 2025, 187, 112871. [Google Scholar] [CrossRef] [Scilit]
  20. Liu, C.; Zhou, X.; Wang, L.; Feng, J.; Li, Y.; Kang, Y. 3D Weld Seam Measurement in Automotive Manufacturing Based on Structured Light Reconstruction and Deep Learning Segmentation. Opt. Laser Technol. 2026, 193, 114222. [Google Scholar] [CrossRef] [Scilit]
  21. Ji, K.; Xu, Y.; Wang, X.; Yang, Y.; Ma, X.; Xia, C.; Chen, S. Real-Time Identification and Measurement Algorithm of Typical Welding Defects Based on Line-Structured Light Active Vision. J. Manuf. Process. 2025, 151, 1121–1135. [Google Scholar] [CrossRef] [Scilit]
  22. Guo, J.; Tan, D.; Guo, S.; Chen, Z.; Liu, R. Digital Inspection Technology for Sheet Metal Parts Using 3D Point Clouds. Sensors 2025, 25, 4827. [Google Scholar] [CrossRef] [Scilit]
  23. Li, B.; Xu, Z.; Gao, F.; Cao, Y.; Dong, Q. 3D Reconstruction of High Reflective Welding Surface Based on Binocular Structured Light Stereo Vision. Machines 2022, 10, 159. [Google Scholar] [CrossRef] [Scilit]
  24. Parikh, C.; Ranjan, R.; Khan, A.R.; Jain, R.; Mahto, R.P.; Chakravarty, D.; Pal, S.; Pal, S.K. Volumetric Defect Analysis in Friction Stir Welding Based on Three Dimensional Reconstructed Images. J. Manuf. Process. 2017, 29, 96–112. [Google Scholar] [CrossRef] [Scilit]
  25. Hu, M.; Hu, X.; Zhao, J.; Zhan, H. Weld Seam ROI Detection and Segmentation Method Based on Active–Passive Vision Fusion. Sensors 2025, 25, 7530. [Google Scholar] [CrossRef] [Scilit]
  26. Liu, M.; Bai, X.; Xi, S.; Dong, H.; Li, R.; Zhang, H.; Zhou, X. Detection and Quantitative Evaluation of Surface Defects in Wire and Arc Additive Manufacturing Based on 3D Point Cloud. Virtual Phys. Prototyp. 2024, 19, e2294336. [Google Scholar] [CrossRef] [Scilit]
  27. Fan, D.; Yu, C.; Sha, L.; Zhang, H.; Liu, X. Failure Detection of Laser Welding Seam for Electric Automotive Brake Joints Based on Image Feature Extraction. Machines 2025, 13, 616. [Google Scholar] [CrossRef] [Scilit]
  28. Ma, Y.; Fan, J.; Yang, H.; Yang, L.; Ji, Z.; Jing, F.; Tan, M. A Fast and Robust Seam Tracking Method for Spatial Circular Weld Based on Laser Visual Sensor. IEEE Trans. Instrum. Meas. 2021, 70, 1–11. [Google Scholar] [CrossRef] [Scilit]
  29. Sari, Y.A.; Gofuku, A. Measuring Food Volume from RGB-Depth Image with Point Cloud Conversion Method Using Geometrical Approach and Robust Ellipsoid Fitting Algorithm. J. Food Eng. 2023, 358, 111656. [Google Scholar] [CrossRef] [Scilit]
  30. Chi, P.; Wang, Z.; Liao, H.; Li, T.; Wu, X.; Zhang, Q. A Novel Visual-Based 3-D Reconstruction Method for Underwater Dry Welding Robots. IEEE Trans. Instrum. Meas. 2025, 74, 1–12. [Google Scholar] [CrossRef] [Scilit]
  31. Ripsch, B.; Henkel, K.-M. Approach for the static design of arc-brazed fillet welds from CuAl7 on low-alloyed constructional steel. Materials 2025, 18, 2339. [Google Scholar] [CrossRef] [Scilit]
  32. Wang, J.; Xu, J.; Lu, Y.; Xie, T.; Peng, J.; Chen, J. Z-Increments Online Supervisory System Based on Machine Vision for Laser Solid Forming. Micromachines 2023, 14, 1558. [Google Scholar] [CrossRef] [Scilit]
  33. Shark, L.-K.; Kurekin, A.A.; Matuszewski, B.J. Development and Evaluation of Fast Branch-and-Bound Algorithm for Feature Matching Based on Line Segments. Pattern Recognit. 2007, 40, 1432–1450. [Google Scholar] [CrossRef] [Scilit]
  34. Zhang, Y.; Zhang, C.; Akashi, T. DS-SRI: Diversity Similarity Measure against Scaling, Rotation, and Illumination Change for Robust Template Matching. IET Image Process. 2022, 16, 2738–2751. [Google Scholar] [CrossRef] [Scilit]
  35. Shen, W.; Ding, X.; Liu, C.; Fang, C.; Xiong, B. New Method of Ground Target Recognition Based on Stable Edge Weighted HOG. Procedia Eng. 2015, 99, 1126–1131. [Google Scholar] [CrossRef] [Scilit]
  36. Ouyang, Q.; Lin, Y.; Zhang, X.; Fan, Y.; Yang, W.; Huang, T. Application of 3D Reconstruction Technology Based on an Improved MC Algorithm in a Shotcreting Robot. Appl. Opt. 2022, 61, 8649. [Google Scholar] [CrossRef] [Scilit]
  37. Shi, W.; Xu, J.; Zhu, D.; Zhang, G.; Wang, X.; Li, J.; Zhang, X. RGB-D Semantic Segmentation and Label-Oriented Voxelgrid Fusion for Accurate 3D Semantic Mapping. IEEE Trans. Circuits Syst. Video Technol. 2022, 32, 183–197. [Google Scholar] [CrossRef] [Scilit]
  38. Sanchez, J.; Denis, F.; Coeurjolly, D.; Dupont, F.; Trassoudaine, L.; Checchin, P. Robust Normal Vector Estimation in 3D Point Clouds through Iterative Principal Component Analysis. ISPRS J. Photogramm. Remote Sens. 2020, 163, 18–35. [Google Scholar] [CrossRef] [Scilit]
  39. Baykara, C.; Oral, A. Investigation of Surface Welding Discontinuities in EN AW 5083 HO Aluminum Plates Joined by Robotic GMAW Butt Welding Using Non-Destructive Testing Methods. Mar. Syst. Ocean Technol. 2025, 20, 48. [Google Scholar] [CrossRef] [Scilit]
  40. Machado, J.; Pires, I.; Santos, R. WELDMAP: A Photogrammetric Suite Applied to the Inspection of Welds. Appl. Sci. 2022, 12, 2553. [Google Scholar] [CrossRef] [Scilit]
  41. Tang, W.; Zhu, W. Application of Artificial Intelligence in Predicting Weld Quality and Defects. IEEE Access 2025, 13, 195332–195348. [Google Scholar] [CrossRef] [Scilit]
  42. Biasuz Block, S.; Dutra Da Silva, R.; Eugnio Lazzaretti, A.; Minetto, R. LoHi-WELD: A Novel Industrial Dataset for Weld Defect Detection and Classification, a Deep Learning Study, and Future Perspectives. IEEE Access 2024, 12, 77442–77453. [Google Scholar] [CrossRef] [Scilit]
  43. Madsen, K. A beetter way to specify fillet weld size. Weld. J. 2019, 98, 46–49. [Google Scholar]
  44. Li, X.; Wei, Y.; Lv, Z.; Wang, P.; Li, L.; Sun, M.; Wang, C. High Resolution Weld Semantic Defect Detection Algorithm Based on Integrated Double U Structure. Sci. Rep. 2025, 15, 17849. [Google Scholar] [CrossRef] [Scilit]
  45. Xia, Y.; Jianting, M.; Yi, Z.; Lijun, Z. High Accuracy Image-Based Rotary Encoder With Polar Transformation of DIG. IEEE Sens. J. 2023, 23, 27087–27095. [Google Scholar] [CrossRef] [Scilit]
  46. Zhang, Z.; Lin, L.; Zhi, X. R-PointNet: Robust 3D Object Recognition Network for Real-World Point Clouds Corruption. Appl. Sci. 2024, 14, 3649. [Google Scholar] [CrossRef] [Scilit]
  47. Zhou, Y.; Ji, A.; Zhang, L. Sewer Defect Detection from 3D Point Clouds Using a Transformer-Based Deep Learning Model. Autom. Constr. 2022, 136, 104163. [Google Scholar] [CrossRef] [Scilit]
  48. Dong, Y.; Xie, C.; Xu, L.; Cai, H.; Shen, W.; Tang, H. Generative and Contrastive Combined Support Sample Synthesis Model for Few-/Zero-Shot Surface Defect Recognition. IEEE Trans. Instrum. Meas. 2024, 73, 1–15. [Google Scholar] [CrossRef] [Scilit]
Figure 1. System flow chart.
Figure 1. System flow chart.
Applsci 16 08987 g001
Figure 2. Schematic diagram of similarity measurement: (a) Target sub-image; (b) Template image.
Figure 2. Schematic diagram of similarity measurement: (a) Target sub-image; (b) Template image.
Applsci 16 08987 g002
Figure 3. Template matching algorithm: (a) Select template matching area; (b) Edge extraction; (c) Welding area positioning.
Figure 3. Template matching algorithm: (a) Select template matching area; (b) Edge extraction; (c) Welding area positioning.
Applsci 16 08987 g003
Figure 4. Weld seam height treatment: (a) Original; (b) Radius outlier removal; (c) Voxel down sampling; (d) RANSAC; (e) Normal vector estimation; (f) Height calculation.
Figure 4. Weld seam height treatment: (a) Original; (b) Radius outlier removal; (c) Voxel down sampling; (d) RANSAC; (e) Normal vector estimation; (f) Height calculation.
Applsci 16 08987 g004
Figure 5. Comparison of RANSAC plane fitting under different outlier noises: (a) 300 inliers only; (b) 300 random outliers; (c) 500 random outliers; (d) 700 random outliers.
Figure 5. Comparison of RANSAC plane fitting under different outlier noises: (a) 300 inliers only; (b) 300 random outliers; (c) 500 random outliers; (d) 700 random outliers.
Applsci 16 08987 g005
Figure 6. Normal estimation of weld point cloud: (a) Original noisy weld point cloud containing planar inliers and random outliers; (b) Boundary invalid point pruning with pass-through filtering; (c) Isolated discrete noise elimination; (d) Uniform density simplification result of voxel downsampling; (e) RANSAC-based robust reference plane; (f) Local surface normal vector distribution.
Figure 6. Normal estimation of weld point cloud: (a) Original noisy weld point cloud containing planar inliers and random outliers; (b) Boundary invalid point pruning with pass-through filtering; (c) Isolated discrete noise elimination; (d) Uniform density simplification result of voxel downsampling; (e) RANSAC-based robust reference plane; (f) Local surface normal vector distribution.
Applsci 16 08987 g006
Figure 7. Weld quality categories defined by EN ISO 6520-1: (a) Normal weld; (b) Oxide inclusion (No. 303); (c) Excessive convexity (No. 503); (d) Insufficient throat thickness (No. 5213).
Figure 7. Weld quality categories defined by EN ISO 6520-1: (a) Normal weld; (b) Oxide inclusion (No. 303); (c) Excessive convexity (No. 503); (d) Insufficient throat thickness (No. 5213).
Applsci 16 08987 g007
Figure 8. Schematic diagram of hierarchical extraction.
Figure 8. Schematic diagram of hierarchical extraction.
Applsci 16 08987 g008
Figure 9. Circumferential weld extraction: (a) Height distribution of the annular region; (b) Extraction of welding area.
Figure 9. Circumferential weld extraction: (a) Height distribution of the annular region; (b) Extraction of welding area.
Applsci 16 08987 g009
Figure 10. Decoupling defect discrimination framework.
Figure 10. Decoupling defect discrimination framework.
Applsci 16 08987 g010
Figure 11. 3D morphologies of four weld types visualized from the processed point clouds, with points color-coded by height relative to the RANSAC reference plane: (a) Sound weld; (b) Oxide inclusion (No. 303); (c) Excessive convexity (No. 503); (d) Insufficient throat thickness (No. 5213).
Figure 11. 3D morphologies of four weld types visualized from the processed point clouds, with points color-coded by height relative to the RANSAC reference plane: (a) Sound weld; (b) Oxide inclusion (No. 303); (c) Excessive convexity (No. 503); (d) Insufficient throat thickness (No. 5213).
Applsci 16 08987 g011
Figure 12. Distinguish oxide inclusions based on height distribution: (a) Sound weld point cloud distribution and morphology; (b) oxide inclusion distribution and morphology.
Figure 12. Distinguish oxide inclusions based on height distribution: (a) Sound weld point cloud distribution and morphology; (b) oxide inclusion distribution and morphology.
Applsci 16 08987 g012
Figure 13. Hierarchical defect discrimination: (a) Unfolded normal weld seams; (b) Unfolded excessive convexity extracted with low threshold; (c) Unfolded insufficient throat thickness seams extracted with high threshold.
Figure 13. Hierarchical defect discrimination: (a) Unfolded normal weld seams; (b) Unfolded excessive convexity extracted with low threshold; (c) Unfolded insufficient throat thickness seams extracted with high threshold.
Applsci 16 08987 g013
Table 1. Defect identification of weld seams.
Table 1. Defect identification of weld seams.
Upper Annular Welds SeamLower Annular Welds SeamIntegrated Discrimination
No.Pmax/mmC1C2RTypePmax/mmC1C2RTypeTypeDetection Result
14.9511114.99111.0311-1Yes-Yes
24.89110.9814.93110.9111-1Yes-Yes
34.82111.0214.88110.9211-1Yes-Yes
44.79211.1234.73110.8813-1Yes-Yes
54.79110.9714.79110.9611-1Yes-Yes
364.76111.0214.69110.9011-1Yes-Yes
374.80120.8544.65110.9214-1Yes-Yes
384.79110.9814.92110.9511-1Yes-Yes
464.78110.9614.76110.9511-1Yes-Yes
474.64110.9714.82110.9211-1Yes-Yes
484.74110.9914.90110.9711-1Yes-Yes
494.76220.933,44.71110.9813,4-1Yes-Yes
504.81110.9314.86110.9111-1Yes-Yes
Table 2. Binary classification experiment.
Table 2. Binary classification experiment.
MetricsPrReFβAcFd
Value1.0000.9390.9690.9800.000
Table 3. Multi-class experiment.
Table 3. Multi-class experiment.
TypePrReFβ
Oxide inclusion1.0001.0001.000
Insufficient throat thickness1.0001.0001.000
Excessive convexity1.0000.8820.938
Macro-average1.0000.9610.979
Table 4. Trial-specific detection results for repeatability assessment.
Table 4. Trial-specific detection results for repeatability assessment.
TypeGround TruthTrial 1Trial 2Trial 3MeanStd. Dev.
Oxide inclusion55555.000.00
Excessive convexity1715141514.670.47
Insufficient throat thickness1111111111.000.00
Table 5. Module ablation results on 100 welds.
Table 5. Module ablation results on 100 welds.
Module VariantLoc. Error (px)Time (ms)Height RMSE (mm)TPFNFP
Full pipeline1.2820.0123120
Standard 2 × 2 Canny3.7952854
Unweighted matching2.1882942
Fixed threshold (no early stop)1.42173030
No RANSAC (raw Z)0.0872588
Single height threshold23106
Volume-based discrimination2674
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.

Share and Cite

MDPI and ACS Style

Zhang, J.; Yan, Y.; Wu, S.; Duan, C. Hierarchical Point Cloud Analysis for 3D Defect Detection of Annular Welds. Appl. Sci. 2026, 16, 8987. https://doi.org/10.3390/app16188987

AMA Style

Zhang J, Yan Y, Wu S, Duan C. Hierarchical Point Cloud Analysis for 3D Defect Detection of Annular Welds. Applied Sciences. 2026; 16(18):8987. https://doi.org/10.3390/app16188987

Chicago/Turabian Style

Zhang, Jingyu, Yong Yan, Shuaiyi Wu, and Chuangyu Duan. 2026. "Hierarchical Point Cloud Analysis for 3D Defect Detection of Annular Welds" Applied Sciences 16, no. 18: 8987. https://doi.org/10.3390/app16188987

APA Style

Zhang, J., Yan, Y., Wu, S., & Duan, C. (2026). Hierarchical Point Cloud Analysis for 3D Defect Detection of Annular Welds. Applied Sciences, 16(18), 8987. https://doi.org/10.3390/app16188987

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop