AI Lab for the Internet of Things

From sensors to intelligent self-deciding systems: lessons, projects, architectures, interactive simulation labs and a specialist AIoT assistant.

20Lesson

Intro to Anomaly Detection

Intermediate16 min

Educational content in scientific-draft form; a specialist should review it before it is adopted as an academic reference. No measurement or performance result that was not actually obtained is shown here.

Module: Machine Learning for IoT

Learning objectives

  • Explaining the Z-score and IQR methods
  • Defining the limits of each method

An anomaly is a reading or pattern that departs from what is considered normal. It may indicate a real fault, a measurement error or a legitimate rare event. So detection yields "candidates for review", not final verdicts.

The Z-score method measures the distance of a reading from the mean in standard deviations and assumes a distribution close to normal. IQR uses the first and third quartiles and treats as outliers what falls outside a defined range around them; it is less affected by extreme values.

Machine-learning methods such as Isolation Forest isolate anomalous points with random trees and suit more dimensions, but they need tuning of the contamination parameter and an understanding of what their scores mean.

Warning: no method suits all data. Test on data with known anomalies and watch the false-alarm rate. Note: our lab applies statistical methods only and does not claim to train a model.

References

  1. Varun Chandola, Arindam Banerjee, Vipin Kumar. Anomaly detection: A survey. ACM Computing Surveys 41(3):1–58 (2009). DOI Link not checked automatically
  2. Fei Tony Liu, Kai Ming Ting, Zhi-Hua Zhou. Isolation Forest. 2008 Eighth IEEE International Conference on Data Mining, pp. 413–422 (2008). DOI Link not checked automatically

Simulations and labs run inside your browser. Nothing you enter and none of the conversations is stored on the server. Privacy policy