Home▸Entomology & Insect Behaviour▸Drosophila Mushroom Body Learning Circuit

Drosophila Mushroom Body Learning Circuit

Interactive 3D model of the fruit fly's mushroom body: ~1500 sparsely-coding Kenyon cells, dopamine-driven synaptic depression, and the resulting approach/avoidance valence for each odor — the real circuit behind insect associative learning.

Entomology & Insect Behaviour3DAdvanced60 FPS📱 Mobile-adapted⇄ 2D version
Drosophila Mushroom Body Learning Circuit ↗ Open standalone

This simulator models the real neural circuit behind associative learning in the fruit fly brain: roughly 1,500 Kenyon cells, rendered as a 3D point cloud inside the mushroom body calyx, each wired to fire for a sparse ~5% subset of five distinct pre-defined odors. Pairing an odor with a simulated dopamine reward or punishment pulse depresses that odor's active Kenyon cells' synapses onto one of two mushroom-body output neurons — approach or avoidance — exactly as reward- and punishment-signalling dopaminergic neurons do in the living fly. Live readouts track the resulting behavioural valence, the size of the active Kenyon-cell ensemble, and the remaining synaptic weight on each pathway, while a moving marker shows the circuit's approach/avoid decision shift in real time as learning accumulates.

⚙ Under the hood

Simulate the fruit fly's mushroom body: sparse Kenyon-cell odor coding, dopamine-driven synaptic depression, and the resulting approach/avoidance valence for each odor.

neurosciencedrosophilainsect-brainassociative-learningsynaptic-plasticityentomology

3D · Three.js / WebGL renderer · 60 FPS target · runs fully client-side, no install

What did you find?

Add reproduction steps (optional)