Skip to main content
QUICK REVIEW

[Paper Review] Random Forests for Change Point Detection

Malte Londschien, Peter Bühlmann|arXiv (Cornell University)|May 10, 2022
Statistical Methods and InferenceMathematics16 citations
TL;DR

This paper proposes changeforest, a novel nonparametric multivariate change point detection method that uses classifier log-likelihood ratios—particularly with random forests—to detect multiple structural changes in time series. It achieves consistent detection of single change points with a computationally efficient binary segmentation algorithm and outperforms existing nonparametric methods in extensive simulations.

ABSTRACT

We propose a novel multivariate nonparametric multiple change point detection method using classifiers. We construct a classifier log-likelihood ratio that uses class probability predictions to compare different change point configurations. We propose a computationally feasible search method that is particularly well suited for random forests, denoted by changeforest. However, the method can be paired with any classifier that yields class probability predictions, which we illustrate by also using a k-nearest neighbor classifier. We prove that it consistently locates change points in single change point settings when paired with a consistent classifier. Our proposed method changeforest achieves improved empirical performance in an extensive simulation study compared to existing multivariate nonparametric change point detection methods. An efficient implementation of our method is made available for R, Python, and Rust users in the changeforest software package.

Motivation & Objective

  • To develop a nonparametric, multivariate change point detection method that does not assume parametric distributional forms.
  • To address the challenge of detecting multiple change points in high-dimensional, complex data structures where traditional parametric methods fail.
  • To leverage modern machine learning classifiers, especially random forests, for robust and flexible change point estimation.
  • To ensure computational efficiency and scalability for large-scale time series data.
  • To provide a theoretically grounded and empirically validated method with consistent detection properties under mild regularity conditions.

Proposed method

  • The method constructs a classifier log-likelihood ratio using class probability predictions from a trained classifier to compare different change point configurations.
  • It employs a two-step binary segmentation algorithm that requires only a constant number of classifier fits per single change point, enabling linear scaling with the number of change points.
  • The algorithm is designed to be compatible with any classifier that outputs class probabilities, including random forests and k-nearest neighbors.
  • A model selection procedure based on a significance threshold is used to control false positives, though it is not a full permutation test.
  • The method is implemented in the open-source changeforest package for R, Python, and Rust, enabling broad accessibility and scalability.
  • For serially correlated data, the method can be extended by including lagged observations as features to preserve temporal dependence structure.

Experimental results

Research questions

  • RQ1Can a classifier-based nonparametric framework consistently detect a single change point in multivariate time series when paired with a consistent classifier?
  • RQ2How does the performance of the proposed method compare to existing nonparametric change point detection methods across diverse data types and dimensions?
  • RQ3What is the computational efficiency of the method in detecting multiple change points, especially in large-scale or high-dimensional settings?
  • RQ4How robust is the method to varying data distributions, including heavy-tailed or non-Gaussian marginals, and to changes in covariance structure?
  • RQ5Can the method be extended to handle time series with serial correlation by incorporating lagged features without compromising detection accuracy?

Key findings

  • The changeforest algorithm consistently detects a single change point when paired with a classifier that provides consistent class probability estimates, as proven in the population setting.
  • In simulation studies, changeforest outperforms existing nonparametric methods such as KCP, MultiRank, and ECP in terms of detection accuracy and F1-score across all data sets tested.
  • The false positive rate of changeforest is stable across data sets, with rates of 3.36% (iris), 3.76% (glass), and 3.00% (breast cancer), indicating reliable control under homogeneity.
  • The method achieves near-linear computation time scaling with sample size, enabling efficient detection on large data sets.
  • The k-nearest neighbor variant (changekNN) shows higher false positive rates (up to 29.8% on breast cancer data), highlighting the advantage of using random forests in the core algorithm.
  • The changeforest software package is available for R, Python, and Rust, with efficient implementation and open access via GitHub, supporting reproducibility and broad adoption.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.