This module is a part of “Engine Carbon Brushes Replacement” project. The purpose of the module is a classification of the Cement Mill 11 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)

## mapping: colour = method, fill = method 
## geom_path: na.rm = FALSE
## stat_bin: na.rm = FALSE, pad = TRUE
## position_identity

According to the chart, the best result brings K-Mean method divides data for 13 groups.
The biggest CH index k=13 of k-Mean line on the “CH-index” chart. Clusterization all observations by 13 clusters is redundant, I intend to divide data no more than 5 clusters. Actually, CHIndex on k=13 not significantly bigger than on k=5. 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 a 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  716.58  726.13 142.41   570.36  570.36   759.91   142.41  911.66
## 2   3  492.82  809.64 375.07   526.57  457.11   617.14   408.20 1026.24
## 3   4  504.55  911.29 407.56   668.93  321.32   487.83   433.69 1193.82
## 4   5  581.53 1059.64 307.98   676.83  444.24   456.87   390.38 1460.36
## 5   6  690.82 1110.17 246.80   566.43  485.51   475.62   318.77 1396.99
## 6   7  621.81 1190.37 248.07   508.60  423.18   551.43   361.96 1429.43
## 7   8  676.98 1184.76 229.51   525.82  463.13   485.76   312.02 1460.68
## 8   9  644.45 1179.37 201.17   466.01  407.29   427.17   354.89 1466.91
## 9  10  634.81 1183.96 218.66   467.60  366.78   483.23   443.49 1482.30
## 10 11 1013.02 1203.50 199.25   486.79  409.28   438.60   400.63 1497.92
## 11 12  999.36 1234.35 181.38   444.71  374.11   403.35   364.60 1509.58
## 12 13  947.26 1256.81 168.98   538.63  389.39   378.45   345.65 1548.61
## 13 14  896.21 1249.77 160.64   501.53  362.93   473.39   325.62 1526.22
## 14 15  903.56 1250.06 163.07   790.24  340.08   440.42   303.33 1491.08
## 15 16  875.45 1238.31 160.84   750.62  318.46   491.77   283.48 1477.71
## 16 17  831.71 1226.41 150.83   712.99  298.87   461.79   266.52 1455.68
## 17 18  817.25 1219.01 142.36   673.44  281.65   457.70   251.43 1474.77
## 18 19  912.51 1215.63 136.56   759.93  345.19   434.06   240.26 1474.67
## 19 20  881.31 1215.87 130.32   727.99  334.87   412.67   227.91 1448.49

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.56657160
## 2               startPhase 0.08415071
## 3               stdCurrent 0.06456297
## 4 hoursFromPreviousRunning 0.03547431

The most significant influence in clustering has average current, the less significant influence has time from the previous running.

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

The three major groups “4”, “3”, and “5” have the difference in average current (and obviously connected to it current of start phase). Group number “3” has a relatively bigger average current than the average current of groups number “4” and “5”. The group number “5” has relatively smaller current than groups number “3” and “4”. The average current of the major group “4” somewhere between currents of groups “3” and “5”.
The group “2” main difference is a significantly long start phase.
The smallest group “1” is different from others by a significant standard deviation of the current and long time interval from the previous running.

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

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

In opposed, small group 1 has a wide range of the current fluctuations and the average of the start phase lower than the general average.

Now we have a two question:
a) 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?
b) Maybe the material type has an influence on groups?

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.
It looks like, that material type has no significant influence on the group division

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

##        
##             1     2     3     4     5
##   AM     0.92  3.59 17.34 29.04 19.03
##   empty  0.17  0.17  0.81  2.57  3.06
##   OPC    0.24  0.66  7.72 10.07  4.62

Now it looks like that there is some connection between material types and groups.

As already explained, the average current is the main factor of group division. The next chart shows the density of values of current within different types of material. The average current of groups is indicated by vertical black lines.

There isn’t a significant difference between distributions of the currents of the different material types, besides running without a material load.



Next chart shows the density of values of current within different clasters.





Cluster “2” includes the runnings with longest start phases, and cluster “1” includes the most unstable runnings.