Abstract
Given the output of a data source taking values in a finite alphabet, we wish to detect change-points—times when the statistical properties of the source change. Motivated by ideas of match lengths in information theory, we introduce a novel non-parametric estimator called CRECHE (CRossings Enumeration CHange Estimator). We present simulation evidence that this estimator performs well for both simulated sources and real data, such as concatenated text sources. Notably, we demonstrate the ability to accurately detect the point at which a source transitions from a Markov chain to an IID source with the same stationary distribution. Our estimator requires no assumptions about the form of the source distribution and avoids the need to estimate probabilities. Furthermore, we establish the $\sqrt{n}$-consistency of the CRECHE estimator under a related toy model using fluid limits and martingale arguments.
Introduction
Change-point detection (CPD) is a fundamental task in signal processing and statistics, aimed at identifying the exact moment a data stream's underlying distribution shifts. This has critical applications in fields ranging from sensor monitoring and financial market analysis to bioinformatics.
Existing CPD methods generally fall into two categories: parametric and non-parametric. Parametric methods are powerful but fragile, relying on the assumption that the data follows a specific model (e.g., Gaussian). If the model is misspecified, the detector fails. Non-parametric methods are more robust but often rely on simple metrics like changes in the mean or symbol frequency. A significant gap exists in detecting "structural" changes—where the average values remain identical, but the internal dependencies or "memory" of the source shift. This paper introduces CRECHE to bridge that gap.
The CRECHE Framework
The CRossings Enumeration CHange Estimator (CRECHE) is built upon concepts from information theory, specifically the behavior of repeating substrings within a sequence. It utilizes two primary metrics:
- Match Lengths ($L_i^n$): For every position $i$ in a string of length $n$, $L_i^n$ is the length of the shortest substring starting at $i$ that does not appear elsewhere in the data.
- Match Positions ($T_i^n$): This identifies where in the string a similar pattern actually repeats.
The Intuition of Crossings
The researchers model the data as a directed graph where each position $i$ is linked to its match position $T_i^n$. In a statistically stationary source, these matches should be distributed somewhat uniformly across the sequence. However, if a change-point exists at position $k$, a position $i$ to the left of $k$ is significantly more likely to find its match on the same side of the boundary.
CRECHE counts the "crossings"—instances where a match position $T_i^n$ jumps from the left side of a potential boundary to the right, or vice versa. By normalizing these counts into a function $\psi(j)$, the change-point is revealed as the point $j$ that minimizes this function, typically forming a distinct "V" shape in the resulting plots.
Theoretical Foundations
CRECHE acts as a proxy for entropy. Because it focuses on the length and location of repetitions, it captures the predictability of the source rather than just raw symbol counts. The authors relate their crossing functions to the concept of "conductance" in graph theory, describing how information flows through the sequence network. Crucially, the paper provides a formal proof that the estimator is $\sqrt{n}$-consistent, meaning the estimation error decreases at a predictable rate as the sample size $n$ increases.
Experimental Results
The effectiveness of CRECHE was evaluated using both synthetic and real-world datasets:
- Hidden Structural Shifts: The estimator successfully identified the transition from a Markov chain to an IID (Independent and Identically Distributed) source. This is a particularly difficult task because both sources were designed to have the exact same stationary distribution; traditional frequency-based methods would find them indistinguishable.
- Natural Language Processing: The algorithm was tested on a concatenated version of Goethe’s Faust in German and English. Even after "sanitizing" the German text to match English symbol frequencies, CRECHE accurately located the language boundary.
- Authorship Attribution: The method successfully partitioned excerpts from Charlotte Brontë’s Jane Eyre and Charles Darwin’s On the Origin of Species. While the "dip" in the $\psi(j)$ function was shallower than in the language test—reflecting the greater similarity between two English authors—the detection remained accurate.
Conclusion and Future Work
CRECHE represents a significant advancement in non-parametric CPD, offering a "universal" approach that requires no manual tuning or prior knowledge of the data distribution. It is uniquely sensitive to changes in the structural memory of a source, making it robust across independent, Markov, and mixing sources.
Future research directions include extending the method from finite alphabets to real-valued data (such as temperature or audio signals) by using Euclidean distance for matchings. Additionally, while the current work focuses on "offline" detection of a single change-point, the authors aim to adapt the framework for "online" streaming data and multiple change-point scenarios.
Summary updated