1. Introduction
The fields where welding processes are key factors in the production stages cover a wide range of different applications: manufacturing of pipes for various sectors, engines for aeronautics, automobiles or heavy components for nuclear power stations are some relevant examples in this regard. The lack of a complete comprehension of the physical phenomena occurring during the welding process, and the demanding quality standards to be found in this framework, have forced scientists to carry out an intense research effort in both welding physics and procedures devoted to cope with quality issues. Some of these studies have been focused on the development of theoretical models for both arc and laser welding [
1-
3], including numerical analysis approaches [
4]. These efforts help to understand the process and, therefore, to determine the precise input parameter ranges that will provide seams free of flaws.
However, in practice welding coupons employed for parameter adjustment, and both destructive and non-destructive trials [
5] have to be used to ensure that the performed seams satisfy the established quality standards. This obviously implies a significant cost in terms of productivity, as a lot of time is spent before and after the welding process itself, and, therefore, some of the seams have to be reworked and evaluated again.
This scenario has led to an intense research effort aimed at developing efficient and reliable on-line welding quality monitoring systems. They should be able to detect in real-time the occurrence of possible defects and, as an added value, to control the welding setup to try to avoid these defects or drifts from the standard operation conditions. Several techniques have been proposed, from electrical and capacitive sensors [
6,
7], to monitoring based on the analysis of the acoustic signal generated during the process [
8,
9] or solutions based on machine vision [
10,
11]. Among these alternatives, the optical analysis of the welding plasma radiation has proved to be a feasible and promising option. Initial proposals were based on the use of photodiodes and the analysis of emissions in the ultraviolet, visible and infrared regions [
12], determining for example the full-penetration condition in laser welding [
13].
A more sophisticated approach has been proposed by considering plasma optical spectroscopy, where emission lines appearing in the plasma spectra are analyzed to provide a plasma electron temperature
Te profile that shows a direct correlation to weld defects [
14,
15]. In the last years, several publications have dealt with refinements of this technique, allowing automatic defect detection [
16] and reducing the overall computational cost of the system [
17]. More recently, new strategies have been proposed to extract more information from the plasma spectra, like the correlation analysis proposed by Sibillano
et al. [
18], or proposals based on the use of optimization algorithms to generate synthetic spectra [
19]. Within the same framework, new spectroscopic parameters are also being studied in an attempt to improve the monitoring system efficiency [
20].
One of the key issues when using plasma spectroscopy lies in the correct selection of the emission lines chosen to calculate the output monitoring parameter. On the one hand, and depending on the selected instrumentation, there can be ambiguities on the emission line identification, what can end in unexpected results. On the other hand, and especially when defect classification is required, i.e., to be able to distinguish among different types of defects, it would be highly interesting to know which emission lines allow a better discrimination for classification purposes.
We have conducted some previous studies by using PCA (Principal Component Analysis) and SFFS (Sequential Forward Floating Selection) to feed an Artificial Neural Network [
21,
22]. The use of SFFS allows to gain knowledge about the best spectral bands selected. This will be used in this paper to propose a scheme based on both the SFFS algorithm and the line-to-continuum method [
23] to generate the required output monitoring profiles. The line-to-continuum method implies the use of only a single emission line that, in addition, does not need to be identified, i.e., associated with its chemical species.
2. Plasma Optical Spectroscopy for Welding Diagnostics
The plasma electron temperature has been widely used as the output monitoring parameter for welding diagnostics, given the known correlation between its profiles and the appearance of defects in the seams. There are basically two approaches that are employed in the literature: a precise estimation of
Te can be obtained with the Boltzmann-plot method [
23]:
where several emission lines from the same species are involved in the calculations. In the previous equation
Imn is the relative intensity of the chosen emission line,
m and
n the upper and lower states, respectively,
λmn the central wavelength associated with the line,
Amn the transition probability,
gm the statistical weight,
h the Planck's constant,
c the light velocity,
N the population density of the state
m, Z the partition function,
Em the upper level energy and
k the Boltzmann constant.
Te can be obtained if the left-hand side of
Equation (1) is represented versus
Em, given that the slope of the resulting line is inversely proportional to the temperature.
On the other hand, and due to considerations regarding the computational performance of the monitoring system, which determines its spatial resolution, a simplification of the Boltzmann-plot method, where only two emission lines are involved, is typically used:
This equation was proposed by Marotta [
24] for arc-welding processes. The commented techniques can be equally applied to both arc and laser processes, although for the latter the energies of the upper level disappear from the logarithm in the denominator.
Although different approaches can be taken into account, a possible processing scheme designed to provide the required
Te estimation from the acquired welding plasma spectra is presented in
Figure 1.
The identification of the emission lines is compulsory to obtain
Te. As shown in
Figure 1, this requires three additional processing stages (peak detection and line modeling and identification) and it has, as a consequence, a direct implication in the real-time performance of the overall approach. An alternative solution is to perform a previous spectral band selection stage with a data set consisting of spectra from the same welding process under different conditions. Afterwards those lines can be used without involving the identification in the processing scheme.
This could be applied for scenarios where the same materials and welding conditions are used, but it limits the flexibility of the analysis strategy. On the other hand, as previously commented, there is a lack of knowledge on the selection of the optimal emission lines for welding diagnostics. Some studies have been carried out comparing the response of different elements and species, but we believe that by specifically searching for the most discriminant spectral bands the overall performance of the monitoring system should be improved.
Within this framework, the use of the line-to-continuum method to generate the output monitoring profiles seems to be a good solution, given that it does not require the identification of the chosen emission line. However, it could be performed to avoid problems related to the effect of unresolved lines. This method was originally intended to estimate
Te by means of the following expression [
25]:
where
εl is the line intensity integrated over the line profile,
Ic the intensity of the adjacent background radiation (non-integrated),
Zi is the ion partition function,
ζ the free-bound continuum correction,
Ei the ionization potential and
Δλ the wavelength bandwidth. It is worth mentioning that an iterative method has to be employed to determine
Te via
Equation (3). However, in the proposed method we only use the
εl/ Ic ratio as the monitoring parameter. In a previous paper, this approach was initially explored in comparison to an alternative method based on the estimation of the wavelength associated with the maximum intensity of the continuum radiation [
20]. In this case we concluded that the line-to-continuum method could not be reliably used given the uncertainty regarding the selection of the spectral band for the subsequent analysis. In this paper the use of the SFFS algorithm will help to deal with this issue.
3. Sequential Floating forward Selection of Spectral Bands
The Sequential Floating Forward Selection (SFFS) algorithm [
26] is widely applied to reduce the dimensionality, i.e., the number of features or wavelengths, of spectral data prior to their interpretation [
27,
28]. The spectral band selection criterion is based on the capability of the distinct features to separate the different classes to be discriminated afterwards. The greater the separability between the classes that a wavelength provides, the better the wavelength is for classification purposes. Therefore, a similar approach could be followed to solve the uncertainty encountered in the selection of the optimum band within the plasma spectra for on-line welding quality monitoring by means of the line-to-continuum method described above [
20]. The aim of SFFS is to select
M spectral bands that best discriminate among correct welds and flaws, out of the total number of initial bands
N, so
M ≪
N. In this way the line-to-continuum profiles obtained later on for these
M bands will be optimized for defect detection. It is worth highlighting here that SFFS has already been used in some previous works by our group [
22]. However, the focus was, on the contrary, to provide a set of spectral bands to feed an Artificial Neural Network (ANN) for flaw discrimination as an alternative to the widely known feature extraction techniques [
21].
As mentioned before, the selection criterion for band selection is an objective function based on a measurement of the separability of the classes. Specifically, it is estimated in terms of the Bhattacharyya distance as in [
22]:
where μ
i is the mean of the i class; Σ
i its covariance matrix and |Σ
i| stands for the determinant of matrix Σ
i There are only two classes to be distinguished here: correct seams and defects. Therefore, the overall separability among the classes to be discriminated is straightly given by
(4).
In
Figure 2 several spectral curves of correct welds (a) and defects (b) are presented. As shown, some ranges of the spectra exhibit similar characteristics and, as a consequence, they are useless for defect detection purposes. The elimination of these ranges is compulsory prior to the application of SFFS. This procedure is named data decorrelation since only one spectral band, the one that maximizes the Bhatacharya distance, is selected within each redundant block. Each redundant block is obtained as a wavelength range where spectral bands have a high correlation coefficient, nearly 1.
SFFS is named “
forward” because it begins with an empty selected feature subset. It initially selects from the uncorrelated subset of spectral bands the most discriminant one according to the Bhattacharyya distance. Then it carries on sequentially adding the second most discriminant wavelength and so on. Therefore, in each iteration a new spectral band is added. However, if the iteration number is greater than 1, some of the previously added features can be removed if the separability of the classes enhances. Then, after every forward step (addition of a new spectral band) a number of backward steps (removal of several spectral bands) are applied as long as the resulting subsets are better than the previously evaluated ones according to the Bhatacharrya distance, and for that reason the selection procedure is also named “
floating”. This procedure continues until some termination criterion (for example the number of maximum features to be used or admissible maximum classification error) is met. In this case, the goodness of almost all uncorrelated bands, but sorted as given by the SFFS algorithm, i.e., in terms of their flaw detection capability, will be evaluated for defect discrimination purposes. A schematic diagram of the overall band selection procedure is depicted in
Figure 3.
4. Evaluation and Discussion of Experimental and Field Tests
Analyses of different types of weld processes have been performed to study the influence of the spectral band selection on the resulting output line-to-continuum profiles. This issue was initially explored in a previous publication by our group [
20], where an alternative technique was proposed, but line-to-continuum profiles were generated to allow comparison between both approaches. It seemed clear that the obtained results exhibited strong dependence on the chosen spectral band, what gave rise to the suitability of including a selection method in this regard.
Initial analyses were conducted on AISI-304 stainless steel plates, performing bead-on-plate seams with a TIG (tungsten inert gas) setup. The plasma optical radiation was collected by means of a 2 m optical fiber (50 μm core diameter) attached to an Ocean Optics USB2000 CCD-spectrometer with a spectral range from 195 to 535 nm. Argon was used as shielding gas, with a flow rate in normal operating conditions of 12 L/min. Three defects were provoked on two seams by simulating a perturbation on the gas flow, manually performing a shortening to 2 L/min during approximately 0.5 s. These seams are presented in
Figure 4a,b, where the defects under analysis have been highlighted. The use of the SFFS algorithm for these two experimental tests provided the set of spectral bands listed in
Table 1.
It can be observed that the selected emission lines have been also identified, and precisely the first one is not associated with an emission line but to continuum. * denotes that the spectral band is not centered on a particular emission line, but it is affected by its changes, i.e., it lies in the vicinity of that line.
Figure 4 shows the discrepancies to be found in the line-to-continuum profiles depending on the spectral band selected. In these profiles
IL stands for the relative intensity of the chosen spectral band and
IC for the corresponding background radiation.
Figure 4c,d presents the results obtained with spectral band 518.41 nm,
Figure 4e,f with 375.03 nm and
Figure 4g,h with 481.08 nm. The latter offers the best results in terms of defect discrimination, given that the three flaws located at x ≈ 6 cm for seam n° 1 [
Figure 4a], and at x ≈ 5 and 7 cm for seam n° 2 (
Figure 4b) are associated with rapid perturbations on the profiles. On the contrary,
Figure 4c,d does not show any correlation with these defects, indicating that the selected spectral band is not suitable in this case. By using the spectral band located at 375.03 nm the identification of the defects is again feasible, but the signal-to-noise ratio is clearly poorer in this case. It is worth mentioning that the dip at the beginning of
Figure 4g is due to the use of a lower welding current at the beginning of the process. As expected, a lower plasma electron temperature is associated with a lower welding current, given that the line-to-continuum profile is directly related to this parameter as suggested by
Equation (3). The slope of
Figure 4h was caused by a non-constant distance between the electrode tip and the plate provoked by the deformation of the plate by heat during previous seams. Again, the slope is associated with
Te, being the temperature higher as the distance between the electrode tip and the plate becomes smaller. These two situations can be also considered as defective, although the analysis via SFFS has been performed considering only the sections highlighted in
Figure 4a,b as weld defects.
An example of automatic weld defect detection has been included in
Figure 4g, using the approach proposed by Ancona
et al. in [
16]. In this case the reference signal has been generated considering the seam section between x ≈ 3.5 and x ≈ 5.5 cm as correct. The corresponding thresholds have been plotted by determining both the
IL/IC mean and standard deviation values, and chosing
α = 10 [
16]. It can be observed that not only the defect at x ≈ 6 cm, but also the lack of penetration at the beginning of the seam would be identified as defective, as the monitoring signal exceeds the calculated thresholds. The same analysis has been conducted in
Figure 4h, where again the signal associated with the defects under analysis and the initial section of the seam exceeds the thresholds.
The results related to spectral bands 375.03 and 518.41 nm are worse than expected taking into account that their selection by the SFFS algorithm is performed earlier than the selection of the 481.08 nm spectral band. An initial analysis indicates that a possible explanation lies in the suppression of bands correlated to these ones that would offer better correlation to the quality of the seams. This occurs for example between spectral bands located at 375.03 and 446.07 nm. The latter gives rise to profiles similar to the ones depicted in
Figure 4g,h, but this band is correlated to the former and, consequently, suppressed by the SFFS algorithm.
The plasma spectra for both experimental tests and spectral bands have been represented in
Figure 5. It can be appreciated how the band chosen by SFFS does not belong to an emission line, while in 446.07 nm a significant peak is to be found.
A feasible explanation for the uncertainty in the SFFS sorting criterion of the spectral bands is based on its assumptions about the probability distribution functions of the data. The employment of the SFFS algorithm implies a Gaussian or normal distribution of the classes. Correct welding could fit with this assumption but this is not necessarily the case of the defect class taking into the account the complexity of the physical phenomena occurring during the processes. An easy way to estimate whether the class distributions are Gaussian or not is by evaluating its third and fourth order statistics moments, namely skewness and kurtosis [
29].
Skewness is a measure of the asymmetry of the data around the class mean. Therefore the skewness of the normal distribution (as in any other perfectly symmetric distribution) is zero. Kurtosis is a measure of how outlier-prone a class distribution is and the kurtosis of the normal distribution is 3. Skewness and kurtosis values per class and wavelength are displayed in
Figure 6a,b, respectively, while
Figure 6c-f exhibits their corresponding histograms. Neither the skewness histogram pertaining to the correct welding class nor the one pertaining to defects are centered around zero, which allows us to conclude that none of the classes have a normal distribution. In spite of this fact, SFFS provides the selection of some spectral bands that allow defect detection such as the one in 481.08 nm and, as a consequence, a two step methodology is proposed. First the SFFS algorithm is applied and the line-to-continuum profiles are obtained for the selected wavelengths. Then the signal-to-noise ratio of these profiles is evaluated and the one with the highest value is selected as the monitoring signal.
The reordering of the spectral bands in terms of the
S/N* (Defect Sensitivity) parameter is presented in
Table 2. A detailed study of the resulting line-to-continuum profiles was conducted to elucidate a suitable method to quantify their sensitivity to detect the weld flaws. This
S/N* is calculated as follows: first, the signal-to-noise ratio over a section free of defects is estimated (
S/N in
Table 2), being in this case the seam segment between welding times 3 and 5 s for seam n° 1. Afterwards, the defect detection sensitivity is considered as the difference between the
IL/IC value at the defect (x ≈ 6 s) and x = 5.5, where the signal indicates a correct seam. Finally, this two values are multiplied to generate the
S/N* parameter. This new ordering of the spectral bands is in good agreement with the results shown in
Figure 4, as the spectral bands corresponding to
Figure 4c,e,g is classified with this new method in 19
th, 16
th and 4
th positions.
The proposed technique has been also checked with data obtained during field tests of a tube-to-tubesheet orbital TIG welding process. The material to be welded was INCONEL 690 tubes, and the tests were developed on a welding coupon simulating the conditions of a steam generator for a nuclear power station. The process is described in detail in [
30].
As the material and process parameters were completely different from the previously discussed experimental tests, a new set of spectral bands had to be generated with SFFS. The new bands are displayed in
Table 3, and
Figure 7 depicts the chosen output profiles for a tube with a defective section. The
S/N* parameter has been included in the Table, being in this case estimated with the field test shown in
Figure 7. The flaw was provoked by a perturbation on the gas flow rate by the operator, what gave rise to the defective section highlighted in
Figure 7a. It can be appreciated that the defective section is associated with perturbations on the
IL/IC profiles, while the seam labelled as correct is more stable. The perturbation on the protection gas flow is reflected on the welding plasma, and consequently also on the intensity of the different emission lines versus the continuum radiation. The operator catalogued the seam as defective after visual inspection, given the irregularities to be observed on the surface, as well as the associated bead color. Further analyses by means of destructive or non-destructive evaluation techniques could have helped to improve this classification, but in this case visual inspection was considered to be adequate. According to the ISO 6520-1:1998 standard this defect could be labelled as an irregular surface (excessive surface roughness). Four different spectral bands have been considered in this case: 404.14, 422.84, 480.52 and 423.64 nm. It is precisely the latter, associated with Fe I, the one which exhibits worst results in terms of sensitivity to defects, as all the profiles have been represented with the same vertical scale. It is important highlighting that the defective section could be identified, at least partially, in the four cases, but the profile in
Figure 7c offers the best sensitivity: in terms of
S/N* the spectral bands are classified as 7
th (404.14 nm), 2
nd (422.84 nm), 8
th (480.52 nm) and 10
th (423.64 nm). The
IL/IC thresholds have been calculated again for
Figure 7c, using in this case
α = 3.
A different defect is presented in
Figure 8a, where a porosity (highlighted in red) was created due to the application of a gel to the tube-to-tubesheet interface. It is interesting to note that, although only the porosity appears as visible, the gel was applied trough the whole interface, what probably provoked deviations from the standard quality requirements. This can be the explanation to the fast perturbations that appear in the profiles of
Figure 8b-e. Again,
Figure 8c, where the
IL/IC thresholds have been plotted, offers the best identification of the porosity and the higher defect sensitivity. It is interesting to note that in this case the classification provided by
S/N* seems valid for the first three bands, but the fourth (
Figure 8e) exhibits a better response than
Figure 8b, for example. This can be explained because the
S/N* analysis was performed with the field test associated with
Figure 7. In this case the generalization of these classifications to both seams would not be valid, and a separate study should be conducted.