Modeling spatial point processes in video-imaging via Ripley’s K-function: an application to spatter analysis in additive manufacturing
Abstract
EconStor is a publication server for scholarly economic literature, provided as a non-commercial public service by the ZBW.
Full text
Colosimo, Bianca Maria; Pagani, Luca; Grasso, Marco Article — Published Version Modeling spatial point processes in video-imaging via Ripley’s K-function: an application to spatter analysis in additive manufacturing Journal of Intelligent Manufacturing Provided in Cooperation with: Springer Nature Suggested Citation: Colosimo, Bianca Maria; Pagani, Luca; Grasso, Marco (2022) : Modeling spatial point processes in video-imaging via Ripley’s K-function: an application to spatter analysis in additive manufacturing, Journal of Intelligent Manufacturing, ISSN 1572-8145, Springer US, New York, NY, Vol. 35, Iss. 1, pp. 429-447, https://doi.org/10.1007/s10845-022-02055-3 This Version is available at: https://hdl.handle.net/10419/318676 Standard-Nutzungsbedingungen: Die Dokumente auf EconStor dürfen zu eigenen wissenschaftlichen Zwecken und zum Privatgebrauch gespeichert und kopiert werden. Sie dürfen die Dokumente nicht für öffentliche oder kommerzielle Zwecke vervielfältigen, öffentlich ausstellen, öffentlich zugänglich machen, vertreiben oder anderweitig nutzen. Sofern die Verfasser die Dokumente unter Open-Content-Lizenzen (insbesondere CC-Lizenzen) zur Verfügung gestellt haben sollten, gelten abweichend von diesen Nutzungsbedingungen die in der dort genannten Lizenz gewährten Nutzungsrechte. Terms of use: Documents in EconStor may be saved and copied for your personal and scholarly purposes. You are not to copy documents for public or commercial purposes, to exhibit the documents publicly, to make them publicly available on the internet, or to distribute or otherwise use the documents in public. If the documents have been made available under an Open Content Licence (especially Creative Commons Licences), you may exercise further usage rights as specified in the indicated licence. http://creativecommons.org/licenses/by/4.0/
Journal of Intelligent Manufacturing (2024) 35:429–447 https://doi.org/10.1007/s10845-022-02055-3 Modeling spatial point processes in video-imaging via Ripley’s K-function: an application to spatter analysis in additive manufacturing Bianca Maria Colosimo1·Luca Pagani2·Marco Grasso1 Received: 4 May 2022 / Accepted: 5 November 2022 / Published online: 28 November 2022 © The Author(s) 2022 Abstract For an increasing number of applications, the quality and the stability of manufacturing processes can be determined via image and video-image data analysis and new techniques are required to extract and synthesize the relevant information content enclosed in big sensor data to draw conclusions about the process and the final part quality. This paper focuses on video image data where the phenomena under study is captured by a point process whose spatial signature is of interest. A novel approach is proposed which combines spatial data modeling via Ripley’s K-function with Functional Analysis of Variance (FANOVA), i.e., Analysis of Variance on Functional data. The K-function allows to synthesize the spatial pattern information in a function while preserving the capability to capture changes in the process behavior. The method is applicable to quantities and phenomena that can be represented as clusters, or clouds, of spatial points evolving over time. In our case, the motivating case study regards the analysis of spatter ejections caused by the laser-material interaction in Additive Manufacturing via Laser Powder Bed Fusion (L-PBF). The spatial spread of spatters, captured in the form of point particles through in-situ high speed machine vision, can be used as a proxy to select the best conditions to avoid defects (pores) in the manufactured part. The proposed approach is shown to be not only an efficient way to translate the high-dimensional video image data into a lower dimensional format (the K-function curves), but also more effective than benchmark methods in detecting departures from a stable and in-control state. Keywords Spatial point pattern ·K-function ·Functional data ·FANOVA ·Additive Manufacturing ·Spatters ·Laser powder bed fusion ·Industry 4.0 Introduction In the current Industry 4.0 framework, the use of image and video-imagedatainindustrialprocessmonitoringandquality Luca Pagani and Marco Grasso have contributed equally to this work. BMarco Grasso [email protected] Bianca Maria Colosimo [email protected] Luca Pagani [email protected] 1Department of Mechanical Engineering, Politecnico di Milano, Via G. La Masa 1, 20156 Milan, Italy 2Carl Zeiss GOM Metrology, Schmitztrasse 2, 38122 Brunswick, Germany modeling applications is becoming more and more common and widespread thanks to the quick development of discrete manufacturing process technologies and integrated sensing equipment (Barari et al., 2021; Colosimo, 2014,2018a; Colosimoetal.,2018a,2021;Megahedetal.,2011,2012).In this framework, a major challenge regards how to make sense of big and complicated data to identify, model and analyze relevant information patterns. In many cases, the quantities of interest, also known as process signatures, exhibit spatial and/or spatio-temporal dependencies and variations whose proper characterization is the key to draw reliable conclusions about the process stability and the product quality. In-line video-image analysis can be applied for different purposes. On the one hand, it can be used to make process optimization and process calibration more efficient. Indeed, in-line data may be used to reduce the experimental effort and the need for expensive and time-consuming post- 123
430 Journal of Intelligent Manufacturing (2024) 35:429–447 process inspections, as response variables can be measured directly during the production process. On the other hand, inline video-image data provide rich information for process monitoring, aiming at detecting process shifts and onsets of anomalies while the part is being produced. In the recent years, many authors outlined the need for appropriate statistical modeling and monitoring methods for imagedata(Megahedetal.,2011,2012;Qiu,2005;Yanetal., 2017), but still limited attention has been devoted to videoimage data, where the underlying evolution of the process in space and along time has to be properly captured and monitored. In this framework, we may identify two major streams of research. A first stream of methods consists of identifying regions of interest (ROIs) in each video frame and monitoringthe evolution overtime of their synthetic descriptors. This first route also represents the most common way to process video-image data in the industrial practice, especially when the engineering knowledge can guide the selection of the synthetic descriptors, i.e., the golden standard to be identified and counted in each frame. One main limitation of these approaches regards the information loss imposed by the selection of the quantities to be monitored. Another limitation is that, in some cases, the spatial spread of ROIs within the image can not be fully captured and modeled. Another stream of research consists of modeling videoimages as a sequence of frames, where each frame is represented as a matrix of pixel intensities. Following this route, Yan et al. (2015) compared different extensions of Principal Component Analysis (PCA) to detect shift of the spatial intensity pattern observed in a video sequence. A different method was proposed by Colosimo and Grasso (2018), where a so-called spatio-temporal PCA (ST-PCA) was used to enable a spatial localization of the occurred anomaly within the image, by combining a T-mode PCA implementation (Jolliffe, 2002) with a spatially weighted variance-covariance matrix definition. With the same aim of detecting an anomaly both in time and space, Yan et al. (2021) presented a penalized regression model, called spatiotemporal smooth sparse decomposition, combined with a control chart on the model parameters. A limitation of this second family of methods is that they lookattheframesofvideo-imagedataasmatrices(ortensors) of pixel intensities, without frame pre-processing to look for specific elements or regions of the frame carrying detailed information about the process of interest. This study focuses on modeling video-image data where the spatial signatures of interest can be represented as spatial point patterns (SPPs). An SPP data set is a nite collection of points specifying the locations of events within a given area of interest, which can be a 2-D, a 3-D space or even a manifold (Møller & Waagepetersen, 2017). Examples of SPPs can be found in various fields, from medical applications, e.g., spatial distributions of neurons (Jafari Mamaghani et al., 2010); to ecology, e.g., spatial distribution of trees for forest mapping (Velázquez et al., 2016); epidemiology (Diggle et al., 2005); astronomy (Stoica et al., 2007). In industrial applications, SPPs have been used to model the spatial distribution of fibers in composite or particles in nanocomposite manufacturing (Trias et al., 2007; Huang et al., 2015,2017; Kam et al., 2013; Zhou et al., 2014; Dong et al., 2017a) or to study the porosity distribution in additively manufactured parts (Liu et al., 2019). Examples of industrial images exhibiting spatial point patterns are shown in Fig. 1. Despite a large literature on K-functions and SPP methods for image data, there is a lack of applications involving video-image data, although the dimensionality reduction enabled by K- functional representations makes such approach particularly attractive in video-image processing and analysis too. In our study, the motivating application regards the statistical analysis of spattering in additive manufacturing, more specifically Laser Powder Bed Fusion (L-PBF) (Gibson et al., 2014). L-PBF allows producing metal parts on a layer-by-layer basis by using a highly focused laser beam to locally melt a thin layer of metal powder. Different authors showed that spatters generated by the laser-material interaction enclose a rich information about the L-PBF process conditions and their stability over time (Zhang et al., 2019; Repossini et al., 2017; Andani et al., 2018; Bidare et al., 2018). Spatters are hot metal particles ejected from the melted region or the surrounding areas. Their spatial spread captured with a high-speed machine vision equipment can be regarded as an SPP. Indeed, at each given point in time, i.e., in each videoframe,thespatterscanberepresentedaspointparticleswhose spread in space is relevant to analyze the underlying process phenomena (more details are provided in the motivating example description in section “Motivating example”). Atechniquesuitabletosynthesizetheinformationenclosed inSPPspassingfrom2-Dspatialmapsto1-Dcurvesisknown as Ripley’s K-function (Ripley, 1977; Diggle et al., 2000). The K-function methodology allows one to describe the spatial spread of point processes and to distinguish between homogeneous, clustered and random spatial scatters of the analyzed quantities as they reflect into different shapes of theK-functioncurve.Ripley’sK-functionhasbeenappliedto model nanoparticles (Dong et al., 2017a), The interpretability of resulting functional patterns represents a further benefit that makes Ripley’s K-function a suitable data modeling tool. This paper presents a method which combines an image segmentation and processing step to transform video-image data of spatter ejections into Ripley’s K-function curves, and a curve fitting approach based on Functional Data Analysis (Ramsay, 2004), which enables the classification of different process behaviors via FANOVA. We show that by analyzing the statistical differences of K-functions associated to the spatial spread of spatters in L-PBF, it is possible to distin- 123
Journal of Intelligent Manufacturing (2024) 35:429–447 431 Fig. 1 ExamplesofindustrialimageswhereK-functionsmaybesuitabletomodelspatialpoint patterns:SEMimageofametalmatrixnanocomposite (left), TEM image of a polymer nanocomposite (centre) (Huang et al., 2015), and a spatial spread of pores in a metal specimen (right) guish between process conditions that cause different types of volumetric defects (porosity) in the manufactured part. A comparison against benchmark methods that rely on computing synthetic spatter descriptors shows that the proposed approachismoreeffectiveindetectingactualdeparturesfrom a stable and in-control process condition. The paper is organized as follows: section “Motivating example” presents the motivating case study in L-PBF; section “Proposed methodology” describes the K-function methodology and our proposed FANOVA solution; section “Results” summarizes the main results in the spatter analysis application and section “Conclusions and future developments” concludes the paper. Motivating example The motivating example for the proposed approach regards the analysis of spatter ejections in L-PBF as a signature of the process behavior. Spatters, as many other relevant quantities, can be measured in-line and in-situ thanks to the layerwise paradigm that allows to observe (e.g., with high-speed cameras or thermal cameras) many process-related phenomena during the production of each layer (Colosimo, 2018a; Colosimo et al., 2018a; Grasso & Colosimo, 2017; Grasso et al., 2021; McCann et al., 2021). An increasing number of studies have been devoted in the last years to the possibility ofusingspatters and other L-PBF by-products (i.e., vaporgas and plasma emissions) for in-line and in-situ process monitoring (Repossini et al., 2017; Andani et al., 2018; Nassar et al., 2019; Zhang et al., 2018; Ly et al., 2017). Spatter ejections are either caused by a vapor-driven entrapment of powder particles or by unstable solid-liquid transitions leading to molten material ejections (Liu et al., 2015; Khairallah et al., 2016; Ly et al., 2017). The interested reader is referred to (Grasso & Colosimo, 2017; Grasso et al., 2021; McCann et al., 2021; Kumar et al., 2022; Li et al., 2020; Tercan & Meisen, 2022; Liu et al., 2022; Zhang et al., 2022) for review studies devoted to these phenomena and to the development of process monitoring tools in L-PBF. Various authors showed the effect of different process parameters on the spatter behavior (Repossini et al., 2017; Nassar et al., 2019; Zhang et al., 2018; Ly et al., 2017). They mainly used high-speed video imaging to measure spatter-related quantities and their evolution over time. The mainstream analytic approach consists of estimating, frame by frame, various synthetic descriptors, e.g., the number of ejected spatters, their distance from the melt pool, their size, velocity, etc., and relating them to the variation of process conditions. Some authors also proposed classification methods based on logistic regression (Repossini et al., 2017)or artificial neural networks (Zhang et al., 2018). Figure 2shows an example of high-speed (1000 fps) video frames acquired during the L-PBF of a maraging steel sample, showing the spatter ejected during the production of one single layer as bright (hot) particles on a dark background (more detailed information about the experimental settings are provided in Sect. 4). The laser beam is not visible because the laser wavelength is outside the camera’s sensitivity range. Top and bottom panels of Fig. 2show two opposite out-of- control conditions, namely the spatters ejected when a too low energy input was provided to the material (top panel) and spatters ejected when a too high energy input was provided (bottom panel), respectively. The former condition is also known as lack-of-fusion, and the energy density is not sufficient to completely melt the metal powder, leading to large and irregular pores within the final part, and possible delaminations between adjacent layers. The latter condition is also known as over-melting, as the excessive energy density causes a local overheating and unstable solid-liquidus interfaces, with consequent formation of pores mainly characterized by a regular and spherical shape. The different 123
432 Journal of Intelligent Manufacturing (2024) 35:429–447 Fig. 2 Examples of cropped video-frames showing spatter ejections during the L-PBF process of maraging steel samples under lack-of-fusion (top panels) and over-melting (bottom panels) conditions Fig. 3 Superimposition of centroid locations of all the spatters observed during the L-PBF production of one layer of maraging steel samples under lack-of-fusion (left panel) and over-melting (right panel) conditions effects of these two conditions on the final defectiveness of the part make their quick detection and identification extremely important to keep under control the process and aid the part qualification task. Figure 3shows a superimposition of all the spatters detected in the two videos of Fig. 2 (lack-of-fusion condition on the left and over-melting condition on the right). Each spatter is identified by its centroid in Fig. 3. Figures 2and 3show that the spatial spread of spatters represents a suitable signature to identify different process states. Moreover, the evolution of spatters generated in L-PBF in space and along time can be regarded as a spatial pointprocess,asthe spatialmappingof thespatters withinthe image domain represents the feature of interest for process state classification. Therefore, SPP analysis can be particularly suitable to synthesize the relevant information content of the video-image stream, translating the image-based problem to a functional data analysis framework (Ramsay, 2004). It is worth noticing that this approach does not require any a-priori selection of synthetic descriptors, while focusing the attention on the actual spatial mapping of the spatter behavior. Proposed methodology Brief review of the Ripley’s K-function The theoretical K-function can be defined as (Ripley, 1977; Diggle et al., 2000): K(t)=1 θ E (# extra points within distance t of a randomly chosen point) (1) 123
Journal of Intelligent Manufacturing (2024) 35:429–447 433 where θis the spatial density of points, i.e., the number of points per unit area. Therefore, θK(t)represents the expected number of points that are within a distance taround a randomly chosen point. This allows describing a point process at different distance scales. Let Ube an image of m×ppixels, including nconnected components that can be treated as points whose coordinates in the image domain are the coordinates of the connected component’scentroid.Then,anasymptoticallyunbiasedestimator of the K-function K(t)is K(t)=1 n2 (x,y)∈U w(x,y)I(0<d(x,y)≤t)(2) where I(•)is the indicator function, d(x,y)is the Euclidean distance between points xand y, and w(x,y)is the edge correction factor. The edge correction factor is applied to take into consideration the fact that circles of radius d(x,y)centered in x may be not fully included in U, depending on the closeness to the image border and the radius d(x,y). Ignoring edge effects may lead to a biased estimation of the K-function, especially for large values of t. The correction factor w(x,y) can be defined as w(x,y)=1 PCIRC(x,d(x,y)|U), where PCIRC(x,d(x,y)|U)is the proportion of the circumference of radius d(x,y)centered in xincluded into the image domain U. If the circle is completely inside the image domain, w(x,y)=1. Different variants of the K(t) have been proposed, involving different edge corrections for boundary effects (Baddeley et al., 2006; Yamada & Rogerson, 2003). In this study, boundary effects do not represent a critical issue as the spatters are always located in a reduced area in the center of the image, making the edge correction not necessary. The interested reader may refer to Baddeley et al. (2006) and Yamada and Rogerson (2003) for a discussion on different applicable edge corrections. Two other variants of the Ripley’s K-functions were proposed, involving a normalization operation that leads to a linear (L-function) or constant and equal to zero (H-function) expected value, respectively (Kiskowski et al., 2009; Baddeley et al., 2006). These two variants were mainly proposed to ease the qualitative analysis and interpretation of Ripley’s K- functions and to aid statistical hypothesis testing with respect to the null hypothesis of a homogeneous Poisson process. K-functions are also connected to “pair correlation functions”, which may be obtained after differentiation and normalization of the K-function (Baddeley et al., 2006). However, the estimation of pair correlation functions involves the use of a kernel function, and the selection of the corresponding kernel bandwidth. As the K-functions avoid the need for this parameter selection, they are proposed in this study. However, the method can be easily extended to L-, H- and pair correlation functions. K-functions have different properties that make them suitable to capture different patterns of spatial point processes. Indeed, the shape of K-function reflects not only the type of underlying distribution, but also the presence of clusters together with their within- and between-cluster distances at different scales. Figure 4, left panel, shows examples of SPPs obtained by generating 200 points whose coordinates were simulated as uncorrelated random numbers from a normal distribution with mean µ=(0,0)Tand =0.60 00.6or =10 01 , uncorrelated uniform numbers with parameters (−1,1)and (−2,2), random numbers from two overlapped clusters centered in (0,0)but with different variances, and random numbers from two separate clusters. Figure 4, right panel, shows the corresponding estimated K-functions. The value of tat which the estimated K-function reaches the asymptote reflects the dispersion of the points, whereas the slope and changes of the first and second derivatives reflect whether the points are clustered together and their relative distances at different scales. In particular, the presence of clustered data leads to inflection points in the K-function. The K-functions also capture information about the number of points in a predefined area, since the asymptote is K(∞)=A−A n, being Atheareaofthe image. Thus, being fixed A, the larger the number of points, the higher is the value of the asymptote. These features make the K-function suitable to capture salient patterns of SPPs including in one single curve information that could be captured via multiple simple statistics (e.g., number of points, average distance from the center, etc.), but also information that is difficult or impossible to fully describe via synthetic descriptors. Methodology A video can be represented as a temporal sequence of video frames U1,U2,...,Ujwhere the j-th video frame, Uj,is an image of size A=m×p. The proposed approach involves an image pre-processing phase followed by the frame-by-frame estimation of the corresponding K-function. The pre-processing phase consists of (i) identifying, in each video frame, the njconnected components representing the objects of interest and (ii) computing, for each of them, the centroid’s coordinates. We assume that the number of connected components, nj, may vary from one frame to another. Once the centroid’s coordinates of all connected components have been computed, the j-th K-function Kj(t)can be estimated using Eq. (2), for any pair of components (x,y). Figure5showsanexampleof the sequence ofsteps to pass from one video frame where multiple connected components are present to the corresponding K-function estimation. The operationisthenrepeatedforallvideoframes,asaparametric 123
434 Journal of Intelligent Manufacturing (2024) 35:429–447 Fig. 4 Left panel: examples of normal, uniform and clustered spatial distributions; right panel: corresponding estimated k-functions Fig. 5 Flowchart of the proposed approach with an example of conversion from one original video frame to the K-function representation modelofestimatedfunctionscanbefittedto enable statistical inference of K-functional patterns. As far as the spatter analysis in L-PBF is concerned, each video frame consists of a dark background and different bright areas in foreground. The foreground areas correspond either to spatters ejected by the laser-material interaction or to the laser heated zone. The laser heated zone is usually the largest bright area in the image, due to the high radiation emission from the melt pool and the surrounding heated material. Each spatter can be described as a distinct connected component by converting the original gray-scale video frames into a binary format. To this aim, the approach proposed by Repossini et al. (2017), which foresees two steps, was applied. First, the Otsu’s thresholding algorithm (Chaki et al., 2014) was applied to binarize the images, such that the foreground pixels in each connected component have intensity equal to 1 and background pixels have intensity equalto0. Theoptimalthresholdvaluewasidentifiedbyminimizing the intra-class intensity variance within the class of dark (background) pixels and the one of bright (foreground) pixels. In order to keep the same threshold value for all the frames, and to reduce the in-line computational effort, the optimal Otsu’s threshold was identified during a calibration phase, choosing the sample mean of threshold values identified in calibration frames. Such calibration was carried out by using a video-image data gathered in one of initial layers, before starting the data acquisition for the actual test phase. In principle, historical data from previous builds can be used to calibrate the binarization settings as well. Once binary frames have been obtained, the largest connected component in correspondence of the melted region was labeled as laser heated zone and not considered in next steps, to focus the analysis only on the spatters and their spatial spread. The spatter’s centroid was computed as the center of mass of the connected component. In this study a connected component labeling was applied with connectivity 8, i.e., such that each connected components includes pixels that are connected if their edges or their corners touch. All pre-processing operations were carried out using the Image Processing Toolbox of Matlab. The segmented centers of mass were then used to estimate the Ripley’s K-function corresponding to a specific frame. It is also worth noticing that the K-function estimation and its use in our proposed approach do not rely on distributional assumptions. One of the properties of a K-function is that it has to be non decreasing, so a fitting method able to pre- 123
Journal of Intelligent Manufacturing (2024) 35:429–447 435 serve this peculiarity must be used. As suggested by Ramsay (2004), a non decreasing function can be estimated using the equation: K(t)=β0+β1exp ⎧ ⎨ ⎩ t t0 W(u)du⎫ ⎬ ⎭(3) where W(t)=fT(t)αis the usual regression term, whereas β0and β1are the constant and the tangent term of the model. Equation (3) describes a general set of curves with the constraint that they have to be non decreasing, i.e. the derivative approaches 0 if t→∞. It should be noted that the terms β0 and β1have the same meaning that they have in simple linear regression: β0isthe value that the function assumes when tis equal to 0 and β1is the tangent at the same value. The model has to describe a generic function, so the basis functions of f(t)must be suitable to achieve a good curve reconstruction. To this aim, we advocate the use of a third degree B-splines basis functions. Once the basis in Eq. (3) has been selected, the parameters’ vectors βand αare estimated by minimizing the sum of squares: min β,α n i=1 [ki−K(ti)]2+λT d2K(t) dt2dt.(4) The parameter λcontrols the so-called smoothing penalty. If λis equal to 0, the function in Eq. (4) is the classic sum of squares error function. In B-splines regression, a large number of basis function are commonly needed to estimate the underling curve, leading to possible undesired effects like undulation of the fitted curve or an ill-posed system of equations. To avoid these effects a small value of λ>0 should be set. It is also worth noticing that a curve of degree three or higher must be used to compute the smoothing penalty in Eq. (4). Figure 6shows an example of estimated K-functions corresponding to each video frame during the production of one layer of one specimen in our real case study, and the corresponding fitted average curve K(t). A four B-splines basis function with five equally distant internal knots and λequal to 10−5was used. Once all the functions are fitted, they can be used to identify different conditions of the underlying process. Let µ1(t), µ2(t),...,µl(t)be the mean K-functions fitted starting from video-image data gathered in ldifferent video sequences. The sample average curve associated to the i-th video, with i=1,...,lcan be estimated as follows: µi(t)=1 ni ni j=1 Kij(t)(5) Fig. 6 Example of measured K-functions during all frames of a video and fitted mean function where niis the number of frames in the i-th video sequence. In addition to the average curve, the corresponding 95% confidence band can be estimated as: Li(t)=µi(t)−z0.975 σi(t) Ui(t)=µi(t)+z0.975 σi(t)(6) where z0.975 ≈1.96 is the 97.5% quantile of the Gaussian distribution and σi(t)=σ2 i(t)is the estimation of the standard deviation of the i-th function, with: σ2 i(t)=1 ni−1 ni j=1Kij(t)−µi2.(7) Thanks to the computation of the confidence interval for each sample mean of fitted K-functions, it is possible to determine whether process conditions captured in different portions of the same process, and/or during the production of different parts, produced a statically different mean pattern of spatter ejections. It is also possible to compare the K- function representation of spatter patterns in any new layer or any new build against a reference pattern, representative of a stable and in-control process state. Once a statistically significant difference from the reference confidence band is observed, a departure from desired process conditions can be detected. Moreover, the shape of the sample mean of fitted K-functions in the current process state provides a rich and interpretable information about the type of occurred deviation. Because of this, the proposed approach can be used for in-line and in-situ monitoring of the L-PBF process, taking advantage of a reference pattern estimate carried out during a training phase. It can be also used to support process characterization and optimization relying on in-line measurement of spatter ejections as a signature of the process. 123
436 Journal of Intelligent Manufacturing (2024) 35:429–447 Table 1 L-PBF process parameters Energy density level Exposure time τ(ms) Distance between scan points dp(µm) Distance between adjacent tracks dh (µm) Laser power P(W) Laser thickness Z (µm) Volumetric energy density (J/cm) 1 39 65.0 80 200 50 30,000 2 85 85.0 80 200 50 50,000 3 104 65.0 80 200 50 80,000 4 125 62.5 80 200 50 100,000 5 115 50.0 80 200 50 115,000 6 104 40.0 80 200 50 130,000 Results Experimental settings The experimental case study involves the production of simple specimens via L-PBF of 18Ni (300) maraging steel. By changing the process parameters, different melting conditions were obtained, corresponding to different severities and types of volumetric defects in the final parts. A high-speed camera was used to monitor the spatter ejections during the production of the specimens in different layers. At the end of the process, two non-destructive methods were used to estimate (i) the density of the samples (Archimede’s measurement method) and (ii) the nature of pores, especially their shape and location within the sample (X-ray computed tomography, CT). The experimentation was carried out by using an industrial L-PBF machine, namely a Renishaw AM250, equipped with a single laser scanning system that enables a point-wise scanning method. Along each scanned track, the laser moves from one point to another spaced a distance dpapart with an exposure time τon each point. The purpose of the study was to study the capability of the proposed approach to properly identify statistically significant differences in spatter patterns induced by different energy inputs provided to the material. Six treatments, corresponding to six different energy density levels, were obtained by varying two controllable parameters, namely τand dp.The rationale behind the variation of both τand dpis that acting on these two parameters allowed exploring a wider range of energy densities than controlling one single parameters, while preserving safe operating modes. Indeed, due to the pulsed melting mode implemented in the Renishaw AM250, varying both the exposure time and the distance between exposed points allowed inducing treatments ranging from severe under-melting (also known as lack of fusion) to overmelting condition. Each treatment was replicated three times by printing three specimens for each energy density level, leading to a total number of 18 specimens. All other controllable process parameters were kept fixed, apart from the scan direction that was varied layerwise according to the standard industrial practice. A stripe scanning strategy was applied, with a 67◦scan direction rotation every layer. The response variable was the spatial spread of the spatters captured by the high speed camera, which was then translated into the 1D K-function form. Table 1shows the process parameters corresponding to each energy density level and Fig. 7shows the specimen allocation within the build area. All the specimens had equal geometry (i.e., parallelepipeds of size 5 × 5×12 mm). The material used was a gas atomized powder with average particle size of 25–35 µm. The specimens were placed in the middle of the build platform (Fig. 7), at a sufficient distance from each other to avoid thermal interference. The intermediate energy density level (namely, level 3) corresponds to the default set of process parameters suggested by the L-PBF system developer. Figure 8shows the in-situ sensing setup used in this study. It consists of a high-speed camera (Olympus I-speed 3 with CMOS sensor) in the visible range (about 400 to 700 nm) placed outside the protective window of the build chamber. Video-images were acquired at 1000 frames per second (fps), in order to capture the spattering behaviour with a sufficient temporal resolution. A chessboard camera calibration was performed to estimate the spatial resolution in the powder bed plane, which was about 250 µm/pixel. A total of 240 layers were printed, but in-situ videos were acquired only during six non-consecutive layers spanning the entire duration of the process. In each monitored layer, a video of the L-PBF of all 18 specimens was acquired. As-built quality characterization The effects of different process parameters on the volumetric defects of the specimens were investigated by measuring the overall density of each specimen and its porosity structure. The final part density was evaluated by means of the Archimede’s test and the results are shown in Fig. 9. Figure 9shows that energy density level 1 (30 kJ/cm) caused a severe lack-of-fusion condition, with a low density in the order of 90%. Energy density levels 2, 3 and 4 (50, 80, 100 kJ/cm) produced the highest density. Finally, levels 5 and 123
Journal of Intelligent Manufacturing (2024) 35:429–447 443 industrial L-PBF systems are equipped with sensors (including machine vision devices) for in-situ monitoring, but the focus is on the powder bed homogeneity and on the stability of melt pool emissions. Despite of the different target of the analysis, the best industrial practice for in-situ image data analysis in L-PBF consists of computing either pixelwise variation metrics or synthetic descriptors associated to regions of interest. Because of this, the competitor approach consideredinthisstudyisnotonlyrepresentativeofthemainstream literature on spatter analysis and monitoring in AM, but also of the best industrial practice applied to off-the-shelf monitoring toolkits. Two synthetic indexes used by different authors are the number of spatters and the area of the convex hull including all the spatters in one frame. The area of the convex hull is a synthetic measurement of the spatial spread of the spatters. More details about their computation can be found in Repossini et al. (2017). The two indexes were computed in every frame and their average values were then used as an alternative to the computation of sample mean K-functions. Figure 17 shows the 95% confidence intervals for the contrasts between the number of spatters and the convex hull area computed under different energy density levels and the reference level 3. Thus, Fig. 17 represents the analogous of Fig. 15. Figure 17 shows that both the synthetic indexes allow detecting a statistically significant difference between the two lack-of-fusion conditions (energy density level 1 and 2) and the reference level. However, they fail in detecting a statistical difference in the spatter behavior between overmelting conditions (energy density levels 4 to 6) and the reference level 3. The adoption of the K-function to characterize the spatial spread of spatters, instead, highlighted a statistically significant difference between the most severe over-melting state and the reference, which was also confirmed by a higher porosity in the part. Figure 17 shows that synthetic indexes may be effective in detecting most severe departures from a reference condition, like the two lack-of-fusion states observed in this study, but they are not enough sensitive to less severe deviations. Moreover, they capture a poorer information content compared to K-functions, which results into a potentially lower interpretation capability about the monitored phenomena. More specifically, the K-function methodology allows capturing variations of the underlying pattern at different scales, i.e., at different distances twithin the image, in a way that is different or even impossible to represent by means of discrete synthetic indexes. These results highlight the added potential enabled by the proposed method for in-line and in-situ analysis and monitoring of spatial point patterns in video-image data, and its possible application to L-PBF. Conclusions and future developments The increasing availability of image and video-image data for statistical quality modeling and monitoring applications is making more and more urgent the need for novel methods suitable to deal with real industrial problems. In this study, we presented a methodology that allows summarizing the spatial spread of multiple regions of interest in videoimage data by passing from a 2-D image to a 1-D profile data format relying on the Ripley’s K-function approach. More specifically, this study addressed the family of problems where the time-varying spatial signatures of interest can be represented as SPPs, where each region of interest can be treated as a point object. The application of the proposed approach in L-PBF showed that the data synthesis based on the K-functions representing the spatial spread of spatters allowed distinguishing between different process states that led to volumetric defects in the final part. In-situ video-image data analysis via the Ripley’s K-function can be used to detect process shifts associated to a change in the spatter ejection behavior, which can be a possible driver of defects in the part. This approach also represents a viable way to reduce the dimensionality of big data gathered dur- Fig. 17 95% confidence interval of contrasts with respect to energy density level 3: number of spatter (left panel) and area of the convex hull including all spatters (right panel) 123
444 Journal of Intelligent Manufacturing (2024) 35:429–447 ing the L-PBF process, with consequent benefits in terms of data storage and management requirements. Indeed, it allows passing from terabytes per build, needed to store high-speed videos gathered in every layer, to few megabytes needed to store K-function data. We showed that it is more effective than competitor methods commonly used in the literature, which consist of analyzing pre-defined synthetic indexes. The method is also suited to be used in a process optimization framework, where in-line spatter measurements may support the identification of optimal processing windows, with the further advantage of reducing the experimental effort and the costs associated to post-process inspections. In summary, the major strength points of the proposed methodology can be synthesized as follows: (i) enhanced in-situ detection of unstable process conditions: spatters are known to be a relevant signature for in-situ monitoring of the L-PBF process, and the proposed approach enables a more effective detection of departures from a stable process state than competing methods adopted in the mainstream literature; (ii) enhanced in-line data modeling for efficient process optimization, by replacingpost-processinspectionwithin-linemeasurements, (iii) reduction of data handling and storage needs thanks to the massive data reduction enabled by the K-function modeling, moving from high-speed/high-resolution video-image streams to 1D functional representation of salient information. Two possible extensions of the proposed approach can be envisaged. One regards the extension from modeling spatial patterns enclosed in the data stream to modeling the spatio-temporal patterns. The use of K-functions to this aim was discussed by some authors (Hohl et al., 2017). It includes a temporal scale in addition to the spatial scale in the definition and estimation of the K-function. Such extension may be suitable to model time-varying spatial patterns. Another extension regards the possibility to include additional descriptors of interest associated to each particle, e.g., area, shape, etc., into the SPP analysis. Variants of the K-function and point process methodologies have been proposed to this aim (Comas et al., 2011). They can be considered as a valuable extension when the description of the phenomenon requires other features of interest associated to each spatial location. It is worth noticing that although spatters move in a threedimensional space, a monocular vision like the one used in this study allows detecting only their apparent location in the 2-D image plane. Some recent papers (Eschner et al., 2019; Barrett et al., 2018) demonstrated the feasibility of a 3-D spatial spatter localization in L-PBF, although it requires more complex machine vision equipment and measurement settings. Albeit the 2-D spatial mapping of spatters, as discussed in this paper, has been shown to be sufficient for the classification of different energy density conditions, the proposed methodology can be further extended to 3-D spatial maps possibly gathered through high-speed stereo vision systems for a deeper analysis of process stability. Acknowledgements Thisstudywaspartially supportedbyACCORDO Quadro ASI-POLIMI “Attività di Ricerca e Innovazione” n. 2018-5- HH.0, collaboration agreement between the Italian Space Agency and Politecnico di Milano. Funding OpenaccessfundingprovidedbyPolitecnicodiMilanowithin theCRUI-CAREAgreement.FundingwasprovidedbytheItalianSpace Agency, agreement n. 2018-5-HH.0. Declarations Ethical approval The paper has been submitted with full responsibility, following due ethical procedure, and there is no duplicate publication, fraud, plagiarism. None of the authors of this paper has a financial or personal relationship with other people or organizations that could inappropriately influence or bias the content of the paper. Open Access This article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if changes were made. The images or other third party material in this article are included in the article’s Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article’s Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitteduse,youwillneedtoobtainpermissiondirectlyfromthecopyright holder. To view a copy of this licence, visit http://creativecomm ons.org/licenses/by/4.0/. Appendix The frame-by-frame variability of the spatial spread of spatters affects the interval prediction of K-function patterns in new process realizations. Figures 18 and 19 show the 95% prediction intervals for the different energy density levels using, respectively, the original K-function estimates and their derivatives. By comparing the prediction intervals associated to different energy densities, it is still possible to distinguish a change in the spatial spatter pattern moving from the first two levels with too low energy input to the following levels that belong to the so-called plateau state. 123
Journal of Intelligent Manufacturing (2024) 35:429–447 445 Fig. 18 Sample mean K-functions fitted in different layers and for different energy densities (a) and the corresponding grand mean K-functions with 95% prediction intervals (b) Fig. 19 Derivative of sample mean K-functions fitted in different layers and for different energy densities (a) and the corresponding grand mean derivative K-functions with 95% prediction intervals (b) References Andani, M. T., Dehghani, R., Karamooz-Ravari, M. R., Mirzaeifar, R., & Ni, J. (2018). A study on the effect of energy input on spatter particles creation during selective laser melting process. Additive Manufacturing, 20, 33–43. Baddeley, A., Gregori, P., Mateu, J., Stoica, R., & Stoyan, D. (2006). Case Studies in Spatial Point Process Modeling. Springer. Barari, A., de Sales Guerra Tsuzuki, M., & Cohen, Y. (2021). Intelligent manufacturing systems towards industry 4.0 era. Journal of Intelligent Manufacturing, 32(7), 1793–1796. Barrett, C., MacDonald, E., Conner, B., & Persi, F. (2018). Micronlevel layer-wise surface profilometry to detect porosity defects in powder bed fusion of Inconel 718. JOM, 70(9), 1844–1852. Bidare,P.,Bitharas,I.,Ward,R.,Attallah,M.,&Moore,A.(2018).Fluid and particle dynamics in laser powder bed fusion. Acta Materialia, 142, 107–120. Chaki, N., Shaikh, S. H., & Saeed, K. (2014). A comprehensive survey on image binarization techniques. In N. Chaki, S. H. Shaikh, & K. Saeed (Eds.), Exploring Image Binarization Techniques (pp. 5–15). Springer. Colosimo, B. M. (2014). Quality Monitoring and Control in Additive Manufacturing (pp. 1–7). Wiley StatsRef: Statistics Reference Online. Colosimo, B. M. (2018). Modeling and monitoring methods for spatial and image data. Quality Engineering, 30(1), 94–111. Colosimo, B. M., del Castillo, E., Jones-Farmer, L. A., & Paynabar, K. (2021). Artificial intelligence and statistics for quality technology: Anintroductiontothespecial issue.Journal of Quality Technology, 53(5), 443–453. Colosimo, B. M., & Grasso, M. (2018). Spatially weighted PCA for monitoring video image data with application to additive manufacturing. Journal of Quality Technology, 50(4), 391–417. Colosimo, B. M., Huang, Q., Dasgupta, T., & Tsung, F. (2018). Opportunities and challenges of quality engineering for additive manufacturing. Journal of Quality Technology, 50(3), 233–252. Comas, C., Delicado, P., & Mateu, J. (2011). A second order approach to analyse spatial point patterns with functional marks. Test, 20(3), 503–523. Diggle, P. J., Mateu, J., & Clough, H. E. (2000). A comparison between parametric and non-parametric approaches to the analysis of replicated spatial point patterns. Advances in Applied Probability, 32(2), 331–343. 123
446 Journal of Intelligent Manufacturing (2024) 35:429–447 Diggle, P., Zheng, P., & Durr, P. (2005). Nonparametric estimation of spatial segregation in a multivariate point process: bovine tuberculosis in Cornwall, UK. Journal of the Royal Statistical Society: Series C (Applied Statistics), 54(3), 645–658. Dong, L., Li, X., Yu, D., Zhang, H., Zhang, Z., Qian, Y., & Ding, Y. (2017). Quantifying nanoparticle mixing state to account for both location and size effects. Technometrics, 59(3), 391–403. Eschner, E., Staudt, T., & Schmidt, M. (2019). 3D particle tracking velocimetry for the determination of temporally resolved particle trajectories within laser powder bed fusion of metals. International Journal of Extreme Manufacturing, 1(3), 035002. Gibson, I., Rosen, D. W., Stucker, B., et al. (2014). Additive Manufacturing Technologies. Cham: Springer. Grasso, M., & Colosimo, B. M. (2017). Process defects and in situ monitoring methods in metal powder bed fusion: A review. Measurement Science and Technology, 28(4), 044005. Grasso, M., Remani, A., Dickins, A., Colosimo, B., & Leach, R. (2021). In-situ measurement and monitoring methods for metal powder bed fusion: An updated review. Measurement Science and Technology, 32(11), 112001. Hohl, A., Zheng, M., Tang, W., Delmelle, E., & Casas, I. (2017). Spatiotemporal point pattern analysis using Ripley’s k function. Geospatial Data Science: Techniques and Applications. Taylor & Francis. Huang, X., Xu, J., & Zhou, Q. (2017). Multi-scale diagnosis of spatial point interaction via decomposition of the k function-based t2 statistic. Journal of Quality Technology, 49(3), 213–227. Huang, X., Zhou, Q., Zeng, L., & Li, X. (2015). Monitoring spatial uniformity of particle distributions in manufacturing processes using the k function. IEEE Transactions on Automation Science and Engineering, 14(2), 1031–1041. Jafari Mamaghani, M., Andersson, M., & Krieger, P. (2010). Spatial point pattern analysis of neurons using Ripley’s k-function in 3D. Frontiers in Neuroinformatics, 4, 9. Jolliffe, I. (2002). Principal Component Analysis. Springer. Kam, K. M., Zeng, L., Zhou, Q., Tran, R., & Yang, J. (2013). On assessing spatial uniformity of particle distributions in quality control of manufacturing processes. Journal of Manufacturing Systems, 32(1), 154–166. Khairallah,S.A.,Anderson,A.T.,Rubenchik,A.,&King,W.E.(2016). Laser powder-bed fusion additive manufacturing: Physics of complex melt flow and formation mechanisms of pores, spatter, and denudation zones. Acta Materialia, 108, 36–45. Kiskowski, M. A., Hancock, J. F., & Kenworthy, A. K. (2009). On the use of Ripley’s k-function and its derivatives to analyze domain size. Biophysical Journal, 97(4), 1095–1103. Kumar, S., Gopi, T., Harikeerthana, N., Gupta, M. K., Gaur, V., Krolczyk, G. M., & Wu, C. (2022). Machine learning techniques in additive manufacturing: A state of the art review on design, processes and production control. Journal of Intelligent Manufacturing.https://doi.org/10.1007/s10845-022-02029-5. Li, X., Jia, X., Yang, Q., & Lee, J. (2020). Quality analysis in metal additive manufacturing with deep learning. Journal of Intelligent Manufacturing, 31(8), 2008. Liu, J., Liu, C., Bai, Y., Rao, P., Williams, C. B., & Kong, Z. (2019). Layer-wisespatial modelingof porosityinadditivemanufacturing. IISE Transactions, 51(2), 109–123. Liu, Y., Yang, Y., Mai, S., Wang, D., & Song, C. (2015). Investigation into spatter behavior during selective laser melting of AISI 316l stainless steel powder. Materials & Design, 87, 797–806. Liu, J., Ye, J., Silva Izquierdo, D., Vinel, A., Shamsaei, N., & Shao, S. (2022). A review of machine learning techniques for process and performance optimization in laser beam powder bed fusion additive manufacturing. Journal of Intelligent Manufacturing.https:// doi.org/10.1007/s10845-022-02012-0. Ly, S., Rubenchik, A. M., Khairallah, S. A., Guss, G., & Matthews, M. J. (2017). Metal vapor micro-jet controls material redistribution in laserpowderbedfusionadditivemanufacturing.Scientific Reports, 7(1), 1–12. McCann, R., Obeidi, M. A., Hughes, C., McCarthy, É., Egan, D. S., & Vijayaraghavan, R. K. (2021). In-situ sensing, process monitoring and machine control in laser powder bed fusion: A review. Additive Manufacturing, 45, 102058. Megahed, F. M., Wells, L. J., Camelio, J. A., & Woodall, W. H. (2012). Aspatiotemporal methodfor themonitoringof imagedata. Quality and Reliability Engineering International, 28(8), 967–980. Megahed, F. M., Woodall, W. H., & Camelio, J. A. (2011). A review and perspective on control charting with image data. Journal of Quality Technology, 43(2), 83–98. Møller, J., & Waagepetersen, R. (2017). Some recent developments in statistics for spatial point patterns. Annual Review of Statistics and Its Application, 4, 317–342. Nassar, A. R., Gundermann, M. A., Reutzel, E. W., Guerrier, P., Krane, M. H., & Weldon, M. J. (2019). Formation processes for large ejecta and interactions with melt pool formation in powder bed fusion additive manufacturing. Scientific Reports, 9(1), 1–11. Qiu, P. (2005). Image Processing and Jump Regression Analysis (Vol. 599). Wiley. Ramsay, J.O. (2004). Functional data analysis. Encyclopedia of Statistical Sciences. Ramsden, J., Allen, D., Stephenson, D., Alcock, J., Peggs, G., Fuller, G., & Goch, G. (2007). The design and manufacture of biomedical surfaces. CIRP Annals, 56(2), 687–711. Repossini, G., Laguzza, V., Grasso, M., & Colosimo, B. M. (2017). On the use of spatter signature for in-situ monitoring of laser powder bed fusion. Additive Manufacturing, 16, 35–48. Ripley, B. D. (1977). Modelling spatial patterns. Journal of the Royal Statistical Society: Series B (Methodological), 39(2), 172–192. Stoica, R. S., Martínez, V. J., & Saar, E. (2007). A three-dimensional object point process for detection of cosmic filaments. Journal of the Royal Statistical Society: Series C (Applied Statistics), 56(4), 459–477. Tercan, H., & Meisen, T. (2022). Machine learning and deep learning based predictive quality in manufacturing: A systematic review. Journal of Intelligent Manufacturing, 33, 1879–1905. Trias, D., García,R., Costa, J.,Blanco, N., &Hurtado, J. (2007).Quality control of CFRP by means of digital image processing and statistical point pattern analysis. Composites Science and Technology, 67(11–12), 2438–2446. Velázquez, E., Martínez, I., Getzin, S., Moloney, K. A., & Wiegand, T. (2016). An evaluation of the state of spatial point pattern analysis in ecology. Ecography, 39(11), 1042–1055. Yamada, I., & Rogerson, P. A. (2003). An empirical comparison of edgeeffectcorrectionmethodsappliedtok-functionanalysis.Geographical Analysis, 35(2), 97–109. Yan, H., Grasso, M., Paynabar, K., & Colosimo, B. (2021). Real-time detection of clustered events in video-imaging data with applications to additive manufacturing. IISE Transactions, 54(5), 464–80. Yan, H., Paynabar, K., & Shi, J. (2015). Image-based process monitoring using low-rank tensor decomposition. IEEE Transactions on Automation Science and Engineering, 12(1), 216–227. Yan, H., Paynabar, K., & Shi, J. (2017). Anomaly detection in images with smooth background via smooth-sparse decomposition. Technometrics, 59(1), 102–114. Zhang, Y., Fuh, J. Y., Ye, D., & Hong, G. S. (2019). In-situ monitoring of laser-based PBF via off-axis vision and image processing approaches. Additive Manufacturing, 25, 263–274. Zhang, Y., Hong, G. S., Ye, D., Zhu, K., & Fuh, J. Y. (2018). Extraction and evaluation of melt pool, plume and spatter information for powder-bed fusion am process monitoring. Materials & Design, 156, 458–469. 123
Journal of Intelligent Manufacturing (2024) 35:429–447 447 Zhang, Y., Safdar, M., Xie, J., Li, J., Sage, M., & Zhao, Y. F. (2022). A systematic review on data of additive manufacturing for machine learning applications: The data quality, type, preprocessing, and management. Journal of Intelligent Manufacturing.https://doi. org/10.1007/s10845-022-02017-9. Zhou, Q., Zhou, J., De Cicco, M., Zhou, S., & Li, X. (2014). Detecting 3D spatial clustering of particles in nanocomposites based on cross-sectional images. Technometrics, 56(2), 212–224. Publisher’s Note Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations. 123