TL;DR
We finally have complete, synapse-level wiring diagrams for the entire central nervous system of an adult fruit fly—both male and female. When you plug those ~160,000-neuron maps into simulated physics bodies and swap out biological muscles for engineered motors and springs, local reflexes, feeding responses, and top-level flight commands survive intact. However, whole-body coordination—like six-legged walking or staying upright in mid-air—refuses to emerge on its own, revealing a sharp boundary between what lives in static neural wiring and what requires extra machinery.
What Problem Does This Paper Address?
A wiring diagram (or connectome) is not a nervous system. It tells us who talks to whom and how many synapses connect them, but it leaves out exact connection weights, neuromodulation, plasticity, and most electrical gap junctions. Furthermore, animal behavior doesn't stop at the edge of the nerve cord; it loops out through muscles, joints, and the physical world, returning through the senses.
Recent breakthroughs have given us both pieces of this puzzle for Drosophila: complete whole-CNS connectomes (brain plus nerve cord) and MuJoCo-based biomechanical body simulations for walking and flight. While researchers have started connecting brains to bodies, the physical actuators in these simulations have remained fixed. Nobody had held a whole-CNS connectome constant while swapping out the muscles it drives for engineered hardware—a "cyborg" test—or audited the exact flow of physical energy between spikes and joints. Without doing so, we can't tell whether an observed behavior lives in the neural wiring, the mechanics of the body, or clever engineering glue hidden between them.
Methods
The author built a closed-loop co-simulation connecting sensory inputs, spiking whole-CNS connectomes, actuators, and 3D physics bodies (NeuroMechFly v2 for walking, flybody for flight). Neurons run as standard leaky integrate-and-fire (LIF) units where connection strength is proportional to synapse count and neurotransmitter predictions set excitation or inhibition.
What makes this setup distinct is its modular engineering rigor:
- Port-Hamiltonian Actuators: Every actuator sits behind a mathematical "port" pairing neural spikes on one side with physical torque and angular velocity on the other. Because they are formulated as port-Hamiltonian systems—a framework from control theory that explicitly tracks stored and dissipated energy—an energy ledger audits every physics step to machine precision, and swapping biological Hill-type muscles for geared DC motors or series-elastic springs requires changing only a config file. Also novel here is an asynchronous, stretch-activated flight power muscle driven purely by motor neuron spikes.
- Switchable, Labelled Stand-ins: Whenever a behavior failed to emerge naturally (like coordinated walking), the author introduced an explicit engineered controller ("stand-in") that the connectome could command via descending neurons, logging every assumption in a transparent register.
- Five-Tier Null Networks: To prove a behavior actually requires the fly's specific wiring, results are tested against five hierarchy levels of shuffled networks—ranging from scrambling connections across the whole CNS (
R0) down to keeping the exact graph intact while shuffling synapse counts among a neuron's outputs (W).
Datasets
Rather than training machine learning models from scratch, the study evaluates two complete, publicly available Drosophila whole-CNS connectomes alongside pretrained sensory/kinematic components:
- BANC (v888, synapse release v3): An adult female CNS containing 155,858 proofread neurons and 41.8 million synapses.
- MaleCNS (v1.0): An adult male CNS containing 166,700 neurons and 124.2 million synapses.
- Auxiliary Models: Compound eye rendering feeds into
flyvis(a connectome-constrained visual model), odor sensing usesDoORglomerular response profiles, and flight steering incorporates a ported TensorFlow wing-hinge network andflybody's pretrained RL flight policy.
Key Insights and Ideas
- Reflexes live in the wiring; gait lives in the hardware: Resistance reflexes (stiffening a pushed leg joint) survived almost every actuator swap—from pull-only muscle pairs to geared DC motors—and vanished in shuffled null networks. Conversely, walking speed and metabolic cost had nothing to do with neural wiring swaps and strictly tracked actuator bandwidth.
- Commands and rhythms emerge, coordination does not: Out of the box, the connectomes extend the proboscis to sugar, flinch at looming shadows, oscillate individual leg circuits (when run as smooth rate models), and throttle or steer flight. Yet the spiking fly cannot stand upright, coordinate six legs without tipping over, or stabilize itself in free flight—which tips past 45° in under a quarter of a second.
- Engineered stand-ins can create illusions of circuit intelligence: When the author rebuilt a recently published connectome odor-navigation loop, they discovered that navigation didn't come from a neural steering circuit. It came from a hand-written rule slowing legs on the odor-heavy side, scaled by a single mushroom-body valence number. Fixing that scalar to
+1allowed completely scrambled (R0) and lesioned brains to navigate just as well as the intact fly. - Cross-animal wiring differences have teeth: Comparing MaleCNS and BANC revealed specific circuit divergences—most notably in MaleCNS, where gyroscopic haltere sensors drove flight power muscles strong enough to lift the fly without brain input via excitatory two-step nerve cord pathways 4 to 20 times stronger than in BANC.
Key Results
- Actuator Resilience: The joint resistance reflex survived 20 of 20 actuator configurations in MaleCNS (held movement ratios of 0.44–0.88 vs. unpowered joints) and 19 of 20 in BANC.
- Energy & Gait: The actuator energy ledger closed to within $5 \times 10^{-14}$ of throughput (and within 0.19% across the whole MuJoCo body). Under the walking stand-in, fast first-order actuators walked at 11.1–14.0 mm/s (~90 µN positive work/mm), whereas slower Hill muscles and DC motors walked at 4.6–6.4 mm/s at half the energy cost (~44 µN/mm).
- Flight from Spikes: Driven by a constant 12 Hz Poisson spike train, the asynchronous power muscle hovered at 0.99–1.01× body weight, costing 133–166 W/kg of muscle. Commanding the
flybodystand-in via descending neuronDNa04steered flight at ~400°/s. - Rebuilt Odor Loop: Intact BANC flies reached 22.8 of 32 food sources vs. 6.2 for shuffled
R0networks. Turning off the hand-written odor rule dropped intact performance to 1.9 sources (random walk level), while fixing the valence scalar to+1equalized intact (23.5),R0(22.9), and lesioned (24.8) networks.
Limitations and Future Work
The simulations rely on uniform per-synapse weights within each dataset, meaning true physiological synaptic strengths, neuromodulation, plasticity, and most gap junctions are missing—likely explaining why fast flight stabilization and six-leg coordination fail to emerge. Additionally, five null networks per tier yield a 1-in-3 chance of a single test falling outside the null range by luck, requiring cross-tier agreement for strong claims. Other practical constraints include replaying static-fly vision rather than live rendering, static odor plumes, driving a female body model with the male connectome, and separate walking and flight bodies that prevent simulated take-offs. Future synthetic biology and biorobotics efforts can use this clear division of labor—pulling reflexes and high-level commands from the connectome while explicitly engineering and auditing the missing coordination—and experimentally test biological predictions like the haltere-to-power-muscle pathway in live flies.
Summary updated