Weld Seam Defect Detection with Cameras and AI
Business

Weld Seam Defect Detection with Cameras and AI

Use cameras for weld surface and geometry only, measure millimetre limits such as undercut on laser profiles, and keep non-destructive testing for internal defects.

Short answer

Weld seam defect detection with cameras and AI is an automated check that measures the surface and geometry of a weld with cameras and laser profile sensors. It can find missing or short welds, seam offset, bead width and height, undercut, surface pores and spatter, but not internal defects such as lack of fusion or internal porosity, which still need ultrasonic or radiographic testing. Limits come from the quality level on the drawing, for example ISO 5817 level B, C or D, and from the customer's specification.

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.

ImperfectionSensorWhat is measuredNote
Missing or short weld2D camera or profile sensorPresence, start, end, length (mm)Easiest and often most valuable check
Seam offset, misalignmentProfile sensorDistance to reference edge, step between sheets (mm)Read with fixture tolerance
Bead width and height, excess weld metal, underfillProfile sensorWidth, height, cross-section, fillet legs (mm)Penetration is not visible
UndercutHigh-resolution profile sensorGroove depth and length (mm)Resolution follows the limit
Surface pores, craters2D camera, controlled lightingDiameter and countGlare decides small pores
Spatter2D cameraCount and size in a zoneLimit often set by the customer
Burn-through2D camera or profile sensorPresence and sizeCommon on thin sheet
Visible surface crackHigh-resolution 2D or 3DPresence and positionFine cracks can be missed; confirm with penetrant testing
Internal porosity, lack of fusion, inclusionsNot visibleNoneUltrasonic 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 typeNonconforming in referenceCaught by the system
Missing or short weld1212
Undercut2220
Leg length or excess weld metal109
Surface pores65
Total5046

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:

  1. Hardware: sensors, lighting, protective windows, brackets, computer.
  2. Data: reference inspection, gauge measurements, labelling where needed.
  3. Software: measurement rules, a model where needed, operator and rework screens.
  4. Integration: robot and PLC signals, reject routing, MES and archive.
  5. Commissioning: shadow mode, acceptance test, threshold and grey zone tuning.
  6. 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.

SituationOff-the-shelf smart sensorCustom solution
Few variants, geometric limits onlyUsually enoughMay not be needed
Different quality level per seamRecipe management gets hardRecipes generated from the seam list
Geometry plus pores and spatterSeparate devices, separate resultsProfile and image in one decision
Per-seam MES records and archiveExtra developmentPart of the design
Learned model for surface appearanceUsually limitedTrained 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.

Key takeaways

  • Cameras and laser profile sensors see only the weld surface and geometry; lack of fusion and internal porosity still need ultrasonic or radiographic testing.
  • Map every imperfection type to a sensor and to a limit in millimetres taken from the quality level on the drawing, such as ISO 5817 level B, C or D, and from the customer's specification.
  • Measure numeric limits such as undercut depth with rules on laser profiles, and keep learned models for variable surface appearance such as pores and spatter.
  • Tie every result to a part serial and seam number, send pass, reject or review to the PLC, and route seams measured close to the limit to an inspector.
  • Judge the pilot per imperfection type and seam on held-out parts against two independent inspectors and a weld gauge, not on a single average.

Frequently asked questions

Does camera weld inspection replace ultrasonic testing?

No. A camera or laser profile sensor sees only the surface and shape of the bead. Lack of fusion, internal porosity, inclusions and root defects inside the joint need ultrasonic or radiographic testing where your standard or contract requires them. The camera removes parts that already fail on the surface before those tests.

Does automated weld inspection replace the visual inspector?

It takes over the repeatable measurement on every part, not the inspector's judgement. Borderline seams, unclear cases and any acceptance that a standard or contract assigns to qualified personnel stay with the inspector, who now spends time on flagged seams instead of checking every bead.

Do we need a new robot or new cameras for robot weld quality control?

The robot, fixtures and welding procedure stay as they are. Usually a laser profile sensor is added on the robot or at a fixed station, plus a camera with controlled lighting. An existing camera can be reused only if its resolution, angle and lighting are enough for the smallest defect, which has to be tested on real parts.

What does a weld inspection system cost?

There is no meaningful figure without the scope. Cost depends on the number of seams and variants, the resolution needed for limits such as undercut, surface type, sensor mounting, cycle time, whether a learned model is needed and how deep the PLC and MES integration goes. A quote should itemise hardware, data, software, integration, commissioning and monitoring.

Does ISO 5817 apply to laser welds?

According to its catalogue page, ISO 5817 excludes beam welding, and quality levels for beam-welded joints in steel are given in ISO 13919-1. Check which standard and quality level your drawing or customer specification actually names before you write the inspection limits.

How long does a weld inspection pilot take?

It depends mainly on how quickly enough nonconforming seams of each type occur on the line, how many part variants and shifts must be covered, and how fast reference inspection can be done. Rare defects stretch the pilot; deliberately produced test parts can shorten the tuning phase but do not replace production data.

All articles