By using machine learning and neural networks, a research team has devised and evaluated a superior collimated light source for single-chip spectroscopy and test.