Understanding animal collective behavior involves biology, physics, and engineering. Traditional models miss nature's flexibility. This talk introduces an active inference framework, viewing particles as decision-makers. It reveals how beliefs about uncertainty affect dynamics, enhancing information encoding and adaptation, offering insights into cognition's role in group behavior and engineered systems.