Machine-learning protocol