[Paper Review] Functional Isolation Forest
This paper introduces Functional Isolation Forest (FIF), a novel extension of Isolation Forest for anomaly detection in functional data, bypassing dimensionality reduction by directly partitioning the infinite-dimensional function space via random functional splits. FIF achieves state-of-the-art performance on benchmark datasets, with AUC scores exceeding 0.95 on ECG5000 and strong detection accuracy on diverse functional time series, while preserving computational efficiency and interpretability.
For the purpose of monitoring the behavior of complex infrastructures (e.g. aircrafts, transport or energy networks), high-rate sensors are deployed to capture multivariate data, generally unlabeled, in quasi continuous-time to detect quickly the occurrence of anomalies that may jeopardize the smooth operation of the system of interest. The statistical analysis of such massive data of functional nature raises many challenging methodological questions. The primary goal of this paper is to extend the popular Isolation Forest (IF) approach to Anomaly Detection, originally dedicated to finite dimensional observations, to functional data. The major difficulty lies in the wide variety of topological structures that may equip a space of functions and the great variety of patterns that may characterize abnormal curves. We address the issue of (randomly) splitting the functional space in a flexible manner in order to isolate progressively any trajectory from the others, a key ingredient to the efficiency of the algorithm. Beyond a detailed description of the algorithm, computational complexity and stability issues are investigated at length. From the scoring function measuring the degree of abnormality of an observation provided by the proposed variant of the IF algorithm, a Functional Statistical Depth function is defined and discussed as well as a multivariate functional extension. Numerical experiments provide strong empirical evidence of the accuracy of the extension proposed.
Motivation & Objective
- To address the lack of nonparametric anomaly detection methods tailored for functional data, especially in high-rate, unlabeled, continuous-time monitoring of complex systems.
- To extend the Isolation Forest algorithm—originally designed for finite-dimensional data—into the infinite-dimensional functional space without relying on prior dimensionality reduction.
- To develop a flexible, computationally efficient, and interpretable method that can isolate anomalous functional trajectories based on their intrinsic geometric and topological properties.
- To define a functional depth measure derived from the FIF scoring function, enabling robust anomaly ranking and multivariate functional extension.
Proposed method
- Proposes a functional extension of Isolation Forest (FIF) that recursively partitions the space of functions using random functional splits, where splits are defined via inner products with randomly selected basis functions from a dictionary.
- Uses a randomized splitting procedure in the Hilbert space of square-integrable functions, selecting splitting directions uniformly at random from the unit ball in the function space to ensure flexibility and avoid bias.
- Employs a scoring function based on the average path length required to isolate a functional observation in the ensemble of isolation trees, with shorter paths indicating higher anomaly likelihood.
- Defines a Functional Statistical Depth function from the FIF anomaly scores, enabling depth-based ranking of functional data and extending the method to multivariate functional data via component-wise dictionary application.
- Applies a multivariate functional extension by projecting multivariate functional data onto a tensor product of Hilbert spaces and using a joint dictionary to capture cross-variable dependencies.
- Employs the 'visual elbow rule' for threshold selection in anomaly detection, validated on real datasets such as MNIST-based digit contours and ECG signals.

Experimental results
Research questions
- RQ1Can the Isolation Forest algorithm be successfully generalized to infinite-dimensional functional data without relying on dimensionality reduction?
- RQ2How can random partitioning be meaningfully defined in a function space with diverse topological structures and complex functional patterns?
- RQ3What is the impact of the choice of dictionary and splitting mechanism on the robustness and accuracy of anomaly detection in functional data?
- RQ4How does the FIF anomaly score relate to established functional depth concepts, and can it be used to define a new functional depth measure?
- RQ5Can the FIF framework be effectively extended to multivariate functional data, and how does it perform on real-world multivariate functional datasets?
Key findings
- FIF achieves AUC scores of 0.95 on the ECG5000 dataset, demonstrating strong performance on real-world functional anomaly detection tasks.
- On the ECG200 dataset, FIF achieves an AUC of 0.83 with the sym14 wavelet basis, indicating high sensitivity to subtle anomalies in ECG curves.
- The method successfully detects 15 anomalies in a 110-sample digit dataset, correctly identifying 5 out of 10 anomalous '2' digits that visually deviate from the '7' class.
- FIF outperforms traditional filtering-based approaches by preserving critical functional features that might be lost during dimensionality reduction.
- The functional depth derived from FIF scores shows strong alignment with intuitive notions of centrality and outlyingness in functional data.
- The multivariate functional extension of FIF successfully detects anomalies in multivariate curves such as those from SonyRobotAI1 and SonyRobotAI2, with AUC scores above 0.85.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.