Structured Prediction in Time Series Data