  Building ethical machines may involve bestowing upon them the emotional
capacity to self-evaluate and repent on their actions. While reparative
measures, such as apologies, are often considered as possible strategic
interactions, the explicit evolution of the emotion of guilt as a behavioural
phenotype is not yet well understood. Here, we study the co-evolution of social
and non-social guilt of homogeneous or heterogeneous populations, including
well-mixed, lattice and scale-free networks. Socially aware guilt comes at a
cost, as it requires agents to make demanding efforts to observe and understand
the internal state and behaviour of others, while non-social guilt only
requires the awareness of the agents' own state and hence incurs no social
cost. Those choosing to be non-social are however more sensitive to
exploitation by other agents due to their social unawareness. Resorting to
methods from evolutionary game theory, we study analytically, and through
extensive numerical and agent-based simulations, whether and how such social
and non-social guilt can evolve and deploy, depending on the underlying
structure of the populations, or systems, of agents. The results show that, in
both lattice and scale-free networks, emotional guilt prone strategies are
dominant for a larger range of the guilt and social costs incurred, compared to
the well-mixed population setting, leading therefore to significantly higher
levels of cooperation for a wider range of the costs. In structured population
settings, both social and non-social guilt can evolve and deploy through
clustering with emotional prone strategies, allowing them to be protected from
exploiters, especially in case of non-social (less costly) strategies. Overall,
our findings provide important insights into the design and engineering of
self-organised and distributed cooperative multi-agent systems.
