Probabilistic unsupervised classification for large-scale analysis of spectral imaging data