🧠 Brain‑5D

Sparse 5D Spiking‑Neural Simulation with Observable Plasticity

Python 3.11+ Tests License: MIT Code style: black

Brain‑5D is an experimental spiking‑neural simulation platform operating in a sparse 5D coordinate space.
It combines spiking dynamics, spike‑timing‑dependent plasticity (STDP), homeostatic regulation, structural self‑organization, deterministic persistence, and an operator‑facing dashboard.

Research status
Brain‑5D is an engineering and research project. The current implementation does not claim AGI, consciousness, sentience or biological equivalence.


🎯 Key Features

Feature Description
🧬 Spiking Core Izhikevich regular‑spiking neurons in a sparse 5D coordinate space
πŸ“ STDP Learning Spike‑timing‑dependent plasticity with signed eligibility traces
βš–οΈ Homeostasis Target firing‑rate regulation, adaptive thresholds, energy homeostasis
πŸ”„ Structural Plasticity Controlled neuron/synapse creation, pruning, and persistent undo
🧠 Self‑Organization Policy‑driven structural proposals with safety validation
πŸ’Ύ Deterministic Persistence .b5d snapshots, state delta journal, structural journal, runtime checkpoints
πŸ“Š Operator Dashboard Real‑time visualization, heatmaps, structural approval, live projection
πŸ”¬ Scientific Evidence Built‑in evidence framework (B5D‑SEF) for reproducible experiments

πŸ—οΈ Architecture Overview

                    β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
                    β”‚   Operator Dashboard β”‚
                    β”‚   (127.0.0.1:8765)   β”‚
                    β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                               β”‚ HTTP / Bridge
                    β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β–Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
                    β”‚   RuntimeController β”‚
                    β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                               β”‚
          β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
          β–Ό                    β–Ό                    β–Ό
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚  NeuralNetwork  β”‚  β”‚ HomeostasisEng. β”‚  β”‚ LearningEngine  β”‚
β”‚  (5D sparse)    β”‚  β”‚ (rate/threshold)β”‚  β”‚ (STDP/eligibility)β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”˜  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
         β”‚
         β–Ό
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚              Persistence Layer                            β”‚
β”‚  .b5d Snapshot + Delta Journal + Structural Journal + CP β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

πŸš€ Quick Start

Installation

git clone https://huggingface.co/<your-org>/Brain-5D
cd Brain-5D
python -m venv .venv
source .venv/bin/activate   # Linux/Mac
# .venv\Scripts\Activate.ps1  # Windows
pip install -e ".[dev]"

Run the Simulation

# With dashboard (default)
python -m src.main --config configs/poc_config.yaml

# Headless mode
python -m src.main --config configs/poc_structural_live.yaml --no-dashboard --ticks 500

Open the Dashboard

Navigate to http://127.0.0.1:8765


πŸ“¦ Repository Structure

Brain-5D/
β”œβ”€β”€ src/
β”‚   β”œβ”€β”€ core/                 # Neural network and neuron/synapse core
β”‚   β”œβ”€β”€ controller/           # Operator/runtime controller
β”‚   β”œβ”€β”€ learning/             # STDP, eligibility and reward learning
β”‚   β”œβ”€β”€ homeostasis/          # Firing-rate / threshold / energy regulation
β”‚   β”œβ”€β”€ self_organization/    # Policy, coordinator, approval, plasticity
β”‚   β”œβ”€β”€ manipulation/         # Controlled mutation boundary
β”‚   β”œβ”€β”€ storage/              # Snapshots, journals, checkpoint, recovery
β”‚   β”œβ”€β”€ dashboard/            # Local operator console and API
β”‚   └── ...
β”œβ”€β”€ tests/                    # Test suite (379+ tests)
β”œβ”€β”€ configs/                  # YAML configuration files
β”œβ”€β”€ docs/                     # Documentation and roadmap
β”œβ”€β”€ research/                 # Scientific evidence framework
β”œβ”€β”€ artifacts/                # Simulation snapshots and journals
└── scripts/                  # Utility and verification scripts

πŸ“š Documentation

Resource Description
docs/ROADMAP.md Development roadmap and milestones
docs/changelog.md Detailed changelog
docs/todo.md Current TODO and gate status
docs/ARCHITECTURE.md Architecture documentation
docs/B5D_FORMAT.md .b5d snapshot format specification
research/README.md Scientific evidence framework

πŸ§ͺ Testing

# Fast regression suite
pytest -v -m "not slow"

# Full suite
pytest -v

# With coverage
pytest --cov=src --cov-report=term-missing

Current baseline: 379 passed, 0 failed βœ…


πŸ“„ License

MIT License β€” see LICENSE.

Copyright Β© 2025-2026 Thomas Heisig and contributors.


πŸ“– Citation

@software{heisig2026brain5d,
  author = {Thomas Heisig},
  title = {Brain-5D: Sparse 5D Spiking-Neural Simulation with Observable Plasticity},
  year = {2026},
  version = {0.5.0-alpha.5},
  url = {https://huggingface.co/<your-org>/Brain-5D},
  license = {MIT}
}

🀝 Contributing

Contributions are welcome! Please see CONTRIBUTING.md and our Code of Conduct.

Current focus: Alpha.5 closure (restore determinism experiments) β†’ Alpha.6 (morphological self-regulation).


πŸ”— Links

Downloads last month

-

Downloads are not tracked for this model. How to track
Video Preview
loading