Xiao Et Al. - 2019 - An Adaptive Feature Extraction Algorithm For Multiple Typical Seam Tracking Based On Vision Sensor I
Xiao Et Al. - 2019 - An Adaptive Feature Extraction Algorithm For Multiple Typical Seam Tracking Based On Vision Sensor I
a r t i c l e i n f o a b s t r a c t
Article history: Intelligent robotic welding is an indispensable part of modern welding manufacturing, and vision-based
Received 28 April 2019 seam tracking is one of the key technologies to realize intelligent welding. However, the adaptability and
Received in revised form 16 July 2019 robustness of most image processing algorithms are deficient during welding practice. To address this
Accepted 30 July 2019
problem, an adaptive feature extraction algorithm based on laser vision sensor is proposed. According
Available online 9 August 2019
to laser stripe images, typical welding seams are classified into continuous and discontinuous welding
seams. A Faster R-CNN model is trained to identify welding seam type and locate laser stripe ROI auto-
Keywords:
matically. Before welding, initial welding point is determined through point cloud processing to realize
Robotic welding
Adaptability feature extraction
welding guidance. During seam tracking process, the seam edges are achieved by a two-step extraction
Seam tracking algorithm, and the laser stripe is detected by Steger algorithm. Based on the characteristics of two kinds of
Image processing welding seams, the corresponding seam center extraction algorithms are designed. And a prior model is
Vision sensor proposed to ensure the stability of the algorithms. Test results prove that the algorithm has good adapt-
ability for multiple typical welding seams and can maintain satisfying robustness and precision even
under complex working conditions.
© 2019 Elsevier B.V. All rights reserved.
1. Introduction edge features, and Soares et al. [4] employed LSD algorithm to
extract the center of welding seam. As for butt welding seams, Xu
Intelligent welding manufacturing technology has become one et al. [5] proposed an improved Canny algorithm feature extraction
of the main research fields in advanced manufacturing [1]. Fur- algorithm to extract the edges of welding seam and welding pools.
thermore, intelligent robotic welding technology is one of the key And Jin et al. [6] utilized Otus threshold segmentation method and
technologies of intelligent welding manufacturing. Seam tracking Canny algorithm to extract tube sheet welding seams center.
is a major problem in intelligent robotic welding, and vision sens- While passive vision is susceptible to ambient illumination, and
ing technology is an efficient method of dealing with it [2]. With intricate filtering processes are needed to reduce arc interference
the help of vision-based seam tracking technology, it is able for [7]. In contrast, active vision has the advantages of high stabil-
traditional “teach and playback” robots to overcome disturbances ity with the use of auxiliary light sources. And seam tracking is
during welding practice and to meet the requirements of high- mainly realized via extracting the point on the stripe that repre-
quality welding. On the basis of lighting sources, the vision sensing sents welding seam center. To extract feature points of V-shaped
technology can be divided into passive vision and active vision. welding seams, improved Otus algorithm and line detection algo-
Passive vision uses arc as the light source, and its images contain rithm were employed by Jawad et al. [8]. As for butt welding seams,
abundant information. Welding seam tracking is mainly realized by Fan, J et al.extracted the butt welding center and laser stripe by
comparing the deviation between welding seam center and weld- row scanning and column scanning respectively [9], and a precise
ing pool (or welding gun). To track V-shaped welding seams, Canny Hough transform algorithm was designed by Xue B et al. [10] to
algorithm and Hough change were used by Guo et al. [3] to extract extract seam center. Furthermore, Fang et al. [11] proposed a two-
step feature-extraction method to detect center of fillet welding
seam.
However, the algorithms mentioned above mainly focused on
∗ Corresponding author.
single type of welding seam, which limited their scope of appli-
E-mail addresses: [email protected], [email protected] (Y. Xu).
https://doi.org/10.1016/j.sna.2019.111533
0924-4247/© 2019 Elsevier B.V. All rights reserved.
2 R. Xiao et al. / Sensors and Actuators A 297 (2019) 111533
Pb = b T t t T c c T I PI (1)
Table 1
Training Parameters.
Parameters Value
Batch size 1
Max step 12500
Dropout keep probability 1.0
The score threshold for NMS 0.0
The IoU threshold for NMS 0.7
The initial learning rate 0.001
The momentum value 0.9
Fig. 6. Feature detection with HOG-SVM algorithm. 3.3. Training result of Faster R-CNN
In order to extract high quality features, this paper proposes
The training parameters utilized in this paper were noted in
to use Faster R-CNN algorithm [15] to classify laser stripe images,
Table 1. The curve of training error during training process is pre-
which is superior to traditional recognition algorithm in detection
sented in Fig. 9. The horizontal axis represents training steps, and
speed and detection accuracy.
the vertical axis represents the error between output results of cur-
rent network and the real results. After 12,500 iterations, the model
3.1. Faster R-CNN algorithm
basically converged.
Laser stripe images of four types of welding seams were tested
Faster R-CNN algorithm generates 9 anchors of different scales
by the trained model and the results were shown in Fig. 10. Tak-
for each pixel and calculates the Intersection over Union (IoU) value
ing Fig. 10a as an example, the green boundary box reprented the
of the anchor and real target. It can effectively separate detection
position of laser stripe. The c̈ontinuousr̈eferred to classification
target from background and eliminate interference of noise. The
result and 99% was confidence level, indicating the probability of
algorithm procedure is illustrated in Fig. 7:
the welding seam being continuous welding seam is 99%. It proves
In this paper, a pre-trained convolutional network model ResNet
that even under complex conditions, the model can still identify
is adopted to extract features. And transfer learning method is
and locate laser stripe correctly. The matching rate of the anchor
employed to speed up training and improve the performance of
and target reaching 95% is regarded as a successful detection, and
model. The boundary box of detection result is filtered by Non-
the precision P = 0.966, recall R = 0.971.
maximum suppression (NMS) algorithm. The accuracy of the model
The model is applied to test the laser stripe images of lap welding
is evaluated by precision P and recall R, defined as follows:
seam and half V-shape welding seam, which were not involved in
TP the training data set, and the results are displayed in Fig. 11. It can
P= (2)
TP + FP be seen that the model can still make accurate detection, which
TP proves that the trained Faster R-CNN model has excellent capability
R= (3) of generalization.
TP + FN
Where: TP ——number of positive samples judged as positive sam-
4. Robotic welding guidance
ple; FN ——number of positive samples judged as negative sample;
FP ——number of negative samples judged as positive sample; TN Initial welding point guidance and real-time seam tracking
——number of negative samples judged as negative sample should be an integrated and consecutive process, so as to reach
actual welding requirements in robotic autonomous welding. In
3.2. Data set of laser stripe images this paper, the vision sensor is employed to obtain point cloud data
to reconstruct 3D welding seam. The initial welding point guid-
To ensure robustness of the trained model, laser stripe images ance is realized by point cloud feature extraction. The entire guiding
of two types of continuous welding seams, involving V-shaped process is depicted in Fig. 12.
welding seam and fillet welding seam, and two types of discon- Taking fillet welding seam and butt welding seam as instances,
tinuous welding seams, involving butt welding seam and large and generally considering the point on the seam closest to origin
gap V-shaped welding seam, were collected to train the model. of robot base coordinate system is the initial welding point, the
These images were taken at different angles, under different light- feature extraction process is described as follows.
ing conditions, and with welding noises such as arc, reflections and As mentioned above, 3D coordinates of points on the laser stripe
splashes. can be obtained with Eq. (1). Therefore, by scanning the workbench,
In order to improve generalization of the model and prevent 3D point cloud data of the workpiece can be collected, as shown in
over-fitting, this paper adopted following data augmentation meth- Fig. 13.
ods: Since the point cloud is obtained by scanning the workbench,
it is first necessary to separate the workpiece from workbench.
1) Randomly changed the orientation of images; Zhang et al. [16] adopted KD-Tree background model to filter out
2) Added random perturbations to images by using gauss noise; background points. Considering that the working plane is relatively
3) In the HSV space, changed the contrast of images at random; horizontal and the workpiece surface is generally higher than work-
4) Arbitrarily scaled images; ing plane, simple z coordinate segmentation can be employed to
R. Xiao et al. / Sensors and Actuators A 297 (2019) 111533 5
extract workpiece data. By eliminating the points, whose z coordi- Continuous welding seam is the line of intersection of two work-
nate value are less than a specified threshold, the workpiece point piece planes. By fitting the two planes’ equations and calculating
cloud can be acquired. And a statistical filter is applied to elim- the line of intersection, seam equation can be achieved. Firstly, use
inate outliers. The average distance of 100 neighboring points is local surface fitting method to estimate normal vector at each point.
calculated at each point, and the points outside standard range are 80 neighboring points of each point are integrated to fit a plane, and
considered to be an outlier. the normal vector of this plane is regarded as the normal vector
6 R. Xiao et al. / Sensors and Actuators A 297 (2019) 111533
of the point. Then, planes are segmented with K-means clustering of two planes to obtain the seam equation, marked in red in Fig. 14b,
algorithm. Points in the same plane have similar normal vectors. and the initial welding point is in green.
Therefore, points can be classified into k classes on the basis of Discontinuous welding seam is the midline of welding seam
lighting sources. The cluster number K depends on the character- edges. Therefore, point cloud edge extraction algorithm [17] is
istics of welding seam point cloud. At last, fit plane equations with adopted to extract 3D edge points. Then, project the detected points
RANSAC algorithm on each class, and calculate the intersection line onto x–y plane, and fit a 2D line equation. Therefore, the points of
two edges can be separated by this line. Finally, fit the two edges
R. Xiao et al. / Sensors and Actuators A 297 (2019) 111533 7
Fig. 11. Detection results of welding seams not in the training data sets.
Fig. 13. Point cloud images of continue and discontinue welding seams.
8 R. Xiao et al. / Sensors and Actuators A 297 (2019) 111533
the center of laser stripe is extracted with Steger algorithm. The 1) ROI selection. Two ROI regions, including laser stripes and
intersections between laser stripe and welding seam edges are cal- welding seams respectively, need to be selected before feature
culated, then the center position of welding seam can be obtained. extraction. The identified result of Faster R-CNN is utilized as
Taking butt welding seam as an example, the flow of discontinu- laser stripe ROI directly (Fig. 20a). And the ROI of welding seam
ous welding seam center point extraction is described in detail as is selected on the side near the arc. Since during welding process,
follows: arc light can help to illuminate welding seam, which makes it
10 R. Xiao et al. / Sensors and Actuators A 297 (2019) 111533
are defined as a prior model, as Eq.5. Only the points satisfying the
model are preserved. The filtering process is illustrated in Fig. 23.
Range = Xmin Xmax
Segment i : (5)
Angle = min max
Fig. 25. Extraction process of feature points for V-shaped welding seam with small gap.
12 R. Xiao et al. / Sensors and Actuators A 297 (2019) 111533
Table 2 is used to extract the seam center. Taking V-shaped welding seam
Welding parameters.
with different gaps as an example, the extraction procedures are
Parameters Value Parameters Value presented as follows.
Material Q235 steel plate Welding speed 4 mm/s When the gap is small, the corresponding laser stripe image con-
Groove type Fillet and butt Welding wire 1.2 mm sists of four connected lines, which is continuous welding seam, as
Pulse frequency 125HZ Protective gas 80%Ar+20%CO2 mentioned in Fig. 4b. When calculating the intersections of adja-
Welding current 150A Gas-flow rate 14 L/min cent straight lines, only the intersection of the middle two lines is
Dry elongation 15mm
preserved. The extraction process is demonstrated in Fig. 25.
When the gap gets larger, the laser stripe is broken in the middle,
6.1. Algorithm adaptability verification so the type of welding seam changes into discontinuous, as men-
tioned in Fig. 5b. Thus, the seam edges and the laser stripes that
The adaptability verification test is conducted on multi-type intersecting seam edges are extracted. The extraction procedure is
welding seams. The trained Faster R-CNN model is used to classify demonstrated in Fig. 26.
welding seams into continuous welding seams or discontinuous Moreover, the center extraction result of lap welding seam,
welding seams, and the corresponding feature extraction algorithm which is continuous welding seam, is shown in Figs. 27 and 28
R. Xiao et al. / Sensors and Actuators A 297 (2019) 111533 13
7. Conclusions
Acknowledgements