Skip to content

carlosmig/Homo_DMF

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

4 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿง  Homeostatic Dynamic Mean Field Model (DMF_ISP)

This repository contains Python code for simulating a homeostatic dynamic mean field (DMF) model with synaptic plasticity and generating synthetic BOLD signals. The model implements biologically inspired excitatory-inhibitory dynamics using a structural connectivity (SC) matrix derived from human brain data. It supports noise, homeostatic inhibitory plasticity, and simulation of functional connectivity (FC).


๐Ÿ“‚ Repository Contents

DMF_ISP/
โ”œโ”€โ”€ BOLDModel.py              # Module for simulating BOLD signals from firing rates
โ”œโ”€โ”€ DMF_ISP_numba.py          # Core DMF model with inhibitory synaptic plasticity (Numba-accelerated)
โ”œโ”€โ”€ run_DMF_ISP.py            # Example script to run DMF simulation and generate FC matrix
โ”œโ”€โ”€ SCmatrices88healthy.mat   # Structural connectivity matrix averaged across 88 healthy participants

๐Ÿงฌ Scientific References

Structural Connectivity Source

ล koch, A., Rehรกk Buฤkovรก, B., Mareลก, J., et al. (2022).
Human brain structural connectivity matricesโ€“ready for modelling.
Scientific Data, 9, 486. https://doi.org/10.1038/s41597-022-01596-9

DMF Model (Preprint)

Mindlin, I., Coronel-Oliveros, C., Sitt, J. D., Cofrรฉ, R., Luppi, A., Andrillon, T., & Herzog, R. (in preparation).
A homeostatic dynamic mean field model: enhanced stability and state repertoire.


โš™๏ธ Installation

  1. Clone the repository:
git clone https://github.com/your-username/DMF_ISP.git
cd DMF_ISP
  1. Install the required Python dependencies:
pip install numpy scipy matplotlib numba

๐Ÿš€ Usage

To run a basic simulation:

python run_DMF_ISP.py

This will:

  • Load the structural connectivity matrix
  • Run the DMF model with or without plasticity
  • Generate synthetic BOLD signals
  • Compute and display a functional connectivity matrix

๐Ÿง  Model Description

  • Nodes: 90 brain regions
  • Inputs: Structural connectivity (SC), noise
  • Outputs: Firing rates, BOLD signals, FC matrix
  • Plasticity: Homeostatic inhibitory plasticity targeting a fixed mean firing rate
  • Numerical Integration: Euler-Maruyama with Gaussian noise
  • Optimization: Numba-accelerated for performance

๐Ÿ“Š Outputs

  • BOLD signals: simulated low-frequency hemodynamic response
  • FC matrix: pairwise Pearson correlations between regions
  • Plots: connectivity matrix visualization

๐Ÿ“ฆ Dependencies

  • numpy
  • scipy
  • matplotlib
  • numba

About

Homeostatic Dynamic Mean Field Model (DMF_ISP)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages