Abstract
Animal intelligence is not purely a product of abstract computation in the brain, but emerges from dynamic interactions between the nervous system and the body. New connectome datasets and musculoskeletal models now enable integrated, closed-loop simulations of the neural and biomechanical systems of the fruit fly Drosophila, an ideal model organism to investigate embodied intelligence. However, many biological parameters of the nervous system and the body, as well as how they interface, remain unknown. To fill such gaps, researchers are turning to deep reinforcement learning (DRL), a data-driven optimization framework, to create virtual animals that imitate the behavior of real animals. Here, we provide a cautionary tale about the interpretation of such models. We constructed a virtual chimera of two phylogenetically distant species: a connectome of the C. elegans nematode worm and a biomechanical model of the fly body. The worm connectome receives sensory information from the fly body, and an artificial neural network is trained with DRL to map worm motor neuron activations to the fly’s leg actuators. The resulting digital sphinx produces highly realistic fly walking—yet it is biologically meaningless. This exercise teaches us nothing about either animal and exposes a core peril of connectome-body models: behavioral fidelity is achievable without biological fidelity, making such models easy to overinterpret. Done carefully, virtual animals can be powerful partners to biological experiments, but only if their components and interfaces are grounded in biology.
Introduction
In the last few years, researchers in neuroscience and AI have been working towards developing computational models of brains capable of controlling realistic animal bodies in virtual environments (e.g., [1, 2, 3, 4, 5, 6]). These virtual animal models have the potential to enable in silico experiments at scale, generating new theories and hypotheses about embodied intelligence to be tested in the lab. They could also serve as community repositories of accumulated knowledge about the nervous system and the body. Motivated by the potential utility of such models, the field of virtual animals is growing rapidly, including both academic and industry research efforts. Some have referred to these models as brain “emulations” or “uploads,” attracting substantial interest from scientists and the public (see https://x.com/alexwg/status/2030217301929132323). But such models of virtual animals require cautious interpretation.
Among animals that walk, the integration of brain wiring and body models is perhaps closest to fruition in Drosophila, due to the recent completion of multiple complete wiring diagrams (known as connectomes) of the fly nervous system. The fly is the only animal with legs for which nearly comprehensive connectomes of its brain and nerve cord exist [7, 8]. There is also a wealth of knowledge about the neural basis of many fly behaviors, along with established tools for experimentally recording and manipulating genetically identified cell types in the fly nervous system. Two open-source biomechanical models of the whole fly body [9, 3] have been implemented in the physics engine MuJoCo [10]. Despite this progress, closed-loop integration of biomechanical and neural models remains far from straightforward. Key parameters governing how they interface remain incompletely characterized, including how motor neuron commands result in forces exerted by the body and how sensory neurons detect and transduce internal and external stimuli.
Where interfaces between brains and body models are missing or only partially characterized, one approach is to train an artificial neural network (ANN) to approximate these interfaces with deep reinforcement learning (DRL). In building virtual animal models, a motor policy is commonly learned by DRL so that the integrated, closed-loop virtual body successfully mimics the detailed kinematics of real animal behavior. The implicit logic is, if it looks and acts like a cat, it is a decent model of a cat.
Additional realism is added when the motor policy network is constrained by a connectome dataset. However, many biophysical parameters for individual neurons and synapses remain unmeasured. To approximate these, researchers have used neurophysiological recordings, optogenetic perturbation experiments, and other biological observations as additional constraints [11, 12, 13, 14]. These approaches have demonstrated success at predicting some key aspects of neural dynamics, such as sensory receptive fields or motor rhythms, which will be essential for developing meaningful closed-loop models based on connectome datasets.
Methods
Here we develop a virtual chimera with the brain of a worm and the body of a fly. We used the adult hermaphrodite C. elegans nematode connectome dataset [15, 16, 5], including the identities of its 302 neurons and their synapses (Fig. 1A). We created a graded activation model of the network, consistent with the fact that most C. elegans neurons do not fire action potentials. Following the model in [5], synaptic weights were based on the number of synapses from the connectome, signed by the neurotransmitter identity of each presynaptic neuron. To simulate the physics of fly walking, we used a MuJoCo biomechanical model of the fly body [3]. The fly body model had 42 actuators for its 6 legs that were driven by torque commands; proprioceptive feedback from 148 sensors reported leg and body angles, along with their derivatives.

The digital sphinx model had the brain of a worm and the body of a fly, and it is able to reproduce physically realistic walking with DRL training (see walking animation in Video 1).
A, Connectivity matrix from the adult hermaphrodite C. elegans connectome. B, A schematic of how the connectome simulation interfaces with the fly body model with proprioceptors and actuators. C, Example traces of leg joint kinematics produced by the model (white) trained to imitate target trajectories from real flies (gray dashed). D, Example traces of neurons in the simulated connectome model. The traces were highly cyclic because the connectome was driven by proprioceptive sensory signals in closed loop during cyclic stepping. The identities of the neurons are not biologically meaningful in this model.
To interface brain and body, we routed proprioceptive signals (normalized and filtered through a tanh nonlinearity) from the fly body to the worm’s 82 sensory neurons by random projection, without training any parameters at the sensory interface (Fig. 1B). We did not discriminate among different types of sensory neurons (e.g., proprioceptive, chemosensory, tactile, etc.). To actuate the body model, we then used DRL to train a variational encoder-decoder network with a 16-dimensional latent space to imitate the 3D joint kinematic trajectories of real walking flies [17, 18]. This motor decoder maps worm motor neuron activity into torque commands for the fly’s legs. The policy network was trained in closed loop using PPO as implemented by MIMIC-MJX [19].
Results
The digital sphinx model, with a worm brain and a fly body, produced highly realistic walking, including joint angle trajectories and leg coordination patterns (Fig. 1C, Video 1). Yet the model is implausible and scientifically meaningless. Worms move by wiggling; flies walk with articulated legs. The fly brain is 500X larger than the nematode’s, and fly legs alone are controlled by more motor neurons than exist in the entire worm nervous system. The model produced neural activity (Fig. 1D), but it is uninterpretable. The model also fails to qualify as brain “emulation,” which would require that the model preserves the biological meaning of its components. The fact that a worm connectome can be trained to control fly walking reveals nothing about either worms or flies.
Discussion
These results carry two lessons. First, users and readers beware—DRL is a capable optimization algorithm. The motion imitation approach is able to fit expressive ANNs to complex target data, even when the imposed constraints are incomplete or outright wrong. Second, even when brain and body models are individually accurate, a biologically unrealistic interface between them renders the whole model meaningless. In our digital sphinx, the worm connectome functions simply as a recurrent neural network (RNN) with rich enough dynamics to support learning of realistic locomotor trajectories. Its role in the movement policy could be fulfilled equally well by a randomly connected RNN, akin to reservoir computing [20], since all the learning happens in the black-box ANN motor decoder. This exercise is an example of how a functioning interface is not necessarily a meaningful one. Here, we did not train synaptic weights or cellular parameters of the connectome simulation; training them would only deepen this problem.
On a positive note, we are optimistic that a virtual animal that captures the coordinated function of neural and biomechanical systems can indeed be achieved, but only through careful design of its modules and interfaces. First, neuromechanical models must be well grounded in biological knowledge. Most critically, the inputs and outputs of the connectome model must be accurately connected to the muscles and sensors in the body model. This mapping has been partially achieved by combining the connectome datasets with other imaging modalities, but much more work is needed to accurately identify the thousands of sensory and motor neurons in the fly connectomes. The body models also lack biological realism in their musculature, sensory neurons, and skeletal mechanics; ongoing efforts are gradually improving these body models.
Second, neuromechanical models should be developed in close collaboration with biological experiments. Models can be powerful even without perfectly realistic components, provided they generate testable predictions about feasible experiments. Looking further ahead, swapping brain and body models of related species may one day yield real insights into how their brains and bodies diverged through evolution. However, far more model development and experimental validation is needed before we can learn anything from such a digital sphinx.
Data availability
All code to run the simulations, results from computational experiments, and scripts to reproduce the analyses are available on GitHub: https://github.com/Brunton-Lab/DigitalSphinx2026.
Acknowledgements
We thank Eiman Azim, Carl Bergstrom, Astra Bryant, Michael Dickinson, and Talmo Pereira for comments on the manuscript. We thank Sarah Pugliese for assistance with parsing the C. elegans connectome. This work was funded by NIH grant U01NS136507 to B.W.B., R01NS14543 to J.C.T. and B.W.B., and the Richard & Joan Komen University Chair to B.W.B. J.C.T is a New York Stem Cell Foundation–Robertson Investigator.
Additional information
Author Contributions
B.W.B. and E.T.T.A. conceived of the study and designed the analyses. E.T.T.A. and J.L.H. developed and implemented the model. B.W.B. and J.C.T. wrote the manuscript.
Funding
HHS | National Institutes of Health (NIH) (U01NS136507)
Bingni W Brunton
HHS | National Institutes of Health (NIH) (R01NS145438)
John C Tuthill
Bingni W Brunton
Additional files
References
- [1]Deep neuroethology of a virtual rodentarXiv https://doi.org/10.48550/arXiv.1911.09451Google Scholar
- [2]A virtual rodent predicts the structure of neural activity across behavioursNature 632:594–602https://doi.org/10.1038/s41586-024-07633-4PubMedGoogle Scholar
- [3]Whole-body physics simulation of fruit fly locomotionNature :1–9https://doi.org/10.1038/s41586-025-09029-4PubMedGoogle Scholar
- [4]Neuromechfly v2: simulating embodied sensorimotor control in adult DrosophilaNature Methods 21:2353–2362https://doi.org/10.1038/s41592-024-02497-yPubMedGoogle Scholar
- [5]An integrative data-driven model simulating C. elegans brain, body and environment interactionsNature Computational Science 4:978–990https://doi.org/10.1038/s43588-024-00738-wPubMedGoogle Scholar
- [6]Artificial embodied circuits uncover neural architectures of vertebrate visuomotor behaviorsScience Robotics 10:eadv4408https://doi.org/10.1126/scirobotics.adv4408PubMedGoogle Scholar
- [7]Distributed control circuits across a brain-and-cord connectomebioRxiv https://doi.org/10.1101/2025.07.31.667571Google Scholar
- [8]Sexual dimorphism in the complete connectome of the drosophila male central nervous systembioRxiv https://doi.org/10.1101/2025.10.09.680999PubMedGoogle Scholar
- [9]NeuroMechFly, a neuromechanical model of adult Drosophila melanogasterNature Methods 19:620–627https://doi.org/10.1038/s41592-022-01466-7PubMedGoogle Scholar
- [10]Mujoco: A physics engine for model-based controlIn: 2012 IEEE/RSJ International Conference on Intelligent Robots and Systems pp. 5026–5033https://doi.org/10.1109/iros.2012.6386109Google Scholar
- [11]Mapping model units to visual neurons reveals population code for social be-haviourNature 629:1100–1108https://doi.org/10.1038/s41586-024-07451-8PubMedGoogle Scholar
- [12]Connectome-constrained networks predict neural activity across the fly visual systemNature 634:1132–1140https://doi.org/10.1038/s41586-024-07939-3PubMedGoogle Scholar
- [13]From synapses to dynamics: Obtaining function from structure in a connectome constrained model of the head direction circuitbioRxiv https://doi.org/10.1101/2025.05.26.655406Google Scholar
- [14]Connectome simulations identify a central pattern generator circuit for fly walkingbioRxiv https://doi.org/10.1101/2025.09.12.675944PubMedGoogle Scholar
- [15]OpenWorm: an open-science approach to modeling Caenorhabditis elegansFrontiers in computational neuroscience 8:137https://doi.org/10.3389/fncom.2014.00137PubMedGoogle Scholar
- [16]Whole-animal connectomes of both Caenorhabditis elegans sexesNature 571:63–71https://doi.org/10.1038/s41586-019-1352-7PubMedGoogle Scholar
- [17]Anipose: A toolkit for robust markerless 3d pose estimationCell Reports https://doi.org/10.1016/j.celrep.2021.109730PubMedGoogle Scholar
- [18]Miniature linear and split-belt tread-mills reveal mechanisms of adaptive motor control in walking DrosophilaCurrent Biology 34:4368–4381https://doi.org/10.1016/j.cub.2024.08.006PubMedGoogle Scholar
- [19]MIMIC-MJX: Neuromechanical emulation of animal behaviorarXiv https://doi.org/10.48550/arXiv.2511.20532Google Scholar
- [20]The “echo state” approach to analysing and training recurrent neural networks-with an erratum noteBonn, Germany: German national research center for information technology :13Google Scholar
- Miniature linear and split-belt treadmills reveal mechanisms of adaptive motor control in walking DrosophilaDryad Digital Repository https://doi.org/10.5061/dryad.mpg4f4r73
- Data for An Integrative Data-driven Model Simulating C. elegans Brain, Body and Environment InteractionsZenodo https://doi.org/10.5281/zenodo.13951773
- Whole-body physics simulation of fruit fly locomotionGitHub ID TuragaLab/flybodyhttps://github.com/TuragaLab/flybody
Article and author information
Author information
Version history
- Preprint posted:
- Sent for peer review:
- Reviewed Preprint version 1:
Cite all versions
You can cite all versions using the DOI https://doi.org/10.7554/eLife.111516. This DOI represents all versions, and will always resolve to the latest one.
Copyright
© 2026, Brunton et al.
This article is distributed under the terms of the Creative Commons Attribution License, which permits unrestricted use and redistribution provided that the original author and source are credited.
Metrics
- views
- 0
- downloads
- 0
- citations
- 0
Views, downloads and citations are aggregated across all versions of this paper published by eLife.