Coder Social home page Coder Social logo

daninci / snn_visual_cortex Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 0.0 2.56 MB

Spiking Neural Network modelling the Visual Cortex (V1) Layer 5

License: MIT License

Python 31.57% Jupyter Notebook 68.43%
brian2 neuroscience selectivity spiking-neural-networks visual-cortex

snn_visual_cortex's Introduction

Spiking Neural Network for the Visual Cortex (V1) Layer 5

This is a spike neural network model of the V1, layer 5 includes Cortico-Cortical (CC), Cortico-Subcortical (CS), PV and SST neurons.

Individual simulation metrics for neuron groups are computed such as firing rates, inter-spike intervals, burst detection.

Additionally, orientation and direction selectivity are aggregated for population of cells.

Project content

.
├── data                                        # Contains hypertuning results from amplitude simulation run
├── output                                      # Contains output results & plots from complete simulation run (.gitignored)
├── notebooks                                   # Jupyter notebooks used for testing different scenarios
│   ├── layer5_CC_CS_connection.ipynb           # Scalar plot simulation for weighted CC->CS connection probability
│   ├── layer5_SST_Soma_selectivity.ipynb       # Scalar plot simulation for weighted SST->CC/CS Soma connection probability
│   ├── layer5_sandbox.ipynb                    # Sandbox notebook used when creating initial network topology
│   └── ...               
├── layer5_CC_CS.py                             # Main network file that defines the topology of the simulation                   
├── equations.py                                # Equations for different neuron types
├── parameters.py                               # Default parameters for simulation
├── helpers.py                                  # Helper methods for analysis
├── plotting.py                                 # Helper methods for plotting
├── run_amplitude_hypertuing.py                 # Script for running multiple simulations for amplitude hypertuning for different neurons
└── run_complete_simulation.py                  # Complete simulation run entrypoint

Requirements

Use conda env create -n network -f requirements.txt to unpack the conda environment. Or download with conda install <module> the requirements manually.

After that, activate the environment with conda activate network

Hints

  • There is only one best parameter set which I aggregated in parameters.py. If you want to try different combinations of parameters, you can change them here.
  • To run main simulation python3 run_complete_simulation.py
  • The project includes a script for hypertuning different input amplitudes for neuron groups. Can be run by python3 run_amplitude_hypertuning.py
  • All simulation outputs are persisted in the output folder. I recommend deleting the content between successive runs to avoid confusion.
  • Parallelization of simulations is missing. This would be a much needed improvement for the future.

Project Report

  • For more details and documentation about the project scope, the report can be consulted.

snn_visual_cortex's People

Contributors

daninci avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.