FLYFARM

Drosophila melanogaster · male CNS v1.0 · CC-BY

Raise a real fly's brain.

165,122 neurons, traced one by one from an actual fruit fly with an electron microscope. Not a character. Not a model of a fly. The wiring of a real one — and it is yours to bring up.

  1. optic lobe
  2. central brain
  3. mushroom body
  4. nerve cord
165,122 neurons, every one at its measured position
A fruit fly in flight, wings spread, its red compound eyes catching the light
0neurons
0connections
0synapses you can change
0smell receptors

your fly, right now

It is walking around in there.

Everything on this screen is read out of a running simulation on a server: where it is, what it is doing, and how much of its brain you have changed. Nothing is animated to look busier than the fly actually is.

  • It sees the arena through 892 hex columns
  • It smells the fruit with 2,635 receptor neurons
  • It walks on DNa01, steers on DNa02, stops on DNp09
FLYFARM01
ZZZyour fly is asleep
waking up
CARVED & DEEPER0
SMELLING0

connect a wallet to meet your fly

press G or B — but only when it is smelling something

the farm

Every fly here was carved by somebody.

A fly is 44,042 numbers and nothing else. Nobody can buy a better one, and nobody can fake one: what you see below is how many presses actually landed on a living Kenyon cell.

loading the farm…

how it learns

Both buttons weaken it. That is how a fly learns.

This is the part everyone gets backwards, us included at first. Learning in a fruit fly is subtraction. Its mushroom body starts out able to drive every response it has, and experience carves away the ones that did not pay off. Nothing is strengthened, because that is not what the measured rule does.

KENYON CELLS
MBON 01 / 02 / 03reward side27,939 synapses
MBON 04 / 10 / 11punishment side14,349 synapses
watch which synapses go quiet

Which side is which was not decided by us. It is read out of the connectome, by comparing how much dopamine each MBON gets from the reward pathway against the punishment pathway. That split lands where the literature puts it — and it is lopsided, so scolding your fly is about half as powerful as praising it. That asymmetry is in the measurement, not in our code.

A halved apple,
        its cut face oxidised amber and beginning to ferment
Fermenting fruit is what actually draws a fruit fly. In the arena it is the only thing that reaches the mushroom body.

And it forgets. Every weight drifts back towards where it started, slowly, forever. A fly you stop raising relaxes back into an ordinary one.

specimen plate

Every part of it is a real part.

A fruit fly photographed from above on a neutral grey surface, wings spread, both red compound eyes visible
  1. 892hex columns behind the eye — a view about 30 pixels across. It cannot read; text is texture to it.
  2. 2,635olfactory receptor neurons, 53 types. This is what reaches the mushroom body — the nose does the learning, not the eye.
  3. 4descending neurons drive the body: DNa02 steers by left/right asymmetry, DNa01 walks, MDN reverses, DNp09 halts.
  4. 44,042Kenyon-cell-to-MBON synapses — the only weights that change, and only ever downward.

stated plainly

Is any of this real?

Extreme macro
        photograph of a live fruit fly feeding on the cut face of a browning apple
This is the animal the wiring was traced from. Everything below separates what came off that animal from what we made up.
REAL
  • The wiring. 165,122 neurons and 10,228,000 connections, every one traced from electron microscope images of one male Drosophila melanogaster. Published by HHMI Janelia FlyEM, the Cambridge Connectomics Group and Google Research, CC-BY. We download it and you can too.
  • The eye. 892 retinotopic hex columns, the ones the dataset assigns.
  • The nose. 2,635 olfactory receptor neurons across 53 receptor types.
  • The legs. DNa02, DNa01, MDN and DNp09 — the descending neurons a fly actually walks with.
  • The learning site and its direction. Kenyon cell to MBON, under dopamine, depression only.
NOT REAL
  • It is not alive and not conscious. A connectome is a map, not a mind. The activity is simulated.
  • The reward. A fly is rewarded by sugar, not by you pressing a button. That swap is a choice a person made.
  • The world and the smells. Ours. We drew the box it walks in.
  • Two constants are ours. The published weights put this network in an avalanche, so we scale them by 0.45; and we let APL and DPM release continuously instead of spiking, because they are non-spiking neurons in the animal. Both are in the repo with the measurements that forced them.
  • Training does not change how it walks — and we can say why. The synapses you carve feed the MBONs. Those MBONs do reach the descending neurons that drive walking: 19 edges, 6 of the 10. But they are worth 0.31% of what those neurons receive — 39.8 mV against 12,846 mV, with vision three orders of magnitude louder. Silence every MBON and the legs barely notice. Measured here: a naive fly, a praised fly and a scolded fly walked identical paths in five of six arenas. So the carving is real and the behaviour is not yet downstream of it.
  • It does not learn one smell from another. An odour recruits 2–40 Kenyon cells here, unstably, where a real mushroom body recruits about 5% of them reliably and decorrelated. Train on one smell and the others are carved just as much. We tried five ways to fix it and measured each one.
  • Nothing touches money. Your fly has no wallet, no keys, no browser.
the actual numbers, live
neurons firing
Kenyon spikes
mean membrane
synapses carved
carving depth
eligible now
brain time lived
praises
scoldings
Three Drosophila
        culture vials with foam stoppers in a white rack on a laboratory bench
Drosophila has been the lab animal of choice for a century. That is why its connectome exists at all, and why it is public.

Connectome © HHMI Janelia FlyEM, the Cambridge Connectomics Group and Google Research, CC-BY. Simulation after Shiu et al. 2024. The engine derives from fruitflydev/flycoinrh (MIT) — they built the first one, and it runs a single fly. Not affiliated with any of them. FLYFARM is on X: @growflyfarm.