Robust parameter estimation in dynamical systems via Statistical Learning with an application to epidemiological models