1 Introduction

The aerospace industry has been exploring powder bed fusion (PBF) to create lightweight and complex structures fabricated with high-performance metal alloys. However, to broaden industrial adoption of PBF for flight critical structures, evidence of reliability will need to be collected layer by layer for each fabrication—particularly in light of the high standards in the aerospace industry and the general lack of flight heritage for additive manufacturing in general. The unobstructed view of the exposed top surface during the layerwise PBF fabrication allows for the monitoring in an unprecedented manner including both the melt pool and the associated ejecta. A qualify-as-you-go in situ methodology will be required to ensure the reliability.

Within the family of PBF processes, metal laser powder bed fusion (M-LPBF) has been optimized to fabricate complex structures with a diversity of metal powders. This process operates by focusing a laser onto a uniform layer of powder, which selectively melts (welds) the powder to a baseplate or previous layers of melted powder (Fig. 1). Process feedback is generally limited from most commercial grade systems and will be an inevitable requirement for the full qualification of AM-fabricated structures due to a general lack of confidence in the existing open-loop systems [1]. Metal ejecta (spatter) during the lasing process is a common occurrence and has been examined previously to determine or predict the quality of the melt and resulting fabricated structure [2,3,4,5]. The final destination of the spatter after ejection can fall within the boundaries of the structure under fabrication thereby introducing contamination of unintended material in subsequent layers. Building of high-quality structures today requires knowledge, careful observation and planning of part build order relative to laser location and gas flow in the powder bed system to minimize the effects of spatter. Furthermore, along the trajectory of the spatter, the material can occlude the laser, resulting in shadowing which may cause lack-of-fusion defects.

Fig. 1
figure 1

Common LPBF layout

1.1 Previous work of others

Defects in M-LPBF include lack of fusion [6], spatter [7], keyholing [8], residual gas porosity [9], balling [10], hatching strategy defects and recoater defects [11]. Nondestructive evaluation and in situ monitoring was overviewed by [12] and demonstrates the necessity of further advance in these topics, specifically for eventual closed-loop control in LPBF. This article assumes that various laser parameters could lead to differing spatter velocities and therefore proposes an effective and financially feasible way to record these velocities in real time. These velocities not only provide valuable insight into physics-based models such as those proposed by Cunningham et al. [10], but also will improve intuition for determining the optimal noble gas recirculation flow (often available on commercial systems) across the powder bed to redirect spatter from contaminating the build. Spatter landing on the melting section has been reported to negatively impact the subsequent layers, as the ejecta are often larger in size than the average powder and layer sizes, and could contain oxidation contamination [7, 10, 13,14,15,16].

The ultimate goal of in situ monitoring is to provide feedback control. Behaviors of spatter in M-LPBF have been explored previously, but none have used high-speed stereovision at the macro level to observe overall trends in optimal build conditions [2, 5, 17,18,19]. [20,21,22,23,24] investigated monitoring the process at the melt pool by measuring the melt pool shape and temperature, and although the origin of spatter is the melt pool, this is beyond the scope of the present work. The essence of M-LPBF is the melt pool, which is vital to understanding the quality of a fabrication; previous work has monitored and tracked the scan path which anecdotally has a significant impact on the amount and direction of spatter [25,26,27,28,29]. This work is intended to identify spatter behavior and thereby inform the process with the goal of eventually providing feedback for closed-loop control.

Utilizing high-speed digital videography to characterize spatter has been done in several studies. Frame rates have varied between 1000 frames per second (fps) and 6000 fps [5, 17, 30]. Thermal high-speed cameras have been used as well [7]. Ultra-high-speed imaging (100,000 fps or more) has led to breakthroughs in spatter-creating mechanisms, which may be the result of vapor-driven entrainment of micro-particles by an ambient gas flow [31]. This work detailed three types of particles using SS 316L and Ti64, the first have a low vertical momentum and are consumed by the melt pool, the second of which have higher vertical momentum but originated more than two melt pool widths away from the beam and were declared as “cold particles”, and the third, being the most common which are the incandescent hot particles and have a similar vertical momentum as the second type. The authors also concluded that 60% of spatter particles observed are the third category with approximate velocities of 6–20 m/s, while the first and second categories had 3–8 m/s and 2–4 m/s, respectively.

Recently, Guo et al. and Zhao et al. have utilized high-speed X-ray imaging to monitor melt pool and spatter formation [32, 33]. The work shows great insights into the balance between the Marangoni flow and recoil pressure forces which can be combined to create spatter as well as keyhole defects. Spatter was noted on landing sights which lead to the creation of lack of fusion defects in the layer.

Previously, the authors had preliminarily laid the basis for this work without fully developing the algorithms to work on bulk data sets [13, 34]. This work focuses on showing that bulk statistical measurements of the spatter can be ascertained with minor financial investment and is feasible as a monitoring tool for build weld quality. It is believed that these results can further be used in the development and verification of physics-based models.

2 Methods and materials

The goal of this study is to statistically quantify the velocity of spatter under recommended conditions. An EOS M290 M-LPBF system was utilized with 18% Ni maraging 300 (MS1) steel powder with a laser power of 285 Watts, scanning speed of 960 mm/s, hatch spacing of 0.11 mm, and 40-micron layers. A low-cost system (defined here as less than $10,000 USD) was developed to facilitate adoption and reproducibility. Calibration and camera mount design were crucial to gain accurate measurements from the system and are available from the authors.

2.1 High-speed stereovision camera system

Two low-cost, high-speed cameras (FPS 1000HD, The Slow Motion Camera Company, United Kingdom) were purchased, and a stiff mount was built using ULTEM™ 9085 to minimize any movement relative between the cameras, thereby allowing for standardization during calibration and live spatter measurements. Images were taken with 1280 × 720 pixels in raw format with an 18 mm lens. The camera system was mounted in front of an EOS M290 such that the images were captured through the front port window. The image field of view was 279 mm by 214 mm at the calculated 559 mm working distance, and the calculated pixel size was 0.064 mm2. Figure 2 displays the M-LPBF system and a schematic of the camera system configuration.

Fig. 2
figure 2

EOS M290 with front port window (left) and stereovision schematic imaged through the window showing distance to build plate and corresponding angle (right)

2.2 Stereovision and epipolar geometry to identify velocity and direction of spatter

For calibration, intrinsic parameters were obtained which include information on the camera calibration matrix (K) and distortion coefficient as described in [34]. The former matrix is given by

$$K = \left[ {\begin{array}{*{20}c} {f_{\text{x}} } &\quad 0 &\quad {c_{\text{x}} } \\ 0 &\quad {f_{\text{y}} } &\quad {c_{\text{y}} } \\ 0 &\quad 0 &\quad 1 \\ \end{array} } \right]$$
(1)

where K is camera calibration matrix, fx and fy are focal lengths in pixel units, and cx and cy are principal points, typically at the center of the image. The open source Computer Vision (OpenCV) library was used to locate features on a checkerboard in manifold positions (Fig. 3). OpenCV is an open source computer vision library that is maintained by Intel, Inc. (Palo Alto, CA, USA). The intrinsic parameters are applied to provide stereo calibration, in which two images captured simultaneously provide the extrinsic parameters corresponding to the rotation (R) and translation (t) between the two cameras,

Fig. 3
figure 3

Stereo calibration between images coincidentally captured by two cameras

$$P = K[I|0]$$
(2)
$$P^{\prime} = K^{\prime}[R|t]$$
(3)

where P is a 3 × 4 projection matrix, I is the identity matrix, R is the rotation matrix and t is the translation matrix. The calibrated matrices are used to correct the two simultaneous frames using OpenCV with rectification to apply a correction transformation on both images. The projection matrices were then used to triangulate two matched points between the simultaneous frames. This method translates a pair of row and column values for the two matched points to a three-dimensional point within the build volume. By locating two points representing the beginning and end of a spatter, the speed, direction, and age can be calculated.

To validate the technique in a simulated measurement, two images of a caliper were captured (Fig. 4). By identifying two points, the distance between both was measured. The distance of the first measurement between the two points in the caliper was 50.01 mm, while the distance measured with stereovision was 50.690 mm, producing an error of 1.34%. The second distance was 9.99 mm, while the distance measured with stereovision was 9.986 mm, producing an error of 0.04% (which is less precise as it is below the accuracy of the caliper).

Fig. 4
figure 4

Stereovision quality assurance using a caliper (50.01 mm top, 9.99 mm bottom). Red text represents the 3D coordinates for the first point, the green for the second and the blue represents the 3D distance between both. OpenCV was used to measure the values and print the text on the pictures

2.3 Computer vision algorithm

A computer vision algorithm was utilized to identify spatter and find average vector lengths. As the exposure time for each frame was 500 µS, incandescent spatter was smeared across the image due to overexposure—a flaw that was leveraged to calculate the average velocity. Using stereovision, the start and stop of each overexposed line were calculated in three-dimensional space. The algorithm for identifying the spatter line on two simultaneous images included converting the images to grayscale and then thresholding to locate all bright features. As spatter became progressively darker with age, the brightness was used to filter the spatter to identify each spatter only once—although most spatter can be seen on multiple sequential frames. Additional filtering was implemented by identifying the general location of the melt pool within an image and then locating all high-aspect ratio contours (length five times greater than width). If the estimated line of the long contour projected back through the melt pool, the location of the spatter start and stop pixels were recorded and all other contours were ignored. By identifying the start and stops of any single spatter from two perspectives, the 3D length could be calculated with epipolar geometry. Given the length was traversed over a 500 µS exposure time, the velocity can be calculated—the main objective of this effort. One challenge with this method is that the glow of the spatter inherently makes the spatter appear larger, which leads to a basic error in the measurements—particularly for shorter (slower) spatter. Future efforts will optimize exposure times to reduce this error and will also consider methods for estimating the particle size based on the width of the contour—assuming the particles generally have an aspect ratio of one and are spherical.

3 Results and discussion

A build of maraging steel was performed on an EOS M290, and a 7-s video was taken at 1000 frames per second to determine bulk spatter statistics resulting in 7000 images. The cameras were mounted outside of the chamber window and utilized 18 mm lenses.

3.1 Velocity subset validation of stereovision tracking

To gain insight and validate the algorithm, a subset of images was taken with the laser turning a corner and starting in the opposite direction with the hatch. Three subsequent images were taken after the turn to track the spatter and gain triplicate measurements and spatter were typically able to be tracked for three subsequent images before they faded and became too difficult to track. Although not all spatter were detected in the three images, 50 spatter were identified and direction was calculated (Fig. 5). Spatter just after a change in laser hatching direction were chosen, because it presented a clean set of data without the laser creating flash points when it ignited soot directly over the melt pool (false positive detections) and allowed for a manual check of the data to ensure all the spatter were appropriately detected to avoid false negative detections. This spatter was then analyzed via the developed algorithm and the start and end points of the spatter streak verified manual to determine the average population velocity and magnitude of the corresponding vectors and is shown in Table 1. This resulted in an average velocity of 9.38 m/s, with a minimum detection of 2.98 m/s and a maximum of 27.60 m/s which is consistent with the analysis of Ly et al. [31] which listed their approximated range as 2–20 m/s. This clean and verified dataset average would then be used to compare to the full set of images to ensure similarity in results.

Fig. 5
figure 5

Spatter detected on edge of part as laser path is changing direction, laser direction indicated showing path during spatter formation

Table 1 Spatter detected on edge of part with laser turning to head in opposite direction, first ten results shown with bulk statistics below, exposure of 500 µs

3.2 Stereo imaging of spatter and determination of bulk statistical velocity

The algorithm was then allowed to run over the entire 7 s of video which at 1000 fps generated 7000 paired images. Autodetection of spatter was utilized and the magnitude and velocity of the spatter were found. The results are plotted in Fig. 6 with their vectors in three-dimensional space, relative to the centroid of the melt pool of the previous frame and this was set to the origin to allow for the visualization of the spatter’s detected location in regard to the melt pool. 10,447 spatter were detected over the 7-s video, which includes duplicate and triplicate detections as at 1000 fps most spatter could clearly be seen multiple times. It is believed that these multiple detections could be of benefit when working with the average velocity as they would increase the weight of valid detections. However, this will statistically make the average velocity slower as the faster particles are detected fewer times and so therefore have less weight on the overall average. Of note, false positives can be seen primarily in the central region directly above the melt pool. These are assumed to be soot that was irradiated by the laser and not spatter, this was verified by a manual check of various images were the results occurred and it was found that the particles were often directed down instead of up from a clear origin from the melt pool. Further work is currently underway to automatically ignore these detection results. Table 2 shows the statistical results of the analysis with the first ten detections similarly to Table 1. The average velocity over the entire set was 9.73 m/s which had good agreement with the previous subset of data having only a 0.35 m/s or 3.66% difference. The maximum value detected, and the minimum value showed a dramatically increased range. The current algorithm does not allow for sorting of detected spatter and determination of which images correspond to which detection, so we are currently unable to examine the maximum and minimum values to determine their validity. This feature is currently being added and is expected to aid in the removal of false positives or negatives. Figure 7 shows the histogram of the bulk results with the majority of the spatter being detected between 1.5 and 14.5 m/s.

Fig. 6
figure 6

10,447 spatter magnitude vectors plotted centering each spatter to the same origin point, detected over a 7-s imaging period

Table 2 Measured beginning and end points for first ten spatters from Fig. 6, their calculated magnitudes and velocities, and bulk statistical results
Fig. 7
figure 7

10,447 spatter detected graphed with velocity versus frequency

Future work is currently being performed to more accurately sort out false positive or negatives; however, it is believed that the average velocity of the group and bulk statistical results will not change substantially. Additionally, the algorithm is being modified to allow for the determination of which spatter has been detected multiple times so that appropriate weighting of the average can occur. Further analysis is also under way to compare the bulk spatter data under various laser parameters sets below and above recommended values, multiple printing platforms, and material types. The average velocity for these groups is posited to shift accordingly with the intention being that various platforms will have similar results with similar processing parameters and material types. Further work is also being performed to track the average direction based on the origin in the melt pool with respect to the melt pool centroid.

4 Conclusion

In conclusion, a low-cost spatter tracking method and analysis for laser powder bed fusion has been presented along with initial statistical results. The system can be used to collect real-time statistical data on the spatter behavior of a process and may have utility in terms of measuring the performance of the process. This paper demonstrates the tenets of the proposed in situ measurement system and the key completed objectives of this work are as follows:

  • Reliable collection of the demonstrated statistics relating to spatter velocities gathered by stereovision over 1000 s of frames.

  • An open source and low-cost (less than $10,000 USD) hardware and software system was successfully implemented.

  • Initial results of collected statistical data are reported which demonstrate that the data are in line with previous reports but now can be captured in a continuous and real-time data collection system.

  • Utilizing the stereovision setup enabled increased accuracy in the measurement for velocity and quantity.