Clustering Multivariate Time Series Using Hidden Markov Models

Thumbnail Image
Ghassem Pour, S
Girosi, F
Maeder, Anthony
Journal Title
Journal ISSN
Volume Title
Copyright 2014 by the authors
Rights Holder
The authors
In this paper we describe an algorithm for clustering multivariate time series with variables taking both categorical and continuous values. Time series of this type are frequent in health care, where they represent the health trajectories of individuals. The problem is challenging because categorical variables make it difficult to define a meaningful distance between trajectories. We propose an approach based on Hidden Markov Models (HMMs), where we first map each trajectory into an HMM, then define a suitable distance between HMMs and finally proceed to cluster the HMMs with a method based on a distance matrix. We test our approach on a simulated, but realistic, data set of 1,255 trajectories of individuals of age 45 and over, on a synthetic validation set with known clustering structure, and on a smaller set of 268 trajectories extracted from the longitudinal Health and Retirement Survey. The proposed method can be implemented quite simply using standard packages in R and Matlab and may be a good candidate for solving the difficult problem of clustering multivariate time series with categorical variables using tools that do not require advanced statistic knowledge, and therefore are accessible to a wide range of researchers.
This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution license (
health trajectory, HMM, clustering
Ghassempour, S., Girosi, F., & Maeder, A. (2014). Clustering Multivariate Time Series Using Hidden Markov Models. International Journal of Environmental Research and Public Health, 11(3), 2741–2763.