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.
Why a single accuracy percentage can hide failure on rare events.
If only ten of a thousand observations are faults, always predicting normal produces 99% accuracy while missing every fault. This is an illustrative calculation, not a field result. Include true positives, false positives, false negatives and true negatives in the acceptance table.
Precision asks how many alerts are correct. Recall asks how many actual positives were detected. A zero denominator makes a metric undefined; display that state instead of an arbitrary percentage. F1 combines precision and recall but does not automatically encode operational cost.
A lower threshold typically produces more warnings. Evaluate the benefit and cost together. For a pilot, write down maintenance capacity and the impact of a missed event. Freeze the threshold before the final test. An uncalibrated model score must not be described as a failure probability.
Thirty consecutive alerts around one failure are not thirty independent successes. Group warnings into event windows and document repeat-notification rules. False alarms per shift and first-warning lead time are useful operational measures. Retain point-level metrics too, since they answer a different question.
Select the threshold on validation data and freeze it before the final test. A lower threshold typically produces more warnings, so evaluate benefit and cost together. Write down maintenance capacity and the impact of a missed event, and do not describe an uncalibrated model score as a failure probability.
When faults are rare, always predicting normal can score high accuracy while catching no fault at all. Include true positives, false positives, false negatives and true negatives in the acceptance table. Report event-level results too, because thirty consecutive alerts around one failure are not thirty independent successes.
Pilot steps in this guide are proposed engineering workflows. Examples do not constitute measured field performance.