How ukexe/cognitive-function-simulation works
Main Components
• Simulation Engine: Represented by the primary simulation scripts (A1.py and A2.py) which configure and run the neural network simulations. This component will integrate Brian2 to simulate the biophysical models.
• Neural Model & STDP Module: A distinct logical unit or subcomponent within the simulation engine responsible for encapsulating the details of the neuronal model parameters (membrane capacitance, leak conductance, threshold, exponential sharpness) and synaptic plasticity rules.
• Visualization Suite: A separate module handling real-time raster plots, membrane potentials, and synaptic current flows. This component is evidenced by the inclusion of dynamic plots (temp-plot.html) and visualization notebooks that illustrate network behavior.
• Data & Parameter Configuration: A component responsible for setting up simulation parameters (as highlighted in the README) and possibly handling output data from simulation runs.
• Auxiliary/Support Components: This includes additional resources such as the “imgs” directory for storing visual assets, and notebooks for exploratory analysis (e.g., 2D.ipynb, 3D.ipynb, final-venn.ipynb).
Component Relationships & Data Flow
• The Simulation Engine then passes the computed neural network interactions to the Neural Model & STDP Module, which encapsulates the detailed computation of neuron dynamics.
• Outputs from the simulation core flow into the Visualization Suite, where data is represented in real-time or via post-simulation plots.
Architectural Patterns and Technologies
• Modular design (separating simulation logic from visualization and configuration management).
• Use of established scientific libraries (Brian2 for neuronal dynamics; NumPy for numerical computations; Matplotlib for plotting) as key technologies within the simulation engine and visualization modules.
• That the entire system is driven by parameterized scripts, with Jupyter notebooks serving as a flexible interface for analysis and demonstration.