Latent Variable Models With Applications To Spectral Data Analysis