Explainable Unsupervised Anomaly Detection with Random Forest

Joshua S. Harvey, Joshua Rosaler, Mingshu Li, Dhruv Desai, Dhagash Mehta
4/22/2025
stat.MLcs.LG

No confident code implementation found for this paper. 5 possible matches can be shown below.

Abstract

We describe the use of an unsupervised Random Forest for similarity learning and improved unsupervised anomaly detection. By training a Random Forest to discriminate between real data and synthetic data sampled from a uniform distribution over the real data bounds, a distance measure is obtained that anisometrically transforms the data, expanding distances at the boundary of the data manifold. We show that using distances recovered from this transformation improves the accuracy of unsupervised anomaly detection, compared to other commonly used detectors, demonstrated over a large number of benchmark datasets. As well as improved performance, this method has advantages over other unsupervised anomaly detection methods, including minimal requirements for data preprocessing, native handling of missing data, and potential for visualizations. By relating outlier scores to partitions of the Random Forest, we develop a method for locally explainable anomaly predictions in terms of feature importance.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 5 weaker matches are hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{harvey2025explainable,
  title  = {Explainable Unsupervised Anomaly Detection with Random Forest},
  author = {Joshua S. Harvey and Joshua Rosaler and Mingshu Li and Dhruv Desai and Dhagash Mehta},
  year   = {2025},
  eprint = {2504.16075},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2504.16075v1}
}

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

Discussion