Change Point Detection by Cross-Entropy Maximization

Aurélien Serre, Didier Chételat, Andrea LodiarXiv 2020

TL;DR

This paper introduces a novel approach to unsupervised change point detection by maximizing the cross-entropy between consecutive segments, offering a more expressive alternative to traditional sum-of-costs methods. Their proposed dynamic programming algorithm, OTAWA, efficiently finds optimal segmentations and demonstrates improved performance on challenging real-world datasets.

What Problem Does This Paper Address?

Change point detection is crucial for identifying shifts in statistical properties within time series data, with applications spanning manufacturing, speech processing, and climate science. The standard approach, often framed as minimizing a penalized sum of segment-wise costs, works well but can be limiting. Specifically, it assumes segments are statistically independent, which is often not true in practice. This paper addresses this limitation by proposing a method that considers the relationship between consecutive segments, aiming for a more nuanced understanding of data evolution.

Methods

The core innovation lies in reframing the change point detection problem. Instead of minimizing costs within segments, the authors propose maximizing the cross-entropy between adjacent segments. This essentially means finding points where the statistical distribution of one segment is most dissimilar to the next.

To solve this, they introduce the Optimal Two Adjacent Windows Algorithm (OTAWA), a dynamic programming approach. This algorithm efficiently finds the optimal segmentation by iteratively determining the best placement of change points. The problem is formulated as:

$min \sum_{i=1}^{m} nce(X_{\tau_{i-1}:\tau_i}, X_{\tau_i:\tau_{i+1}}) + \beta |\mathcal{T}|$

where $nce$ is the negative empirical cross-entropy (a measure of discrepancy), $X_{\tau_{i-1}:\tau_i}$ and $X_{\tau_i:\tau_{i+1}}$ are consecutive segments, $|\mathcal{T}|$ is the number of change points, and $\beta$ is a penalty hyperparameter. The hyperparameter $\beta$ is selected using the Bayesian Information Criterion (BIC).

Datasets

The paper evaluates their method on two real-world datasets:

  • Human Activities Dataset: This dataset contains accelerometer and gyroscope measurements from a device worn by a person performing different activities. The goal is to segment the time series into distinct activities.
  • Industrial Equipment Dataset: This dataset comprises measurements from two sensors on an industrial piece of equipment, with the task of identifying maintenance events.

Key Insights and Ideas

  • Moving Beyond Segment Independence: The most significant insight is the shift from assuming segment independence to explicitly modeling the relationship between segments. Maximizing cross-entropy directly captures how one segment's statistical properties transition into another's.
  • Cross-Entropy as a Discrepancy Measure: Using cross-entropy as a cost function is a clever way to quantify the "difference" between two distributions. When maximized, it highlights points where the underlying data-generating process has likely changed.
  • Dynamic Programming for Pairwise Costs: The development of the OTAWA algorithm demonstrates that dynamic programming, a standard tool for sum-of-costs problems, can be effectively adapted to handle pairwise costs, making more complex models tractable.
  • BIC for Unsupervised Hyperparameter Tuning: Employing the BIC criterion for selecting the penalty hyperparameter $\beta$ provides a principled way to balance model complexity (number of change points) with goodness-of-fit in an unsupervised setting.

Key Results

The paper demonstrates that OTAWA outperforms three state-of-the-art methods (Optimal Partitioning, Window Sliding, and Binary Segmentation) on both the Human Activities and Industrial Equipment datasets across various metrics.

  • Human Activities Dataset: OTAWA achieved the best average performance on most metrics, including F1-SCORE, PRECISION, MEANDISTANCE, and HAUSDORFF, with only RANDINDEX being slightly lower than some competitors.
  • Industrial Equipment Dataset: OTAWA outperformed the other methods on all metrics except ANNOTATIONERROR.

While OTAWA was noted as being the slowest among the implemented algorithms, the authors emphasize that its complexity is manageable for practical applications, especially with optimizations for constrained segmentations.

Limitations and Future Work

  • Computational Complexity: The authors acknowledge that while OTAWA is an exact algorithm, its worst-case complexity can be high (quartic in the number of time steps). They propose constraints (e.g., minimum distance between change points) to mitigate this, which significantly improve practical performance.
  • Generalization to Arbitrary Costs: The current approach is primarily demonstrated with costs derived from negative log-likelihoods. A promising future direction is to generalize the OTAWA framework to arbitrary cost functions, including those derived from parametric and non-parametric hypothesis testing. This would further broaden the applicability of their method.

Summary updated

Abstract

Many offline unsupervised change point detection algorithms rely on minimizing a penalized sum of segment-wise costs. We extend this framework by proposing to minimize a sum of discrepancies between segments. In particular, we propose to select the change points so as to maximize the cross-entropy between successive segments, balanced by a penalty for introducing new change points. We propose a dynamic programming algorithm to solve this problem and analyze its complexity. Experiments on two challenging datasets demonstrate the advantages of our method compared to three state-of-the-art approaches.
BibTeX
@misc{serre2020change,
  author = {Aurélien Serre and Didier Chételat and Andrea Lodi},
  title = {{Change Point Detection by Cross-Entropy Maximization}},
  year = {2020},
  eprint = {2009.01358},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2009.01358},
}
Figure