top of page
silver swirl.jpg

How KDE Plots Reveal Manufacturing Process Trends and Anomalies

1 hour ago
10 min read

A manufacturing process can look stable on a dashboard while it quietly drifts toward scrap, rework, or customer complaints. Averages often hide this drift. So do simple pass-fail counts. To understand what is really happening, teams need to look at the shape of the data, not just the center.


That shape is the process distribution.


In quality control, a distribution shows how measurements spread across a range. It can reveal whether a filler deposits too much material, whether a CNC machine is slowly wearing down a tool, or whether a heat-treatment process has two separate operating modes. Kernel Density Estimate plots, often called KDE plots, are one of the most useful ways to see those patterns.


KDE plots turn raw process data into a smooth curve that shows where values are concentrated. They help engineers, quality analysts, and production teams spot trends, shifts, and anomalies before they become bigger problems.


Wide-angle view of a manufacturing line with inspection gauges beside machined metal parts
Process data is most useful when it reflects real variation on the line.

Process distributions show what averages miss


A process average answers one question: where is the center of the data?


That is useful, but limited. Two production runs can have the same average and very different levels of quality risk. One may produce tightly grouped measurements near the target. Another may produce values spread across the tolerance range, with some parts close to the limits.


For quality control, that difference matters.


A process distribution can show:


  • Spread

    How much variation exists around the target.


  • Skew

    Whether results lean toward the high or low side.


  • Multiple peaks

    Whether the process may be running in more than one condition.


  • Tails

    Whether rare but important extreme values are present.


  • Shifts over time

    Whether the process is drifting away from its expected pattern.


Imagine a shaft diameter process with a target of 10.00 mm. The daily average might stay close to target, but the distribution may slowly widen as a cutting insert wears. The widening curve gives an early warning. Waiting for the average to move may mean waiting until parts are already out of specification.


The same applies across manufacturing:


  • Fill weights in packaging

  • Coating thickness in electronics

  • Weld bead dimensions

  • Injection molded part weights

  • Oven zone temperatures

  • Torque values in assembly

  • Surface roughness readings

  • Cycle times on automated lines


In each case, the distribution tells a richer story than a single number.


KDE plots make distribution shapes easier to read


A histogram is often the first tool used to view a distribution. It groups data into bins and shows how many observations fall into each bin. Histograms are simple and useful, but they depend heavily on bin width and bin starting point.


A KDE plot takes a different approach. Instead of cutting data into bins, it places a small smooth curve over each data point. Then it adds those curves together to create one continuous estimate of the distribution.


The result is a smooth line that shows where process values are dense and where they are sparse.


A KDE plot answers questions like:


  • Where do most measurements cluster?

  • Is the process centered on the target?

  • Is the distribution narrow or wide?

  • Are there multiple peaks?

  • Are there unusual shoulders or long tails?

  • Has the distribution changed between shifts, machines, suppliers, or batches?


A simple way to think about it is this: a histogram stacks blocks, while a KDE plot lays a smooth surface over the data. The KDE curve can make patterns easier to see, especially when comparing several groups.


KDE plots use bandwidth to control smoothness


The key setting in a KDE plot is the bandwidth. Bandwidth controls how wide each small curve is around each data point.


A small bandwidth produces a detailed curve. It may show local bumps and minor variation, but it can also make random noise look meaningful.


A large bandwidth produces a smoother curve. It shows the broad pattern clearly, but it can hide smaller process changes.


Getting the bandwidth right is part of the analysis. There is no single perfect setting for every production process. The right choice depends on sample size, measurement precision, and the question being asked.


For example, if a plant wants to compare fill weight distributions across three packaging lines, a moderate bandwidth may help show whether one line runs heavier than the others. If the team investigates a short-term instability after a maintenance event, a smaller bandwidth may make a sudden process split easier to see.


KDE plots also use a kernel, which is the shape placed over each data point. The Gaussian kernel is common because it creates a smooth bell-shaped contribution around each point. In most manufacturing uses, bandwidth affects the result more than the chosen kernel.


A KDE plot is not the process itself. It is an estimate based on sampled data, measurement quality, and smoothing choices.

That distinction matters. KDE plots are guides for investigation, not proof by themselves.


Close-up view of precision calipers measuring a cylindrical metal part on a workbench
Dimensional measurements often produce distributions that reveal tool wear or setup changes.

KDE plots help compare machines, shifts, and batches


One of the strongest uses of KDE plots in manufacturing is comparison. A single curve is useful, but multiple curves can quickly show whether different sources of production behave the same way.


Comparing two machines


Suppose two CNC machines produce the same housing component. Both pass final inspection, and both have similar average bore diameters. A KDE plot may show a different story.


Machine A may have a tight, centered curve. Machine B may show a wider curve with a slight high-side skew. That pattern suggests Machine B has more variation, even if it still meets tolerance.


The next checks may include:


  • Spindle condition

  • Fixture wear

  • Tool offset history

  • Coolant flow

  • Operator setup records

  • Material lot differences


The KDE plot does not identify the cause on its own. It points the team toward the right comparison.


Comparing production shifts


Shift comparisons can be sensitive, so the goal should be process learning rather than blame. KDE plots can reveal whether the same process behaves differently across time periods.


For example, an adhesive dispensing process may show one sharp peak during the day shift and a broader curve during the night shift. The reason might be ambient temperature, delayed material changeover, different equipment warmup time, or a setup variation.


The pattern becomes a clue. The team can then review setup sheets, environmental data, and maintenance logs.


Comparing suppliers or material lots


Raw material variation often appears in finished product data. A plastic injection molding operation may receive resin lots with slightly different melt behavior. Part weight, dimensional shrinkage, or surface defect rates may shift by lot.


A KDE plot can compare distributions by resin lot. If one lot creates a curve shifted toward heavier parts or wider dimensional variation, the team can work with supplier quality data and incoming inspection results.


This helps separate machine behavior from material behavior.


Practical manufacturing examples show where KDE plots shine


KDE plots are useful whenever numeric process data is collected. The following examples show how they can support everyday quality work.


Manufacturing setting

Data to plot

What the KDE curve may reveal

Machining

Bore diameter, shaft diameter, surface roughness

Tool wear, fixture issues, offset drift

Assembly

Torque values, press-fit force, gap measurements

Under-tightening risk, seating variation, part mismatch

Packaging

Fill weight, seal pressure, label position

Overfill, underfill, machine-to-machine differences

Coating

Film thickness, cure temperature, viscosity readings

Uneven application, process drift, material changes

Injection molding

Part weight, key dimensions, cycle time

Cavity imbalance, resin lot effects, thermal instability

Electronics

Solder paste volume, reflow temperature, resistance values

Deposition issues, reflow variation, component shift


Fill weight control


A packaging line may track fill weights for bottles, pouches, or cartons. The average fill weight may sit safely above the declared amount, but the distribution may show too much spread. That spread costs money through overfill and increases risk through underfill.


A KDE plot can show whether the line has:


  • A centered, narrow fill distribution

  • A wide distribution with both underfill and overfill risk

  • A distribution shifted too high

  • Two peaks caused by alternating filler heads


If the curve has two peaks, the issue may come from separate filling nozzles behaving differently. Averages may hide that condition because the high and low values balance each other.


Heat-treatment temperature variation


In heat treatment, temperature variation can affect hardness, strength, and dimensional stability. A KDE plot of recorded part temperatures or furnace zone temperatures can show whether the process stays in one stable operating band.


If the curve has a long low-temperature tail, some parts may have experienced less heat than expected. If curves differ by furnace load size, the team may need to review loading patterns or airflow.


This kind of pattern is hard to see from a daily average alone.


Press-fit assembly force


Press-fit operations often measure insertion force to confirm proper seating. Too little force may suggest a loose fit. Too much force may damage parts or cause hidden stress.


A KDE plot can reveal if press force values cluster cleanly in the expected range. A shoulder on the high side may point to a subset of parts with tight tolerances, contamination, or misalignment during assembly.


If that shoulder appears only after a tooling change, the plot helps narrow the investigation.


Solder paste volume in electronics manufacturing


In printed circuit board assembly, solder paste volume affects joint quality. A KDE plot can compare volume measurements across stencil apertures, boards, or print cycles.


A curve that slowly shifts lower may suggest stencil clogging. A curve that widens may point to inconsistent print pressure or changing paste condition. Separate peaks may show that specific aperture sizes behave differently.


The benefit is early detection. Correcting a print issue before reflow can prevent downstream defects.


KDE plots are especially useful for trends and anomalies


A single KDE plot shows the shape of one data set. A series of KDE plots shows how that shape changes over time.


For trend detection, teams can create KDE plots by:


  • Hour

  • Shift

  • Day

  • Batch

  • Tool life stage

  • Maintenance period

  • Material lot

  • Machine or cavity


This can reveal process movement that standard charts may not show clearly.


For example, a coating process may start the week with a narrow curve centered on the target thickness. By midweek, the curve may shift upward and widen. By Friday, a second peak appears. That sequence suggests the process is changing, not just producing random variation.


Anomalies can appear as:


  • Small isolated peaks away from the main curve

  • Long tails beyond the expected process range

  • Sudden widening after a setup change

  • One group showing a different curve from the rest

  • A curve that becomes flatter over time


KDE plots also pair well with control charts. A control chart shows whether the process is stable over time. A KDE plot shows the shape of the values produced during a period. Used together, they give a more complete quality view.


A practical workflow for using KDE plots


KDE plots do not require a complex project. A practical workflow can be simple.


Start with a clear quality question


Do not plot data just to make a chart. Start with a question such as:


  • Does Machine 2 produce more variation than Machine 1?

  • Did the process shift after the tool change?

  • Are fill weights different by nozzle?

  • Does the new supplier lot affect part thickness?

  • Are failures coming from one part of the distribution?


The question determines how to group the data.


Use clean and traceable measurements


KDE plots depend on good data. Before plotting, check that measurements are consistent and tied to useful process labels.


Useful labels include:


  • Timestamp

  • Machine

  • Operator or shift if appropriate

  • Tool number

  • Cavity number

  • Batch or lot

  • Material supplier

  • Measurement device

  • Maintenance state


Also check for data entry errors, duplicate records, missing units, and values caused by failed measurement collection rather than the process itself.


Plot groups side by side


Compare distributions by logical groups. A single curve can show the general pattern, but grouped KDE plots often reveal the cause of variation.


For example, plotting all molded part weights together may show a broad distribution. Splitting the plot by mold cavity may show that one cavity produces heavier parts. That is a more useful result because it points to a specific process element.


Add specification limits and targets


A KDE plot becomes more useful when it includes the target and specification limits. The curve then shows how much of the process sits near risk zones.


If the curve is centered but wide, variation reduction may be the priority. If the curve is narrow but off target, centering the process may matter more.


Compare KDE plots with other tools


KDE plots should not replace every quality chart. They work best as part of a broader analysis set.


Use them with:


  • Control charts for stability over time

  • Box plots for quick spread comparison

  • Histograms for simple frequency views

  • Scatter plots for relationships between variables

  • Pareto charts for defect categories

  • Capability analysis when process assumptions fit the data


Each tool answers a different question.


Eye-level view of molded plastic parts sorted into labeled trays near a quality inspection station
Grouped process data can reveal whether variation comes from a machine, cavity, or material lot.

Watch for common mistakes when reading KDE plots


KDE plots are powerful, but they can mislead when used carelessly.


One common mistake is reading small wiggles as meaningful. If the sample size is small or the bandwidth is too low, the curve may show noise rather than a real process pattern.


Another mistake is ignoring measurement resolution. If a gauge rounds values heavily, the KDE curve may create a smooth shape that looks more precise than the data really is.


A third mistake is mixing unlike conditions. A KDE plot of all production data from every machine, material lot, and shift may look broad or strange because it combines many different process states. Splitting the data into meaningful groups often gives a clearer picture.


Teams should also avoid using KDE plots alone to prove capability. Capability studies often depend on assumptions about stability and distribution type. A KDE plot can help assess distribution shape, but it should support, not replace, proper statistical review.


The value is not the curve, but the better question


The real benefit of a KDE plot is not that it looks smooth. The benefit is that it helps people ask sharper questions about the process.


A good KDE plot can show that a process is:


  • Centered but too variable

  • Stable for one machine but unstable for another

  • Affected by tool wear

  • Different after maintenance

  • Split into two operating modes

  • Sensitive to material lots

  • Producing rare values that need attention


That makes the plot useful for both daily quality checks and longer-term process improvement.


KDE plots also support communication. A smooth distribution curve can make variation easier to explain to production teams, engineers, and managers. Instead of saying, “The standard deviation increased,” a quality analyst can show how the curve widened or shifted toward a specification limit.


That visual evidence often leads to faster agreement on what to check next.


Overhead view of a quality inspection bench with measurement printouts and sample parts arranged in rows
KDE plots work best when paired with clear process labels and physical samples.

Final takeaway


Manufacturing quality depends on understanding variation. Averages, totals, and pass-fail rates are useful, but they rarely show the full process story.


KDE plots reveal the shape behind the numbers. They make it easier to see spread, skew, multiple peaks, drift, and unusual values. In real production settings, that can mean finding a worn tool sooner, identifying a problem filler head, spotting a material lot difference, or catching a process shift before it reaches customers.


The best next step is simple: choose one important process measurement, group it by a meaningful factor such as machine, shift, cavity, or batch, and plot the distributions. The curve may confirm what the team already suspects, or it may reveal a pattern no average could show.


 
 
 

Comments


bottom of page