Applying AI to study neural circuit mechanisms of social homeostasis in individuals and supraorganismal groups