cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Try the Materials Informatics Toolkit, which is designed to easily handle SMILES data. This and other helpful add-ins are available in the JMP® Marketplace
Choose Language Hide Translation Bar
How to detect small shifts in Control Charts

Traditional Shewhart Control Charts are well-established in detecting sudden spikes, large shifts (say, greater than 3 * σ), and some specific patterns or runs in a process. However, when small shifts are important to detect, traditional control charts fail to spot them.

It’s well-established that CUSUM charts are effective at detecting small shifts; still the CUSUM V-mask can be hard to interpret, and it is often difficult to determine meaningful starting values. The new CUSUM Control Chart in JMP does away with the V-mask and uses all available information to provide reasonable starting parameters.

In this blog post, I show an example of when a small shift is important, yet nearly invisible to the traditional control charts, and how to use the CUSUM Control Chart, new in JMP 14, to identify the shift.

This example examines data from a car engine thermostat. The engine was designed to operate in a temperature range of [90o C, 110o C], with a target temperature of 100o C. While a small variation is normal, signals from the thermostat tell the controller when the engine temperature has shifted up, so the cooling system can respond quickly and bring the temperature back into the optimal operating range.

Individuals and Moving Range chart

  • Open Engine Temperature Sensor.jmp, found in the Quality Control Folder
  • Choose Analyze->Quality and Process -> Control Chart Builder
  • Drag Y to the Y drop zone
  • Right-click on the graph and choose Warnings->Tests->All Tests

Figure 1. Traditional Shewhart Individual and Moving Range chart of temperatureFigure 1. Traditional Shewhart Individual and Moving Range chart of temperature

 

In this chart, we see no tests flagging, including the runs tests. Nothing appears out of control or out of the ordinary.

Why do we want to detect small shifts? The cooling system is designed to efficiently gradually lower the temperature. If the temperature rises too high, it may not be able to bring the temperature back down to a safe operating level fast enough. And, it’s inefficient for the cooling system to cycle on and off briefly every time the temperature changes by a few degrees. Short of an emergency like an explosion or severe loss of pressure, we’re not likely to see a sudden spike in engine temperature.

CUSUM Background

The CUSUM chart plots the cumulative deviations between each data point and the target or reference value, µ.
equations.pngHopefully, it’s clear that because the CUSUM upper and lower points (C+ & C-) are the sum of the accumulated prior deviations, this type of chart is uniquely able to identify even small shifts quickly.

As the new CUSUM Control Chart platform uses the methods also called “Decision Limits” or “Tabular CUSUM”, with some algebra, we are able to make the limits horizontal and set to H, which makes the results and interpretation similar to traditional control charts rather than trying to interpret a V-mask,.

CUSUM Control Chart

  • Choose Analyze->Quality and Process -> CUSUM Control Chart
  • Specify Y as the Y variable, then click OK
  • If not already selected, check the Lower Side Box

Figure 2. CUSUM Control Chart of temperature with default valuesFigure 2. CUSUM Control Chart of temperature with default values

 

Note the Target defaults to the average of the data, 103.963, and the Sigma defaults to the standard deviation, 10.9792. Because the parameter, k, also called ‘slack’, defaults to 0.5, the minimum detectable change is set to 1 * Sigma, in this case, 10.9792.

The note beneath the chart explains the size of a shift the chart can detect, nearly 11 (Deg. C). You can see no detectable shift is visible on this chart.

In our case, we wanted to detect a 10 (Deg. C) shift, and our ideal operating temperature is 100, rather than 103. First, we can change the Target value to 100. You’ll see the chart automatically updates to reflect the change in the cumulative deviation sums. In the figure below, I also changed the Sigma value to 10, to reflect the original engine design specifications.

 

Figure 3. CUSUM Control Chart of temperature with Target set to 100Figure 3. CUSUM Control Chart of temperature with Target set to 100

 

Here, we see the process has clearly shifted upwards, starting around the 27th sample, where the purple line indicating the beginning of the shift lies.

A new generation of small-shift detection

CUSUM charts are designed to spot when the process has drifted away from the desired mean. CUSUM charts are, in fact, better than Shewhart control charts when you need to detect shifts in the mean that are 2 sigma or less.

The new CUSUM Control Chart platform in JMP is a new generation of small-shift detection, improving shift identification sensitivity, and making the CUSUM chart more approachable and intuitive compared to older methods.

Last Modified: Mar 26, 2018 9:19 AM
Comments
waynergf
Level I

["Sometimes you can see a lot just by looking."  -- Yogi Berra :-)]

One of the points I make when teaching the science of variation and using SPC to identify it and control it, is that Special Cause rules know nothing about a particular process to which they may be applied.  The rules on based (mostly) on Walter Shewhart's empiricl evidence and probailities.  I tell my students to figuratively "step back" and scan th SPC chart from left to right and if they see something "suspicious" it's probably a Special Cause.

 

If we do that with the original Individuals chart, we can clearly see a reduction in variation somehwhere around point 26.  When the data are segmented there, the new Individuals chart with Phases clearly shows not only a significant reduction in variation but also an increase in the process average.  In this case, no need to make it more complicated.

 

A counter-argument might be that this approach is based on a retrospective view of many data, well after the process change.  But, again, looking at the original Indiviuals chart shows, starting with point 26, 7 consecutive points all above the Center Line - a strong signal of a shift up in the process average.  And a person knowledgeable in the process may well use even fewer consecutive points to take (correct) action (as I have seen happen).

rmcgover
Level I

So is this possible in JMP 13 as well? This is pretty much exactly what I'd like to create, but for some reason the V-mask is always centered on the last data point rather than zero whenever I set the target to something other than the population mean. 

AnnieDudley
Staff

I'm glad to hear you like the platform and that this answers a need for you. The new CUSUM Control Chart platform, with horizontal or decision limits is new in JMP version 14.0.

BrianK
Level I

I love the CUSUM control chart platform and I have scripted same for repedative analysis. However I would like to modify the script to perform some action (like send an email or write to a file) when a shift is detected. is this possible, and how would I go about it ?  

AnnieDudley
Staff

Thanks for your question, Brian. It sounds like you're interested in Alarm Scripts, as they offer the functionality to perform a customized action upon seeing a new test failure, or shift. Alarm scripts are not yet available for the CUSUM Control Chart platform, however I have added  them to the list for JMP version 16. Please look for them soon!

BrianK
Level I
Oh how disapointing
BrianK
Level I

@AnnieDudley : is there any clever workaround I can imploy in JMP Pro14 so an alarm or trigger could be fired when a shift is detected ? Obviously the CuSum control chart is clever enough to "spot " when a shift is detected as it applies a vertical line ? Could I latch onto this in some way ?

The problem I'm trying to solve is automatically analysising approx 150 individual process charts every 30 mins for any subtle process shifts. Any help greatly appreciated. 

AnnieDudley
Staff

@BrianK : I understand your frustration. Checking the Save Summaries table could provide a means to automate a work around. The column, "Shift Start .." will have a * in the row which identifies the beginning of the start. This row is the same location in which the shift line is drawn.

BrianK
Level I
Perfect, that works.. Now to script it .
Thanks again.
BoostingFawn224
Level I

Please, i am writing a thesis on, Multiple control charts for detecting shifts for generalized weibull family. May I have related articles on it?

 

hogi
Level XII

One could add a slider to the Target setting.
User could play with it and get a felling for the sensitivity - and at the same time: gain new insights for their data.

CUSUM: add slider for target value