A group of scientists studying the San Fermín festival in Pamplona, Spain, believe there’s a way to predict the motions of a large crowd.