Abstract
In order to extract the character of weld pool, a new method for weld pool image procession based on the Fourier-DNA low-pass filtering is proposed. Firstly, the TIG welding technique is chosen to be the researched object. The welding experimental system is setup, which is used to capture weld pool images in real time. On this basis, Fourier transformation is performed to weld pool image, and changed the space domain to frequency domain. Then the DNA low-pass filtering is constructed. The DNA intelligent algorithm is used to obtain the optimum low-pass cut-off frequency, and the low-pass filtering can be obtained. The binaryzation operation by the optimum low-pass filtering method and the traditional otsu method have been done. The results show that the method proposed in the paper has a better binaryzation performance. In the end, canny edge extract operation are performed. So the weld pool image edge can be obtained, which has made some basis for the extraction of weld pool character latter on.
Introduction
Welding is one kinds of common technique for metal connection, which melts the welding stick, the welding rod, or the workpiece itself. It is widely used in the field of aerospace, railway traffic, shipbuilding, mechanic manufacture, and so on. However, the arc, the splash and the strong smell, which are produced during the welding procession, have made great damage to workers’ health. It has great social and economic benefit to realize the welding automation. How to obtain a beautiful and perfect weld seam has become the researched hot point in the field of automation. In order to realize the goal, the seam tracking and welding forming control should be performed [1].
Seam tracking is to check the hot source can point to the seam during the welding procession. In the field of weld seam tracking, the teaching method has been applied to welding equipment. However, due to the welding fixture error and the heat transformation during the welding procession, the heat source will still deviate the seam, if it moves along the teaching path. To realize the seam tracking, several sensors, such as the mechanic probe, the electromagnetism sensor, the ultrasonic sensor, the arc sensor, the photoelectricity sensor, and so on, are applied [2, 3, 4, 5].
The formation of weld seam has affected the metal structure and its character of the weld seam and the heat affected zone, which determines the mechanical character of final weldment and affect the reliability of production greatly. The change of weld pool surface has been tested to gain the welding penetration condition indirectly.
In [6], the passive vision sensor is used to obtain the pool images of MAG welding. Then the visual characters of weld pool under different penetration conditions were researched, which supplied the experimental data and control model for welding quality control on line. In [7], weld pool images were captured by visual sensor, and the gray-level distribution of pool images for GTAW welding is analyzed. By the information, the images procession algorithm is designed. The boundary of the pool and several geometry parameters can be detected. Then a fuzzy controller is designed. The input of the controller is the error and its changing rate of the weld width on the back. The output of the controller is the current values.
Paper [8] set up a trinocular vision system, and the images information of the front and back pool for GTAW welding can be captured in real time. The pool width and its length on the front of the pool can be obtained, and deduced to the MLD model. By the model, the strategy for GTAW welding penetration control is researched. Paper [9] proposed a new measure method for pool surface by 3d laser vision sensor, the information on the width and depth of pool surface is researched during the dynamic changing of the weld pool surface for GTAW. Yue captured images and temperature information for GMAW by visual and temperature sensors. By the images on the front of the pool and their temperature information, a dynamic analytical three-dimension temperature fields model of weldments can be set up. The model can be used to closed-loop control for weld seam at back of weldment. Cai [10] researched the visual characters detection method around the pool district for GTAW. A controller system for seam forming has been designed based on the detected pool character.
Actually, in the welding procession, experienced workers observe the shape of weld pool and the weld seam information to realize the seam tracking and formation control. It can be speculated that the weld pool image may contain very rich information, which can be used to speculate the seam tracking error and formation condition indirectly. To achieve the goal, enough welding information and the latest intelligent algorithm is necessary [11, 12, 13]. Gao and Na [14], Gao et al. [15], Ding [16, 17, 18] analyzed the weld pool information to construct the welding procession control model. By the setup model, the welding tracking and penetration control can be realized. It is very important to extract the pool information in weld image correctly. Therefore, a new method for weld pool image procession is proposed in this paper, which is based on Fourier and DNA transformation. First, the welding experimental system is setup and can be used to capture weld image in real time. Then the captured images were changed to frequency domain by Fourier transformation. The optimum cut-off frequency can be obtained by the DNA intelligent algorithm. So the optimum low-pass filter can be realized. The image after low-pass filter is changed to space region. The binaryzation procession is performed to the image. In the end, the Canny algorithm is used to extract the edge of weld pool, which made some basis for the obtainment of pool character.
Experimental system
The argon tungsten-arc welding (TIG welding) is chosen to be the research welding technique. The welding experimental system is setup, which is shown in Figs 1 and 2. The whole experimental system includes the mechanic body, the CCD visual sensor, the electricity sensor, the industry control computer, the image capture system, the motion control system and so on. The mechanic body is constituted by portal frame and welding workbench, which are driven by step motors. There are several fixtures on the welding workbench, which are used to clamp workpiece. The size of the mechanic body is shown in Table 1.
Parameters of mechanic body
Parameters of mechanic body
Structure of welding experimental system.
Welding experimental system.
There are several travel switches installed along the axis of the portal frame and welding workbench, which are used to prevent moving over travelling. When welding, the Y axis is set to be the feeding direction. The welding images are captured by CCD sensor, decoded by image capture system, and A/D transformation. Then the digitization images are sent to industry control computer and saved to the hard disk. In order to reduce the arc disturbance producing during the welding procession, there is optical filter installed in front of the CCD camera. So the weld pool images can be obtained.
Based on the experimental system, welding experiments can be performed. The parameters of welding technique is shown in Table 2. In the paper, the argon tungsten-arc welding (TIG welding) is chosen to be the welding technique. The material of size weld workpiece is Q235, and its size is 200 mm
Welding experiment conditions
In actually welding procession, the light produced by the weld arc is very strong. The weld pool is usually covered by the strong light. In order to acquire an ideal weld pool image, the light disturbance should be filtered. If only use the narrow band filter method, the light can’t be filtered completely. The weld arc light is still very strong, and the weld pool can’t still be distinguished, which is shown in Fig. 3a. If only use the traditional neutral filter method, the contrast of the weld pool image will be decreased vastly, and the detail information of weld pool can’t be distinguished, which is shown in Fig. 3b. In this paper, a composite filter system is setup, which contains a 650 nm narrow band filter and a 7# filter. And a wonderful weld pool image is captured by the visual sensor, which is shown in Fig. 4.
Images by narrow band filter method and neutral tilter method.
Image by composite filter system method.
The chosen of procession district should highlight the information of weld pool and weld seam, and the disturbance of arc light should be avoided. In order to cover most pool information, the whole pool and some weld seam in front of the pool are determined to be the procession district, which is shown in in Fig. 5.
The weld pool procession district.
Space zone and frequency zone are two different angles of view to recognize the weld pool image. In space zone, the independent variable (
The inverse Fourier transformation of two dimension continuous function is shown as follow:
For the digital image, its data are discrete gray values.
The discrete Fourier inverse transformation can be shown as follow:
In the formula,
Fourier transformation of weld pool image.
The Fourier transformation can change the image from the space zone to frequency zone. And the inverse Fourier transformation changes the image from the frequency zone to the space zone, which can be recognized by human’s eyes. By the relationship between the space zone image and the frequency zone image, the processing of image can be performed in the frequency zone firstly. After that, the images would be changed back to space zone, so the goal of image enhancement can be reached, which can be shown as follow:
In the formula,
Make the Fourier transformation of the original image Move the zero frequency position to the center of the spectrogram. Compute the result Move the zero frequency point of Make the inverse Fourier transformation, and the expression Get the real part of
From the computing procession above, it can be easily found that the result of the image filtering affection is determined by the filtering function
In Fig. 5, it can be found that the process region contains the background, the weld pool, weld seam, and so on. The gray levels in the same object change gently. If use the high pass filter, the inner region will be weakened, which is bad for the extraction of weld pool later on. Therefore, the low pass filter is applied for the pool image procession to object the pool district.
The Fourier transformation of weld pool image is shown in Fig. 6. The center zone of the spectrogram is the low frequency zone. In the zone, the gray changed slowly,which may be the weld pool. And the other zone is the high frequency zone, where the gray changed greatly, which may be noise. So the low pass filter can be used to distinguish the pool and noise. In the operation, the high frequency component can be filtered by setting a cut-off frequency. The frequency component higher than cut-off frequency is set to zero, while the lower frequency is remained the same. The filter result can be shown in Fig. 7. It may be found that the low frequency zone can be seem to be a circle, which is shown in Fig. 7. The diameter
The lower pass filter operation.
Suppose the width of image is
In the formula,
In order to strengthen the weld pool zone, the low pass filter has been employed in the paper. From the Eq. (6), the value of cut-off frequency is very important for the low pass filter. However, in actual application, the value of cut-off frequency is determined by trial and error method, which is very time costing. And the cut-off frequency may not be the optimum value. A new method for the cut-off frequency of the low pass filter is researched in this paper, which is based on the DNA algorithm. The detail procession is as follow [19, 20].
The coding and decoding principle
The original DNA chain is produced randomly by computers. And the 4 basic groups in DNA chain are firstly defined. T is defined to be 0. C is defined to be 1. A is defined to be 2. G is defined to be 3. The length of DNA chain is 3, and the decoding formula can be shown as following.
In the formula,
When
In the formula,
In the operation, the optimum DNA individuals are chosen from the population in some probability, which can be used to be parents to raise up seed. The new DNA individuals will be put into the next generation and join the DNA genetic manipulation in the next generation. Suppose
The crossover operation is shown in Fig. 8. In this operation, a pair of random DNA chain individuals exchange their DNA contents. The crossover position is randomï¼which is shown in Fig. 8. Then the above DNA chain and below DNA chain exchange their DNA contents.So a new DNA individual, which is at the bottom of Fig. 8, can be produced.
Crossover operation of DNA.
In this operation, several DNA chain individuals are firstly chosen. Then the base sequence at some position of the DNA chain variates. T changes to C, and A changes to G. The variation operation is shown in Fig. 9.
Variation operation of DNA.
In this operation, several DNA chain individuals are firstly chosen. Then a random position on the DNA chain is determined and inverts their basic group sequence. The inversion operation is shown in Fig. 10.
Inversion of DNA.
In this operation, the fitness of new DNA individual would be firstly calculated. If the fitness of the current optimum DNA individual is better than the last generation, the memorize operation will be performed to take place the optimum DNA individual in the last generation. If not, the memorize operation will not be performed, and the optimum DNA individual will be remained.
Experimental result
Based on the experimental system shown in Figs 1 and 2, several groups of weld pool images can be captured. The captured time of the CCD is 40 ms, and the captured pool images are shown in Fig. 4. In this paper, the total generation numbers of DNA population for weld pool image gray is set to 50. The rate for variation operation is set to 0.001. So the optimum cut-off frequency can be obtained, which is 40. The results of low pass filter in frequency spectrum are shown in Fig. 11. The Fig. 11a is the Fourier transformation of weld pool image. The Fig. 11b–d is the low pass filter operation of Fig. 11a by the cut-off frequency are 20, 40 and 60. From Fig. 11b–d, it can be found that the remained low frequency zone is become lager with the increase of cut-off frequency.
Low pass filtering results in frequency spectrum under different cut-off frequency.
Low pass filtering results in space zone under different cut-off frequency.
Binaryzation by the new method and the traditional otsu method.
The low pass filtering results in space zone are shown in Fig. 12. In Fig. 12b, the weld pool district has become dim. In Fig. 12d, the weld pool district is more clearer, while the noise around the pool has become clear, too. The Fig. 12c is the low pass filtering result with the optimal cut-off frequency calculated by the DNA algorithm. It can be easily found that the pool district is clear in Fig. 12c and the noise has been reduced at the same time.
After the low-pass filtering operation based on the optimum cut-off frequency, the noise of the pool image can be greatly reduced. In order to extract the feature information in weld pool, binaryzation operations was performed. The binaryzation operation by the new method and traditional otsu method is shown in Fig. 13. From the results shown in Fig. 13a, it can be found that the new method have a wonderful performance for the image than the other operations. The Fig 13b is the result by the traditional otsu operation. It can be found that there are full of burrs around the pool, and there exists some single noise points. Moreover, the disturbance zone is seem to be weld pool, which is in front of the pool. The Fig. 13c is the result by the GA method. In the figure, it can be found that some information of pool image has missed, and some single noise points around the pool appeared.
Edge detection of weld pool image.
The canny edge extraction is then performed. The edge of the pool has been extracted successfully. Based on the edge, the shape and size can be obtained, and it can be used for seam tracking and welding penetration prediction [14, 15, 16, 17, 18], which has made some basis for welding automation.
In this paper, a new low pass filtering method is proposed, which is based on the Fourier-DNA method. Firstly, the Fourier transformation has been performed to the captured weld pool image, and changed the image to frequency zone. Nextly, a DNA low pass filter has been setup. The optimum cut-off frequency has been obtained by the DNA algorithm. From the result, it can be found that the low pass filter, whose cut-off frequency is obtained by the DNA algorithm, has better performance. The weld pool zone has become clearer and the noise around the pool has been greatly reduced at the same time. On this basis, the binaryzation operation is performed to the image and some comparison experiments by the otsu method has been performed. The result showed that the optimal low pass filtering image has better result, which the pool district is gained. However, the binaryzation image by the traditional otsu method is not favorable. Some pool information missed and there exists some single noise points round the pool. In the end, the canny edge detection have been performed. So the edge of weld pool can be obtain, which can be used for seam tracking and welding penetration prediction later on.
Footnotes
Acknowledgments
This work is supported by the major nature science project of Guangdong colleges and universities (No. 2019GZDXM016), Dongguan social science and technology development project (No. 2019507156583), excellent young teachers cultivation project for institution of high learning of Guangdong Province (No. YQ2015232), the skill expert project of Dongguan Polytechnic (No. 2019JY03), the college students’ off-campus practice base poject of the innovation strong school project of Guangdong Province (No. CXZ003) and the project for technical R&D and service team of DongGuan Polytechnic – Intelligent Terminal Product R&D and Technical Service Teamï¼No. CXTD201802).
