Skip to contentScholarGate
LibraryBookshelfDeskReview StudioAssistant
Sign in
On this page
IntuitionHow it worksWhen to use itStrengths & limitationsCommon pitfallsApplicationsFrequently asked🔒 Read the full methodSourcesRelated methods
Cite this pageSpotted an issue on this page? Report or suggest a fix →
Home›Machine learning›Online Isolation Forest
Machine learningMachine learning

Online Isolation Forest

Online Isolation Forest (Streaming Anomaly Detection with Isolation Trees) · Also known as: streaming isolation forest, incremental isolation forest, online iForest, adaptive isolation forest

Online Isolation Forest extends the Isolation Forest anomaly-detection algorithm to streaming or continuously arriving data. Instead of rebuilding isolation trees from scratch when new observations arrive, the forest is updated incrementally so that anomaly scores remain current without reprocessing the entire history. This makes it practical for real-time monitoring, fraud detection, and sensor-data surveillance where data volumes grow indefinitely.

ScholarGate
  1. Machine learning
  2. v1
  3. 2 Sources
  4. PUBLISHED
Cite this page →
Tools & resources
Download slides
Learn & explore

Read the full method

Members only

Sign in with a free account to read this section.

Sign in

Method map

The neighbourhood of related methods — select a node to explore.

Online Isolation Forest
Autoencoder Anomaly Dete…Isolation ForestOne-class SVMOnline LearningOnline Random ForestSemi-supervised Isolatio…

When to use it

Use Online Isolation Forest when anomalies must be detected in real time from a continuously arriving data stream, and when the underlying distribution may drift over time so that a static model would become stale. It is well-suited for network intrusion detection, financial transaction monitoring, industrial sensor surveillance, and log-stream analysis with high throughput. Avoid it when the entire dataset fits comfortably in memory and there is no need for real-time decisions — standard batch Isolation Forest will be simpler and equally effective. Also avoid it when you need interpretable rejection rules, as isolation trees remain black-box.

Strengths & limitations

Strengths
  • Processes data streams without storing the entire history, making it memory-efficient.
  • Adapts to distribution shift by replacing stale trees with freshly grown ones.
  • Inherits iForest's near-linear time complexity, enabling high-throughput real-time scoring.
  • No assumption about the anomaly distribution; effective on multivariate, mixed-type tabular streams.
  • Anomaly score is a continuous value, supporting flexible threshold tuning.
Limitations
  • Choosing when and how aggressively to replace trees requires careful tuning and domain knowledge.
  • Performance degrades on data with many irrelevant features because random splits waste tree depth.
  • Anomaly scores can be misleading for clustered anomalies (anomaly masking), a known limitation inherited from batch iForest.
  • Lacks transparent decision rules, making it hard to explain flagged anomalies to non-technical stakeholders.

Frequently asked

How is Online Isolation Forest different from standard Isolation Forest?

Standard Isolation Forest is trained once on a fixed batch of data and cannot adapt to new observations. Online Isolation Forest incrementally updates the tree forest as new data arrives, allowing it to track distribution changes in a stream without full retraining.

How do I choose how often to refresh the trees?

A common strategy is to replace the oldest tree with a new one grown on a recent window of data every time a fixed number of new observations arrive. The replacement rate should be calibrated against the expected speed of distribution drift in your application.

Does Online Isolation Forest work well on high-dimensional data?

Its performance degrades as irrelevant dimensions increase, because random splits are spread across useless features. Applying feature selection or dimensionality reduction before streaming the data improves detection accuracy.

What anomaly score threshold should I use?

Scores above about 0.6 are conventionally flagged as anomalies, but this is dataset-dependent. Always calibrate the threshold using labelled validation examples or domain knowledge about acceptable false-positive rates before deploying.

Can it handle concept drift?

Yes — that is its primary advantage over batch iForest. By continuously replacing old trees with trees grown on recent data, the model tracks gradual or sudden shifts in the normal data distribution.

Sources

  1. Liu, F. T., Ting, K. M., & Zhou, Z.-H. (2008). Isolation Forest. In Proceedings of the 8th IEEE International Conference on Data Mining (ICDM), pp. 413–422. DOI: 10.1109/ICDM.2008.17 ↗
  2. Tan, S. C., Ting, K. M., & Liu, T. F. (2011). Fast Anomaly Detection for Streaming Data. In Proceedings of the 22nd International Joint Conference on Artificial Intelligence (IJCAI), pp. 1511–1516. link ↗

How to cite this page

ScholarGate. (2026, June 3). Online Isolation Forest (Streaming Anomaly Detection with Isolation Trees). ScholarGate. https://scholargate.app/en/machine-learning/online-isolation-forest

Related methods

Autoencoder Anomaly DetectionIsolation ForestOne-class SVMOnline LearningOnline Random ForestSemi-supervised Isolation Forest

Which method?

Set this method beside its closest kin and read them side by side — the library lays the books on the table; the choice is yours.

  • Autoencoder Anomaly DetectionMachine learning↔ compare
  • Isolation ForestMachine learning↔ compare
  • One-class SVMMachine learning↔ compare
  • Online LearningMachine learning↔ compare
  • Online Random ForestMachine learning↔ compare
  • Semi-supervised Isolation ForestMachine learning↔ compare
Compare side by side →

Similar methods

Robust Isolation forestEnsemble Isolation ForestOnline Random ForestOnline One-class SVMActive learning Isolation forestIsolation ForestOnline Autoencoder Anomaly DetectionSemi-supervised Isolation Forest

Related reference concepts

Ensemble MethodsClustering AlgorithmsCross-Validation and ResamplingCross-ValidationMachine LearningUnsupervised Learning

Spotted an issue on this page? Report or suggest a fix →

ScholarGate — Online Isolation Forest (Online Isolation Forest (Streaming Anomaly Detection with Isolation Trees)). Retrieved 2026-07-21 from https://scholargate.app/en/machine-learning/online-isolation-forest · Dataset: https://doi.org/10.5281/zenodo.20539026
Quick facts
Originator
Tan, S. C.; Ting, K. M.; Liu, T. F. (streaming variant); original iForest by Liu et al.
Year
2008–2011
Type
Streaming anomaly detection (online ensemble)
DataType
Continuous or mixed tabular streaming data
Subfamily
Machine learning
Related methods
Autoencoder Anomaly DetectionIsolation ForestOne-class SVMOnline LearningOnline Random ForestSemi-supervised Isolation Forest
ScholarGate

A content-first reference library for research methods — what each one is, how it works, and where it comes from.

Open data (CC-BY)

Explore

  • Library
  • Search the library…
  • Browse by field
  • Fields
  • Journey
  • Compare
  • Which method?

Reference

  • Subjects
  • Atlas
  • Glossary
  • Methodology
  • Philosophy

Your tools

  • Bookshelf
  • Desk
  • Chat

Company

  • About
  • Pricing
  • Contact
  • Suggest a method

Entries are compiled from published sources for reference. Verifying the accuracy and suitability of any information for your own use remains your responsibility.

© 2026 ScholarGate · A research-method reference library
  • Privacy
  • Cookies
  • Terms
  • Delete account