🎓 Lesson 18 D5

Weld Seam Tracking: Edge Detection Strategy Selection Matrix

Weld seam tracking is like teaching a robot to 'see' and follow the line where two metal pieces are joined, so it can weld accurately without human help.

🎯 Learning Objectives

  • Analyze trade-offs between Sobel, Canny, and morphological gradient edge detectors for weld seam images under spatter-noise conditions
  • Design a pre-processing pipeline (filtering, contrast enhancement, ROI selection) tailored to arc-glow interference in GTAW applications
  • Apply a selection matrix to choose the optimal edge detection strategy based on seam geometry, sensor modality, and real-time performance constraints
  • Explain how edge continuity, sub-pixel precision, and computational latency influence tracking stability in high-speed robotic welding

📖 Why This Matters

In robotic welding of mining equipment—like bucket lips, crusher liners, or haul truck frames—millimeter-level seam misalignment causes premature fatigue failure, costly rework, and safety-critical weld defects. Unlike static fixtures, field-repaired components have warped geometry and oxidized surfaces, making traditional teach-and-repeat programming unreliable. Seam tracking with intelligent edge detection enables adaptive, high-integrity welding on unstructured parts—cutting repair downtime by up to 40% in OEM service centers (Caterpillar Global Service Standards, 2023).

📘 Core Principles

Edge detection identifies abrupt intensity changes corresponding to weld groove boundaries. The selection matrix evaluates four dimensions: (1) noise resilience (e.g., Canny’s hysteresis thresholding suppresses spatter artifacts better than Sobel), (2) edge localization accuracy (sub-pixel interpolation methods like Zernike moments improve centroid precision to ±0.15 px), (3) computational load (morphological gradients execute in <1.2 ms on ARM-based vision controllers vs. 8.7 ms for full Canny), and (4) geometric adaptability (curved seams require curvature-aware operators like Gaussian derivative filters). Real-world weld images exhibit non-uniform illumination, specular glare, and intermittent occlusion—requiring detector fusion or context-aware parameter tuning, not one-size-fits-all thresholds.

📐 Edge Detection Robustness Index (EDRI)

EDRI quantifies suitability of an edge detector for a given weld imaging condition. Higher EDRI indicates better balance of precision, recall, and speed. It is computed from empirical test data on representative seam samples and guides matrix-based selection.

Edge Detection Robustness Index (EDRI)

EDRI = (P × wₚ) + (R × wᵣ) − (Lₙ × wₗ)

Weighted metric balancing precision (P), recall (R), and normalized latency penalty (Lₙ) to rank edge detection strategies for real-time seam tracking.

Variables:
SymbolNameUnitDescription
P Precision dimensionless Ratio of correctly detected edge pixels to all detected pixels
R Recall dimensionless Ratio of correctly detected edge pixels to all ground-truth edge pixels
wₚ Precision weight dimensionless User-defined importance factor (typically 0.3–0.5)
wᵣ Recall weight dimensionless User-defined importance factor (typically 0.3–0.5)
Lₙ Normalized latency penalty dimensionless 1 − (actual_latency / max_allowed_latency); max_allowed_latency = 10 ms for 1 m/min welding
wₗ Latency weight dimensionless User-defined penalty factor (typically 0.1–0.3)
Typical Ranges:
GTAW on clean steel: 0.65 – 0.75
SMAW on rusted structural steel: 0.45 – 0.58

💡 Worked Example

Problem: A robotic GTAW cell processes mild steel plate joints (V-groove, 60° included angle) using a coaxial CMOS camera (60 fps, 1280×960). Observed metrics: Sobel achieves 82% edge recall but 64% precision due to spatter false positives; Canny yields 91% precision and 87% recall at 4.3 ms latency; morphological gradient delivers 79% recall, 89% precision, and 0.9 ms latency. Compute EDRI for each using weights: precision (0.4), recall (0.4), latency penalty (0.2, normalized to max latency=1).
1. Step 1: Normalize latency — Sobel: 1.0 (reference), Canny: 4.3/4.3 = 1.0, MorphGrad: 0.9/4.3 ≈ 0.21
2. Step 2: Compute latency penalty = 1 − normalized_latency → Sobel: 0, Canny: 0, MorphGrad: 0.79
3. Step 3: EDRI = (precision × 0.4) + (recall × 0.4) − (latency_penalty × 0.2) → Sobel: (0.64×0.4)+(0.82×0.4)−(0×0.2) = 0.584; Canny: (0.91×0.4)+(0.87×0.4)−(0×0.2) = 0.712; MorphGrad: (0.89×0.4)+(0.79×0.4)−(0.79×0.2) = 0.586
4. Step 4: Compare EDRI values: Canny (0.712) > Sobel (0.584) ≈ MorphGrad (0.586)
Answer: Canny yields the highest EDRI (0.712), confirming its superiority for this GTAW application despite higher latency—justified by critical need for precision in structural welds per AWS D1.1.

🏗️ Real-World Application

Komatsu’s P&H 4100XPC electric rope shovel boom repair line uses a dual-sensor (structured light + thermal IR) seam tracker with adaptive Canny parameterization. When repairing cracked boom hinge plates (ASTM A514 steel), surface oxidation caused inconsistent Sobel responses, increasing torch deviation by 0.8 mm avg. Switching to auto-thresholded Canny—tuned using Otsu’s method on local ROI histograms—reduced mean tracking error to 0.21 mm and eliminated 94% of restarts due to lost seam. System uptime increased from 68% to 92% over six-month validation (Komatsu Internal Report K-PH-WLD-2022-087).

📋 Case Connection

📋 Vision-Guided Palletizing Robot for Mixed-SKU E-Commerce Fulfillment

Unstructured tote input with random part orientation, variable box dimensions, and reflective surfaces causing glare

📋 Vision-Guided Arc Welding Cell for Automotive Chassis Assembly

Thermal distortion-induced seam deviation (>1.8 mm) between stamped aluminum panels; inconsistent joint gap due to fixtu...

📋 3D Vision-Guided Bin-Picking for Aerospace Fastener Kits

Highly reflective titanium fasteners (M3–M8), nested geometry, dense packing, and strict traceability requirements

📋 Vision-Guided Deburring Robot for Cast Aluminum Engine Blocks

Variable burr height (0.1–2.4 mm) and location due to inconsistent casting; complex freeform surfaces limiting fixed-too...

📚 References