OptIForest: Optimal Isolation Forest for Anomaly Detection

Haolong Xiang, Xuyun Zhang, Hongsheng Hu, Lianyong Qi, Wanchun Dou +3 more
6/22/2023
cs.LGcs.AI

Official code: xiagll/OptIForest (6 stars, last commit 2023-01-25).

Abstract

Anomaly detection plays an increasingly important role in various fields for critical tasks such as intrusion detection in cybersecurity, financial risk detection, and human health monitoring. A variety of anomaly detection methods have been proposed, and a category based on the isolation forest mechanism stands out due to its simplicity, effectiveness, and efficiency, e.g., iForest is often employed as a state-of-the-art detector for real deployment. While the majority of isolation forests use the binary structure, a framework LSHiForest has demonstrated that the multi-fork isolation tree structure can lead to better detection performance. However, there is no theoretical work answering the fundamentally and practically important question on the optimal tree structure for an isolation forest with respect to the branching factor. In this paper, we establish a theory on isolation efficiency to answer the question and determine the optimal branching factor for an isolation tree. Based on the theoretical underpinning, we design a practical optimal isolation forest OptIForest incorporating clustering based learning to hash which enables more information to be learned from data for better isolation quality. The rationale of our approach relies on a better bias-variance trade-off achieved by bias reduction in OptIForest. Extensive experiments on a series of benchmarking datasets for comparative and ablation studies demonstrate that our approach can efficiently and robustly achieve better detection performance in general than the state-of-the-arts including the deep learning based methods.

View on arXivView PDF

Code Implementations(1)

xiagll/OptIForestOfficial100%

code implementation of OptIForest

69PythonJan 19, 20233 years ago

Similar Papers

Cite this paper

@article{xiang2023optiforest,
  title  = {OptIForest: Optimal Isolation Forest for Anomaly Detection},
  author = {Haolong Xiang and Xuyun Zhang and Hongsheng Hu and Lianyong Qi and Wanchun Dou and Mark Dras and Amin Beheshti and Xiaolong Xu},
  year   = {2023},
  eprint = {2306.12703},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2306.12703v2}
}

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/2306.12703.svg)](https://codeofpaper.com/paper/2306.12703)

Discussion