Temporally aligned segmentation and clustering (TASC) framework for behavior time series analysis