Using artificial intelligence to understand collective behavior

A machine learning model can reproduce the swarming behaviour of locusts.