Segment-based SVMs for Time Series Analysis