Infinite Hidden Markov Model (iHMM) for datamicroscopes