Shaduf.Research preview
Digital Fly Lab/How it works

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

The sense, model, act loop of a digital flyFive stages from left to right: input mapping (usually hand-made), connectome wiring (measured), neuron model (modelled), output mapping (hand-made or trained), and a body or game (modelled or scripted). Stages 2 and 3 are the simulated brain. A dashed line returns from the body to the input for closed-loop projects.The simulated brain1 · SENSEInput mappingStimulus → chosensensory neuronsusually hand-made2 · WIRINGConnectomeWho connects to whom,traced in microscopeimages: measured3 · DYNAMICSNeuron modelSpikes or firing ratesover time, e.g. LIFmodelled4 · READOUTOutput mappingChosen neurons → keys,muscles or a scorehand-made or trained5 · ACTBody or gameA physics body or agame enginemodelled or scriptedDashed line: the world changes and gives new input. Only closed-loop projects do this. The sense, model, act loop of a digital fly, from top to bottom: input mapping, connectome, neuron model, output mapping, body or gameThe simulated brain1 · SENSEInput mappingStimulus → chosensensory neuronsusually hand-made2 · WIRINGConnectomeWho connects to whom,traced in microscopeimages: measured3 · DYNAMICSNeuron modelSpikes or firing ratesover time, e.g. LIFmodelled4 · READOUTOutput mappingChosen neurons → keys,muscles or a scorehand-made or trained5 · ACTBody or gameA physics body or agame enginemodelled or scriptedDashed: closed loop
A generic digital fly. Colours show where each part usually comes from. Real projects differ: the catalogue records this for each entry. For one case we measured ourselves, see who does the walking.
  • 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.
  • 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).

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.

Seven fruit fly connectome datasets, checked 27–28 September 2026 on the official pages. Data licences are quoted from the official wording.
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:

Why fruit fly neuron counts differA number line from 120,000 to 170,000 neurons. FlyWire counts: about 125,000 (rounded), 127,400 (v630), 127,978 (preprint), 138,639 (v783 file in the Shiu repository), 139,255 (v783 release), about 140,000 (rounded). MaleCNS counts: 165,122 (v1.0 traced only), over 166,000 (rounded), 166,691 (v0.9 preprint), 166,700 (v1.0 release). Filled dots are exact release counts, hollow dots are rounded headlines.FlyWire FAFB · female brainMaleCNS · male brain and nerve cord120,000130,000140,000150,000160,000170,000gap of 616 neurons: cause not establishedabout 140,000 · rounded on flywire.ai139,255 · v783 public release, whole brain138,639 · v783 file in the Shiu model repository127,978 · preprint count127,400 · v630, all simulated by the Shiu et al. modelabout 125,000 · rounded headline in the 2024 model paper165,122 · v1.0, fully traced neurons onlyover 166,000 · rounded, Google Research blog166,691 · v0.9 preprint166,700 · v1.0 release (Codex)about 125,000 · rounded headline in the 2024 model paper127,400 · v630, all simulated by the Shiu et al. model127,978 · preprint count138,639 · v783 file in the Shiu model repository139,255 · v783 public release, whole brainabout 140,000 · rounded on flywire.ai165,122 · v1.0, fully traced neurons onlyover 166,000 · rounded, Google Research blog166,691 · v0.9 preprint166,700 · v1.0 release (Codex) Why fruit fly neuron counts differ: FlyWire counts from about 125,000 to 140,000, MaleCNS counts from 165,122 to 166,700. Filled dots are exact release counts, hollow dots are rounded headlines.120k130k140k150k160k170kMaleCNSFlyWire FAFB166,700 v1.0 release166,691 preprintover 166k, rounded165,122 v1.0 tracedabout 140k, rounded139,255 v783 release138,639 Shiu v783127,978 preprint127,400 v630 Shiuabout 125k, roundedabout 125,000 · rounded headline in the 2024 model paper127,400 · v630, all simulated by the Shiu et al. model127,978 · preprint count138,639 · v783 file in the Shiu model repository139,255 · v783 public release, whole brainabout 140,000 · rounded on flywire.ai165,122 · v1.0, fully traced neurons onlyover 166,000 · rounded, Google Research blog166,691 · v0.9 preprint166,700 · v1.0 release (Codex)
Filled dots are exact counts for a release; hollow dots are rounded headlines. Hover over a dot for its label. The same numbers are in the table below.
The neuron counts people quote, and what each one is.
NumberWhat it actually is
"more than 125,000"Rounded headline for the FlyWire brain in the Shiu et al. 2024 abstract
127,400Proofread neurons in FlyWire v630; all are simulated in the Shiu et al. model
127,978FlyWire count in the bioRxiv preprint, before more proofreading
138,639Neurons in the v783 input file of the Shiu model repository; what most "FlyWire v783" simulations run
139,255FlyWire public release v783, whole brain including optic lobes
"140K"Rounded figure on flywire.ai
165,122MaleCNS 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,691MaleCNS preprint (v0.9)
166,700MaleCNS 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.

How big is the download? Fly connectome files, by releaseHow big is the download? Fly connectome files, by release. Log scale, sizes from storage metadata, checked 6 Oct 2026 without downloading the data. Our beginner path: 104.1 MB; FlyWire annotation table: 31.7 MB; hemibrain v1.2 summary: 45.9 MB; FlyWire v783, official: 10.6 GB; MaleCNS v1.0 flat files: 31.3 GB; BANC deposit: 536.1 GB (227.8 GB open, 308.3 GB on request); MANC v1.2.1: size not stated; Larva L1 (Winding et al.): size not stated.Release and what it containsSize (log scale: each step is 10 times bigger)10 MB100 MB1 GB10 GB100 GB1 TBOur beginner path2 files: wiring + neuron listOur beginner path: 104.1 MB (104,131,989 B)104.1 MBFlyWire annotation table1 file (cell types)FlyWire annotation table: 31.7 MB (31,720,298 B)31.7 MBhemibrain v1.2 summary1 file, compact wiringhemibrain v1.2 summary: 45.9 MB (45,872,577 B)45.9 MBFlyWire v783, official5 files incl. every synapseFlyWire v783, official: 10.6 GB (10,596,831,504 B)10.6 GBMaleCNS v1.0 flat files11 files, brain + nerve cordMaleCNS v1.0 flat files: 31.3 GB (31,318,683,398 B)31.3 GBBANC deposit102 open files + 277 on requestBANC: 227.8 GB open (102 files)BANC: 308.3 GB more on request (277 files)536.1 GB (308.3 GB on request)MANC v1.2.1bucket not listed by ussize not stated (not checked this time)Larva L1 (Winding et al.)supplement not reachablesize not stated (not checked this time)what our Build your own guide needsone filea whole releaseon request onlysize not stated How big is the download? Fly connectome files, by release. Log scale, sizes from storage metadata, checked 6 Oct 2026 without downloading the data. Our beginner path: 104.1 MB; FlyWire annotation table: 31.7 MB; hemibrain v1.2 summary: 45.9 MB; FlyWire v783, official: 10.6 GB; MaleCNS v1.0 flat files: 31.3 GB; BANC deposit: 536.1 GB (227.8 GB open, 308.3 GB on request); MANC v1.2.1: size not stated; Larva L1 (Winding et al.): size not stated.Size, log scaleOur beginner path104.1 MBAnnotation table31.7 MBhemibrain v1.245.9 MBFlyWire v783, all10.6 GBMaleCNS v1.0, all31.3 GBBANC deposit536.1 GB in all,308.3 GB on requestMANC v1.2.1size not statedLarva L1size not stated10 MB1 GB100 GBSizes from storagemetadata, 6 Oct 2026;nothing downloaded.
How big is the download? Fly connectome files, by release. Sizes in decimal units (1 GB = 1,000,000,000 bytes) from each host's storage metadata (HTTP HEAD answers and deposit listings), checked on 6 Oct 2026; we downloaded none of these data files for this table. The beginner path is 104.1 MB; a whole official release is 100 to 5,000 times bigger. MANC and the larva L1 sizes are not stated: we did not list the MANC bucket (our request limit was reached) and the larva supplement page did not answer.
Download facts by release, checked 6 Oct 2026 with 15 HEAD requests and 6 listing requests (403 files in total); no data file was downloaded. Sizes are decimal. Checksums are the host's own storage metadata; none of the hosts publishes a separate checksum file. One BANC file (the v3 edge list) answered our HEAD with 403 although the listing marks it open.
ReleaseFilesSizeChecksumLicenceAccess
Our beginner path: the Shiu et al. repository copies at commit 91bdd1e72104.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)510.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)131.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)1131.3 GB
wiring only (traced): 508,025,642 B
MD5 + CRC32C (Google Cloud Storage)CC BY 4.0Open
BANC v888 (brain and nerve cord, Harvard Dataverse, version 3.0)379536.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.0102 open, 277 on request
hemibrain v1.2 compact connection summary145.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.0Open
MANC v1.2.1 (male nerve cord)–Not stated: the bucket was not listed (our request limit was reached)Not checkedCC BY 4.0Open (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 outNone publishedArticle CC BY 4.0; no separate data licence foundOpen

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.

Brain models and simulation engines in the catalogue.
Model or engineWhat it isDataKey facts from the codeGrade
Shiu et al. Drosophila_brain_modelWhole-brain LIF model in Brian2FlyWire v630 (default); v783 files includedThreshold −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 2024A
drosophila-brain-mlxThe same model on Apple MLX (Mac GPU)FlyWire v630; MaleCNS v1.0With 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
flyvisTrained rate model of the fly's motion-vision pathwayFlyEM 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 flowA
Eon fly-brainThe Shiu model on six engines, with speed comparisonsFlyWire v783Engines agree closely (16,418 to 17,429 spikes for the same 1 s sugar test). Brain only; no body coden/a
fasterflyGPU kernels that simulate many flies at onceMaleCNS v1.051,159 fly-steps per second for 64 flies on an RTX 3090 (author). Own simplified constants; no licence filen/a
dotFlyC# and .NET version of the Shiu LIF modelFlyWire v630 and v783; MaleCNS v1.0Matches Brian2 spike for spike in its tests; its room demo is mostly a hand-written decoderC
Loihi 2 fly brain (Sandia)The Shiu model on 12 neuromorphic Loihi 2 chipsFlyWireCompared with Brian2 only; about 3 to 350 times faster in the preprint. No code link foundU

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.

The two open fly bodies used by catalogue projects.
BodyWhat it gives youVersions and requirements (from the code)Licence
NeuroMechFly (FlyGym), EPFLA 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 extraApache-2.0
flybody, Turaga lab and DeepMindA 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 practiceApache-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:

Who does what when a fly brain model drives a FlyGym flyWho does what in our Add-a-body test, measured on 2 Oct 2026. 1, stimulus (ours): we drive the forward-walking neurons P9 (DNp09) at 150 Hz; P9 then fires at 130–162 Hz in real and scrambled brains alike. 2, brain (Shiu et al. model on FlyWire v783): the real wiring recruits the turning neurons DNa02, more on the right (21–29 Hz) than the left (7–11 Hz); scrambled brains recruit none; the backward neurons MDN stay at 0 Hz. 3, mapping (ours, hand-made): every 100 ms the rates become two numbers, divided by 100 Hz and capped at 1.2; 90 of the 120 drive values of the six P9 walks (75%) sit exactly at the 1.2 clip. 4, body (FlyGym 2.1.0's walking controller): legs, rhythm and balance, 13–14 mm per second; with no brain, the default drive (1, 1) walks 13.0 mm. Open loop: the body never feeds back to the brain. With sugar instead of P9, MN9 fires at 82 Hz, every walking command is at 0 Hz and the fly stands.1 · STIMULUSWe drive P9OursDNp09 at 150 Hz, bothsides. P9 then fires130–162 Hz in real andscrambled brains alike2 · BRAINAdds turningShiu et al. modelReal wiring recruitsDNa02: right 21–29 Hz,left 7–11 Hz. Scrambled:none. MDN (back) 0 Hz3 · MAPPINGRates → 2 numbersOurs, hand-madeEvery 100 ms, ÷ 100 Hz,capped at 1.2. In theP9 walks 75% of thenumbers sit at the cap4 · BODYWalksFlyGym 2.1.0Legs, rhythm, balance:13–14 mm per second.No brain, drive (1, 1):13.0 mm in 1 sThe simulated brainOpen loop: the body never feeds back to the brain. With sugar instead of P9: MN9 82 Hz, every walking command 0 Hz, the fly stands. Who does what in our Add-a-body test, measured on 2 Oct 2026. 1, stimulus (ours): we drive the forward-walking neurons P9 (DNp09) at 150 Hz; P9 then fires at 130–162 Hz in real and scrambled brains alike. 2, brain (Shiu et al. model on FlyWire v783): the real wiring recruits the turning neurons DNa02, more on the right (21–29 Hz) than the left (7–11 Hz); scrambled brains recruit none; the backward neurons MDN stay at 0 Hz. 3, mapping (ours, hand-made): every 100 ms the rates become two numbers, divided by 100 Hz and capped at 1.2; 90 of the 120 drive values of the six P9 walks (75%) sit exactly at the 1.2 clip. 4, body (FlyGym 2.1.0's walking controller): legs, rhythm and balance, 13–14 mm per second; with no brain, the default drive (1, 1) walks 13.0 mm. Open loop: the body never feeds back to the brain. With sugar instead of P9, MN9 fires at 82 Hz, every walking command is at 0 Hz and the fly stands.1 · STIMULUSWe drive P9OursDNp09 at 150 Hz, bothsides. P9 then fires130–162 Hz in real andscrambled brains alike2 · BRAINAdds turningShiu et al. modelReal wiring recruitsDNa02: right 21–29 Hz,left 7–11 Hz. Scrambled:none. MDN (back) 0 Hz3 · MAPPINGRates → 2 numbersOurs, hand-madeEvery 100 ms, ÷ 100 Hz,capped at 1.2. In theP9 walks 75% of thenumbers sit at the cap4 · BODYWalksFlyGym 2.1.0Legs, rhythm, balance:13–14 mm per second.No brain, drive (1, 1):13.0 mm in 1 sOpen loop. Sugar instead ofP9: MN9 82 Hz, walkingcommands 0 Hz: it stands.
Measured in our Add-a-body test of 2 Oct 2026 (one stimulus, one model, one body, 1 s, open loop). Colours as in the sense → model → act loop on How it works: orange hand-made, blue modelled, green measured, grey dashed engineered or scripted. Details on Does fly wiring help?

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:

Who does what when a looming shadow turns the FlyGym flyWho does what in our looming test of 5 Oct 2026. 1, stimulus (ours): every LC4 and LPLC2 neuron of one eye (162 on the left, 152 on the right) is driven at 80 Hz for 1 s, the same in real and scrambled brains. 2, brain (Shiu et al. model on FlyWire v783): the giant fibre fires at 111.5–120.5 Hz and the turning neurons DNa02 on the far side at 23–44 Hz, the near side stays at 0 Hz; in scrambled brains all of them stay at 0 Hz. 3, mapping (ours, hand-made): every 100 ms, DNa02 slows the legs on its own side and MDN pushes both sides back, on top of a constant 0.8 walking drive that is ours, not the brain's. 4, body (FlyGym 2.1.0's walking controller): legs, rhythm and balance; the real map turned the fly 34–68° away from the shadow, scrambled maps sent the same drive as no brain (a 1.5° drift). Open loop: the body never feeds back to the eyes. Whether walking flies turn away like this: fly67's claim; the direction in real flies was not verified by us.1 · STIMULUSA shadow, one eyeOursEvery LC4 and LPLC2 ofone eye (162 left, 152right) at 80 Hz for 1 s,the same in every brain2 · BRAINPicks a sideShiu et al. modelGiant fibre 111–121 Hz;DNa02 on the far side23–44 Hz, near side 0.Scrambled: all 0 Hz3 · MAPPINGRates → 2 numbersOurs, hand-madeDNa02 slows its ownside, MDN backs up;a constant 0.8 walkingdrive is ours, too4 · BODYWalks and turnsFlyGym 2.1.0Legs, rhythm, balance.Real map: 34–68° away.Scrambled = no brain:a 1.5° driftThe simulated brainOpen loop: the body never feeds back to the eyes. "Away" rests on our mapping's DNa02 sign and fly67's claim. Who does what in our looming test of 5 Oct 2026. 1, stimulus (ours): every LC4 and LPLC2 neuron of one eye (162 on the left, 152 on the right) is driven at 80 Hz for 1 s, the same in real and scrambled brains. 2, brain (Shiu et al. model on FlyWire v783): the giant fibre fires at 111.5–120.5 Hz and the turning neurons DNa02 on the far side at 23–44 Hz, the near side stays at 0 Hz; in scrambled brains all of them stay at 0 Hz. 3, mapping (ours, hand-made): every 100 ms, DNa02 slows the legs on its own side and MDN pushes both sides back, on top of a constant 0.8 walking drive that is ours, not the brain's. 4, body (FlyGym 2.1.0's walking controller): legs, rhythm and balance; the real map turned the fly 34–68° away from the shadow, scrambled maps sent the same drive as no brain (a 1.5° drift). Open loop: the body never feeds back to the eyes. Whether walking flies turn away like this: fly67's claim; the direction in real flies was not verified by us.1 · STIMULUSA shadow, one eyeOursEvery LC4 and LPLC2 ofone eye (162 left, 152right) at 80 Hz for 1 s,the same in every brain2 · BRAINPicks a sideShiu et al. modelGiant fibre 111–121 Hz;DNa02 on the far side23–44 Hz, near side 0.Scrambled: all 0 Hz3 · MAPPINGRates → 2 numbersOurs, hand-madeDNa02 slows its ownside, MDN backs up;a constant 0.8 walkingdrive is ours, too4 · BODYWalks and turnsFlyGym 2.1.0Legs, rhythm, balance.Real map: 34–68° away.Scrambled = no brain:a 1.5° driftOpen loop. "Away" rests onour mapping and onfly67's claim.
Measured in our looming test of 5 Oct 2026 (one stimulus, one model, one body, 1 s, open loop). Colours as in the sense → model → act loop on How it works: orange hand-made, blue modelled, green measured, grey engineered or scripted. Details on Is it real?

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.

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?

Where the looming signal can go in the mapWhat the FlyWire v783 map itself contains, counted before any 6 Oct trial. The looming neurons of one eye (LC4 and LPLC2: 162 on the left, 152 on the right) have 832 (left) and 1053 (right) direct synapses onto the giant fibre of their own side and none onto the other side's. They have no direct synapses onto DNa02 on either side. Their two-step routes to the far-side DNa02 run through 21 (left) and 23 (right) relay neurons; the top relay on both sides is PVLP141 on the same side as the eye, with 361 and 451 synapses in from the looming neurons and 98 and 81 out to the far-side DNa02. The inside-only scramble keeps the looming neurons' synapses onto output neurons (13% of them, including the giant fibre) and scrambles the other 87%, including the first step to every relay. The giant fibres have no synapses onto DNa02 at all.The map's own counts for one eye (left / right eye), counted before the first trialLooming neuronsLC4 + LPLC2 of one eye162 / 152 cellsRelays (21 / 23)top: PVLP141, same side361 / 451 synapses inDNa02, far sidethe turn command98 / 81 synapses from PVLP141Giant fibre, same sidethe escape signal (DNp01)832 / 1,053 direct synapsesno direct synapses: 0fibre → DNa02: 0inside-only scramble breaks this first stepand keeps synapses onto output neurons (13% ofthe looming outputs, incl. the giant fibre)Source: FlyWire v783 (Connectivity_783.parquet at Shiu et al. 91bdd1e7), our census of 6 Oct 2026 (descriptive). What the FlyWire v783 map itself contains, counted before any 6 Oct trial. The looming neurons of one eye (LC4 and LPLC2: 162 on the left, 152 on the right) have 832 (left) and 1053 (right) direct synapses onto the giant fibre of their own side and none onto the other side's. They have no direct synapses onto DNa02 on either side. Their two-step routes to the far-side DNa02 run through 21 (left) and 23 (right) relay neurons; the top relay on both sides is PVLP141 on the same side as the eye, with 361 and 451 synapses in from the looming neurons and 98 and 81 out to the far-side DNa02. The inside-only scramble keeps the looming neurons' synapses onto output neurons (13% of them, including the giant fibre) and scrambles the other 87%, including the first step to every relay. The giant fibres have no synapses onto DNa02 at all.The map's own counts(left / right eye)Looming neuronsLC4 + LPLC2, one eye162 / 152 cellsscrambledRelays (21 / 23)top: PVLP141, same side361 / 451 synapses inDNa02, far sidethe turn command98 / 81 from PVLP141No direct synapses fromthe looming neurons toDNa02, and none fromthe giant fibre.Giant fibresame side: the escapesignal; 832 / 1,053direct synapses, keptby the inside-onlyscrambleFlyWire v783, our censusof 6 Oct 2026(descriptive).
Descriptive, counted from the map before the first 6 Oct trial (it explains the readings; it does not change them). By the pre-registered disclosure rule, the inside-only turn reading has no "kept by construction" part, and its escape reading is "partly kept by construction" (the 832 / 1,053 direct synapses). A targeted "PVLP141 silenced" test would check that relay directly; it has not been run.

Search published pools, pages, reports, and evidence.