Text this: Neutron spectroscopy with TENIS using an artificial neural network