Extended Isolation Forest

Sahand Hariri, Matias Carrasco Kind, Robert J. Brunner
11/6/2018
cs.LGastro-ph.IMstat.ML

Official code: sahandha/eif (498 stars, last commit 2023-11-03).

Abstract

We present an extension to the model-free anomaly detection algorithm, Isolation Forest. This extension, named Extended Isolation Forest (EIF), resolves issues with assignment of anomaly score to given data points. We motivate the problem using heat maps for anomaly scores. These maps suffer from artifacts generated by the criteria for branching operation of the binary tree. We explain this problem in detail and demonstrate the mechanism by which it occurs visually. We then propose two different approaches for improving the situation. First we propose transforming the data randomly before creation of each tree, which results in averaging out the bias. Second, which is the preferred way, is to allow the slicing of the data to use hyperplanes with random slopes. This approach results in remedying the artifact seen in the anomaly score heat maps. We show that the robustness of the algorithm is much improved using this method by looking at the variance of scores of data points distributed along constant level sets. We report AUROC and AUPRC for our synthetic datasets, along with real-world benchmark datasets. We find no appreciable difference in the rate of convergence nor in computation time between the standard Isolation Forest and EIF.

View on arXivView PDF

Code Implementations(1)

sahandha/eifOfficial100%

Extended Isolation Forest for Anomaly Detection

498122C++, PythonJul 2, 20182 years agoNOASSERTION

Similar Papers

Cite this paper

@article{hariri2018extended,
  title  = {Extended Isolation Forest},
  author = {Sahand Hariri and Matias Carrasco Kind and Robert J. Brunner},
  year   = {2018},
  eprint = {1811.02141},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1811.02141}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/1811.02141.svg)](https://codeofpaper.com/paper/1811.02141)

Discussion