You are on page 1of 14

Journal of Manufacturing Systems 47 (2018) 69–82

Contents lists available at ScienceDirect

Journal of Manufacturing Systems


journal homepage: www.elsevier.com/locate/jmansys

Porosity prediction: Supervised-learning of thermal history for direct laser T


deposition
Mojtaba Khanzadeha, Sudipta Chowdhurya, Mohammad Marufuzzamana, Mark A. Tschoppb,

Linkan Biana,c,
a
Department of Industrial and Systems Engineering, Mississippi State University, Starkville, MS 39762, United States
b
Army Research Laboratory, Aberdeen Proving Ground, MD 21005, United States
c
Center for Advanced Vehicular Systems (CAVS), Mississippi State University, MS 39762, United States

A R T I C LE I N FO A B S T R A C T

Keywords: The objective of this study is to investigate the relationship between the melt pool characteristics and the defect
Additive manufacturing occurrence in an as-built additive manufacturing part. One of the major detrimental microstructure properties
Supervised learning associated with additive manufacturing (AM) is porosity within final parts. State-of-the-art porosity detection
Thermal history methods focus primarily on post-manufacturing approaches that are susceptible to high cost of process, longer
Porosity prediction
process time, and are incapable of characterizing pores during fabrication. A real-time porosity prediction
method is developed using morphological characteristics of the melt pool boundary (i.e., features obtained via
functional principal component analysis (FPCA)). A thermal monitoring system is used to capture the time-
varying melt pool signal, which are labeled as either pores or normal melt pools by X-ray tomography.
Supervised learning methods are utilized to identify the patterns of melt pool images and build a black-box
model for the probability distribution of class labels (namely, porosity) based on data characteristics of pre-
dictors (e.g., melt pool characteristics). The resultant model does not depend on specific design of specimens
with varying material properties; and can be effectively developed as long as thermal-porosity data can be
obtained. In the current study, multiple supervised machine learning approaches are used to classify melt pools
to predict porosity in a part. Two different accuracy measures are used and numerical experiments show that
among the classification approaches used (i.e., Decision Tree (DT), K-Nearest Neighbor (KNN), Support Vector
Machine (SVM), Linear Discriminant Analysis (LDA), and Quadratic Discriminant Analysis (QDA)), KNN results
in the highest rate of accurately classifying melt pools (98.44%). However, DT results in the lowest rate for
incorrectly identifying normal melt pools as pores (0.03%). A comparative study is conducted that compares the
performance of supervised learning methods leveraging the proposed morphological model and simple metrics
of the melt pool. Numerical experiments show that the morphological model combined with supervised learning
techniques vastly outperform the simple melt pool metrics combined with supervised learning techniques (ap-
proximately 250% better performance for correctly predicting abnormal melt pools). Our approach may po-
tentially be applied to other AM processes that share similar energy-material interactions (e.g., powder bed
fusion, electron beam melting).

1. Introduction manufacturing techniques are extremely expensive and time-con-


suming. Hence, there is an imperative need to develop methods for
The inadvertent defects of additive manufacturing (AM) parts result online detection/control of defects during the build. Establishing a
in low repeatability of AM products, which prevents wider adoption of quantitative relationship between the characteristics of melt pools and
AM technologies. One of the more detrimental microstructural prop- the formation of porosity in the as-built parts during the fabrication
erties associated with AM is porosity within final parts. The existing provide a rational solution to this predicament.
methods of defect detection/characterization mainly rely on post-man- The characteristics of melt pools are expected to be highly corre-
ufacturing methods, such as X-ray computed tomography (CT), ultra- lated to abnormalities of microstructure, and thus defects in the fabri-
sonic inspection, and many more [35,51]. However, these post- cated parts [5]. Finite element modeling (FEM) has been developed to


Corresponding author at: Department of Industrial and Systems Engineering, Mississippi State University, Starkville, MS 39762, United States.
E-mail address: bian@ise.msstate.edu (L. Bian).

https://doi.org/10.1016/j.jmsy.2018.04.001
Received 14 September 2017; Received in revised form 11 January 2018; Accepted 1 April 2018
Available online 15 April 2018
0278-6125/ © 2018 The Society of Manufacturing Engineers. Published by Elsevier Ltd. All rights reserved.
M. Khanzadeh et al. Journal of Manufacturing Systems 47 (2018) 69–82

characterize the underlying thermo-physical process of AM, and predict information about the stage of the process, our comparison shows
the evolution of microstructure [14,70]. These methods are mainly that using such simple characteristics are not sufficient for porosity
developed according to the specific part designs (e.g., cube, thin wall). prediction.
Hence, tremendous efforts are needed to model the thermo-mechanical 3. The proposed machine learning method for porosity prediction re-
process while fabricating parts with complex geometries. Moreover, sults in high recall value (98.44%), which provides a means to cir-
due to the deterministic nature of most FEMs, process uncertainty is not cumvent time-consuming porosity characterization.
taken into consideration. The predicted microstructure and mechanical 4. Five supervised learning classification methods (i.e., Decision Tree
behaviors tend to deviate from the actual manufacturing. Last but not (DT), K-Nearest Neighbor (KNN), Support Vector Machine (SVM),
least, FEMs usually require high computational costs, which will be Linear Discriminant Analysis (LDA), and Quadratic Discriminant
difficult to implement for real-time monitoring/control. Analysis (QDA)) have been investigated. The most suitable classifi-
To circumvent the challenges of modeling the complex thermo- cation methods for thermal-porosity relation have been identified
physical process, supervised machine learning can be utilized to iden- and recommended.
tify the patterns of melt pool images and its relationship to porosity.
Melt pool morphological characteristics play a crucial role in de- 2. Literature review
termining the thickness of deposited layers, the microstructure evolu-
tion, and the pore formation. This has been studied extensively in In this section, we survey the papers that investigate the melt pool
[11,13,61]. Supervised learning builds a black-box model for the quantification and characterization as well as discuss the existing por-
probability distribution of class labels (namely, porosity) based on data osity detection techniques. This section is divided into two sub-sections,
characteristics of predictors (e.g., melt pool characteristics). The class i.e., (1) existing porosity detection techniques and (2) quantifying and
labels are defined as binary random variables that give the value of 1 if characterizing the time-varying melt pool.
the melt pool is identified as porosity, and 0 otherwise. The resultant
model does not depend on the specific design of specimens of material 2.1. Existing porosity detection techniques
properties and can be effectively developed as long as thermal-porosity
data can be obtained. To establish an accurate supervised learning The existing literature on porosity detection techniques can be
model, a major challenge must be addressed: melt pool signals are re- broadly classified into three major areas: (1) porosity detection tech-
presented by high-resolution images with varying sizes and shifting niques based on post-manufacturing characterization, (2) visual based
centers due to the dynamic thermal process. Using such ill-structured porosity detection techniques, and (3) simulation based porosity de-
melt pool signals as predictors directly causes issues such as co-linearity tection techniques.
and curse-of-dimension, which affects the prediction accuracy. Hence,
dimension reduction and feature extraction procedures are needed to 2.1.1. X-ray computed tomography and ultrasonic
develop a structural predictor that captures the critical characteristics X-ray computed tomography or ultrasonic techniques have been the
of melt pools. To address this challenge, we develop a methodology major mechanisms that are extensively used for post manufacturing
based on functional principle component analysis (FPCA), which ex- characterization while detecting porosity. Many researchers have pro-
tracts key characteristics of melt pools and converts it to smooth vided a higher level overview on the operations of the machine and
functional curves. The first few principle components (PCs) of these how it can contribute to detect porosity in the parts. For instance, the
curves represent the major sources of variation in the thermal history, benefits of using flash thermography against other approaches such as
and thus are used as the predictor of porosity. It is shown in Section 3 ultrasonic attenuation estimation have been investigated by Meola and
that principle components (PCs) of melt pool images can potentially Toscano [44], where the authors show that flash thermography is non-
distinguish normal melt pools from abnormal ones. contact, cost-effective, and fast compared to other approaches. Through
Once the melt pools are labeled via X-ray tomography, we apply experiments, the authors have also found that by flash thermography, a
multiple classification methods (i.e., Decision Tree (DT), K-Nearest part can be inspected while viewing the smooth or the rough side in-
Neighbor (KNN), Support Vector Machine (SVM), Linear Discriminant differently. For three-dimensional (3-D) defect characterization, ana-
Analysis (LDA), and Quadratic Discriminant Analysis (QDA)) to estab- lysis, and visualization, Wells has showed X-ray computed tomography
lish the relationship between the PCs of melt pool images and the modality using advanced Volume Graphics StudioMax (VGSM) voxel
binary response that indicates the formation of porosity at the corre- analysis and visualization software [68]. Porosity and some inclusions
sponding location. Cross validation is used for parameter tuning and have been found in this study and the total defect level has been found
model validation. In particular, the classification models are trained to be 1.11% of the total casting volume. X-ray computed tomography
based on a randomly selected subset of the data and tested based on the method, involving image enhancement and ring artifact removal prior
remaining dataset. This procedure is repeated for multiple times to to image segmentation, has been proposed by Cai et al. [6], where the
ensure that each data point is selected for both model training and authors investigate the effect of process parameters on material por-
testing. Fig. 1 accounts for overall machinery of the supervised learning osity. The authors validate the superiority of X-ray computed tomo-
methods for porosity prediction. graphy over other conventional methods through several experiments.
We compare the accuracy of the proposed method that utilizes Ultrasonic methods are primarily used for analyzing the porous
comprehensive melt pool characteristics with simple metrics of the melt structure, mechanical strength, and to detect internal defects [39]. Kim
pool such as length, width, peak temperature, area, etc. [36,51]. Results et al. [36] have investigated the procedure for estimating the porosity
show that porosity prediction using the simple metrics of the melt pool content of composite materials, which relies on the decomposition of
produces very poor accuracy measures compared to the morphological the original ultrasonic pulse-echo signal into a sum of elementary wa-
characteristics of the melt pool. In summary, the technical contributions velet contributions. This results in the reduction of complicated func-
of this study to the existing literature are as follows: tions into several simpler ones, which are studied separately later. Eren
et al. [16] propose three different ultrasonic approaches for char-
1. We develop a novel data processing method for reducing the di- acterizing porosity as well as for detection and imaging of different type
mension of the thermal image data and extracting features relevant of defects in the ceramic materials. Among the three approaches, the A-
to the generations of porosity in the as-built parts. scan analysis has been found to be better suited for the detection of
2. The proposed method is compared with the studies in the literature, different type of defects in the ceramic tiles with a contact high-fre-
which mainly use the simple characteristics for thermal monitoring quency longitudinal wave transducer. Air-coupled ultrasound is sui-
and control. Although such characteristics provide general table for non-contact detection and the imaging of defects in ceramic

70
M. Khanzadeh et al. Journal of Manufacturing Systems 47 (2018) 69–82

Fig. 1. Demonstration of porosity prediction procedure using supervised machine learning.

tiles. Finally, frequency dependence of attenuation is the most appro- they are often incapable of taking into account the uncertainty that
priate one for the quantification of porosity. Interested readers can results from material or process parameters.
review the works by [1,21,23,57] for details about ultrasonic inspection
of AM parts. 2.2. Quantifying and characterizing the time-varying melt pool
Few researchers have investigated the possibility of detecting
anomalies while building the parts and taking steps to correct them in a Existing literature on quantifying and characterizing the time-
real time manner. Among these studies, Fan et al. [17] have proposed varying melt pool is generally conducted in two ways: (1) utilizing melt
an online surface defect detection system with in-built image processing pool morphological characteristics and (2) utilizing melt pool tem-
methodology leveraging the optical system design. Simultaneously, the perature characteristics.
authors also have developed an analysis algorithm that removes the
noise from porous images, detects object edges, and uses hybrid-based
method to determine the defects in the parts. Schwerdtfeger et al. [55] 2.2.1. Literature on melt pool morphological characteristics
have investigated the possibility of in situ anomaly detection for The majority of studies in the melt pool modeling, monitoring, and
Ti–6Al–4V parts, where the authors have observed strong correlation control focus on leveraging the morphological characteristics of the
between the patterns visible in infrared images and metallographic melt pool. Qi et al. [51] have modeled the physical phenomena in-
images. This correlation specifies anomalies through variation in color cluding heat transfer, melting and solidification phase changes, mass
density in images. This provides a unique procedure for in situ quality addition, and fluid flow in the melt pool in a self-consistent manner.
control as anomalies can be repaired in real time using appropriate The authors have investigated various morphological features of the
repair methods (e.g., re-melting of the compromised area, additional melt pool along with physical phenomena related to the melt pool.
powder deposition and re-melting of the compromised area, and many Finally, the findings of this study are benchmarked against practical
more). results according to melt pool's width, length, and the height of a so-
Apart from these studies, a stream of simulation based methods are lidified cladding track. On a similar note, the melt pool shape of laser
available in the literature that have been developed to predict cladding has been studied by Kim and Peng while checking only the
anomalies (e.g., [46,61,64,66,69]). However, these methods require effect of cladding time and speed on the melt pool morphology. Due to
integrating X-ray computed tomography to validate the results obtained the deterministic nature of the models proposed by the studies, the
via simulation methods. methods fail to provide the capability to leverage the in-process thermal
imaging data. Hence, despite showing good accuracy, this method
cannot account for the process uncertainty during the process [36].
2.1.2. Limitations Pinkerton and Li have used the energy and mass balance to analyze
Limitations of the existing post-manufacturing porosity detection the geometry of the melt pool. The authors claim that the proposed
methods lie in the high cost associate with the process, longer process method is capable of modeling the melt pool cross-section in horizontal
time, and the lack of capability to characterize pores during manu- plane [48]. In essence, a model that concentrates on mathematical
facturing. On the other hand, outputs from the visual and simulation analysis of the melt pool is developed, and it establishes mass and en-
based porosity detection methods can be far from actual yields because ergy balances based on one-dimensional heat conduction to the

71
M. Khanzadeh et al. Journal of Manufacturing Systems 47 (2018) 69–82

substrate. Birnbaum et al. have proposed a process map approach to Square (RMS) errors.
relate different issues of controlling the melt pool size in the laser based
additive manufacturing (LBAM). Through different numerical experi- 2.2.3. Limitations
ments, the authors have claimed to being able to reduce from large To the best of the authors knowledge, melt pool characteristics have
amount of simulations over quite a few number of parameters in plots not been previously utilized extensively to detect or predict the porosity
[5]. Li et al. [40] provide a comparative study of the laser additive of AM parts. Fairly recently, Khanzadeh et al. have developed a state-of-
manufacturing of Inconel 718 using the pulsed-wave and continuous- the-art methodology that demonstrates the implementation of two-di-
wave laser models by both simulations and experiments. Li et al. pro- mensional (2-D) modeling of the melt pool to detect anomalies in ad-
pose a 3-D numerical model to simulate the transient melt pool motion, ditively manufactured thin walls utilizing the melt pool morphological
heat transfer, and fluid flow for pulsed-wave laser additive manu- characteristics [31,32]. Khanzadeh et al. have further extended the
facturing. Moreover, authors provide a comparative study of the laser previous work of detecting anomalies in additively manufactured thin
additive manufacturing of Inconel 718 using the pulsed-wave and walls utilizing the entire melt pool thermal characteristics [32,33].
continuous-wave laser modes via simulations and empirical experi- However, both the studies [31,32] use unsupervised clustering methods
ments. Two significant findings can be reported from the study. First, to develop the detection methodology. Supervised learning techniques
under both of the laser models, simulated single track melt pool geo- play a major role in detecting anomalies in AM parts if they can be
metries and average temperatures demonstrate good agreement with integrated properly in the anomaly detection procedure. Note that su-
measured results in the study. Second, the solidification front in the pervised machine learning can be utilized to identify the patterns of the
pulsed-wave case has been found to be about 15° more tilted to the laser melt pool images and their relationship to porosity. In essence, lever-
scanning direction compared to the continuous-wave case. Ahn et al. aging the data characteristics of melt pools, supervised machine
[2] have proposed two novel methods for evaluation of the character- learning generates a black-box mathematical model for the probability
istic length of the melt pool. The effectiveness of these two evaluation distribution of porosity. The resultant model does not depend on the
methods is analyzed, where one of the methods (i.e., method that uses specific design of specimens of material properties and can be effec-
the gap between the two centers of neighboring scans) has been ex- tively developed as long as the thermal-porosity data is available.
perimentally found to be more efficient due to the averaging effect. Hence, a robust data driven state-of-the-art melt pool characterization
Wang et al. have developed a novel method for improved character- and quantification scheme, integrated with supervised learning
ization of the interdependence between melt-pool height and laser schemes, is required for porosity detection.
power that includes parameterizing the material transfer rate in the
deposition as a function of the process operating parameters [67]. 3. Data characterization and processing

2.2.2. Literature on melt pool temperature characteristics 3.1. Experimental setup


Another stream of research utilizes the monitored Infrared (IR)
thermal data streams of melt pool for the purpose of closed-loop control Laser engineered net shaping (LENS) process has become a common
[60]. The deposition of thin walls with constant laser power and dif- mean to accomplish powder-based direct laser deposition (DLD) in both
ferent process control strategies has been investigated by Bi et al. [4], academic field and industry [56,63]. OPTOMEC LENS 750 machine
where the authors have primarily focused on the emitted signals of the equipped 1.0 kW Nd:YAG laser, pyrometer, and in-chamber thermal
melt pool from IR-temperature. The authors have found that both the camera is used to fabricate single track Ti-6Al-4V thin wall specimens
size and temperature of the melt pool influence the dimensional accu- [42]. Technical specification of the LENS machine and dimension of the
racy of the deposited sample. These signals can be used for closed-loop single track Ti-6Al-4V thin wall are provided in Table 1.
and part quality control as well as for process monitoring. The effects of A dual-wavelength pyrometer (Stratonics, Inc.) and an IR camera
the laser processing parameters on the temperature of the melt pool (Sierra-Olympic Technologies, Inc. Viento320) have been used to cap-
have been investigated by Hua et al., where the relationship between ture the temperature distribution of the top surface and side view of the
the melt pool and the thickness of cladding layer is addressed [26]. The melt pool during manufacture (see Fig. 2). Since we are focusing on the
investigation output is quantifying the relationship between the melt characteristics of the top surface of the melt pool in this study, only data
pool and the thickness of cladding layer. Through this, in situ accurate obtained from dual-wavelength pyrometer (Fig. 2(b)) is used for por-
control for the layer thickness is achieved by using an analytical model osity prediction. The IR camera (Fig. 2(a)) is typically used to capture
based on temperature measurement of the melt pool. Song et al. [58] the characteristics of the melt pool from the side view. Note that the
apply a two-input single-output hybrid control system with cladding melt pool data from IR camera is not used in this study. The pyrometer
master height controller and slave temperature controller to improve is mounted above the OPTOMEC LENS 750 machine, outside of the
the quality and precision of geometrically complex parts in accordance inert environment of the chamber and aligned so as to view down the
with melt pool temperature. The cladding height controller developed laser shaft via a series of three broadband metallic mirrors. The CMOS
in this study is a rule-based controller, whereas, the melt pool tem- detector has been used in the pyrometer with array size and pixel pitch
perature controller is a generalized predictive controller with input being 752 × 480 and 6.45 μm, respectively. The temperature range in
constraints. These controllers are connected in series with the height the pyrometer varies from 1000 to 2500 °C. Exposure time and pixel
controller given a higher priority compared to the temperature con- clock are set to be 2.0274 ms and 5 MHz, respectively. The nominal
troller. This hybrid controller has been shown to achieve stable layer image collection rate of the pyrometer is approximately 6.4 Hz. The IR
growth by evading both over-building and under-building through camera is oriented at approximately 45° with respect to the sides of the
controlling and monitoring the heat input. Chandrasekhar et al. [7]
develop hybrid intelligent models combining image processing with Table 1
soft computing techniques (i.e., Adaptive Neuro Fuzzy inference system LENS processing parameters for AM thin wall.
(ANFIS) and Artificial Neural Network ((ANN)) for estimating the weld Parameter Value
bead width and the depth of penetration from the IR thermal image of
the weld pool. Four image features are extracted and used along side Power 300 W
current values as inputs to the ANFIS and ANN models. In the mean- Scan speed 30 rpm
Powder feed rate 0.9 rpm
time, the measured weld bead width and depth of penetration are used
Determination of hatch spacing 0.508 mm
as output of the respective models. Finally, the predictive performance Determination of layer thickness 0.508 mm
of the ANFIS and ANN models is compared in terms of the Root Mean

72
M. Khanzadeh et al. Journal of Manufacturing Systems 47 (2018) 69–82

Fig. 2. Images of (a) top view of IR camera and (b) side view of the pyrometer and their orientation with respect to the substrate and thin wall within the build
chamber [42].

Fig. 3. Images of (a) the thin wall AM build and (b) the melt pool thermal profile along with the contour of 1636 °C.

CNC stage and is tilted in such a way that the focal plane is rotated 10° 3.2. Functional principle component analysis (FPCA) of melt pool images
from a line normal to the substrate. The thin wall is constructed in an
orientation such that one of its sides is fully in-view by the IR camera. Although the Cartesian coordination of the data (shown in Fig. 4(a))
The nominal image collection rate of the IR camera is approximately is analogous to real melt pool shape, it cannot be represented in a
12.58 Hz. This allows for capturing the melt pool images in real time. functional form. Hence, polar transformation is applied to the mor-
Each melt pool image has a 1.7 MB file size. With such high image re- phology of top surface of the melt pool to obtain the value of θi and ρi
solution and monitoring frequency, a single thin wall build that is shown in Eq. (1), i.e.,
(length = 47.81 mm, height = 27.56 mm, thickness = 1.78 mm) results
(θi , ρi ) ≔ p (Xi , Yi )
in 4.7 GB of image stream data [42]. Fig. 3(a) shows the picture of the
thin wall build while Fig. 3(b) depicts the melt pool boundary captured
using the pyrometer thermal camera.
(
≔ arctan ( ),Yi
Xi
(Xi2 ) + (Yi2 ) ) i = 1, 2, …, n
(1)
To label the melt pool data, 3-D CT is used to empirically locate the n is the total number of points in the circumference of the melt pool.
defects in the part. By doing so, we can validate the efficiency of the The morphological melt pool model after polar transformation is shown
proposed method against real results. Note that the 3-D CT is an ad- by the blue dots in Fig. 4(b). More specifically, we extract the boundary
vanced X-ray inspection technique that forms three-dimensional (3-D) of the melt pool and represent it using the polar coordination system.
representations of an object by capturing numerous X-ray images Existing studies have demonstrated that the characteristics of the
around an axis of rotation and using algorithms to reconstruct a 3-D boundary (e.g., size, depth, length, width, and many more) are crucial
model [12,38]. The CT method used in this study utilizes a full 3-D cone for the formation of microstructure anomalies [34,48,51]. Hence, each
of X-ray with a 2-D detector. This cone beam scanner irradiates the melt pool contour can be represented using a function. Let us define
whole object throughout the scan. It moves through 360° to obtain data ρ = ρ(θ) where θ ∈ (−π, π). As shown in Fig. 4, ρ represents the dis-
for the entire object [25]. This technique identifies the shape and size of tance between the center of the melt pool (defined based on the peak
the pores within the thin-wall specimen, which cannot be identified temperature) and the melt pool boundary.
individually. More specifically, the system can detect pores with the Functional principle component analysis (FPCA) is applied to
size ranging from 0.05 mm to 1.00 mm. However, pores with a diameter ρ = ρ(θ) to fit a smooth functional curve and extract critical features.
less than 0.05 mm are difficult to identify. Such small size pores tend to This essentially comprises of two steps: (1) Curve fitting via cubic spline
have less impact on the mechanical strength and fatigue of parts. smoothing that connects discrete data points with piecewise cubic

73
M. Khanzadeh et al. Journal of Manufacturing Systems 47 (2018) 69–82

Fig. 4. Polar transformation of melt pool boundaries (a) shows the Cartesian Coordinates of the melt pool boundary and (b) shows the morphological model after
polar transformation.

functions while guaranteeing the smoothness of the function [9,54]. curve fitting is applied. Simultaneously, fj,1 represents the first
This method has been applied commonly for phase field computations principle component score function for melt pool j, which can be
in chemicals [62], image processing in disease detection [52], and calculated as follows:
many more. Thus, this method can be considered as a suitable tool to
handle the melt pool data. (2) Identifying the principle components f j,1 = ∫ ε1 (θ) ρj (θ) dθ
using FPCA. FPCA is applied to extract the pattern of variation ex-
hibited in ρ (θ) . FPCA reduces the functional data to a given number of
components such that the representation is optimal in terms of its ε1(θ) is a weight function. The first step in FPCA is to maximize
L2(Hilbert space) accuracy. It can handle functional data that cannot be
2
∑ j f j,1 that is subject to ∫ ε12 (θ) dθ = 1. Next, we need to compute
analyzed directly using PCA. Details of these steps are provided below. the weight function ε2(θ) that satisfies the orthonormal property
(i.e., ∫ ε22 (θ) dθ =1 and ∫ ε1(θ)ε2(θ)dθ=0). Following these proper-

• Curve fitting via cubic spline smoothing


2
ties, ∑ j f j,2 has to be maximized and the process continues. The
Assume that a melt pool boundary consists of n + 1 (θi, ρi) pairs. resultant equation is an eigenequation that can be expressed as
follows:
⎧ ρ1 (θ) θ0 < θ < θ1
ρ (θ) ≔ ρ (θ) θi − 1 < θ < θi
⎨ i
∫ ν (θ′, θ) ε (θ) dθ = λε (θ′) (2)
⎪ ρn (θ) θn − 1 < θ < θn ;

where ν(θ′, θ) is the sample variance-covariance function, λ is an
For any i = {1, 2, …, n}, ρi (θ) is a cubic function represented as eigenvalue, ε(θ′) is an eigenfunction of variance-covariance func-
follows tion. There are different methods to solve the eigen-equation (2)
ρi (θ) = ai + bi θ + ci θ 2 + di θ3 such as discretization of the functions, basis function expansion of
the functions, general numerical quadrature, and Gaussian quad-
rature [53]. In this study, discretization of the functions method is
To determine the spline, coefficients ai, bi, ci, and di for each i must utilized from the FPCA package in MATLAB to solve the eigen-
be estimated. Note that since there are n intervals, 4n coefficients equation (2). Subsequently, the components that account for the
need to be estimated using the following three key conditions, majority of the variation in data are determined.
– Spline has to be exact at the data points, i.e.,
ρi (θi − 1) = ρi − 1 , ρi (θi ) = ρi In our study, it has been found experimentally that the first nine
components accounts for 99.52% of the variation in data (see Fig. 5(a)).
Moreover, as evident from Fig. 6(a)–(d), it is obvious that using up to
– Continuity of first and second derivative must be maintained, i.e., two components accounts for majority of the variation (i.e., 89.57%).
ρi′ (θi ) = ρi′+ 1 (θi ), ρi″ (θi ) = ρi″+ 1 (θi ) Fig. 6(a) shows the original melt pool profiles. In Fig. 6(a), blue and
orange positive (+) signs denote the upper and lower bounds for ρ
values, respectively. Fig. 6(c) and (d) show the first and second prin-
– The natural boundary condition must be maintained, i.e., cipal components curve, which points are estimated from discretization
ρ1″ (θ0) = ρn″ (θn ) approach and curves are the estimates from expansion of Fourier series
on θ, respectively. Fig. 6(a) shows morphological model of melt pool
using only the first (z1) and second (z2) principal components where
Cubic spline curve fitting, including the estimation of coefficients same as before blue and orange positive (+) signs denote the upper and
(ai, bi, ci, and di) can be performed using MATLAB. lower bounds for ρ values, respectively. More specifically, it explains
• Identifying the components of ρ (θ) using FPCA approximately 89.57% of the variation in data (as shown in Fig. 5(a)).
The method of FPCA is summarized as follows: The rest of the six components account for 9.95% of the variation in the
Let us assume ρj (θ) accounts for profile of the melt pool j after spline data. From Fig. 5(b), it is observed that abnormal melt pools are

74
M. Khanzadeh et al. Journal of Manufacturing Systems 47 (2018) 69–82

Fig. 5. Dimension reduction procedure using FPCA where (a) shows the percentage of variation for the first 10 principle components, and (b) demonstrates the scores
for two principle components (z1 and z2). The blue dots represent normal melt pools and red dots represent abnormal melt pools that results in porosity of as-built
parts. (For interpretation of the references to color in this figure legend, the reader is referred to the web version of this article.)

captured by specific range of the first two components (i.e., z1 and z2). Decision Tree (DT), and (4) Discriminant Analysis (DA). We also in-
Generally, lower values in both z1 and z2 are associated with abnormal vestigate two variants of DA: (1) Linear Discriminant Analysis (LDA)
melt pools whereas larger values tend to result in normal melt pools. In and (2) Quadratic Discriminant Analysis (QDA). These approaches are
the next section, we will investigate multiple classification methods to explained in details in Appendix, and the corresponding results for each
predict whether a melt pool is abnormal based on its z1, z2, …, z9 va- approach demonstrated below.
lues. However, only z1 and z2 are used for demonstration purposes.
4.1. K-Nearest Neighbors (KNN)
4. Supervised learning for the classification of melt pools
Fig. 7(a) and (b) demonstrates the results of KNN algorithm, where
Supervised learning is the machine learning method of inferring a z1 and z2 are two PCs that are used to classify melt pools. Query points
function from supervised training data. Supervised learning algorithms (triangle) are generated that need to be classified into normal (blue
usually contain a set of input samples and corresponding labels are circle) or abnormal melt pools (red circle). Based on the Euclidean and
associated with that data. The goal of a classifier is to find a suitable Minkowski distance measure (with p = 0.8), nearest data points to the
boundary that can predict correct labels on test data. To explain briefly, queries are determined (circular region around data points) that are
in supervised learning, each example can be considered as a pair con- shown in Fig. 7(a) and (b). The labels of query points are fixed based on
sisting of an input object and a desired output value. A supervised the type of melt pools are closer to them.
learning algorithm analyzes the training data and produces an inferred
function. This function is called a classifier or a regression function 4.2. Support Vector Machine (SVM)
[22,30]. The inferred function should predict the correct output value
for any valid input object. Fig. 8(a) and (b) shows the SVM classification using a Gaussian
Four different types of classification methods have been used: K- kernel and a polynomial kernel. Normal and abnormal melt pools are
Nearest Neighbors (KNN), Support Vector Machine (SVM), Decision denoted by blue and red dots respectively. Support vectors are used
Tree (DT), and Discriminant Analysis (DA). Although very few classi- (circular region around red or blue dots) to create the hyperplane that
fiers have been used for porosity or anomaly detection purpose for AM are used to classify the entire dataset.
parts, various studies are available in the literature that utilize the
aforementioned classification methods for several other purposes such 4.3. Decision Tree (DT)
as network intrusion detection [34,45,59], detection of epileptic seizure
in Electroencephalogram (EEG) signals [49], change detection of Fig. 9 demonstrates a decision tree that predicts classifications
images [27], disease specification [3,50,65], face recognition [24,47], based on two predictors, z1 and z2. To predict the melt pool class, start
road-sign detection [41], detection of explosives [19], and many more. at the top node, which is represented by a triangle. The first decision is
This study is one of the introductory studies that uses classification whether z2 is less or more than −56.7957. If z2 is less than −56.7957,
methods for porosity detection in AM parts using melt pool thermal the left branch is followed and it is checked whether the value of z1 is
profile characteristics. less or more than 6.34188; otherwise, the right branch is followed. The
We formulate the classification of melt pools as follows branches are pruned if a decision can be made regarding the normality
or abnormality of melt pool.
Y = f (z1, z2, …, z 9) (3)

where Y is the binary random variables that indicates whether the melt 4.4. Discriminant Analysis (DA)
pool results in porosity at the corresponding location. More specifically,
Y = 1 if the melt pool results in porosity; Y = 0 otherwise. The classi- Fig. 10(a) shows the LDA results. A linear classifier is created based
fier is represented by f(·) that links melt pool characteristics (z1, z2, …, on the concept of discriminant analysis. This results in three coefficients
z9) to Y. In what follows, we use four classification methods: (1) K- K, L(1), and L(2) for the linear boundary between the normal and ab-
Nearest Neighbors (KNN), (2) Support Vector Machine (SVM), (3) normal melt pool. Finally, a curve is generated (red line in Fig. 10(a))

75
M. Khanzadeh et al. Journal of Manufacturing Systems 47 (2018) 69–82

Fig. 6. Demonstrating melt pool morphological model with first two principal components where (a) shows the original melt pool profiles in polar coordinates, (b)
shows morphological model of melt pool using only the first (z1) and second (z2) principal components and (c) and (d) show first and second principal components
curve. Scattered data points in (c) and (d) are estimated from discretization approach and curves are the estimates from expansion of Fourier series on θ.

that partitions the data into two sets. In Fig. 10(b), a quadratic dis- Some of the classification methods contain some sensitive tuning
criminant classifier is created. Coefficients for the quadratic boundary parameters that need to be estimated properly as these parameters
between normal and abnormal melt pools are retrieved and a curve is significantly affect the efficiency of the classification methods. Hence,
plotted (red line in Fig. 10(b)) that separates the normal and abnormal obtaining the best possible set of tuning parameters is very crucial, both
melt pools. QDA usually provides better solution compared to LDA as it from the perspective of reducing computational cost and increasing
captures more anomaly due to the shape of the defined boundary. computational accuracy. Afterwards, using the selected parameters, all
Figs. 10(a) and (b) shows that abnormal melt pools are more clearly the classification methods are validated. Finally, the accuracy of the
distinguished in QDA. proposed method using morphological model is benchmarked against
using melt pool simple metrics.
5. Comparison and benchmark
5.1. Model validation
This section discusses the numerical experiments conducted to
predict porosity of AM parts. We first start with implementing the FPCA Among the five different classification methods, only KNN and SVM
to reduce the dimensionality of the data. With the FPCA, it has been have parameters that need to be tuned since the behavior parameters of
found experimentally that utilizing up to 9 components (i.e., z1, z2, …, SVM and KNN influence their performance [29]. Hence, we need to
z9) accounts for almost 99.52% of variation in the data. perform parameter tuning via k-fold validation, which has been widely

76
M. Khanzadeh et al. Journal of Manufacturing Systems 47 (2018) 69–82

Fig. 7. K-Nearest Neighbor model for z1 and z2 for the different melt pools where (a) the Euclidean distance and (b) the Minkowski distance (with p = 0.84) are used
to classify melt pools as abnormal or normal. (For interpretation of the references to color in this figure citation, the reader is referred to the web version of this
article.)

applied to identify/select the appropriate types and values of para-


meters for classification methods (e.g., SVM, KNN). k-fold cross-vali-
dation (sometimes referred to as “rotation estimation”) is a model va-
lidation technique where the dataset Z is randomly split into k mutually
exclusive subsets of approximately equal size. Each classification pro-
cess is trained on Z ∖ Zt (Z does not include Zt), t ∈ {1, 2, …, k}, k times
and tested on Zt. The cross-validation estimate of accuracy is the overall
number of correct classifications divided by the number of instances in
the dataset [37]. Two different measures (M1 and M2) are developed to
evaluate the accuracy of the classification approaches. The concept of
M1 and M2 can be explained from the perspective of True Negative
(TN), False Positive (FP), False Negative (FN), and True Positive (TP). If
the pores predicted by the proposed method are actually pores, it is
denoted by TP. On the contrary, if the pores predicted by the proposed
method are actually normal melt pools, it is denoted by FN. If the Fig. 9. An example of classification tree using the first two principle compo-
normal melt pools are incorrectly classified as pores, it is labeled as FP. nents (z1 and z2).
Last, if normal melt pools are labeled as normal melt pools by the
proposed method, it is denoted as TN. The above definitions are sum- TP
M1 =
marized in Table 2. FN + TP (4)
Utilizing the concept shown in Table 2, M1 and M2 can be re-
presented as follows FP
M2 =
TN + FP (5)

Hence, M1 is the probability of correctly predicting an abnormal

Fig. 8. SVM classification with (a) Gaussian kernel function and (b) polynomial kernel function. (For interpretation of the references to color in this figure citation,
the reader is referred to the web version of this article.)

77
M. Khanzadeh et al. Journal of Manufacturing Systems 47 (2018) 69–82

Fig. 10. Illustration of discriminant analysis (DA) classification procedure where (a) indicates the linear score function for DA and (b) the quadratic score function for
DA.

Table 2 Table 4
Demonstrating the confusion matrix with model performance measures. Number of neighbors (K) for query points based on Euclidean distance
method for KNN.
Predicted
K M1 M2
Normal Abnormal
4 0.9947 0.0027
Actual Normal TN FP 5 0.9874 0.0014
Abnormal FN TP 6 0.9896 0.0027
7 0.9621 0.0014
8 0.9700 0.0021
melt pool while M2 is the probability of incorrectly predicting a por- 9 0.9543 0.0020
10 0.9449 0.0015
osity.
11 0.9293 0.0012
The tuning process for the classification model is accomplished by 12 0.9227 0.0009
randomly selecting 64% of data as train set and 16% as test set. This
process is repeated 60 times to select the appropriate distance method The bold values are the selected tuning parameters.
as well as the number of neighbors (K) for each query point of the KNN
classification method.
Table 3 demonstrates the best distance method for KNN. On
average, for 60 trials, the Euclidean distance method provides the best
values for M1 and M2. Higher values for M1 and lower values for M2 are
preferred. After selecting the distance method, the number of neighbors
(K) are chosen. Results from Table 4 show that when the number of
neighbors is set to 4, the accuracy measures provide the best result.
Finally, for SVM classification, the kernel function is known to pro-
vide high quality classification of the data [8]. Hence, three kernel
functions are tested and it has been found that polynomial kernel function
provides the best result in terms of accuracy measures M1 and M2.
Leveraging the tuning parameters selected in the previous section and
choosing the K-fold cross-validation method, the entire dataset is used
for experiment where 80% of the dataset is used for training while the
remaining 20% is used for testing. Hence, the value of k is set to be 5.
The process is repeated for 60 trials, and the average values for Fig. 11. Comparing the accuracy measures for the classification methods. The
lower horizontal axis is for M1 and upper horizontal axis is for M2.

Table 3
Selecting distance method for KNN classification. Table 5
Selecting the appropriate kernel function method used in support vector ma-
Distance M1 M2
chine (SVM).
Manhattan (L1-norm) 0.9588 0.0030 Kernel function M1 M2
Euclidean (L 2 -norm) 0.9844 0.0020
Minkowski 0.9513 0.0067 Linear 0.9070 0.0033
Cosine 0.9692 0.0056 Gaussian 0.0000 0.0000
Correlation 0.9623 0.0042 Polynomial 0.9797 0.2215

The bold values are the selected tuning parameters. The bold values are the selected tuning parameters.

78
M. Khanzadeh et al. Journal of Manufacturing Systems 47 (2018) 69–82

accuracy measures are reported. Fig. 11 shows the accuracy measures


for all the classification methods used in this study. Results indicate that
KNN provides the highest value for measure M1 (98.44%); however, for
measure M2, DT gives the best result with false negative value of only
0.033%.

5.2. Benchmark against morphological characteristics of melt pools

The majority of the existing melt pool monitoring/modeling ap-


proaches focus on simple metrics, such as the size, length, peak tem-
perature, and others [5,15,48,51]. These approaches focus primarily on
relating process parameters to the melt pool size, characterizing the
interdependence between the melt pool height and laser power, esti-
mating the motion of the melt pool's free surface in uninterrupted
cladding, and many others. Hence, these simple metrics are used to Fig. 12. Schematic of an example melt pool explaining some of the extracted
demonstrate the advantage of using morphological descriptors for simple metrics: circumference (dotted line), length, width, total area (shaded),
predicting porosity. For the simple metrics of melt pool, the features longest axis, and the areas of each of the quadrants (TL, TR, BL, BR).
can be represented in matrix form shown by Eq. (6):

Γ = [γ (i)], i = {1, 2, …, N }
where γ (i) = (γ1i, γ2i, …, γpi) (6)

Simple metrics contain a limited number of features as shown in


Table 6. Interested readers can refer to Pinkerton et al. [48] and Qi
et al. [51] for further details on these morphological features. Graphical
representation of the extracted simple metrics is provided in Fig. 12.
Nine components (M = 9) are investigated by Principle Component
Analysis (PCA) to determine which component or group of components
account for the highest proportion of variation in the data.
Experimental results show that considering up to four components ac-
count for almost 99% of the variability in the data. With these four
independent components, different classification approaches are ap-
plied to predict the pores in the AM part. Following the same tuning
procedure described in Section 5.1, it has been experimentally found Fig. 13. Comparing the accuracy measures for the classification methods with
that the cosine distance is better for KNN with four neighbors (K = 4). simple metrics.
Similarly, polynomial kernel function has been found to provide su-
perior performance for SVM.
The selected tuning parameters and the k-fold cross-validation Table 7
Comparing best accuracy measures between simple metrics and morphological
method are simultaneously used for the entire dataset where 80% of the
model.
dataset are used for training and 20% are used for testing. Fig. 13 shows
the accuracy measures for all the classification methods with simple Melt pool model M1 M2
metrics. SVM provides the highest value for measure M1 (28.32%).
Simple metrics 28.32% 0.57%
However, for measure M2, LDA gives the best result with false negative Morphological model 98.44% 0.03%
value of only 0.57%. Although SVM outperforms other classification (%) Improvement 247.62% 94.15%
methods with simple metrics, its performance is worse compared to
other classification-based approaches used with the morphological
model. For instance, for the measure M1, the best classification method porosity prediction. Table 7 provides the comparative quantification of
for morphological model (KNN) provides a much better performance the superiority of the morphological model over the simple metrics.
compared to SVM with simple metrics (M1 of 28.32% with SVM versus
M1 of 98.44% with KNN, approximately a 250% improvement). The 6. Conclusions
same trend is followed by M2 for the best classification methods for
each model. This shows that morphological model captures more so- The wider adoption of AM technologies in strategic industrial sec-
phisticated information compared to simple metrics that can be used for tors require techniques that improve the quality of parts, namely, mi-
crostructure anomalies, such as porosity and mini-cracks. This study
Table 6 proposes a porosity prediction scheme via supervised machine learning
Simple metrics. of melt pool thermal image streams for the AM parts. Major findings of
this study are summarized below:
Feature notation Metric

γ1
γ2
Circumference
Length
• Existing porosity prediction/detection methods focus primarily on
post-manufacturing approaches that are susceptible to high cost of
γ3 Width
process, longer process time, and are incapable of characterizing
γ4 (TL) Top left area
γ5 (TR) Top right area pores during fabrication. We propose a machine learning framework
γ6 (BL) Bottom left area to establish a relationship between melt pool morphological char-
γ7 (BR) Bottom right area acteristics and anomalies in the microstructure. Melt pool thermal
γ8 Total area image streams are first used to develop the morphological model.
γ9 Longest axis
The central hypothesis is that the morphological model contains

79
M. Khanzadeh et al. Journal of Manufacturing Systems 47 (2018) 69–82

significant information regarding the microstructure properties of techniques vastly outperform the simple melt pool metrics combined
the part that can be directly correlated to the mechanical properties, with supervised learning techniques (approximately 250% better
which is a major indicator of part quality. performance for correctly predicting abnormal melt pools).
• A novel data processing procedure is proposed that is capable of
converting ill-structured melt pool image streams to continuous As long as the material is deposited via the solidification of a melt
morphological model with the identical function support. Once melt pool, the developed framework can serve as a real-time X-ray CT for
pool images are defined in the same domain, supervised learning other AM processes that share similar energy-material interactions
techniques are applied to dichotomize the melt pools to predict the (e.g., Powder Bed Fusion, Electron Beam Melting). By capturing the
anomalies in the part. The melt pool dataset is labeled using the melt pool anomalies, the method presented herein can potentially
information captured via X-ray tomography. Afterwards, based on capture the microstructure anomalies in real time.
the labels (i.e., normal melt pools or pores), accuracy measures are
applied to evaluate the performance of the supervised learning
methods. Acknowledgements
• Among the supervised learning techniques, K-Nearest Neighbor
(KNN) provides the highest rate of recall (98.44%). However, Research was sponsored by the Army Research Laboratory and was
Decision Tree (DT), gives the least value for incorrectly identifying accomplished under Cooperative Agreement Number W911NF-15-2-
normal melt pools as pores (0.03%) where corresponding value for 0025. The views and conclusions contained in this document are those
KNN is not high (0.19%). of the authors and should not be interpreted as representing the official
• A comparative study is conducted that compares the performance of policies, either expressed or implied, of the Army Research Laboratory
supervised learning methods leveraging the proposed morphological or the U.S. Government. The U.S. Government is authorized to re-
model and simple metrics of the melt pool. Numerical experiments produce and distribute reprints for Government purposes notwith-
show that morphological model combined with supervised learning standing any copyright notation herein.

Appendix A

A.1 K-Nearest Neighbors (KNN)

Suppose we have a database containing N observations. These observations are divided into two parts: training set and testing set. For training set,
each observation can be denoted by (zi, yi) where i = {1, 2, …, N}. zi is a vector of covariates whereas yi is a binary variable that is the response for
any given zi. The goal is to use the knowledge obtained from the training set to predict response y0 for given z0 with the testing dataset. For every
observation zi in the training set, let Si = s(zi, z0) be its degree of similarity to z0. Si = s(zi, z0) is essentially a distance measure that can be calculated
via various methods, such as Manhattan (L1-norm), Euclidean (L 2 -norm), etc. Once the distance measure is calculated, they are ordered in an
ascending order S1, S2, …, SN . This means that if Si = S2, i is the second most similar observation to z0. Based on this, the set of KNNs for z0 can be
denoted as G(z0, K) where G(z0, K) is defined as all the observations with similarities to z0 being at least SK, that is, G(z0, K) = {zi : Si ≥ Sk}. A
probability measure (P) can be calculated as follows:
∑zi ∈ G (z 0, K ) yi
P=
|G (z 0 , K )| (7)
where |G(z0, K)| is the size of the set G(z0, K). The response is predicted to be one if P ≥ C, where C is a pre-specified threshold parameter which is
taken as 0.5. Detailed discussions regarding the choice of C can be found in [10,72].

A.2 Support Vector Machine (SVM)

Let the jth input point z j = (z1j , z2j , …, z cj ) be the realization of random vector Zj. Let these input points be labeled by random variable Yj ∈ { −1,
1}. Let ϕ: I ⊆ Rk ⟶F ⊆ ℝN be a mapping from the input space I to a feature space F. Assume that we have a sample of m labeled data points,
i i
S = {(z1, y1), (z2, y2), …, (zm, ym)}. The SVM learning algorithm finds a hyper-plane (w, b) such that the quantity ξ1 = miniy { w, ϕ (z ) − b} is maximized.
〈 ., . 〉 operator denotes the inner product of two vectors. Note that vector w has the same dimension as F, ||W||2 is held constant, b is a real number,
and ξ is called a margin. The quantity ( w, ϕ (z i ) − b) corresponds to the distance between the point zi and the decision boundary. When multiplied
by yi, it gives a positive value for all correct classification and negative for the incorrect ones. Given a new data point z0 to classify, a label is assigned
according to its relationship with the decision boundary, and the decision function is as follows: f (z 0) = sign( w, ϕ (z 0) − b) . If f(z0) is negative, the
prediction is wrong, otherwise it is correct. Note that the matrix Kij ≔ 〈ϕ(zi), ϕ(zj)〉 is called a kernel matrix. If the dataset are not linearly separable,
one can use more general functions (i.e., Kij = K(zi, zj)); this provides non-linear decision boundaries. Two classical options are polynomial kernels
i j
− || z − z ||
K (z i , z j ) = ( z i , z j + 1)d and Gaussian kernels K (z i , z j ) = e σ 2 where d and σ are kernel parameters [8,20]. In our study, we use data char-
acteristics to select the appropriate model in terms of kernel function.

A.3 Decision Tree (DT)

A decision tree represents a procedure for classifying categorical data based on their attributes. The simplicity of this method lies in the fact that
its construction does not require any domain specific knowledge or parameter setting that allows it to be highly convenient for exploratory
knowledge discovery. In decision tree classification, first lets assume D is the data partition which is a set of training data and their associated class
labels. A set of candidate attributes is fixed as well as a procedure is developed to determine the splitting criterion that best partitions the training
dataset into individual classes [18].

80
M. Khanzadeh et al. Journal of Manufacturing Systems 47 (2018) 69–82

A.4 Discriminant Analysis (DA)

Discriminant Analysis (DA) is a supervised dimension reduction/classification approach where attributes of two or more classes are known a-
priori and new observations are classified into one of the known classes based on the estimated characteristics. Leveraging the characteristics of DA, a
training dataset is created that contains predictor variables with known class of membership. An estimated prior probability ( p′) is calculated that
i
ni
expresses the expected ratio of members belonging to class πi. This can be illustrated by p′ = N
, where ni is the number of observations in from class
i
πi in the training dataset and N = n1 + n2 + ⋯ + ng where g is the total number of classes. Bartlett's test is employed to determine whether variance-
covariance matrix components are homogenous for two or more classes involved in the study. This essentially determines whether Linear or Quadratic
Discriminant Analysis (LDA or QDA) needs to be applied. LDA is typically applied if the variance-covariance matrix is homogenous, whereas QDA is
applied if the variance-covariance matrix is heterogenous. The main difference between LDA and QDA is the score function due to the difference in
variance-covariance matrix [28,43,71]. The linear (Eq. (8)) and quadratic (Eq. (9)) score functions are as follows:
1 p′
SiL (z ) = − μiT Σ −1μi + μiT Σz + log i
2 (8)
1 1 ′
SiQ (z ) = − μi log|Σi | − (z − μi )T Σi−1 (z − μi ) + log pi
2 2 (9)
where SiL and SiQ are the score functions for LDA and QDA, respectively, μi and μiT are the mean and transpose vector of class πi, Σ and Σi are the
variance-covariance matrices, and z is the vector of predictor variables. Parameters of the conditional probability density f(z ∖ πi) are based on the
assumption that the data are multivariate normally and independently distributed. The discriminant functions are computed that used for the
classification of new observations to one of the known classes. To estimate the accuracy of the classifier, model validation is applied to determine the
number of false classifications. If the accuracy is significant, LDA or QDA classifiers are applied with unknown class of membership.

References [21] Garnier V, Piwakowski B, Abraham O, Villain G, Payan C, Chaix JF. Acoustic
techniques for concrete evaluation: improvements, comparisons and consistency.
Constr Build Mater 2013;43:598–613.
[1] Abraham O, Piwakowski B, Villain G, Durand O. Non-contact, automated surface [22] Geman S, Bienenstock E, Doursat R. Neural networks and the bias/variance di-
wave measurements for the mechanical characterisation of concrete. Constr Build lemma. Neural Comput 1992;4(1):1–58.
Mater 2012;37:904–15. [23] Goueygou M, Lafhaj Z, Soltani F. Assessment of porosity of mortar using ultrasonic
[2] Ahn IH, Moon SK, Hwang J, Bi G. Characteristic length of the solidified melt pool in Rayleigh waves. NDT & E Int 2009;42:353–60.
selective laser melting process. Rapid Prototyp J 2017;23(2). [24] Heisele B, Serre T, Prentice S, Poggio T. Hierarchical classification and feature re-
[3] Bagui SC, Bagui S, Pal K, Pal NR. Breast cancer detection using rank nearest duction for fast face detection with support vector machines. Pattern Recogn
neighbor classification rules. Pattern Recogn 2003;36(1):25–34. 2003;36(9):2007–17.
[4] Bi G, Gasser A, Wissenbach K, Drenker A, Poprawe R. Characterization of the pro- [25] Hsieh J. Computed tomography: principles, design, artifacts, and recent advances.
cess control for the direct laser metallic powder deposition. Surf Coat Technol SPIE Press; 2003. p. 114.
2006;201(6):2676–83. [26] Hua T, Jing C, Xin L, Fengying Z, Weidong H. Research on molten pool temperature
[5] Birnbaum A, Aggarangsi P, Beuth JL. Process scaling and transient melt pool size in the process of laser rapid forming. J Mater Process Technol 2008;198(1):454–62.
control in laser-based additive manufacturing processes. Proceedings of solid free- [27] Im J, Jensen JR. A change detection model based on neighborhood correlation
form fabrication symposium 2003:328–39. image analysis and decision tree classification. Rem Sens Environ
[6] Cai X, Malcolm AA, Wong BS, Zheng F. Measurement and characterization of por- 2005;99(3):326–40.
osity in aluminium selective laser melting parts using X-ray CT. Virtual Phys [28] Izenman AJ. Linear discriminant analysis. Modern multivariate statistical techni-
Prototyp 2015;10(4):195–206. ques 2013:237–80.
[7] Chandrasekhar N, Vasudevan M, Bhaduri AK, Jayakumar T. Intelligent modeling for [29] Jafari-Marandi R, Khanzadeh M, Smith BK, Bian L. Self-organizing and error driven
estimating weld bead width and depth of penetration from infra-red thermal images (SOED) artificial neural network for smarter classifications. J Comput Des Eng
of the weld pool. J Intell Manuf 2015;26(1):59–71. 2017.
[8] Chowdhury S, Khanzadeh M, Akula R, Zhang F, Zhang S, Medal H, et al. Botnet [30] James GM. Variance and bias for general loss functions. Mach Learn
detection using graph-based feature clustering. J Big Data 2017;4(1):14. 2003;51(2):115–35.
[9] Clements JC. Convexity-preserving piecewise rational cubic interpolation. SIAM J [31] Khanzadeh M, Bian L, Shamsaei N, Thompson SM. Porosity detection of laser based
Numer Anal 1990;27(4):1016–23. additive manufacturing using melt pool morphology clustering. Solid freeform
[10] Cover T, Hart P. Nearest neighbor pattern classification. IEEE Trans Inform Theory fabrication: proceedings of the 27th annual international solid fabrication sympo-
1967;13(1):21–7. sium – an additive manufacturing conference 2016:1487–94.
[11] Cunningham R, Narra SP, Montgomery C, Beuth J, Rollett AD. Synchrotron-based [32] Khanzadeh M, Chowdhury S, Bian L, Tschopp MA. A methodology for predicting
X-ray microtomography characterization of the effect of processing variables on porosity from thermal imaging of melt pools in additive manufacturing thin wall
porosity formation in laser power-bed additive manufacturing of Ti-6Al-4V. J Miner sections. ASME 2017 12th international manufacturing science and engineering
Metals Mater Soc 2017;69(3):479–84. conference collocated with the JSME/ASME 2017 6th international conference on
[12] De Chiffre L, Carmignato S, Kruth JP, Schmitt R, Weckenmann A. Industrial ap- materials and processing 2017. V002T01A044.
plications of computed tomography. CIRP Ann Manuf Technol 2014;63(2):655–77. [33] Khanzadeh M, Chowdhury S, Tschopp MA, Doude HR, Marufuzzaman M, Bian L. In-
[13] Dilip JJS, Zhang S, Teng C, Zeng K, Robinson C, Pal D, et al. Influence of processing situ monitoring of melt pool images for porosity prediction in directed energy de-
parameters on the evolution of melt pool, porosity, and microstructures in Ti-6Al- position processes. IISE Trans 2017.
4V alloy parts fabricated by selective laser melting. Prog Addit Manuf 2017:1–11. [34] Kim H, Claffy KC, Fomenkov M, Barman D, Faloutsos M, Lee K. Internet traffic
[14] Doumanidis C, Gao Y. Mechanical modeling of ultrasonic welding. Weld J N Y classification demystified: myths, caveats, and the best practices. Proceedings of the
2004;83(4):140-S. 2008 ACM CoNEXT conference 2008:11.
[15] Doumanidis C, Kwak Y. Geometry modeling and control by infrared and laser [35] Kim JD, Peng Y. Melt pool shape and dilution of laser cladding with wire feeding. J
sensing in thermal manufacturing with material deposition. Trans Am Soc Mech Mater Process Technol 2000;104(3):284–93.
Engrs J Manuf Sci Eng 2001;123(1):45–52. [36] Kim K, Hsu DK, Barnard DJ. Estimation of porosity content of composite materials
[16] Eren E, Kurama S, Solodov I. Characterization of porosity and defect imaging in by applying discrete wavelet transform to ultrasonic backscattered signal. NDT & E
ceramic tile using ultrasonic inspections. Ceram Int 2012;38(3):2151–456. Int 2013;56:10–6.
[17] Fan K, Chen S, Chen J, Liao W. Development of auto defect classification system on [37] Kohavi R. A study of cross-validation and bootstrap for accuracy estimation and
porosity powder metallurgy products. NDT & E Int 2010;43(6):451–60. model selection. Int Joint Conf Artif Intell 1995;14(2):1137–45.
[18] Friedl M, Broadley CE. Decision tree classification of land cover from remotely [38] Kruth JP, Bartscher M, Carmignato S, Schmitt R. Computed tomography for di-
sensed data. Rem Sens Environ 1997;61(3):399–409. mensional metrology. CIRP Ann Manuf Technol 2011;60(2):821–42.
[19] Frigui H, Gader P. Detection and discrimination of land mines in ground-pene- [39] Lafhaj Z, Goueygou M, Djerbi A, Kaczmarek M. Correlation between porosity,
trating radar based on edge histogram descriptors and a possibilistic k-nearest permeability and ultrasonic parameters of mortar with variable water/cement ratio
neighbor classifier. IEEE Trans Fuzzy Syst 2009;17(1):185–99. and water content. Cement Concr Res 2006;36(4):625–33.
[20] Furey TS, Cristianini N, Duffy N, Bednarski DW, Schummer M, Haussler D. Support [40] Li S, Xiao H, Liu K, Xiao W, Li Y, Han X, et al. Melt-pool motion, temperature
vector machine classification and validation of cancer tissue samples using micro- variation and dendritic morphology of Inconel 718 during pulsed-and continuous-
array expression data. Bioinformatics 2000;16(10):906–14. wave laser additive manufacturing: a comparative study. Mater Des

81
M. Khanzadeh et al. Journal of Manufacturing Systems 47 (2018) 69–82

2017;119:351–60. Rayleigh wave propagation and capillary porosity in cement paste with variable
[41] Maldonado-Bascon S, Lafuente-Arroyo S, Gil-Jimenez P, Gomez-Moreno H, López- water content. NDT & E Int 2013;54:75–83.
Ferreras F. Road-sign detection and recognition based on support vector machines. [58] Song L, Bagavath-Singh V, Dutta B, Mazumder J. Control of melt pool temperature
IEEE Trans Intell Transp Syst 2007;8(2):264–78. and deposition height during direct metal deposition process. Int J Adv Manuf
[42] Marshall GJ, Thompson SM, Shamsaei N. Data indicating temperature response of Technol 2012;58(1-4):247–56.
Ti-6Al-4V thin-walled structure during its additive manufacture via laser en- [59] Stein G, Chen B, Wu AS, Hua KA. Decision tree classifier for network intrusion
gineered net shaping. Data Brief 2016;7:697–703. detection with GA-based feature selection. Proceedings of the 43rd annual south-
[43] McLachlan G. Discriminant analysis and statistical pattern recognition. 2004. p. east regional conference, vol. 2 2005:136–41.
544. [60] Tang L, Landers RG. Melt Pool temperature control for laser metal deposition
[44] Meola C, Toscano C. Flash thermography to evaluate porosity in carbon fiber re- processes. Part I. Online temperature control. J Manuf Sci Eng 2010;132(1).
inforced polymer (CFRPs). Materials 2014;7(3):1483–501. [61] Tang M, Pistorius PC, Beuth JL. Prediction of lack-of-fusion porosity for powder bed
[45] Mukkamala S, Janoski G, Sung A. Intrusion detection using neural networks and fusion. Addit Manuf 2017.
support vector machines. Int Joint Conf Neural Netw 2002;2:1702–7. [62] Teichert GH, Gunda NS, Rudraraju S, Natarajan AR, Puchala B, Garikipati K, et al. A
[46] Nikishkov Y, Seon G, Makeev A. Structural analysis of composites with porosity comparison of Redlich–Kister polynomial and cubic spline representations of the
defects based on X-ray computed tomography. J Compos Mater chemical potential in phase field computations. Comput Mater Sci
2014;48(17):2131–44. 2017;128:127–39.
[47] Osuna E, Freund R, Girosit F. Training support vector machines: an application to [63] Thompson SM, Bian L, Shamsaei N, Yadollahi A. An overview of direct laser de-
face detection. IEEE computer society conference on computer vision and pattern position for additive manufacturing. Part I. Transport phenomena, modeling and
recognition 1997:130–6. diagnostics. Addit Manuf 2015;8:36–62.
[48] Pinkerton A, Lin L. Modelling the geometry of a moving laser melt pool and de- [64] Tserpes K, Stamopoulos AG, Pantelakis SPG. A numerical methodology for simu-
position track via energy and mass balances. J Phys D Appl Phys 2004;37(14). lating the mechanical behavior of CFRP laminates containing pores using X-ray
[49] Polat K, Güneş S. Classification of epileptiform EEG using a hybrid system based on computed tomography data. Composites Part B Eng 2016;102:122–33.
decision tree classifier and fast Fourier transform. Appl Math Comput [65] Vlahou A, Schorge JO, Gregory BW, Coleman RL. Diagnosis of ovarian cancer using
2007;187(2):1017–26. decision tree classification of mass spectral data. BioMed Res Int 2003(5):308–14.
[50] Polat K, Şahan S, Güneş S. Automatic detection of heart disease using an artificial [66] Wan Q, Zhao H, Zou C. Effect of micro-porosities on fatigue behavior in aluminum
immune recognition system (AIRS) with fuzzy resource allocation mechanism and die castings by 3D X-ray tomography inspection. Iron Steel Inst Japan Int
k-nn (nearest neighbour) based weighting preprocessing. Expert Syst Appl 2014;54(3):511–5.
2007;32(2):625–31. [67] Wang Q, Li J, Gouge M, Nassar AR, Michaleris PP. Physics-based multivariable
[51] Qi H, Mazumder J, Ki H. Numerical simulation of heat transfer and fluid flow in modeling and feedback linearization control of melt-pool geometry and tempera-
coaxial laser cladding process for direct metal deposition. J Appl Phys 2006;100(2). ture in directed energy deposition. J Manuf Sci Eng 2017;139(2).
[52] Ralli GP, McGowan DR, Chappell MA, Sharma RA, Higgins GS, Fenwick JD. 4D-PET [68] Wells JM. Quantitative XCT evaluation of porosity in an aluminum alloy casting.
reconstruction of dynamic non-small cell lung cancer [18-F]-FMISO-PET data using Shape casting: 2nd international symposium 2007. ISBN:978-0.
adaptive-knot cubic B-splines. IEEE 14th international symposium on biomedical [69] Zelenyak A, Oster R, Mosch M, Jahnke P, Sause MGR. Numerical modeling of ul-
imaging 2017:1189–92. trasonic inspection in fiber reinforced materials with explicit microstructure.
[53] Ramsay JO. Functional data analysis. Wiley Online Library; 2006. Proceedings of 19th world conference on non-destructive testing. 2016.
[54] Razdan A. Knot placement for B-spline curve approximation. Tempe, AZ: Arizona [70] Zhang CS, Li L. A coupled thermal-mechanical analysis of ultrasonic bonding me-
State University; 1999. chanism. Metall Mater Trans B 2009;40(2):196–207.
[55] Schwerdtfege J, Robert SF, Körner C. In situ flaw detection by IR-imaging during [71] Zhang MQ. Identification of protein coding regions in the human genome by
electron beam melting. Rapid Prototyp J 2012;18(4):259–63. quadratic discriminant analysis. Proc Natl Acad Sci U S A 1997;94(2):565–8.
[56] Shamsaei N, Yadollahi A, Bian L, Thompson SM. An overview of direct laser de- [72] Zhu M, Chen W, Hirdes JP, Stolee P. The K-nearest neighbor algorithm predicted
position for additive manufacturing. Part II. Mechanical behavior, process para- rehabilitation potential better than current clinical assessment protocol. J Clin
meter optimization and control. Addit Manuf 2015;8:12–35. Epidemiol 2007;60(10):1015–21.
[57] Soltani F, Goueygou M, Lafhaj Z, Piwakowski B. Relationship between ultrasonic

82

You might also like