Predicting the minimum control time of quantum protocols with artificial neural networks