Change-Point Detection in Time-Series Data by Relative Density-Ratio Estimation paper: https://arxiv.org/abs/1203.0453 Run the following in MATLAB demo The result: