Loading the brain (about 9 MB)…
drag to rotate · scroll to zoom
0–1000 ms
quietmax

This is a prediction from wiring, not a recording from a living fly. The firing rates are far higher than a real fly's. Read the pattern (which regions and neurons switch on, and on which side), not the exact numbers.

New to this? Start here

A brain is a network of cells called neurons. Each neuron sends brief electrical pulses, called spikes, to other neurons through junctions called synapses. A complete map of which neuron connects to which, and how strongly, is called a connectome.

Making one is slow work. A fly's brain and nerve cord are sliced into thousands of sheets thinner than a soap bubble's wall, photographed with an electron microscope, and then every neuron is traced through the stack by software and checked by people. The map used here covers the whole central nervous system of one male fruit fly: about 165,000 neurons joined by tens of millions of connections.

Where the map comes from

This map was released by Google Research together with the FlyEM team at HHMI Janelia, the University of Cambridge and the MRC Laboratory of Molecular Biology. Google's part was the software that traced each neuron through the microscope images. It is one of several brain maps Google publishes on its neural mapping datasets page, and it is free for anyone to use with credit.

What the map leaves out

The map records structure: where every neuron is, what shape it has, and which neurons it touches. It does not record how the chemical messengers at each synapse, called neurotransmitters, actually operate. It includes a computer's best guess at which chemical each neuron releases, but not how strong each connection is, how fast it acts, or how it changes with hunger, sleep or experience. Those gaps are filled here with simple assumptions, which is the main reason to treat the results as predictions.

If neurons and synapses are new to you, Brain Lab, an earlier exhibit on this site, lets you fire a single neuron and watch one synapse up close.

A connectome shows the wiring but not what the wiring does. It is a street map without traffic. To see traffic you have to run a simulation on it, which is what this page does.

How to read the 3D view

  • The shape. The wide part at the top is the brain, with an eye-processing lobe on each side. The long part below is the nerve cord, the fly's version of a spinal cord, which drives the legs and wings.
  • Grey dots are cell bodies of neurons that stay quiet. They are there to show the outline.
  • Glowing threads are individual neurons that are firing, drawn in their real shapes. Only the 150 most active per scenario are drawn as threads, plus some of the sensory neurons we switched on.
  • Glowing dots are the cell bodies of every other neuron that responds.
  • Coloured patches are brain regions. Dark purple is a little activity, orange is more, pale yellow is the most active region in that scenario.
  • Average and Play. Average shows the whole first second at once. Play steps through that second in 25 millisecond slices, so you can watch activity spread from the senses towards the muscles.

The three scenarios

Sugar on the proboscis (a reward)

A fly tastes with its mouthparts, called the proboscis. We switch on the 77 taste neurons there that feed the fly's known sugar pathway. In a real fly, sugar makes the proboscis extend to feed. The simulation agrees: activity stays mostly in the gnathal ganglia, the brain's taste and feeding centre, and the motor neuron that extends the proboscis (MN9) starts firing. None of the escape neurons respond.

Looming threat from the left or right

Something growing quickly in the fly's view, like a swatting hand, is called a looming stimulus. Two neuron types in each eye lobe (LPLC2 and LC4) are known to detect it. We switch on those detectors on one side. The simulation then recruits the fly's escape system: the giant fibre, a pair of large neurons that trigger a jump and take-off, and the motor neurons for the wing and jump muscles. Sugar-feeding neurons stay silent.

Compare left with right. Several escape neurons (DNp02, DNp04, DNp11) fire only on the side the threat comes from, so the brain's output carries the direction of the danger. The simulation does not show the fly turning away, because it has no body to turn. That needs a simulated body, which is a later step.

How the simulation works

  • Every neuron becomes a simple unit. It adds up the signals it receives. When the total crosses a threshold it fires a spike and resets. This is called a leaky integrate-and-fire model.
  • Every connection gets a strength and a sign. Strength is the number of synapses between the two neurons. The sign comes from the chemical the sending neuron releases: some chemicals excite the next neuron and others quieten it.
  • A scenario switches on a chosen set of sensory neurons at 100 spikes per second. Nothing else is told what to do. Without input, the whole network is silent.
  • The simulation runs for one second, ten times, and the results are averaged. Activity in a region is the average firing rate across the output synapses inside it, leaving out the neurons we switched on ourselves.

What this can and cannot tell you

Reasonable to conclude

  • Which regions and neuron types a stimulus is wired to reach.
  • That reward and threat inputs feed largely separate circuits.
  • Which side of the brain carries the response.
  • Ideas worth testing in a real fly.

Not safe to conclude

  • Real firing rates. These are much too high.
  • What a living fly's brain does. Nothing here was recorded.
  • Anything about learning, mood, hunger or attention. The model has none of them.
  • That a quiet region is uninvolved. The model may simply miss it.

Known simplifications

  • All neurons are treated as identical units. Real neurons differ a lot.
  • Slow-acting chemicals such as dopamine and serotonin are left out, as are direct electrical links between neurons.
  • Which chemical each neuron releases is itself a computer prediction from the microscope images.
  • Connection strength was tuned by hand. The published value made this network fire uncontrollably, so it was halved. Results change noticeably if that number changes.
  • The sugar-sensing neurons were chosen by which taste neurons connect most strongly to the published sugar pathway. The dataset does not label them as sugar-sensing.
  • The looming scenarios start at the detector neurons, not the eye, so the eye lobes look quieter than they would be.
  • This is one individual male fly. Other flies will differ in detail.

Words used on this page

Neuron
A nerve cell. It receives signals, and sends its own when it has received enough.
Synapse
The junction where one neuron passes a signal to another. Two neurons are often joined by many synapses.
Neurotransmitter
The chemical a neuron releases at a synapse to signal the next neuron. Different chemicals have different effects.
Connectome
The complete wiring diagram: every neuron and every synapse.
Spike, Hz
A spike is one electrical pulse from a neuron. Hz means spikes per second.
Sensory neuron
A neuron that detects something in the world, such as taste, light or touch.
Motor neuron
A neuron that makes a muscle contract.
Descending neuron
A neuron that carries commands from the brain down to the nerve cord. There are about 1,300 in this fly.
Nerve cord
The fly's equivalent of a spinal cord. It sits in the thorax and controls the legs and wings.
Brain region
A named neighbourhood of dense wiring, such as the gnathal ganglia. Scientists call these neuropils.
Excitatory, inhibitory
An excitatory connection pushes the next neuron towards firing. An inhibitory one holds it back.
Giant fibre
A pair of unusually large, fast neurons that trigger the fly's escape jump.

Credits and sources

This page stands entirely on other people's work. The simulation and the page are mine; the data and the method are not.

The connectome

  • Male CNS Connectome, version 1.0. A collaboration between FlyEM (HHMI Janelia), the University of Cambridge (Dept. of Zoology), the MRC Laboratory of Molecular Biology, and Google Research. Licensed under CC BY 4.0.
  • Project site and downloads: male-cns.janelia.org. Paper: published in Cell, 2026, with an earlier bioRxiv preprint.
  • Also listed among the Google Research neural mapping datasets.
  • From this dataset the page uses the neuron-to-neuron connection counts, cell type names and annotations, predicted neurotransmitters, per-region synapse counts, region outlines and neuron skeletons. Changes made: region outlines and skeletons were simplified to load in a browser, and all activity shown is my simulation, not part of the dataset.

The simulation method

  • The model and its parameters follow Shiu, Sterne and colleagues, “A Drosophila computational brain model reveals sensorimotor processing”, Nature (2024), which first showed this approach predicting the sugar-feeding response. Their code is open source (MIT). The version here is a reimplementation with the connection strength halved.
  • The named sugar-pathway neurons used to pick the taste inputs come from the same group's earlier work, as recorded in the dataset's annotations.

The biology behind the scenarios

  • Looming detection by LPLC2: Klapoetke and colleagues, “Ultra-selective looming detection from radial motion opponency”, Nature (2017).
  • LC4, the giant fibre and escape: von Reyn and colleagues, “Feature integration drives probabilistic behavior in the fly escape response”, Neuron (2017).
  • Brain region names follow Ito and colleagues, “A systematic nomenclature for the insect brain”, Neuron (2014). Nerve cord region names follow Court and colleagues, “A systematic nomenclature for the Drosophila ventral nerve cord”, Neuron (2020).
  • The thousands of people who traced, proofread and annotated these neurons are credited in the dataset's papers.

Software

  • 3D rendering: three.js (MIT licence).
  • Simulation and data preparation: Python with NumPy, pandas, Apache Arrow, Numba and fast-simplification.