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

Video 1. A worm brain controls a fly body and produced realistic fly walking kinematics and coordination patterns. The model also produced neural activity of cells in the worm connectome, shown here overlaid on their locations in a worm body, with a few example traces. The identities of cells in this model are meaningless and their neural activity is not interpretable.