Early Defect Detection Using Clustering Algorithms
Early Defect Detection Using Clustering Algorithms
net/publication/334056033
CITATIONS READS
9 1,553
2 authors:
All content following this page was uploaded by Vladislav Bína on 03 September 2019.
Abstract
Product quality is a crucial issue for manufacturing companies, so it is essential to take note of any
emerging product defects. In contrast to the use of traditional methods, the “modern” constantly
evolving data mining methods are now being more frequently used. The main objective of this
paper is to detect the potential cause or the area of the production process where the majority of
product defects arise. The dataset from the semiconductor manufacturing process has been used
for this purpose. First, it was necessary to address dataset quality. Significant multicollinearity was
found in the data and to detect and delete the collinear variables, correlations and variance inflation
factors have been used. The MICE-CART method has been used for the imputation because the
original dataset contained more than 5% of random missing values. In further analysis, the K-means
clustering method has been used to separate the failed products from the flawless ones. Following
this, the hierarchical clustering method has been used for the failed product to create groups of
product defects with similar properties. For the optimal number of clusters, the determination of
the BIC method has been used. Five clusters of products have been made although only three can
be classed as important for further analysis. These groups of products should be directly subjected
to the analysis in the production process, which can assist in identifying the source of scarcity.
Keywords: manufacturing, data mining, clustering, product quality, quality management,
MICE-CART, VIF
JEL Classification: C38, C44, D24, L15
Introduction
The last decades have seen life undergoing a turbulent and fast-changing environment.
Nowadays, due to rapid technological changes, automation, and robotics, a new
technological revolution is taking place. A new era of the phenomenon of Industry 4.0
and smart factories is in progress and companies now face many challenges, such
as short product life cycles, volatile demand and high customisation (Gaub, 2016).
High-value manufacturing processes are increasingly moving towards flexible, intelligent
production systems. To compete in future markets, manufacturing companies should be
1 This research was supported by an internal grant of the University of Economics in Prague IG32029
[F6/2/2019].
* University of Economics, Prague, Faculty of Management ([Link]@[Link];
[Link]@[Link]).
1. Literature Review
Quality is a term that is complex and difficult to specify. The word quality has many
meanings, such as a degree of excellence, conformance with requirements, the totality of
the characteristics of an entity that impact its ability to satisfy stated or implied needs,
fitness for use, freedom from defects, imperfections or contamination and delighting
customers (Hoyle, 1994). Various authors explain this notion differently. One of the “gurus”
in quality control, William Edwards Deming (1982), defines quality as a predictable
degree of uniformity and dependability at low cost and suited to the market. According to
the American Society for Quality and Goetsch and Davis (2010), quality denotes excellence
in goods and services, especially to the degree that they conform to the requirements and
satisfy customers. The definition of quality stated by the International Organisation for
Standardization (ISO) is: “The totality of features and characteristics of a product or service
that bear on its ability to satisfy stated or implied needs” (AS/NZS ISO, 1994, p. 7). Put more
simply, one can say that a product has good quality when it complies with the requirements
specified by the client (Knowles, 2011). In this research, we view quality as the compliance
of product properties and dimensions with pre-specified company standards. Product quality
is a crucial issue for manufacturing companies. It is essential for customer satisfaction, and
so is directly connected with the company’s revenues and market share. Quality is also
closely connected to company performance. Sadikoglu and Zehir (2010) stated that Quality
Management (QM) is a systematic, proven approach to improvements in organisational
performance. Numerous empirical studies have attempted to investigate the relationship
between QM practices and company performance (Mehran and Mehran, 2013).
There are many traditional approaches to quality management although nowadays
data mining methods have become more useful and successful in manufacturing
companies. Traditional methods, such as Total Quality Management (TQM) focuses
on quality for customer satisfaction and concurrently sustains a company’s competitive
advantage in today’s challenging and dynamic business environment (Yin et al., 2018).
Other methodology such as Lean Six Sigma combines the Six Sigma techniques, which
enable companies to reduce manufacturing defects with the lean manufacturing principles
to help companies benefit from faster processing for lower costs with superior quality
3. Dataset
The dataset used in this paper is from a complex modern semiconductor manufacturing
SECOM process (McCann and Johnston, 2008). These are records of the monitoring of
signals/variables collected from sensors and process measurement points. However, not all
these signals are equally valuable in a specific monitoring system. The measured signals
contain a combination of useful information plus irrelevant information as well as noise.
Engineers typically have a much larger number of signals than are actually required.
If we consider each type of signal as a feature, then the feature selection can be applied
to identify the most relevant signals. The process engineers can then use these signals
to determine key factors contributing to yield excursions downstream in the process.
The dataset presented in this case is a selection of those features where each example
represents a single production entity with associated measured features.
There are 1567 examples taken from a wafer fabrication production line. There are
both failed and passed products in the quality control system. For product quality,
590 measuring sensors and process measurement points (variables) were used. In other
words, each example is a vector of 590 sensor measurements. This results in a dataset
of 924530 values measured during the production process. For such a large volume of
4. Methodological Approach
First, it is necessary to prepare the data set for the following analysis. For this purpose,
the method of data imputation will be chosen. Then we will apply different types of
clustering methods on the data and make a comparison. Several variants of algorithm
settings will be used.
1
VIFi = . (1)
1 − Ri2
4.2 Clustering
Clustering is an essential data mining tool for the analysis of Big Data and aims to
consolidate the significant class data objects (clusters) so that objects grouped in the same
cluster are similar and consistent according to specific parameters (Zerhani et al., 2015).
The task is to arrange a set of objects so that the objects in the identical group are
more related to each other than to those in other groups (clusters). Clustering belongs
to unsupervised learning. Clustering algorithms can be classified into partition-based
algorithms, hierarchical-based algorithms, density-based algorithms and grid-based
algorithms (Chitra and Maheswar, 2017).
Hierarchical clustering
Hierarchical clustering is a recursive partitioning of a dataset into successively smaller
clusters. The input is a weighted graph where the edge weights represent pairwise
similarities or dissimilarities between data points (Tan et al., 2018). Hierarchical
The key operation of this algorithm is the computation of the proximity between
two clusters, and it is the definition of cluster proximity that differentiates the various
agglomerative hierarchical techniques that we will discuss. Cluster proximity is typically
defined with a particular type of cluster in mind. Many agglomerative hierarchical
clustering techniques come from a graph-based view of clusters (Rani and Rohil, 2013).
Ward’s method
We can also take a prototype-based view, in which each cluster is represented by a centroid.
The centroid method uses the centroid (centre of the group of cases) to determine
the average distance between clusters of cases. An alternative technique to the usual
centroid method is Ward’s method. This method assumes that a cluster is represented by
its centroid, but it measures the proximity between two clusters in terms of the increase
in the SSE (squared error) that results from merging the two clusters. Similar to K-means,
Ward’s method attempts to minimise the sum of the squared distances of points from their
cluster centroids (Tan et al., 2018).
Partitional clustering
Partitional clustering is the most popular class of clustering algorithm and is also known as
an iterative relocation algorithm. These algorithms minimise a given clustering criterion
by iteratively relocating data points between clusters until an optimal partition is attained
(Chitra and Maheswar, 2017). A partitioning clustering algorithm splits the data points
into k division, where each division represents a cluster and , where n is the number of
data points. Partitioning methods are based on the idea that a cluster can be represented
by a centre point. The partition is based on a certain objective function. The clusters are
formed to optimise an objective partitioning criterion, such as a dissimilarity function
K-means clustering
K-means is one of the most popular partition-based methods and partitions the dataset into
k disjoint subsets, where k is predetermined. The algorithm keeps adjusting the assignment
of the objects to the closest current cluster mean until no new assignments of objects
to clusters can be made (Elavarasi et al., 2011). One advantage of this algorithm is
its simplicity. It also has several drawbacks. It is very difficult to specify the number
of clusters in advance. Since it works with squared distances, it is also sensitive to
outliers. Another drawback is that the centroids are not meaningful in most problems
(Popat et al., 2014). In this algorithm, a cluster is represented by its centroid, which is
a mean (average) of the points within a cluster. This only works efficiently with numerical
attributes and can be negatively affected by a single outlier. The k-means algorithm is
the most popular clustering tool that is used in scientific and industrial applications.
The technique aims to partition n observations into k clusters in which every observation
belongs to the cluster with the nearby mean (Chitra and Maheswar, 2017).
The K-means algorithm has several significant properties, such as high effectivity in
dealing with huge data sets, and it only works with numeric values; the resulting clusters
have convex shapes and this method frequently terminates at a local optimum, and not
the global optimum, which is also one of the major disadvantages of this method. Another
fact that can be considered as a disadvantage, namely that this algorithm can be used only
when the mean of the data set is defined and requires specifying k, the number of clusters,
in advance (Vijayalakshmi and Devi, 2012).
m
2
DX Y
= ∑ ( xik − x j k ) . (2)
k =1
The Manhattan distance, or city block distance, represents the distance between
points in a city road grid. It computes the absolute differences between the coordinates of
a pair of objects (Grabusts, 2011). There are also other methods for distance measuring,
such as the Minkowski, Cosine and Chebyshev functions (Bora and Gupta, 2014).
There are many articles concerning the K-means method application topic, such as
Constrained K-means Clustering with Background Knowledge (Wagstaff et al., 2001),
Improving the Accuracy and Efficiency of the K-means Clustering Algorithm (Nazeer and
Sebastian, 2009) or An Algorithm for Online K-Means Clustering (Liberty et al., 2016) and
many others. There is also an interesting option of Merging K-means with hierarchical
clustering for identifying general shaped groups proposed by Peterson et al. (2018)
although this is not our aim at this time.
5. Data Preparation
Almost 5% of the missing data points can be found in the dataset because some sensors
did not work properly. First, it is necessary to choose a method and make an imputation of
missing values to the dataset. During data imputation processing, multicollinearity in the
dataset was found. For localisation and deleting the collinear variable, we used the VIF
method. Fifty-nine variables were perfectly correlated, so they had to be deleted because
they give the same information as the other variables present in the data file. In the table
below (Table 1) are the basic statistics of the counted VIF for each variable. There is
the lowest and highest value of VIF, median, average and quartiles.
All variables where VIF is greater than five can be explained by other variables,
which means that they can be deleted. After this data cleaning process, we obtained
the remaining 55 variables, which can be reasonably included in the model.
After deletion of collinear and constant variables, we can proceed to the missing
values imputation. In our dataset is the random missing data, as you can be seen in
Figure 4.
0.8
0.6
Missing data
Pattern
0 .4
0.2
0.0
Faktor 564
Faktor 564
Faktor 566
Faktor 500
Faktor 543
Faktor 545
Faktor 566
Faktor 500
Faktor 543
Faktor 545
Faktor 590
Faktor 590
Faktor 556
Faktor 583
Faktor 556
Faktor 583
Faktor 483
Faktor 485
Faktor 489
Faktor 433
Faktor 439
Faktor 483
Faktor 485
Faktor 489
Faktor 559
Faktor 433
Faktor 439
Faktor 559
Faktor 582
Faktor 582
Faktor 522
Faktor 522
Faktor 587
Faktor 587
Faktor 487
Faktor 487
Faktor 579
Faktor 154
Faktor 572
Faktor 579
Faktor 154
Faktor 572
Faktor 158
Faktor 156
Faktor 158
Faktor 156
Faktor 477
Faktor 148
Faktor 477
Faktor 148
Faktor 551
Faktor 473
Faktor 551
Faktor 473
Faktor 475
Faktor 475
Faktor 574
Faktor 574
Faktor 151
Faktor 151
Faktor 511
Faktor 511
Source: Authors’ own processing (RStudio)
For the missing data imputation, we have chosen the MICE-CART function,
which is more accurate than the simple imputation of the mean, median or constant
value. MICE-CART improves upon the standard MICE approach by automatically
accounting for interaction effects among the variables for which imputation is needed
(Moorthy et al., 2014). Now, there is the full dataset without collinear and constant
variables, so the clustering analysis can begin.
6. Clustering Analysis
First, the clustering method is applied to the full dataset to recognise those products
which passed quality control and the ones that failed. In this case, we want to have two
clusters because we need to separate the products that passed from those that failed.
The number of clusters intended is predetermined, so we will use the K-means method.
After we determine the group of failed products, the hierarchical clustering method will
be used for further analysis of the location of the origin of the defects.
-10 -8 -6 -4 -2 0 2
dc 1
-18000
-20000
-22000
BIC
-24000
EII EVE
-26000
VII VEE
EEI VVE
VEI EEV
-28000
EVI VEV
VVI EVV
EEE VVV
1 2 3 4 5 6 7 8 9
Number of components
The hierarchical clustering method is now applied to five clusters using the Ward
method and Euclidean distance measuring. The following dendrogram (Figure 7)
shows the solution of this analysis where five clusters have been created. The products
were grouped according to their parameters, the values which have been measured
in the different stage of the production process. The smallest two clusters can only be
inaccuracies in measuring or due to random employee mistakes. These defects will be
difficult to analyse and will result in small costs for the company, so it is unnecessary
to search now for their cause.
The other 3 clusters are of more interest to us. The defects to the products in these
clusters are probably caused by the same event in the production process. Such an event may
be, for example, bad settings on the machine, human failure or defects in the material used.
These errors in the production process can cause huge additional costs for the organisation
or loss of profit or market position. To find the exact cause of these defects, it is necessary
to analyse the production process and map the material and resources flow.
Three considerable clusters of defective products with similar features or parameters
appeared. At this point, it would be necessary to conduct an analysis of the production
process but as the dataset was created by someone else, it makes it impossible. For this
reason, we can only estimate the cause of the defects that arise.
From the resulting graph (Figure 7) it appears that there could be a connection
between the products in the clusters due to their serial numbers. It is possible that a specific
event in the production process can occur, such as machine failure, which could cause
a few consecutive defect products. To determine particular causes, we would need more
information about the production process, a record of machine failures, material quality
review etc.
Cluster Dendrogram
Height
d
hclust (*, "ward.D2")
7. Conclusion
In the presented paper, we analysed the data concerning the scrap in semiconductor
manufacturing in order to identify the main types and causes of defects in manufactured
products. For this task, we used VIF and MICE-CART methods for data pre-processing
(deletion of factors causing multicollinearity, imputation) and cluster analysis (K-means,
hierarchical clustering).
Using the above-mentioned approaches, we detected 81 defective products from
the total of 1567 products examined. The defective products have been divided into
five clusters according to their similar properties. From the results of the hierarchical
clustering analysis, it is obvious that there are three substantial sources of defects in
the production process. We assume that the products in these groups have the same or
similar cause of error. For closer investigation of the cause, it will be necessary to analyse
the production process itself. We would need more information about the production
process such as mapping of material and resources flows, records of machine failures or
a material quality review. The other two clusters are insignificant because they are too
small. These defects can be caused by a random event or human resource failure; the search
for their cause would probably be more demanding than the potential cost savings made
when implementing the corrective action. We have also proved that a combination of
two different clustering algorithms in a sequence is possibly an effective and successful
method of identifying and classifying the defects in the manufacturing process.
The limitations in this research are specifically the nature and the source of the data.
In this case, the dataset came from the public source, so the supplementary information
References
AS/NZS ISO (1994). ISO 9001:1994 Quality Systems – Model for Quality Assurance in Design,
Development, Production, Installation and Servicing, [online]. Available at:
[Link]
[Accessed 25 Jun. 2018]
Berkhin, P. (2006). A Survey of Clustering Data Mining Techniques. In J. Kogan, C. Nicholas and
M. Teboulle, eds., Grouping Multidimensional Data (pp. 25–71). Berlin: Springer.
Bhuvaneswari, S., and Sabarathinam, J. (2013). Defect Analysis Using Artificial Neural Network.
International Journal of Intelligent Systems and Applications, 5(5), pp. 33–38.
[Link]
Bora, D. J., and Gupta, A. K. (2014). Effect of Different Distance Measures on the Performance of
K-Means Algorithm: An Experimental Study in Matlab. International Journal of Computer
Science and Information Technologies, 5(2), pp. 2501–2506.
Castro, R. M., Coates, M. J., and Nowak, R. D. (2004). Likelihood Based Hierarchical Clustering.
IEEE Transactions on Signal Processing, 52(8), pp. 2308–2321.
[Link]
Cohen-Addad, V. et al. (2018). Hierarchical Clustering: Objective Functions and Algorithms.
SODA (Proceedings of the Twenty-Ninth Annual ACM-SIAM Symposium on Discrete
Algorithms). [Link]
Crosby, P. B. (1979). Quality Is Free: The Art of Making Quality Certain. New York: McGraw-Hill.
Deming, W. E. (1982). Quality Productivity and Competitive Position. Cambridge, MA: MIT Press.
Dragulanescu, I.-V., and Popescu, D. (2015). Quality and Competitiveness: A Lean Six Sigma
Approach. Amfiteatru Economic Journal, 17(9), pp. 1167–1182.
Edwards, J. M., and Finch, W. H. (2018). Recursive Partitioning Methods for Data Imputation in
the Context of Item Response Theory: A Monte Carlo Simulation, Psicológica, 39,
pp. 88–117. [Link]
Elavarasi, S. A., Akilandeswari, J., and Sathiyabhama, B. (2011). A Survey on Partition Clustering
Algorithms. International Journal of Enterprise Computing and Business Systems, 1(1).
Evans, J. R. (2015). Modern Analytics and the Future of Quality and Performance Excellence.
Quality Management Journal, 22(4), pp. 6–17.
[Link]
Felsenstein, J. (2003). Inferring Phylogenies (2nd ed.). Oxford: Sinauer Associates.
Gaub, H. (2016). Customization of Mass-Produced Parts by Combining Injection Molding and
Additive Manufacturing with Industry 4.0 Technologies. Reinforced Plastics, 60(6),
pp. 401–404. [Link]
Grabusts, P. (2011). Distance Metrics Selection Validity in Cluster Analysis. Scientific Journal
of Riga Technical University, 45(1), pp. 72–77. [Link]