Time Series Segmentation through Automatic Feature Learning