A 3D fruit fly on macOS desktop powered by the real FlyWire connectome
This project brings a 3D fruit fly, powered by a live neural simulation of its actual connectome, to your macOS desktop. It's a fascinating blend of neuroscience and software engineering, allowing users to observe biologically accurate fly behavior driven by real neuron interactions. The Hacker News community is captivated by this highly technical and innovative approach to virtual pets, showcasing the power of detailed biological data in novel applications.
The Lowdown
DesktopFly is a unique macOS application that places a 3D fruit fly on your desktop, whose behaviors are dictated by a sophisticated, live-spiking simulation of a real fruit fly's brain. This isn't just an animation; it's a direct, interactive visualization of a simplified yet functional neural network derived from actual biological data.
- The application simulates a 668-neuron circuit with approximately 19,000 synaptic connections, running at 1 kHz, all sourced from the FlyWire v783 connectome data.
- Key behaviors like escape, walking, steering, and grooming are directly driven by the spiking activity of specific, identified neurons (e.g., Giant Fiber for escape, DNa01/DNa02 for steering).
- The escape mechanism is unscripted; the fly's 'decision' to flee your cursor is a direct result of neural pathway activation, mimicking the real insect's response time to looming threats.
- Users can observe a live brain window displaying 23,210 neuron positions with flashing spikes, and even interact by 'optogenetically' stimulating neuron regions to see the fly's reaction.
- The fly intelligently interacts with the macOS environment, treating window edges as ledges, reacting to new windows as 'looms,' and perceiving clicks as ground taps and typing as vibrations.
- It exhibits a circadian rhythm with varying activity levels throughout the day and night, and its metabolic rate (speed) even correlates with the Mac's thermal state.
- Installation is straightforward via GitHub for macOS 13+, requiring no special permissions as it leverages permission-free macOS APIs.
DesktopFly stands as an impressive demonstration of how cutting-edge neuroscience data can be translated into an engaging, interactive software experience, offering a glimpse into the complexities of a real biological brain controlling behavior in a virtual environment.