Research Paper
A Bottom-Up Molecular Brain Stack from Particles to Behavior
oNeura is a physics-native simulation stack that models biological neural systems from the molecular level up. Each neuron tracks ~173 state variables across a ~45-stage pipeline - 18+ ion channel types with Hodgkin-Huxley gating, 12+ signaling cascades, 6 neurotransmitters, 4-compartment calcium, organelle state, gene regulation, structural dynamics, and pharmacokinetics - producing emergent behavior that arises from biophysics, not curve-fitting.
Built entirely in Rust with native CUDA acceleration, oNeura runs the same molecular brain on a laptop (M4 Pro), datacenter GPUs (A100, H200), or in the browser via WebGPU - with aligned physics across those targets. We demonstrate learning on Pong (inspired by the DishBrain line of work), exploratory autonomous Doom behavior, and a 139,000-neuron Drosophila brain simulation with real connectome topology. Those public experiments are the dONN path; the same local codebase also carries whole-cell and atomistic layers below that slice, and supported pharmacology now bridges explicit molecules, docking/MM-GBSA calibration, and live ligand MD into the neural runtime instead of stopping at a detached side tool. All reported values in this document are tied to the experiment conditions stated in the relevant sections.
Browser-live Hodgkin-Huxley simulations, browser-facing Pong and fly-brain surfaces, and the measured benchmark summaries shown on this page.
Large Pong and Drosophila-scale experiments are reported from the native Rust + CUDA runtime when those configurations are too large to execute directly in the browser.
The molecule-to-circuit pharmacology bridge is real in the local stack, but not every lower-scale component is yet exposed publicly or validated end-to-end at full organism scale on this site.
This page is therefore best read as a technical paper for the validated dONN path plus the strongest currently connected pharmacology pieces, not as a claim that every future whole-cell or ecosystem layer is already public and benchmarked.
Artificial neural networks are mathematical abstractions. They model neurons as scalar weights and biases, discarding the molecular machinery that gives biological brains their most interesting properties: graceful degradation, pharmacological sensitivity, sleep-dependent consolidation, damage recovery, and developmental plasticity.
The Question: What if we modeled every molecular subsystem that makes a neuron a neuron - ion channels, receptors, vesicles, calcium, gene expression - and let behavior emerge from physics instead of optimization?
The Answer: oNeura. A digital organic neural network (dONN) where membrane potential emerges from ion channel dynamics, learning emerges from synaptic plasticity, and supported drug effects now emerge from atomistically calibrated target occupancy rather than being hand-authored UI knobs.
oNeura is built as one simulation stack spanning browser demos, native neural runtimes, whole-cell scheduling, and atomistic molecule modeling. The core engine handles neuron state, synaptic transmission, plasticity, and pharmacology in a unified timestep loop, while the lower layers provide local chemistry, permeation, binding, docking calibration, and ligand-MD perturbation for the supported pharmacology bridge. The point is not a public repo layout; the point is that these scales now operate as one connected system.
The dONN path runs Hodgkin-Huxley membrane dynamics, receptor-mediated synaptic transmission, calcium state, and three-factor STDP in one continuous loop across CPU, CUDA, and WebGPU targets.
Below the neural demos sits a native whole-cell layer for permeation, target binding, local chemistry, rate modifiers, and cell-state scheduling that can feed the neural runtime instead of living as a disconnected side model.
Explicit molecules, surrogate-pocket docking, MM-GBSA rescoring, ADMET logic, and ligand MD provide lower-scale calibration for the supported pharmacology set.
The public surfaces show that stack through browser Pong, Doom replay, and fly-brain experiments. They are slices through the same system, not separate toy demos.
The same neuron model runs identically across CPU (Rust), GPU (CUDA), and browser (WebGPU). Hardware-agnostic physics means results are reproducible on any platform.
The older public copy described this system as 25 molecular subsystems per neuron. The current oNeura repo now presents the flagship Drosophila dONN path as substantially deeper: roughly 173 state variables per neuron flowing through an approximately 45-stage pipeline on each timestep, with many more channel, signaling, structural, organelle, and gene-regulation layers explicitly tracked in the working project.
The current repo framing extends beyond the older eight-channel summary and now calls out 18+ channel classes, including Nav, Kv, Kleak, Cav, NMDA, AMPA, GABA-A, nAChR, HCN, SK, BK, TRPC, T-Cav, IA, GIRK, K-ATP, KCNQ, and K2P, with species-specific kinetics for squid, Drosophila, and mammalian presets.
The public repo now describes 12+ signaling cascades, 4-compartment calcium with SOCE and buffering, multi-ion concentration tracking, transmitter release and reuptake, organelle state, structural state, and broader intracellular bookkeeping than the older simplified summary on this page implied.
The current project description now explicitly includes histone acetylation, DNA methylation, miRNA and promoter occupancy, c-Fos/Arc/BDNF expression, ribosome/mTOR translation gating, astrocytes, oligodendrocytes, microglia, actin/spine dynamics, microtubules, neurofilaments, and extracellular-matrix state.
The repo now publicly describes a seven-scale stack spanning quantum, atomistic, cellular, stochastic, organismal, ecological, and evolutionary levels, plus a large Rust architecture with 320K+ lines, 360 source files, and 7,500+ tests. That broader platform reality should shape how this page is read.
// still the core causal membrane framing
dV/dt = (1/C_m) * (
I_ext
- g_Na * m³ * h * (V - E_Na)
- g_K * n⁴ * (V - E_K)
- g_L * (V - E_L)
- g_Ca * s² * (V - E_Ca)
- g_AMPA * (V - E_AMPA)
- g_NMDA * B(V) * (V - E_NMDA)
- g_GABA * (V - E_GABA)
)The right claim is therefore not that oNeura has become less mechanistic. It is the opposite: the public site has lagged behind a repo that now describes a materially deeper dONN neuron and a much broader bottom-up digital-biology stack than the earlier 25-subsystem summary.
oNeura maintains an explicit multiscale chain, but this page does not visualize every layer at once. The public experiments shown here focus on dONN neural and organism behavior. The whole-cell and atomistic molecule layers live in the same stack and already supply lower-scale chemistry, localized MD, small-molecule handling, and target binding for the supported pharmacology bridge.
Atomistic / Quantum Tooling
Atomistic chemistry, molecule modeling, localized MD probes, and whole-cell quantum-correction surfaces provide the lower-scale structure and energetics that sit underneath the broader stack.
Binding / Local Chemistry
Supported compounds now pass through explicit molecules, pocket calibration, permeation, occupancy, and MD-informed target effects before they alter neural state or reaction-rate categories.
Ion Channel Dynamics
Hodgkin-Huxley gating variables (m, h, n) evolve according to voltage-dependent rate equations. Membrane potential emerges from the sum of all ionic currents - not from a lookup table.
Neural Circuits
Networks of 5K-139K neurons with STDP plasticity form functional circuits. Spike timing drives synaptic weight changes through NMDA-gated windows with dopamine-modulated eligibility traces.
Emergent Behavior
Pong paddle tracking, Doom combat decisions, phototaxis, thermotaxis, and olfactory conditioning all emerge from the physics below - no task-specific reward shaping or output biases.
Key Insight: NEURON stops at neurons. CellBlender stops at molecules. oNeura is being built as one codebase spanning atomistic, whole-cell, and neural-organism layers instead of treating those scales as separate silos.
Learning in oNeura is biologically grounded. Rather than backpropagation, synaptic weights change through spike-timing-dependent plasticity (STDP) with three factors: pre/post spike timing, NMDA receptor gating, and neuromodulatory eligibility traces.
// 3-Factor STDP rule
delta_t = t_post - t_pre
if delta_t > 0: // Pre before post → LTP
dw = A_plus * exp(-delta_t / tau_plus) // tau_plus = 20ms
// Insert AMPA receptors into postsynaptic membrane
else: // Post before pre → LTD
dw = -A_minus * exp(delta_t / tau_minus) // tau_minus = 20ms
// Remove AMPA receptors from postsynaptic membrane
// Factor 2: NMDA gating (requires postsynaptic depolarization)
dw *= nmda_gate(V_post, Mg_block)
// Factor 3: Dopamine-modulated eligibility trace
eligibility += dw
eligibility *= decay_rate // Slow decay
w += learning_rate * eligibility * dopamine // DA gates consolidation
// BCM metaplasticity: sliding threshold prevents runaway potentiation
theta_m = f(mean_postsynaptic_activity)Spike-timing window with 20ms time constant. Pre-before-post strengthens, post-before-pre weakens.
Voltage-dependent Mg²+ block means plasticity only occurs when the postsynaptic neuron is sufficiently depolarized.
Eligibility traces accumulate potential weight changes. Dopamine release gates which traces actually consolidate into lasting synaptic modifications.
Supported compounds in the native dONN path now run through an actual molecule-to-behavior bridge. They start as explicit molecules, build a molecular graph from SMILES, dock into a target-specific surrogate pocket, get rescored with MM-GBSA, permeate into the live run, and then update occupancy with a ligand MD microprobe before they alter neural conductance or transmitter state.
The whole-cell drug-interaction module still handles permeation, target binding, and rate modifiers, while the atomistic molecule layer supplies SMILES-defined molecules, docking, MM-GBSA, reactions, and ADMET. The important change is that these layers are now bridged for the supported neural pharmacology set rather than living as parallel tracks with no runtime contact.
// Atomistic-to-neural bridge
SMILES -> MoleculeGraph -> surrogate-pocket flex_dock() -> compute_mmgbsa() -> calibrated baseline Kd -> Bateman PK -> plasma concentration -> membrane permeation -> live ligand MD microprobe -> effective Kd / occupancy -> conductance or transmitter modulation -> neural dynamics -> behavior
| Drug | Primary target | Native atomistic bridge | Neural consequence |
|---|---|---|---|
| Caffeine | Adenosine receptor analog pocket | Explicit molecule -> docking -> MM-GBSA -> ligand MD -> occupancy | Leak reduction plus Nav lift |
| Diazepam | GABA-A benzodiazepine site | Explicit molecule -> docking -> MM-GBSA -> ligand MD -> occupancy | Higher inhibitory conductance |
| Amphetamine | DAT/NET transporter cavity | Explicit molecule -> docking -> MM-GBSA -> ligand MD -> occupancy | DA/NE release increase |
| Ketamine | NMDA channel pore | Explicit molecule -> docking -> MM-GBSA -> ligand MD -> occupancy | NMDA block |
| Fluoxetine | SERT central site | Explicit molecule -> docking -> MM-GBSA -> ligand MD -> occupancy | Serotonin reuptake block |
| L-DOPA | DOPA decarboxylase pathway proxy | Explicit molecule -> docking -> MM-GBSA -> ligand MD -> occupancy | Dopamine synthesis increase |
| Donepezil | Acetylcholinesterase gorge | Explicit molecule -> docking -> MM-GBSA -> ligand MD -> occupancy | Acetylcholine accumulation |
The remaining limit is scale, not missing plumbing. oNeura still does not run explicit receptor-pocket MD for every receptor instance in every neuron at every timestep, but the neural pharmacology path is now atomistically calibrated rather than hand-waved.
Replicating and extending the Cortical Labs DishBrain experiment. A 25,250-neuron spiking brain learns to play Pong using free-energy-style learning - the brain receives unpredictable stimulation on misses, and the absence of stimulation on hits acts as a reward signal. No explicit reward function. No backpropagation. Learning emerges from STDP.
// Brain architecture
Sensory layer: 250 neurons (ball position encoding) Cortical layer: 5,000 neurons (STDP learning circuits) ├── Excitatory: 4,000 (80%) └── Inhibitory: 1,000 (20%) Motor layer: 4× populations of 5,000 neurons each ├── UP (5,000 neurons) ├── DOWN (5,000 neurons) ├── STAY (5,000 neurons) └── NULL (5,000 neurons) Total: 25,250 neurons, ~7M synapses Connectivity: Sparse random (p=0.1-0.3 within populations) dt = 0.1 ms, 12 simulation frames per rally
All runs: seed 42, 80 rallies, dt=0.1ms. The brain consistently outperforms random baseline (30%) on every hardware platform. Results are deterministic given the same seed.
Try it yourself: Play Live Pong in your browser - a smaller brain runs in real-time using WebGPU compute shaders with the exact same Hodgkin-Huxley equations.
A 5,050-neuron spiking brain plays Doom (VizDoom, "Defend the Center" scenario). The brain sees Doom through a molecular retina (50 retinal ganglion cells), processes visual input through STDP-learning cortical circuits, and outputs motor commands to move, turn, and shoot. After 12 teacher-guided episodes, the brain plays fully autonomously - zero decoder biases, zero teacher shaping.
These combat runs are not gameplay hacks. They sample the same neural target classes the native pharmacology stack modulates, with supported compounds now entering through explicit molecules, docking/MM-GBSA calibration, permeation, and occupancy before circuit behavior changes. Three drugs were tested across 3 runs each, measuring average score in Defend the Center.
| Condition | Avg Score | Avg Damage | Mechanism |
|---|---|---|---|
| Baseline | -22.35 | 41.0 | No drug applied |
| Caffeine | -19.08 | 38.0 | Adenosine block → increased excitability |
| Diazepam | -17.67 | 35.3 | GABA-A enhancement → increased inhibition |
| Amphetamine | -20.42 | 43.7 | DAT/NET block → heightened reward signaling |
| Methamphetamine | -21.45 | 41.0 | Stronger DA/NE release reversal |
Teacher pretraining builds synaptic connections via STDP by stimulating correct motor populations alongside visual input. During autonomous play, the brain chooses actions solely from L5 cortical spike counts - whichever motor population fires most wins.
A 139,000-neuron fly brain simulation using real connectome topology from the FlyWire dataset, with 10 million synapses, running on an NVIDIA RTX A6000 (46GB VRAM). Every neuron runs the full Hodgkin-Huxley biophysics with ion channels, receptor binding, calcium dynamics, and STDP plasticity - all computed in parallel on the GPU.
1,000 photoreceptor neurons stimulated at 50 uA/cm². Network firing rate increases from 0.0 Hz baseline to 0.40 Hz during light stimulus, then decays to 0.28 Hz during recovery - demonstrating sensory adaptation.
Graded temperature ramp (18-34 degrees C) across 5 levels. Network shows initial excitation at 22 degrees C (0.88 Hz) followed by sensory adaptation at higher temperatures (0.73 Hz at 34 degrees C).
Caffeine (Nav +30%) increases firing rate by 7.8% (7.41 Hz baseline to 7.99 Hz). GABA agonist and dopamine modulation operate through downstream molecular pathways.
Circadian activity: day firing rate 0.050 Hz vs night 0.028 Hz (1.8x ratio). The brain spontaneously reduces activity during simulated night periods.
In the browser Y-maze, a 5,000-neuron Drosophila brain learns odor-reward associations via dopamine-gated STDP. Caffeine improves conditioning only up to an optimal range, then degrades performance again, producing the same inverted-U dose-response seen in biological learning systems.
Interactive demos: Explore fly brain visualization and Y-maze olfactory conditioning
oNeura is hardware-agnostic. The same brain architecture runs identically on a laptop, datacenter GPU, or in the browser. All benchmark data is from actual experiment runs (seed 42, 80 rallies, dt=0.1ms, 25,250 neurons, ~7M synapses).
| Platform | Wall Time | Bio Time | Realtime Factor | Hit Rate | Hits/80 |
|---|---|---|---|---|---|
| M4 Pro 24GB (Rust/Metal) | 115.1s | 3,995ms | 0.035x | 41.25% | 33 |
| A100 40GB (CUDA) | 71.8s | 4,015ms | 0.056x | 36.25% | 29 |
| H200 80GB (CUDA) | 45.2s | 3,995ms | 0.088x | 41.25% | 33 |
The H200 achieves 2.55x wall-time speedup over M4 Pro and 1.59x over A100. Hit rate variations between platforms are due to floating-point order-of-operations differences in parallel reductions, not physics divergence - the equations are identical.
139,000 neurons with 10M synapses complete 3 experiments (phototaxis, thermotaxis, drug effects) in 46.33 seconds total on an RTX A6000. Backend: Rust + CUDA 12.4 (cudarc). All HH gating, synaptic transmission, STDP plasticity, and neurotransmitter dynamics computed on GPU in parallel.
| Platform | Biophysics | Plasticity | Pharmacology | GPU | Scale |
|---|---|---|---|---|---|
| NEURON (Yale) | HH neurons | Limited | No | No | Single cell |
| Brian2 | Configurable | STDP | No | No | ~10K |
| NEST | LIF/HH | STDP | No | Limited | ~1M (LIF) |
| CellBlender | Molecular | No | No | No | Sub-cellular |
| DishBrain | Biological | STDP | Yes | N/A | ~800K (in vitro) |
| oNeura (Ours) | ~173 state vars / ~45-stage dONN path | 3-factor STDP | molecules -> occupancy | Rust+CUDA native | 139K (tested) |
Existing simulators tend to specialize either in small-scale biophysical fidelity or in larger-scale simplified networks. oNeura is aimed at the middle ground: retaining explicit neural and pharmacology-relevant state while still validating network-scale runs on native GPUs. The comparison table above is intended as orientation, not as a comprehensive survey.
Browser demos are reduced-scale slices of the larger native stack. The public site shows live neuronal physics and replayed native experiments, but it does not execute every full-scale network or every molecule workflow directly in-browser.
Supported compounds now bridge explicit molecules, docking, MM-GBSA, and occupancy-aware neural effects in the native path, but this is not yet equivalent to running explicit receptor-pocket MD for every receptor instance at every timestep.
Some reported metrics come from different hardware targets and experimental setups. Where possible this page states those conditions, but future revisions should consolidate them into a unified appendix and downloadable benchmark pack.
This document focuses on the validated dONN and pharmacology-adjacent path. It should not be read as proof that every future whole-cell, embodied-agent, or ecosystem layer is already complete, public, or benchmarked to the same depth.
Million-Neuron Scale - Multi-GPU distribution with NCCL for full mouse cortex (71M neurons). Current architecture is designed for this; the bottleneck is synapse memory, not compute.
Whole-Cell Integration - Extending the existing native whole-cell runtime and local chemistry modules deeper into energy, trafficking, and regulation so lower-scale cellular state can be carried upward more directly.
Drug Discovery Pipeline - Bridging atomistic molecule handling, whole-cell target binding, and neural behavioral assays so candidate compounds can be carried from structure to behavior in one workflow.
Embodied Agents - Connecting the molecular brain to robotic platforms and more complex virtual environments (beyond Pong/Doom) to test sensorimotor integration and autonomous navigation.
Ecosystem Simulation - Multiple organisms with molecular brains interacting in a shared physical environment - predator-prey dynamics, social behavior, and evolutionary pressure on neural architecture.
[1] Hodgkin AL, Huxley AF. A quantitative description of membrane current and its application to conduction and excitation in nerve. Journal of Physiology (1952).
[2] Kagan BJ et al. In vitro neurons learn and exhibit sentience when embodied in a simulated game-world. Neuron (2022). DishBrain reference point for closed-loop Pong-style experiments.
[3] Bi GQ, Poo MM. Synaptic modifications in cultured hippocampal neurons: dependence on spike timing, synaptic strength, and postsynaptic cell type. Journal of Neuroscience (1998).
[4] Abbott LF, Nelson SB. Synaptic plasticity: taming the beast. Nature Neuroscience (2000). Background for STDP and stability framing.
[5] FlyWire Consortium / Drosophila connectome publications. Structural reference point for fly-brain topology and circuit scale.
[6] Hines ML, Carnevale NT. The NEURON simulation environment. Neural Computation (1997).
[7] Stimberg M et al. Brian 2, an intuitive and efficient neural simulator. eLife (2019).
[8] Jordan I et al. NEST 3 and modern large-scale network simulation references.
[9] Genheden S, Ryde U. The MM/PBSA and MM/GBSA methods to estimate ligand-binding affinities. Expert Opinion on Drug Discovery (2015).
[10] Trott O, Olson AJ. AutoDock Vina: improving the speed and accuracy of docking. Journal of Computational Chemistry (2010).
Future revisions should convert these selected references into inline citations and a fully formatted bibliography/appendix.
oNeura is an active research project at Blackweb.AI. All experiment data is from actual runs.