Icon

Day3_​S3_​ok

Stage 1 - Read and Shewhart

The criterion with no memory: one point over 3SD

Stage 1


  1. Read the S2 residual file, 2,151 rows
  2. Parse ts_hour
  3. Family 1: |z| > 3 on vib and on temp
  4. This is the criterion S2 already used

Stage 2 - Western Electric

The criterion with short memory: a run, not a single jump

Stage 2


  1. Raw one sided flags at 2SD, 1SD and 0
  2. Count them over 3, 5 and 8 points
  3. 2 of 3 over 2SD, 4 of 5 over 1SD, 8 in a row
  4. Three rules from six counters

Stage 3 - CUSUM

The criterion with cumulative memory, built without recursion

Stage 3


  1. u = z - k with k = 0.5
  2. Cumulative sum, then running minimum
  3. S = C - Cmin, no recursion needed
  4. Alarm at H = 10 for vib, H = 6 for temp

Stage 4 - Evaluate to the repair date

Cut the window at the repair, then roll up to days

Stage 4


  1. Read the work orders for the truth
  2. Keep the hours up to the repair date
  3. Without this cut CUSUM looks far worse
  4. 74 days, 22 of them with a real defect

Stage 5 - Scoreboard

One table, ten criteria, the same day unit as S2

Stage 5


  1. Label every day TP / FP / FN / TN
  2. Unpivot, then pivot to a 10 x 4 matrix
  3. Empty cells become 0 before dividing
  4. precision and recall for every criterion
Node 82Read the S2 residual file2,151 rows
CSV Reader
Node 83Parse ts_hour0 failed
String to Date&Time
Node 86Count flags over 3 pointswindow 3
Moving Aggregator
Node 87Count flags over 5 pointswindow 5
Moving Aggregator
Node 84Family 1: Shewhart 3SDz_vib 471 h
Expression
Node 85Raw one-sided flags for WE6 columns
Expression
Node 100Flag the rows of PUMP-022025-02-22
Expression
Node 88Count flags over 8 pointswindow 8
Moving Aggregator
Node 102Cut evaluation at repair1,744 of 2,151
Row Filter
Node 89Short names for the sumss3 s5 s8
Column Renamer
Node 101Flag window up to repair1752 h
Expression
Node 104Roll up to one row a day74 days
GroupBy
Node 103Day number floor(h/24)day 0 = 1 Jan
Expression
Node 106Turn 10 columns into rows740 rows
Unpivot
Node 105Label each day TP FP FN TN10 columns
Expression
Node 108Empty cell counts to 0no blanks
Missing Value
Node 107Count and pivot to a matrix10 x 4 matrix
Pivot
Node 109precision and recallCUSUM P 0.957
Expression
Node 90Family 2: Western Electric2 of 3 = 494 h
Expression
Node 93Rename the sums to CC_v C_t
Column Renamer
Node 94Running minimum of CCmin
Moving Aggregator
Node 91u = z - k with k = 0.5free slack
Expression
Node 92Cumulative sum of uC
Moving Aggregator
Node 97S_v and S_t over timeclimbs, no fall
Line Plot
Node 98z_vib against +/- 3SDrarely crosses
Line Plot
Node 95Rename the minima to CminCmin_v Cmin_t
Column Renamer
Node 96Family 3: CUSUM S and HS_v max 3364
Expression
Node 111Write the alarm table2,151 rows
CSV Writer
Node 110Scoreboard of all criteriaWE beats Shewhart
Table View
Node 99Read the work orders12 events
CSV Reader
Node 112Write scoreboard for S410 rows
CSV Writer

Nodes

Extensions

Links