Skip to content

Blog

A developer brings a fruit fly's neural map into Minecraft

6 min read

https://natverse.org/malecns/

Last week (September 3), Cell, a top-tier journal in the life sciences, published a map of the entire central nervous system of a male fruit fly. It charts every neuron and how many synapses link it to which other neurons, a map researchers call a connectome. This one goes beyond the wiring of neurons alone. It captures one fly's whole nervous system, including both optic lobes and the ventral nerve cord, which corresponds to the spinal cord. 166,700 neurons, 125 million synaptic connections, 11,710 cell types. Janelia (HHMI) started the work in 2008, so it took 18 years, and Cambridge, MRC LMB and Google Research collaborated on it.

The word that matters more than the numbers is “entire.” Until now, fruit fly neural maps came out separately, region by region: half a brain in 2020 (25,000 neurons), a whole female brain in 2024 (about 140,000), and the nerves of a male's body in 2024. This time the nerve bundle at the neck is intact. So within a single animal, you can trace the full route a signal takes from the eyes to the leg muscles.

Here is how it is made. The brain is sliced thin and imaged with an electron microscope, millions of images in all. On each slice, the cut ends of neurons show up as gray blotches. To get a 3D wiring diagram, you have to match every blotch to the neuron it continues into on the slices above and below. That is far too much work to do by hand alone. And building a 3D map by comparing each slice image with the ones above and below is very hard.

Here we turn to Google Research's flood-filling network. Think of it as Photoshop's paint bucket tool, built with deep learning. You place a single point inside a neuron. A 3D convolutional neural network then fills the region out to the ends of its branches, judging whether each neighboring pixel belongs to the same neuron. When one neuron is done, it moves on to the next point. The older approach predicted all the cell membrane boundaries at once and then stitched the fragments together. Compared with that, this method makes far fewer errors where two neurons get merged or one neuron gets cut in two. Technology from this line has been used from the first automated reconstruction of a fruit fly brain in 2019 through to this new map.

Still, the final step falls to people. Humans check every neuron the AI has filled in, one at a time, and give each one a name. Google's blog goes as far as saying that “verifying and annotating the shapes alone takes years of human effort.”

This raises a question. If you had a perfect blueprint, would the brain work if you simply ran it as is? Or, at the very least, how do you feed in information such as sight and touch, and get the brain to interact?

As it happens, ChatGPT-6 Astra was just released, and someone has tried this with Astra: NeuroCraft Fly, a project that loads this connectome into Minecraft as is, with all 166,700 neurons and 25,582,938 directed edges, and connects it to a single fly. When the player rubs the fly with a brush, the input goes into the neural network. A readout reads the activity and picks a body-movement program, and the fly grooms itself. There are six inputs: approach, mob, brush, attack, food and light. A HUD in the corner of the screen shows live activity values for LC4 (visual neurons that detect approaching objects) and TTMn (the motor neuron that drives the jump muscle).

Neither the code nor the mod has been released yet.

Even so, the project is careful to make one thing clear. The GitHub landing page states firmly that this fly does not move because it thinks like a real fruit fly brain. How brush strokes reach the network and how signals spread through it are assumptions the developer made. A person also chose which parts of the network to read. Body movements such as grooming are prebuilt animations. The network works more like a switch that picks which of those movements to play.

So the developer added their own validation experiments. The same brushing is applied to a fly whose wiring has been randomly shuffled and to a fly whose sensory input has been cut off entirely. If the response stays the same even with scrambled wiring, the response is not coming from the wiring diagram. The write-up notes that some responses did survive the shuffling, and that the fly still shows its default wandering behavior with its input cut off. On the other hand, when the escape circuit was stimulated, the signal jumped to 35 times its usual level. It spread over four steps, from a command neuron called the giant fiber to the neurons that drive the jump muscle. This has the same shape as the escape reflex pathway in real fruit flies. Even so, the developer states again that “this is not biological validation.” They also report plainly that steering the fly with the neural network produced 95 times more error than a simple controller.

In short, a neural map is, quite literally, a map, not an engine. It tells you which neuron connects to which, through how many synapses, and even the predicted neurotransmitter. But it does not show how strongly, or with what timing, signals actually pass, or what neuromodulators change depending on state. The Minecraft fly grooms because a person filled those gaps with assumptions. The project's merit is that it does not hide this.

So what is the next wall? Google has set the whole zebrafish brain and part of a mouse brain as its next targets. The human brain, with 86 billion neurons, is still out of reach. For the fruit fly, the map is now complete, so what remains is to fill in what actually flows across it. For reference, all the data is public, so with a few lines of the R package (natverse/malecns) you can load a single neuron and draw it in 3D.

#Connectome #Drosophila #Neuroscience #Janelia #Minecraft #AI