Skip to content

SPC: statistical process control on production line data

B2Bnetwork team · · 6 min

IT in manufacturing

In brief

SPC, or statistical process control, means watching a process parameter on a control chart to tell ordinary variation apart from a signal that something in the process has changed, and reacting before parts go out of tolerance. On line data, SPC works in five steps: choose the characteristic, check the measurement, choose the chart, set limits from a stable period and write a reaction plan for signals. Process capability (Cp, Cpk) is calculated only once the process is stable.

Control limits are not tolerances

The most common misunderstanding in SPC concerns two kinds of limits. The tolerance is set by the designer on the drawing: it is the customer's requirement. Control limits come from data: they show how the process behaves when it runs normally. According to the NIST handbook, Shewhart charts usually place them at the mean plus and minus three standard deviations of the plotted statistic.

ToleranceControl limit
Where it comes fromthe drawing, the customer specificationprocess data from a stable period
What it tells youwhether the part is goodwhether the process behaves as usual
When you reacta part outside tolerance: scrapa point outside the limit or an unusual pattern
Who changes itthe customer, the designernobody, until the process changes

A process can be stable and still produce scrap when its natural spread is wider than the tolerance. It can also be within tolerance but unstable, and start producing scrap next week. SPC catches the second case earlier than final inspection does.

Which chart for which data

ISO 7870-2 describes Shewhart control charts. In a plant, a few types cover most needs.

DataExampleChart
Measurements in subgroups of several partsshaft diameter, 5 parts every hourmean and range (X-bar R) or mean and standard deviation (X-bar S)
A single measurementbath temperature once per batchindividuals and moving range (I-MR)
Fraction defectiveshare of rejects from vision inspection per shiftp chart
Defects per unitnumber of blisters per sheetc or u chart

A fraction defective chart is useful, for example, for watching the camera in visual quality inspection: a sudden rise in rejects means a change in the process or in the inspection station itself.

Signal rules and alarm fatigue

A point outside the limit is not the only signal. The NIST handbook describes the Western Electric (WECO) rules, which catch smaller shifts:

  1. one point beyond three sigma,
  2. two out of three consecutive points beyond two sigma on the same side,
  3. four out of five consecutive points beyond one sigma on the same side,
  4. eight consecutive points on one side of the center line,
  5. six points in a row trending up or down.

Each extra rule increases false alarms. On a line where the chart refreshes every minute, switching on every rule at once ends with operators ignoring the alarms. Start with rules one and four, and add the others for critical characteristics.

Process capability: Cp and Cpk by example

Capability indices compare the process spread with the tolerance. According to the NIST handbook, Cp is the tolerance width divided by six standard deviations, and Cpk is the smaller distance from the mean to a tolerance limit divided by three standard deviations. Both assume a normal distribution and a stable process, and NIST notes that a reliable estimate needs about 50 independent measurements.

An example to work through: a shaft with a diameter of 20.00 mm and a tolerance of +/-0.05 mm, a process standard deviation of 0.01 mm and a mean of 20.02 mm.

  • Cp = 0.10 / (6 × 0.01) = 1.67. The spread fits within the tolerance with room to spare.
  • Cpk = min((20.05 − 20.02) / 0.03, (20.02 − 19.95) / 0.03) = min(1.0, 2.33) = 1.0.

So the process is capable in terms of spread, but it is shifted toward the upper limit. The fix needs no new machine, only a setting adjustment. Customers usually state the minimum Cpk for critical characteristics in their own requirements.

SPC pitfalls with sensor data

Machine data is tempting because it arrives on its own. But it has properties that spoil control charts if you ignore them:

  • Autocorrelation. Temperature measured every second changes slowly, so consecutive points are similar. Limits calculated from such data come out too narrow and the chart alarms constantly. Averaging or sampling less often helps.
  • Mixing products. One chart for several products or mold cavities shows the differences between them, not changes in the process. A chart should cover one product at one station, or data normalized to the nominal value.
  • Recalculating limits after every change. Limits are calculated once, from a stable period, and changed only after a deliberate process change. Limits recalculated every week adapt to the problem instead of revealing it.
  • An unchecked measurement system. If the gauge's spread is comparable to the process spread, the chart shows gauge noise. Check the measurement system before starting SPC.
  • Gaps and errors in data. A sensor that sends zero on restart creates false points. Data quality rules are covered in Data quality.

A reaction plan: who does what on a signal

A chart without a reaction plan is just a graph on the wall. For each critical characteristic, write down who receives the signal (operator, supervisor, process engineer), what they check first (tool, raw material, settings), when they stop the machine and how they quarantine parts made since the last good point. Every signal and action is recorded at the chart, because that is how knowledge about causes builds up.

SPC looks at process parameters, OEE at losses of time and quantity. Both use the same line data. The DYNAMINDS Labs OEE analyst calculates OEE for every line under one definition, breaks the result down into availability, performance and quality, points out the biggest losses of the week and flags gaps in shop floor data. What such a report looks like is described in OEE analysis without manual calculation, and a single KPI definition across several plants is shown in the case study on an OEE platform built on line data.

Questions and answers

Which characteristic should we start SPC with?

The one that most often causes scrap or complaints and can be measured continuously. One well-run chart with a reaction plan gives more than twenty charts nobody looks at. Add more characteristics once the team has learned to respond to signals.

How much data do we need to set control limits?

Limits are calculated from a period when the process ran normally, usually a few dozen subgroups or measurements. For Cp and Cpk, the NIST handbook suggests about 50 independent values. Data from breakdowns or start-up should be excluded, because it inflates the spread.

Can SPC run automatically on machine data?

Yes, and it saves operators' time. But you need to account for autocorrelation in sensor data, keep separate charts for different products and look after data quality. An automatic alarm has to reach a specific person with a reaction plan, or it goes unnoticed.

How is SPC different from final inspection?

Final inspection checks whether a finished part is within tolerance, which means it finds scrap after the fact. SPC watches the process during production and signals a change before scrap appears. In a well-run process, final inspection can be less frequent, because SPC keeps stability in check as you go.

What it looks like in a project

Connecting the shop floor with your business systems? Talk to an engineer who has worked on MES and OT.

Let's talk

Read more: IT in manufacturing

All in IT in manufacturing →