Drosophila melanogaster · FlyWire v630 · LIF model after Shiu et al. 2024

Say what to stimulate, what to silence and what to watch. FlyLab turns it into a checked experiment plan, simulates every neuron in the adult fly brain, and hands you the spikes.

Move your cursor across the network — it stimulates the cells under it.The network on this page is firing live.

FLYWIRE v630 / 127,400 NEURONS / 14,687,178 SYNAPSES / dt 0.1 ms

Live raster of the network above — green: sensory, cyan: interneurons, magenta: motor

127,400 neurons. 14,687,178 synapses. 100 ms of whole-brain activity in about 1 s of compute — and every spike matches the Brian2 reference run, bit for bit.

How it works

From a sentence to spikes, in five steps.

Each step leaves something you can inspect: the words you wrote, the plan that was checked, the run that happened, the files you keep — and, if you ask, Claude’s hypotheses next to the numbers they came from.

Try it
  1. 1 / 5

    Describe the experiment

    Write what to stimulate, what to silence and which neurons to watch — in English or Russian. No config files, no code.

    “Activate sugar GRNs at 100 Hz, silence the top sugar neuron, and compare MN9.”
  2. 2 / 5

    Claude writes a validated plan

    Claude maps your words onto named neuron groups. A schema validator checks every limit before anything runs; when something is ambiguous, you are asked instead of guessed for.

    experiment  compare_silencing
    stimulate   sugar_grn · 21 neurons · 100 Hz
    silence     demo_silencing · 1 neuron
    read out    mn9 · 2 neurons
    duration    1000 ms × 1 · seed 42
  3. 3 / 5

    The whole connectome runs

    A Rust leaky integrate-and-fire engine steps all 127,400 neurons through 14.7 million synapses at 0.1 ms resolution — the published model’s equations and constants, nothing simplified away.

    load   flywire_630_csr.bin
           127,400 cells · 14,687,178 synapses
    model  τm 20 ms · τs 5 ms · Vth −45 mV
    run    condition A · 10,000 steps  done
    run    condition B · 10,000 steps  done
  4. 4 / 5

    Compare, then take it with you

    Read the readout rates side by side with the change in Hz, scan the raster, and download a ZIP with the plan, the input events, every spike and a script that replays the run offline.

    MN9 · L   A 42.0 Hz   B 31.0 Hz   Δ −11.0
    MN9 · R   A 39.0 Hz   B 30.0 Hz   Δ −9.0
    export    resolved_plan.json  spikes.parquet
              input_events.parquet  replay.sh
    Example output
  5. 5 / 5

    Ask what it might mean

    Claude reads a digest of the run — the numbers FlyLab computed, FlyWire cell annotations and the model’s limits — and proposes hypotheses. Each one cites the numbers it rests on, states its confidence and comes with a follow-up experiment you can run in one click. You can always see exactly what Claude was given.

    AI-generated assumptions for expert review. AI-generated hypotheses about a computational model. They are not established biological findings and must be evaluated by an expert.

    H1  MN9 activity may be relayed through gustatory interneurons
        confidence  ▮▮▮ medium · few neurons on the path are annotated
        evidence    readout Δ rate · hops from stimulated · cell_class
        caveat      no neuromodulation, no body feedback in this model
        test        silence the candidate relay, read out MN9  run →
    Illustrative layout — not a result
Illustrated render of the adult Drosophila brain: two optic lobes flanking the central brain

The connectome

Not a toy network. The fly’s actual wiring.

Every connection in the simulation is a synapse reconstructed by FlyWire from electron microscopy of an adult female Drosophila brain: 127,400 proofread neurons, 14,687,178 synapses, each with its own sign and weight.

Stimulate the labellar sugar receptors and the signal has to find its own way through that wiring to MN9, the motor neuron that extends the proboscis. Nothing is shortcut.

Image: illustrative render. Simulations use the full v630 reconstruction.

Examples

Start from an example.

Each thumbnail is the fingerprint of a run — magenta for the baseline condition, green for the silenced one, cyan for the stimulus train. Pick one to start from it.

Science

Built on published work, and checked against it.

  1. Model

    Shiu P.K., Sterne G.R., et al. A Drosophila computational brain model reveals sensorimotor processing. Nature 634 (2024)

    The leaky integrate-and-fire model FlyLab implements: same equations, same constants (τm 20 ms, τs 5 ms, threshold −45 mV, 1.8 ms delay), pinned to upstream commit 91bdd1e.

  2. Connectome

    FlyWire Consortium — Dorkenwald S. et al., Neuronal wiring diagram of an adult brain; Schlegel P. et al., Whole-brain annotation and multi-connectome cell typing. Nature 634 (2024)

    Materialization 630 (23 March 2023): completeness and connectivity tables, verified by SHA-256 before every run.

  3. Audit

    Upstream audit of silencing semantics. philshiu/Drosophila_brain_model

    The upstream README says silencing cuts connections to and from a neuron; the executed code zeroes only its outgoing synapses. FlyLab follows what the code does, and says so in every plan.

  4. Reference

    Stimberg M., Brette R., Goodman D.F.M. Brian 2, an intuitive and efficient neural simulator. eLife 8 (2019)

    The Rust engine is checked spike for spike against a Brian2 reference run of the same plan, seed and stimulus.

Ask the fly brain something.

Open the lab