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.
- It startles. A ball thrown at its face fires the fly's giant fibre — the escape neuron — in 20 of 20 throws. A hand approaching at petting speed never does (that speed threshold is ours, not the fly's).
- It follows the world turning. In a rotating striped drum, the fly's head neuron DNp15 turns the duck's head with the stripes (gain 0.23), and the walking body follows the head.
- It follows a target. A small bright thing on the floor drives the fly's small-object detectors (LC10a), and the fly's steering neuron DNa02 turns the walking duck toward it: led 90° left and right, it kept up in 4 of 8 runs, and in two more trailed just out of view. Not courtship — FlyWire is a female brain — but the object pathway courtship is built on.
- It learns what it was petted for — with a lot of help. Petted while it sees one of two targets, it walks after that one afterwards (5 of 6 runs) and never after the other. But in this model the fly's learning centre has no code of its own — any input fires the same two-thirds of its Kenyon cells — so the cue codes and the learning rule are ours, and labelled so.
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 sign | Depth sensor → looming detector input |
| Which neurons answer looming, which answer rotation | Camera → optic flow → motion detector input |
| That the giant fibre fires | The shape of the flinch |
| Which way DNp15 and DNa02 say to turn | Gains and smoothing; the body following the head |
| That LC10a → DNa02 turns toward a small target below the eye's equator | The target detector and its input to LC10a |
| Kenyon cells → output neurons → behaviour; which dopamine neurons reach which output | Learning: 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.