This module is a part of “Engine Carbon Brushes Replacement” project. The purpose of the module is a classification of the Raw Material Mill “C” engine start phases.

Trying to clustering the quality of the start phases was concluded, that is important to clusterize whole working periods because the start phase is a part working period and the difference between start phases is determined by the difference between work periods. It is better way to clusterize whole work period using start phase as one of the classifiers.

As classifiers of work periods were taken four parameters:
a) average current;
b) standard deviation of current;
c) duration of start phase;
d) period of time between previous and analyzed work period.

Before running classification algorithms let’s check whether there are any correlations between chosen classifiers.

There is no any correlation between classifiers.

Classification methods

Classification method will be chosen from hierarchical clustering “ward.D”, “ward.D2”, “single”, “complete”, “average”, “mcquitty”, “centroid” methods and K-Mean clustering method.

The best clustering method and the optimal number of clusters are evaluated by Calinski-Harabasz Index.
It is better to take as minimum quantity of groups as possible (no more than 4 or 5) but to see a general picture let’s research from 2 to 20 clusters. Results are shown in the chart.
(R- code is based on functions published on
https://github.com/ethen8181/machine-learning/blob/master/clustering_old/clustering/clustering_functions.R)

According to the chart, the best result brings K-Mean method divides data for 9 clusters.
The biggest CH index k=9 of k-Mean line on the “CH-index” chart. Clusterization all observations by 9 clusters is redundant, I intend to divide data no more than 5 clusters. On “wss” chart, the line of k-mean represents smallest values and dramatic decline of wss changed by a relatively smooth decline on k=5. CHIndex chart gives the best result on k=5 for k-mean method. For clusterization will be used a k-mean method with k=5.

Let’s represent the CH Index data in the matrix view:

##     k  ward.D ward.D2 single complete average mcquitty centroid  kmeans
## 1   2  859.69  860.41 860.41   860.41  860.41   860.41   860.41  862.15
## 2   3  799.84 1092.00 451.48   804.42  888.23   903.22   899.28  857.57
## 3   4  696.04 1423.26 325.27   566.08  604.24   622.76   619.99 1238.41
## 4   5  823.80 1701.81 355.83   510.53  477.28   605.97   489.50 1813.52
## 5   6  741.94 1841.01 288.81   578.27  411.53   630.85   416.90 1998.42
## 6   7  705.97 1979.95 240.90  1000.15  353.80   553.78   348.70 2179.80
## 7   8  645.87 2041.40 206.55  1339.93  635.18   507.47   309.21 2256.25
## 8   9  798.71 2072.28 180.78  1187.06  557.67   462.36   565.10 2326.06
## 9  10  726.19 2011.42 162.37  1074.17  651.90   860.52   503.57 2309.90
## 10 11  668.62 1978.42 167.34  1023.45  592.63   788.99   456.41 2245.88
## 11 12  628.24 1917.64 162.99   953.62  542.81   728.19   416.79 2279.62
## 12 13  628.60 1876.84 152.44   890.61  683.88   672.40   500.84 2139.55
## 13 14 1668.61 1842.70 143.03   828.94  632.74   622.49   616.18 2096.71
## 14 15 1655.08 1819.69 137.35   779.04  590.61   582.55   576.35 2210.58
## 15 16 1702.16 1800.94 143.05   730.40  574.00   546.54   538.15 2034.98
## 16 17 1619.23 1790.16 134.77   798.51  565.57   519.43   505.11 2133.45
## 17 18 1644.21 1788.43 127.48   813.28  538.65   592.41   491.84 2011.40
## 18 19 1588.19 1768.55 121.53  1083.33  510.46   592.74   464.92 2011.42
## 19 20 1526.83 1756.36 115.86  1042.44  487.38   568.98   440.57 2022.93

Let’s apply K-Mean clustering method with k=5. The algorithm divided all engine runnings into 5 clusters by following way:

Clusters research

By comparison information gain of all classifiers against clusters, we can see relative weight of all of them (classifiers ) in clustering:

##                    VarName     weight
## 1               avgCurrent 0.54986651
## 2               stdCurrent 0.46320399
## 3               startPhase 0.02902813
## 4 hoursFromPreviousRunning 0.00000000

The most significant influence in clustering has average current, the less significant influence has duration of start phase, time from the previous running has no influence at all.

With the help of radar chart, let’s see distribution of chosen parameters between the groups.

Let’s see the average current in the groups compared with the average current of start phases of those groups.

Major groups 1, 3 have a relatively narrow range of current oscillation and the averages current of start phases (white point) are close to general averages.

Cluster “5”, how we can guess, represents running without material.

Now we have a question:
Maybe some processes or events connected to the mill have had a temporary influence and belong to the specific time period and now have no more importance?

According to the chart, obviously, there is no any connection between division by groups and special time period. All groups represented during the whole analyzed time period.

Here is the table of the percent presentation (by work hours) material types in groups:

##        
##             1     2     3     4     5
##   empty  0.00  0.08  0.03  0.05  3.65
##   Raw   44.28  1.74 34.79 15.28  0.11





Group “2” includes the runnings with longest start phases. There is no cluster which represent unstable runnings.