A cognitive science and computational neuroscience research project investigating episodic memory, hippocampal pattern separation, pattern completion, and memory retrieval through computational modelling and controlled experiments.
This repository is in an early software-development and protocol-design stage. The current manuscript and MM-01 protocol are preliminary. The software components currently implemented are infrastructure and computational baselines; they are not confirmatory evidence for biological pattern separation, pattern completion, or biological equivalence.
- Pattern separation: distinguishing overlapping input episodes.
- Pattern completion: evaluating retrieval from incomplete or altered cues.
- Episodic retrieval under interference.
- Capacity, robustness, and representational information preservation.
The model is an experimental computational framework, not a claim that a simplified simulation reproduces the hippocampus.
- Data: fixed-sparsity binary pattern-pair generation with stochastic overlap and recorded realized overlap.
- Cue degradation: separate missing-feature and feature-substitution conditions, with explicit random sources and edit metadata.
- Evaluation: binary Hamming distance, normalized Hamming distance, and Jaccard similarity.
- Storage: an in-memory store for fixed-dimensional boolean representations.
- Encoding: identity, dense Gaussian-threshold, competitive k-WTA, and random feature-hash binary encoders. Stochastic parameters are fixed per encoder instance; the MM-01 factory shares the same Gaussian weight values between E1 and E2.
- Batch encoding: vectorized transforms for all four encoders.
- Experiment execution: a paired MM-01 runner with seed blocks, realized-overlap recording, pair-level outputs, block summaries, and finite-bank collision diagnostics.
- Retrieval: a transparent nearest-neighbour baseline ranked by Hamming distance, returning all minimum-distance ties.
The MM-01 runner is implemented, but its recommended design remains provisional pending researcher approval. No full MM-01 experiment has been run or reported.
A manual GitHub Actions workflow is available under Actions → Run MM-01 exploratory experiment → Run workflow. Its default is a small 2-block × 20-pair smoke/pilot run. The proposed 30-block × 200-pair design can be selected as inputs only after the protocol has been reviewed and approved. Each run uploads pair-level CSVs, block summaries, collision diagnostics, and run metadata as a downloadable workflow artifact.
The preliminary methods/framework manuscript is in manuscript/manuscript.md. It distinguishes implemented software from proposed experiments and contains explicit literature-review placeholders; it is not a submission-ready paper.
Install the project and development dependencies with:
python -m pip install -e ".[dev]"
python -m pytest
A GitHub Actions workflow runs the test suite on pushes to main and pull requests. The suite covers data generation, cue degradation, metrics, storage, retrieval, encoders, and small reproducibility checks for the MM-01 runner. Check the Actions badge above for the current result.
Stochastic components require explicit seeds or random-number generators. The MM-01 runner can write pair-level and block-level CSV files plus a JSON metadata record. A small smoke-test run is covered by CI; the full proposed 30-block design has not been run.
Example exploratory smoke test:
from memory_machine.experiments import run_mm01_experiment
run_mm01_experiment(
n_blocks=2,
pairs_per_condition=20,
base_seed=20261128,
output_dir="results/mm01_smoke_test",
)Use a new output directory for each run. Do not overwrite raw outputs. Results must distinguish implementation checks from evidence about memory encoding or retrieval.
Separation metrics must be reported alongside information-preservation and retrieval measures. A lower output similarity alone is not evidence of a better memory representation. Nearest-neighbour selection is not, by itself, pattern completion.
Preliminary research and software-development stage. MM-01 encoders and an executable paired experiment runner now exist with automated tests. The recommended protocol is still provisional; no full experiment, confirmatory analysis, biological validation, or MM-02 retrieval experiment has been completed.