Adaptive Partitioning Strategies for Isolation Forest-Based Anomaly Detection

Begin: Can start immediately

First Supervisor: Prof. Dr. Heisenberg

Second Supervisor: Dr. Hakan Akdag

Level: Master's thesis


Problem:

Anomaly detection aims to identify unusual observations in data without necessarily requiring labeled examples. The Isolation Forest (IF) algorithm [1] addresses this problem by building an ensemble of random isolation trees. At each node, a feature and a split value are selected randomly. Observations that can be isolated with relatively few splits typically receive higher anomaly scores. This makes IF an efficient and widely used approach for unsupervised anomaly detection.

However, purely random partitioning does not take the local structure of the data into account. Depending on the distribution, a split may cut through dense clusters or fail to separate unusual groups efficiently. This can be particularly challenging when features are correlated, local densities differ, or anomalies themselves form small clusters. Existing extensions address aspects of this problem, for example through oblique splits in Extended Isolation Forest [2] and data-driven split selection in SCiForest [3].

Recent research has also introduced density-aware split selection for weighted isolation forests [4]. An interesting question is therefore whether combining random partitioning with local, data-dependent information can improve anomaly detection without losing the robustness and computational efficiency of the original ensemble.

Adapative anomly detection with Isolation ForestBildquelle: KI generiert
Objective:

The objective of this thesis is to develop and evaluate an adaptive partitioning strategy for Isolation Forest that combines random splits with data-dependent split selection. The proposed method should use information such as local feature distributions or data density to guide selected partitions while retaining a degree of randomness. The study will investigate under which conditions this hybrid strategy improves anomaly detection compared with established Isolation Forest variants, and what trade-offs arise in terms of runtime, robustness, and anomaly scoring.

Tasks:
  • Review the principles of Isolation Forest and related partitioning methods, including Extended Isolation Forest, SCiForest, and density-aware approaches.
  • Design and implement an adaptive or hybrid split-selection strategy for isolation trees.
    • Investigate how local density or feature distributions can guide the choice of split values while preserving randomization.
    • Examine whether conventional path-length-based anomaly scores remain suitable or require adaptation.
  • Evaluate the proposed method against the original Isolation Forest and selected existing variants using synthetic and real-world datasets.
    • Consider isolated anomalies, clustered anomalies, correlated features, and varying data densities and dimensionalities.
    • Compare detection quality (e.g., precision-recall AUC and ROC AUC), computational cost, and stability across random seeds.
  • Analyze when adaptive partitioning is beneficial, identify its limitations, and document the algorithm and experimental results in a reproducible implementation.
Requirements:
  • Good programming skills in Python and experience with machine learning libraries such as scikit-learn.
  • Basic knowledge of machine learning, statistics, and tree-based algorithms.
  • Interest in developing and systematically evaluating a new anomaly detection method.
  • The thesis will be carried out in English.

If you are interested, please get in contact via email.

Relevant Resources:

[1] Liu, Ting & Zhou (2008): Isolation Forest https://doi.org/10.1109/ICDM.2008.17
[2] Hariri, Carrasco Kind & Brunner: Extended Isolation Forest https://arxiv.org/abs/1811.02141
[3] Liu, Ting & Zhou (2010): On Detecting Clustered Anomalies Using SCiForest https://doi.org/10.1007/978-3-642-15883-4_18
[4] Yeom & Jung (2026): Weighted Isolation and Random Cut Forests for Anomaly Detection https://doi.org/10.1007/s11634-026-00688-3
[5] Guha et al. (2016): Robust Random Cut Forest Based Anomaly Detection on Streams https://proceedings.mlr.press/v48/guha16.html