Duckophila

A fruit fly's brain, driving a microduck — the open-source robot duck from Pollen Robotics / Hugging Face.

The complete FlyWire connectome of an adult Drosophila — 138,639 neurons, 54 million synapses, as the leaky integrate-and-fire model of Shiu et al. (2024) — runs in closed loop with a microduck in its MuJoCo twin, which runs the robot's real daemons. The duck's depth sensor becomes the fly's looming detectors, its camera the fly's motion detectors (each placed by FlyWire's visual column map), and identified descending neurons move it.

Nobody wired these in, and all need the real wiring: rewired with the same neurons and weights, the duck never startles, its head does not turn, and it follows nothing. Against controls, DNp15 is the strongest rotation-following neuron of 383 candidates, while the escape is only partly specific to the looming detectors and barely lateralised — the numbers. The brain is not trained, tuned or edited; the hand-written parts are listed:

The fly's (unchanged)Ours (and labelled so)
Every neuron, synapse and signDepth sensor → looming detector input
Which neurons answer looming, which answer rotationCamera → optic flow → motion detector input
That the giant fibre firesThe shape of the flinch
Which way DNp15 and DNa02 say to turnGains and smoothing; the body following the head
That LC10a → DNa02 turns toward a small target below the eye's equatorThe target detector and its input to LC10a
Kenyon cells → output neurons → behaviour; which dopamine neurons reach which outputLearning: cue codes, the plasticity rule, valence, an antennal-lobe lesion

Ready for a real duck: the brain runs on a laptop and reaches the microduck over the WebRTC session it already publishes — camera, depth, state and commands in one session, each frame dated on the robot's own clock. Tested against the twin's real media daemon; the duck itself is on its way.

Credit: the FlyWire consortium (Dorkenwald et al., Schlegel et al., Matsliah et al., 2024), the brain model of Shiu et al. (2024), and Pollen Robotics' microduck. Video: left, the simulator re-rendered from the recorded pose; right, the recorded spikes of every neuron at its real position in the brain.