Introduction

Wire arc additive manufacturing (WAAM) allows the manufacturing of complex-shaped parts that are difficult to produce using conventional manufacturing processes (i.e., machining, forging, casting, etc.) (Cunningham et al., 2018; Derekar, 2018; Williams et al., 2016). It can also simplify assemblies by reducing the number of required parts. This results in material savings and thus, part-lightening, which is very important for industries such as aerospace and automotive (Omiyale et al., 2022). However, as with any manufacturing process, the presence of internal defects can be problematic. It is therefore necessary to assess the quality of these parts. Non-destructive testing (NDT) and monitoring techniques can be used to reach this aim (Chen et al., 2021).

Monitoring the welding parameters (for example, current and voltage) is easy to implement and can help in identifying manufacturing deviations, particularly the shift in weld pool position, as proposed by Li et al. (2022). Nevertheless, there remains a need for further investigation to ascertain the potential correlation, if any, between variations in these parameters and prevalent defects in WAAM such as cracks, porosities, and lack of fusion (Chen et al., 2021). Concerning surface defects, several approaches have been proposed, including the utilization of a laser profilometer (Huang et al., 2022) and a high dynamic range (HDR) camera (Lee et al., 2021). Shin et al. (2023) have successfully integrated the data collected from this latter with the welding parameters to effectively detect geometric irregularities. In addressing similar defects, both on the surface and subsurface levels, He et al. (2021) have introduced a novel NDT method called magneto-optical imaging. Recently, some researchers have focused on the use of acoustical techniques, employing microphones positioned near the manufacturing torch (Bevans et al., 2023; Ramalho et al., 2022; Surovi & Soh, 2023). However, the presence of a noisy environment poses challenges in discerning pertinent defect-related information from the background manufacturing activity.

Alternatively, different research studies have proven the efficiency of ultrasound and radiography testing for the detection of defects in WAAM (Chauveau, 2018; Honarvar & Varvani-Farahani, 2020; Javadi et al., 2019; Lopez et al., 2018; Zimermann et al., 2021). For example, Chabot et al. (2020) applied phased array (PA) ultrasonic testing to WAAM aluminum alloy parts. They have demonstrated that this method enables the detection and characterization of porosity defects. Nevertheless, the use of ultrasound NDT techniques can be costly and time-consuming since additional machining of the WAAM part surface is required. This is because ultrasound sensors are not adapted to irregular surfaces (Ma et al., 2020). Radiographic testing can be performed without milling the surface of the WAAM part. However, there is another problem here, also related to the surface condition of these parts. Explicitly, the surface roughness of the WAAM part will generate a variation in the grey level in the radiographic image that could hinder the detection of defects. To the best knowledge of the authors, this issue has never been addressed in the literature. Hence, we propose, in this paper, an approach to overcome the said issue, and so facilitating the interpretation of radiographic testing images and enhancing defect detectability. This approach includes but not limited to 3D laser scanning measurements. The combination of radiographic image and 3D laser profilometry data should help to completely erase the effects of the surface roughness. Therefore, only information about the presence of defects will be highlighted.

The reminder of this paper is as follows: the next section is devoted to background where principles of radiographic testing and 3D laser scanning are briefly explained. This helps to understand Sect. “Approach”, which concerns the proposed approach. Sect. “Applications” presents some examples of applications. Finally, Sect. 5 concludes the paper and suggests future works.

Background

Radiographic testing

Radiographic testing (RT) is an NDT technique where a radiation source emits high-energy photons, usually X-rays, through a test specimen into a detector (Bossi et al., 2002). An internal representation of the specimen, in the form of a grey level image, is generated due to differences in thickness, which impact the absorption rate of the X-ray flux. Mathematically, the relation between the thickness and the absorption rate can be approximated as follows:

$$ {\text{I}} = {\text{ I}}_{0} {\text{e}}^{ - \mu \tau } , $$
(1)

where \({\text{I}}\) is the transmitted X-ray flux through the specimen, \({{\text{I}}}_{0}\), the incident X-ray flux, \(\upmu \), the absorption coefficient, and \(\uptau \), the crossed thickness.

From Eq. (1), it is clear that for a relatively small variation of the thickness \(\uptau \), the relationship between the grey level in the radiographic image and the thickness can be approximated by a linear function. This characteristic is the cornerstone of the proposed approach.

3D laser scanning

3D laser scanning is an important technique used to characterize the geometry of a given specimen. In this study, two commercial syste ms were used. The first one, which is shown in Fig. 1a, is provided by Micro-Epsilon Company. This system is easy to use and allows rapid and accurate measurements. However, it has limited degrees of freedom, and thus, it cannot be used for the characterization of complex-shape specimens. For this reason, an advanced measuring system called Hexagon absolute arm (Fig. 1b) was used. This second system is composed of a laser source and a camera. In this case, the measurement is ensured using the triangulation principle (Munaro et al., 2015) (i.e., the camera, the laser source, and the measurement point form a triangle). Consequently, knowing the distance and the angle between the camera and the laser source, the distance to the scanned point can be determined (Yaacoubi et al., 2019).

Fig. 1
figure 1

3D laser scanning: micro-epsilon laser tool (a), and Hexagon absolute arm (b)

Approach

Overview and challenges

The general idea of the proposed approach to mitigate the effects of the surface roughness in the radiographic image is presented in Fig. 2. Let’s consider a specimen that contains some defects. This specimen will be subjected first to radiographic testing and then to 3D laser scanning to measure its thickness at each point. Afterthat, these thicknesses will be converted to gray level to obtain a virtual radiographic image of the specimen. Ideally, by subtracting the original radiographic image from the virtual radiographic image, the surface roughness will be removed, and hence defects will be further highlighted.

Fig. 2
figure 2

Schematic illustration of the proposed approach

Nevertheless, it is not easy, in reality, to obtain this result because of many challenges. First, the approach relies on the hypothesis that there is a linear relationship between the X-ray density level and the thickness. This hypothesis is, however, only true for a small variation of thickness. Second, because of the divergence of the X-ray beam, the crossed path by the X-ray flux is different from the thickness measured via a 3D laser scanner. Third, X-ray flux is not uniform, which means that the same thickness would be represented by different density levels. Finally, the scattering phenomena are unpredictable. The second and third challenges can be faced, as will be seen later on, but the scattering phenomena are difficult to deal with.

Conversion from thickness to grey level

Finding the relationship between the thickness and the grey level is the most important step of the proposed approach. To do so, a step wedge, as shown in Fig. 3a, must be used. Radiographic testing should be applied on this step wedge using the same operational conditions as for the specimen being tested (Fig. 3b). The obtained result helps to determine the grey level that corresponds to each level of the step wedge (i.e., in terms of thickness). It should be noted here that using the radiographic image of a step wedge is a common practice to assess the depth of the detected defects in radiographic testing (Lee & Kim, 2005; Misale et al., 2009; Wang & Evans, 2021). In the present work, a linear regression is performed, as shown in Fig. 3(c). This function (also said model) can be written as:

$$ {\text{Grey level}} = \alpha \tau + \beta , $$
(2)

where \(\upalpha \) and \(\upbeta \) are the regression coefficients.

Fig. 3
figure 3

Methodology to establish the relationship between the thickness and the grey level: step wedge (a), its radiography image (b), and linear regression (c)

It is important to note that the choice of the step wedge (i.e., minimum and maximum thickness) should depend on the range of variation of the specimen thickness since the established linear model can provide a good estimate within the range of the data used to train the model, but it may not predict accurately outside that range.

To evaluate the goodness of fit of the found linear regression model, the determination coefficient \({{\text{R}}}^{2}\) is generally calculated (Cheng et al., 2014). It ranges from 0 to 1. The closer to zero is \({{\text{R}}}^{2}\), the more the data points spread far from the regression line. On the contrary, the closer to 1 is \({{\text{R}}}^{2}\), the more the cloud of points fits the regression line. Mathematically, \({{\text{R}}}^{2}\) is defined by the following equation:

$$ {\text{R}}^{2} = 1 - \frac{{\mathop \sum \nolimits_{i = 1}^{n} \left( {y_{i} - \hat{y}_{i} } \right)^{2} }}{{\mathop \sum \nolimits_{i = 1}^{n} \left( {y_{i} - \mathbf{\overline{{y_{ } }} }} \right)^{2} }}, $$
(3)

where \({\text{n}}\) is the number of measurements, \({{\text{y}}}_{{\text{i}}}\) is the actual value of the measure \(i\), \({\widehat{{\text{y}}}}_{{\text{i}}}\) is its estimated value and \(\overline{{\mathbf{y}} }\) is the mean of the measured values \(\mathbf{y}\).

Thickness correction

Now, before using the linear regression model, found in the previous section, to convert thickness values into gray levels, the measured thickness by the 3D laser scanner must be corrected. An illustration is shown in Fig. 4. Actually, the thickness \([{\text{BD}}]\) measured by 3D laser scanning does not really correspond to the crossed path by the X-ray flux \([{\text{BC}}]\). It is worth noting that this step is very important to get precise measurement. For example, in the case of pipeline testing, it was shown that this phenomenon led to an overestimation of the wall thickness (Tennakoon, 2005).

Fig. 4
figure 4

Schematic illustration of the thickness measurement correction, \({\mathbf{d}}_{\mathbf{s}\mathbf{d}}\) is the distance separating the X-ray source from the detector

To address this issue, the angle θ is first calculated using the following expression:

$$ \theta = \tan^{ - 1} \left( {\frac{{{\text{BE}}}}{{{\text{d}}_{{{\text{sd}}}} - {\text{BD}}}}} \right), $$
(4)

where \({{\text{d}}}_{{\text{sd}}}\) is the distance between the X-ray source and the detector. The distance \(\left[{\text{BE}}\right]\) can be calculated for each position of the 3D laser scanner by knowing the resolution of displacement (noted as \(\Delta {\text{p}}\)).

Besides, the expression of the crossed path by the X-ray flux is given by:

$$ {\text{BC}} = { }\frac{{{\text{BD}}}}{\cos \theta }, $$
(5)

By substituting the expression of the angle \(\uptheta \) in Eq. 5, the value of the crossed path by the X-ray flux can be obtained.

X-ray flux correction

Another issue, related this time to the radiographic image, is the non-uniformity of the X-ray flux, which is also known as the anode Heel effect (Salleh et al., 2014). Explicitly, the radiation intensity of the X-ray source is higher near the cathode, leading to a brighter image on that side (Kusk et al., 2021). This phenomenon is illustrated in Fig. 5, which shows a variation in the X-ray beam intensity across the detector surface, caused by the said effect.

Fig. 5
figure 5

Illustration of the Heel effect

To better assess this effect, a steel sheet with constant thickness was subjected to radiographic testing. The obtained radiographic image is presented in Fig. 6a. A row and column were extracted and shown in Fig. 6b and c, respectively. This result shows that even though the thickness of the sheet is constant (30 mm in this case), the grey level is variable; a trend can be clearly remarked. However, the proposed method relies on the hypothesis that there is a one-to-one correspondence (i.e., bijective function) between the grey levels in the radiographic image and the values of the thickness of the specimen. For this reason, a correction task is required.

Fig. 6
figure 6

Radiographic image of a steel sheet (a), examples of a row profile (b), and a column profile (c) underlying the anode heel effect

In the literature, different solutions were proposed to mitigate or cancel out this effect (Behiels et al., 2002; Do Nascimento et al., 2008; Nazemi et al., 2019; Pawluczyk & Yaffe, 2001). However, these solutions are generally based on complex mathematical models, such as artificial neural networks or additional hardware. In our case, since the observed trend can be interpolated by a polynomial function, to solve this issue, each row \({\mathbf{r}}_{\mathbf{i}}={({{\text{r}}}_{{\text{ij}}})}_{ 1\le {\text{j}}\le \mathrm{N }}, 1\le {\text{i}}\le {\text{M}}\) of the X-ray image is fitted using a quadratic polynomial function, which can be mathematically expressed as:

$$ {\text{P}}\left( {\text{x}} \right) = \mathop \sum \limits_{{{\text{k}} = 0}}^{2} {\text{a}}_{{\text{k}}} {\text{x}}^{{\text{k}}} { } = {\text{ a}}_{0} + {\text{a}}_{1} {\text{x}} + {\text{a}}_{2} {\text{x}}^{2} , {\text{ x}} \in {\mathbb{R}} $$
(6)

The coefficients \({{\text{a}}}_{{\text{k}}}, {\text{k}}=0, 1, 2\) can be determined by minimizing an error function that measures the misfit between the function \({\text{P}}\) and the raw data (Thompson & Balch, 1988), as follows:

$$ {\hat{\mathbf{a}}} = \mathop {\text{min }}\limits_{{{\text{a}}_{{\text{k}}} }} \frac{1}{2}\left( {\mathop \sum \limits_{{{\text{j}} = 1}}^{{\text{N}}} {\text{P}}\left( {{\text{x}}_{{\text{j}}} } \right) - {\text{r}}_{{{\text{ij}}}}^{2} } \right), $$
(7)

where \(\widehat{\mathbf{a}}\) is the vector of the optimal coefficients.

Then, the obtained vector \(\mathbf{p}\) (the discrete form of the polynomial function \({\text{P}}\)) is to be subtracted from \({\mathbf{r}}_{\mathbf{i}}\). The last step is adding the mean of \({\mathbf{r}}_{\mathbf{i}}\) to the subtraction result.

Hence, for a given original (i.e., raw) radiographic image \({\mathbf{R}}^{\mathbf{o}}=\boldsymbol{ }{{({\text{r}}}_{{\text{ij}}}^{{\text{o}}})}_{1\le {\text{i}}\le {\text{M}}, 1\le {\text{j}}\le {\text{N}}}\), the corrected image \({\mathbf{R}}^{\mathbf{c}}=\boldsymbol{ }{{({\text{r}}}_{{\text{ij}}}^{{\text{c}}})}_{1\le {\text{i}}\le {\text{M}}, 1\le {\text{j}}\le {\text{N}}}\) can be obtained by calculating, for each row, the following formulae:

$$ {\mathbf{r}}_{{\text{i}}}^{{\text{c}}} = {\mathbf{r}}_{{\text{i}}}^{{\text{o}}} - {\mathbf{p}} + { }\frac{1}{{\text{N}}}{ }\mathop \sum \limits_{{{\text{j}} = 1}}^{{\text{N}}} {\text{r}}_{{{\text{ij}}}}^{{\text{o}}} , 1 \le {\text{i}} \le {\text{M}} $$
(8)

An example of a result is presented in Fig. 7, which shows the polynomial function P of the row profile given in Fig. 6b (Fig. 7a) and its corresponding corrected profile using Eq. 8 (Fig. 7b). As it can be noticed that the grey level is almost uniform except at the beginning and end of the data, where some trends can be observed. These trends can be due to the phenomena of scattering (diffraction), which occur at the edges of the specimen. Explicitly, when the X-rays come near the edges, they can be deflected from their original path due to the irregularity of the surface. This results in the divergence of X-rays in various directions, causing them to spread out and hence the decrease in grayscale levels (Bossi et al., 2002).

Fig. 7
figure 7

Examples of curve fitting using a quadratic polynomial function (a), and the corresponding corrected profile (b)

The edges, in this case, were abrupt, while WAAM specimens contain more smooth edges. Hence, the X-ray flux encounters a more gradual change in density, leading to a relatively lower amount of scattering compared to abrupt edges. Therefore, the impact of scattering is less severe.

Implementation

The methodology to implement the proposed approach is presented in Fig. 8. As it can be seen, the radiographic image (\({\mathbf{R}}^{\mathbf{o}}\)) and the 3D laser measurements data (\({\mathbf{E}}^{\mathbf{r}}\)) undergo, in the beginning, separate processing. The thickness measurements data are first corrected. Then, using the radiographic image of a step wedge, the relationship between the thickness and grey level is approximated using linear regression. Based on this function, the corrected thickness data (\({\mathbf{E}}^{\mathbf{c}}\)) are converted into a virtual radiographic image (\(\mathbf{L}\)). Concerning the radiographic image, the Heel effect is first corrected to mitigate the effect of the non-uniformity of the X-ray flux. Then, a matching is performed between the real radiographic image (\({\mathbf{R}}^{\mathbf{c}}\)) and the virtual one (\(\mathbf{L}\)), by visually determining the common part between the two images. Afterthat, \({\mathbf{R}}^{\mathbf{c}}\) is resized, by applying a downsampling operation to match the dimensions of \(\mathbf{L}\).

Fig. 8
figure 8

Flowchart of the implementation of the proposed approach, \({\mathbf{d}}_{\mathbf{L}}\) and \({\mathbf{d}}_{{\mathbf{R}}^{\mathbf{c}}}\) are the dimensions of the virtual and original radiographic images, respectively

Once the two types of data are processed, \({\mathbf{R}}^{\mathbf{c}}\) is subtracted from \(\mathbf{L}\). Here, depending on the effects of defects on the grey level (i.e., an increase or a decrease), the subtraction operation can result in negative and positive values. Therefore, two images can be derived from the obtained result, one keeping only the positive values of subtraction (\({\mathbf{S}}^{+}\)) and the other keeping the negative values (\({\mathbf{S}}^{-}\)). Mathematically, the result can be written as follows:

$${\mathbf{S}}^{\kappa }=\left\{\begin{array}{l}{s}_{ij}^{\kappa }= \kappa \left({l}_{ij}-{{{\text{r}}}_{{\text{c}}}}_{ij}\right) if {s}_{ij}^{\kappa } \in {\mathbb{R}}^{\kappa }\\ {s}_{ij}^{\kappa }=0 else \end{array},\right.$$
(9)

where \(\kappa \) is the plus or the minus operator, \({\mathbf{S}}^{\kappa }={{(s}_{ij}^{\kappa })}_{i,j\boldsymbol{ }\in {\mathbb{N}}}\), \(\mathbf{L}={({l}_{ij})}_{i,j\boldsymbol{ }\in {\mathbb{N}}}\), and \({\mathbf{R}}^{\mathbf{c}}={({r}_{ij}^{c})}_{i,j\boldsymbol{ }\in {\mathbb{N}}}\).

As mentioned earlier, the resulting image \({\mathbf{S}}^{+}\) should highlight defects generating an increase in the optical film density, such as the presence of porosities, lack of fusion or cracks. On this result, these defects will appear in white, and the healthy zones in black. While the resulting image \({\mathbf{S}}^{-}\) should highlight metallic inclusion type defects, for example tungsten used in inert gas tungsten (TIG) welding.

Applications

Weld bead

In order to test the efficiency of the proposed approach, a bead on a plate was considered. Firstly, a radiographic image of the bead and a step wedge was obtained. It is presented in Fig. 9a. Here, the image quality indicators (IQIs) were added to assess the quality of the resulting image. These indicators, which contain multiple wires of increasing diameter, are typically used in radiographic testing to evaluate the visibility of essential details in the radiographic image, especially the size and shape of the detectable discontinuities or defects (Solomon et al., 2013).

Fig. 9
figure 9

Radiographic image of a weld bead (a), laser measurements (b), linear regression model (c), and result of the application of the proposed approach on a single profile (d)

The weld bead heights were measured using a 3D laser system. The result is shown in Fig. 9b. The measured heights were then converted into grey level using the linear regression model shown in Fig. 9c. In this case, the value \({{\text{R}}}^{2}\) was around 0.99, which means that there is a strong linear correlation between the thickness and the grey level.

An example of a profile of \({\mathbf{R}}^{\mathbf{c}}\) (green curve) and that of \(\mathbf{L}\) (blue curve) crossing the weld are given in Fig. 9d. It can be noticed that the subtraction between the two profiles, shown also in Fig. 9d (red curve), is almost zero at the beginning because there is a perfect matching between the two curves. Then, some clear differences can be observed. They represent the hole drilled from the back wall of the plate along with the IQIs, which were added when performing radiographic testing. At the end of the two curves, a shift between them can also be noticed. This might be due to the abrupt change in the height of the weld seam after this position. The obtained results are presented in Fig. 10, which shows from top to bottom \({\mathbf{R}}^{\mathbf{c}}\), \(\mathbf{L}\), \({\mathbf{S}}^{+}\), and \({\mathbf{S}}^{-}\).

Fig. 10
figure 10

Result of the application of the proposed approach on a weld bead: \({\mathbf{R}}^{\mathbf{c}}\)(a), \(\mathbf{L}\) (b), \({\mathbf{S}}^{+}\) (c), and \({\mathbf{S}}^{-}\) (d)

Visually, the grey level of the weld in \(\mathbf{L}\) is very close to that of \({\mathbf{R}}^{\mathbf{c}}\). Figure 10c is the resulting subtraction image \({\mathbf{S}}^{+}\). This figure shows that the weld is almost completely erased and highlights the differences between \({\mathbf{R}}^{\mathbf{c}}\) and \(\mathbf{L}\). We can clearly notice the IQIs that were added to the specimen. However, the dark cercle in \({\mathbf{R}}^{\mathbf{c}}\) disappears in this result. This is because the result of subtraction is negative in this case. Thus, it will rather appear in the complementary image (i.e., resulting image \({\mathbf{S}}^{-}\)) as it is shown in Fig. 10d. It can be remarked, however, that in \({\mathbf{S}}^{-}\), the weld seam is still visible. This is probably due to some errors, which include linear regression, scattering noise, etc.

WAAM walls

Manufacturing

Experimental configuration

The considered WAAM specimens in this study are two walls with the following dimensions: 200 mm length, 100 mm width, and 20 mm height. The used robotic manufacturing cell is shown in Fig. 11. It is equipped with a KUKA KR30 robot, a KRC4 controller, and a TPS4000 generator with Cold Metal Transfer (CMT) technology (Selvi et al., 2018).

Fig. 11
figure 11

WAAM robot (a), and zoom over the working table (b)

The used filler material is a C-Mn steel wire of type ER100S-G/G 69 4 M21 Mn3Ni1CrMo. Its chemical composition is shown in Table 1. The sheet used as baseplate is S355 steel with a thickness of 20 mm. It allows dissipation of the heat generated by the succession of deposits and ensures a certain rigidity, which limits the deformations. Before each deposit, this baseplate was grinded to remove the oxide layer on the surface and then cleaned with acetone to remove all traces of grease.

Table 1 Chemical composition of the filler material
Optimization of the deposition parameters

The optimal manufacturing parameters are presented in Table 2. Some of these parameters were selected according to the filler material in order to obtain a stable arc and therefore, a regular deposit. The parameters that can have a significant impact on the geometry of the deposit are the wire feed rate and the deposition rate.

Table 2 Manufacturing parameters

The methodology used to select the optimal deposition parameters is based on a trial-and-error approach. It is presented in Fig. 12. It consists in successively constructing single beads and small walls to validate the manufacturing parameters according to arc instabilities, lack of regularity, or the presence of defects. More precisely, the objective at the beginning is to weld a single bead with different wire feed and deposition rates to have different geometries (height and width). To do so, three values of wire feed rate were studied: 5, 7.5 and 10 m/min. The deposition rate values vary from 20 to 160 cm/min.

Fig. 12
figure 12

Methodology to find the optimal manufacturing parameters

The characterization of each weld bead is done using a 3D laser scanner to determine its geometrical characteristics (i.e., width and height of the bead). It is important to know here the relationship between the geometry of the weld bead and the deposition parameters to optimize the choice of these parameters.

Once the deposition parameters have been selected according to the geometry and regularity of a signal bead, they were tested for the manufacturing of small walls. The deposition strategy chosen to make the walls is a round trip in the longitudinal direction. It is composed of three passes per layer. This strategy, which is shown in Fig. 13, is alternated in each layer to improve the geometric regularity of the wall. Actually, the striking that causes an abundance of material balances the extinguishing, which produces a lack of material, and vice versa.

Fig. 13
figure 13

Illustration of the manufacturing strategy

At this stage, the validation of the deposition parameters takes into account the presence of internal defects and the evolution of the geometry during manufacturing. Therefore, each layer is first characterized using a 3D laser scanner after its deposition. This allows to study the evolution of the top layer shape during the manufacturing process. Then, the wall is checked over multiple sections using macrographic analysis. The deposition parameters are considered as optimal if no defects are found on the different extracted sections.

Indeed, this approach for selecting optimal manufacturing parameters is time-consuming and costly. Nevertheless, with regard to the current state of the art, there is no other efficient method, which can be used for this purpose. Actually, this approach is still being used even in welding to establish the welding procedure specification (WPS). Different researchers have proposed to apply machine learning techniques to address this issue (Juang & Tarng, 2002; Xu et al., 2015; Zhang et al., 1996). The problem is that these techniques were performed in laboratory conditions and so they are difficult to embed in a production line as they require the construction of a database with complete characteristics of the welds (i.e., welding parameters, geometrical and mechanical properties of the weld).

Defects creation

The defects were obtained by altering the gas protection during deposition. To do so, the fume extractor was placed close to the deposition area as shown in Fig. 14(a). In this case, the air flow strongly disturbs the gas protection and results in arc instability and hence the occurrence of porosities.

Fig. 14
figure 14

Manufacturing a wall having defects: experimental setup (a), and porosities locations (b)

These defects were created in two zones of the wall: at 1/3 and 2/3 of its height as shown in Fig. 14b. In the first zone (located at 1/3), the fume extractor was only activated during the deposition of the central bead of the layer and during deposition of two consecutive layers. Thus, the beads located on the edges do not have any disturbance of the gas protection. Concerning the second zone (located at 2/3), the fume extractor was activated during the deposition of the whole layer and during the deposition of two consecutive layers.

Testing

Defect-free wall

A defect-free wall, shown in Fig. 15a, was obtained using the found optimal manufacturing parameters. As it can be noticed, the top-right corner was machined to add a step wedge. Radiographic testing was performed over this specimen using the parameters shown in Table 3. Then, the obtained radiographic film was digitized with a resolution of 50 µm. The result is shown in Fig. 15b. 3D laser measurements were also performed on this specimen. The result is presented in Fig. 15c.

Fig. 15
figure 15

Defect-free wall: Photography (a), its radiographic image (b), and its 3D laser scanning image (c)

Table 3 Parameters of radiographic testing
Wall with intentional defects

The proposed approach has been also applied on a second wall that contains intentional defects namely, porosities. The manufactured wall is shown in Fig. 16a. The radiographic parameters were kept the same as for the healthy wall except the use of a D3 detector with a time exposure of 13 min. The obtained X-ray film was then digitized, and the result is given in Fig. 16b. After that, the 3D laser scanning was performed in order to measure the surface profile of the specimen. The result is presented in Fig. 16c. It is important to note here that to enable perfect matching between radiographic image and 3D measurement image, a small rod was added to the surface of the specimen on two different diametrically opposed positions.

Fig. 16
figure 16

Second manufactured wall: Photography (a), its radiographic image (b), and its 3D laser scanning image (c)

To avoid machining the part of the specimen containing the step wedge as in the case of the defect-free wall, radiographic testing of step wedge was performed separately. However, using the same operational parameters, the radiographic result was not satisfactory. Actually, the signal saturation masks the separation between the step wedge levels. It was found that the main parameter that improves the result is the exposure time. Figure 17 shows the obtained results for three different exposure time.

Fig. 17
figure 17

Influence of the exposure time on the result of radiographic testing of a step wedge: 10 min (a), 11 min (b), and 13 min (b)

Application of the proposed approach

Defect-free wall

The real radiography (\({\mathbf{R}}^{\mathbf{c}}\)) and the virtual one (\(\mathbf{L}\)) of the defect-free wall are given in Fig. 18a and b, respectively. The image \({\mathbf{R}}^{\mathbf{c}}\) seems to be blurry comparatively to \(\mathbf{L}\). One possible reason for this difference is the phenomenon of scattering in radiographic testing. Besides, the two drilled holes in the specimen, clearly shown in \({\mathbf{R}}^{\mathbf{c}}\), are not properly presented in \(\mathbf{L}\). Actually, the one on the top-right is not shown and the one on the bottom-left is represented by white spot which indicates that measuring errors happened at this position.

Fig. 18
figure 18

Defect-free wall: \({\mathbf{R}}^{\mathbf{c}}\) (a), \(\mathbf{L}\) (b) and profiles obtained from \({\mathbf{R}}^{\mathbf{c}}\) and \(\mathbf{L}\) along with the result of subtraction (c)

A profile from the images \({\mathbf{R}}^{\mathbf{c}}\) and \(\mathbf{L}\) along with the result of subtraction are shown in Fig. 18c. This result shows that, at this position where the profiles were taken, a nearly perfect match is noticed between the two profiles except near the edges. The green curve shows the result of subtraction, which is very close to zero.

The subtraction results between \({\mathbf{R}}^{\mathbf{c}}\) and \(\mathbf{L}\) are presented in Fig. 19. Figure 19a represents the resulting image \({\mathbf{S}}^{+}\). As expected, the grey level is almost uniform for the whole specimen except the machined corner where the step wedge was added and some white random spots that are due to measuring errors when performing 3D laser scanning. As a reminder, this specimen was manufactured using optimal manufacturing parameters. It is supposed thus to be free of defects.

Fig. 19
figure 19

Results after application of the proposed approach on a defect-free wall: \({\mathbf{S}}^{+}\) (a), and \({\mathbf{S}}^{-}\) (b)

The resulting image \({\mathbf{S}}^{-}\) is presented in Fig. 19b. Unlike \({\mathbf{S}}^{+}\), this result presents some features that are probably due to an overestimation of the relationship between the thickness of the specimen and the grey level.

Wall with intentional defects

Concerning the second wall, the \({\mathbf{R}}^{\mathbf{c}}\) image is shown in Fig. 20a. After converting the measured thicknesses using 3D laser scanner into grey level values, the resulting image \(\mathbf{L}\) is shown in Fig. 20b. Clear differences between the images can be noticed especially for the second position of defects (i.e., location 2/3 shown in Fig. 14b). However, as in the previous example, it can be noticed that \({\mathbf{R}}^{\mathbf{c}}\) is blurry than \(\mathbf{L}\). Besides, the grey level of \(\mathbf{L}\) is relatively brighter than that of \({\mathbf{R}}^{\mathbf{c}}\). This issue is probably due to the data of the step wedge used in the linear regression as the exposure time was not the same for the specimen.

Fig. 20
figure 20

Wall with intentional defects: \({\mathbf{R}}^{\mathbf{c}}\) (a), \(\mathbf{L}\) (b), and profiles obtained from \({\mathbf{R}}^{\mathbf{c}}\) and \(\mathbf{L}\) along with the result of subtraction (c)

Figure 20c shows a profile extracted from \({\mathbf{R}}^{\mathbf{c}}\) and \(\mathbf{L}\) crossing the two positions of defects. The blue profile is obtained from real radiography and the red one from the virtual radiography. In the beginning, the two profiles seem to be perfectly matched that’s why the result of subtraction (i.e., green curve) is close to zero. At the first position of defect, a change of behaviors between the two curves can be noticed. At the end, an overestimation of the values of thickness is observed. This results in subtraction errors.

The results of subtraction are shown in Fig. 21. In the resulting image \({\mathbf{S}}^{+}\), the positions of defects are clearly highlighted. This is because the surface roughness is significantly mitigated. However, in the result \({\mathbf{S}}^{-}\), the representation of the surface roughness remains visible except for the first position of defects where these patterns are barely visible. In the second position of defects, some porosities can be noticed in black color.

Fig. 21
figure 21

Results after application of the proposed approach on the second manufactured wall: \({\mathbf{S}}^{+}\) (a), and \({\mathbf{S}}^{-}\) (b)

In order to clearly quantify the added value of proposed processing approach, two curves representing the sum of the rows of \({\mathbf{R}}^{\mathbf{c}}\) and that of \({\mathbf{S}}^{+}\) were first obtained. These curves, presented in Fig. 22, show that the presence of defects induces large variation of the amplitude in the case of the processed data, especially for the second defect zone.

Fig. 22
figure 22

Comparison between the result of defect detection using original data and processed data. These curves were obtained by summing the rows of \({\mathbf{R}}^{\mathbf{c}}\) and that of \({\mathbf{S}}^{+}\)

Then, a statistical measure called detectability index (DI) was derived, which can be written as follows:

$$ {\text{DI}} = { }\frac{{\sigma { }\left( {\text{defective zone}} \right)}}{{\sigma { }\left( {\text{healhty zone}} \right)}}{ }, $$
(10)

where \(\upsigma \) is the standard deviation.

The healthy zone was fixed at the first 150 values, the same window (i.e., 150 values) was taken for the defective zones. The results are depicted in Table 4. They show that the standard variation of the amplitudes of the first defective zone for processed data is almost four times bigger than that of the healthy zone while for the original, this value is almost the same, which means that statistically, it is difficult to discriminate between the healthy and defect zones in this case. Concerning the second defective zone, the standard deviation of the amplitudes for the processed data is almost 27 times compared to the healthy zone while it is only 2 times for the original data.

Table 4 Results of the detectability index of the two identified zones of defect

Validation

To evaluate the effectiveness of the proposed approach, a comparison with other NDT methods namely phased array ultrasonic testing and computed tomography was performed.

Phased array ultrasonic testing

Phased array (PA) ultrasonic testing is a very popular NDT technique used to inspect and evaluate the integrity of materials and structures. It employs multiple ultrasonic elements arranged in a phased array probe, allowing for the generation of ultrasonic beams that can be focused and steered electronically. The received signals are used to generate a visual representation of the internal structure of the material.

In order to enable the application of this technique in our case (i.e., avoid the constraint of surface irregularities), the scanning was performed from the substrate side as shown in Fig. 23a. The characteristics of the used PA probe are given in Table 5.

Fig. 23
figure 23

Result of defect detection using phased array ultrasonic technique applied on the second manufactured wall

Table 5 Characteristics of the used PA probe

The result is shown in Fig. 23b. As it can be seen, the two lines of the intentionally created defects are clearly shown. It is worth noting here that for the ease of interpretation of this result, the interface and backwall echoes were removed.

Computed tomography

X-ray computed tomography was applied on the same wall. Details about the working principles of this technique and its application to additive manufacturing parts are discussed in (Khosravani & Reinicke, 2020).

In the present work, a specific acquisition procedure was used. Actually, the projections obtained at certain angular positions during the 360° rotation leading to high crossed thickness were not taken into account for the reconstruction. To enable a clear look on the inside of the specimen, cross-section areas at different positions were extracted. The results are presented in Fig. 24. These results confirm the positions where the defects were intended to be created and show the distribution of the porosities at these positions.

Fig. 24
figure 24

Tomography results obtained from the wall with intentional defects

Conclusions and perspectives

This paper proposed a novel approach to improve defect detectability and interpretation of radiographic testing results on WAAM parts. The approach involves measuring the thickness of the part using a 3D laser scanner and converting these values into grey level image. Then, subtracting the digitized real radiographic image of the specimen from the obtained image.

One of the significant advantages of this proposed approach is that it eliminates the need for grinding or milling to perform radiographic testing. While the results obtained were promising, some improvements are still required to mitigate the effects of the scattered photons. Besides, special attention has to be paid to the range of thickness provided by the step wedge to construct the linear regression model. This range should include the range of thickness of the WAAM parts. Otherwise, the constructed model could give inaccurate estimate of the gray level for a given thickness.

Future work will focus on optimizing the operational parameters in radiographic testing by increasing the source energy to mitigate the effect of scattered photons. In addition, digital radiography will be applied since the digital detectors exhibit a linear response as a function of the exposure, which should result in a more reliable relationship between the thickness and the observed gray level. Furthermore, image processing techniques based on feature recognition will be employed to ensure automatic matching between the original and the virtual radiographic images.