Ultrafast pulses from X-ray lasers reveal how atoms move at femtosecond timescales, but measuring the properties of the pulses is challenging. A new approach trains neural networks to analyze the pulses. Starting from low-resolution measurements, the neural n…