Artificial intelligence for online characterization of ultrashort X-ray free-electron laser pulses - Scientific Reports