Dynamical symmetry breaking through AI: The dimer self-trapping transition