This module is a part of “Engine Carbon Brushes Replacement” project. The purposes of the module are:
a) to build convenient for further work datasets based on the provided raw data;
b) preliminary separate exploratory data analysis of carbon brushes replacement of Cement Mill 11 engine;
c) care by outliers.

The input of the module is a csv file. The file contains an unordered dataset, with provided information of engine inspections since 2004 for each engine carbon brush. In case carbon brush was replaced due to deterioration - the event is signed by “1”, otherwise by “0”.

The outputs of the module are convenient for further work datasets based on the provided raw data.

Statistic information of maintenance periods and cases of carbon brushes replacement due to deterioration:

## Cement Mill 11 (February 2004 - February 2018)
## Maintaneince days summary:
##    Min. 1st Qu.  Median    Mean 3rd Qu.    Max. 
##    0.00   23.00   27.00   29.93   31.00  517.00
## 
## Maintaneince days Outleirs:
##   lowerFarOut lowerOutliers upperOutliers   upperFarOut 
##            -1            11            43            55
## 
## Replacement periods summary:
##    Min. 1st Qu.  Median    Mean 3rd Qu.    Max. 
##     0.0    62.0   278.5   405.3   616.2  2127.0
## 
## Replacement periods upperOutliers:
## upperOutliers   upperFarOut 
##      1447.625      2279.000

Graphical Presentation of the Data:

Box Plots of the “maintenance periods” and “cases of carbon brushes replacement”

Low “FarOut” Actually, low farOuts points (days of carbon brush replacement) mean that carbon brushes were replaced on the same day or after few days. In both cases, low farOuts might be entered same information twice- and must be removed from dataset.

Low “FarOut”

##     Mill C  R brushName brushType phase   fromDate     toDate Days
## 2     11 1  1     C1R01      CM-2     U 2005-01-04 2005-01-04    0
## 15    11 1  2     C1R02      CM-2     U 2005-01-04 2005-01-04    0
## 29    11 1  3     C1R03      CM-2     U 2005-01-04 2005-01-04    0
## 41    11 1  4     C1R04      CM-2     U 2005-01-04 2005-01-04    0
## 56    11 1  5     C1R05      CM-2     U 2005-01-04 2005-01-04    0
## 72    11 1  6     C1R06      CM-2     U 2005-01-04 2005-01-04    0
## 86    11 1  7     C1R07      CM-2     U 2005-01-04 2005-01-04    0
## 101   11 1  8     C1R08      CM-2     U 2005-01-04 2005-01-04    0
## 113   11 1  9     C1R09      CM-2     U 2005-01-04 2005-01-04    0
## 122   11 1 10     C1R10      CM-2     U 2005-01-04 2005-01-04    0
## 132   11 2  1     C2R01      CM-2     V 2005-01-04 2005-01-04    0
## 142   11 2  2     C2R02      CM-2     V 2005-01-04 2005-01-04    0
## 150   11 2  3     C2R03      CM-2     V 2005-01-04 2005-01-04    0
## 159   11 2  4     C2R04      CM-2     V 2005-01-04 2005-01-04    0
## 167   11 2  5     C2R05      CM-2     V 2005-01-04 2005-01-04    0
## 177   11 2  6     C2R06      CM-2     V 2005-01-04 2005-01-04    0
## 187   11 2  7     C2R07      CM-2     V 2005-01-04 2005-01-04    0
## 201   11 2  8     C2R08      CM-2     V 2005-01-04 2005-01-04    0
## 215   11 2  9     C2R09      CM-2     V 2005-01-04 2005-01-04    0
## 226   11 2 10     C2R10      CM-2     V 2005-01-04 2005-01-04    0
## 234   11 3  1     C3R01      CM-2     W 2005-01-04 2005-01-04    0
## 245   11 3  2     C3R02      CM-2     W 2005-01-04 2005-01-04    0
## 256   11 3  3     C3R03      CM-2     W 2005-01-04 2005-01-04    0
## 266   11 3  4     C3R04      CM-2     W 2005-01-04 2005-01-04    0
## 277   11 3  5     C3R05      CM-2     W 2005-01-04 2005-01-04    0
## 287   11 3  6     C3R06      CM-2     W 2005-01-04 2005-01-04    0
## 297   11 3  7     C3R07      CM-2     W 2005-01-04 2005-01-04    0
## 308   11 3  8     C3R08      CM-2     W 2005-01-04 2005-01-04    0
## 317   11 3  9     C3R09      CM-2     W 2005-01-04 2005-01-04    0
## 327   11 3 10     C3R10      CM-2     W 2005-01-04 2005-01-04    0
## 264   11 3  3     C3R03      CM-2     W 2016-03-21 2016-03-29    8


First quantile - most frequently replaced carbon brushes.

Here, it is easy to find out places, where carbon brushes were replaced significantly more frequently than a majority of carbon brushes of this engine. Presumably, these carbon brushes were affected by local factors (like a local clamping spring) more than common reasons (for this engine). But here, the situation significantly better than in the other mills- there are no cases of frequently replaced carbon brushes.


Fourth quantile - most rarely replaced carbon brushes.

This chart provides information about “frozen” (rarely replaced) carbon brushes. Probably “frozen” brushes have a relatively weak clamping spring - as result, the carbon brush, apparently, did not do the job at all. -For example carbon brush C3R9 - was not deteriorated almost six years (The criterion for replacement is the size (deterioration) of the carbon brush).


We should take into account, that there are upper outliers in the maintenance list - the reason for extremely long intervals between maintenance is probably data loss of maintenance cases:

##   dateDiff  fromtDate     toDate
## 1      517 2013-12-30 2015-05-31
## 2      176 2016-06-01 2016-11-24

There is a chance that deteriorated carbon brushes had been replaced during those periods, but we have no information - and as result, we see the lifespan of them as outliers:

##    brushName   fromDate     toDate Days
## 1      C2R01 2012-03-19 2016-05-01 1504
## 2      C2R02 2012-03-19 2018-01-14 2127
## 3      C2R03 2012-03-19 2016-05-01 1504
## 4      C2R04 2012-03-19 2018-01-14 2127
## 5      C2R06 2005-01-04 2010-02-10 1863
## 6      C2R06 2012-03-19 2017-04-18 1856
## 7      C2R07 2012-03-19 2016-03-21 1463
## 8      C2R08 2012-03-19 2016-03-29 1471
## 9      C2R09 2012-03-19 2016-03-21 1463
## 10     C2R10 2005-01-04 2010-06-28 2001
## 11     C2R10 2012-03-19 2017-04-18 1856
## 12     C3R09 2005-01-04 2010-09-24 2089

In order to exclude the uncertainty- whether carbon brushes lifespan outliers are true, or results of information loss- we can test which of these time periods are overlapping (outliers of periods between maintenance and outliers of periods between carbon brushes replacement).


According to the table, except of C2R06, C2R10, C3R09 other lifespan outliers might be a result of the lost information. For example, it looks like carbon brushes C2R02 and C2R04 were not replaced for about six years, but this periods are overlapped with two periods of lost information, during which carbon brushes might have been replaced for several times.

For sure, we can only say, that C2R06, C2R10, C3R09 carbon brushes were not replaced more then five years. Except for those three cases, other 9 outliers are better to be removed from the dataset.

Current condition
In the same way possible to analyze current data in order to predict probable problem (“burned” or “frozen” carbon brushes). This chart is based on current data, taken at February 2018.

“Importance” (to put attention) provides visual information about the number of days since last replacement- lower than second quintile, or upper then third quintile. The importance is calculated by the following principles: Maximum value - 10, is equivalent to the maximum distance from the second quantile down (for the low values -“burned” brushes) and from the third quantile up (for the upper values- “frozen” brushes) found in the whole engine history. The minimum value “1” - the number of days since last replacement, lays in the second or third quantiles.

Colors:
green- the number of days since last replacement lays in third or second quintile;

red- “burned” brush - the number of days since last replacement and lifetime of the previous brush in this place lay in the first quintile;

blue- “frozen” brush- the number of days since last replacement lays in the fourth quintile.