explaingit

neuromorphicism/fly-brain-snntorch

Analysis updated 2026-05-18

13PythonAudience · researcherComplexity · 4/5Setup · moderate

TLDR

A faster Python remake of a fruit fly brain simulation, letting researchers test how the tiny insect brain reacts to taste, smell, sight, and sound.

Mindmap

mindmap
  root((fly brain snntorch))
    What it does
      Simulates fruit fly brain
      Ports Brian2 model to snnTorch
      Faster CPU simulation
    Tech stack
      Python
      PyTorch
      snnTorch
      Conda or venv
    Use cases
      Test sensory responses
      Compare simulation speed
      Study neuromorphic computing
    Audience
      Researchers
      AI hobbyists
      Neuroscience students

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Simulate how a fruit fly brain responds to sensory input like taste, smell, sight, or sound.

USE CASE 2

Compare simulation speed and behavior between an older brain modeling tool and this newer Python based one.

USE CASE 3

Study neuromorphic computing concepts using real biological brain connectivity data.

USE CASE 4

Experiment with switching between dense and sparse computation modes for the same brain model.

What is it built with?

PythonPyTorchsnnTorchNumPyMatplotlibPandasConda

How does it compare?

neuromorphicism/fly-brain-snntorch1lystore/awaek47cid/wp2shell-lab
Stars131313
LanguagePythonPythonPython
Setup difficultymoderatemoderatemoderate
Complexity4/52/54/5
Audienceresearchervibe coderresearcher

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · moderate Time to first run · 30min

Needs Python plus several libraries like PyTorch and snnTorch installed via Conda or a virtual environment, no GPU required.

The project's own code license is not stated, though the brain data it uses comes from other sources released under MIT and Apache licenses.

In plain English

Fly Brain snnTorch is a simulation of a fruit fly's brain, rebuilt using a Python tool called snnTorch instead of an older tool called Brian2 that a separate research project originally used. In simple terms, this project models how a tiny insect brain reacts to different senses, and it does so with code that runs faster than the original version it is based on. The simulation currently supports four types of sensory input: taste (like sugar), smell, vision, and sound. The author plans to add five more senses in the future, including humidity, temperature, touch, and detecting pheromones and electrical fields. You can choose which sense to simulate by changing one setting in the main Python file, and the results come out as charts stored in the repository's images folder. Running it requires Python along with a set of libraries such as PyTorch (a framework for building and running neural network style computations) and the snnTorch library itself. The README gives separate step by step setup instructions for Linux, Windows, and macOS, using either Conda or Python's built in virtual environment tool, so no prior machine learning experience is assumed for getting it running, just comfort with a terminal. A notable claim in the README is that this new version runs the brain simulation about 68 times faster on a laptop CPU than the original Brian2 based version, based on the author's own timing tests. The project also compares itself honestly to the older approach, noting some technical tradeoffs, such as missing a certain type of neuron behavior that the original method modeled more accurately, along with proposed ways to fix that gap later. The underlying brain connectivity data comes from other open research repositories, released under permissive licenses like MIT and Apache, and the author is careful to note the data was chosen so it would not conflict with those licensing terms. This project would mainly interest researchers and hobbyists curious about neuromorphic computing or biologically inspired AI models, rather than someone looking for a general purpose tool. The full README is longer than what was shown.

Copy-paste prompts

Prompt 1
Walk me through setting up a Conda environment to run this fruit fly brain simulation on my system.
Prompt 2
Explain the difference between the dense and sparse versions of this fly brain model in simple terms.
Prompt 3
Help me change which sensory neurons are stimulated in the fly_brain.py file.
Prompt 4
What does it mean that this snnTorch version runs faster than the original Brian2 implementation?
Prompt 5
Summarize what neuromorphic computing is using this repository as a concrete example.

Frequently asked questions

What is fly-brain-snntorch?

A faster Python remake of a fruit fly brain simulation, letting researchers test how the tiny insect brain reacts to taste, smell, sight, and sound.

What language is fly-brain-snntorch written in?

Mainly Python. The stack also includes Python, PyTorch, snnTorch.

What license does fly-brain-snntorch use?

The project's own code license is not stated, though the brain data it uses comes from other sources released under MIT and Apache licenses.

How hard is fly-brain-snntorch to set up?

Setup difficulty is rated moderate, with roughly 30min to a first successful run.

Who is fly-brain-snntorch for?

Mainly researcher.

Open on GitHub → Explain another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.