Machine-learning based procedure