Machine Learning Promoting Extreme Simplification of Spectroscopy Equipment