How it works
How a fruit fly brain simulation works: the FlyWire connectome, neuron models and bodies
Every digital fly project has the same basic loop. Something goes in, a model of the brain turns it into activity, and something comes out. What matters is which parts of that loop come from the real fly and which parts a person added.
The sense → model → act loop
- MeasuredTaken from the real animal. In most projects this is only the wiring: which neurons connect, and through how many synapses.
- ModelledA mathematical rule chosen by scientists, such as how a neuron adds up its inputs and when it fires. It is a simplification of real biology.
- Hand-madeChosen by the project author: which neurons receive the input, which neurons are read out, and what counts as an action.
- TrainedLearned by a machine learning method, for example a readout layer or a controller trained to reach a goal.
- ScriptedOrdinary program code or animation that does not depend on the simulated neurons.
A project can use a real connectome and still get most of its visible behaviour from hand-made or scripted parts. That is why we grade each project separately. See Is it real? Whether the measured wiring itself makes a difference is a separate question, tested by scrambling it: Does fly wiring help? compares 31 such studies.
What a connectome is
A connectome is a map of the connections in a nervous system: which neurons exist, which neurons connect to which, and how many synapses join them. Fly connectomes are traced from electron microscope images of one animal, cut into thousands of very thin slices. Computers and human proofreaders follow each neuron through the images.
A connectome is a wiring diagram, not a working brain. It does not say directly how strong each connection is, how neurons change with learning, or how chemicals such as hormones change activity. A simulation has to add those parts, usually with simple rules.
Map or brain? Run with such a model, the map still does something specific to its wiring. In our own looming test (5 Oct 2026) a shadow on one eye made the real map's turning neurons fire on the far side and turned a simulated fly away in 4 of 4 runs; scrambled maps with the same number of connections per neuron stayed silent (0 of 3). One model, open loop, our hand-made mapping, a constant external walking drive, 1 s; not a real fly.
What the whole-brain models add, and what they leave out
Most projects reuse the leaky integrate-and-fire (LIF) model of Shiu et al. (Nature, 2024). In that model, and in most copies of it:
- Connection strength comes from synapse counts. Each connection's weight is its FlyWire synapse count multiplied by one free number. The authors chose that number by hand so that sugar-sensing neurons firing at 100 Hz drive the proboscis motor neuron MN9 to about 80% of its maximum.
- Excitation or inhibition comes from predicted transmitters. The sign of each connection comes from a machine-learning prediction of the neurotransmitter, not from a measurement of each synapse.
- Many parts of biology are missing. In the authors' words, the model "does not account for gap junctions, non-spiking neurons, internal state or long-range neuropeptides, and assumes that the basal firing of each neuron is zero". Neuromodulation and learning (plasticity) are not in the base model. What the map leaves out, below, puts one number and one source on each missing part.
- It is slow on a normal computer. The paper reports about 5 minutes per simulated second per CPU thread for the Brian2 version.
Source: Shiu et al. 2024, Methods and Discussion (full text on PubMed Central).
What the map leaves out
People ask whether a fly brain simulation is "a brain or just a map". Here is what the map-based model leaves out, part by part, each with one number and one source we read on 9 Oct 2026.
Short answer: The model is one fly's wiring map: 138,639 neurons and 15,091,983 connections, run with one simple neuron rule. It leaves out electrical synapses (gap junctions), neuropeptides, learning, the different behaviour of different kinds of neurons (including neurons that do not spike), the differences between flies and over a fly's life, and the nerve cord and body. So it can show what the wiring alone does, not everything a fly's brain does.
- 138,639 neurons
- 15,091,983 connections (neuron pairs)
- 54,492,922 synapses
- 1 hand-set strength (0.275 mV per synapse)
| Part of biology | In the model? | One number | Source |
|---|---|---|---|
| Electrical synapses (gap junctions)direct electrical links between neurons | No | 0 electrical links 8 innexin (gap-junction) genes in the fruit fly genome, 4 of them detected in brain neurons; the wiring map has only chemical synapses, so the model has 0 electrical links | Frontiers in Neural Circuits 2025 (innexins); Dorkenwald et al. 2024 (FlyWire: chemical synapses only) read directly, 2026-10-09 |
| Neuromodulators (dopamine, serotonin, octopamine)slow signals that change how other neurons respond | Partly | 8,316 neurons 8,316 neurons in the model are predicted to use them (dopamine 5,905, serotonin 2,201, octopamine 210); the model wires them in as ordinary fast excitatory connections (dopamine 5,897 excitatory / 3 inhibitory, serotonin 2,127 / 9, octopamine 192 / 1), so their slow modulating effect is not modelled | our count from the model files (report of 9 Oct 2026); Shiu et al. 2024, Methods our data, 2026-10-09 |
| Neuropeptideschemical messengers that spread beyond the synapse | No | more than 50 more than 50 neuropeptide precursors (and their receptors) are known in Drosophila; none are in the model | Nässel and Zandawala 2021 (review); Shiu et al. 2024 read directly, 2026-10-09 |
| Learning (plasticity)connections that strengthen or weaken with experience | No | count × 0.275 mV every connection's strength is fixed before the run: synapse count x 0.275 mV (one hand-set value for all 15,091,983 connections); nothing changes during or between runs | the model's code, model.py at 91bdd1e7 our data, 2026-10-09 |
| Different kinds of neuronsevery neuron follows the same simple rule, and neurons that do not spike are not modelled | No | 1 rule 1 rule (leaky integrate-and-fire, same parameters) for all 138,639 neurons; non-spiking neurons, neuron shape and receptor differences are left out | Shiu et al. 2024 read directly, 2026-10-09 |
| Which chemical each neuron sendspredicted from images, not measured | Partly | 94% per neuron the transmitter of each neuron is a prediction from electron-microscope images: 94% correct per neuron (87% per synapse, 91% for known cell types) in the published test; this decides whether a connection excites or inhibits in the model | Eckstein et al. 2024 (Cell) read directly, 2026-10-09 |
| One adult female fly at one momentno differences between flies, sexes or ages | No | 53% 53% of the connections seen in a second fly's brain (hemibrain) were also found in FlyWire's fly; connections of more than ten synapses were found again more than 90% of the time | Schlegel et al. 2024 (Nature) read directly, 2026-10-09 |
| The nerve cord and bodythe brain model has no spinal-cord equivalent, muscles or legs | No | about 20,000 neurons about 20,000 ventral nerve cord neurons (next to about 140,000 in the brain) are not in the brain model; our body test drove FlyGym's own walking controller, not this wiring | Bates et al. 2026 (Nature, BANC) read directly, 2026-10-09 |
Quotes behind each number: the neuropeptide count is a review's statement; the innexin page answered a bot check, so its full text was read through NCBI's E-utilities. Nature pages answered a bot check to scripts, so the PubMed Central copies were read. Method: report of 9 Oct 2026.
Datasets compared: FlyWire connectome, MaleCNS, BANC and others
Different teams have mapped different flies and different parts of the nervous system. Always read a neuron count together with its dataset, version and scope. Never add a brain count to a nerve-cord count from a different animal.
| Dataset | Animal and scope | Neurons (release) | Connections | How to get it | Data licence | Main paper |
|---|---|---|---|---|---|---|
| FlyWire FAFB (Female Adult Fly Brain) Entry flywire-fafb |
Adult female; whole brain including both optic lobes; no nerve cord | 139,255 in public release v783 (Oct 2023 snapshot). 127,400 proofread neurons in v630, used by the Shiu et al. model | 3,732,460 neuron pairs at 5 or more synapses (Codex default); "50 million" synapses in the headline | Codex (Google sign-in for apps and downloads); CAVEclient; the Shiu model repository ships v630 and v783 files (about 87 MB and 101 MB) | CC BY-NC 4.0 Non-commercial only. "FlyWire's public release data is made available under license CC BY-NC 4.0" (flywire.ai/guidelines). Cite Dorkenwald et al. 2024 and Schlegel et al. 2024. |
Dorkenwald et al., Nature 2024 (doi); Schlegel et al., Nature 2024 (doi) |
| MaleCNS (Male Central Nervous System) Entry malecns |
Adult male; whole central nervous system: brain, optic lobes and nerve cord, with the neck intact | 166,700 in v1.0 (released 8 Jun 2026). 166,691 in the v0.9 preprint. 165,122 fully traced neurons in v1.0, the subset many simulators load | 6,242,118 at 5 or more synapses (Codex); "125 million synaptic connections" (Google Research) | neuPrint (account token); neuprint-python; bulk files from male-cns.janelia.org; Codex | CC BY 4.0 "The Male CNS dataset is licensed under CC-BY." Commercial use allowed with attribution. |
Berg et al., Cell 2026, published 3 Sep 2026 (doi) |
| BANC (Brain And Nerve Cord) Entry banc |
Adult female; brain and nerve cord in one animal; lamina and ocellar ganglion missing | 158,262 in v888 (Codex). 155,916 in the Nature paper (analyses on v626). The project README says "approximately 188,000"; its scope is not stated (unresolved) | 3,037,361 at 3 or more synapses (Codex v888) | Codex; Harvard Dataverse deposit | CC BY 4.0 for the Dataverse data The analysis repository has no licence file, although its README says CC BY 4.0. |
Bates, Phelps, Kim, Yang et al., Nature 2026 (doi) |
| MANC (Male Adult Nerve Cord) Entry manc |
Adult male; nerve cord and neck connective only | 23,665 in v1.2.1 (Codex) | 5,305,638 at 1 or more synapse (Codex) | neuPrint; public Google bucket; Codex | CC BY (version not stated) "The MANC is licensed under CC-BY." (Janelia) |
Takemura et al., eLife 2024; Marin et al.; Cheong et al. |
| Hemibrain Entry hemibrain |
Adult female; part of the central brain (most of the right half), no optic lobes, no nerve cord | About 25,000 in v1.2.1 | About 20 million synapses (widely quoted; not re-checked) | neuPrint; neuroglancer | CC BY (version not stated) "Hemibrain is licensed under CC-BY." (Janelia) |
Scheffer et al., eLife 2020 (doi) |
| FANC (Female Adult Nerve Cord) Entry fanc |
Adult female; nerve cord | About 14,600 cell bodies in the paper (search summary only, not verified) | About 45 million synapses (search summary only) | Latest reconstruction restricted to authorised users; electron-microscope images public via BossDB | No open data licence found Access follows the FANC community rules. The tool code is GPL-3.0. |
Azevedo, Lesser, Phelps, Mark et al., Nature 2024 (doi) |
| Larval L1 brain Entry larva-l1 |
First-instar female larva, 6 hours old; brain only | 3,016 (480 input neurons and 2,536 brain neurons) | About 548,000 synaptic sites | Paper supplementary files; CATMAID hosted by Virtual Fly Brain; code on Zenodo | Article CC BY 4.0 No separate data licence found; treat with care. |
Winding et al., Science 2023 (doi) |
Codex also lists MAOL v1.1 (male right optic lobe, 52,445 neurons). It comes from the same male fly as MaleCNS, so its neurons are part of MaleCNS, not extra.
Sources: Codex, FlyWire guidelines, male-cns.janelia.org, BANC project, Virtual Fly Brain neuron counts, Winding et al. 2023, Google Research blog.
Why the neuron counts differ
News stories quote many different neuron counts. Each one belongs to a specific dataset, version and scope:
| Number | What it actually is |
|---|---|
| "more than 125,000" | Rounded headline for the FlyWire brain in the Shiu et al. 2024 abstract |
| 127,400 | Proofread neurons in FlyWire v630; all are simulated in the Shiu et al. model |
| 127,978 | FlyWire count in the bioRxiv preprint, before more proofreading |
| 138,639 | Neurons in the v783 input file of the Shiu model repository; what most "FlyWire v783" simulations run |
| 139,255 | FlyWire public release v783, whole brain including optic lobes |
| "140K" | Rounded figure on flywire.ai |
| 165,122 | MaleCNS v1.0 neurons with status "Traced" (fully proofread), out of 211,577 annotated bodies. Counted by a community project from the official files; not re-counted by us |
| 166,691 | MaleCNS preprint (v0.9) |
| 166,700 | MaleCNS v1.0 in Codex |
| "over 166,000" | Rounded headline on the Google Research blog |
Still unexplained: 616 neurons. The Shiu repository's v783 file has 138,639 neurons, while the v783 release has 139,255. We have not found out why. One possible reason is that neurons without connections in the exported table were dropped, but this is not verified.
What you have to download, and how big it is
On 6 Oct 2026 we read the size, checksum, licence and access rule of every file in 8 releases (403 files) from each host's own storage metadata, without downloading the data. To run the Shiu et al. model you need two files, 104.1 MB; a full release is gigabytes to hundreds of gigabytes. How to get the two files: Build your own.
| Release | Files | Size | Checksum | Licence | Access |
|---|---|---|---|---|---|
| Our beginner path: the Shiu et al. repository copies at commit 91bdd1e7 | 2 | 104.1 MB Connectivity_783.parquet 100,804,642 B; Completeness_783.csv 3,327,347 B | None published; our sha256: efeb23fb… and bbb847a4… | FlyWire data (the stricter reading: CC BY-NC 4.0); the repository's MIT licence covers the code, not the data. | Open |
| FlyWire FAFB v783, the official files (Zenodo) | 5 | 10.6 GB every synapse 9.5 GB; proofread connections 852,022,274 B | MD5 per file (Zenodo) | Zenodo record: CC BY 4.0; flywire.ai guidelines: CC BY-NC 4.0. Conflict, unresolved: we follow the stricter, non-commercial reading. | Open |
| FlyWire Codex download page | – | not checked | – | Zenodo record: CC BY 4.0; flywire.ai guidelines: CC BY-NC 4.0. Conflict, unresolved: we follow the stricter, non-commercial reading. | Sign-in; the files listed there were not read |
| FlyWire neuron annotations (Schlegel et al., commit a83b2776) | 1 | 31.7 MB 31,720,298 B | None published; our sha256: b214970b… | Not stated in the repository; the FlyWire data behind it: as above. | Open |
| MaleCNS v1.0 flat connectome (brain and nerve cord of a male fly) | 11 | 31.3 GB wiring only (traced): 508,025,642 B | MD5 + CRC32C (Google Cloud Storage) | CC BY 4.0 | Open |
| BANC v888 (brain and nerve cord, Harvard Dataverse, version 3.0) | 379 | 536.1 GB 227.8 GB open (102 files); 308.3 GB in 277 influence-matrix chunks on request | MD5 per file (Dataverse) | CC BY 4.0 | 102 open, 277 on request |
| hemibrain v1.2 compact connection summary | 1 | 45.9 MB 45,872,577 B; the page's newest flat file is v1.2, neuPrint serves v1.2.1 | MD5 + CRC32C (storage header) | CC BY 4.0 | Open |
| MANC v1.2.1 (male nerve cord) | – | Not stated: the bucket was not listed (our request limit was reached) | Not checked | CC BY 4.0 | Open (public bucket) |
| FANC (female nerve cord) | – | No public bulk file | – | No open licence found (community access rules) | Community rules |
| Larva L1 brain (Winding et al. 2023, Science) | – | Not stated: the supplement page answered with a robot check, the mirror timed out | None published | Article CC BY 4.0; no separate data licence found | Open |
The FlyWire licence question is open. The Zenodo record of FlyWire v783 says CC BY 4.0 (reuse with credit, also commercially). FlyWire's own guidelines page says its public release data is CC BY-NC 4.0 (credit, and non-commercial use only). We have not resolved the conflict, so we follow the stricter reading: non-commercial, with credit, until FlyWire says otherwise. This is not legal advice. MaleCNS, BANC, hemibrain and MANC state CC BY 4.0.
Neuron models and engines
The neuron model decides how activity moves through the wiring. Most projects use the Shiu et al. LIF model or a copy of it on faster hardware. Numbers below come from the code and from the authors; we did not re-run them.
| Model or engine | What it is | Data | Key facts from the code | Grade |
|---|---|---|---|---|
| Shiu et al. Drosophila_brain_model | Whole-brain LIF model in Brian2 | FlyWire v630 (default); v783 files included | Threshold −45 mV, reset −52 mV, membrane time constant 20 ms, one weight scale of 0.275 mV per synapse. Python 3.10 and Brian2 2.5.1. Last commit 14 Sep 2024 | A |
| drosophila-brain-mlx | The same model on Apple MLX (Mac GPU) | FlyWire v630; MaleCNS v1.0 | With real wiring MN9 fires at 67.30 Hz; with shuffled wiring at 0 Hz. About 0.29 s per simulated second on an M4 Pro, against 2.07 s for Brian2 (author's figures) | A |
| flyvis | Trained rate model of the fly's motion-vision pathway | FlyEM FIB-25 and FIB-19 optic-lobe columns (not FlyWire) | Synapse counts and signs fixed from the connectome; time constants and some scales trained on optic flow | A |
| Eon fly-brain | The Shiu model on six engines, with speed comparisons | FlyWire v783 | Engines agree closely (16,418 to 17,429 spikes for the same 1 s sugar test). Brain only; no body code | n/a |
| fasterfly | GPU kernels that simulate many flies at once | MaleCNS v1.0 | 51,159 fly-steps per second for 64 flies on an RTX 3090 (author). Own simplified constants; no licence file | n/a |
| dotFly | C# and .NET version of the Shiu LIF model | FlyWire v630 and v783; MaleCNS v1.0 | Matches Brian2 spike for spike in its tests; its room demo is mostly a hand-written decoder | C |
| Loihi 2 fly brain (Sandia) | The Shiu model on 12 neuromorphic Loihi 2 chips | FlyWire | Compared with Brian2 only; about 3 to 350 times faster in the preprint. No code link found | U |
Bodies: NeuroMechFly (FlyGym) and flybody
A brain model alone does not move. To walk, groom or fly, a project needs a simulated body with legs, joints and physics, and a way to connect neurons to muscles.
| Body | What it gives you | Versions and requirements (from the code) | Licence |
|---|---|---|---|
| NeuroMechFly (FlyGym), EPFL | A MuJoCo fly body with vision, smell, leg adhesion and joint sensing. No brain: you write the controller. | v2.1.0 (24 Jun 2026) is a full rewrite; code written for FlyGym 1.x will not run without changes (the old API moved to flygym-gymnasium). Python 3.12 to 3.14. Optional NVIDIA GPU extra | Apache-2.0 |
| flybody, Turaga lab and DeepMind | A detailed MuJoCo body with walking and flight policies trained by reinforcement learning. These are ordinary neural networks, not the connectome. | Last release v0.1.0 (16 May 2024); last default-branch commit 30 Jul 2025. The TensorFlow extra pins Python 3.10 in practice | Apache-2.0 |
Every embodied connectome demo we inspected needs extra machinery between brain and body: pre-trained or pre-programmed walking controllers, fitted rhythm generators, or trained gains. None of the brain datasets alone makes a fly walk.
Measured: who does the walking when a brain drives a body
On 2 Oct 2026 we measured this split ourselves. We connected the Shiu et al. whole-brain model to FlyGym's walking fly, stimulated the brain's forward-walking neurons (P9) and turned its descending neurons' rates into FlyGym's two-number walking drive with a rule we wrote. Each stage of the loop above did a different part of the work:
The result: the fly walked 13.9 mm in 1 s with the real brain, 14.1 mm with a scrambled brain and 14.3 mm with no brain. The legs, rhythm and balance were FlyGym's; the brain added turning commands. Chart, controls and limits: Who does the walking?; build it: Add a body.
Measured: who does the turning when a looming shadow appears
On 5 Oct 2026 we added a sense. We showed a looming shadow to one eye of the same brain model (every LC4 and LPLC2 neuron of that eye, the fly's looming detectors), held the walking drive constant ourselves, and let the brain's turning neurons steer. This time the brain's wiring decided which side's turning neurons fired; the walking was still FlyGym's, and the rule from rates to legs, which turns that side into a direction, was still ours:
The result: the real map turned the fly away in 4 of 4 runs, scrambled maps in 0 of 3 (their drives were the same as no brain). Small n, much quieter scrambled brains, and a direction that rests on our mapping (our caption, fixed before the test: "fly67's claim; the direction in real flies was not verified by us.") Chart and caveats: We ran the map; build it: Add a sense: looming.
14 Oct, updated 17, 18, 19 and 21 Oct: the looming turn in degrees, at each input strength
Our own test · pre-registered before the first body run (14 Oct 2026, 09:28 UTC) · simulated body (FlyGym) driven through our own mapping · one model · a simulation, not an animal
On 8 Oct the brain model's turn command appeared from about 30 spikes per second per looming neuron. On 14 Oct we walked the remaining brain drives of that series in the simulated body, so every drive that differs from the no-brain floor now has a body run. The sentences were chosen by rules fixed in advance; the two eyes read differently, so there is one sentence per eye.
Left eye (pre-registered sentence): In the body, the fly turned away from 30 spikes/s per looming neuron upward on this side, the strength at which the brain's turn command appeared; the turn was about 11 deg at 30 and about 37 deg at 80 (our mapping turns the brain's rates into steering).
Right eye (pre-registered sentence): At 30 spikes/s the turn was borderline: the fly turned away in 1 of 2 runs on this side; from 40 upward it turned away in every run.
This borderline rests on one run: seed 0 at 30 spikes/s turned 9.18° beyond the no-brain floor, 0.8° under our 10° rule (seed 2 at 30 turned 16.8°).
These body runs turn the brain's firing rates into steering through our own hand-made mapping, so they show the brain result in degrees; they are not a separate test of the wiring. We ran scrambled brains at 30 and 80 spikes/s, not at 20, 40 or 60.
17 Oct 2026: scrambled brains at 30 spikes/s (pre-registered sentences; brain only, because their steering drives equal the no-brain drive):
17 Oct: at 30 spikes/s, the weakest tested input at which the real brain's turn command appeared, we also ran 2 scrambled brains per side (each neuron keeps its number of connections; one 1-second trial each, with the same trial seed as the real-wiring body runs).
- Left eye:
On the left side, neither scrambled brain sent a turn command, and their steering signals were identical to having no brain, so in the body they walk like the no-brain fly (the real wiring turned it about 11 deg).
- Right eye:
On the right side, neither scrambled brain sent a turn command, and their steering signals were identical to having no brain, so in the body they walk like the no-brain fly (the real wiring turned it about 17 deg).
The scrambled brains were not matched for overall activity: they fired 48% (left) and 44% (right) as many spikes as the real brain at this strength. Most of those spikes were the stimulated input neurons themselves; outside the input, the scrambled brains fired about 1% as many spikes as the real brain.
18 Oct: As at 80 spikes/s, none of the scrambled brains we ran at 30 spikes/s sent a turn command, including those strengthened to about the real brain's activity outside the input.
(how we strengthened them, and the limits)
19 Oct, in the body: 19 Oct: walked in the body, the one matched scrambled brain with a small steering signal changed the fly's heading by about 1.4 degrees away from the shadow compared with no brain input, under our 10-degree turn rule; the real brain, with the same input, turned it away by about 16.8 degrees (one run each).
This body run turns the brain's firing rates into steering through our own hand-made mapping; it is not a separate test of the wiring.
(the run and the limits)
21 Oct, a second input draw: With a second input draw, the matched scrambled brains again sent no turn command (2 input draws on the same 4 scrambled brains).
With this input the real brain's turn signal on the right side was 6 spikes/s against our threshold of 5, so the real brain itself sits close to our turn rule at this stimulus strength.
In the body: Walked in the body, the matched scrambled brain with a small steering signal changed the fly's heading by about 1.3 degrees away from the shadow compared with no brain input, under our 10-degree turn rule; the real brain, with the same input, turned it away by about 9.2 degrees (one run each).
With this input the real brain's own turn was also under our 10-degree rule.
This body run turns the brain's firing rates into steering through our own hand-made mapping; it is not a separate test of the wiring.
(the sentences, the chart and the limits)
- seed 2 (line joins its points)
- seed 0
- same as no brain
- scrambled brain, 30 spikes/s (17 Oct)
- scrambled, gain-matched, 30 spikes/s, right eye (walked 19 Oct)
- the same brain, second input draw (walked 21 Oct)
- 10° rule
Horizontal axis: input in spikes per second for every looming neuron of one eye. Vertical axis: degrees turned away beyond the no-brain floor. Each point is one body run: how far the simulated fly turned away from the shadow after it appeared, minus the turn of the same body with no brain input (the floor). Below the dashed line our rule reads "did not turn away". Hollow diamonds at 30 spikes/s: the 17 Oct scrambled brains, drawn at the no-brain value because their drives equal the no-brain drive. Filled triangle (right eye only): the one strengthened scrambled brain with a small steering signal, walked on 19 Oct (1.39°, below the rule; the real brain at the same input 16.78°). Hollow triangle: the same brain with a second input draw, walked on 21 Oct (1.30°, below the rule; the real brain with that input is the seed 0 point at 30, 9.18°, also below the rule). The turn did not grow at every step: seed 2 at 30, 40, 60 and 80 spikes/s turned 11.1, 27.2, 26.9, 37.2° (left eye) and 16.8, 33.8, 62.2, 55.4° (right eye).
Every point in the charts (16 body readings, 4 scrambled brains and 1 strengthened scrambled brain walked on 19 Oct and, with a second input draw, on 21 Oct)
| Shadow on | Input (spikes/s) | Brain and seed | Turn beyond the floor | Turned away (10° rule) | Body run |
|---|---|---|---|---|---|
| left eye | 10 | real, seed 2 | 0° | no | same as no brain |
| left eye | 20 | real, seed 2 | 1.67° | no | walked 14 Oct 2026 |
| left eye | 20 | real, seed 0 | 0° | no | same as no brain |
| left eye | 30 | real, seed 2 | 11.13° | yes | walked 8 Oct 2026 |
| left eye | 30 | real, seed 0 | 12.68° | yes | walked 14 Oct 2026 |
| left eye | 30 | scrambled (shuffle 4), trial seed 2 | 0° | no | same as no brain (brain trial 17 Oct 2026) |
| left eye | 30 | scrambled (shuffle 5), trial seed 2 | 0° | no | same as no brain (brain trial 17 Oct 2026) |
| left eye | 40 | real, seed 2 | 27.18° | yes | walked 14 Oct 2026 |
| left eye | 60 | real, seed 2 | 26.88° | yes | walked 14 Oct 2026 |
| left eye | 80 | real, seed 2 | 37.18° | yes | walked 8 Oct 2026 |
| right eye | 10 | real, seed 2 | 0° | no | same as no brain |
| right eye | 20 | real, seed 2 | 0° | no | same as no brain |
| right eye | 20 | real, seed 0 | 2.52° | no | walked 14 Oct 2026 |
| right eye | 30 | real, seed 2 | 16.78° | yes | walked 8 Oct 2026 |
| right eye | 30 | real, seed 0 | 9.18° | no | walked 14 Oct 2026 |
| right eye | 30 | scrambled (shuffle 4), trial seed 2 | 0° | no | same as no brain (brain trial 17 Oct 2026) |
| right eye | 30 | scrambled (shuffle 5), trial seed 2 | 0° | no | same as no brain (brain trial 17 Oct 2026) |
| right eye | 40 | real, seed 2 | 33.78° | yes | walked 14 Oct 2026 |
| right eye | 60 | real, seed 2 | 62.15° | yes | walked 14 Oct 2026 |
| right eye | 80 | real, seed 2 | 55.42° | yes | walked 8 Oct 2026 |
| right eye | 30 | scrambled, gain-matched (shuffle 4, connections ×2.75), trial seed 2 | 1.39° | no | walked 19 Oct 2026 |
| right eye | 30 | scrambled, gain-matched (shuffle 4, connections ×2.75), trial seed 0 (second input draw) | 1.30° | no | walked 21 Oct 2026 |
Limits and every run: Is it real? · report of 14 Oct 2026 · report of 17 Oct 2026
Where in the map the turn runs
On 6 Oct 2026 we looked inside the brain model (no body). The looming detectors have no direct synapses onto the turning neurons DNa02: their signal reaches the far-side DNa02 through relay neurons, the strongest being PVLP141 on the eye's side. They do synapse directly onto the giant fibre, the escape neuron, of their own side. We then scrambled only the inside of the map, keeping every connection onto the output neurons. In the words we fixed in advance: "Scrambling only the inside of the map kept about -9% of the turn command and 69% of the escape signal." (−9% means none: the far-side command was absent in all 6 trials.) Silencing the giant fibre left the turn command alone, as the map predicts: it has no giant fibre → DNa02 connections. Scrambled maps turned up to the real map's activity still gave no turn command. These are counts and spike rates in one model, not a moving fly. Chart and caveats: Where in the wiring is the turn?
13 Oct, updated 15 Oct: the relays against an activity-matched control
Our own test · pre-registered before the first trial (13 Oct 2026, 10:18 UTC; the 5 added right-side controls on 15 Oct 2026, 09:38 UTC) · brain only · one model · not a real fly
The pre-registered sentence, chosen by the rule fixed in advance:
The two sides disagree: on one side silencing the relays lowered the turn neuron's rate more than matched activity elsewhere, on the other it did not. We do not draw a conclusion.
15 Oct 2026 (pre-registered update line): 15 Oct: we ran 5 more matched controls on the right side, 10 in all. Every one of them left the turn neuron's rate higher than silencing the relays did (controls 38-47 Hz, relays 25.7 Hz), so the right-side reading did not change.
Our rule: Our rule compares the relays with the lowest matched control, so extra controls can only make the relays look less special, never more.
The 15 Oct trials and checks
23 Oct 2026 (pre-registered before the trials; brain only): 23 Oct: our earlier controls matched each relay neuron's activity, but not how strongly it connects to the turn neuron. This time the control is a group of other active neurons that excite the turn neuron, chosen so that together they fire about as much as the active relays and send about as many synapses to the turn neuron (both within 20%).
Left eye: in 1 of 5 matched groups the turn neuron's rate fell as low as, or lower than, with the relays silenced (matched groups 13-31 Hz, relays 16.0 Hz, nothing silenced 21-25 Hz). By our pre-registered rule, this test does not show that the relays matter more than other inputs with the same combined connection strength and activity.
Right eye: among the 9 other active neurons that excite the turn neuron, no group came within 20% of the relays on both combined activity and synapse count (we had set 5 groups as the minimum in advance), so this control could not be built for this eye.
- Our rule:
Our rule compares the relays with the lowest matched group, so extra groups can only make the relays look less special, never more.
Left eye: outside the stimulated looming neurons, the brain fired 13,581-14,040 spikes with a matched group silenced, against 13,901-14,760 with the relays silenced and 14,502-15,172 with nothing silenced.
- Limits:
One model, brain only, one stimulus strength (80 spikes/s), 5 matched groups on the left eye only, each run once; the 5 groups all share the same three most active neurons, so they are not independent draws; not a real fly.
In the body, 14 Oct 2026 (descriptive, not a reading of the relay question above; shadow at 80 spikes/s; our own mapping):
- Left eye:
With PVLP141 silenced, the fly still turned away, by about 24 deg instead of 37 deg (one run per side; our mapping).
- Left eye:
With all 21-23 two-step relay neurons silenced, the fly still turned away, by about 37 deg instead of 37 deg (one run per side; our mapping).
Unrounded: 37.3° vs 37.2°. - Right eye:
With PVLP141 silenced, the fly still turned away, by about 34 deg instead of 55 deg (one run per side; our mapping).
- Right eye:
With all 21-23 two-step relay neurons silenced, the fly still turned away, by about 40 deg instead of 55 deg (one run per side; our mapping).
These body runs turn the brain's firing rates into steering through our own hand-made mapping, so they show the brain result in degrees; they are not a separate test of the wiring. We ran scrambled brains at 30 and 80 spikes/s, not at 20, 40 or 60.
What is new. On 9 Oct we silenced the relay neurons between the looming-sensitive cells and the turn neuron (DNa02) and compared that with silencing randomly picked active neurons. That random set removed 2-6 times as much activity as the relays (2.3 times for a shadow on the left eye, 5.8 times on the right), so the two were not like for like. This time each silenced relay neuron got its own partner outside the relays that fired about as often in the same trial (within 20% of its spike count), and the control silences those partners instead. Both arms of the comparison now remove about the same amount of activity.
Blue strip: the turn neuron's rate with nothing silenced (5 seeds). Dashed box and open circles: the matched-control draws (5 on the left; 10 on the right, the 5 added on 15 Oct with a thicker outline). Bottom row (23 Oct): the matched-group draws, shaded circles, left eye only; on the right eye no matched group could be built. Filled dots: the relay arms, one per seed; the bar is their mean. By the pre-registered rule a relay value below both the normal strip and every matched draw reads "fell more than matched activity"; below the strip but inside the matched draws it reads "fell, like matched activity". Left eye: E2 16.0 Hz, "fell, like matched activity". Right eye: E2 25.7 Hz, "fell more than matched activity". PVLP141 alone reads the same as E2 on each side.
| Shadow on | Nothing silenced (5 seeds) | Matched control (5 draws left, 10 right) | Relays E2 (3 seeds) | PVLP141 alone (3 seeds) | Matched group (23 Oct, 5 draws) |
|---|---|---|---|---|---|
| Left eye (far side: right DNa02) | 24, 25, 25, 25, 21 band 21-25 | 19, 24, 19, 34, 13 band 13-34 | 15, 14, 19: mean 16.0 (about 67% of normal) fell, like matched activity | 19, 17, 17: mean 17.7 (about 74%) fell, like matched activity | 22, 22, 13, 23, 31 band 13-31; 1 of 5 at or below the relays |
| Right eye (far side: left DNa02) | 43, 44, 41, 40, 49 band 40-49 | 40, 41, 41, 43, 40, 43, 47, 38, 47, 46 band 38-47; the last 5 added 15 Oct | 26, 25, 26: mean 25.7 (about 59% of normal) fell more than matched activity | 26, 31, 24: mean 27.0 (about 62%) fell more than matched activity | could not be built 0 groups among 9 neurons |
- Small samples. 5 seeds per side; 5 matched draws on the left and 10 on the right; the relay arms have 3 seeds each. The left side's matched draws spread widely (13-34 Hz: three below the normal strip, one above it).
- Some matched partners touch the turn neuron. The matching rule excludes the two-step relays, not every input to the turn neuron: 1 of 5 left-side draws and 2 of 10 right-side draws (none of the 5 added on 15 Oct) include a neuron that synapses directly onto the far-side DNa02.
- E2 is mostly PVLP141. Of the activity removed by silencing the excitatory relays (E2), PVLP141 accounts for 102 of 149 spikes (left) and 103 of 121 (right). E2 and PVLP141 alone read the same on each side, so this test says little about the other relay neurons.
- What it measures. A simulated firing rate in one brain-only model (Shiu et al. LIF on FlyWire v783) with a looming input we set; not fly behaviour and not a real fly. Percentages are a value divided by the mean with nothing silenced.
The 9 Oct line stays, with a note. On 9 Oct the pre-registered summary was: Silencing other active neurons also changed the turn command, so this relay result is not specific to the relay neurons.
Note added 13 Oct 2026: the random control behind that line removed 2-6 times as much activity as the relays (2.3 times left, 5.8 times right); the activity-matched test above gives the reading on each side. Trials, deviations and code: report of 13 Oct 2026; the 9 Oct design: report of 9 Oct 2026.
Silencing the relays, read by firing rate (8 and 9 Oct)
On 8 Oct 2026 we silenced the top relay, PVLP141, and then all two-step relays of the eye's side (21 or 23 cells), in the same brain model at the full input, and read the result by the left/right contrast. On 9 Oct 2026 a second pre-registered test read the far-side turn neuron's firing rate instead, silenced the excitatory and the inhibitory relays separately, and added a control: the same number of randomly picked active neurons. Paths of three or more steps have not been mapped yet.
The honest headline: Silencing the relays lowered the turn command to about 60-70% of normal, but silencing random active neurons also moved it, so this is not yet specific to the relays.
In the pre-registered words: Silencing other active neurons also changed the turn command, so this relay result is not specific to the relay neurons.
- The normal range is narrow. For a shadow on the left eye it is only 1 Hz wide (24–25 Hz, three runs with nothing silenced); on the right it is 41–44 Hz. One random-neuron run at 26 Hz, just above the left range, is what triggered the summary above.
- The random control is one draw per eye (17 and 20 active neurons, one run each). More draws and more runs with nothing silenced are needed before any relay is called specific.
- What 8 Oct said, and how it reads now. On 8 Oct we read the same kind of test by the left/right contrast:
With one relay neuron (PVLP141) silenced, the turn command stayed (by the left/right contrast (8 Oct)).
With all 21-23 relay neurons between the looming neurons and the turn neuron silenced, the turn command stayed (by the left/right contrast (8 Oct)).
Read by firing rate instead:Read by firing rate, our 8 Oct test with all 21 (left eye) / 23 (right eye) relay neurons silenced raised it to about 105% of normal for a shadow on the left eye, and lowered it to about 65% of normal on the right (1 run per eye).
(the open marks below).
Silencing other active neurons also changed the turn command, so this relay result is not specific to the relay neurons.
Turn command = how often the turn neuron on the far side (DNa02) fires during the 1-second shadow. Normal range = our three runs per eye with nothing silenced.
- With one relay neuron (PVLP141) silenced, the turn command fell to about 70% (left eye) / 65% (right eye) of normal (3 runs per eye).
- With the 17 (left eye) / 20 (right eye) relay neurons that excite the turn neuron silenced, the turn command fell to about 65% (left eye) / 60% (right eye) of normal (3 runs per eye).
- With the 4 (left eye) / 3 (right eye) relay neurons that inhibit the turn neuron silenced, the turn command changed, but not clearly beyond its normal range for a shadow on the left eye, and rose to about 125% of normal on the right (3 runs per eye).
- With 17 (left eye) / 20 (right eye) other active neurons, picked at random, silenced, the turn command rose to about 105% of normal for a shadow on the left eye, and stayed within its normal range on the right (1 run per eye).
- Read by firing rate, our 8 Oct test with all 21 (left eye) / 23 (right eye) relay neurons silenced raised it to about 105% of normal for a shadow on the left eye, and lowered it to about 65% of normal on the right (1 run per eye).
One model (Shiu et al. LIF on FlyWire v783), brain only; the input is a rate we set for every LC4/LPLC2 of one eye, not a measured response to a real shadow; 'silenced' means the neuron's output synapses were removed; the normal range comes from 3 runs per eye; not a real fly.
Not shown in the chart: the excitatory relays without PVLP141 (16 left / 19 right, one run per eye: 30 and 41 Hz), descriptive only and never a reading. Pre-registered 2026-10-09T09:36:50Z, before the first trial; every run and the deviations: report of 9 Oct 2026.
Numbers behind the chart (30 brain runs)
| Trial file | Shadow on | Silenced | Seed | DNa02 far / near (Hz) | Reading (eye) | Giant fibre mean | MDN mean | Whole-brain spikes | Active neurons |
|---|---|---|---|---|---|---|---|---|---|
| LOOML-real-0-f.json | left eye | nothing | 0 | 24 / 0 | normal range 24–25 | 116.5 | 2.25 | 27,467 | 685 |
| LOOML-real-1-f.json | left eye | nothing | 1 | 25 / 0 | normal range 24–25 | 111.5 | 0 | 27,187 | 682 |
| LOOML-real-2-f.json | left eye | nothing | 2 | 25 / 0 | normal range 24–25 | 116.5 | 1.25 | 28,153 | 745 |
| LOOML-real-0-P-f.json | left eye | PVLP141 (1) | 0 | 19 / 0 | fell, ~70% | 116 | 0 | 27,413 | 747 |
| LOOML-real-1-P-f.json | left eye | PVLP141 (1) | 1 | 17 / 0 | fell, ~70% | 115 | 0 | 27,346 | 740 |
| LOOML-real-2-P-f.json | left eye | PVLP141 (1) | 2 | 17 / 0 | fell, ~70% | 113.5 | 0 | 27,438 | 709 |
| LOOML-real-0-E2-f.json | left eye | excitatory two-step relays (17) | 0 | 15 / 0 | fell, ~65% | 115.5 | 0 | 26,973 | 699 |
| LOOML-real-1-E2-f.json | left eye | excitatory two-step relays (17) | 1 | 14 / 0 | fell, ~65% | 111.5 | 0 | 26,575 | 653 |
| LOOML-real-2-E2-f.json | left eye | excitatory two-step relays (17) | 2 | 19 / 0 | fell, ~65% | 114.5 | 0 | 27,741 | 769 |
| LOOML-real-0-I2-f.json | left eye | inhibitory two-step relays (4) | 0 | 28 / 0 | unclear, ~110% | 117.5 | 0 | 27,563 | 675 |
| LOOML-real-1-I2-f.json | left eye | inhibitory two-step relays (4) | 1 | 23 / 0 | unclear, ~110% | 115 | 1.25 | 27,446 | 725 |
| LOOML-real-2-I2-f.json | left eye | inhibitory two-step relays (4) | 2 | 32 / 0 | unclear, ~110% | 115 | 0.5 | 28,196 | 732 |
| LOOML-real-2-RND-f.json | left eye | random active neurons (17) | 2 | 26 / 0 | rose, ~105% | 113.5 | 0.5 | 27,711 | 660 |
| LOOML-real-2-R2-f.json | left eye | all two-step relays (8 Oct) (21) | 2 | 26 / 0 | rose, ~105% | 116.5 | 0 | 27,991 | 772 |
| LOOML-real-2-E2mP-f.json | left eye | excitatory relays without PVLP141 (descriptive only) (16) | 2 | 30 / 0 | descriptive only | 116 | 1 | 28,244 | 737 |
| LOOMR-real-0-f.json | right eye | nothing | 0 | 43 / 0 | normal range 41–44 | 120 | 2.75 | 27,446 | 659 |
| LOOMR-real-1-f.json | right eye | nothing | 1 | 44 / 0 | normal range 41–44 | 122.5 | 3.75 | 27,252 | 675 |
| LOOMR-real-2-f.json | right eye | nothing | 2 | 41 / 0 | normal range 41–44 | 116.5 | 5 | 27,693 | 677 |
| LOOMR-real-0-P-f.json | right eye | PVLP141 (1) | 0 | 26 / 0 | fell, ~65% | 121 | 0 | 26,631 | 635 |
| LOOMR-real-1-P-f.json | right eye | PVLP141 (1) | 1 | 31 / 0 | fell, ~65% | 117.5 | 0 | 26,572 | 655 |
| LOOMR-real-2-P-f.json | right eye | PVLP141 (1) | 2 | 24 / 0 | fell, ~65% | 121.5 | 0 | 27,008 | 652 |
| LOOMR-real-0-E2-f.json | right eye | excitatory two-step relays (20) | 0 | 26 / 0 | fell, ~60% | 120 | 0 | 26,739 | 655 |
| LOOMR-real-1-E2-f.json | right eye | excitatory two-step relays (20) | 1 | 25 / 0 | fell, ~60% | 118.5 | 0 | 26,351 | 648 |
| LOOMR-real-2-E2-f.json | right eye | excitatory two-step relays (20) | 2 | 26 / 0 | fell, ~60% | 122 | 0 | 26,947 | 640 |
| LOOMR-real-0-I2-f.json | right eye | inhibitory two-step relays (3) | 0 | 55 / 0 | rose, ~125% | 121.5 | 6 | 27,896 | 702 |
| LOOMR-real-1-I2-f.json | right eye | inhibitory two-step relays (3) | 1 | 52 / 0 | rose, ~125% | 123.5 | 5 | 27,551 | 686 |
| LOOMR-real-2-I2-f.json | right eye | inhibitory two-step relays (3) | 2 | 52 / 0 | rose, ~125% | 121 | 4.5 | 28,032 | 668 |
| LOOMR-real-2-RND-f.json | right eye | random active neurons (20) | 2 | 42 / 0 | within normal range, ~100% | 105 | 0.25 | 23,586 | 572 |
| LOOMR-real-2-R2-f.json | right eye | all two-step relays (8 Oct) (23) | 2 | 28 / 0 | fell, ~65% | 123.5 | 0 | 27,016 | 677 |
| LOOMR-real-2-E2mP-f.json | right eye | excitatory relays without PVLP141 (descriptive only) (19) | 2 | 41 / 0 | descriptive only | 119.5 | 6 | 27,799 | 684 |
Described, never read: the turn rule passed and the near-side DNa02 was 0 Hz in all 30 runs; giant fibre 113.5–122 Hz except the right-eye random run (105 Hz); MDN 0 Hz in every PVLP141 and excitatory-relay run. Arm readings: PVLP141 fell, excitatory relays fell, inhibitory relays and random neurons "sides differ".