Time series classification based on temporal features