Method for extracting molten pool features based on three-frame symmetric encoding difference and confidence timing profile
By employing a three-frame symmetric coding differential and confidence timing profile method, the problems of arc interference and motion misalignment in robotic welding are solved, enabling accurate extraction and stable definition of molten pool parameters, which is applicable to multi-pose welding scenarios.
Patent Information
- Application Number
- CN202611459481.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-20
- Publication Date
- 2026-11-27
AI Technical Summary
Existing visual monitoring solutions for robotic welding cannot effectively suppress arc light interference, adapt to robot motion misalignment and image noise, resulting in discontinuous extraction of molten pool contours, unstable parameter definitions due to changes in welding direction, and amplification of noise by ordinary inter-frame differential.
The method of three-frame symmetric coding difference and confidence temporal contour is adopted. By aligning the robot motion state with the image acquisition time, three frames of images are acquired using an auxiliary light source and a camera. Image registration and residual correction are performed to generate a pixel confidence field, extract the closed contour of the molten pool, and calculate the molten pool parameters in the dynamic welding coordinate system.
It reduces measurement errors caused by non-periodic arc light and robot motion misalignment, achieves accurate extraction and stable definition of molten pool parameters, adapts to different welding processes, and outputs highly reliable molten pool characteristic data.
Smart Images

Figure CN123181516A_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of visual monitoring and image processing in robotic welding. Specifically, it relates to a method for extracting molten pool features based on three-frame symmetric coding differential and confidence temporal contour. More specifically, it relates to a method that integrates robot motion state with single-camera three-frame symmetric coding auxiliary lighting to suppress non-periodic arc light and robot motion misalignment, and to extract molten pool width, molten pool projected area, molten pool tail length and molten pool area change rate in real time. Background Technology
[0002] Industrial robot welding is widely used in continuous, curved, and multi-pose welding scenarios in fields such as automobiles, construction machinery, rail transportation, and steel structures. It is compatible with various arc heat sources, including consumable electrodes and non-consumable electrodes, and is not limited by shielding gas, filler materials, or welding power source type. The molten pool morphology parameters (width, projected area, tail length, and area change rate) can intuitively reflect the welding heat input, molten pool state, and welding stability, and are the core data basis for online quality inspection, process adjustment, and trajectory closed-loop control of robotic arc welding.
[0003] Robotic welding operations are characterized by strong non-steady-state features: robot trajectory deviations, structural vibrations, and end-effector load fluctuations cause welding torch position jitter, welding speed and torch posture continuously change, and there are timing discrepancies between equipment control and image acquisition cycles. Simultaneously, strong arc light during welding can easily cause image saturation, and welding torch structural obstruction, welding fumes, and high-speed spatter can lead to low image contrast, false contours, and noise. Traditional fixed exposure parameters and threshold segmentation methods are unsuitable for complex dynamic conditions and struggle to accurately extract the complete molten pool contour.
[0004] Existing visual monitoring solutions have many shortcomings: relying on filters and auxiliary light sources cannot completely eliminate arc light interference; dual-frame difference algorithms are easily affected by arc light fluctuations, equipment displacement, and splashes, resulting in residual noise and ghosting; gun-mounted and fixed-position camera imaging has dynamic misalignment problems, and simply relying on image registration or fixed motion models cannot accurately compensate for imaging deviations. Summary of the Invention
[0005] The main objective of this invention is to provide a method for extracting molten pool features based on three-frame symmetric coding difference and confidence temporal contour, in order to solve the problems of existing methods not fully utilizing robot motion state, inconsistent controller and camera time reference, strong arc light and non-periodic brightness changes, welding torch component obstruction, smoke and spatter causing discontinuity in molten pool contour, welding direction changes causing unstable width and trailing length definitions, and ordinary inter-frame area difference easily amplifying contour noise.
[0006] To achieve the above objectives, the present invention provides the following technical solution: In a first aspect, the present invention provides a melt pool feature extraction method based on three-frame symmetric coding difference and confidence temporal contour, the method comprising the following steps: S1. Obtain camera calibration parameters and coordinate transformation parameters between the robot base coordinate system, welding torch tool coordinate system, camera coordinate system and workpiece reference plane; obtain robot motion state with controller timestamp from the robot controller of the industrial robot, the robot motion state including at least the welding torch tool center point pose and robot motion trajectory, and align the controller timestamp with the image acquisition timestamp; S2. Control the auxiliary light source to work according to the coded acquisition cycle consisting of reference state, measurement state, and reference state, and acquire the first reference image with the auxiliary light source in the off state, the measurement image with the auxiliary light source in the on state, and the second reference image with the auxiliary light source in the off state by the same camera in sequence. S3. Using the measured image as a time reference, predict the spatial transformation of the first reference image and the second reference image relative to the measured image based on the robot's motion state at the corresponding exposure time of the three images. Combine image features or dense motion information to perform residual correction on the spatial transformation. Register the first reference image and the second reference image to the coordinate space of the measured image. Perform time interpolation on the registered first reference image and the second reference image according to the acquisition time of the three images to obtain the arc background estimation image at the acquisition time of the corresponding measured image. S4. Perform camera response linearization and radiometric normalization on the measured image and the arc background estimation image. Difference the normalized measured image with the arc background estimation image to obtain the molten pool reflection enhancement image. Generate a pixel confidence field based on the image exposure saturation, differential signal-to-noise ratio, local edge response, inter-frame consistency, registration residual, and interference region detection results. S5. Extract the visible molten pool boundary of the current frame in the region where the pixel confidence is higher than the first threshold, and generate the predicted contour of the current frame based on the previous molten pool contour, robot motion state and contour motion state; retain the high confidence boundary segment in the visible molten pool boundary of the current frame, and perform local restoration on the boundary segment with confidence lower than the second threshold or occluded based on the predicted contour, the visible molten pool boundary of the current frame, the contour smoothness and the contour size change range, to obtain the closed contour of the molten pool of the current frame. S6. Based on the welding torch TCP pose at the corresponding measurement image acquisition time, the intersection of the welding torch tool axis and the workpiece reference plane is determined as the estimated value of the arc action point. The estimated value of the arc action point is then visually corrected based on the position of the center of the arc action area or the leading edge of the molten pool in the image. The welding direction is determined based on the local tangent of the robot's actual TCP trajectory, robot program trajectory, or weld trajectory at the current moment. A dynamic welding coordinate system is established with the arc action point as the origin, the welding direction as the longitudinal axis, and the direction perpendicular to the welding direction in the workpiece reference plane as the transverse axis. S7. Map the closed contour of the molten pool to the workpiece reference plane, calculate the width of the molten pool, the projected area of the molten pool and the tail length of the molten pool in the dynamic welding coordinate system, and calculate the rate of change of the molten pool area by confidence-weighted regression based on the projected area of the molten pool, the acquisition time and the contour confidence of multiple consecutive frames including the current frame. S8. Outputs molten pool feature data including molten pool width, molten pool projected area, molten pool tail length, molten pool area change rate, and corresponding feature confidence level.
[0007] In one embodiment, the auxiliary light source is a near-infrared narrowband surface light source, a dot matrix light source, or a line light source; a narrowband filter matching the center wavelength of the auxiliary light source is provided in front of the camera, and polarization elements with the same or orthogonal polarization directions are respectively provided on the light-emitting side of the auxiliary light source and the light-incoming side of the camera; the camera and the auxiliary light source are triggered by the same synchronous controller, so that the stable light emission range of the auxiliary light source is located within the effective exposure range of the corresponding measurement image.
[0008] In one embodiment, the camera is fixedly mounted on the end effector of an industrial robot and moves with the welding torch, or fixedly mounted on a robot workstation and remains stationary relative to the workpiece. When the camera is mounted on the end effector of an industrial robot, the transformation relationship between the camera coordinate system and the robot end effector coordinate system is obtained through hand-eye calibration. When the camera is fixedly mounted on a robot workstation, the transformation relationship between the camera coordinate system and the robot base coordinate system or the workpiece coordinate system is obtained through external camera calibration.
[0009] In one implementation, an encoding acquisition cycle sequentially includes a first reference exposure, a measurement exposure, and a second reference exposure. The auxiliary light sources for the first and second reference exposures are turned off, while the auxiliary light source for the measurement exposure is turned on. Adjacent encoding acquisition cycles share a reference image, or each encoding acquisition cycle acquires two reference images. The robot motion state is interpolated to each exposure time through hardware trigger signals, time offset calibration of the robot controller clock and the image acquisition clock, or timestamp interpolation. The time interpolation weight is determined based on the time distance between the measurement image acquisition time and the acquisition times of the two reference images.
[0010] In one implementation, in step S3, the initial spatial transformation of the first and second reference images pointing to the measurement image is calculated based on the welding torch TCP pose at the three exposure times, the camera mounting method, and the coordinate transformation parameters. The residual transformation is estimated using at least one of the following image information: workpiece surface texture features, solidified weld edge, welding torch outer contour, arc action area center, dense optical flow of the molten pool candidate area, and motion model of the preceding frame. Saturated arc light areas, spatter areas, and low-contrast fume areas are excluded when estimating the residual transformation. The measurement image after response linearization and exposure normalization is assumed to be... The registered first and second reference images are respectively and Then the arc background estimation image at the measurement time Represented as: ; in, To measure the pixel position in an image, and These are the spatial transformations from the first reference image and the second reference image to the measurement image, respectively. and The time interpolation weights are determined based on the acquisition time and sum to 1. This refers to the local or global radiation scaling factor determined based on the brightness variation of the reference area; The enhanced image of the molten pool reflection is represented as follows: ; in, To the equivalent luminous power of the auxiliary light source, To measure exposure time, To prevent positive numbers with a denominator of zero.
[0011] In one implementation, the confidence level at a pixel location is determined based on an inter-frame consistency factor, a differential signal-to-noise ratio factor, and an edge response factor, while an unsaturation factor, a registration confidence factor, and an interference suppression factor are optional additional factors. The inter-frame consistency factor is determined based on the difference between the current local response and the historical response compensated for by robot motion. The registration confidence factor is determined based on the reprojection error between the robot arm motion prediction and the image residual registration. The differential signal-to-noise ratio factor is determined based on the ratio of the local difference mean to the background noise. The edge response factor is determined based on the gradient magnitude and directional continuity of the weld pool reflection enhancement image. The unsaturation factor decreases as the measured image or reference image approaches a saturation value, and the interference suppression factor decreases in the welding torch assembly shading area, the spatter area, or the low-contrast fume area.
[0012] Furthermore, the occlusion area of the welding torch assembly includes the projection area of the welding torch nozzle, conductive tip, welding wire, electrode, or local structure of the robot end in the image, and is predicted based on the welding torch TCP pose and the geometric model of the welding torch assembly, or detected based on the structural edges, width continuity, and connection relationship with the arc action area in the image; the spatter area is determined based on the area of connected components, roundness, brightness variation, and inter-frame motion speed; the low-contrast fume area is determined based on the degree of local contrast reduction, texture attenuation, and continuous frame drift characteristics; pixels judged as interference areas are not directly deleted, but their corresponding pixel confidence is reduced.
[0013] In one implementation, the closed contour of the current frame melt pool is obtained by minimizing a confidence-weighted contour objective function, which includes at least a current image consistency term, a temporal prediction consistency term, and a contour smoothness term. In high-confidence regions, the weight of the current image consistency term is increased and the weight of the temporal prediction consistency term is decreased; in low-confidence regions, the weight of the current image consistency term is decreased and the weight of the temporal prediction consistency term is increased, so that the high-confidence boundary segments remain at the actual observation positions of the current frame, and only the low-confidence or missing boundary segments are restored locally under prediction constraints.
[0014] In one implementation, the welding torch tool axis is obtained based on the welding torch TCP position and welding torch posture fed back by the robotic arm controller, and the intersection point between the welding torch tool axis and the calibrated workpiece reference plane is calculated to obtain an estimated value of the arc application point. When the center of the arc application area or the leading edge of the molten pool in the image has a visual confidence level higher than a preset threshold, the estimated value of the arc application point is corrected using the center of the arc application area or the leading edge of the molten pool. When the robot's motion state or visual observation is invalid, the current arc application point is predicted based on the position, velocity, and direction of the previous arc application point. The welding direction is obtained based on at least one of the robot's actual TCP trajectory, robot program trajectory, weld trajectory, or multiple previous arc application point trajectories, through local tangential calculation, confidence-weighted fitting, principal component analysis, or robust local trajectory fitting.
[0015] In one embodiment, after mapping the closed contour of the molten pool onto the workpiece plane, the molten pool area is scanned along the longitudinal axis of the dynamic welding coordinate system, and the cross-sectional length of the molten pool area in the transverse axis direction at each longitudinal position is calculated. The maximum cross-sectional length after removing low-confidence abnormal cross-sections or the preset high-quantile cross-sectional length is determined as the molten pool width. The distance between the arc application point and the farthest projection point of the molten pool contour in the opposite direction of the welding direction is determined as the molten pool tail length.
[0016] The projected area of the molten pool is obtained by performing polygon integration or region integration on the closed contour mapped to the workpiece plane; for the projected area of the molten pool in the kth frame within the sliding time window... Collection time and frame-level profile credibility Area change rate Represented as: ; in, and These are the confidence-weighted average acquisition time and the average melt pool projection area, respectively; the frame-level contour confidence is determined based on at least two of the following: the effective high-confidence boundary length ratio, the average boundary confidence, the contour closure residual, and the contour prediction repair ratio.
[0017] In one implementation, at least one of the following is adjusted in a closed loop based on at least two of the following: the saturated pixel ratio of the measured image, the signal-to-noise ratio of the fused pool reflection-enhanced image, the effective high-confidence boundary length ratio, and the registration residual: the camera exposure time, the auxiliary light source luminous power, the auxiliary light source pulse width, and the image acquisition frequency for the next encoding acquisition cycle. When the saturated pixel ratio exceeds the upper limit, the exposure time is shortened first. When the differential signal-to-noise ratio is below the lower limit and the saturated pixel ratio does not exceed the upper limit, the auxiliary light source luminous power or pulse width is increased. When the registration residual exceeds the threshold, the time interval between adjacent exposures in the same encoding acquisition cycle is shortened.
[0018] The upper limit of the saturated pixel ratio is 3% to 10%, and the lower limit of the differential signal-to-noise ratio is 6 dB to 12 dB. When the saturated pixel ratio exceeds its upper limit, the camera exposure time is shortened first. When the differential signal-to-noise ratio is lower than its lower limit and the saturated pixel ratio does not exceed its upper limit, the luminous power of the auxiliary light source is increased or the pulse width of the auxiliary light source is extended.
[0019] In one implementation, when the frame-level contour confidence is lower than a preset threshold, the robotic arm motion state is missing, or the alignment residual between the robotic arm controller timestamp and the image acquisition timestamp exceeds a preset threshold, at least one of the following degradation processes is performed: freezing the current image update of the low-confidence boundary segment; outputting the molten pool feature with low-confidence markers using historical contour prediction values; extending the regression time window of the area change rate; maintaining the dynamic welding coordinate system according to the robotic arm program trajectory or the trajectory of the previous arc point; maintaining the previous effective robotic arm motion state; and not using the current low-confidence feature for the reverse adjustment of auxiliary light source and exposure parameters.
[0020] In one implementation, in step S5, the first threshold is 0.5 to 0.8, the second threshold is 0.2 to 0.5, and the first threshold is greater than the second threshold; in step S7, the sliding window contains 5 to 31 consecutive frames, and is adaptively adjusted according to the current melting pool area change rate and the frame-level contour confidence level—when the area change rate exceeds a preset speed threshold and the frame-level contour confidence level is higher than a preset confidence level threshold, the window is shortened; when the contour noise or the proportion of locally occluded frames exceeds a preset proportion, the window is extended.
[0021] In a second aspect, the present invention provides an industrial robot arc welding molten pool feature extraction system, characterized in that it includes an industrial robot, a robot controller, a robot end effector equipped with a welding torch, a single camera, a narrowband auxiliary light source, a filter assembly, a synchronization controller, and a real-time image processing unit. The single camera is fixedly mounted on the end of the robot and moves with the welding torch, or it is fixedly mounted on the robot workstation and remains stationary relative to the workpiece. The synchronization controller is used to trigger the single camera and the narrowband auxiliary light source, so that the narrowband auxiliary light source works according to the coded acquisition cycle composed of reference state, measurement state, and reference state, and the single camera sequentially acquires the first reference image, the measurement image, and the second reference image. The real-time image processing unit is configured to execute the melt pool feature extraction method based on three-frame symmetric coding difference and confidence temporal contour as described in the first aspect, and output the melt pool features and the corresponding feature confidence.
[0022] In summary, compared with the prior art, the above-described technical solutions conceived by this invention can achieve the following beneficial effects: (1) The present invention adopts three-frame symmetrical coding of reference state, measurement state and reference state, and uses reference images located on both sides of the measurement time to estimate the arc background at the measurement time. Compared with single reference frame difference, it can reduce the background estimation deviation caused by the non-periodic arc brightness change of welding.
[0023] (2) The present invention aligns the robot controller state with the image acquisition time, and uses the robot motion prediction as the initial value for the registration of the reference images before and after, and then corrects it through image residual registration, which can reduce the differential ghosting caused by robot end motion, camera motion, heat source motion and local workpiece texture misalignment.
[0024] (3) The present invention integrates pixel credibility throughout arc suppression, boundary extraction, boundary restoration, area change rate calculation and feature output, and has a clear observation quality transfer mechanism, rather than processing all pixels and all frames equally.
[0025] (4) The present invention retains the high-confidence true boundary of the current frame and performs temporal constraint recovery only on the low-confidence and occluded boundary segments, which can take into account both the response capability of current shape change and the continuity of contour.
[0026] (5) The present invention uses the welding torch TCP pose, robot motion trajectory and visual arc center to establish a dynamic welding coordinate system, which can uniformly define the molten pool width and molten pool trailing length when the welding direction changes, and correct the perspective error caused by tilted observation through workpiece plane mapping.
[0027] (6) The present invention uses contour confidence weighted sliding window regression to calculate the area change rate, which can suppress the amplification of single-frame contour jitter by ordinary adjacent frame difference.
[0028] (7) The present invention reads the pose, trajectory and timestamp information provided by the robot controller itself, without the need to collect welding current or voltage signals, and does not limit the specific robot arc welding process such as consumable electrode or non-consumable electrode.
[0029] (8) The present invention sets up closed-loop imaging control and low-confidence degradation strategy. When exposure saturation, differential signal-to-noise ratio is insufficient, boundary observation is insufficient, robot state is missing or clock alignment is abnormal, the acquisition conditions can be adjusted or low-confidence markers can be output to reduce the risk that erroneous features will be used as valid measurement results by robot controller or quality monitoring system. Attached Figure Description
[0030] Figure 1 This is a flowchart illustrating the overall process of a real-time extraction method for molten pool features according to an embodiment of the present invention. Figure 2 This is a schematic diagram of the system structure according to an embodiment of the present invention; Figure 3 This is a schematic diagram of the symmetrical encoding and exposure timing of three frames in the reference state, measurement state, and reference state according to an embodiment of the present invention; Figure 4 This is an original measurement diagram of the molten pool according to an embodiment of the present invention; Figure 5 This is a molten pool reflection enhancement diagram according to an embodiment of the present invention; Figure 6 This is a graph showing the pixel reliability distribution of the molten pool according to an embodiment of the present invention. Figure 7 This is a closed contour diagram of the molten pool after recovery according to an embodiment of the present invention; Figure 8 This is a schematic diagram defining the molten pool width, molten pool projected area, and molten pool tail length according to an embodiment of the present invention; Figure 9 This is a flowchart of confidence-weighted area change rate calculation and closed-loop imaging control according to an embodiment of the present invention. Detailed Implementation
[0031] The present invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the described embodiments are for explaining the present invention and are not intended to limit the present invention. Technical features of different embodiments in this specification can be combined with each other as long as no technical conflict occurs. The molten pool area referred to in the present invention refers to the projected area of the molten pool on the workpiece reference plane, without considering the area of the three-dimensional curved surface of the molten pool surface.
[0032] This invention provides a method for extracting molten pool features based on three-frame symmetric coding differential and confidence temporal contours. The method calibrates the mapping relationship between the robot base coordinate system, welding torch tool coordinate system, camera coordinate system, and workpiece reference plane; acquires the robot's TCP pose and motion trajectory with timestamps, and aligns them with the image acquisition time; controls a narrowband auxiliary light source to operate periodically in reference state, measurement state, and reference state; and acquires a first reference image, a measurement image, and a second reference image using the same camera. Based on the robot's motion state at the three exposure times, the inter-frame spatial transformation is predicted, and the arc background estimate at the measurement time is obtained by combining image residual registration and time-weighted interpolation; the molten pool reflection enhancement image is obtained through response linearization and radiation normalization differential. A pixel confidence field is established by comprehensively considering exposure saturation, differential signal-to-noise ratio, edge response, inter-frame consistency, registration residual, and interference detection results. High-confidence current boundaries are retained, and temporal recovery is performed only on low-confidence or missing boundary segments to form a closed molten pool contour. The arc application point is estimated by the intersection of the welding torch tool axis and the workpiece reference plane, and corrected using the visual arc center. A dynamic welding coordinate system is established based on the local tangent of the TCP trajectory. The weld pool width, projected area, tail length, and area change rate are calculated on the workpiece plane, and then the feature vector and its reliability are output. This invention is applicable to welding with different industrial robots, and can reduce measurement errors caused by non-periodic arc light, robot motion misalignment, and local occlusion, without the need to collect welding current or voltage signals.
[0033] like Figure 1 As shown, the melt pool feature extraction method based on three-frame symmetric coding difference and confidence temporal profile of the present invention includes: S1. Calibrate the camera's internal parameters and lens distortion parameters, and establish the coordinate transformation relationship between the robot's base coordinate system, the welding torch tool coordinate system, the camera coordinate system, and the workpiece reference plane; acquire the welding torch TCP pose and robot motion trajectory with controller timestamps, and align them with the image acquisition timestamps.
[0034] S2. Control the auxiliary light source to work according to the three-frame symmetrical encoding cycle consisting of reference state, measurement state, and reference state, synchronously acquire the first reference image, measurement image, and second reference image, and record the robot motion state corresponding to each exposure moment.
[0035] S3. Predict the inter-frame spatial transformation based on the robot's motion state at the three exposure times, correct the spatial transformation by image residual registration, and register the first reference image and the second reference image to the measurement image time respectively; perform spatiotemporal interpolation based on the acquisition time and local brightness changes to estimate the arc background at the measurement time, and obtain the molten pool reflection enhancement image by radiation normalization difference.
[0036] S4. Identify low-contrast areas such as saturated arc light, welding torch component obstruction, spatter, and smoke, and construct a pixel confidence field based on differential signal-to-noise ratio, edge response, inter-frame consistency, non-saturation factor, registration confidence factor, and interference suppression factor.
[0037] S5. Extract the real visible boundary of the current frame in the high confidence region, predict the position of the current contour based on the historical contour and the robot's motion state, and use the confidence level to control the relative weight of the current image constraint and the temporal prediction constraint. Only low confidence or missing boundary segments are restored to obtain the closed contour of the melt pool.
[0038] S6. Determine the welding torch tool axis based on the welding torch TCP pose, estimate the arc application point by the intersection of the welding torch tool axis and the workpiece reference plane, and correct it using the visual arc center or the leading edge of the molten pool; determine the welding direction based on the local tangent of the robot's actual TCP trajectory, program trajectory, or weld trajectory, and establish a dynamic welding coordinate system that is updated with the robot's welding motion.
[0039] S7. Map the closed contour of the molten pool to the workpiece plane, calculate the width of the molten pool, the projected area of the molten pool, and the tail length of the molten pool in the dynamic welding coordinate system, and calculate the rate of change of the molten pool area through confidence-weighted sliding window regression.
[0040] S8. Adjust camera exposure, auxiliary light power, or encoding period based on saturated pixel ratio, differential signal-to-noise ratio, effective boundary ratio, and registration residual; output four molten pool features and their reliability to the robot controller, welding controller, or welding quality monitoring system, and perform degradation processing when image observation or robot status is insufficient.
[0041] Furthermore, in step S2, the first and second reference images are located on opposite sides of the time frame of the measurement image. Compared to using only one reference image, this invention estimates the background radiation at the exposure time of the measurement image based on the arc state of the two reference images before and after the measurement time, enabling the zero-order and first-order variation components of the aperiodic arc to be compensated simultaneously over a short period of time.
[0042] Furthermore, the first and second reference images are used in arc background estimation after registration. The registration first predicts the spatial transformation based on the robot's motion state, camera installation method, and coordinate transformation relationship at each exposure time, and then estimates the residual transformation using workpiece texture, weld edge, welding torch outer contour, and local optical flow, so that the welding torch assembly, arc action area, and local texture in the two reference images correspond to the measurement images at different times, avoiding the formation of double edges in the differential image due to robot motion and heat source motion.
[0043] Furthermore, this invention does not directly delete low-confidence or interfering pixels as background, but rather reduces their confidence level. Confidence level is used simultaneously for contour extraction, contour restoration, area change rate regression, and final feature output, ensuring consistent image observation quality throughout the entire processing chain.
[0044] Furthermore, the melt pool contour recovery adopts a local update method. High-confidence boundary segments are determined by the current frame observation and are not replaced by historical predicted contours; low-confidence boundary segments are constrained by historical contour predictions, adjacent high-confidence boundary endpoints, contour curvature, and size variation range, thereby reducing over-smoothing of the current true shape changes.
[0045] Furthermore, the dynamic welding coordinate system takes the visually corrected arc point as the origin and the local tangent of the robot's actual TCP trajectory, program trajectory, or weld trajectory as the longitudinal axis, so that the tail length represents the longitudinal distance from the heat source position to the tail end of the molten pool, rather than the total length of the molten pool; the transverse axis is always perpendicular to the local welding direction, so that the width of the molten pool under different operating directions has a unified physical meaning.
[0046] Furthermore, the area change rate is not obtained by directly subtracting the areas of two adjacent frames, but by weighted regression of time and area of multiple consecutive frames, and frames with higher contour observation quality are given greater weight, thereby reducing the amplification effect of boundary jitter, local occlusion and occasional splashes on the area change rate.
[0047] Based on the above, this invention proposes a novel method for extracting molten pool features. It eliminates the need to collect welding current and voltage signals, achieving precise temporal alignment between robot motion data and image acquisition, accurately estimating the real-time arc background; distinguishing between effective and missing / low-confidence boundary segments of the molten pool; and dynamically adjusting the measurement benchmark according to the welding direction to accurately calculate the true two-dimensional geometric dimensions of the molten pool. This method is compatible with all types of arc welding processes and both gun-mounted and fixed-station camera installation methods. It can output reliable and interpretable measurement data, maintains real-time computing performance, and can degrade to stable operation even when image quality is poor or equipment data is abnormal.
[0048] like Figure 1 As shown, this invention includes multi-coordinate system calibration, robot state and image time alignment, three-frame symmetrical encoding acquisition, robot motion-assisted registration, arc background estimation, normalized difference, confidence generation, local contour restoration, dynamic welding coordinate system establishment, four feature calculations, and closed-loop imaging control. Its core is: using the robot's motion state to predict the spatial changes between three exposures, combining dual-reference observations before and after the measurement frame to estimate the aperiodic arc background at the measurement time; then using observation confidence to distinguish the current true boundary from the boundary requiring time-series restoration; finally, establishing a dynamic welding coordinate system based on the welding torch TCP pose and robot trajectory, and completing unified measurement in the workpiece reference plane.
[0049] In an implementable system, such as Figure 2 As shown, an industrial robot carries a welding torch to perform arc welding. The robot controller provides the real-time image processing unit with at least one of the following: welding torch TCP position, attitude, actual trajectory, program trajectory, and controller timestamp. The camera is a global shutter industrial camera or a high-speed camera, with a frame rate set from 500 frames / second to 1000 frames / second. The auxiliary light source uses a near-infrared light source with a center wavelength of 808 nm, 850 nm, 940 nm, or other suitable for narrowband filtering. The full width at half maximum (FWHM) of the narrowband filter can be set from 5 nm to 30 nm. The viewing angle of the camera relative to the workpiece reference plane can be set from 20° to 70°. The camera can be fixed to the robot end effector and move with the welding torch, or it can be fixed to the robot workstation and remain stationary relative to the workpiece. The auxiliary light source preferably uses pulse drive to ensure that the measurement exposure is within a stable optical power range. The above parameters are only feasible examples and can be adjusted according to the robot's operating speed, welding process, camera dynamic range, lens focal length, and working distance.
[0050] The specific process is as follows: S1. Establish coordinate mapping between the robot, camera, and workpiece and align the time reference.
[0051] Establish the robot base coordinate system, robot end effector coordinate system, welding torch tool coordinate system, camera coordinate system, and workpiece coordinate system. Obtain the transformation relationship from the robot end effector to the welding torch tool coordinate system through robot TCP calibration. When the camera is fixed to the robot end effector, obtain the transformation relationship between the camera coordinate system and the robot end effector coordinate system through hand-eye calibration. When the camera is fixed to the robot workstation, obtain the transformation relationship between the camera coordinate system and the robot base coordinate system or the workpiece coordinate system through external camera calibration. Before welding, place the planar calibration plate on the plane of the workpiece to be welded area, obtain multiple calibration points with known dimensions, and calculate the camera's internal parameters, lens distortion parameters, and planar homography matrix H. For image points after lens distortion removal... The corresponding homogeneous coordinates of the workpiece plane are: ; right Homogeneous normalization is performed to obtain the workpiece plane coordinates expressed in millimeters. .
[0052] A mapping between the controller timestamp and the image acquisition timestamp is established through hardware synchronization pulses, precise time protocols, offset calibration of the controller clock and the acquisition clock, or common event time synchronization. For exposure moments located between adjacent control cycles, linear or spline interpolation is performed on the TCP position, and quaternion spherical interpolation or equivalent attitude interpolation is performed on the welding torch attitude. This step ensures that subsequent robot motion compensation and workpiece plane measurement use the same time reference. For non-planar workpieces, a tangent plane can be established in the local welding area, or a segmented plane mapping can be established based on the workpiece geometry model.
[0053] S2. Obtain three frames of symmetrically encoded images.
[0054] like Figure 3 As shown, the first reference image is acquired sequentially during the t-th measurement period. Measurement images Second reference image The auxiliary light source is off when the first and second reference images are exposed, and on when the measurement image is exposed. The acquisition times of the three images satisfy the following: Preferred and The time intervals are equal or close to each other to allow for symmetrical interpolation; when the time intervals on both sides are not equal, the interpolation weights are calculated based on the actual time distance. For continuous operation, a sequence of "off, on, off, on, off" can be used to allow adjacent measurement cycles to share an intermediate reference image, thus continuously outputting features without increasing the reference frame ratio.
[0055] In another embodiment, two different auxiliary light powers can be used as the reference state and the measurement state, as long as the auxiliary illumination reflection component can be separated based on the known difference in light power. To reduce arc saturation, a narrowband filter and a neutral density filter can be placed in front of the camera; to reduce specular reflection from non-target surfaces, a combination of parallel polarization or cross polarization can be set on the light-emitting side of the light source and the light-incident side of the camera.
[0056] S3. Generate the arc background at the measurement time and obtain the enhanced image of the molten pool reflection.
[0057] First, dark field correction, bad pixel repair, and camera response linearization are performed on the three images. Then, radiometric normalization is performed based on the exposure time of each frame and the analog or digital gain. Let the processed image be... , and .
[0058] Estimate the spatial transformation from the two reference images to the measurement images at different times. and When the camera is mounted on the robot's end effector, the initial planar transformation at the moment the reference image points to the measurement image is calculated based on the robot's pose at three exposure times, hand-eye calibration relationship, camera intrinsic parameters, and workpiece reference plane. When the camera is fixed to the workstation, the local initial displacements of the welding torch assembly, arc action area, and molten pool candidate area are predicted based on the welding torch TCP pose change, while the initial transformation of the workpiece background is close to a unit transformation. Subsequently, saturated arc light, spatter, low-contrast areas of smoke and dust, and areas of auxiliary light intensity reflection are excluded. In the remaining effective area, feature points are extracted and matched using the base material texture and the edge of the solidified weld. A random sampling consensus algorithm is used to eliminate incorrect matches and fit the residual affine transformation. Then, pyramid optical flow is used to estimate the local residual displacement field in the outer contour of the welding torch, the periphery of the arc action area, and the molten pool candidate area. The robot motion prediction and the residual transformation are combined to form the spatial transformation. The inverse sampling mapping is defined as: ; in, To measure the location of target pixels in an image, This represents the sampling position of the target pixel in the corresponding reference image; non-integer positions are interpolated using bilinear interpolation. When the camera and workpiece are fixed, Approximate unit transformation, It primarily compensates for localized movement of the welding wire and the candidate area of the molten pool; when the camera vibrates slightly, It also compensates for the translation and rotation of the entire image. It is a pixel The local displacement vector at the location. The registration error is represented by the median reprojection distance of the effective matching points after transformation; when there are fewer than 30 effective matching points or the median reprojection distance is greater than 1.5 pixels, the previous effective spatial transformation is used and the registration reliability of the current reference image is reduced.
[0059] The time interpolation weights are expressed as follows: ; The initial arc background is estimated as follows: .
[0060] Considering the exposure difference between the two reference images and the measured image, the short-time arc nonlinearity, and the local smoke and dust transmittance variation, the scaling factor can be calculated based on the robust brightness ratio of the reference area after excluding the auxiliary light intensity reflection zone and saturation zone. The scaling factor can be a global scalar, a block constant, or a smooth scaling field generated by interpolation from low-resolution control nodes. The final arc background estimate is: ; The enhanced image of the molten pool reflection is as follows: ; in, To the equivalent luminous power of the auxiliary light source, To measure exposure time, To prevent positive numbers with a denominator of zero.
[0061] This formula makes the differential responses comparable under different auxiliary light powers and exposure times. Compared with single-frame reference image difference, the temporal interpolation of the two reference frames is used to approximate the arc background at the measurement time; compared with unregistered three-frame difference, the spatial transformation is used to reduce residual edges formed by welding movement.
[0062] When the first or second reference image becomes partially faulty due to splashing, adjustments are made based on the reliability of the local reference image. and This allows reference images with higher confidence to receive greater weight; when both reference images fail in a certain region, that region is not directly used for the current image boundary observation and is transferred to low-confidence contour restoration.
[0063] like Figure 4 The image shown is a raw measurement image of the molten pool, including the arc light background; as shown... Figure 5 As shown, this is the enhanced reflection map of the molten pool obtained after the above registration, background estimation and normalized difference.
[0064] S4. Construct a pixel confidence field.
[0065] For pixels within the melt pool candidate region Calculate the unsaturation factor respectively. Differential signal-to-noise ratio factor Edge response factor Inter-frame consistency factor Registration credibility factor and interference inhibitors Pixel confidence can be expressed as a weighted sum: ; In the formula, to The coefficients can be determined based on offline labeled data, or by using preset weights after normalizing each factor.
[0066] The unsaturation factor is determined based on the margin between the measured image and the reference image and the sensor's saturation value; the differential signal-to-noise ratio factor is determined based on the ratio of the local differential mean to the standard deviation of the background noise; the edge response factor is determined based on... The gradient magnitude, gradient direction continuity, and response difference between inside and outside the region are determined; the inter-frame consistency factor is determined based on the difference between the current differential response and the historical differential response compensated by robot motion; the registration confidence factor is determined based on the image reprojection residual, the number of effective matching points, and the consistency between robot motion prediction and image residual transformation; the interference suppression factor is reduced in the welding torch assembly occlusion area, spatter area, or low-contrast fume area. Figure 6 This is a graph showing the confidence distribution of the melt pool pixels generated based on the aforementioned confidence factor.
[0067] The occlusion area of the welding torch assembly includes the projection area of the welding torch nozzle, contact tip, welding wire, non-consumable electrode, or local structures of the robot end effector in the image. This area can be predicted based on the welding torch TCP pose, the welding torch assembly geometry, and the camera projection relationship. It can also be detected based on structural edges, width continuity, elongated shapes, and their connection to the arc-affected area in the image. Spatter typically appears as a connected region with a small area, high brightness, large roundness, and a significantly higher inter-frame velocity than the molten pool boundary velocity. Fume areas typically exhibit localized contrast reduction, overall gradient decay, and slow drift over time. The areas mentioned above correspond to... The image is reduced, but not permanently deleted, so that the current image observation can immediately re-participate in the contour update once the interference disappears.
[0068] S5. Extract and restore the confidence-based time-series melt pool profile.
[0069] exist For regions exceeding the first confidence threshold, the current set of visible boundary points is obtained based on the differential response, gradient direction, and region connectivity. Sub-pixel edge localization is performed on the point set to obtain the position, normal direction, and confidence level of each boundary point.
[0070] The preceding valid profile is denoted as The current predicted contour is obtained by predicting the position and velocity of its contour control points through a motion model. The motion model can employ a constant velocity model, a constant acceleration model, Kalman filtering, exponential smoothing, or a local regression model based on the most recent multiple contours.
[0071] Current closed contour This is obtained by minimizing the following expression: ; in, For the current image consistency term, make the contours closer to the high-confidence difference edges; For time series prediction consistency terms, low confidence boundary segments are brought closer to the prediction profile; This is a contour smoothness term used to limit unreasonable jagged edges and sharp corners; This is a geometric variation constraint used to limit the area, width, and control point velocity of adjacent frames from exceeding physically permissible limits.
[0072] This invention changes based on the confidence level of the boundary position. and Local weights. For high-confidence boundary points, Powerful With low weights, the final contour retains the actual observation from the current image; for low-confidence boundary segments obscured by welding torch components, saturated by arc light, or covered by smoke and dust, Small weight, The weights are high, and the contour connections are constrained using high-confidence boundary points at both ends of the missing segments. This process differs from uniform historical smoothing of the complete contour, and can avoid the historical model from overriding the true width or area changes in the current frame.
[0073] Figure 7 This is the closed contour map of the recovered melt pool obtained after high-confidence boundary preservation and low-confidence boundary local recovery. The contour can be represented by ordered boundary points, closed B-splines, Fourier descriptors, level sets, or star-shaped radial functions. Closed B-spline control points are preferred to update high-confidence and low-confidence contour segments separately. When a candidate contour exhibits self-intersection, negative area, or local curvature exceeding a preset range, the update step size is reduced, the smoothness constraint is increased, or the contour is reverted to the previous set of contours that meet the closure condition.
[0074] S6. Establish a dynamic welding coordinate system.
[0075] The welding torch TCP pose fed back from the robot controller is interpolated to the measurement image acquisition time. Based on the pre-calibrated tool axis direction in the welding torch tool coordinate system, the welding torch tool axis in the workpiece coordinate system is obtained. The intersection point of the welding torch tool axis with the workpiece reference plane or local tangent plane is calculated to obtain the initial estimate of the arc application point. This method of determination does not depend on whether the welding wire or electrode is clearly visible in a specific arc welding process.
[0076] Visible structural features at the center of the arc-affected region, the center of the molten pool leading edge, or the welding torch assembly are detected in the measurement image or the enhanced reflection image of the molten pool to obtain a visual point of impact estimation. And its credibility. When the visual credibility is higher than the threshold, the robot pose credibility and visual credibility are considered together. and Perform weighted fusion, or utilize Estimate the systematic deviation at the intersection of the tool axes to obtain the corrected arc application point. When visual observation has low reliability, adopt This reduces the reliability of the correction.
[0077] The welding direction is primarily obtained based on the projection of the robot's actual TCP trajectory onto the workpiece reference plane. When the actual trajectory sampling rate is insufficient or contains significant tracking fluctuations, the robot program trajectory or a preset weld trajectory can be used as the direction prior, and the set of arc application points containing the current moment can be utilized. Visual corrections are performed. Robust linear fitting or local quadratic trajectory fitting is performed based on the reliability of each trajectory point, and the tangential unit vector of the trajectory at the current moment is taken as the welding direction. And take the workpiece reference plane and The vertical unit vector is used as the horizontal direction. The dynamic welding coordinate system is represented as: ; The welding direction is as follows: The positive direction is along the axis, and the direction behind the heat source is negative. When the point of impact of the electric arc is temporarily invisible, it can be predicted based on the velocity of the historical point of impact. This reduces the reliability of the coordinate system; when the trajectory direction changes beyond the preset angle, the single-frame direction update amount is limited to avoid coordinate axis jumps caused by occasional detection errors.
[0078] S7. Calculate the four characteristics of the molten pool.
[0079] Figure 8 This diagram illustrates the definitions of weld pool width, weld pool projected area, and weld pool tail length in a dynamic welding coordinate system. (Example) Figure 8 As shown, the current closed contour of the molten pool is... Converted into the workpiece planar contour through planar mapping Its internal area is denoted as .
[0080] For vertical position Calculate the upper and lower lateral boundaries of the molten pool region at this location. and The length of the transverse section is: ; The width of the molten pool can be defined as: ; in, This is the set of longitudinal positions with intersections of valid contours on both sides. To reduce the impact of residual splashes or individual anomalous contour points, [the following can be done]: After median smoothing, take the maximum value, or take the 95th to 99th percentile value as the robust melt pool width, and record the width definition used in the output.
[0081] The projected area of the molten pool is: ; For the contour points of an ordered polygon The area can be calculated using the shoelace formula. Since the contour points have been mapped to the workpiece plane, the resulting area is in square millimeters, and the perspective scale changes caused by camera tilt have been compensated for.
[0082] The longitudinal coordinate of the arc's point of application in the dynamic welding coordinate system is 0, and the longitudinal coordinate of the molten pool's tail end is: ; The length of the molten pool tail is: ; When the arc point is located outside the molten pool region or the coordinate system confidence is insufficient, a low confidence marker for the tail length is output, and the total length of the molten pool is not used to replace the tail length in order to maintain consistency in the physical definition of the feature.
[0083] For the rate of change of area, set to include A sliding window with one valid frame. Frame-level profile reliability The weighted average time and weighted average area are determined based on the average boundary confidence, the proportion of effective high-confidence boundary length, the profile closure residual, and the proportion of predicted repair boundaries. ; The rate of change in area is the slope of the weighted linear regression: ; in, The value can range from 5 to 31, or be adaptively determined based on the current area change rate and frame-level reliability. When the melt pool changes rapidly and the reliability is high, the window is shortened to improve response speed; when contour noise is high or there is local occlusion across multiple frames, the window is lengthened to improve robustness. The relative area change rate can also be output. It is used to compare the relative intensity of changes in molten pools of different sizes.
[0084] S8, closed-loop imaging control, real-time output and degradation strategy.
[0085] like Figure 9 As shown, the saturation pixel ratio of the current encoding period is calculated. Differential signal-to-noise ratio Effective high-confidence boundary length ratio Registration residuals with reference image The next coding cycle will be controlled based on the above indicators: (1) When When the upper limit is exceeded, shorten the measurement exposure and reference exposure, or increase the neutral density attenuation; (2) When Below the lower limit and If the upper limit is not exceeded, increase the auxiliary optical power or extend the auxiliary optical pulse width; (3) When When the threshold is exceeded, increase the camera frame rate or shorten the time interval between the reference frame and the measurement frame; (4) When When the image remains low but not saturated, adjust the combination of exposure and auxiliary light power to bring the molten pool reflection response into the camera's effective dynamic range.
[0086] To avoid frequent oscillations in closed-loop parameters, a control dead zone, parameter update upper limit, and minimum hold period can be set. The adjustment of auxiliary light power and exposure time should preferably follow a pre-calibrated safety range, avoiding exceeding the light source duty cycle and camera exposure capabilities.
[0087] Final output feature vector: ; in, The confidence level is defined as follows: Width confidence is mainly determined by the confidence of the two side boundaries near the maximum width cutoff line; Area confidence is determined by the confidence of the complete contour and the predicted repair ratio; Tail length confidence is jointly determined by the confidence of the arc application point, welding direction and tail boundary; Area change rate confidence is determined by the number of effective frames within the sliding window, the temporal distribution and the area confidence of each frame.
[0088] When the confidence level of a feature is below a threshold, the system can continue to output predicted values with low confidence markers to maintain the continuity of the data timeline, but these values will not be used as valid measurements in quality assessment. When multiple consecutive periods show low confidence, the system will indicate insufficient imaging conditions and may freeze historical contours, maintain the previous valid coordinate system, extend the regression window, or pause the output of area change rates.
[0089] To verify the effectiveness of the method of the present invention, experiments were conducted using welding under different plate thicknesses, welding current settings, welding angles, operating speeds, and ambient light conditions. The experimental setup used a single high-speed camera and a synchronous auxiliary light source as an online measurement device; reference values for the molten pool profile were established through manual frame-by-frame annotation, controlled low-interference reference images, or offline high-quality images.
[0090] Evaluation metrics include: pool area crossover ratio, average boundary distance, 95% Hausdorff distance, absolute error of pool width, relative error of pool projected area, absolute error of pool tail length, mean square error of area change rate, effective contour acquisition rate, number of consecutive lost frames, single-cycle processing time and output feature delay.
[0091] The independent effect of three-frame symmetric coding was verified by comparing four methods: using only the front reference frame, using only the back reference frame, directly averaging the front and back reference frames, and using the front and back reference frames after registration and time-weighted interpolation. If the residual energy in the arc region, the ghosting intensity of the welding wire edge, and the boundary error of the molten pool are reduced after registration and time-weighted interpolation, it indicates that the time alignment of the two reference frames can improve the estimation of aperiodic arc background.
[0092] The independent effect of confidence-based temporal contours was verified through occlusion ablation experiments. The positional deviation of high-confidence visible boundary segments and the recovery error of low-confidence missing boundary segments were statistically analyzed by removing pixel confidence, removing historical contour predictions, uniformly applying prediction constraints to complete contours, and employing the local restoration method of this invention. If this invention can reduce the error of missing segments without increasing the positional deviation of high-confidence visible boundary segments, it indicates that the local restoration mechanism balances the preservation of true boundaries and occlusion completion.
[0093] The dynamic welding coordinate system was validated by changing the welding direction. The same molten pool profile was rotated within the image or a curved weld seam was captured. The width and tail length were calculated using both the fixed image coordinate system and the dynamic welding coordinate system. If the measurement results in the dynamic coordinate system were less sensitive to changes in image direction, it indicates that the arc trajectory provides a consistent directional reference for the molten pool characteristics.
[0094] The area change rate is verified by superimposing a controlled contour perturbation onto a reference area sequence or by using a manually labeled area sequence. The errors and number of spikes are compared between direct differencing of adjacent frames, differencing after ordinary moving average, equal-weighted regression, and the confidence-weighted regression of this invention. If the confidence-weighted regression reduces anomalous spikes near occluded and splashed frames while maintaining a response to the actual area growth and contraction process, it indicates that it can reduce the amplification of contour observation noise.
[0095] In summary, this invention uses three-frame symmetrical encoding to obtain arc background observation information at the measurement time, uses registration and time interpolation to suppress differential residuals caused by non-periodic arc light and welding wire movement, combines pixel confidence and local temporal recovery to obtain a continuous molten pool profile with observation basis, and outputs molten pool width, projected area, tail length and area change rate stably based on dynamic welding coordinate system and confidence weighted regression.
[0096] It should be noted that the above embodiments are merely preferred embodiments of the present invention and are not intended to limit the present invention. Those skilled in the art can modify, substitute, or improve the auxiliary optical band, coding sequence, registration algorithm, confidence combination, contour representation, trajectory fitting, and regression method without departing from the concept of the present invention, and such modifications, substitutions, or improvements all fall within the protection scope of the present invention.
Claims
1. A method for extracting melt pool features based on three-frame symmetric coding difference and confidence temporal contour, characterized in that, The method includes: The auxiliary light source is controlled to operate according to a coded acquisition cycle consisting of reference state, measurement state, and reference state. The same camera sequentially acquires a first reference image with the auxiliary light source in the off state, a measurement image with the auxiliary light source in the on state, and a second reference image with the auxiliary light source in the off state. Using the measured image as a time reference, the spatial transformation of the first and second reference images relative to the measured image is predicted based on the robot's motion state at the corresponding exposure time of the three images. The predicted spatial transformation is then corrected by residuals using image features or dense motion information. The first and second reference images are then registered to the coordinate space of the measured image. Finally, time interpolation is performed on the two registered reference images based on the acquisition time of the three images to obtain the arc background estimation image corresponding to the acquisition time of the measured image. The measured image is differentially divided with the arc background estimation image to obtain the molten pool reflection enhancement image. Based on the image exposure saturation, differential signal-to-noise ratio, local edge response, inter-frame consistency, registration residual, and interference region detection results, a pixel confidence field is generated. In regions where pixel confidence is higher than the first threshold, the visible molten pool boundary of the current frame is extracted. Based on the previous molten pool contour, robot motion state, and contour motion state, the predicted contour of the current frame is generated. High-confidence boundary segments in the visible molten pool boundary of the current frame are retained. Based on the predicted contour of the current frame, the visible molten pool boundary of the current frame, contour smoothness, and contour size variation range, the boundary segments with confidence lower than the second threshold or those that are occluded are locally restored to obtain the closed molten pool contour of the current frame. The first threshold is greater than the second threshold. The welding torch tool axis is determined based on the welding torch TCP pose at the corresponding measurement image acquisition time. The intersection of the welding torch tool axis and the workpiece reference plane is determined as the estimated value of the arc point of action. The estimated value of the arc point of action is visually corrected based on the position of the center of the arc area or the leading edge of the molten pool in the image. The welding direction is determined based on the local tangent of the robot's actual TCP trajectory, robot program trajectory, or weld trajectory at the current moment. A dynamic welding coordinate system is established with the corrected arc point of action as the origin, the welding direction as the longitudinal axis, and the direction perpendicular to the welding direction in the workpiece reference plane as the transverse axis. Map the closed contour of the molten pool in the current frame to the workpiece reference plane, calculate the width of the molten pool, the projected area of the molten pool, and the tail length of the molten pool in the dynamic welding coordinate system, and calculate the rate of change of the molten pool area by confidence-weighted regression based on the projected area of the molten pool in multiple consecutive frames including the current frame, the acquisition time, and the contour confidence. The output includes molten pool feature data, which includes molten pool width, molten pool projected area, molten pool tail length, molten pool area change rate, and corresponding feature confidence level.
2. The melt pool feature extraction method based on three-frame symmetric coding difference and confidence temporal contour as described in claim 1, characterized in that, The auxiliary light source is a near-infrared narrowband surface light source, a dot matrix light source, or a line light source; a narrowband filter matching the center wavelength of the auxiliary light source is set in front of the camera; polarization elements with the same or orthogonal polarization directions are set on the light-emitting side of the auxiliary light source and the light-incoming side of the camera; the camera and the auxiliary light source are triggered by the same synchronous controller, so that the stable light emission range of the auxiliary light source is located within the effective exposure range of the measured image; The camera is fixedly mounted on the end effector of the robot and moves with the welding torch, or it is fixedly mounted on the robot workstation and remains stationary relative to the workpiece. When the camera is mounted on the end effector of the robot, the transformation relationship between the camera coordinate system and the robot end effector coordinate system is obtained through hand-eye calibration. When the camera is fixedly mounted on the robot workstation, the transformation relationship between the camera coordinate system and the robot base coordinate system or the workpiece coordinate system is obtained through external camera calibration.
3. The melt pool feature extraction method based on three-frame symmetric coding difference and confidence temporal profile according to claim 1, characterized in that, An encoding acquisition cycle includes a first reference exposure, a measurement exposure, and a second reference exposure. The auxiliary light source is turned off during the first and second reference exposures, and turned on during the measurement exposure. Two adjacent encoding acquisition cycles share a reference image, or each encoding acquisition cycle acquires two reference images. The robot motion state is interpolated to each exposure time through hardware trigger signals, time offset calibration of the robot controller clock and the image acquisition clock, or timestamp interpolation. The time interpolation weight is determined based on the time distance between the acquisition time of the measurement image and the acquisition time of the two reference images.
4. The melt pool feature extraction method based on three-frame symmetric coding difference and confidence temporal profile according to claim 1, characterized in that, The initial spatial transformation of the first and second reference images pointing to the measurement image is calculated based on the welding torch TCP pose, camera mounting method, and coordinate transformation parameters at the three exposure times. The residual transformation is estimated using at least one of the following image information: workpiece surface texture features, solidified weld edge, welding torch outer contour, arc action area center, dense optical flow of molten pool candidate area, and previous frame motion model. Saturated arc light area, spatter area, and low-contrast fume area are excluded when estimating the residual transformation. The arc background estimation image is obtained by weighting and summing the registered first reference image and the second reference image according to the time interpolation weight and correcting it with the radiation ratio coefficient. The time interpolation weight is determined according to the acquisition time and the sum of the two is 1. The radiation ratio coefficient is a global scalar, a block constant, or a smooth ratio field generated by interpolation by the control node, which is determined according to the brightness change of the reference area. The molten pool reflection enhancement image is the difference between the measured image and the arc background estimation image, divided by the product of the equivalent luminous power of the auxiliary light source and the measured exposure time, and the sum of positive numbers to prevent the denominator from being zero.
5. The melt pool feature extraction method based on three-frame symmetric coding difference and confidence temporal profile according to claim 1, characterized in that, Pixel reliability is determined based on inter-frame consistency factor, differential signal-to-noise ratio factor, and edge response factor. The inter-frame consistency factor is determined based on the difference between the current local response and the historical response compensated by robot motion. The differential signal-to-noise ratio factor is determined based on the ratio of the local differential mean to the background noise. The edge response factor is determined based on the gradient magnitude and directional continuity of the molten pool reflection enhancement image. Pixel confidence is also determined based on the unsaturation factor, registration confidence factor, and interference suppression factor. The unsaturation factor decreases as the measured image or reference image approaches the saturation value. The registration confidence factor is determined based on the reprojection error of the robot arm motion prediction and the image residual registration. The interference suppression factor decreases in the welding torch assembly occlusion area, spatter area, or low-contrast fume area. The welding torch assembly's occlusion area includes the projection area of the welding torch nozzle, contact tip, welding wire, electrode, or robot end effector's local structure in the image, predicted based on the welding torch's TCP pose and the welding torch assembly's geometric model, or detected based on the structural edges, width continuity, and connection relationship with the arc action area in the image; the spatter area is determined based on the area of connected components, roundness, brightness changes, and inter-frame motion speed; the low-contrast fume area is determined based on the degree of local contrast reduction, texture attenuation, and continuous frame drift characteristics; pixels judged as interference areas are not directly deleted, but their corresponding pixel confidence is reduced.
6. The melt pool feature extraction method based on three-frame symmetric coding difference and confidence temporal contour as described in claim 1, characterized in that, The current frame's molten pool closed contour is obtained by minimizing a confidence-weighted contour objective function, which includes a current image consistency term, a temporal prediction consistency term, a contour smoothness term, and a geometric change constraint term. In regions with high pixel confidence, the weight of the current image consistency term is increased and the weight of the temporal prediction consistency term is decreased. In regions with low confidence, the weight of the current image consistency term is decreased and the weight of the temporal prediction consistency term is increased, so that the high confidence boundary segment remains the actual observation position of the current frame. Local recovery under prediction constraints is only performed on the low confidence or occluded boundary segments. The low confidence or occluded boundary segments are those with pixel confidence lower than the second threshold or those that are occluded. When the closed contour of the current frame melt pool exhibits self-intersection, negative area, or local curvature exceeding a preset range, the contour update step size is reduced, the weight of the contour smoothness term is increased, or the process reverts to the previous set of contours that meet the closure condition.
7. The melt pool feature extraction method based on three-frame symmetric coding difference and confidence temporal profile according to claim 1, characterized in that, The welding torch tool axis is obtained based on the welding torch TCP position and welding torch posture fed back by the robot controller, and the intersection point between the welding torch tool axis and the calibrated workpiece reference plane is calculated to obtain the estimated value of the arc application point. When the center of the arc action area or the leading edge of the molten pool in the image has a visual confidence level higher than a preset threshold, the estimated value of the arc action point is corrected using the center of the arc action area or the leading edge of the molten pool; when the robot's motion state or visual observation is invalid, the current arc action point is predicted based on the position, velocity, and direction of the previous arc action point; the welding direction is obtained based on at least one of the robot's actual TCP trajectory, robot program trajectory, weld trajectory, or multiple previous arc action point trajectories, through local tangential calculation, confidence-weighted fitting, principal component analysis, or robust local trajectory fitting; When the change in the welding direction exceeds a preset angle, the direction update amount within a single frame is limited; when the arc point is temporarily invisible, the current arc point is predicted based on the velocity of historical arc points, and the reliability of the dynamic welding coordinate system is reduced.
8. The melt pool feature extraction method based on three-frame symmetric coding difference and confidence temporal profile according to claim 1, characterized in that, After mapping the closed contour of the current frame's molten pool onto the workpiece plane, the molten pool region is scanned along the longitudinal axis of the dynamic welding coordinate system. The cross-sectional length of the molten pool region in the transverse axis direction at each longitudinal position is calculated, and the maximum cross-sectional length after removing low-confidence abnormal cross-sections or the preset high-quantile cross-sectional length is determined as the molten pool width. The distance between the arc point and the farthest projection point of the molten pool contour in the opposite direction of the welding direction is determined as the molten pool tail length. When the arc point is located outside the molten pool region or the confidence of the dynamic welding coordinate system is insufficient, the molten pool tail length with a low-confidence marker is output. The projected area of the molten pool is obtained by performing polygon integration or region integration on the closed contour mapped to the reference plane of the workpiece; the rate of change of the molten pool area is obtained by confidence-weighted linear regression of the projected area of the molten pool in each frame within the sliding time window, the acquisition time, and the frame-level contour confidence; the weighted average acquisition time and the weighted average molten pool projected area of the confidence-weighted linear regression are calculated with the frame-level contour confidence as the weight; the frame-level contour confidence is determined based on at least two of the following: the proportion of effective high-confidence boundary length, the average boundary confidence, the contour closure residual, and the contour prediction repair proportion. The number of consecutive frames in the sliding time window is adaptively adjusted based on the current rate of change of the melt pool area and the frame-level contour reliability. When the rate of change of the area exceeds a preset rate threshold and the frame-level contour reliability is higher than a preset reliability threshold, the sliding time window is shortened. When the proportion of contour noise or partially occluded frames exceeds a preset proportion, the sliding time window is extended.
9. The melt pool feature extraction method based on three-frame symmetric coding difference and confidence temporal profile according to claim 1, characterized in that, Based on at least two of the saturated pixel ratio of the measured image, the signal-to-noise ratio of the fused pool reflection-enhanced image, the effective high-confidence boundary length ratio, and the registration residual, a closed-loop adjustment is performed on at least one of the camera exposure time, auxiliary light source luminous power, auxiliary light source pulse width, and image acquisition frequency for the next encoding acquisition cycle; when the saturated pixel ratio exceeds the upper limit, the camera exposure time is preferentially shortened; when the differential signal-to-noise ratio is lower than the lower limit and the saturated pixel ratio does not exceed the upper limit, the auxiliary light source luminous power is increased or the auxiliary light source pulse width is extended; when the registration residual exceeds the threshold, the time interval between adjacent exposures within the same encoding acquisition cycle is shortened; When the frame-level contour confidence level is lower than a preset threshold, the robot motion state is missing, or the alignment residual between the robot controller timestamp and the image acquisition timestamp exceeds a preset threshold, at least one of the following degradation processes is performed: freezing the current image update of the low-confidence boundary segment; outputting the molten pool feature with low-confidence markers using historical contour prediction values; extending the regression time window of the molten pool area change rate; maintaining the dynamic welding coordinate system according to the robot program trajectory or the trajectory of the previous arc point; maintaining the previous valid robot motion state; and not using the current low-confidence feature for the reverse adjustment of auxiliary light source and exposure parameters.
10. A feature extraction system for arc welding molten pool in industrial robots, characterized in that, It includes an industrial robot, a robot controller, a robot end effector equipped with a welding torch, a single camera, a narrowband auxiliary light source, a filter assembly, a synchronization controller, and a real-time image processing unit; The single camera is fixedly mounted on the end of the robot and moves with the welding torch, or it is fixedly mounted on the robot workstation and remains stationary relative to the workpiece. The synchronization controller is used to trigger the single camera and the narrowband auxiliary light source, so that the narrowband auxiliary light source works according to the coded acquisition cycle composed of reference state, measurement state, and reference state, and the single camera sequentially acquires the first reference image, the measurement image, and the second reference image. The real-time image processing unit is configured to perform the melt pool feature extraction method based on three-frame symmetric coding difference and confidence temporal contour as described in any one of claims 1 to 9, and output the melt pool features and the corresponding feature confidence.
