Bayesian approach to inverse time-dependent quantum mechanics