A generative-discriminative framework for time-series data classification