Generative Models for Analysis of Multivariate Time-Series