Artificial Intelligence speeds up photodynamics simulations