Animal groups are generally assumed to be evolutionarily adapted to robustly achieve
particular functions, so there is widespread interest in exploiting collective behaviour for bio-
inspired engineering. However, this requires understanding the precise properties and
function of groups, which remains a challenge. Here, we demonstrate that collective groups
can be described in a thermodynamic framework. We define an appropriate set of state …