Isolation Forest for sensor anomalies: how it works and where it misleads
Read flagged rows in a sensor table by their isolation score, understand what contamination does in the model, and see where the method misleads you.
Control charts have watched process drift for decades. Before proposing a machine learning model, look at what this simple method says.
A Shewhart chart draws a centre line and, typically, upper and lower control limits three standard deviations from it. A point outside the limits suggests the process may be outside its known variability. That is an inspection flag, not a fault diagnosis.
Control limits should be computed from a period in which you know the process was stable. If you compute limits from inside the drift, the drift becomes normal. The principle of separating training from evaluation applies here too: the data that sets the limit and the data you test on should be different.
A Shewhart limit catches small but persistent shifts in the mean late. Cumulative-sum (CUSUM) and exponentially weighted moving-average (EWMA) charts are designed for such small shifts. Autocorrelated data violates the assumptions of classic charts; monitoring residuals may then be necessary.
Before proposing an anomaly model, build a robust control chart on the same data and record its false-alarm count. If the proposed model cannot beat this baseline in a way an engineer can understand, its complexity cannot be justified. This is a suggested evaluation approach; exact limit settings depend on the process and risk tolerance.
A Shewhart chart draws a centre line and, typically, upper and lower limits three standard deviations from it. Compute the limits from a period when the process was known to be stable. Limits computed inside a drift make the drift look normal, so keep the data that sets the limit separate from the data you test on.
Build a robust control chart on the same data first and record its false-alarm count. If a proposed model cannot beat this baseline in a way an engineer can understand, its complexity is not justified. CUSUM and EWMA charts are designed for small, persistent shifts, and autocorrelated data may call for monitoring residuals.
Pilot steps in this guide are proposed engineering workflows. Examples do not constitute measured field performance.