Understanding Electro-communication and Electro-sensing in Weakly Electric Fish using Multi-Agent Deep Reinforcement Learning

Satpreet Harcharan Singh, Sonja Johnson-Yu, Zhouyang Lu, Aaron Walsman, Federico Pedraja, Denis Turcu, Pratyusha Sharma, Naomi Saphra, Nathaniel Sawtell, Kanaka Rajan

TL;DR

This paper introduces a novel multi-agent reinforcement learning (MARL) framework to simulate the complex electro-communication and electro-sensing behaviors of weakly electric fish. By training artificial agents to forage in a virtual environment, the researchers demonstrate that emergent social behaviors, such as "freeloading" and context-dependent signaling, arise naturally from individual fitness optimization, offering a powerful new tool for studying animal communication.

What Problem Does This Paper Address?

Studying the intricate communication and sensing behaviors of weakly electric fish in their natural habitats is incredibly challenging. These fish use electric organ discharges (EODs) for both sensing their environment and interacting socially, but capturing simultaneous recordings from multiple individuals in realistic settings is difficult. This complexity has limited our ability to build computational models that fully explain what these EODs communicate and how these signals shape collective behavior. The authors aim to bridge this gap by creating a controllable, biologically-inspired simulation that allows for detailed analysis of these behaviors.

Methods

The core of this work is a custom-built 2D physics simulator coupled with a multi-agent reinforcement learning (MARL) approach. Artificial agents, modeled as recurrent neural networks (RNNs), are trained to forage for food in a simulated environment. These agents are equipped with biologically inspired constraints for movement, electric field generation, and electrosensory reception.

Key aspects of the MARL framework include:

  • Agent Architecture: RNNs are used to process sensory inputs and generate actions, allowing for memory and temporal dependencies.
  • Biologically Inspired Sensors: Agents receive egocentric observations derived from their own EODs (active sensing), background electric fields (passive sensing), and conspecific EODs (social sensing). The concept of "collective sensing," where agents leverage neighbors' EODs to perceive their environment, is also incorporated.
  • Reward Structure: Agents are rewarded for successful foraging and penalized for aggressive encounters. Crucially, rewards are designed to promote individual fitness, with social behaviors emerging organically rather than being explicitly rewarded.
  • Training Algorithm: Multi-Agent Proximal Policy Optimization (MAPPO) is employed to train the agents.

This framework offers complete access to the internal dynamics of the agents, enabling mechanistic interpretability, targeted ablation studies, and steering experiments.

Datasets

The paper does not explicitly mention training on pre-existing datasets. Instead, it uses a custom-built simulator to generate synthetic data through agent interactions. The evaluation of the trained agents' behavior is compared against existing biological data on EOD interval distributions and social interaction patterns from weakly electric fish.

Key Insights and Ideas

  • Emergent Social Behaviors: The most striking insight is that complex social behaviors like "freeloading" (reducing one's own EOD rate while benefiting from others' sensing) emerge purely from optimizing individual foraging success, without explicit social rewards.
  • Biologically Plausible EOD Statistics: The MARL agents successfully reproduce the heavy-tailed Sequential Pulse Interval (SPI) distributions observed in real electric fish, suggesting the model captures fundamental aspects of their signaling.
  • Context-Dependent Signaling: Agents exhibit environmental context-dependent shifts in EOD interval distributions, mirroring real fish behavior where signaling changes based on factors like food availability and social presence.
  • "Freeloading" as an Adaptive Strategy: The emergence of "freeloading" during collective sensing highlights how agents can exploit the sensory information generated by their conspecifics, demonstrating an efficient strategy in resource-rich or socially dense environments.
  • Social Component of Foraging: A minimal two-fish assay reveals that access to conspecific EODs significantly improves foraging success, and this improvement is modulated by the relative dominance between the agents.

Key Results

  • EOD Interval Distributions: The in silico agents' SPI distributions closely match the heavy-tailed statistics of real fish (Figure 1d).
  • "Freeloading" Behavior: Analysis of social EOD motifs and SPI distributions shows a clear emergence of "freeloading" strategies, where agents reduce their EOD rates when collective sensing is enabled (Figure 2d, 2e).
  • Social Information Enhances Foraging: In a minimal two-fish assay, the presence of a conspecific significantly improved foraging success for agent B, especially when agent A was dominant (Figure 3c, 3d).
  • Contextual EOD Modulation: EOD rates were observed to be higher in competitive (low food) environments compared to non-competitive ones, and collective sensing in non-competitive environments led to reduced EOD rates (Figure 2a).

Limitations and Future Work

Limitations:

  • The current framework is a 2D simulation, which simplifies the complexity of the natural 3D environment.
  • While biologically inspired, the model is still a simplification of the intricate neural and physiological mechanisms of electric fish.

Future Work:

  • Richer Ecological Contexts: Extending the simulation to include more complex scenarios like predators, sex differences, and varied environmental structures.
  • Unsupervised Machine Translation Techniques: Applying these methods to analyze the emergent signal repertoires and align them with experimental datasets.
  • Mechanistic Interpretability: Further delving into the internal dynamics of the RNN agents to understand how specific sensory inputs map to EOD outputs and behaviors.
  • Steering Experiments: Designing experiments to directly test how manipulating agent signals or sensory inputs affects functional outcomes.
  • Generating Testable Hypotheses: Using the model to generate specific, experimentally verifiable hypotheses about electric fish communication in natural and controlled settings.

Summary updated

BibTeX
@inproceedings{singh2025understanding,
  author = {Satpreet Harcharan Singh and Sonja Johnson-Yu and Zhouyang Lu and Aaron Walsman and Federico Pedraja and Denis Turcu and Pratyusha Sharma and Naomi Saphra and Nathaniel Sawtell and Kanaka Rajan},
  title = {{Understanding Electro-communication and Electro-sensing in Weakly Electric Fish using Multi-Agent Deep Reinforcement Learning}},
  booktitle = {AiForAnimalComms @ NeurIPS},
  year = {2025},
  url = {https://openreview.net/forum?id=cE07Ac7UWx},
}
Figure