Can weld seam defect detection be done with cameras and AI?
Yes, but only for the surface and geometry of the weld: cameras and laser profile sensors can automate weld seam defect detection by measuring missing welds, seam position and length, bead width and height, undercut, surface pores and spatter, but they cannot see inside the weld. Manual inspection varies with lighting, fatigue and shift; automated weld inspection does the measurable part identically on every part and sends doubtful seams to the inspector. It supports visual testing of fusion welds as specified in ISO 17637; where a standard or contract requires acceptance by qualified personnel, that signature stays.
Which weld defects can a camera see, and which can it not?
Cameras and profile sensors see imperfections that are open to the surface and have a measurable shape; lack of fusion, internal porosity, slag inclusions and root defects inside the joint need ultrasonic or radiographic testing. Huang and Kovacevic's paper on a laser-based weld inspection system draws the same line: ultrasonic and radiographic methods for internal defects such as cracks and porosity, vision-based systems for external defects such as undercut and sheet misalignment.
| Imperfection | Sensor | What is measured | Note |
|---|---|---|---|
| Missing or short weld | 2D camera or profile sensor | Presence, start, end, length (mm) | Easiest and often most valuable check |
| Seam offset, misalignment | Profile sensor | Distance to reference edge, step between sheets (mm) | Read with fixture tolerance |
| Bead width and height, excess weld metal, underfill | Profile sensor | Width, height, cross-section, fillet legs (mm) | Penetration is not visible |
| Undercut | High-resolution profile sensor | Groove depth and length (mm) | Resolution follows the limit |
| Surface pores, craters | 2D camera, controlled lighting | Diameter and count | Glare decides small pores |
| Spatter | 2D camera | Count and size in a zone | Limit often set by the customer |
| Burn-through | 2D camera or profile sensor | Presence and size | Common on thin sheet |
| Visible surface crack | High-resolution 2D or 3D | Presence and position | Fine cracks can be missed; confirm with penetrant testing |
| Internal porosity, lack of fusion, inclusions | Not visible | None | Ultrasonic or radiographic testing |
Choosing the NDT method is a separate decision: ISO 17635:2025 gives general rules for selecting NDT methods for welds by quality requirements, material, weld thickness, welding process and extent of testing. The camera does not replace them; it catches surface failures before the expensive steps.
Who sets the acceptance limit: ISO 5817 or the customer?
The limit comes from the quality level on the drawing and the customer's specification; the system only measures each seam against it. Quality levels for imperfections in fusion-welded joints in steel, nickel, titanium and their alloys are given in ISO 5817:2023. Its catalogue page lists three levels, B, C and D, with B the most demanding, covering fully penetrated butt welds and all fillet welds in material 0.5 mm thick and above. Beam welding is excluded; for beam-welded steel the page points to ISO 13919-1. If you laser weld, check which standard your drawing names.
The shared vocabulary for imperfections is ISO 6520-1, which classifies weld imperfections. Take the quality level and customer requirements for every seam, map each imperfection type to a sensor from the table and to a limit in millimetres, and report per imperfection type. A single overall score cannot be compared with a quality level.
Which sensor and method should you choose for weld inspection?
Use laser profile measurement where the limit is in millimetres, a 2D camera with controlled lighting for presence and surface appearance, and treat in-process monitoring as a complementary approach.
- 2D camera: Seam presence, position and length, spatter and surface pores; on shiny, rippled beads diffuse multi-directional lighting gives steadier images.
- Laser profile scanning: The sensor projects a laser line onto the seam and measures each cross-section by triangulation. Keyence's weld bead inspection page describes using this data for undercut volume, bead height, cracks in the bead surface, bead meandering, bead length and spatter, and names optical noise from torch light and irregular reflections as a problem on the shop floor.
- In-process monitoring: Arc current and voltage or a filtered weld camera show on which seam the process drifted, but not the dimensions of the finished bead.
Where the limit is a number, such as undercut depth, rule-based measurement on the profile beats a learned model: the result is in millimetres, compared directly with the limit, and an inspector can repeat it with a weld gauge. Learned models fit imperfections with variable appearance, such as pores and spatter. A study by Örs and Özçelik on DergiPark detects weld defects with a convolutional network trained by transfer learning on 800 images and reports an analysis time of 0.25 seconds. Only a test set from your own parts shows how such a model performs on your line. We compare classification, detection and segmentation in our article on segmentation for defective parts.
How do shiny surfaces, spatter and smoke disturb the measurement?
Glare corrupts the image and laser line, while spatter and smoke foul the sensor window and make readings waver; test these obstacles on real parts before choosing a sensor.
- Shiny and oxidised surfaces: Tune laser power, exposure and angle on real parts, including oxide layers of changing colour.
- Spatter, smoke and heat: Hot air above the bead distorts readings; an air knife and a window cleaning plan belong in the design.
- Part and fixture variation: Find the seam relative to the part edge, not at a fixed coordinate.
- Sensor access: A robot-mounted sensor follows the torch but depends on the robot path; a fixed station is better protected but may not reach inside corners.
- Cycle time: Profile spacing must be smaller than the smallest defect sought; if the scan does not fit the cycle, move the check to a separate station.
How does the result connect to the robot cell, PLC and MES?
Tie every measurement to a part serial number and a seam number, and send the result to the PLC as pass, reject or review.
- Seam ID: Trigger and seam number come from the robot controller, so the result reads "part 4812, seam 3, undercut 0.7 mm", not "part bad".
- Safe state: On sensor failure, a dirty window or a late result, the part does not pass; it goes to review.
- Rework marking: The repair welder sees the failed seam on a screen or label; it is measured again after repair.
- Grey zone: Seams measured within the measurement uncertainty of the limit go to the inspector.
- MES and archive: Measurements, images and profiles are stored by serial number for traceability.
What data and access are needed to start?
You need a seam list, acceptance limits, real parts and a welding engineer, not thousands of labelled images.
- Drawings with quality level, weld type, length and customer requirements per seam.
- Good parts, parts with known imperfections and the inspector's records.
- A reference: weld gauges and, where needed, macro sections.
- A named welding engineer or inspection lead who decides borderline cases.
- Access to robot and PLC signals, time for mounting trials, and the cycle time.
No new robot, procedure change or large labelled dataset is needed for profile checks.
How do you set up a pilot and measure success?
The system runs in shadow mode, and its decisions are compared with visual testing and gauge measurements on the same parts.
- Recall: Of 100 truly defective seams, how many were caught; the rest is the escape rate.
- Precision: Of 100 rejected seams, how many were truly defective.
- False reject rate: Of 100 good seams, how many were wrongly rejected.
- Repeatability: How much readings vary when the same parts are measured again; it sets the grey zone.
- Cycle time: Whether the check fits the cycle, slowest measurements included.
In Huang and Kovacevic's research prototype, errors of up to 0.22 mm in width and 0.55 mm in thickness remained after calibration; those figures belong to that prototype, but they show why uncertainty must be measured on your own set-up. Report results per imperfection type, seam, variant, shift and material batch, not as one average, on a test set not used for tuning. If inspector disagreement is why the project exists, use two independent inspectors plus a gauge as the reference. Set targets from your cost of an escape and a false reject and from today's measured inspection performance. We cover writing the criteria in our article on acceptance tests for a vision pilot.
Hypothetical example: how are escapes and false rejects calculated in a robot welding cell?
The example below is hypothetical; the numbers only illustrate the method. A machinery maker welds a bracket with six fillet welds in a MIG/MAG robot cell; the drawing specifies quality level C. A laser profile sensor goes on the robot and a 2D camera at the cell exit. After shadow mode, two inspectors independently inspect 600 parts (3,600 seams) not used for tuning, gauging borderline seams: 50 seams are nonconforming, 3,550 conform.
| Imperfection type | Nonconforming in reference | Caught by the system |
|---|---|---|
| Missing or short weld | 12 | 12 |
| Undercut | 22 | 20 |
| Leg length or excess weld metal | 10 | 9 |
| Surface pores | 6 | 5 |
| Total | 50 | 46 |
Recall is 46 / 50 = 92%, so the escape rate is 8%. The system rejected 35 of the 3,550 conforming seams: a false reject rate of 35 / 3,550 ≈ 1%. Of the 81 rejected seams, 46 were truly defective: precision ≈ 57%. The shift inspector checking the same parts at normal pace found 41 of the 50 (82%).
The breakdown matters more. Both missed undercuts measured just below the limit, so the grey zone is widened. Of the 35 false rejects, 24 come from spatter on seam 4 next to a clamp; the fix is removing the clamp area from the measurement window, not a new model. Decision: automatic rejection for missing welds and undercut, a warning only for pores at first.
What drives the cost, and what should a quote itemise?
Cost is driven mostly by the number of seams and variants, the required resolution, sensor mounting and integration depth. Tight undercut limits, stainless or galvanised surfaces, several sensor heads, a short cycle, a learned model and per-seam MES records make the job bigger. A quote should list separately:
- Hardware: sensors, lighting, protective windows, brackets, computer.
- Data: reference inspection, gauge measurements, labelling where needed.
- Software: measurement rules, a model where needed, operator and rework screens.
- Integration: robot and PLC signals, reject routing, MES and archive.
- Commissioning: shadow mode, acceptance test, threshold and grey zone tuning.
- Monitoring: calibration checks, window replacement, new variants.
Why do weld inspection projects fail?
Most failures come from wrong expectations and undefined limits, not from the camera:
- Expecting a camera to find internal defects and dropping non-destructive testing.
- Leaving undercut, which has a numeric limit, to a classifier's "looks bad" judgement.
- Starting without written limits per seam.
- Basing the reference on one inspector whose variability is the reason for the project.
- Not testing window contamination and fixture wear in the pilot, and reporting one average.
Off-the-shelf smart sensor or a custom solution?
For uniform seams where only geometry matters, an off-the-shelf smart profile sensor may be enough; when many variants, surface appearance and traceability are needed together, a custom solution is the better fit.
| Situation | Off-the-shelf smart sensor | Custom solution |
|---|---|---|
| Few variants, geometric limits only | Usually enough | May not be needed |
| Different quality level per seam | Recipe management gets hard | Recipes generated from the seam list |
| Geometry plus pores and spatter | Separate devices, separate results | Profile and image in one decision |
| Per-seam MES records and archive | Extra development | Part of the design |
| Learned model for surface appearance | Usually limited | Trained and tested on your data |
At Hatson Tech we build camera and laser profile inspection of weld seams, with PLC and MES integration, as part of our computer vision quality control service. If you would like to review your seam list and acceptance limits together, the first meeting and the discovery study are free.