Dissecting unsupervised learning through hidden Markov modelling in electrophysiological data