machine learning in spectroscopy