This module is a part of “Engine Carbon Brushes Replacement” project. The purpose of the module is a classification of the Cement Mill 3 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.
For this purpose, all listed algorithms applied to the dataset with the number of clusters from 2 to 20 (step 1). 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 11 groups.
The biggest CH index k=11 of k-Mean line on the “CH-index” chart. Clusterization all observations by 11 clusters is redundant, I intend to divide data no more than 5 clusters. On “wss” chart, the line of K-Meam 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 524.71  531.92 208.70   287.47  287.47   343.06   301.98  668.95
## 2   3 444.72  594.51 151.60   396.76  273.68   210.51   180.76  780.64
## 3   4 508.55  682.39 120.92   435.50  245.58   230.69   132.63  872.12
## 4   5 648.61  773.76  95.84   382.84  189.10   223.89   143.22 1018.48
## 5   6 568.57  812.64  79.64   332.09  158.86   183.62   116.18  998.34
## 6   7 760.28  848.86  70.82   281.60  134.60   157.43    99.56  996.86
## 7   8 716.97  892.79  89.29   332.95  189.00   135.85   150.16  994.95
## 8   9 723.01  942.96  84.19   296.96  166.88   203.08   132.96 1026.40
## 9  10 768.22  932.79  77.42   268.02  154.13   182.02   161.92 1073.91
## 10 11 711.42  933.02  72.58   356.70  195.60   248.32   151.78 1108.55
## 11 12 666.72  931.11  66.20   446.20  178.48   228.66   139.00 1099.15
## 12 13 636.34  916.92  69.47   412.05  168.49   250.98   128.09 1087.75
## 13 14 650.36  905.29  64.18   391.15  156.77   233.48   171.12 1053.40
## 14 15 636.02  890.22  59.63   368.90  228.00   254.67   159.49 1034.55
## 15 16 612.09  867.12  56.74   350.88  213.75   251.35   155.13 1003.36
## 16 17 582.59  849.33  53.22   335.78  202.08   237.48   145.87  968.87
## 17 18 559.21  835.08  51.78   324.05  198.87   226.64   138.77  942.93
## 18 19 537.86  822.31  49.87   336.83  190.25   338.61   134.48  958.54
## 19 20 520.44  808.94  52.33   406.22  180.50   326.17   127.64  896.15

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.60113562
## 2 hoursFromPreviousRunning 0.13739412
## 3               stdCurrent 0.12645090
## 4               startPhase 0.05727012

The most significant influence in clustering has average current, the less significant influence has the duration of start phase.

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

The major group “4” actually represents stable engine work and has a relatively low average current, without significant fluctuations (small std).
The next big cluster “2” also represents stable engine work with more high current than cluster “4” without significant fluctuations (small std).
Group “1” represents stable work periods with long time intervals from the previous runnings. But in this case, the long period from the previous running has no influence on the average and std of the engine current.
Cluster “5” includes work periods with significantly long start phases.
Cluster “3” - work periods with significant std of the current of both start phase and whole runnings.

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

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

Small group 3 has a widest range of the current oscillation.

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, but let’s dig the issue deeper.

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

##        
##             1     2     3     4     5
##   AM     3.83 12.02  1.77 22.26  1.45
##   AMLS   0.32  1.74  0.26  2.73  0.29
##   BLL    3.69 13.88  1.86 29.23  1.83
##   empty  0.38  0.52  0.41  1.48  0.06

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

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.

Group “3” includes the runnings with longest start phases, and group “5” includes the most unstable runnings.