Probabilistic structure discovery in time series data