A Hidden Markov model for the analysis of cylindrical time series