Larvaworld : A behavioral simulation and analysis platform for Drosophila larva

Read the full article See related articles

Listed in

This article is not in any list yet, why not save it to one of your lists.
Log in to save this article

Abstract

Behavioral modeling supports theory building and evaluation across disciplines. Leveraging advances in motion-tracking and computational tools, we present a virtual laboratory for Drosophila larvae that integrates agent-based modeling with multiscale neural control and supports analysis of both simulated and experimental data. Virtual larvae are implemented as 2D agents capable of realistic locomotion, guided by multimodal sensory input and constrained by a dynamic energy-budget model that balances exploration and exploitation. Each agent is organized as a hierarchical, behavior-based control system comprising three layers: low-level locomotion, optionally incorporating neuromechanical models; mid-level sensory processing; and high-level behavioral adaptation. Neural control models can range from simple linear transfer models to rate-based or spiking neural network models, e.g. to accomodate associative learning. Simulations operate across sub-millisecond neuronal dynamics, sub-second closed-loop behavior, and circadian-scale metabolic regulation. Users can configure both larval models and virtual environments, including sensory landscapes, nutrient sources, and physical arenas. Real-time visualization is integrated into the simulation and analysis pipeline, which also allows for standardized processing of motion-tracking data from real experiments. Distributed as an open-source Python package, the platform includes tutorial experiments to support accessibility, customization, and use in both research and education.

Author summary

Larvaworld was developed to address two key challenges in behavioral neuroscience and computational modeling. First, it responds to the growing call for closer collaboration between experimentalists and modelers by providing a shared platform -a virtual laboratory-where experimental data analysis and behavioral modeling can be seamlessly integrated. By standardizing dataset formats and ensuring identical, unbiased analysis pipelines for experimental and simulated data, Larvaworld facilitates methodological consistency and enables rigorous model evaluation.

Second, it aims to bridge a long-standing gap in theory building and computational modeling at the level of the individual behaving organism. Historically, neuroscience has focused on sub-individual processes, while ecology has concentrated on supra-individual dynamics, resulting in discontinuities among the respective modeling approaches. Recent advances, however, have begun to align these fields, with neuroscience incorporating slower homeostatic processes and ecology integrating faster neurally-mediated mechanisms. Larvaworld boosts this convergence by adopting a nested, multi-timescale modeling approach, thus achieving behavioral regulation within the normative homeostatic constraints as these dynamically unfold during larval development. By combining established modeling paradigms from neuroscience and ecology, it provides a novel and flexible platform for studying behavior at the level of the individual organism, promoting cross-disciplinary insights and advancing computational neuroethology [1].

Article activity feed